@ikas/component-cli 1.4.0-beta.40 → 1.4.0-beta.41

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.
Files changed (95) hide show
  1. package/dist/commands/add-sections-to-page.d.ts +3 -0
  2. package/dist/commands/add-sections-to-page.d.ts.map +1 -0
  3. package/dist/commands/add-sections-to-page.js +39 -0
  4. package/dist/commands/add-sections-to-page.js.map +1 -0
  5. package/dist/commands/create-design-tokens.d.ts +7 -0
  6. package/dist/commands/create-design-tokens.d.ts.map +1 -0
  7. package/dist/commands/create-design-tokens.js +127 -0
  8. package/dist/commands/create-design-tokens.js.map +1 -0
  9. package/dist/commands/create-global-variable.d.ts +3 -0
  10. package/dist/commands/create-global-variable.d.ts.map +1 -0
  11. package/dist/commands/create-global-variable.js +53 -0
  12. package/dist/commands/create-global-variable.js.map +1 -0
  13. package/dist/commands/create-page.d.ts +3 -0
  14. package/dist/commands/create-page.d.ts.map +1 -0
  15. package/dist/commands/create-page.js +31 -0
  16. package/dist/commands/create-page.js.map +1 -0
  17. package/dist/commands/create.d.ts +8 -3
  18. package/dist/commands/create.d.ts.map +1 -1
  19. package/dist/commands/create.js +8 -175
  20. package/dist/commands/create.js.map +1 -1
  21. package/dist/commands/delete-theme-globals.d.ts +4 -0
  22. package/dist/commands/delete-theme-globals.d.ts.map +1 -0
  23. package/dist/commands/delete-theme-globals.js +48 -0
  24. package/dist/commands/delete-theme-globals.js.map +1 -0
  25. package/dist/commands/get-component-props.d.ts +3 -0
  26. package/dist/commands/get-component-props.d.ts.map +1 -0
  27. package/dist/commands/get-component-props.js +32 -0
  28. package/dist/commands/get-component-props.js.map +1 -0
  29. package/dist/commands/get-page-by-type.d.ts +3 -0
  30. package/dist/commands/get-page-by-type.d.ts.map +1 -0
  31. package/dist/commands/get-page-by-type.js +25 -0
  32. package/dist/commands/get-page-by-type.js.map +1 -0
  33. package/dist/commands/get-section-values.d.ts +3 -0
  34. package/dist/commands/get-section-values.d.ts.map +1 -0
  35. package/dist/commands/get-section-values.js +39 -0
  36. package/dist/commands/get-section-values.js.map +1 -0
  37. package/dist/commands/list-entities.d.ts +3 -0
  38. package/dist/commands/list-entities.d.ts.map +1 -0
  39. package/dist/commands/list-entities.js +32 -0
  40. package/dist/commands/list-entities.js.map +1 -0
  41. package/dist/commands/list-page-sections.d.ts +3 -0
  42. package/dist/commands/list-page-sections.d.ts.map +1 -0
  43. package/dist/commands/list-page-sections.js +25 -0
  44. package/dist/commands/list-page-sections.js.map +1 -0
  45. package/dist/commands/list-theme-globals.d.ts +3 -0
  46. package/dist/commands/list-theme-globals.d.ts.map +1 -0
  47. package/dist/commands/list-theme-globals.js +22 -0
  48. package/dist/commands/list-theme-globals.js.map +1 -0
  49. package/dist/commands/proxy.d.ts +39 -0
  50. package/dist/commands/proxy.d.ts.map +1 -0
  51. package/dist/commands/proxy.js +212 -0
  52. package/dist/commands/proxy.js.map +1 -0
  53. package/dist/commands/publish-theme.d.ts +3 -0
  54. package/dist/commands/publish-theme.d.ts.map +1 -0
  55. package/dist/commands/publish-theme.js +29 -0
  56. package/dist/commands/publish-theme.js.map +1 -0
  57. package/dist/commands/search-products.d.ts +3 -0
  58. package/dist/commands/search-products.d.ts.map +1 -0
  59. package/dist/commands/search-products.js +40 -0
  60. package/dist/commands/search-products.js.map +1 -0
  61. package/dist/commands/update-global-variable.d.ts +3 -0
  62. package/dist/commands/update-global-variable.d.ts.map +1 -0
  63. package/dist/commands/update-global-variable.js +47 -0
  64. package/dist/commands/update-global-variable.js.map +1 -0
  65. package/dist/commands/update-page-sections.d.ts +3 -0
  66. package/dist/commands/update-page-sections.d.ts.map +1 -0
  67. package/dist/commands/update-page-sections.js +39 -0
  68. package/dist/commands/update-page-sections.js.map +1 -0
  69. package/dist/commands/update-section-prop.d.ts +3 -0
  70. package/dist/commands/update-section-prop.d.ts.map +1 -0
  71. package/dist/commands/update-section-prop.js +59 -0
  72. package/dist/commands/update-section-prop.js.map +1 -0
  73. package/dist/commands/upload-image.d.ts +3 -0
  74. package/dist/commands/upload-image.d.ts.map +1 -0
  75. package/dist/commands/upload-image.js +38 -0
  76. package/dist/commands/upload-image.js.map +1 -0
  77. package/dist/commands/upload-images.d.ts +3 -0
  78. package/dist/commands/upload-images.d.ts.map +1 -0
  79. package/dist/commands/upload-images.js +48 -0
  80. package/dist/commands/upload-images.js.map +1 -0
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +42 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/utils/editor-action-client.d.ts +1 -1
  85. package/dist/utils/editor-action-client.d.ts.map +1 -1
  86. package/dist/utils/editor-action-client.js +23 -8
  87. package/dist/utils/editor-action-client.js.map +1 -1
  88. package/dist/utils/load-image.d.ts +16 -0
  89. package/dist/utils/load-image.d.ts.map +1 -0
  90. package/dist/utils/load-image.js +50 -0
  91. package/dist/utils/load-image.js.map +1 -0
  92. package/dist/utils/websocket-server.d.ts +2 -2
  93. package/dist/utils/websocket-server.d.ts.map +1 -1
  94. package/dist/utils/websocket-server.js.map +1 -1
  95. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function createAddSectionsToPageCommand(): Command;
