@vue/devtools-kit 7.6.2 → 7.6.3

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 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.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  "use strict";
40
40
  }
41
41
  });
@@ -1954,10 +1954,15 @@ async function editComponentState(payload, stateEditor2) {
1954
1954
  return;
1955
1955
  const targetPath = path.slice();
1956
1956
  let target22;
1957
- if (instance.devtoolsRawSetupState && Object.keys(instance.devtoolsRawSetupState).includes(path[0]))
1957
+ if (Object.keys(instance.props).includes(path[0])) {
1958
+ target22 = instance.props;
1959
+ } else if (instance.devtoolsRawSetupState && Object.keys(instance.devtoolsRawSetupState).includes(path[0])) {
1958
1960
  target22 = instance.devtoolsRawSetupState;
1959
- if (instance.data && Object.keys(instance.data).includes(path[0]))
1961
+ } else if (instance.data && Object.keys(instance.data).includes(path[0])) {
1960
1962
  target22 = instance.data;
1963
+ } else {
1964
+ target22 = instance.proxy;
1965
+ }
1961
1966
  if (target22 && targetPath) {
1962
1967
  if (state.type === "object" && type === "reactive") {
1963
1968
  }
@@ -2176,6 +2181,8 @@ function update(options) {
2176
2181
  }
2177
2182
  function highlight(instance) {
2178
2183
  const bounds = getComponentBoundingRect(instance);
2184
+ if (!bounds.width && !bounds.height)
2185
+ return;
2179
2186
  const name = getInstanceName(instance);
2180
2187
  const container = getContainerElement();
2181
2188
  container ? update({ bounds, name }) : create({ bounds, name });
@@ -3408,8 +3415,9 @@ function resolveMergedOptions(instance) {
3408
3415
  return options;
3409
3416
  }
3410
3417
  function processProps(instance) {
3418
+ var _a25;
3411
3419
  const props = [];
3412
- const propDefinitions = instance.type.props;
3420
+ const propDefinitions = (_a25 = instance == null ? void 0 : instance.type) == null ? void 0 : _a25.props;
3413
3421
  for (const key in instance.props) {
3414
3422
  const propDefinition = propDefinitions ? propDefinitions[key] : null;
3415
3423
  const camelizeKey = (0, import_devtools_shared11.camelize)(key);
@@ -3417,6 +3425,7 @@ function processProps(instance) {
3417
3425
  type: "props",
3418
3426
  key: camelizeKey,
3419
3427
  value: returnError(() => instance.props[key]),
3428
+ editable: true,
3420
3429
  meta: propDefinition ? {
3421
3430
  type: propDefinition.type ? getPropType(propDefinition.type) : "any",
3422
3431
  required: !!propDefinition.required,
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.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js
31
31
  var init_esm_shims = __esm({
32
- "../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/esm_shims.js"() {
32
+ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"() {
33
33
  "use strict";
34
34
  }
35
35
  });
@@ -1863,10 +1863,15 @@ async function editComponentState(payload, stateEditor2) {
1863
1863
  return;
1864
1864
  const targetPath = path.slice();
1865
1865
  let target22;
1866
- if (instance.devtoolsRawSetupState && Object.keys(instance.devtoolsRawSetupState).includes(path[0]))
1866
+ if (Object.keys(instance.props).includes(path[0])) {
1867
+ target22 = instance.props;
1868
+ } else if (instance.devtoolsRawSetupState && Object.keys(instance.devtoolsRawSetupState).includes(path[0])) {
1867
1869
  target22 = instance.devtoolsRawSetupState;
1868
- if (instance.data && Object.keys(instance.data).includes(path[0]))
1870
+ } else if (instance.data && Object.keys(instance.data).includes(path[0])) {
1869
1871
  target22 = instance.data;
1872
+ } else {
1873
+ target22 = instance.proxy;
1874
+ }
1870
1875
  if (target22 && targetPath) {
1871
1876
  if (state.type === "object" && type === "reactive") {
1872
1877
  }
@@ -2085,6 +2090,8 @@ function update(options) {
2085
2090
  }
2086
2091
  function highlight(instance) {
2087
2092
  const bounds = getComponentBoundingRect(instance);
2093
+ if (!bounds.width && !bounds.height)
2094
+ return;
2088
2095
  const name = getInstanceName(instance);
2089
2096
  const container = getContainerElement();
2090
2097
  container ? update({ bounds, name }) : create({ bounds, name });
@@ -3317,8 +3324,9 @@ function resolveMergedOptions(instance) {
3317
3324
  return options;
3318
3325
  }
3319
3326
  function processProps(instance) {
3327
+ var _a25;
3320
3328
  const props = [];
3321
- const propDefinitions = instance.type.props;
3329
+ const propDefinitions = (_a25 = instance == null ? void 0 : instance.type) == null ? void 0 : _a25.props;
3322
3330
  for (const key in instance.props) {
3323
3331
  const propDefinition = propDefinitions ? propDefinitions[key] : null;
3324
3332
  const camelizeKey = camelize(key);
@@ -3326,6 +3334,7 @@ function processProps(instance) {
3326
3334
  type: "props",
3327
3335
  key: camelizeKey,
3328
3336
  value: returnError(() => instance.props[key]),
3337
+ editable: true,
3329
3338
  meta: propDefinition ? {
3330
3339
  type: propDefinition.type ? getPropType(propDefinition.type) : "any",
3331
3340
  required: !!propDefinition.required,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue/devtools-kit",
3
3
  "type": "module",
4
- "version": "7.6.2",
4
+ "version": "7.6.3",
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.6.2"
32
+ "@vue/devtools-shared": "^7.6.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/speakingurl": "^13.0.6",