mcp-dndgrid 0.1.1 → 0.1.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.
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/package.json +1 -1
- package/src/utils/code-generator.ts +5 -2
package/dist/index.cjs
CHANGED
|
@@ -252914,7 +252914,7 @@ ${jsx}
|
|
|
252914
252914
|
generateImports() {
|
|
252915
252915
|
const imports = [];
|
|
252916
252916
|
imports.push(
|
|
252917
|
-
`import { DndGridContainer, DndGridSplit, DndGridItem } from 'zerojin/components';`
|
|
252917
|
+
`import { DndGridContainer, DndGridSplit, DndGridItem, DndGridItemContent } from 'zerojin/components';`
|
|
252918
252918
|
);
|
|
252919
252919
|
return imports.join("\n");
|
|
252920
252920
|
}
|
|
@@ -252934,9 +252934,12 @@ ${jsx}
|
|
|
252934
252934
|
generateItemJSX(node, indent) {
|
|
252935
252935
|
const spaces = " ".repeat(indent);
|
|
252936
252936
|
const innerSpaces = " ".repeat(indent + 2);
|
|
252937
|
+
const contentSpaces = " ".repeat(indent + 4);
|
|
252937
252938
|
const componentName = this.options.componentPrefix ? `${this.options.componentPrefix}${node.component}` : node.component;
|
|
252938
252939
|
return `${spaces}<DndGridItem>
|
|
252939
|
-
${innerSpaces}
|
|
252940
|
+
${innerSpaces}<DndGridItemContent>
|
|
252941
|
+
${contentSpaces}<${componentName} />
|
|
252942
|
+
${innerSpaces}</DndGridItemContent>
|
|
252940
252943
|
${spaces}</DndGridItem>`;
|
|
252941
252944
|
}
|
|
252942
252945
|
/**
|