@archie/devtools 0.1.0 → 0.1.1

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.
@@ -4291,8 +4291,10 @@ function buildBlockedStructuralContainerIds(projection, nodeMap, sourceContainer
4291
4291
  return blocked;
4292
4292
  }
4293
4293
 
4294
+ // src/client/dnd/design-mode/node-meta-guard.ts
4295
+ var VID_PATTERN = /^[a-z0-9]{6,8}$/;
4296
+
4294
4297
  // src/client/dnd/design-mode/fiber-bridge.ts
4295
- var import_editor_protocol = require("@8base-archie/editor-protocol");
4296
4298
  var FIBER_KEY_PREFIX = "__reactFiber$";
4297
4299
  var PROPS_KEY_PREFIX = "__reactProps$";
4298
4300
  var metaCache = /* @__PURE__ */ new WeakMap();
@@ -4555,9 +4557,6 @@ function resolveDragSurface(el) {
4555
4557
  };
4556
4558
  }
4557
4559
 
4558
- // src/types/editor-meta.ts
4559
- var import_editor_protocol2 = require("@8base-archie/editor-protocol");
4560
-
4561
4560
  // src/client/dnd/design-mode/node-key.ts
4562
4561
  var _runtimeKeyMap = /* @__PURE__ */ new WeakMap();
4563
4562
  var _runtimeKeyCounter = 0;
@@ -4585,7 +4584,7 @@ function getNodeKeyFromElement(el) {
4585
4584
  }
4586
4585
  function resolveVidFromElement(el) {
4587
4586
  const key2 = getNodeKeyFromElement(el);
4588
- return import_editor_protocol2.VID_PATTERN.test(key2) ? key2 : null;
4587
+ return VID_PATTERN.test(key2) ? key2 : null;
4589
4588
  }
4590
4589
  function getInspectorRefFromElement(el) {
4591
4590
  const resolved = resolveDragSurface(el);
@@ -4256,8 +4256,10 @@ function buildBlockedStructuralContainerIds(projection, nodeMap, sourceContainer
4256
4256
  return blocked;
4257
4257
  }
4258
4258
 
4259
+ // src/client/dnd/design-mode/node-meta-guard.ts
4260
+ var VID_PATTERN = /^[a-z0-9]{6,8}$/;
4261
+
4259
4262
  // src/client/dnd/design-mode/fiber-bridge.ts
4260
- import { NodeMetaSchema } from "@8base-archie/editor-protocol";
4261
4263
  var FIBER_KEY_PREFIX = "__reactFiber$";
4262
4264
  var PROPS_KEY_PREFIX = "__reactProps$";
4263
4265
  var metaCache = /* @__PURE__ */ new WeakMap();
@@ -4520,9 +4522,6 @@ function resolveDragSurface(el) {
4520
4522
  };
4521
4523
  }
4522
4524
 
4523
- // src/types/editor-meta.ts
4524
- import { VID_PATTERN, VID_ATTR } from "@8base-archie/editor-protocol";
4525
-
4526
4525
  // src/client/dnd/design-mode/node-key.ts
4527
4526
  var _runtimeKeyMap = /* @__PURE__ */ new WeakMap();
4528
4527
  var _runtimeKeyCounter = 0;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@archie/devtools",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "DevTools for Archie generated applications - Route synchronization and editor communication",
5
+ "sideEffects": false,
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "git+https://github.com/8base-archie/archie-devtools.git"