3
+ //# sourceMappingURL=add-sections-to-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-sections-to-page.d.ts","sourceRoot":"","sources":["../../src/commands/add-sections-to-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+CpC,wBAAgB,8BAA8B,IAAI,OAAO,CAcxD"}
@@ -0,0 +1,39 @@
1
+ import { Command } from "commander";
2
+ import { printErrorAndExit, printResultAndExit, runEditorAction, } from "../utils/editor-action-client.js";
3
+ async function runAddSectionsToPage(options) {
4
+ if (!options.pageId || typeof options.pageId !== "string") {
5
+ printErrorAndExit(new Error("--page-id is required (use `ikas-component list-pages`)"));
6
+ }
7
+ if (options.sections === undefined) {
8
+ printErrorAndExit(new Error('--sections is required: a JSON array, e.g. \'[{"componentId":"<id>","updates":[{"propName":"heading","value":{"value":"Hi"}}]}]\''));
9
+ }
10
+ let sections;
11
+ try {
12
+ sections = JSON.parse(options.sections);
13
+ }
14
+ catch {
15
+ printErrorAndExit(new Error(`--sections must be valid JSON. Received: ${options.sections}`));
16
+ }
17
+ if (!Array.isArray(sections) || sections.length === 0) {
18
+ printErrorAndExit(new Error("--sections must be a non-empty JSON array of { componentId, index?, updates? } objects."));
19
+ }
20
+ const port = options.port ? parseInt(options.port, 10) : undefined;
21
+ try {
22
+ const result = await runEditorAction("add-sections-to-page", { pageId: options.pageId, sections }, { ...(port ? { port } : {}), timeoutMs: 30_000 });
23
+ printResultAndExit(result);
24
+ }
25
+ catch (e) {
26
+ printErrorAndExit(e);
27
+ }
28
+ }
29
+ export function createAddSectionsToPageCommand() {
30
+ const cmd = new Command("add-sections-to-page");
31
+ cmd
32
+ .description("Place MANY sections on a page in one call, each optionally with its prop values set at placement time. --sections is a JSON array of { componentId, index?, updates?: [{ propId|propName, value }] }. Returns the new elementId for each placement. Built-but-unimported section/child components are auto-imported.")
33
+ .requiredOption("--page-id <id>", "Page id (from `ikas-component list-pages`)")
34
+ .requiredOption("--sections <json>", 'JSON array, e.g. \'[{"componentId":"<id>","updates":[{"propName":"heading","value":{"value":"Hi"}}]}]\'')
35
+ .option("--port <port>", "Dev server WebSocket port", "5201")
36
+ .action(runAddSectionsToPage);
37
+ return cmd;
38
+ }
39
+ //# sourceMappingURL=add-sections-to-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-sections-to-page.js","sourceRoot":"","sources":["../../src/commands/add-sections-to-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,GAChB,MAAM,kCAAkC,CAAC;AAQ1C,KAAK,UAAU,oBAAoB,CAAC,OAAiC;IACnE,IAAI,CAAC,OAAO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vB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,8BAA8B;IAC5C,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAChD,GAAG;SACA,WAAW,CACV,sTAAsT,CACvT;SACA,cAAc,CAAC,gBAAgB,EAAE,4CAA4C,CAAC;SAC9E,cAAc,CACb,mBAAmB,EACnB,yGAAyG,CAC1G;SACA,MAAM,CAAC,eAAe,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAC5D,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAChC,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Command } from "commander";
2
+ export declare function createCreateColorCommand(): Command;
3
+ export declare function createCreateTextStyleCommand(): Command;
4
+ export declare function createCreateBreakpointCommand(): Command;
5
+ export declare function createCreateKeyframeCommand(): Command;
6
+ export declare function createCreateColorSchemeCommand(): Command;
7
+ //# sourceMappingURL=create-design-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-design-tokens.d.ts","sourceRoot":"","sources":["../../src/commands/create-design-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqCpC,wBAAgB,wBAAwB,IAAI,OAAO,CAYlD;AAID,wBAAgB,4BAA4B,IAAI,OAAO,CA4BtD;AAID,wBAAgB,6BAA6B,IAAI,OAAO,CAevD;AAID,wBAAgB,2BAA2B,IAAI,OAAO,CAiBrD;AAID,wBAAgB,8BAA8B,IAAI,OAAO,CAexD"}
@@ -0,0 +1,127 @@
1
+ import { Command } from "commander";
2
+ import { printErrorAndExit, printResultAndExit, runEditorAction } from "../utils/editor-action-client.js";
3
+ function portOpts(options) {
4
+ const port = options.port ? parseInt(options.port, 10) : undefined;
5
+ return port ? { port } : {};
6
+ }
7
+ async function send(payload, options) {
8
+ try {
9
+ const result = await runEditorAction("create-design-token", payload, portOpts(options));
10
+ printResultAndExit(result);
11
+ }
12
+ catch (e) {
13
+ printErrorAndExit(e);
14
+ }
15
+ }
16
+ /** Parse a `--…` flag expected to be a JSON array; emit a JSON error on failure. */
17
+ function parseJsonArray(raw, flag) {
18
+ if (!raw)
19
+ printErrorAndExit(new Error(`${flag} is required (a JSON array)`));
20
+ let parsed;
21
+ try {
22
+ parsed = JSON.parse(raw);
23
+ }
24
+ catch {
25
+ printErrorAndExit(new Error(`${flag} must be valid JSON`));
26
+ }
27
+ if (!Array.isArray(parsed) || parsed.length === 0) {
28
+ printErrorAndExit(new Error(`${flag} must be a non-empty JSON array`));
29
+ }
30
+ return parsed;
31
+ }
32
+ // ---- color -----------------------------------------------------------------
33
+ export function createCreateColorCommand() {
34
+ const cmd = new Command("create-color");
35
+ cmd
36
+ .description("Create a theme color token in the connected editor")
37
+ .requiredOption("--name <name>", "Color name")
38
+ .requiredOption("--value <hex>", "Color value, e.g. #ff0000")
39
+ .option("--port <port>", "Dev server WebSocket port", "5201")
40
+ .action((options) => {
41
+ if (!options.value)
42
+ printErrorAndExit(new Error("--value is required"));
43
+ return send({ tokenType: "color", name: options.name, value: options.value }, options);
44
+ });
45
+ return cmd;
46
+ }
47
+ // ---- typography (text style) -----------------------------------------------
48
+ export function createCreateTextStyleCommand() {
49
+ const cmd = new Command("create-text-style");
50
+ cmd
51
+ .description("Create a theme typography token (text style) in the connected editor")
52
+ .requiredOption("--name <name>", "Text style name")
53
+ .option("--font-family <value>", "font-family")
54
+ .option("--font-size <value>", "font-size, e.g. 16px")
55
+ .option("--font-weight <value>", "font-weight, e.g. 600")
56
+ .option("--line-height <value>", "line-height, e.g. 1.5")
57
+ .option("--letter-spacing <value>", "letter-spacing, e.g. 0.5px")
58
+ .option("--port <port>", "Dev server WebSocket port", "5201")
59
+ .action((options) => {
60
+ const map = {
61
+ "font-family": options.fontFamily,
62
+ "font-size": options.fontSize,
63
+ "font-weight": options.fontWeight,
64
+ "line-height": options.lineHeight,
65
+ "letter-spacing": options.letterSpacing,
66
+ };
67
+ const styles = Object.entries(map)
68
+ .filter(([, value]) => value != null)
69
+ .map(([property, value]) => ({ property, value }));
70
+ if (!styles.length) {
71
+ printErrorAndExit(new Error("Provide at least one of --font-family/--font-size/--font-weight/--line-height/--letter-spacing"));
72
+ }
73
+ return send({ tokenType: "typography", name: options.name, styles }, options);
74
+ });
75
+ return cmd;
76
+ }
77
+ // ---- breakpoint ------------------------------------------------------------
78
+ export function createCreateBreakpointCommand() {
79
+ const cmd = new Command("create-breakpoint");
80
+ cmd
81
+ .description("Create a theme breakpoint in the connected editor")
82
+ .requiredOption("--name <name>", "Breakpoint name")
83
+ .requiredOption("--width <px>", "Breakpoint width in pixels")
84
+ .option("--port <port>", "Dev server WebSocket port", "5201")
85
+ .action((options) => {
86
+ const width = Number(options.width);
87
+ if (!Number.isFinite(width) || width <= 0) {
88
+ printErrorAndExit(new Error("--width must be a positive number"));
89
+ }
90
+ return send({ tokenType: "breakpoint", name: options.name, width }, options);
91
+ });
92
+ return cmd;
93
+ }
94
+ // ---- keyframe --------------------------------------------------------------
95
+ export function createCreateKeyframeCommand() {
96
+ const cmd = new Command("create-keyframe");
97
+ cmd
98
+ .description("Create a theme keyframe/transition animation in the connected editor")
99
+ .requiredOption("--name <name>", "Keyframe name")
100
+ .option("--type <type>", "keyframe | transition", "keyframe")
101
+ .requiredOption("--points <json>", 'JSON array of points, e.g. \'[{"point":"0%","styles":[{"property":"opacity","value":0}]}]\'')
102
+ .option("--port <port>", "Dev server WebSocket port", "5201")
103
+ .action((options) => {
104
+ const type = (options.type ?? "keyframe").toLowerCase();
105
+ if (type !== "keyframe" && type !== "transition") {
106
+ printErrorAndExit(new Error('--type must be "keyframe" or "transition"'));
107
+ }
108
+ const points = parseJsonArray(options.points, "--points");
109
+ return send({ tokenType: "keyframe", name: options.name, keyframeType: type, points }, options);
110
+ });
111
+ return cmd;
112
+ }
113
+ // ---- color scheme ----------------------------------------------------------
114
+ export function createCreateColorSchemeCommand() {
115
+ const cmd = new Command("create-color-scheme");
116
+ cmd
117
+ .description("Create a theme color scheme (palette) with its colors in the connected editor")
118
+ .requiredOption("--name <name>", "Color scheme name")
119
+ .requiredOption("--colors <json>", 'JSON array of { key, value } — key is the color slot name, e.g. \'[{"key":"Background","value":"#ffffff"},{"key":"Text","value":"#111111"}]\'. Slots are created if missing.')
120
+ .option("--port <port>", "Dev server WebSocket port", "5201")
121
+ .action((options) => {
122
+ const colors = parseJsonArray(options.colors, "--colors");
123
+ return send({ tokenType: "colorScheme", name: options.name, colors }, options);
124
+ });
125
+ return cmd;
126
+ }
127
+ //# sourceMappingURL=create-design-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-design-tokens.js","sourceRoot":"","sources":["../../src/commands/create-design-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAI1G,SAAS,QAAQ,CAAC,OAAgB;IAChC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC9B,CAAC;AAED,KAAK,UAAU,IAAI,CAAC,OAAgC,EAAE,OAAgB;IACpE,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,qBAAqB,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QACxF,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;AACH,CAAC;AAED,oFAAoF;AACpF,SAAS,cAAc,CAAC,GAAuB,EAAE,IA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AC3B,MAAM,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;QACxD,IAAI,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,YAAY,EAAE,CAAC;YACjD,iBAAiB,CAAC,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC,CAAC;QAC5E,CAAC;QACD,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC,CAAC,CAAC;IACL,OAAO,GAAG,CAAC;AACb,CAAC;AAED,+EAA+E;AAE/E,MAAM,UAAU,8BAA8B;IAC5C,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC/C,GAAG;SACA,WAAW,CAAC,+EAA+E,CAAC;SAC5F,cAAc,CAAC,eAAe,EAAE,mBAAmB,CAAC;SACpD,cAAc,CACb,iBAAiB,EACjB,8KAA8K,CAC/K;SACA,MAAM,CAAC,eAAe,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAC5D,MAAM,CAAC,CAAC,OAAgB,EAAE,EAAE;QAC3B,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC,CAAC,CAAC;IACL,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function createCreateGlobalVariableCommand(): Command;
3
+ //# sourceMappingURL=create-global-variable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-global-variable.d.ts","sourceRoot":"","sources":["../../src/commands/create-global-variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuDpC,wBAAgB,iCAAiC,IAAI,OAAO,CAc3D"}
@@ -0,0 +1,53 @@
1
+ import { Command } from "commander";
2
+ import { printErrorAndExit, printResultAndExit, runEditorAction } from "../utils/editor-action-client.js";
3
+ const VALID_TYPES = ["TEXT", "RICH_TEXT", "IMAGE", "COLOR", "NUMBER", "BOOLEAN", "BORDER", "SHADOW"];
4
+ /**
5
+ * Parse a `--value` flag: accept JSON (for objects/null/numbers/booleans), and
6
+ * fall back to the raw string for convenience (so `--value "#ff0000"` works).
7
+ */
8
+ function parseValue(raw) {
9
+ if (raw == null)
10
+ return null;
11
+ try {
12
+ return JSON.parse(raw);
13
+ }
14
+ catch {
15
+ return raw;
16
+ }
17
+ }
18
+ async function runCreateGlobalVariable(options) {
19
+ const { displayName, type } = options;
20
+ if (!displayName) {
21
+ printErrorAndExit(new Error("--display-name is required"));
22
+ }
23
+ if (!type || !VALID_TYPES.includes(type)) {
24
+ printErrorAndExit(new Error(`--type must be one of: ${VALID_TYPES.join(", ")}`));
25
+ }
26
+ const port = options.port ? parseInt(options.port, 10) : undefined;
27
+ try {
28
+ const result = await runEditorAction("create-global-variable", {
29
+ displayName,
30
+ type,
31
+ value: parseValue(options.value),
32
+ ...(options.groupId ? { groupId: options.groupId } : {}),
33
+ }, port ? { port } : {});
34
+ printResultAndExit(result);
35
+ }
36
+ catch (e) {
37
+ printErrorAndExit(e);
38
+ }
39
+ }
40
+ export function createCreateGlobalVariableCommand() {
41
+ const cmd = new Command("create-global-variable");
42
+ cmd
43
+ .description("Create a global variable (Theme Settings) in the connected editor. The runtime key is " +
44
+ "auto-generated; read it back with `list-theme-globals`.")
45
+ .requiredOption("--display-name <name>", "Human-facing label for the variable")
46
+ .requiredOption("--type <type>", `Value type: ${VALID_TYPES.join(" | ")}`)
47
+ .option("--value <json>", "Default value (JSON for objects/null; plain string also accepted)")
48
+ .option("--group-id <id>", "Existing group id to place the variable under")
49
+ .option("--port <port>", "Dev server WebSocket port", "5201")
50
+ .action(runCreateGlobalVariable);
51
+ return cmd;
52
+ }
53
+ //# sourceMappingURL=create-global-variable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-global-variable.js","sourceRoot":"","sources":["../../src/commands/create-global-variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAE1G,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAUrG;;;GAGG;AACH,SAAS,UAAU,CAAC,GAAY;IAC9B,IAAI,GAAG,IAAI,IAAI;QAAE,OAAO,IAAI,CAAC;IAC7B,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,GAAG,CAAC;IACb,CAAC;AACH,CAAC;AAED,KAAK,UAAU,uBAAuB,CAAC,OAAoC;IACzE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAEtC,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,iBAAiB,CAAC,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAC7D,CAAC;IACD,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACzC,iBAAiB,CAAC,IAAI,KAAK,CAAC,0BAA0B,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACnF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ourceMappingURL=create-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-page.d.ts","sourceRoot":"","sources":["../../src/commands/create-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqCpC,wBAAgB,uBAAuB,IAAI,OAAO,CAYjD"}
@@ -0,0 +1,31 @@
1
+ import { Command } from "commander";
2
+ import { printErrorAndExit, printResultAndExit, runEditorAction, } from "../utils/editor-action-client.js";
3
+ async function runCreatePage(options) {
4
+ if (!options.pageType || typeof options.pageType !== "string") {
5
+ printErrorAndExit(new Error("--page-type is required (e.g. CATEGORY, PRODUCT, BRAND, BLOG, BLOG_CATEGORY, CUSTOM)"));
6
+ }
7
+ const port = options.port ? parseInt(options.port, 10) : undefined;
8
+ try {
9
+ const result = await runEditorAction("create-page", {
10
+ pageType: options.pageType,
11
+ ...(options.name ? { name: options.name } : {}),
12
+ ...(options.slug ? { slug: options.slug } : {}),
13
+ }, port ? { port } : {});
14
+ printResultAndExit(result);
15
+ }
16
+ catch (e) {
17
+ printErrorAndExit(e);
18
+ }
19
+ }
20
+ export function createCreatePageCommand() {
21
+ const cmd = new Command("create-page");
22
+ cmd
23
+ .description("Create a theme page of the given pageType (CATEGORY, PRODUCT, BRAND, BLOG, BLOG_CATEGORY, INDEX, CUSTOM, …), so you can build a real PAGE link to its entities instead of guessing a slug/URL. Non-CUSTOM types are unique per theme — if one already exists it is returned as-is (alreadyExisted: true). CUSTOM requires --name and a unique --slug. Returns the page id.")
24
+ .requiredOption("--page-type <type>", "Page type to create (e.g. CATEGORY)")
25
+ .option("--name <name>", "Page name (required for CUSTOM pages)")
26
+ .option("--slug <slug>", "Page slug (required for CUSTOM pages)")
27
+ .option("--port <port>", "Dev server WebSocket port", "5201")
28
+ .action(runCreatePage);
29
+ return cmd;
30
+ }
31
+ //# sourceMappingURL=create-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-page.js","sourceRoot":"","sources":["../../src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,CAAC,oBAAoB,EAAE,qCAAqC,CAAC;SAC3E,MAAM,CAAC,eAAe,EAAE,uCAAuC,CAAC;SAChE,MAAM,CAAC,eAAe,EAAE,uCAAuC,CAAC;SAChE,MAAM,CAAC,eAAe,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAC5D,MAAM,CAAC,aAAa,CAAC,CAAC;IACzB,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1,4 +1,9 @@
1
- import { Command } from "commander";
2
- export declare function createCreateCommand(): Command;
3
- export declare function run(): Promise<void>;
1
+ import { createCreateCommand as createCreateCommandImpl } from "create-ikas-component";
2
+ /**
3
+ * Re-export of the `create` command. The actual implementation (and the
4
+ * project templates) live in the standalone `create-ikas-component` package
5
+ * so users can run `npx create-ikas-component` without pulling in the full
6
+ * dev/build/publish CLI.
7
+ */
8
+ export declare const createCreateCommand: typeof createCreateCommandImpl;
4
9
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/commands/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4IpC,wBAAgB,mBAAmB,IAAI,OAAO,CA4B7C;AAGD,wBAAsB,GAAG,kBAiCxB"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/commands/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,gCAA0B,CAAC"}
@@ -1,176 +1,9 @@
1
- import chalk from "chalk";
2
- import { Command } from "commander";
3
- import * as fs from "fs";
4
- import inquirer from "inquirer";
5
- import ora from "ora";
6
- import * as path from "path";
7
- import { generateComponentId, generateProjectId } from "../utils/component-helpers.js";
8
- import { readTemplate } from "../utils/template.js";
9
- const PROP_TYPES = [
10
- "TEXT",
11
- "NUMBER",
12
- "BOOLEAN",
13
- "IMAGE",
14
- "LINK",
15
- "LIST_OF_LINK",
16
- "COLOR",
17
- "PRODUCT",
18
- "PRODUCT_LIST",
19
- "CATEGORY",
20
- "CATEGORY_LIST",
21
- "BRAND",
22
- "BRAND_LIST",
23
- "BLOG",
24
- "BLOG_LIST",
25
- "BLOG_CATEGORY",
26
- "BLOG_CATEGORY_LIST",
27
- "TYPE",
28
- "ENUM",
29
- "COMPONENT",
30
- "COMPONENT_LIST",
31
- ];
32
- async function createProject(projectName) {
33
- const spinner = ora("Creating project...").start();
34
- try {
35
- const projectPath = path.resolve(process.cwd(), projectName);
36
- // Check if directory exists
37
- if (fs.existsSync(projectPath)) {
38
- spinner.fail(`Directory "${projectName}" already exists`);
39
- process.exit(1);
40
- }
41
- // Create directory structure
42
- fs.mkdirSync(projectPath, { recursive: true });
43
- fs.mkdirSync(path.join(projectPath, "src/components/ExampleComponent"), { recursive: true });
44
- fs.mkdirSync(path.join(projectPath, "src/components/ExampleSection"), { recursive: true });
45
- // Generate IDs for the example config
46
- const projectId = generateProjectId();
47
- const exampleComponentId = generateComponentId(projectId, "example-component");
48
- const exampleSectionId = generateComponentId(projectId, "example-section");
49
- const vars = {
50
- PROJECT_NAME: projectName,
51
- PROJECT_ID: projectId,
52
- EXAMPLE_COMPONENT_ID: exampleComponentId,
53
- EXAMPLE_SECTION_ID: exampleSectionId,
54
- };
55
- // Write all template files
56
- const files = [
57
- { template: "create/package.json", dest: "package.json", vars },
58
- { template: "create/tsconfig.json", dest: "tsconfig.json" },
59
- { template: "create/vite.config.ts", dest: "vite.config.ts" },
60
- { template: "create/ikas.config.json", dest: "ikas.config.json", vars },
61
- { template: "create/gitignore", dest: ".gitignore" },
62
- { template: "create/mcp.json", dest: ".mcp.json" },
63
- { template: "create/README.md", dest: "README.md", vars },
64
- { template: "create/claude-md", dest: "CLAUDE.md" },
65
- { template: "create/cursorrules", dest: ".cursorrules" },
66
- { template: "create/src/global.css", dest: "src/global.css" },
67
- { template: "create/src/global-types.ts", dest: "src/global-types.ts" },
68
- { template: "create/src/ikas-component-utils.d.ts", dest: "src/ikas-component-utils.d.ts" },
69
- { template: "create/src/components/index.ts", dest: "src/components/index.ts" },
70
- { template: "create/src/components/ExampleComponent/index.tsx", dest: "src/components/ExampleComponent/index.tsx" },
71
- { template: "create/src/components/ExampleComponent/types.ts", dest: "src/components/ExampleComponent/types.ts" },
72
- { template: "create/src/components/ExampleComponent/styles.css", dest: "src/components/ExampleComponent/styles.css" },
73
- { template: "create/src/components/ExampleSection/index.tsx", dest: "src/components/ExampleSection/index.tsx" },
74
- { template: "create/src/components/ExampleSection/types.ts", dest: "src/components/ExampleSection/types.ts" },
75
- { template: "create/src/components/ExampleSection/styles.css", dest: "src/components/ExampleSection/styles.css" },
76
- ];
77
- for (const file of files) {
78
- fs.writeFileSync(path.join(projectPath, file.dest), readTemplate(file.template, file.vars));
79
- }
80
- // Create or merge .cursor/mcp.json for Cursor editor
81
- // Uses node + ${workspaceFolder} instead of npx because Cursor
82
- // doesn't reliably inherit the shell PATH.
83
- const cursorDir = path.join(projectPath, ".cursor");
84
- const cursorMcpPath = path.join(cursorDir, "mcp.json");
85
- fs.mkdirSync(cursorDir, { recursive: true });
86
- let cursorMcpConfig = { mcpServers: {} };
87
- if (fs.existsSync(cursorMcpPath)) {
88
- try {
89
- cursorMcpConfig = JSON.parse(fs.readFileSync(cursorMcpPath, "utf-8"));
90
- if (!cursorMcpConfig.mcpServers) {
91
- cursorMcpConfig.mcpServers = {};
92
- }
93
- }
94
- catch {
95
- cursorMcpConfig = { mcpServers: {} };
96
- }
97
- }
98
- cursorMcpConfig.mcpServers["ikas-code-components"] = {
99
- command: "node",
100
- args: ["${workspaceFolder}/node_modules/@ikas/code-components-mcp/dist/index.js"]
101
- };
102
- fs.writeFileSync(cursorMcpPath, JSON.stringify(cursorMcpConfig, null, 2));
103
- spinner.succeed(chalk.green(`Project "${projectName}" created successfully!`));
104
- console.log("\n" + chalk.cyan("Next steps:"));
105
- console.log(chalk.white(` cd ${projectName}`));
106
- console.log(chalk.white(" npm install"));
107
- console.log(chalk.white(" npm run dev"));
108
- console.log("\n" + chalk.gray("Happy coding! 🚀"));
109
- }
110
- catch (error) {
111
- spinner.fail("Failed to create project");
112
- console.error(error);
113
- process.exit(1);
114
- }
115
- }
116
- export function createCreateCommand() {
117
- return new Command("create")
118
- .description("Create a new ikas component project")
119
- .argument("[name]", "Project name")
120
- .action(async (name) => {
121
- let projectName = name;
122
- if (!projectName) {
123
- const answers = await inquirer.prompt([
124
- {
125
- type: "input",
126
- name: "projectName",
127
- message: "What is your project name?",
128
- default: "my-ikas-components",
129
- validate: (input) => {
130
- if (!input.trim())
131
- return "Project name is required";
132
- if (!/^[a-z0-9-_]+$/i.test(input)) {
133
- return "Project name can only contain letters, numbers, hyphens, and underscores";
134
- }
135
- return true;
136
- }
137
- }
138
- ]);
139
- projectName = answers.projectName;
140
- }
141
- await createProject(projectName);
142
- });
143
- }
144
- // Standalone runner for create-ikas-component command
145
- export async function run() {
146
- const program = new Command();
147
- program
148
- .name("create-ikas-component")
149
- .description("Create a new ikas component project")
150
- .argument("[name]", "Project name")
151
- .action(async (name) => {
152
- let projectName = name;
153
- if (!projectName) {
154
- const answers = await inquirer.prompt([
155
- {
156
- type: "input",
157
- name: "projectName",
158
- message: "What is your project name?",
159
- default: "my-ikas-components",
160
- validate: (input) => {
161
- if (!input.trim())
162
- return "Project name is required";
163
- if (!/^[a-z0-9-_]+$/i.test(input)) {
164
- return "Project name can only contain letters, numbers, hyphens, and underscores";
165
- }
166
- return true;
167
- }
168
- }
169
- ]);
170
- projectName = answers.projectName;
171
- }
172
- await createProject(projectName);
173
- });
174
- program.parse(process.argv);
175
- }
1
+ import { createCreateCommand as createCreateCommandImpl } from "create-ikas-component";
2
+ /**
3
+ * Re-export of the `create` command. The actual implementation (and the
4
+ * project templates) live in the standalone `create-ikas-component` package
5
+ * so users can run `npx create-ikas-component` without pulling in the full
6
+ * dev/build/publish CLI.
7
+ */
8
+ export const createCreateCommand = createCreateCommandImpl;
176
9
  //# sourceMappingURL=create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../src/commands/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAMpD,MAAM,UAAU,GAAG;IACjB,MAAM;IACN,QAAQ;IACR,SAAS;IACT,OAAO;IACP,MAAM;IACN,cAAc;IACd,OAAO;IACP,SAAS;IACT,cAAc;IACd,UAAU;IACV,eAAe;IACf,OAAO;IACP,YAAY;IACZ,MAAM;IACN,WAAW;IACX,eAAe;IACf,oBAAoB;IACpB,MAAM;IACN,MAAM;IACN,WAAW;IACX,gBAAgB;CACjB,CAAC;AAEF,KAAK,UAAU,aAAa,CAAC,WAAmB;IAC9C,MAAM,OAAO,GAAG,GAAG,CAAC,qBAAqB,CAAC,CAAC,KAAK,EAAE,CAAC;IAEnD,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,WAAW,CAAC,CAAC;QAE7D,4BAA4B;QAC5B,IAAI,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;YAC/B,OAAO,CAAC,IAAI,CAAC,cAAc,WAAW,kBAAkB,CAAC,CAAC;YAC1D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,6BAA6B;QAC7B,EAAE,CAAC,SAA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AI,CAAC,uBAAuB,CAAC;SAC7B,WAAW,CAAC,qCAAqC,CAAC;SAClD,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;SAClC,MAAM,CAAC,KAAK,EAAE,IAAa,EAAE,EAAE;QAC9B,IAAI,WAAW,GAAG,IAAI,CAAC;QAEvB,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;gBACpC;oBACE,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,aAAa;oBACnB,OAAO,EAAE,4BAA4B;oBACrC,OAAO,EAAE,oBAAoB;oBAC7B,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE;wBAC1B,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;4BAAE,OAAO,0BAA0B,CAAC;wBACrD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;4BAClC,OAAO,0EAA0E,CAAC;wBACpF,CAAC;wBACD,OAAO,IAAI,CAAC;oBACd,CAAC;iBACF;aACF,CAAC,CAAC;YACH,WAAW,GAAG,OAAO,CAAC,WAAqB,CAAC;QAC9C,CAAC;QAED,MAAM,aAAa,CAAC,WAAY,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEL,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC"}
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../src/commands/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Command } from "commander";
2
+ export declare function createDeleteGlobalVariableCommand(): Command;
3
+ export declare function createDeleteDesignTokenCommand(): Command;
4
+ //# sourceMappingURL=delete-theme-globals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-theme-globals.d.ts","sourceRoot":"","sources":["../../src/commands/delete-theme-globals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,iCAAiC,IAAI,OAAO,CAe3D;AAED,wBAAgB,8BAA8B,IAAI,OAAO,CAyBxD"}
@@ -0,0 +1,48 @@
1
+ import { Command } from "commander";
2
+ import { printErrorAndExit, printResultAndExit, runEditorAction } from "../utils/editor-action-client.js";
3
+ const TOKEN_TYPES = ["color", "typography", "breakpoint", "keyframe", "colorScheme"];
4
+ function portOpts(port) {
5
+ const p = port ? parseInt(port, 10) : undefined;
6
+ return p ? { port: p } : {};
7
+ }
8
+ export function createDeleteGlobalVariableCommand() {
9
+ const cmd = new Command("delete-global-variable");
10
+ cmd
11
+ .description("Delete a global variable from the connected editor")
12
+ .requiredOption("--name <key>", "The variable's runtime key (from `list-theme-globals`)")
13
+ .option("--port <port>", "Dev server WebSocket port", "5201")
14
+ .action(async (options) => {
15
+ if (!options.name)
16
+ printErrorAndExit(new Error("--name is required"));
17
+ try {
18
+ printResultAndExit(await runEditorAction("delete-global-variable", { name: options.name }, portOpts(options.port)));
19
+ }
20
+ catch (e) {
21
+ printErrorAndExit(e);
22
+ }
23
+ });
24
+ return cmd;
25
+ }
26
+ export function createDeleteDesignTokenCommand() {
27
+ const cmd = new Command("delete-design-token");
28
+ cmd
29
+ .description("Delete a design token (color, typography, breakpoint, keyframe, or color scheme) from the connected editor")
30
+ .requiredOption("--token-type <type>", TOKEN_TYPES.join(" | "))
31
+ .requiredOption("--id <id>", "The token id (from `list-theme-globals`)")
32
+ .option("--port <port>", "Dev server WebSocket port", "5201")
33
+ .action(async (options) => {
34
+ if (!options.tokenType || !TOKEN_TYPES.includes(options.tokenType)) {
35
+ printErrorAndExit(new Error(`--token-type must be one of: ${TOKEN_TYPES.join(", ")}`));
36
+ }
37
+ if (!options.id)
38
+ printErrorAndExit(new Error("--id is required"));
39
+ try {
40
+ printResultAndExit(await runEditorAction("delete-design-token", { tokenType: options.tokenType, id: options.id }, portOpts(options.port)));
41
+ }
42
+ catch (e) {
43
+ printErrorAndExit(e);
44
+ }
45
+ });
46
+ return cmd;
47
+ }
48
+ //# sourceMappingURL=delete-theme-globals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-theme-globals.js","sourceRoot":"","sources":["../../src/commands/delete-theme-globals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAE1G,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;AAErF,SAAS,QAAQ,CAAC,IAAa;IAC7B,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAChD,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,iCAAiC;IAC/C,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAClD,GAAG;SACA,WAAW,CAAC,oDAAoD,CAAC;SACjE,cAAc,CAAC,cAAc,EAAE,wDAAwD,CAAC;SACxF,MAAM,CAAC,eAAe,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAC5D,MAAM,CAAC,KAAK,EAAE,OAAyC,EAAE,EAAE;QAC1D,IAAI,CAAC,OAAO,CAAC,IAAI;YAAE,iBAAiB,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;QACtE,IAAI,CAAC;YACH,kBAAkB,CAAC,MAAM,eAAe,CAAC,wBAAwB,EAAE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ACvB,CAAC;IACH,CAAC,CAAC,CAAC;IACL,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function createGetComponentPropsCommand(): Command;
3
+ //# sourceMappingURL=get-component-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-props.d.ts","sourceRoot":"","sources":["../../src/commands/get-component-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoCpC,wBAAgB,8BAA8B,IAAI,OAAO,CAWxD"}