@webjourney/vite-plugins 1.2.6-0 → 1.2.6-2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,wBAAgB,uBAAuB;;;oBAKnB,MAAM,MAAM,MAAM;;;;EA8IrC;AAED,wBAAgB,sBAAsB;;;6BAKT,MAAM;EAIlC;AAED,wBAAgB,iBAAiB;;;oBA3Jb,MAAM,MAAM,MAAM;;;;;;;6BAqJT,MAAM;KAUlC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,wBAAgB,uBAAuB;;;oBAKnB,MAAM,MAAM,MAAM;;;;EAyJrC;AAED,wBAAgB,sBAAsB;;;6BAKT,MAAM;EAIlC;AAED,wBAAgB,iBAAiB;;;oBAtKb,MAAM,MAAM,MAAM;;;;;;;6BAgKT,MAAM;KAUlC"}
package/dist/index.js CHANGED
@@ -35,6 +35,10 @@ export function webjourneyElementTagger() {
35
35
  JSXElement(path) {
36
36
  const openingElement = path.node.openingElement;
37
37
  const elementName = openingElement.name;
38
+ // Convert elementName AST node to code string
39
+ const elementNameCode = generate(elementName, {}).code;
40
+ openingElement.attributes.push(t.jsxAttribute(t.jsxIdentifier('data-debug'), t.stringLiteral(elementNameCode)));
41
+ modified = true;
38
42
  // Extract tag name - handle both regular tags and motion.* tags
39
43
  let tagName;
40
44
  if (t.isJSXIdentifier(elementName)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webjourney/vite-plugins",
3
- "version": "1.2.6-0",
3
+ "version": "1.2.6-2",
4
4
  "description": "Vite plugins for Webjourney WYSIWYG editing",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",