@tailor-cms/ce-image-edit 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Edit.vue.d.ts +13 -0
- package/dist/components/SideToolbar.vue.d.ts +10 -0
- package/dist/components/TopToolbar.vue.d.ts +10 -0
- package/dist/{index-98da595c.cjs → index-B7I2cEJD.cjs} +25 -119
- package/dist/{index-78ddb34c.js → index-CjgztT59.js} +25 -119
- package/dist/index.cjs +2521 -8937
- package/dist/index.css +3 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2522 -8938
- package/package.json +19 -15
- package/dist/style.css +0 -500
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Element } from '@tailor-cms/ce-image-manifest';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: Element;
|
|
4
|
+
isDragged: boolean;
|
|
5
|
+
isFocused: boolean;
|
|
6
|
+
isReadonly: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
save: (...args: any[]) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Element } from '@tailor-cms/ce-image-manifest';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: Element;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
save: (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Element } from '@tailor-cms/ce-image-manifest';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: Element;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
save: (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
2
|
+
var import_index = require("./index.css");
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
var __create$1 = Object.create;
|
|
5
5
|
var __defProp$1 = Object.defineProperty;
|
|
@@ -26,11 +26,11 @@ var __toESM$1 = (mod, isNodeMode, target2) => (target2 = mod != null ? __create$
|
|
|
26
26
|
// file that has been converted to a CommonJS file using a Babel-
|
|
27
27
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
28
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
-
|
|
29
|
+
__defProp$1(target2, "default", { value: mod, enumerable: true }),
|
|
30
30
|
mod
|
|
31
31
|
));
|
|
32
32
|
var init_esm_shims$1 = __esm$1({
|
|
33
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
33
|
+
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
var require_rfdc = __commonJS$1({
|
|
@@ -45,8 +45,7 @@ var require_rfdc = __commonJS$1({
|
|
|
45
45
|
}
|
|
46
46
|
function rfdc2(opts) {
|
|
47
47
|
opts = opts || {};
|
|
48
|
-
if (opts.circles)
|
|
49
|
-
return rfdcCircles(opts);
|
|
48
|
+
if (opts.circles) return rfdcCircles(opts);
|
|
50
49
|
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
51
50
|
constructorHandlers.set(Date, (o) => new Date(o));
|
|
52
51
|
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
@@ -77,17 +76,14 @@ var require_rfdc = __commonJS$1({
|
|
|
77
76
|
return a2;
|
|
78
77
|
}
|
|
79
78
|
function clone(o) {
|
|
80
|
-
if (typeof o !== "object" || o === null)
|
|
81
|
-
|
|
82
|
-
if (Array.isArray(o))
|
|
83
|
-
return cloneArray(o, clone);
|
|
79
|
+
if (typeof o !== "object" || o === null) return o;
|
|
80
|
+
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
84
81
|
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
85
82
|
return handler(o, clone);
|
|
86
83
|
}
|
|
87
84
|
const o2 = {};
|
|
88
85
|
for (const k in o) {
|
|
89
|
-
if (Object.hasOwnProperty.call(o, k) === false)
|
|
90
|
-
continue;
|
|
86
|
+
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
91
87
|
const cur = o[k];
|
|
92
88
|
if (typeof cur !== "object" || cur === null) {
|
|
93
89
|
o2[k] = cur;
|
|
@@ -102,10 +98,8 @@ var require_rfdc = __commonJS$1({
|
|
|
102
98
|
return o2;
|
|
103
99
|
}
|
|
104
100
|
function cloneProto(o) {
|
|
105
|
-
if (typeof o !== "object" || o === null)
|
|
106
|
-
|
|
107
|
-
if (Array.isArray(o))
|
|
108
|
-
return cloneArray(o, cloneProto);
|
|
101
|
+
if (typeof o !== "object" || o === null) return o;
|
|
102
|
+
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
109
103
|
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
110
104
|
return handler(o, cloneProto);
|
|
111
105
|
}
|
|
@@ -163,10 +157,8 @@ var require_rfdc = __commonJS$1({
|
|
|
163
157
|
return a2;
|
|
164
158
|
}
|
|
165
159
|
function clone(o) {
|
|
166
|
-
if (typeof o !== "object" || o === null)
|
|
167
|
-
|
|
168
|
-
if (Array.isArray(o))
|
|
169
|
-
return cloneArray(o, clone);
|
|
160
|
+
if (typeof o !== "object" || o === null) return o;
|
|
161
|
+
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
170
162
|
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
171
163
|
return handler(o, clone);
|
|
172
164
|
}
|
|
@@ -174,8 +166,7 @@ var require_rfdc = __commonJS$1({
|
|
|
174
166
|
refs.push(o);
|
|
175
167
|
refsNew.push(o2);
|
|
176
168
|
for (const k in o) {
|
|
177
|
-
if (Object.hasOwnProperty.call(o, k) === false)
|
|
178
|
-
continue;
|
|
169
|
+
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
179
170
|
const cur = o[k];
|
|
180
171
|
if (typeof cur !== "object" || cur === null) {
|
|
181
172
|
o2[k] = cur;
|
|
@@ -197,10 +188,8 @@ var require_rfdc = __commonJS$1({
|
|
|
197
188
|
return o2;
|
|
198
189
|
}
|
|
199
190
|
function cloneProto(o) {
|
|
200
|
-
if (typeof o !== "object" || o === null)
|
|
201
|
-
|
|
202
|
-
if (Array.isArray(o))
|
|
203
|
-
return cloneArray(o, cloneProto);
|
|
191
|
+
if (typeof o !== "object" || o === null) return o;
|
|
192
|
+
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
204
193
|
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
205
194
|
return handler(o, cloneProto);
|
|
206
195
|
}
|
|
@@ -241,7 +230,7 @@ isBrowser && target.self !== target.top;
|
|
|
241
230
|
var _a$1;
|
|
242
231
|
typeof navigator !== "undefined" && ((_a$1 = navigator.userAgent) == null ? void 0 : _a$1.toLowerCase().includes("electron"));
|
|
243
232
|
init_esm_shims$1();
|
|
244
|
-
var import_rfdc = __toESM$1(require_rfdc()
|
|
233
|
+
var import_rfdc = __toESM$1(require_rfdc());
|
|
245
234
|
var classifyRE = /(?:^|[-_/])(\w)/g;
|
|
246
235
|
function toUpper(_, c) {
|
|
247
236
|
return c ? c.toUpperCase() : "";
|
|
@@ -256,15 +245,10 @@ function basename(filename, ext) {
|
|
|
256
245
|
}
|
|
257
246
|
const lastSlashIndex = normalizedFilename.lastIndexOf("/");
|
|
258
247
|
const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1);
|
|
259
|
-
|
|
248
|
+
{
|
|
260
249
|
const extIndex = baseNameWithExt.lastIndexOf(ext);
|
|
261
250
|
return baseNameWithExt.substring(0, extIndex);
|
|
262
251
|
}
|
|
263
|
-
return "";
|
|
264
|
-
}
|
|
265
|
-
var HTTP_URL_RE = /^https?:\/\//;
|
|
266
|
-
function isUrlString(str) {
|
|
267
|
-
return str.startsWith("/") || HTTP_URL_RE.test(str);
|
|
268
252
|
}
|
|
269
253
|
var deepClone = (0, import_rfdc.default)({ circles: true });
|
|
270
254
|
const DEBOUNCE_DEFAULTS = {
|
|
@@ -550,11 +534,11 @@ var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(
|
|
|
550
534
|
// file that has been converted to a CommonJS file using a Babel-
|
|
551
535
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
552
536
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
553
|
-
|
|
537
|
+
__defProp(target22, "default", { value: mod, enumerable: true }),
|
|
554
538
|
mod
|
|
555
539
|
));
|
|
556
540
|
var init_esm_shims = __esm({
|
|
557
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
541
|
+
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
558
542
|
}
|
|
559
543
|
});
|
|
560
544
|
var require_speakingurl = __commonJS({
|
|
@@ -2537,10 +2521,9 @@ var StateEditor = class {
|
|
|
2537
2521
|
const section = sections.shift();
|
|
2538
2522
|
if (object instanceof Map)
|
|
2539
2523
|
object = object.get(section);
|
|
2540
|
-
if (object instanceof Set)
|
|
2524
|
+
else if (object instanceof Set)
|
|
2541
2525
|
object = Array.from(object.values())[section];
|
|
2542
|
-
else
|
|
2543
|
-
object = object[section];
|
|
2526
|
+
else object = object[section];
|
|
2544
2527
|
if (this.refEditor.isRef(object))
|
|
2545
2528
|
object = this.refEditor.get(object);
|
|
2546
2529
|
}
|
|
@@ -2551,8 +2534,7 @@ var StateEditor = class {
|
|
|
2551
2534
|
} else {
|
|
2552
2535
|
if (this.refEditor.isRef(item))
|
|
2553
2536
|
this.refEditor.set(item, value);
|
|
2554
|
-
else
|
|
2555
|
-
object[field] = value;
|
|
2537
|
+
else object[field] = value;
|
|
2556
2538
|
}
|
|
2557
2539
|
}
|
|
2558
2540
|
get(object, path) {
|
|
@@ -2591,8 +2573,7 @@ var StateEditor = class {
|
|
|
2591
2573
|
object.delete(field);
|
|
2592
2574
|
else if (toRaw(object) instanceof Set)
|
|
2593
2575
|
object.delete(Array.from(object.values())[field]);
|
|
2594
|
-
else
|
|
2595
|
-
Reflect.deleteProperty(object, field);
|
|
2576
|
+
else Reflect.deleteProperty(object, field);
|
|
2596
2577
|
}
|
|
2597
2578
|
if (!state.remove) {
|
|
2598
2579
|
const target22 = object[state.newKey || field];
|
|
@@ -2945,62 +2926,6 @@ var devtoolsState = new Proxy(target[STATE_KEY], {
|
|
|
2945
2926
|
return true;
|
|
2946
2927
|
}
|
|
2947
2928
|
});
|
|
2948
|
-
function onDevToolsConnected(fn) {
|
|
2949
|
-
return new Promise((resolve) => {
|
|
2950
|
-
if (devtoolsState.connected) {
|
|
2951
|
-
fn();
|
|
2952
|
-
resolve();
|
|
2953
|
-
}
|
|
2954
|
-
devtoolsContext.hooks.hook("devtoolsConnectedUpdated", ({ state }) => {
|
|
2955
|
-
if (state.connected) {
|
|
2956
|
-
fn();
|
|
2957
|
-
resolve();
|
|
2958
|
-
}
|
|
2959
|
-
});
|
|
2960
|
-
});
|
|
2961
|
-
}
|
|
2962
|
-
var resolveIcon = (icon) => {
|
|
2963
|
-
if (!icon)
|
|
2964
|
-
return;
|
|
2965
|
-
if (icon.startsWith("baseline-")) {
|
|
2966
|
-
return `custom-ic-${icon}`;
|
|
2967
|
-
}
|
|
2968
|
-
if (icon.startsWith("i-") || isUrlString(icon))
|
|
2969
|
-
return icon;
|
|
2970
|
-
return `custom-ic-baseline-${icon}`;
|
|
2971
|
-
};
|
|
2972
|
-
function addCustomTab(tab) {
|
|
2973
|
-
const tabs = target.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__;
|
|
2974
|
-
if (tabs.some((t) => t.name === tab.name))
|
|
2975
|
-
return;
|
|
2976
|
-
tabs.push({
|
|
2977
|
-
...tab,
|
|
2978
|
-
icon: resolveIcon(tab.icon)
|
|
2979
|
-
});
|
|
2980
|
-
updateAllStates();
|
|
2981
|
-
}
|
|
2982
|
-
function addCustomCommand(action) {
|
|
2983
|
-
const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
|
|
2984
|
-
if (commands.some((t) => t.id === action.id))
|
|
2985
|
-
return;
|
|
2986
|
-
commands.push({
|
|
2987
|
-
...action,
|
|
2988
|
-
icon: resolveIcon(action.icon),
|
|
2989
|
-
children: action.children ? action.children.map((child) => ({
|
|
2990
|
-
...child,
|
|
2991
|
-
icon: resolveIcon(child.icon)
|
|
2992
|
-
})) : void 0
|
|
2993
|
-
});
|
|
2994
|
-
updateAllStates();
|
|
2995
|
-
}
|
|
2996
|
-
function removeCustomCommand(actionId) {
|
|
2997
|
-
const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
|
|
2998
|
-
const index = commands.findIndex((t) => t.id === actionId);
|
|
2999
|
-
if (index === -1)
|
|
3000
|
-
return;
|
|
3001
|
-
commands.splice(index, 1);
|
|
3002
|
-
updateAllStates();
|
|
3003
|
-
}
|
|
3004
2929
|
function openInEditor(options = {}) {
|
|
3005
2930
|
var _a25, _b25, _c;
|
|
3006
2931
|
const { file, host, baseUrl = window.location.origin, line = 0, column = 0 } = options;
|
|
@@ -3502,7 +3427,7 @@ function createDevToolsApi(hooks2) {
|
|
|
3502
3427
|
getComponentRenderCode(id) {
|
|
3503
3428
|
const instance = getComponentInstance(activeAppRecord.value, id);
|
|
3504
3429
|
if (instance)
|
|
3505
|
-
return !((instance == null ? void 0 : instance.type)
|
|
3430
|
+
return !(typeof (instance == null ? void 0 : instance.type) === "function") ? instance.render.toString() : instance.type.toString();
|
|
3506
3431
|
},
|
|
3507
3432
|
// scroll to component
|
|
3508
3433
|
scrollToComponent(id) {
|
|
@@ -3565,27 +3490,13 @@ var _a16, _b16;
|
|
|
3565
3490
|
};
|
|
3566
3491
|
var devtoolsContext = target.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
3567
3492
|
init_esm_shims();
|
|
3568
|
-
__toESM(require_speakingurl2()
|
|
3493
|
+
__toESM(require_speakingurl2());
|
|
3569
3494
|
var _a17, _b17;
|
|
3570
3495
|
(_b17 = (_a17 = target).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null ? _b17 : _a17.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
|
|
3571
3496
|
id: 0,
|
|
3572
3497
|
appIds: /* @__PURE__ */ new Set()
|
|
3573
3498
|
};
|
|
3574
|
-
|
|
3575
|
-
return new Promise((resolve) => {
|
|
3576
|
-
if (devtoolsState.connected && devtoolsState.clientConnected) {
|
|
3577
|
-
fn();
|
|
3578
|
-
resolve();
|
|
3579
|
-
return;
|
|
3580
|
-
}
|
|
3581
|
-
devtoolsContext.hooks.hook("devtoolsConnectedUpdated", ({ state }) => {
|
|
3582
|
-
if (state.connected && state.clientConnected) {
|
|
3583
|
-
fn();
|
|
3584
|
-
resolve();
|
|
3585
|
-
}
|
|
3586
|
-
});
|
|
3587
|
-
});
|
|
3588
|
-
}
|
|
3499
|
+
init_esm_shims();
|
|
3589
3500
|
init_esm_shims();
|
|
3590
3501
|
function toggleHighPerfMode(state) {
|
|
3591
3502
|
devtoolsState.highPerfModeEnabled = state != null ? state : !devtoolsState.highPerfModeEnabled;
|
|
@@ -4405,10 +4316,5 @@ init_esm_shims();
|
|
|
4405
4316
|
init_esm_shims();
|
|
4406
4317
|
init_esm_shims();
|
|
4407
4318
|
init_esm_shims();
|
|
4408
|
-
exports.addCustomCommand = addCustomCommand;
|
|
4409
|
-
exports.addCustomTab = addCustomTab;
|
|
4410
|
-
exports.onDevToolsClientConnected = onDevToolsClientConnected;
|
|
4411
|
-
exports.onDevToolsConnected = onDevToolsConnected;
|
|
4412
|
-
exports.removeCustomCommand = removeCustomCommand;
|
|
4413
4319
|
exports.setupDevToolsPlugin = setupDevToolsPlugin;
|
|
4414
4320
|
exports.setupDevtoolsPlugin = setupDevToolsPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index.css";
|
|
2
2
|
var __create$1 = Object.create;
|
|
3
3
|
var __defProp$1 = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
@@ -24,11 +24,11 @@ var __toESM$1 = (mod, isNodeMode, target2) => (target2 = mod != null ? __create$
|
|
|
24
24
|
// file that has been converted to a CommonJS file using a Babel-
|
|
25
25
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
26
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
|
|
27
|
+
__defProp$1(target2, "default", { value: mod, enumerable: true }),
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
var init_esm_shims$1 = __esm$1({
|
|
31
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
31
|
+
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
var require_rfdc = __commonJS$1({
|
|
@@ -43,8 +43,7 @@ var require_rfdc = __commonJS$1({
|
|
|
43
43
|
}
|
|
44
44
|
function rfdc2(opts) {
|
|
45
45
|
opts = opts || {};
|
|
46
|
-
if (opts.circles)
|
|
47
|
-
return rfdcCircles(opts);
|
|
46
|
+
if (opts.circles) return rfdcCircles(opts);
|
|
48
47
|
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
49
48
|
constructorHandlers.set(Date, (o) => new Date(o));
|
|
50
49
|
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
@@ -75,17 +74,14 @@ var require_rfdc = __commonJS$1({
|
|
|
75
74
|
return a2;
|
|
76
75
|
}
|
|
77
76
|
function clone(o) {
|
|
78
|
-
if (typeof o !== "object" || o === null)
|
|
79
|
-
|
|
80
|
-
if (Array.isArray(o))
|
|
81
|
-
return cloneArray(o, clone);
|
|
77
|
+
if (typeof o !== "object" || o === null) return o;
|
|
78
|
+
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
82
79
|
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
83
80
|
return handler(o, clone);
|
|
84
81
|
}
|
|
85
82
|
const o2 = {};
|
|
86
83
|
for (const k in o) {
|
|
87
|
-
if (Object.hasOwnProperty.call(o, k) === false)
|
|
88
|
-
continue;
|
|
84
|
+
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
89
85
|
const cur = o[k];
|
|
90
86
|
if (typeof cur !== "object" || cur === null) {
|
|
91
87
|
o2[k] = cur;
|
|
@@ -100,10 +96,8 @@ var require_rfdc = __commonJS$1({
|
|
|
100
96
|
return o2;
|
|
101
97
|
}
|
|
102
98
|
function cloneProto(o) {
|
|
103
|
-
if (typeof o !== "object" || o === null)
|
|
104
|
-
|
|
105
|
-
if (Array.isArray(o))
|
|
106
|
-
return cloneArray(o, cloneProto);
|
|
99
|
+
if (typeof o !== "object" || o === null) return o;
|
|
100
|
+
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
107
101
|
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
108
102
|
return handler(o, cloneProto);
|
|
109
103
|
}
|
|
@@ -161,10 +155,8 @@ var require_rfdc = __commonJS$1({
|
|
|
161
155
|
return a2;
|
|
162
156
|
}
|
|
163
157
|
function clone(o) {
|
|
164
|
-
if (typeof o !== "object" || o === null)
|
|
165
|
-
|
|
166
|
-
if (Array.isArray(o))
|
|
167
|
-
return cloneArray(o, clone);
|
|
158
|
+
if (typeof o !== "object" || o === null) return o;
|
|
159
|
+
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
168
160
|
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
169
161
|
return handler(o, clone);
|
|
170
162
|
}
|
|
@@ -172,8 +164,7 @@ var require_rfdc = __commonJS$1({
|
|
|
172
164
|
refs.push(o);
|
|
173
165
|
refsNew.push(o2);
|
|
174
166
|
for (const k in o) {
|
|
175
|
-
if (Object.hasOwnProperty.call(o, k) === false)
|
|
176
|
-
continue;
|
|
167
|
+
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
177
168
|
const cur = o[k];
|
|
178
169
|
if (typeof cur !== "object" || cur === null) {
|
|
179
170
|
o2[k] = cur;
|
|
@@ -195,10 +186,8 @@ var require_rfdc = __commonJS$1({
|
|
|
195
186
|
return o2;
|
|
196
187
|
}
|
|
197
188
|
function cloneProto(o) {
|
|
198
|
-
if (typeof o !== "object" || o === null)
|
|
199
|
-
|
|
200
|
-
if (Array.isArray(o))
|
|
201
|
-
return cloneArray(o, cloneProto);
|
|
189
|
+
if (typeof o !== "object" || o === null) return o;
|
|
190
|
+
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
202
191
|
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
203
192
|
return handler(o, cloneProto);
|
|
204
193
|
}
|
|
@@ -239,7 +228,7 @@ isBrowser && target.self !== target.top;
|
|
|
239
228
|
var _a$1;
|
|
240
229
|
typeof navigator !== "undefined" && ((_a$1 = navigator.userAgent) == null ? void 0 : _a$1.toLowerCase().includes("electron"));
|
|
241
230
|
init_esm_shims$1();
|
|
242
|
-
var import_rfdc = __toESM$1(require_rfdc()
|
|
231
|
+
var import_rfdc = __toESM$1(require_rfdc());
|
|
243
232
|
var classifyRE = /(?:^|[-_/])(\w)/g;
|
|
244
233
|
function toUpper(_, c) {
|
|
245
234
|
return c ? c.toUpperCase() : "";
|
|
@@ -254,15 +243,10 @@ function basename(filename, ext) {
|
|
|
254
243
|
}
|
|
255
244
|
const lastSlashIndex = normalizedFilename.lastIndexOf("/");
|
|
256
245
|
const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1);
|
|
257
|
-
|
|
246
|
+
{
|
|
258
247
|
const extIndex = baseNameWithExt.lastIndexOf(ext);
|
|
259
248
|
return baseNameWithExt.substring(0, extIndex);
|
|
260
249
|
}
|
|
261
|
-
return "";
|
|
262
|
-
}
|
|
263
|
-
var HTTP_URL_RE = /^https?:\/\//;
|
|
264
|
-
function isUrlString(str) {
|
|
265
|
-
return str.startsWith("/") || HTTP_URL_RE.test(str);
|
|
266
250
|
}
|
|
267
251
|
var deepClone = (0, import_rfdc.default)({ circles: true });
|
|
268
252
|
const DEBOUNCE_DEFAULTS = {
|
|
@@ -548,11 +532,11 @@ var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(
|
|
|
548
532
|
// file that has been converted to a CommonJS file using a Babel-
|
|
549
533
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
550
534
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
551
|
-
|
|
535
|
+
__defProp(target22, "default", { value: mod, enumerable: true }),
|
|
552
536
|
mod
|
|
553
537
|
));
|
|
554
538
|
var init_esm_shims = __esm({
|
|
555
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
539
|
+
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
556
540
|
}
|
|
557
541
|
});
|
|
558
542
|
var require_speakingurl = __commonJS({
|
|
@@ -2535,10 +2519,9 @@ var StateEditor = class {
|
|
|
2535
2519
|
const section = sections.shift();
|
|
2536
2520
|
if (object instanceof Map)
|
|
2537
2521
|
object = object.get(section);
|
|
2538
|
-
if (object instanceof Set)
|
|
2522
|
+
else if (object instanceof Set)
|
|
2539
2523
|
object = Array.from(object.values())[section];
|
|
2540
|
-
else
|
|
2541
|
-
object = object[section];
|
|
2524
|
+
else object = object[section];
|
|
2542
2525
|
if (this.refEditor.isRef(object))
|
|
2543
2526
|
object = this.refEditor.get(object);
|
|
2544
2527
|
}
|
|
@@ -2549,8 +2532,7 @@ var StateEditor = class {
|
|
|
2549
2532
|
} else {
|
|
2550
2533
|
if (this.refEditor.isRef(item))
|
|
2551
2534
|
this.refEditor.set(item, value);
|
|
2552
|
-
else
|
|
2553
|
-
object[field] = value;
|
|
2535
|
+
else object[field] = value;
|
|
2554
2536
|
}
|
|
2555
2537
|
}
|
|
2556
2538
|
get(object, path) {
|
|
@@ -2589,8 +2571,7 @@ var StateEditor = class {
|
|
|
2589
2571
|
object.delete(field);
|
|
2590
2572
|
else if (toRaw(object) instanceof Set)
|
|
2591
2573
|
object.delete(Array.from(object.values())[field]);
|
|
2592
|
-
else
|
|
2593
|
-
Reflect.deleteProperty(object, field);
|
|
2574
|
+
else Reflect.deleteProperty(object, field);
|
|
2594
2575
|
}
|
|
2595
2576
|
if (!state.remove) {
|
|
2596
2577
|
const target22 = object[state.newKey || field];
|
|
@@ -2943,62 +2924,6 @@ var devtoolsState = new Proxy(target[STATE_KEY], {
|
|
|
2943
2924
|
return true;
|
|
2944
2925
|
}
|
|
2945
2926
|
});
|
|
2946
|
-
function onDevToolsConnected(fn) {
|
|
2947
|
-
return new Promise((resolve) => {
|
|
2948
|
-
if (devtoolsState.connected) {
|
|
2949
|
-
fn();
|
|
2950
|
-
resolve();
|
|
2951
|
-
}
|
|
2952
|
-
devtoolsContext.hooks.hook("devtoolsConnectedUpdated", ({ state }) => {
|
|
2953
|
-
if (state.connected) {
|
|
2954
|
-
fn();
|
|
2955
|
-
resolve();
|
|
2956
|
-
}
|
|
2957
|
-
});
|
|
2958
|
-
});
|
|
2959
|
-
}
|
|
2960
|
-
var resolveIcon = (icon) => {
|
|
2961
|
-
if (!icon)
|
|
2962
|
-
return;
|
|
2963
|
-
if (icon.startsWith("baseline-")) {
|
|
2964
|
-
return `custom-ic-${icon}`;
|
|
2965
|
-
}
|
|
2966
|
-
if (icon.startsWith("i-") || isUrlString(icon))
|
|
2967
|
-
return icon;
|
|
2968
|
-
return `custom-ic-baseline-${icon}`;
|
|
2969
|
-
};
|
|
2970
|
-
function addCustomTab(tab) {
|
|
2971
|
-
const tabs = target.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__;
|
|
2972
|
-
if (tabs.some((t) => t.name === tab.name))
|
|
2973
|
-
return;
|
|
2974
|
-
tabs.push({
|
|
2975
|
-
...tab,
|
|
2976
|
-
icon: resolveIcon(tab.icon)
|
|
2977
|
-
});
|
|
2978
|
-
updateAllStates();
|
|
2979
|
-
}
|
|
2980
|
-
function addCustomCommand(action) {
|
|
2981
|
-
const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
|
|
2982
|
-
if (commands.some((t) => t.id === action.id))
|
|
2983
|
-
return;
|
|
2984
|
-
commands.push({
|
|
2985
|
-
...action,
|
|
2986
|
-
icon: resolveIcon(action.icon),
|
|
2987
|
-
children: action.children ? action.children.map((child) => ({
|
|
2988
|
-
...child,
|
|
2989
|
-
icon: resolveIcon(child.icon)
|
|
2990
|
-
})) : void 0
|
|
2991
|
-
});
|
|
2992
|
-
updateAllStates();
|
|
2993
|
-
}
|
|
2994
|
-
function removeCustomCommand(actionId) {
|
|
2995
|
-
const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
|
|
2996
|
-
const index = commands.findIndex((t) => t.id === actionId);
|
|
2997
|
-
if (index === -1)
|
|
2998
|
-
return;
|
|
2999
|
-
commands.splice(index, 1);
|
|
3000
|
-
updateAllStates();
|
|
3001
|
-
}
|
|
3002
2927
|
function openInEditor(options = {}) {
|
|
3003
2928
|
var _a25, _b25, _c;
|
|
3004
2929
|
const { file, host, baseUrl = window.location.origin, line = 0, column = 0 } = options;
|
|
@@ -3500,7 +3425,7 @@ function createDevToolsApi(hooks2) {
|
|
|
3500
3425
|
getComponentRenderCode(id) {
|
|
3501
3426
|
const instance = getComponentInstance(activeAppRecord.value, id);
|
|
3502
3427
|
if (instance)
|
|
3503
|
-
return !((instance == null ? void 0 : instance.type)
|
|
3428
|
+
return !(typeof (instance == null ? void 0 : instance.type) === "function") ? instance.render.toString() : instance.type.toString();
|
|
3504
3429
|
},
|
|
3505
3430
|
// scroll to component
|
|
3506
3431
|
scrollToComponent(id) {
|
|
@@ -3563,27 +3488,13 @@ var _a16, _b16;
|
|
|
3563
3488
|
};
|
|
3564
3489
|
var devtoolsContext = target.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
3565
3490
|
init_esm_shims();
|
|
3566
|
-
__toESM(require_speakingurl2()
|
|
3491
|
+
__toESM(require_speakingurl2());
|
|
3567
3492
|
var _a17, _b17;
|
|
3568
3493
|
(_b17 = (_a17 = target).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null ? _b17 : _a17.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
|
|
3569
3494
|
id: 0,
|
|
3570
3495
|
appIds: /* @__PURE__ */ new Set()
|
|
3571
3496
|
};
|
|
3572
|
-
|
|
3573
|
-
return new Promise((resolve) => {
|
|
3574
|
-
if (devtoolsState.connected && devtoolsState.clientConnected) {
|
|
3575
|
-
fn();
|
|
3576
|
-
resolve();
|
|
3577
|
-
return;
|
|
3578
|
-
}
|
|
3579
|
-
devtoolsContext.hooks.hook("devtoolsConnectedUpdated", ({ state }) => {
|
|
3580
|
-
if (state.connected && state.clientConnected) {
|
|
3581
|
-
fn();
|
|
3582
|
-
resolve();
|
|
3583
|
-
}
|
|
3584
|
-
});
|
|
3585
|
-
});
|
|
3586
|
-
}
|
|
3497
|
+
init_esm_shims();
|
|
3587
3498
|
init_esm_shims();
|
|
3588
3499
|
function toggleHighPerfMode(state) {
|
|
3589
3500
|
devtoolsState.highPerfModeEnabled = state != null ? state : !devtoolsState.highPerfModeEnabled;
|
|
@@ -4404,11 +4315,6 @@ init_esm_shims();
|
|
|
4404
4315
|
init_esm_shims();
|
|
4405
4316
|
init_esm_shims();
|
|
4406
4317
|
export {
|
|
4407
|
-
addCustomCommand,
|
|
4408
|
-
addCustomTab,
|
|
4409
|
-
onDevToolsClientConnected,
|
|
4410
|
-
onDevToolsConnected,
|
|
4411
|
-
removeCustomCommand,
|
|
4412
4318
|
setupDevToolsPlugin,
|
|
4413
4319
|
setupDevToolsPlugin as setupDevtoolsPlugin
|
|
4414
4320
|
};
|