@vue/devtools-kit 7.6.8 → 7.7.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/index.cjs +34 -35
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +31 -32
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
"use strict";
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -1579,8 +1579,8 @@ var require_speakingurl2 = __commonJS({
|
|
|
1579
1579
|
});
|
|
1580
1580
|
|
|
1581
1581
|
// src/index.ts
|
|
1582
|
-
var
|
|
1583
|
-
__export(
|
|
1582
|
+
var index_exports = {};
|
|
1583
|
+
__export(index_exports, {
|
|
1584
1584
|
DevToolsContextHookKeys: () => DevToolsContextHookKeys,
|
|
1585
1585
|
DevToolsMessagingHookKeys: () => DevToolsMessagingHookKeys,
|
|
1586
1586
|
DevToolsV6PluginAPIHookKeys: () => DevToolsV6PluginAPIHookKeys,
|
|
@@ -1664,7 +1664,7 @@ __export(src_exports, {
|
|
|
1664
1664
|
updateDevToolsState: () => updateDevToolsState,
|
|
1665
1665
|
updateTimelineLayersState: () => updateTimelineLayersState
|
|
1666
1666
|
});
|
|
1667
|
-
module.exports = __toCommonJS(
|
|
1667
|
+
module.exports = __toCommonJS(index_exports);
|
|
1668
1668
|
init_cjs_shims();
|
|
1669
1669
|
|
|
1670
1670
|
// src/core/index.ts
|
|
@@ -2045,18 +2045,11 @@ function inspectFn(e) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
2047
|
function selectComponentFn(e, cb) {
|
|
2048
|
-
var _a25;
|
|
2049
2048
|
e.preventDefault();
|
|
2050
2049
|
e.stopPropagation();
|
|
2051
2050
|
if (inspectInstance) {
|
|
2052
|
-
const
|
|
2053
|
-
|
|
2054
|
-
app,
|
|
2055
|
-
uid: app.uid,
|
|
2056
|
-
instance: inspectInstance
|
|
2057
|
-
}).then((id) => {
|
|
2058
|
-
cb(id);
|
|
2059
|
-
});
|
|
2051
|
+
const uniqueComponentId = getUniqueComponentId(inspectInstance);
|
|
2052
|
+
cb(uniqueComponentId);
|
|
2060
2053
|
}
|
|
2061
2054
|
}
|
|
2062
2055
|
var inspectComponentHighLighterSelectFn = null;
|
|
@@ -4265,9 +4258,13 @@ function callDevToolsPluginSetupFn(plugin, app) {
|
|
|
4265
4258
|
function removeRegisteredPluginApp(app) {
|
|
4266
4259
|
import_devtools_shared14.target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.delete(app);
|
|
4267
4260
|
}
|
|
4268
|
-
function registerDevToolsPlugin(app) {
|
|
4269
|
-
if (import_devtools_shared14.target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(app)
|
|
4261
|
+
function registerDevToolsPlugin(app, options) {
|
|
4262
|
+
if (import_devtools_shared14.target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(app)) {
|
|
4270
4263
|
return;
|
|
4264
|
+
}
|
|
4265
|
+
if (devtoolsState.highPerfModeEnabled && !(options == null ? void 0 : options.inspectingComponent)) {
|
|
4266
|
+
return;
|
|
4267
|
+
}
|
|
4271
4268
|
import_devtools_shared14.target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(app);
|
|
4272
4269
|
devtoolsPluginBuffer.forEach((plugin) => {
|
|
4273
4270
|
callDevToolsPluginSetupFn(plugin, app);
|
|
@@ -4447,14 +4444,14 @@ function createDevToolsApi(hooks2) {
|
|
|
4447
4444
|
// get vue inspector
|
|
4448
4445
|
getVueInspector: getComponentInspector,
|
|
4449
4446
|
// toggle app
|
|
4450
|
-
toggleApp(id) {
|
|
4447
|
+
toggleApp(id, options) {
|
|
4451
4448
|
const appRecord = devtoolsAppRecords.value.find((record) => record.id === id);
|
|
4452
4449
|
if (appRecord) {
|
|
4453
4450
|
setActiveAppRecordId(id);
|
|
4454
4451
|
setActiveAppRecord(appRecord);
|
|
4455
4452
|
normalizeRouterInfo(appRecord, activeAppRecord);
|
|
4456
4453
|
callInspectorUpdatedHook();
|
|
4457
|
-
registerDevToolsPlugin(appRecord.app);
|
|
4454
|
+
registerDevToolsPlugin(appRecord.app, options);
|
|
4458
4455
|
}
|
|
4459
4456
|
},
|
|
4460
4457
|
// inspect dom
|
|
@@ -4877,16 +4874,16 @@ init_cjs_shims();
|
|
|
4877
4874
|
// src/messaging/presets/broadcast-channel/index.ts
|
|
4878
4875
|
init_cjs_shims();
|
|
4879
4876
|
|
|
4880
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4877
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.js
|
|
4881
4878
|
init_cjs_shims();
|
|
4882
4879
|
|
|
4883
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4880
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.js
|
|
4884
4881
|
init_cjs_shims();
|
|
4885
4882
|
|
|
4886
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4883
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.js
|
|
4887
4884
|
init_cjs_shims();
|
|
4888
4885
|
|
|
4889
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4886
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.js
|
|
4890
4887
|
init_cjs_shims();
|
|
4891
4888
|
var DoubleIndexedKV = class {
|
|
4892
4889
|
constructor() {
|
|
@@ -4909,7 +4906,7 @@ var DoubleIndexedKV = class {
|
|
|
4909
4906
|
}
|
|
4910
4907
|
};
|
|
4911
4908
|
|
|
4912
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4909
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.js
|
|
4913
4910
|
var Registry = class {
|
|
4914
4911
|
constructor(generateIdentifier) {
|
|
4915
4912
|
this.generateIdentifier = generateIdentifier;
|
|
@@ -4935,7 +4932,7 @@ var Registry = class {
|
|
|
4935
4932
|
}
|
|
4936
4933
|
};
|
|
4937
4934
|
|
|
4938
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4935
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.js
|
|
4939
4936
|
var ClassRegistry = class extends Registry {
|
|
4940
4937
|
constructor() {
|
|
4941
4938
|
super((c) => c.name);
|
|
@@ -4956,10 +4953,10 @@ var ClassRegistry = class extends Registry {
|
|
|
4956
4953
|
}
|
|
4957
4954
|
};
|
|
4958
4955
|
|
|
4959
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4956
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.js
|
|
4960
4957
|
init_cjs_shims();
|
|
4961
4958
|
|
|
4962
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4959
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.js
|
|
4963
4960
|
init_cjs_shims();
|
|
4964
4961
|
function valuesOfObj(record) {
|
|
4965
4962
|
if ("values" in Object) {
|
|
@@ -5003,7 +5000,7 @@ function findArr(record, predicate) {
|
|
|
5003
5000
|
return void 0;
|
|
5004
5001
|
}
|
|
5005
5002
|
|
|
5006
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5003
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.js
|
|
5007
5004
|
var CustomTransformerRegistry = class {
|
|
5008
5005
|
constructor() {
|
|
5009
5006
|
this.transfomers = {};
|
|
@@ -5019,10 +5016,10 @@ var CustomTransformerRegistry = class {
|
|
|
5019
5016
|
}
|
|
5020
5017
|
};
|
|
5021
5018
|
|
|
5022
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5019
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.js
|
|
5023
5020
|
init_cjs_shims();
|
|
5024
5021
|
|
|
5025
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5022
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.js
|
|
5026
5023
|
init_cjs_shims();
|
|
5027
5024
|
var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
|
|
5028
5025
|
var isUndefined = (payload) => typeof payload === "undefined";
|
|
@@ -5054,7 +5051,7 @@ var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
|
|
|
5054
5051
|
var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
5055
5052
|
var isURL = (payload) => payload instanceof URL;
|
|
5056
5053
|
|
|
5057
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5054
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.js
|
|
5058
5055
|
init_cjs_shims();
|
|
5059
5056
|
var escapeKey = (key) => key.replace(/\./g, "\\.");
|
|
5060
5057
|
var stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
|
|
@@ -5082,7 +5079,7 @@ var parsePath = (string) => {
|
|
|
5082
5079
|
return result;
|
|
5083
5080
|
};
|
|
5084
5081
|
|
|
5085
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5082
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.js
|
|
5086
5083
|
init_cjs_shims();
|
|
5087
5084
|
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
5088
5085
|
return {
|
|
@@ -5217,7 +5214,7 @@ var classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, sup
|
|
|
5217
5214
|
}, (v, a, superJson) => {
|
|
5218
5215
|
const clazz = superJson.classRegistry.getValue(a[1]);
|
|
5219
5216
|
if (!clazz) {
|
|
5220
|
-
throw new Error(
|
|
5217
|
+
throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
5221
5218
|
}
|
|
5222
5219
|
return Object.assign(Object.create(clazz.prototype), v);
|
|
5223
5220
|
});
|
|
@@ -5281,9 +5278,11 @@ var untransformValue = (json, type, superJson) => {
|
|
|
5281
5278
|
}
|
|
5282
5279
|
};
|
|
5283
5280
|
|
|
5284
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5281
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.js
|
|
5285
5282
|
init_cjs_shims();
|
|
5286
5283
|
var getNthKey = (value, n) => {
|
|
5284
|
+
if (n > value.size)
|
|
5285
|
+
throw new Error("index out of bounds");
|
|
5287
5286
|
const keys = value.keys();
|
|
5288
5287
|
while (n > 0) {
|
|
5289
5288
|
keys.next();
|
|
@@ -5396,7 +5395,7 @@ var setDeep = (object, path, mapper) => {
|
|
|
5396
5395
|
return object;
|
|
5397
5396
|
};
|
|
5398
5397
|
|
|
5399
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5398
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.js
|
|
5400
5399
|
function traverse(tree, walker2, origin = []) {
|
|
5401
5400
|
if (!tree) {
|
|
5402
5401
|
return;
|
|
@@ -5598,7 +5597,7 @@ function copy(target22, options = {}) {
|
|
|
5598
5597
|
}, {});
|
|
5599
5598
|
}
|
|
5600
5599
|
|
|
5601
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5600
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.js
|
|
5602
5601
|
var SuperJSON = class {
|
|
5603
5602
|
/**
|
|
5604
5603
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
package/dist/index.d.cts
CHANGED
|
@@ -502,7 +502,9 @@ declare function createDevToolsApi(hooks: Hookable<DevToolsContextHooks & DevToo
|
|
|
502
502
|
scrollToComponent(id: string): void;
|
|
503
503
|
openInEditor: typeof openInEditor;
|
|
504
504
|
getVueInspector: typeof getComponentInspector;
|
|
505
|
-
toggleApp(id: string
|
|
505
|
+
toggleApp(id: string, options?: {
|
|
506
|
+
inspectingComponent?: boolean;
|
|
507
|
+
}): void;
|
|
506
508
|
inspectDOM(instanceId: string): void;
|
|
507
509
|
updatePluginSettings(pluginId: string, key: string, value: string): void;
|
|
508
510
|
getPluginSettings(pluginId: string): {
|
|
@@ -847,7 +849,9 @@ declare function createComponentsDevToolsPlugin(app: App): [PluginDescriptor, Pl
|
|
|
847
849
|
declare function setupDevToolsPlugin(pluginDescriptor: PluginDescriptor, setupFn: PluginSetupFunction): void;
|
|
848
850
|
declare function callDevToolsPluginSetupFn(plugin: [PluginDescriptor, PluginSetupFunction], app: App): void;
|
|
849
851
|
declare function removeRegisteredPluginApp(app: App): void;
|
|
850
|
-
declare function registerDevToolsPlugin(app: App
|
|
852
|
+
declare function registerDevToolsPlugin(app: App, options?: {
|
|
853
|
+
inspectingComponent?: boolean;
|
|
854
|
+
}): void;
|
|
851
855
|
|
|
852
856
|
interface ComponentBoundingRect {
|
|
853
857
|
left: number;
|
|
@@ -1074,7 +1078,9 @@ declare const devtools: {
|
|
|
1074
1078
|
scrollToComponent(id: string): void;
|
|
1075
1079
|
openInEditor: typeof openInEditor;
|
|
1076
1080
|
getVueInspector: typeof getComponentInspector;
|
|
1077
|
-
toggleApp(id: string
|
|
1081
|
+
toggleApp(id: string, options?: {
|
|
1082
|
+
inspectingComponent?: boolean;
|
|
1083
|
+
}): void;
|
|
1078
1084
|
inspectDOM(instanceId: string): void;
|
|
1079
1085
|
updatePluginSettings(pluginId: string, key: string, value: string): void;
|
|
1080
1086
|
getPluginSettings(pluginId: string): {
|
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,9 @@ declare function createDevToolsApi(hooks: Hookable<DevToolsContextHooks & DevToo
|
|
|
502
502
|
scrollToComponent(id: string): void;
|
|
503
503
|
openInEditor: typeof openInEditor;
|
|
504
504
|
getVueInspector: typeof getComponentInspector;
|
|
505
|
-
toggleApp(id: string
|
|
505
|
+
toggleApp(id: string, options?: {
|
|
506
|
+
inspectingComponent?: boolean;
|
|
507
|
+
}): void;
|
|
506
508
|
inspectDOM(instanceId: string): void;
|
|
507
509
|
updatePluginSettings(pluginId: string, key: string, value: string): void;
|
|
508
510
|
getPluginSettings(pluginId: string): {
|
|
@@ -847,7 +849,9 @@ declare function createComponentsDevToolsPlugin(app: App): [PluginDescriptor, Pl
|
|
|
847
849
|
declare function setupDevToolsPlugin(pluginDescriptor: PluginDescriptor, setupFn: PluginSetupFunction): void;
|
|
848
850
|
declare function callDevToolsPluginSetupFn(plugin: [PluginDescriptor, PluginSetupFunction], app: App): void;
|
|
849
851
|
declare function removeRegisteredPluginApp(app: App): void;
|
|
850
|
-
declare function registerDevToolsPlugin(app: App
|
|
852
|
+
declare function registerDevToolsPlugin(app: App, options?: {
|
|
853
|
+
inspectingComponent?: boolean;
|
|
854
|
+
}): void;
|
|
851
855
|
|
|
852
856
|
interface ComponentBoundingRect {
|
|
853
857
|
left: number;
|
|
@@ -1074,7 +1078,9 @@ declare const devtools: {
|
|
|
1074
1078
|
scrollToComponent(id: string): void;
|
|
1075
1079
|
openInEditor: typeof openInEditor;
|
|
1076
1080
|
getVueInspector: typeof getComponentInspector;
|
|
1077
|
-
toggleApp(id: string
|
|
1081
|
+
toggleApp(id: string, options?: {
|
|
1082
|
+
inspectingComponent?: boolean;
|
|
1083
|
+
}): void;
|
|
1078
1084
|
inspectDOM(instanceId: string): void;
|
|
1079
1085
|
updatePluginSettings(pluginId: string, key: string, value: string): void;
|
|
1080
1086
|
getPluginSettings(pluginId: string): {
|
package/dist/index.js
CHANGED
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
"use strict";
|
|
34
34
|
}
|
|
35
35
|
});
|
|
@@ -1953,18 +1953,11 @@ function inspectFn(e) {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
function selectComponentFn(e, cb) {
|
|
1956
|
-
var _a25;
|
|
1957
1956
|
e.preventDefault();
|
|
1958
1957
|
e.stopPropagation();
|
|
1959
1958
|
if (inspectInstance) {
|
|
1960
|
-
const
|
|
1961
|
-
|
|
1962
|
-
app,
|
|
1963
|
-
uid: app.uid,
|
|
1964
|
-
instance: inspectInstance
|
|
1965
|
-
}).then((id) => {
|
|
1966
|
-
cb(id);
|
|
1967
|
-
});
|
|
1959
|
+
const uniqueComponentId = getUniqueComponentId(inspectInstance);
|
|
1960
|
+
cb(uniqueComponentId);
|
|
1968
1961
|
}
|
|
1969
1962
|
}
|
|
1970
1963
|
var inspectComponentHighLighterSelectFn = null;
|
|
@@ -4173,9 +4166,13 @@ function callDevToolsPluginSetupFn(plugin, app) {
|
|
|
4173
4166
|
function removeRegisteredPluginApp(app) {
|
|
4174
4167
|
target8.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.delete(app);
|
|
4175
4168
|
}
|
|
4176
|
-
function registerDevToolsPlugin(app) {
|
|
4177
|
-
if (target8.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(app)
|
|
4169
|
+
function registerDevToolsPlugin(app, options) {
|
|
4170
|
+
if (target8.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(app)) {
|
|
4178
4171
|
return;
|
|
4172
|
+
}
|
|
4173
|
+
if (devtoolsState.highPerfModeEnabled && !(options == null ? void 0 : options.inspectingComponent)) {
|
|
4174
|
+
return;
|
|
4175
|
+
}
|
|
4179
4176
|
target8.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(app);
|
|
4180
4177
|
devtoolsPluginBuffer.forEach((plugin) => {
|
|
4181
4178
|
callDevToolsPluginSetupFn(plugin, app);
|
|
@@ -4355,14 +4352,14 @@ function createDevToolsApi(hooks2) {
|
|
|
4355
4352
|
// get vue inspector
|
|
4356
4353
|
getVueInspector: getComponentInspector,
|
|
4357
4354
|
// toggle app
|
|
4358
|
-
toggleApp(id) {
|
|
4355
|
+
toggleApp(id, options) {
|
|
4359
4356
|
const appRecord = devtoolsAppRecords.value.find((record) => record.id === id);
|
|
4360
4357
|
if (appRecord) {
|
|
4361
4358
|
setActiveAppRecordId(id);
|
|
4362
4359
|
setActiveAppRecord(appRecord);
|
|
4363
4360
|
normalizeRouterInfo(appRecord, activeAppRecord);
|
|
4364
4361
|
callInspectorUpdatedHook();
|
|
4365
|
-
registerDevToolsPlugin(appRecord.app);
|
|
4362
|
+
registerDevToolsPlugin(appRecord.app, options);
|
|
4366
4363
|
}
|
|
4367
4364
|
},
|
|
4368
4365
|
// inspect dom
|
|
@@ -4785,16 +4782,16 @@ init_esm_shims();
|
|
|
4785
4782
|
// src/messaging/presets/broadcast-channel/index.ts
|
|
4786
4783
|
init_esm_shims();
|
|
4787
4784
|
|
|
4788
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4785
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.js
|
|
4789
4786
|
init_esm_shims();
|
|
4790
4787
|
|
|
4791
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4788
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.js
|
|
4792
4789
|
init_esm_shims();
|
|
4793
4790
|
|
|
4794
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4791
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.js
|
|
4795
4792
|
init_esm_shims();
|
|
4796
4793
|
|
|
4797
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4794
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.js
|
|
4798
4795
|
init_esm_shims();
|
|
4799
4796
|
var DoubleIndexedKV = class {
|
|
4800
4797
|
constructor() {
|
|
@@ -4817,7 +4814,7 @@ var DoubleIndexedKV = class {
|
|
|
4817
4814
|
}
|
|
4818
4815
|
};
|
|
4819
4816
|
|
|
4820
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4817
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.js
|
|
4821
4818
|
var Registry = class {
|
|
4822
4819
|
constructor(generateIdentifier) {
|
|
4823
4820
|
this.generateIdentifier = generateIdentifier;
|
|
@@ -4843,7 +4840,7 @@ var Registry = class {
|
|
|
4843
4840
|
}
|
|
4844
4841
|
};
|
|
4845
4842
|
|
|
4846
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4843
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.js
|
|
4847
4844
|
var ClassRegistry = class extends Registry {
|
|
4848
4845
|
constructor() {
|
|
4849
4846
|
super((c) => c.name);
|
|
@@ -4864,10 +4861,10 @@ var ClassRegistry = class extends Registry {
|
|
|
4864
4861
|
}
|
|
4865
4862
|
};
|
|
4866
4863
|
|
|
4867
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4864
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.js
|
|
4868
4865
|
init_esm_shims();
|
|
4869
4866
|
|
|
4870
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4867
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.js
|
|
4871
4868
|
init_esm_shims();
|
|
4872
4869
|
function valuesOfObj(record) {
|
|
4873
4870
|
if ("values" in Object) {
|
|
@@ -4911,7 +4908,7 @@ function findArr(record, predicate) {
|
|
|
4911
4908
|
return void 0;
|
|
4912
4909
|
}
|
|
4913
4910
|
|
|
4914
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4911
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.js
|
|
4915
4912
|
var CustomTransformerRegistry = class {
|
|
4916
4913
|
constructor() {
|
|
4917
4914
|
this.transfomers = {};
|
|
@@ -4927,10 +4924,10 @@ var CustomTransformerRegistry = class {
|
|
|
4927
4924
|
}
|
|
4928
4925
|
};
|
|
4929
4926
|
|
|
4930
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4927
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.js
|
|
4931
4928
|
init_esm_shims();
|
|
4932
4929
|
|
|
4933
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4930
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.js
|
|
4934
4931
|
init_esm_shims();
|
|
4935
4932
|
var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
|
|
4936
4933
|
var isUndefined = (payload) => typeof payload === "undefined";
|
|
@@ -4962,7 +4959,7 @@ var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
|
|
|
4962
4959
|
var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
4963
4960
|
var isURL = (payload) => payload instanceof URL;
|
|
4964
4961
|
|
|
4965
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4962
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.js
|
|
4966
4963
|
init_esm_shims();
|
|
4967
4964
|
var escapeKey = (key) => key.replace(/\./g, "\\.");
|
|
4968
4965
|
var stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
|
|
@@ -4990,7 +4987,7 @@ var parsePath = (string) => {
|
|
|
4990
4987
|
return result;
|
|
4991
4988
|
};
|
|
4992
4989
|
|
|
4993
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
4990
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.js
|
|
4994
4991
|
init_esm_shims();
|
|
4995
4992
|
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
4996
4993
|
return {
|
|
@@ -5125,7 +5122,7 @@ var classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, sup
|
|
|
5125
5122
|
}, (v, a, superJson) => {
|
|
5126
5123
|
const clazz = superJson.classRegistry.getValue(a[1]);
|
|
5127
5124
|
if (!clazz) {
|
|
5128
|
-
throw new Error(
|
|
5125
|
+
throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
5129
5126
|
}
|
|
5130
5127
|
return Object.assign(Object.create(clazz.prototype), v);
|
|
5131
5128
|
});
|
|
@@ -5189,9 +5186,11 @@ var untransformValue = (json, type, superJson) => {
|
|
|
5189
5186
|
}
|
|
5190
5187
|
};
|
|
5191
5188
|
|
|
5192
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5189
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.js
|
|
5193
5190
|
init_esm_shims();
|
|
5194
5191
|
var getNthKey = (value, n) => {
|
|
5192
|
+
if (n > value.size)
|
|
5193
|
+
throw new Error("index out of bounds");
|
|
5195
5194
|
const keys = value.keys();
|
|
5196
5195
|
while (n > 0) {
|
|
5197
5196
|
keys.next();
|
|
@@ -5304,7 +5303,7 @@ var setDeep = (object, path, mapper) => {
|
|
|
5304
5303
|
return object;
|
|
5305
5304
|
};
|
|
5306
5305
|
|
|
5307
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5306
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.js
|
|
5308
5307
|
function traverse(tree, walker2, origin = []) {
|
|
5309
5308
|
if (!tree) {
|
|
5310
5309
|
return;
|
|
@@ -5506,7 +5505,7 @@ function copy(target22, options = {}) {
|
|
|
5506
5505
|
}, {});
|
|
5507
5506
|
}
|
|
5508
5507
|
|
|
5509
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
5508
|
+
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.js
|
|
5510
5509
|
var SuperJSON = class {
|
|
5511
5510
|
/**
|
|
5512
5511
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.7.0",
|
|
5
5
|
"author": "webfansplz",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"perfect-debounce": "^1.0.0",
|
|
30
30
|
"speakingurl": "^14.0.1",
|
|
31
31
|
"superjson": "^2.2.1",
|
|
32
|
-
"@vue/devtools-shared": "^7.
|
|
32
|
+
"@vue/devtools-shared": "^7.7.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/speakingurl": "^13.0.6",
|