From 366ea94a4b9f297c980017f5609aa030366c179a Mon Sep 17 00:00:00 2001 From: lisonge Date: Mon, 10 Jul 2023 11:18:13 +0800 Subject: [PATCH] chore: create-monkey@1.34.0 --- packages/create-monkey/package.json | 2 +- .../template-empty-ts/package.json | 6 +- .../create-monkey/template-empty/package.json | 4 +- .../dist/vite-preact-ts-starter.user.js | 4 +- .../template-preact-ts/package.json | 8 +- .../dist/vite-preact-starter.user.js | 4 +- .../template-preact/package.json | 6 +- .../template-react-ts/package.json | 12 +-- .../create-monkey/template-react/package.json | 10 +-- .../dist/vite-solid-ts-starter.user.js | 14 +++- .../template-solid-ts/package.json | 8 +- .../dist/vite-solid-starter.user.js | 14 +++- .../create-monkey/template-solid/package.json | 6 +- .../dist/vite-svelte-ts-starter.user.js | 81 ++++++++++++++----- .../template-svelte-ts/package.json | 18 ++--- .../dist/vite-svelte-starter.user.js | 81 ++++++++++++++----- .../template-svelte/package.json | 8 +- .../template-vanilla-ts/package.json | 6 +- .../template-vanilla/package.json | 4 +- .../dist/vite-vue-ts-starter.user.js | 6 +- .../template-vue-ts/package.json | 12 +-- .../dist/vite-vue-starter.user.js | 2 +- .../create-monkey/template-vue/package.json | 8 +- 23 files changed, 211 insertions(+), 113 deletions(-) diff --git a/packages/create-monkey/package.json b/packages/create-monkey/package.json index b5fe614..a66cb63 100644 --- a/packages/create-monkey/package.json +++ b/packages/create-monkey/package.json @@ -1,6 +1,6 @@ { "name": "create-monkey", - "version": "1.33.0", + "version": "1.34.0", "description": "create-monkey", "main": "index.js", "type": "module", diff --git a/packages/create-monkey/template-empty-ts/package.json b/packages/create-monkey/template-empty-ts/package.json index 43f374c..94de889 100644 --- a/packages/create-monkey/template-empty-ts/package.json +++ b/packages/create-monkey/template-empty-ts/package.json @@ -9,8 +9,8 @@ "preview": "vite preview" }, "devDependencies": { - "typescript": "^5.0.4", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "typescript": "^5.1.6", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-empty/package.json b/packages/create-monkey/template-empty/package.json index 94a92ee..37a1ba7 100644 --- a/packages/create-monkey/template-empty/package.json +++ b/packages/create-monkey/template-empty/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "devDependencies": { - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-preact-ts/dist/vite-preact-ts-starter.user.js b/packages/create-monkey/template-preact-ts/dist/vite-preact-ts-starter.user.js index ce3131e..a365d7d 100644 --- a/packages/create-monkey/template-preact-ts/dist/vite-preact-ts-starter.user.js +++ b/packages/create-monkey/template-preact-ts/dist/vite-preact-ts-starter.user.js @@ -5,7 +5,7 @@ // @author monkey // @icon https://vitejs.dev/logo.svg // @match https://www.google.com/ -// @require https://cdn.jsdelivr.net/npm/preact@10.13.2/dist/preact.min.js +// @require https://cdn.jsdelivr.net/npm/preact@10.16.0/dist/preact.min.js // ==/UserScript== (e=>{const o=document.createElement("style");o.dataset.source="vite-plugin-monkey",o.textContent=e,document.head.append(o)})(" #app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.preact:hover{filter:drop-shadow(0 0 2em #673ab8aa)}.card{padding:2em}.read-the-docs{color:#888}:root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} "); @@ -74,7 +74,7 @@ var i2 = (r = n.__c).__H; i2 && (u === r ? (i2.__h = [], r.__h = [], i2.__.forEach(function(n2) { n2.__N && (n2.__ = n2.__N), n2.__V = c, n2.__N = n2.i = void 0; - })) : (i2.__h.forEach(k), i2.__h.forEach(w), i2.__h = [])), u = r; + })) : (i2.__h.forEach(k), i2.__h.forEach(w), i2.__h = [], t = 0)), u = r; }, preact.options.diffed = function(t2) { v && v(t2); var o2 = t2.__c; diff --git a/packages/create-monkey/template-preact-ts/package.json b/packages/create-monkey/template-preact-ts/package.json index 6f2559f..5baf50d 100644 --- a/packages/create-monkey/template-preact-ts/package.json +++ b/packages/create-monkey/template-preact-ts/package.json @@ -9,12 +9,12 @@ "preview": "vite preview" }, "dependencies": { - "preact": "10.13.2" + "preact": "10.16.0" }, "devDependencies": { "@preact/preset-vite": "^2.5.0", - "typescript": "^5.0.4", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "typescript": "^5.1.6", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-preact/dist/vite-preact-starter.user.js b/packages/create-monkey/template-preact/dist/vite-preact-starter.user.js index 1688fca..e0166cc 100644 --- a/packages/create-monkey/template-preact/dist/vite-preact-starter.user.js +++ b/packages/create-monkey/template-preact/dist/vite-preact-starter.user.js @@ -5,7 +5,7 @@ // @author monkey // @icon https://vitejs.dev/logo.svg // @match https://www.google.com/ -// @require https://cdn.jsdelivr.net/npm/preact@10.13.2/dist/preact.min.js +// @require https://cdn.jsdelivr.net/npm/preact@10.16.0/dist/preact.min.js // ==/UserScript== (e=>{const o=document.createElement("style");o.dataset.source="vite-plugin-monkey",o.textContent=e,document.head.append(o)})(" #app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.preact:hover{filter:drop-shadow(0 0 2em #673ab8aa)}.card{padding:2em}.read-the-docs{color:#888}:root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} "); @@ -74,7 +74,7 @@ var i2 = (r = n.__c).__H; i2 && (u === r ? (i2.__h = [], r.__h = [], i2.__.forEach(function(n2) { n2.__N && (n2.__ = n2.__N), n2.__V = c, n2.__N = n2.i = void 0; - })) : (i2.__h.forEach(k), i2.__h.forEach(w), i2.__h = [])), u = r; + })) : (i2.__h.forEach(k), i2.__h.forEach(w), i2.__h = [], t = 0)), u = r; }, preact.options.diffed = function(t2) { v && v(t2); var o2 = t2.__c; diff --git a/packages/create-monkey/template-preact/package.json b/packages/create-monkey/template-preact/package.json index 834ca97..37addf3 100644 --- a/packages/create-monkey/template-preact/package.json +++ b/packages/create-monkey/template-preact/package.json @@ -9,11 +9,11 @@ "preview": "vite preview" }, "dependencies": { - "preact": "^10.13.2" + "preact": "^10.16.0" }, "devDependencies": { "@preact/preset-vite": "^2.5.0", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-react-ts/package.json b/packages/create-monkey/template-react-ts/package.json index f1b4418..1863f8a 100644 --- a/packages/create-monkey/template-react-ts/package.json +++ b/packages/create-monkey/template-react-ts/package.json @@ -13,11 +13,11 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@types/react": "^18.2.6", - "@types/react-dom": "^18.2.4", - "@vitejs/plugin-react": "^4.0.0", - "typescript": "^5.0.4", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "@types/react": "^18.2.14", + "@types/react-dom": "^18.2.6", + "@vitejs/plugin-react": "^4.0.2", + "typescript": "^5.1.6", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-react/package.json b/packages/create-monkey/template-react/package.json index e0e85a3..837721a 100644 --- a/packages/create-monkey/template-react/package.json +++ b/packages/create-monkey/template-react/package.json @@ -13,10 +13,10 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@types/react": "^18.2.6", - "@types/react-dom": "^18.2.4", - "@vitejs/plugin-react": "^4.0.0", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "@types/react": "^18.2.14", + "@types/react-dom": "^18.2.6", + "@vitejs/plugin-react": "^4.0.2", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-solid-ts/dist/vite-solid-ts-starter.user.js b/packages/create-monkey/template-solid-ts/dist/vite-solid-ts-starter.user.js index 46f1656..6063eb8 100644 --- a/packages/create-monkey/template-solid-ts/dist/vite-solid-ts-starter.user.js +++ b/packages/create-monkey/template-solid-ts/dist/vite-solid-ts-starter.user.js @@ -267,8 +267,16 @@ node.state = 0; node.context = null; } - function handleError(err) { - throw err; + function castError(err) { + if (err instanceof Error) + return err; + return new Error(typeof err === "string" ? err : "Unknown error", { + cause: err + }); + } + function handleError(err, owner = Owner) { + const error = castError(err); + throw error; } function createComponent(Comp, props) { return untrack(() => Comp(props || {})); @@ -347,7 +355,7 @@ t.innerHTML = html; return isSVG ? t.content.firstChild.firstChild : t.content.firstChild; }; - const fn = isCE ? () => (node || (node = create())).cloneNode(true) : () => untrack(() => document.importNode(node || (node = create()), true)); + const fn = isCE ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true); fn.cloneNode = fn; return fn; } diff --git a/packages/create-monkey/template-solid-ts/package.json b/packages/create-monkey/template-solid-ts/package.json index fe03113..fb12aac 100644 --- a/packages/create-monkey/template-solid-ts/package.json +++ b/packages/create-monkey/template-solid-ts/package.json @@ -9,12 +9,12 @@ "preview": "vite preview" }, "devDependencies": { - "typescript": "^5.0.4", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0", + "typescript": "^5.1.6", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0", "vite-plugin-solid": "^2.7.0" }, "dependencies": { - "solid-js": "^1.7.5" + "solid-js": "^1.7.7" } } diff --git a/packages/create-monkey/template-solid/dist/vite-solid-starter.user.js b/packages/create-monkey/template-solid/dist/vite-solid-starter.user.js index 9c49ae0..59a0e0b 100644 --- a/packages/create-monkey/template-solid/dist/vite-solid-starter.user.js +++ b/packages/create-monkey/template-solid/dist/vite-solid-starter.user.js @@ -267,8 +267,16 @@ node.state = 0; node.context = null; } - function handleError(err) { - throw err; + function castError(err) { + if (err instanceof Error) + return err; + return new Error(typeof err === "string" ? err : "Unknown error", { + cause: err + }); + } + function handleError(err, owner = Owner) { + const error = castError(err); + throw error; } function createComponent(Comp, props) { return untrack(() => Comp(props || {})); @@ -347,7 +355,7 @@ t.innerHTML = html; return isSVG ? t.content.firstChild.firstChild : t.content.firstChild; }; - const fn = isCE ? () => (node || (node = create())).cloneNode(true) : () => untrack(() => document.importNode(node || (node = create()), true)); + const fn = isCE ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true); fn.cloneNode = fn; return fn; } diff --git a/packages/create-monkey/template-solid/package.json b/packages/create-monkey/template-solid/package.json index 20128bb..6bddfdf 100644 --- a/packages/create-monkey/template-solid/package.json +++ b/packages/create-monkey/template-solid/package.json @@ -9,11 +9,11 @@ "preview": "vite preview" }, "devDependencies": { - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0", "vite-plugin-solid": "^2.7.0" }, "dependencies": { - "solid-js": "^1.7.5" + "solid-js": "^1.7.7" } } diff --git a/packages/create-monkey/template-svelte-ts/dist/vite-svelte-ts-starter.user.js b/packages/create-monkey/template-svelte-ts/dist/vite-svelte-ts-starter.user.js index ff077a8..a4b941b 100644 --- a/packages/create-monkey/template-svelte-ts/dist/vite-svelte-ts-starter.user.js +++ b/packages/create-monkey/template-svelte-ts/dist/vite-svelte-ts-starter.user.js @@ -12,6 +12,12 @@ (function () { 'use strict'; + var __defProp = Object.defineProperty; + var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; + var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); + return value; + }; function noop() { } function run(fn) { @@ -27,10 +33,12 @@ return typeof thing === "function"; } function safe_not_equal(a, b) { - return a != a ? b == b : a !== b || (a && typeof a === "object" || typeof a === "function"); + return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function"; } let src_url_equal_anchor; function src_url_equal(element_src, url) { + if (element_src === url) + return true; if (!src_url_equal_anchor) { src_url_equal_anchor = document.createElement("a"); } @@ -77,7 +85,8 @@ data = "" + data; if (text2.data === data) return; - text2.data = data; + text2.data = /** @type {string} */ + data; } let current_component; function set_current_component(component) { @@ -185,20 +194,18 @@ function create_component(block) { block && block.c(); } - function mount_component(component, target, anchor, customElement) { + function mount_component(component, target, anchor) { const { fragment, after_update } = component.$$; fragment && fragment.m(target, anchor); - if (!customElement) { - add_render_callback(() => { - const new_on_destroy = component.$$.on_mount.map(run).filter(is_function); - if (component.$$.on_destroy) { - component.$$.on_destroy.push(...new_on_destroy); - } else { - run_all(new_on_destroy); - } - component.$$.on_mount = []; - }); - } + add_render_callback(() => { + const new_on_destroy = component.$$.on_mount.map(run).filter(is_function); + if (component.$$.on_destroy) { + component.$$.on_destroy.push(...new_on_destroy); + } else { + run_all(new_on_destroy); + } + component.$$.on_mount = []; + }); after_update.forEach(add_render_callback); } function destroy_component(component, detaching) { @@ -269,16 +276,41 @@ } if (options.intro) transition_in(component.$$.fragment); - mount_component(component, options.target, options.anchor, options.customElement); + mount_component(component, options.target, options.anchor); flush(); } set_current_component(parent_component); } class SvelteComponent { + constructor() { + /** + * ### PRIVATE API + * + * Do not use, may change at any time + * + * @type {any} + */ + __publicField(this, "$$"); + /** + * ### PRIVATE API + * + * Do not use, may change at any time + * + * @type {any} + */ + __publicField(this, "$$set"); + } + /** @returns {void} */ $destroy() { destroy_component(this, 1); this.$destroy = noop; } + /** + * @template {Extract} K + * @param {K} type + * @param {((e: Events[K]) => void) | null | undefined} callback + * @returns {() => void} + */ $on(type, callback) { if (!is_function(callback)) { return noop; @@ -291,14 +323,21 @@ callbacks.splice(index, 1); }; } - $set($$props) { - if (this.$$set && !is_empty($$props)) { + /** + * @param {Partial} props + * @returns {void} + */ + $set(props) { + if (this.$$set && !is_empty(props)) { this.$$.skip_bound = true; - this.$$set($$props); + this.$$set(props); this.$$.skip_bound = false; } } } + const PUBLIC_VERSION = "4"; + if (typeof window !== "undefined") + (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(PUBLIC_VERSION); const svelteLogo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlme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jU0MiAzLjk3OSA1LjQ3MyA1Ljk0MyAyLjQzN2wxLjMxMy0yLjAyOGw3Mi41MTYtMTQ0LjcyYzEuMjE1LTIuNDIzLS44OC01LjE4Ni0zLjU0LTQuNjcybC0yNS41MDUgNC45MjJjLTIuMzk2LjQ2Mi00LjQzNS0xLjc3LTMuNzU5LTQuMTE0bDE2LjY0Ni01Ny43MDVjLjY3Ny0yLjM1LTEuMzctNC41ODMtMy43NjktNC4xMTNaIj48L3BhdGg+PC9zdmc+"; function create_fragment$1(ctx) { @@ -342,8 +381,9 @@ i: noop, o: noop, d(detaching) { - if (detaching) + if (detaching) { detach(button); + } mounted = false; dispose(); } @@ -452,8 +492,9 @@ current = false; }, d(detaching) { - if (detaching) + if (detaching) { detach(main); + } destroy_component(counter); } }; diff --git a/packages/create-monkey/template-svelte-ts/package.json b/packages/create-monkey/template-svelte-ts/package.json index ad1be64..0b96e83 100644 --- a/packages/create-monkey/template-svelte-ts/package.json +++ b/packages/create-monkey/template-svelte-ts/package.json @@ -10,14 +10,14 @@ "check": "svelte-check --tsconfig ./tsconfig.json" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.2.0", - "@tsconfig/svelte": "^4.0.1", - "svelte": "^3.59.0", - "svelte-check": "^3.3.1", - "svelte-preprocess": "^5.0.3", - "tslib": "^2.5.0", - "typescript": "^5.0.4", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "@sveltejs/vite-plugin-svelte": "^2.4.2", + "@tsconfig/svelte": "^5.0.0", + "svelte": "^4.0.5", + "svelte-check": "^3.4.5", + "svelte-preprocess": "^5.0.4", + "tslib": "^2.6.0", + "typescript": "^5.1.6", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-svelte/dist/vite-svelte-starter.user.js b/packages/create-monkey/template-svelte/dist/vite-svelte-starter.user.js index 7ab291c..0e775ec 100644 --- a/packages/create-monkey/template-svelte/dist/vite-svelte-starter.user.js +++ b/packages/create-monkey/template-svelte/dist/vite-svelte-starter.user.js @@ -12,6 +12,12 @@ (function () { 'use strict'; + var __defProp = Object.defineProperty; + var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; + var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); + return value; + }; function noop() { } function run(fn) { @@ -27,10 +33,12 @@ return typeof thing === "function"; } function safe_not_equal(a, b) { - return a != a ? b == b : a !== b || (a && typeof a === "object" || typeof a === "function"); + return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function"; } let src_url_equal_anchor; function src_url_equal(element_src, url) { + if (element_src === url) + return true; if (!src_url_equal_anchor) { src_url_equal_anchor = document.createElement("a"); } @@ -77,7 +85,8 @@ data = "" + data; if (text2.data === data) return; - text2.data = data; + text2.data = /** @type {string} */ + data; } let current_component; function set_current_component(component) { @@ -185,20 +194,18 @@ function create_component(block) { block && block.c(); } - function mount_component(component, target, anchor, customElement) { + function mount_component(component, target, anchor) { const { fragment, after_update } = component.$$; fragment && fragment.m(target, anchor); - if (!customElement) { - add_render_callback(() => { - const new_on_destroy = component.$$.on_mount.map(run).filter(is_function); - if (component.$$.on_destroy) { - component.$$.on_destroy.push(...new_on_destroy); - } else { - run_all(new_on_destroy); - } - component.$$.on_mount = []; - }); - } + add_render_callback(() => { + const new_on_destroy = component.$$.on_mount.map(run).filter(is_function); + if (component.$$.on_destroy) { + component.$$.on_destroy.push(...new_on_destroy); + } else { + run_all(new_on_destroy); + } + component.$$.on_mount = []; + }); after_update.forEach(add_render_callback); } function destroy_component(component, detaching) { @@ -269,16 +276,41 @@ } if (options.intro) transition_in(component.$$.fragment); - mount_component(component, options.target, options.anchor, options.customElement); + mount_component(component, options.target, options.anchor); flush(); } set_current_component(parent_component); } class SvelteComponent { + constructor() { + /** + * ### PRIVATE API + * + * Do not use, may change at any time + * + * @type {any} + */ + __publicField(this, "$$"); + /** + * ### PRIVATE API + * + * Do not use, may change at any time + * + * @type {any} + */ + __publicField(this, "$$set"); + } + /** @returns {void} */ $destroy() { destroy_component(this, 1); this.$destroy = noop; } + /** + * @template {Extract} K + * @param {K} type + * @param {((e: Events[K]) => void) | null | undefined} callback + * @returns {() => void} + */ $on(type, callback) { if (!is_function(callback)) { return noop; @@ -291,14 +323,21 @@ callbacks.splice(index, 1); }; } - $set($$props) { - if (this.$$set && !is_empty($$props)) { + /** + * @param {Partial} props + * @returns {void} + */ + $set(props) { + if (this.$$set && !is_empty(props)) { this.$$.skip_bound = true; - this.$$set($$props); + this.$$set(props); this.$$.skip_bound = false; } } } + const PUBLIC_VERSION = "4"; + if (typeof window !== "undefined") + (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(PUBLIC_VERSION); const svelteLogo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlmeSBpY29uaWZ5LS1sb2dvcyIgd2lkdGg9IjI2LjYiIGhlaWdodD0iMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAyNTYgMzA4Ij48cGF0aCBmaWxsPSIjRkYzRTAwIiBkPSJNMjM5LjY4MiA0MC43MDdDMjExLjExMy0uMTgyIDE1NC42OS0xMi4zMDEgMTEzLjg5NSAxMy42OUw0Mi4yNDcgNTkuMzU2YTgyLjE5OCA4Mi4xOTggMCAwIDAtMzcuMTM1IDU1LjA1NmE4Ni41NjYgODYuNTY2IDAgMCAwIDguNTM2IDU1LjU3NmE4Mi40MjUgODIuNDI1IDAgMCAwLTEyLjI5NiAzMC43MTlhODcuNTk2IDg3LjU5NiAwIDAgMCAxNC45NjQgNjYuMjQ0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zNy45NThjLTIuNzQ2LTQuODE0IDEuMzcxLTEwLjY0NiA2LjgyNy05LjY3bDEyMC4zODUgMjEuNTE3YTYuNTM3IDYuNTM3IDAgMCAwIDIuMzIyLS4wMDRsMTE3Ljg2Ny0yMS40ODNjNS40MzgtLjk5MSA5LjU3NCA0Ljc5NiA2Ljg3NyA5LjYyWiI+PC9wYXRoPjxwYXRoIGZpbGw9InVybCgjSWNvbmlmeUlkMTgxMzA4OGZlMWZiYzAxZmI0NjcpIiBkPSJNMTg1LjQzMi4wNjNMOTYuNDQgMTcuNTAxYTMuMjY4IDMuMjY4IDAgMCAwLTIuNjM0IDMuMDE0bC01LjQ3NCA5Mi40NTZhMy4yNjggMy4yNjggMCAwIDAgMy45OTcgMy4zNzhsMjQuNzc3LTUuNzE4YzIuMzE4LS41MzUgNC40MTMgMS41MDcgMy45MzYgMy44MzhsLTcuMzYxIDM2LjA0N2MtLjQ5NSAyLjQyNiAxLjc4MiA0LjUgNC4xNTEgMy43OGwxNS4zMDQtNC42NDljMi4zNzItLjcyIDQuNjUyIDEuMzYgNC4xNSAzLjc4OGwtMTEuNjk4IDU2LjYyMWMtLjczMiAzLjU0MiAzLjk3OSA1LjQ3MyA1Ljk0MyAyLjQzN2wxLjMxMy0yLjAyOGw3Mi41MTYtMTQ0LjcyYzEuMjE1LTIuNDIzLS44OC01LjE4Ni0zLjU0LTQuNjcybC0yNS41MDUgNC45MjJjLTIuMzk2LjQ2Mi00LjQzNS0xLjc3LTMuNzU5LTQuMTE0bDE2LjY0Ni01Ny43MDVjLjY3Ny0yLjM1LTEuMzctNC41ODMtMy43NjktNC4xMTNaIj48L3BhdGg+PC9zdmc+"; function create_fragment$1(ctx) { @@ -342,8 +381,9 @@ i: noop, o: noop, d(detaching) { - if (detaching) + if (detaching) { detach(button); + } mounted = false; dispose(); } @@ -452,8 +492,9 @@ current = false; }, d(detaching) { - if (detaching) + if (detaching) { detach(main); + } destroy_component(counter); } }; diff --git a/packages/create-monkey/template-svelte/package.json b/packages/create-monkey/template-svelte/package.json index 2d402fd..64c7b0c 100644 --- a/packages/create-monkey/template-svelte/package.json +++ b/packages/create-monkey/template-svelte/package.json @@ -9,9 +9,9 @@ "preview": "vite preview" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "2.2.0", - "svelte": "^3.59.0", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "@sveltejs/vite-plugin-svelte": "2.4.2", + "svelte": "^4.0.5", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-vanilla-ts/package.json b/packages/create-monkey/template-vanilla-ts/package.json index d5e4834..f44000f 100644 --- a/packages/create-monkey/template-vanilla-ts/package.json +++ b/packages/create-monkey/template-vanilla-ts/package.json @@ -9,8 +9,8 @@ "preview": "vite preview" }, "devDependencies": { - "typescript": "^5.0.4", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "typescript": "^5.1.6", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-vanilla/package.json b/packages/create-monkey/template-vanilla/package.json index e5acd0e..c40ea18 100644 --- a/packages/create-monkey/template-vanilla/package.json +++ b/packages/create-monkey/template-vanilla/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "devDependencies": { - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } } diff --git a/packages/create-monkey/template-vue-ts/dist/vite-vue-ts-starter.user.js b/packages/create-monkey/template-vue-ts/dist/vite-vue-ts-starter.user.js index dda95d7..ec7006e 100644 --- a/packages/create-monkey/template-vue-ts/dist/vite-vue-ts-starter.user.js +++ b/packages/create-monkey/template-vue-ts/dist/vite-vue-ts-starter.user.js @@ -5,7 +5,7 @@ // @author monkey // @icon https://vitejs.dev/logo.svg // @match https://www.google.com/ -// @require https://cdn.jsdelivr.net/npm/vue@3.2.47/dist/vue.global.prod.js +// @require https://cdn.jsdelivr.net/npm/vue@3.3.4/dist/vue.global.prod.js // ==/UserScript== (e=>{const o=document.createElement("style");o.dataset.source="vite-plugin-monkey",o.textContent=e,document.head.append(o)})(" :root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.read-the-docs[data-v-3d49b259]{color:#888}.logo[data-v-39299c53]{height:6em;padding:1.5em;will-change:filter}.logo[data-v-39299c53]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-39299c53]:hover{filter:drop-shadow(0 0 2em #42b883aa)} "); @@ -40,13 +40,13 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({ __name: "HelloWorld", props: { - msg: null + msg: {} }, setup(__props) { const count = vue.ref(0); return (_ctx, _cache) => { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("h1", null, vue.toDisplayString(__props.msg), 1), + vue.createElementVNode("h1", null, vue.toDisplayString(_ctx.msg), 1), vue.createElementVNode("div", _hoisted_1$1, [ vue.createElementVNode("button", { type: "button", diff --git a/packages/create-monkey/template-vue-ts/package.json b/packages/create-monkey/template-vue-ts/package.json index 53218bf..b25768f 100644 --- a/packages/create-monkey/template-vue-ts/package.json +++ b/packages/create-monkey/template-vue-ts/package.json @@ -9,13 +9,13 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.47" + "vue": "^3.3.4" }, "devDependencies": { - "@vitejs/plugin-vue": "^4.2.1", - "typescript": "^5.0.4", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0", - "vue-tsc": "^1.6.4" + "@vitejs/plugin-vue": "^4.2.3", + "typescript": "^5.1.6", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0", + "vue-tsc": "^1.8.4" } } diff --git a/packages/create-monkey/template-vue/dist/vite-vue-starter.user.js b/packages/create-monkey/template-vue/dist/vite-vue-starter.user.js index 90d8a35..8691917 100644 --- a/packages/create-monkey/template-vue/dist/vite-vue-starter.user.js +++ b/packages/create-monkey/template-vue/dist/vite-vue-starter.user.js @@ -5,7 +5,7 @@ // @author monkey // @icon https://vitejs.dev/logo.svg // @match https://www.google.com/ -// @require https://cdn.jsdelivr.net/npm/vue@3.2.47/dist/vue.global.prod.js +// @require https://cdn.jsdelivr.net/npm/vue@3.3.4/dist/vue.global.prod.js // ==/UserScript== (e=>{const o=document.createElement("style");o.dataset.source="vite-plugin-monkey",o.textContent=e,document.head.append(o)})(" :root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.read-the-docs[data-v-f8193d0b]{color:#888}.logo[data-v-5074d79b]{height:6em;padding:1.5em;will-change:filter}.logo[data-v-5074d79b]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-5074d79b]:hover{filter:drop-shadow(0 0 2em #42b883aa)} "); diff --git a/packages/create-monkey/template-vue/package.json b/packages/create-monkey/template-vue/package.json index 02aa702..d3f853a 100644 --- a/packages/create-monkey/template-vue/package.json +++ b/packages/create-monkey/template-vue/package.json @@ -9,11 +9,11 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.47" + "vue": "^3.3.4" }, "devDependencies": { - "@vitejs/plugin-vue": "^4.2.1", - "vite": "^4.3.5", - "vite-plugin-monkey": "^3.2.0" + "@vitejs/plugin-vue": "^4.2.3", + "vite": "^4.4.2", + "vite-plugin-monkey": "^3.3.0" } }