@figma/code-connect 1.0.6 → 1.1.0

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 (156) hide show
  1. package/README.md +2 -595
  2. package/dist/client/figma_client.d.ts +1 -1
  3. package/dist/client/figma_client.js +9 -7
  4. package/dist/client/figma_client.js.map +1 -1
  5. package/dist/commands/connect.d.ts +4 -2
  6. package/dist/commands/connect.d.ts.map +1 -1
  7. package/dist/commands/connect.js +97 -49
  8. package/dist/commands/connect.js.map +1 -1
  9. package/dist/common/project.d.ts +86 -0
  10. package/dist/common/project.d.ts.map +1 -0
  11. package/dist/common/project.js +138 -0
  12. package/dist/common/project.js.map +1 -0
  13. package/dist/connect/api.d.ts +143 -0
  14. package/dist/connect/api.d.ts.map +1 -0
  15. package/dist/connect/api.js +3 -0
  16. package/dist/connect/api.js.map +1 -0
  17. package/dist/connect/create.d.ts.map +1 -1
  18. package/dist/connect/create.js +4 -0
  19. package/dist/connect/create.js.map +1 -1
  20. package/dist/connect/create_common.d.ts +7 -0
  21. package/dist/connect/create_common.d.ts.map +1 -0
  22. package/dist/connect/create_common.js +19 -0
  23. package/dist/connect/create_common.js.map +1 -0
  24. package/dist/connect/external_types.d.ts +8 -0
  25. package/dist/connect/external_types.d.ts.map +1 -0
  26. package/dist/connect/external_types.js +31 -0
  27. package/dist/connect/external_types.js.map +1 -0
  28. package/dist/connect/figma_connect.d.ts +26 -0
  29. package/dist/connect/figma_connect.d.ts.map +1 -0
  30. package/dist/connect/figma_connect.js +3 -0
  31. package/dist/connect/figma_connect.js.map +1 -0
  32. package/dist/connect/figma_rest_api.d.ts +7 -0
  33. package/dist/connect/figma_rest_api.d.ts.map +1 -1
  34. package/dist/connect/figma_rest_api.js.map +1 -1
  35. package/dist/connect/index_common.d.ts +3 -0
  36. package/dist/connect/index_common.d.ts.map +1 -0
  37. package/dist/connect/index_common.js +23 -0
  38. package/dist/connect/index_common.js.map +1 -0
  39. package/dist/connect/intrinsics.d.ts +94 -0
  40. package/dist/connect/intrinsics.d.ts.map +1 -0
  41. package/dist/connect/intrinsics.js +401 -0
  42. package/dist/connect/intrinsics.js.map +1 -0
  43. package/dist/connect/parser_common.d.ts +144 -0
  44. package/dist/connect/parser_common.d.ts.map +1 -0
  45. package/dist/connect/parser_common.js +297 -0
  46. package/dist/connect/parser_common.js.map +1 -0
  47. package/dist/connect/parser_executable_types.d.ts +20 -23
  48. package/dist/connect/parser_executable_types.d.ts.map +1 -1
  49. package/dist/connect/parser_executable_types.js.map +1 -1
  50. package/dist/connect/parser_executables.js +1 -1
  51. package/dist/connect/parser_executables.js.map +1 -1
  52. package/dist/connect/project.d.ts +20 -5
  53. package/dist/connect/project.d.ts.map +1 -1
  54. package/dist/connect/project.js +79 -16
  55. package/dist/connect/project.js.map +1 -1
  56. package/dist/connect/upload.d.ts +1 -1
  57. package/dist/connect/upload.d.ts.map +1 -1
  58. package/dist/connect/validation.d.ts +1 -1
  59. package/dist/connect/validation.d.ts.map +1 -1
  60. package/dist/connect/wizard/helpers.d.ts.map +1 -1
  61. package/dist/connect/wizard/helpers.js +18 -14
  62. package/dist/connect/wizard/helpers.js.map +1 -1
  63. package/dist/connect/wizard/prop_mapping.d.ts +12 -7
  64. package/dist/connect/wizard/prop_mapping.d.ts.map +1 -1
  65. package/dist/connect/wizard/prop_mapping.js +88 -89
  66. package/dist/connect/wizard/prop_mapping.js.map +1 -1
  67. package/dist/connect/wizard/run_wizard.d.ts.map +1 -1
  68. package/dist/connect/wizard/run_wizard.js +8 -3
  69. package/dist/connect/wizard/run_wizard.js.map +1 -1
  70. package/dist/connect/wizard/signature_extraction.d.ts +7 -0
  71. package/dist/connect/wizard/signature_extraction.d.ts.map +1 -0
  72. package/dist/connect/wizard/signature_extraction.js +46 -0
  73. package/dist/connect/wizard/signature_extraction.js.map +1 -0
  74. package/dist/html/__test__/parser/examples/NoConfigObject.figma.d.ts +2 -0
  75. package/dist/html/__test__/parser/examples/NoConfigObject.figma.d.ts.map +1 -0
  76. package/dist/html/__test__/parser/examples/NoConfigObject.figma.js +9 -0
  77. package/dist/html/__test__/parser/examples/NoConfigObject.figma.js.map +1 -0
  78. package/dist/html/__test__/parser/examples/NoExample.figma.d.ts +2 -0
  79. package/dist/html/__test__/parser/examples/NoExample.figma.d.ts.map +1 -0
  80. package/dist/html/__test__/parser/examples/NoExample.figma.js +9 -0
  81. package/dist/html/__test__/parser/examples/NoExample.figma.js.map +1 -0
  82. package/dist/html/__test__/parser/examples/RegularFunctionExampleWithExtraCode.figma.d.ts +2 -0
  83. package/dist/html/__test__/parser/examples/RegularFunctionExampleWithExtraCode.figma.d.ts.map +1 -0
  84. package/dist/html/__test__/parser/examples/RegularFunctionExampleWithExtraCode.figma.js +33 -0
  85. package/dist/html/__test__/parser/examples/RegularFunctionExampleWithExtraCode.figma.js.map +1 -0
  86. package/dist/html/__test__/parser/examples/WrongSignatureJsx.figma.d.ts +2 -0
  87. package/dist/html/__test__/parser/examples/WrongSignatureJsx.figma.d.ts.map +1 -0
  88. package/dist/html/__test__/parser/examples/WrongSignatureJsx.figma.js +15 -0
  89. package/dist/html/__test__/parser/examples/WrongSignatureJsx.figma.js.map +1 -0
  90. package/dist/html/__test__/parser/examples/WrongSignatureNoHtmlTag.figma.d.ts +2 -0
  91. package/dist/html/__test__/parser/examples/WrongSignatureNoHtmlTag.figma.d.ts.map +1 -0
  92. package/dist/html/__test__/parser/examples/WrongSignatureNoHtmlTag.figma.js +15 -0
  93. package/dist/html/__test__/parser/examples/WrongSignatureNoHtmlTag.figma.js.map +1 -0
  94. package/dist/html/__test__/parser/parser.test.d.ts +2 -0
  95. package/dist/html/__test__/parser/parser.test.d.ts.map +1 -0
  96. package/dist/html/__test__/parser/parser.test.js +50 -0
  97. package/dist/html/__test__/parser/parser.test.js.map +1 -0
  98. package/dist/html/create.d.ts +4 -0
  99. package/dist/html/create.d.ts.map +1 -0
  100. package/dist/html/create.js +81 -0
  101. package/dist/html/create.js.map +1 -0
  102. package/dist/html/external.d.ts +8 -0
  103. package/dist/html/external.d.ts.map +1 -0
  104. package/dist/html/external.js +25 -0
  105. package/dist/html/external.js.map +1 -0
  106. package/dist/html/index_html.d.ts +77 -0
  107. package/dist/html/index_html.d.ts.map +1 -0
  108. package/dist/html/index_html.js +42 -0
  109. package/dist/html/index_html.js.map +1 -0
  110. package/dist/html/parser.d.ts +19 -0
  111. package/dist/html/parser.d.ts.map +1 -0
  112. package/dist/html/parser.js +487 -0
  113. package/dist/html/parser.js.map +1 -0
  114. package/dist/html/parser_template_helpers.d.ts +2 -0
  115. package/dist/html/parser_template_helpers.d.ts.map +1 -0
  116. package/dist/html/parser_template_helpers.js +68 -0
  117. package/dist/html/parser_template_helpers.js.map +1 -0
  118. package/dist/html/template_literal.d.ts +5 -0
  119. package/dist/html/template_literal.d.ts.map +1 -0
  120. package/dist/html/template_literal.js +8 -0
  121. package/dist/html/template_literal.js.map +1 -0
  122. package/dist/parser_scripts/get_swift_parser_dir.d.ts +1 -1
  123. package/dist/parser_scripts/get_swift_parser_dir.d.ts.map +1 -1
  124. package/dist/parser_scripts/get_swift_parser_dir.js +38 -10
  125. package/dist/parser_scripts/get_swift_parser_dir.js.map +1 -1
  126. package/dist/react/create.d.ts +5 -0
  127. package/dist/react/create.d.ts.map +1 -1
  128. package/dist/react/create.js +144 -42
  129. package/dist/react/create.js.map +1 -1
  130. package/dist/react/external.d.ts +9 -0
  131. package/dist/react/external.d.ts.map +1 -0
  132. package/dist/react/external.js +45 -0
  133. package/dist/react/external.js.map +1 -0
  134. package/dist/react/index_react.d.ts +94 -0
  135. package/dist/react/index_react.d.ts.map +1 -0
  136. package/dist/react/index_react.js +39 -0
  137. package/dist/react/index_react.js.map +1 -0
  138. package/dist/react/parser.d.ts +6 -38
  139. package/dist/react/parser.d.ts.map +1 -1
  140. package/dist/react/parser.js +137 -295
  141. package/dist/react/parser.js.map +1 -1
  142. package/dist/react/parser_template_helpers.d.ts +15 -15
  143. package/dist/react/parser_template_helpers.d.ts.map +1 -1
  144. package/dist/react/parser_template_helpers.js +51 -35
  145. package/dist/react/parser_template_helpers.js.map +1 -1
  146. package/dist/storybook/convert.d.ts +1 -1
  147. package/dist/storybook/convert.d.ts.map +1 -1
  148. package/dist/storybook/convert.js +6 -4
  149. package/dist/storybook/convert.js.map +1 -1
  150. package/dist/storybook/external.d.ts +1 -1
  151. package/dist/storybook/external.d.ts.map +1 -1
  152. package/dist/typescript/compiler.d.ts +2 -2
  153. package/dist/typescript/compiler.d.ts.map +1 -1
  154. package/dist/typescript/compiler.js +50 -23
  155. package/dist/typescript/compiler.js.map +1 -1
  156. package/package.json +27 -7
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getCodeConnectObjects = exports.getDir = exports.getAccessToken = exports.addConnectCommandToProgram = void 0;
7
- const parser_1 = require("../react/parser");
8
7
  const fs_1 = __importDefault(require("fs"));
9
8
  const upload_1 = require("../connect/upload");
10
9
  const validation_1 = require("../connect/validation");
@@ -19,6 +18,9 @@ const zod_validation_error_1 = require("zod-validation-error");
19
18
  const parser_executable_types_1 = require("../connect/parser_executable_types");
20
19
  const updates_1 = require("../common/updates");
21
20
  const helpers_1 = require("../connect/helpers");
21
+ const parser_1 = require("../html/parser");
22
+ const parser_common_1 = require("../connect/parser_common");
23
+ const parser_2 = require("../react/parser");
22
24
  function addBaseCommand(command, name, description) {
23
25
  return command
24
26
  .command(name)
@@ -51,7 +53,9 @@ function addConnectCommandToProgram(program) {
51
53
  .option('--node <link_to_node>', 'specify the node to unpublish. This will unpublish for both React and Storybook.')
52
54
  .option('-l --label <label>', 'label to unpublish for')
53
55
  .action((0, updates_1.withUpdateCheck)(handleUnpublish));
54
- addBaseCommand(connectCommand, 'parse', 'Run Code Connect locally to find any files that have figma connections, then converts them to JSON and outputs to stdout.').action((0, updates_1.withUpdateCheck)(handleParse));
56
+ addBaseCommand(connectCommand, 'parse', 'Run Code Connect locally to find any files that have figma connections, then converts them to JSON and outputs to stdout.')
57
+ .option('-l --label <label>', 'label to apply to the parsed files')
58
+ .action((0, updates_1.withUpdateCheck)(handleParse));
55
59
  addBaseCommand(connectCommand, 'create', 'Generate a Code Connect file with boilerplate in the current directory for a Figma node URL')
56
60
  .argument('<figma-node-url>', 'Figma node URL to create the Code Connect file from')
57
61
  .action((0, updates_1.withUpdateCheck)(handleCreate));
@@ -103,7 +107,7 @@ function transformDocFromParser(doc, remoteUrl, config) {
103
107
  figmaNode,
104
108
  };
105
109
  }
106
- async function getCodeConnectObjects(dir, cmd, projectInfo, silent = false) {
110
+ async function getCodeConnectObjects(cmd, projectInfo, silent = false) {
107
111
  if (cmd.jsonFile) {
108
112
  try {
109
113
  return JSON.parse(fs_1.default.readFileSync(cmd.jsonFile, 'utf8'));
@@ -112,50 +116,89 @@ async function getCodeConnectObjects(dir, cmd, projectInfo, silent = false) {
112
116
  logging_1.logger.error('Failed to parse JSON file:', e);
113
117
  }
114
118
  }
119
+ let codeConnectObjects = [];
115
120
  if (projectInfo.config.parser === 'react') {
116
- return getReactCodeConnectObjects(dir, projectInfo, cmd, silent);
121
+ codeConnectObjects = await getReactCodeConnectObjects(projectInfo, cmd, silent);
117
122
  }
118
- const payload = {
119
- mode: 'PARSE',
120
- paths: projectInfo.files,
121
- config: projectInfo.config,
122
- };
123
- try {
124
- const stdout = await (0, parser_executables_1.callParser)(
125
- // We use `as` because the React parser makes the types difficult
126
- // TODO remove once React is an executable parser
127
- projectInfo.config, payload, projectInfo.absPath);
128
- const parsed = parser_executable_types_1.ParseResponsePayload.parse(stdout);
129
- const { hasErrors } = (0, parser_executables_1.handleMessages)(parsed.messages);
130
- if (hasErrors) {
131
- (0, logging_1.exitWithError)('Errors encountered calling parser, exiting');
123
+ else if (projectInfo.config.parser === 'html') {
124
+ codeConnectObjects = await getCodeConnectObjectsFromParseFn({
125
+ parseFn: parser_1.parseHtmlDoc,
126
+ fileExtension: 'ts',
127
+ projectInfo,
128
+ cmd,
129
+ silent,
130
+ });
131
+ }
132
+ else {
133
+ const payload = {
134
+ mode: 'PARSE',
135
+ paths: projectInfo.files,
136
+ config: projectInfo.config,
137
+ };
138
+ try {
139
+ const stdout = await (0, parser_executables_1.callParser)(
140
+ // We use `as` because the React parser makes the types difficult
141
+ // TODO remove once React is an executable parser
142
+ projectInfo.config, payload, projectInfo.absPath);
143
+ const parsed = parser_executable_types_1.ParseResponsePayload.parse(stdout);
144
+ const { hasErrors } = (0, parser_executables_1.handleMessages)(parsed.messages);
145
+ if (hasErrors) {
146
+ (0, logging_1.exitWithError)('Errors encountered calling parser, exiting');
147
+ }
148
+ codeConnectObjects = parsed.docs.map((doc) => ({
149
+ ...transformDocFromParser(doc, projectInfo.remoteUrl, projectInfo.config),
150
+ metadata: {
151
+ cliVersion: require('../../package.json').version,
152
+ },
153
+ }));
154
+ }
155
+ catch (e) {
156
+ // zod-validation-error formats the error message into a readable format
157
+ (0, logging_1.exitWithError)(`Error returned from parser: ${(0, zod_validation_error_1.fromError)(e)}. Try re-running the command with --verbose for more information.`);
132
158
  }
133
- return parsed.docs.map((doc) => ({
134
- ...transformDocFromParser(doc, projectInfo.remoteUrl, projectInfo.config),
135
- metadata: {
136
- cliVersion: require('../../package.json').version,
137
- },
138
- }));
139
159
  }
140
- catch (e) {
141
- // zod-validation-error formats the error message into a readable format
142
- (0, logging_1.exitWithError)(`Error returned from parser: ${(0, zod_validation_error_1.fromError)(e)}. Try re-running the command with --verbose for more information.`);
160
+ if (cmd.label || projectInfo.config.label) {
161
+ logging_1.logger.info(`Using label "${cmd.label || projectInfo.config.label}"`);
162
+ codeConnectObjects.forEach((doc) => {
163
+ doc.label = cmd.label || projectInfo.config.label || doc.label;
164
+ });
143
165
  }
166
+ return codeConnectObjects;
144
167
  }
145
168
  exports.getCodeConnectObjects = getCodeConnectObjects;
146
- // The React/Storybook parser is handled as a special case for now. Other
147
- // parsers uses the separate parser executable model and React will be
148
- // transitioned to that at some point, but for now the old code path is used
149
- async function getReactCodeConnectObjects(dir, projectInfo, cmd, silent = false) {
169
+ // React/Storybook and HTML parsers are handled as special cases for now, they
170
+ // do not use the parser executable model but instead directly call a function
171
+ // in the code base. We may want to transition them to that model in future.
172
+ async function getCodeConnectObjectsFromParseFn({
173
+ /** The function used to parse a source file into a Code Connect object */
174
+ parseFn,
175
+ /** Optional function used to resolve imports in a source file */
176
+ resolveImportsFn,
177
+ /** The file extension to filter for when checking if files should be parsed */
178
+ fileExtension,
179
+ /** Project info */
180
+ projectInfo,
181
+ /** The commander command object */
182
+ cmd,
183
+ /** Silences console output */
184
+ silent = false, }) {
150
185
  const codeConnectObjects = [];
151
- const reactProjectInfo = (0, project_1.getReactProjectInfo)(projectInfo);
152
- const { files, remoteUrl, config, tsProgram } = reactProjectInfo;
153
- for (const file of files.filter((f) => (0, parser_1.isFigmaConnectFile)(tsProgram, f))) {
186
+ const tsProgram = (0, project_1.getTsProgram)(projectInfo);
187
+ const { files, remoteUrl, config, absPath } = projectInfo;
188
+ for (const file of files.filter((f) => (0, parser_common_1.isFigmaConnectFile)(tsProgram, f, fileExtension))) {
154
189
  try {
155
- const docs = await (0, parser_1.parse)(tsProgram, file, config, reactProjectInfo.absPath, {
156
- repoUrl: remoteUrl,
157
- debug: cmd.verbose,
158
- silent,
190
+ const docs = await (0, parser_common_1.parseCodeConnect)({
191
+ program: tsProgram,
192
+ file,
193
+ config,
194
+ parseFn,
195
+ resolveImportsFn,
196
+ absPath,
197
+ parseOptions: {
198
+ repoUrl: remoteUrl,
199
+ debug: cmd.verbose,
200
+ silent,
201
+ },
159
202
  });
160
203
  codeConnectObjects.push(...docs);
161
204
  if (!silent || cmd.verbose) {
@@ -165,7 +208,7 @@ async function getReactCodeConnectObjects(dir, projectInfo, cmd, silent = false)
165
208
  catch (e) {
166
209
  if (!silent || cmd.verbose) {
167
210
  logging_1.logger.error(`❌ ${file}`);
168
- if (e instanceof parser_1.ParserError) {
211
+ if (e instanceof parser_common_1.ParserError) {
169
212
  if (cmd.verbose) {
170
213
  console.trace(e);
171
214
  }
@@ -178,12 +221,23 @@ async function getReactCodeConnectObjects(dir, projectInfo, cmd, silent = false)
178
221
  console.trace(e);
179
222
  }
180
223
  else {
181
- logging_1.logger.error(new parser_1.InternalError(String(e)).toString());
224
+ logging_1.logger.error(new parser_common_1.InternalError(String(e)).toString());
182
225
  }
183
226
  }
184
227
  }
185
228
  }
186
229
  }
230
+ return codeConnectObjects;
231
+ }
232
+ async function getReactCodeConnectObjects(projectInfo, cmd, silent = false) {
233
+ const codeConnectObjects = await getCodeConnectObjectsFromParseFn({
234
+ parseFn: parser_2.parseReactDoc,
235
+ resolveImportsFn: parser_2.findAndResolveImports,
236
+ fileExtension: 'tsx',
237
+ projectInfo,
238
+ cmd,
239
+ silent,
240
+ });
187
241
  const storybookCodeConnectObjects = await (0, convert_1.convertStorybookFiles)({
188
242
  projectInfo: (0, project_1.getReactProjectInfo)(projectInfo),
189
243
  });
@@ -194,7 +248,7 @@ async function handlePublish(cmd) {
194
248
  setupHandler(cmd);
195
249
  let dir = getDir(cmd);
196
250
  const projectInfo = await (0, project_1.getProjectInfo)(dir, cmd.config);
197
- const codeConnectObjects = await getCodeConnectObjects(dir, cmd, projectInfo);
251
+ const codeConnectObjects = await getCodeConnectObjects(cmd, projectInfo);
198
252
  if (codeConnectObjects.length === 0) {
199
253
  logging_1.logger.warn(`No Code Connect files found in ${dir} - Make sure you have configured \`include\` and \`exclude\` in your figma.config.json file correctly, or that you are running in a directory that contains Code Connect files.`);
200
254
  process.exit(0);
@@ -220,12 +274,6 @@ async function handlePublish(cmd) {
220
274
  logging_1.logger.info(`All Code Connect files are valid (${time}ms)`);
221
275
  }
222
276
  }
223
- if (cmd.label || projectInfo.config.label) {
224
- logging_1.logger.info(`Using label ${cmd.label || projectInfo.config.label}`);
225
- codeConnectObjects.forEach((doc) => {
226
- doc.label = cmd.label || projectInfo.config.label || doc.label;
227
- });
228
- }
229
277
  if (cmd.dryRun) {
230
278
  logging_1.logger.info(`Dry run complete`);
231
279
  process.exit(0);
@@ -255,7 +303,7 @@ async function handleUnpublish(cmd) {
255
303
  }
256
304
  else {
257
305
  const projectInfo = await (0, project_1.getProjectInfo)(dir, cmd.config);
258
- const codeConnectObjects = await getCodeConnectObjects(dir, cmd, projectInfo);
306
+ const codeConnectObjects = await getCodeConnectObjects(cmd, projectInfo);
259
307
  nodesToDeleteRelevantInfo = codeConnectObjects.map((doc) => ({
260
308
  figmaNode: doc.figmaNode,
261
309
  label: cmd.label || projectInfo.config.label || doc.label,
@@ -278,7 +326,7 @@ async function handleParse(cmd) {
278
326
  setupHandler(cmd);
279
327
  const dir = cmd.dir ?? process.cwd();
280
328
  const projectInfo = await (0, project_1.getProjectInfo)(dir, cmd.config);
281
- const codeConnectObjects = await getCodeConnectObjects(dir, cmd, projectInfo);
329
+ const codeConnectObjects = await getCodeConnectObjects(cmd, projectInfo);
282
330
  if (cmd.dryRun) {
283
331
  logging_1.logger.info(`Dry run complete`);
284
332
  process.exit(0);
@@ -1 +1 @@
1
- {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":";;;;;;AACA,4CAAuF;AACvF,4CAAmB;AACnB,8CAA0C;AAC1C,sDAAoD;AACpD,8CAA4D;AAC5D,gDAQ2B;AAC3B,+CAAuF;AAEvF,kDAA4D;AAC5D,wDAAoD;AACpD,6DAAwD;AACxD,sEAA0E;AAC1E,+DAAgD;AAChD,gFAA8F;AAE9F,+CAAmD;AACnD,gDAA4D;AAc5D,SAAS,cAAc,CAAC,OAA0B,EAAE,IAAY,EAAE,WAAmB;IACnF,OAAO,OAAO;SACX,OAAO,CAAC,IAAI,CAAC;SACb,WAAW,CAAC,WAAW,CAAC;SACxB,KAAK,CAAC,WAAW,CAAC;SAClB,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;SAC9C,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;SAClD,MAAM,CAA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AAC,MAAM,CAAC,CAAA;IAEzD,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;IAED,MAAM,WAAW,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAA;IAE7C,OAAO,IAAA,iCAAwB,EAAC;QAC9B,WAAW;QACX,yEAAyE;QACzE,2EAA2E;QAC3E,yCAAyC;QACzC,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QACxC,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,WAAW;KACZ,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,86 @@
1
+ import ts from 'typescript';
2
+ export interface CodeConnectConfig {
3
+ /**
4
+ * Specify glob patterns for files (relative to the project root) to be
5
+ * included when looking for source files. If not specified, all files
6
+ * (except any specified in `exclude`) will be included.
7
+ */
8
+ include?: string[];
9
+ /**
10
+ * Specify glob patterns for files (relative to the project root) to be
11
+ * excluded when looking for source files. If not specified, only
12
+ * `node_modules` will be excluded.
13
+ */
14
+ exclude?: string[];
15
+ /**
16
+ * Optional object of substitutions applied to document URLs (in the format {
17
+ * fromString, toString }) for testing (e.g. remapping a production URL to a
18
+ * staging URL). Not publicly documented.
19
+ */
20
+ documentUrlSubstitutions?: Record<string, string>;
21
+ /**
22
+ * React specific configuration
23
+ */
24
+ react?: {
25
+ /**
26
+ * Maps imports from their path on disk to the specified path.
27
+ * This will rewrite the imports in generated code examples, so it works with
28
+ * relative imports such as `import { Button } from "./"`.
29
+ *
30
+ * Example: { "src/components/*": "@ui/components" }
31
+ * Would rewrite imports for components located in `src/components` to `@ui/components` in
32
+ * generated code examples.
33
+ * `import { Button } from "./"` -> `import { Button } from "@ui/components/Button"`
34
+ */
35
+ importPaths?: Record<string, string>;
36
+ /**
37
+ * For import resolution - this is a temporary solution to support projects that use
38
+ * pnpm workspaces, as the compiler doesn't seem to be able to resolve imports when
39
+ * the package in node_modules is a symlink. Need to look into this more and find a
40
+ * better solution.
41
+ */
42
+ paths?: Record<string, string[]>;
43
+ };
44
+ /**
45
+ * Storybook specific configuration
46
+ */
47
+ storybook?: {
48
+ /**
49
+ * The URL of the Storybook instance for the project
50
+ */
51
+ url: string;
52
+ };
53
+ }
54
+ export declare function getGitRemoteURL(repoPath: string): string;
55
+ /**
56
+ * Finds the URL of a remote file
57
+ * @param filePath absolute file path on disk
58
+ * @param repoURL remote URL
59
+ * @returns
60
+ */
61
+ export declare function getRemoteFileUrl(filePath: string, repoURL?: string): string;
62
+ export declare function getStorybookUrl(filePath: string, storybookUrl: string): string;
63
+ export interface ProjectInfo {
64
+ /**
65
+ * Absolute path of the project directory
66
+ */
67
+ absPath: string;
68
+ /**
69
+ * An array of all tsx files in the project
70
+ */
71
+ files: string[];
72
+ /**
73
+ * The git remote URL of the project
74
+ */
75
+ remoteUrl: string;
76
+ /**
77
+ * The parsed Code Connect config file
78
+ */
79
+ config?: CodeConnectConfig;
80
+ /**
81
+ * TS program containing all tsx files in the project
82
+ */
83
+ tsProgram: ts.Program;
84
+ }
85
+ export declare function resolveImportPath(filePath: string, config: CodeConnectConfig): string | null;
86
+ //# sourceMappingURL=project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["project.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,YAAY,CAAA;AAI3B,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE;QACN;;;;;;;;;WASG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QACpC;;;;;WAKG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;KACjC,CAAA;IACD;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,GAAG,EAAE,MAAM,CAAA;KACZ,CAAA;CACF;AAqBD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,UAW/C;AAkBD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,UAqBlE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAkBrE;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;IACf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B;;OAEG;IACH,SAAS,EAAE,EAAE,CAAC,OAAO,CAAA;CACtB;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA0B5F"}
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ getGitRemoteURL: function() {
13
+ return getGitRemoteURL;
14
+ },
15
+ getRemoteFileUrl: function() {
16
+ return getRemoteFileUrl;
17
+ },
18
+ getStorybookUrl: function() {
19
+ return getStorybookUrl;
20
+ },
21
+ resolveImportPath: function() {
22
+ return resolveImportPath;
23
+ }
24
+ });
25
+ const _child_process = require("child_process");
26
+ const _path = /*#__PURE__*/ _interop_require_default(require("path"));
27
+ const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
28
+ function _interop_require_default(obj) {
29
+ return obj && obj.__esModule ? obj : {
30
+ default: obj
31
+ };
32
+ }
33
+ const DEFAULT_CONFIG_FILE_NAME = 'figma.config.json';
34
+ function parseConfig(configFilePath) {
35
+ if (!_fs.default.existsSync(configFilePath)) {
36
+ return undefined;
37
+ }
38
+ try {
39
+ const rawData = _fs.default.readFileSync(configFilePath, 'utf-8');
40
+ const config = JSON.parse(rawData);
41
+ return config;
42
+ } catch (error) {
43
+ console.error('Error parsing config file:', error);
44
+ return undefined;
45
+ }
46
+ }
47
+ function getGitRemoteURL(repoPath) {
48
+ try {
49
+ const spawn = (0, _child_process.spawnSync)('git', [
50
+ 'config',
51
+ '--get',
52
+ 'remote.origin.url'
53
+ ], {
54
+ cwd: repoPath
55
+ });
56
+ const output = spawn.stdout;
57
+ return (output || '').toString().trim();
58
+ } catch (error) {
59
+ console.error('Error getting git remote URL:', error);
60
+ return '';
61
+ }
62
+ }
63
+ /**
64
+ * Uses `git rev-parse` to find absolute path to the root of the git repository
65
+ */ function getGitRepoAbsolutePath(filePath) {
66
+ try {
67
+ const spawn = (0, _child_process.spawnSync)('git', [
68
+ 'rev-parse',
69
+ '--show-toplevel'
70
+ ], {
71
+ cwd: _path.default.dirname(filePath)
72
+ });
73
+ const output = spawn.stdout;
74
+ return (output || '').toString().trim();
75
+ } catch (error) {
76
+ console.error('Error running `git rev-parse`:', error);
77
+ return '';
78
+ }
79
+ }
80
+ function getRemoteFileUrl(filePath, repoURL) {
81
+ if (!repoURL) {
82
+ return '';
83
+ }
84
+ let url = repoURL.trim();
85
+ url = url.replace(':', '/');
86
+ url = url.replace('git@', 'https://');
87
+ url = url.replace(/\.git$/, '');
88
+ // the folder of the git repo on disk could be named differently,
89
+ // so we need to find the relative path of the file to the root of the repo
90
+ // and append that to the remote URL
91
+ const repoAbsPath = getGitRepoAbsolutePath(filePath);
92
+ const index = filePath.indexOf(repoAbsPath);
93
+ if (index === -1) {
94
+ return '';
95
+ }
96
+ const relativeFilePath = filePath.substring(index + repoAbsPath.length);
97
+ return `${url}/tree/master${relativeFilePath}`;
98
+ }
99
+ function getStorybookUrl(filePath, storybookUrl) {
100
+ // the folder of the git repo on disk could be named differently,
101
+ // so we need to find the relative path of the file to the root of the repo
102
+ // and append that to the remote URL
103
+ const repoAbsPath = getGitRepoAbsolutePath(filePath);
104
+ const index = filePath.indexOf(repoAbsPath);
105
+ if (index === -1) {
106
+ return '';
107
+ }
108
+ const relativeFilePath = filePath.substring(index + repoAbsPath.length + 1) // +1 to remove the leading slash
109
+ ;
110
+ const storybookComponentPath = relativeFilePath.trim().replace(/[\s|_]/g, '-').replace(/\.[jt]sx?$/, '').split('/').join('-');
111
+ return `${storybookUrl}/?path=/docs/${storybookComponentPath}`;
112
+ }
113
+ function resolveImportPath(filePath, config) {
114
+ function isMatch(patternParts, pathParts) {
115
+ for(let i = 0; i < patternParts.length; i++){
116
+ if (patternParts[i] !== '*' && patternParts[i] !== pathParts[i]) {
117
+ return false;
118
+ }
119
+ }
120
+ return true;
121
+ }
122
+ for (const [key, value] of Object.entries(config.react?.importPaths || {})){
123
+ // Do a partial match from the end of the path
124
+ const patternParts = key.split('/').reverse();
125
+ const pathParts = filePath.split('/').reverse();
126
+ if (pathParts.length < patternParts.length) {
127
+ continue;
128
+ }
129
+ // If the mapped path ends with a wildcard we want to keep the filename in
130
+ // the final path (for non-index imports)
131
+ if (isMatch(patternParts, pathParts)) {
132
+ return value.endsWith('*') ? `${value.slice(0, -1)}${pathParts[0].split('.')[0]}` : value;
133
+ }
134
+ }
135
+ return null;
136
+ }
137
+
138
+ //# sourceMappingURL=project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["project.ts"],"sourcesContent":["import { spawnSync } from 'child_process'\nimport { globSync } from 'glob'\nimport path from 'path'\nimport fs from 'fs'\nimport ts from 'typescript'\nimport { logger } from './logging'\n\nconst DEFAULT_CONFIG_FILE_NAME = 'figma.config.json'\nexport interface CodeConnectConfig {\n /**\n * Specify glob patterns for files (relative to the project root) to be\n * included when looking for source files. If not specified, all files\n * (except any specified in `exclude`) will be included.\n */\n include?: string[]\n /**\n * Specify glob patterns for files (relative to the project root) to be\n * excluded when looking for source files. If not specified, only\n * `node_modules` will be excluded.\n */\n exclude?: string[]\n /**\n * Optional object of substitutions applied to document URLs (in the format {\n * fromString, toString }) for testing (e.g. remapping a production URL to a\n * staging URL). Not publicly documented.\n */\n documentUrlSubstitutions?: Record<string, string>\n /**\n * React specific configuration\n */\n react?: {\n /**\n * Maps imports from their path on disk to the specified path.\n * This will rewrite the imports in generated code examples, so it works with\n * relative imports such as `import { Button } from \"./\"`.\n *\n * Example: { \"src/components/*\": \"@ui/components\" }\n * Would rewrite imports for components located in `src/components` to `@ui/components` in\n * generated code examples.\n * `import { Button } from \"./\"` -> `import { Button } from \"@ui/components/Button\"`\n */\n importPaths?: Record<string, string>\n /**\n * For import resolution - this is a temporary solution to support projects that use\n * pnpm workspaces, as the compiler doesn't seem to be able to resolve imports when\n * the package in node_modules is a symlink. Need to look into this more and find a\n * better solution.\n */\n paths?: Record<string, string[]>\n }\n /**\n * Storybook specific configuration\n */\n storybook?: {\n /**\n * The URL of the Storybook instance for the project\n */\n url: string\n }\n}\n\ninterface FigmaConfig {\n codeConnect?: CodeConnectConfig\n}\n\nfunction parseConfig(configFilePath: string): FigmaConfig | undefined {\n if (!fs.existsSync(configFilePath)) {\n return undefined\n }\n\n try {\n const rawData = fs.readFileSync(configFilePath, 'utf-8')\n const config = JSON.parse(rawData)\n return config\n } catch (error) {\n console.error('Error parsing config file:', error)\n return undefined\n }\n}\n\nexport function getGitRemoteURL(repoPath: string) {\n try {\n const spawn = spawnSync('git', ['config', '--get', 'remote.origin.url'], {\n cwd: repoPath,\n })\n const output = spawn.stdout\n return (output || '').toString().trim()\n } catch (error) {\n console.error('Error getting git remote URL:', error)\n return ''\n }\n}\n\n/**\n * Uses `git rev-parse` to find absolute path to the root of the git repository\n */\nfunction getGitRepoAbsolutePath(filePath: string) {\n try {\n const spawn = spawnSync('git', ['rev-parse', '--show-toplevel'], {\n cwd: path.dirname(filePath),\n })\n const output = spawn.stdout\n return (output || '').toString().trim()\n } catch (error) {\n console.error('Error running `git rev-parse`:', error)\n return ''\n }\n}\n\n/**\n * Finds the URL of a remote file\n * @param filePath absolute file path on disk\n * @param repoURL remote URL\n * @returns\n */\nexport function getRemoteFileUrl(filePath: string, repoURL?: string) {\n if (!repoURL) {\n return ''\n }\n\n let url = repoURL.trim()\n url = url.replace(':', '/')\n url = url.replace('git@', 'https://')\n url = url.replace(/\\.git$/, '')\n\n // the folder of the git repo on disk could be named differently,\n // so we need to find the relative path of the file to the root of the repo\n // and append that to the remote URL\n const repoAbsPath = getGitRepoAbsolutePath(filePath)\n const index = filePath.indexOf(repoAbsPath)\n if (index === -1) {\n return ''\n }\n const relativeFilePath = filePath.substring(index + repoAbsPath.length)\n\n return `${url}/tree/master${relativeFilePath}`\n}\n\nexport function getStorybookUrl(filePath: string, storybookUrl: string) {\n // the folder of the git repo on disk could be named differently,\n // so we need to find the relative path of the file to the root of the repo\n // and append that to the remote URL\n const repoAbsPath = getGitRepoAbsolutePath(filePath)\n const index = filePath.indexOf(repoAbsPath)\n if (index === -1) {\n return ''\n }\n const relativeFilePath = filePath.substring(index + repoAbsPath.length + 1) // +1 to remove the leading slash\n const storybookComponentPath = relativeFilePath\n .trim()\n .replace(/[\\s|_]/g, '-')\n .replace(/\\.[jt]sx?$/, '')\n .split('/')\n .join('-')\n\n return `${storybookUrl}/?path=/docs/${storybookComponentPath}`\n}\n\nexport interface ProjectInfo {\n /**\n * Absolute path of the project directory\n */\n absPath: string\n /**\n * An array of all tsx files in the project\n */\n files: string[]\n /**\n * The git remote URL of the project\n */\n remoteUrl: string\n /**\n * The parsed Code Connect config file\n */\n config?: CodeConnectConfig\n /**\n * TS program containing all tsx files in the project\n */\n tsProgram: ts.Program\n}\n\nexport function resolveImportPath(filePath: string, config: CodeConnectConfig): string | null {\n function isMatch(patternParts: string[], pathParts: string[]) {\n for (let i = 0; i < patternParts.length; i++) {\n if (patternParts[i] !== '*' && patternParts[i] !== pathParts[i]) {\n return false\n }\n }\n return true\n }\n\n for (const [key, value] of Object.entries(config.react?.importPaths || {})) {\n // Do a partial match from the end of the path\n const patternParts = key.split('/').reverse()\n const pathParts = filePath.split('/').reverse()\n if (pathParts.length < patternParts.length) {\n continue\n }\n\n // If the mapped path ends with a wildcard we want to keep the filename in\n // the final path (for non-index imports)\n if (isMatch(patternParts, pathParts)) {\n return value.endsWith('*') ? `${value.slice(0, -1)}${pathParts[0].split('.')[0]}` : value\n }\n }\n\n return null\n}\n"],"names":["getGitRemoteURL","getRemoteFileUrl","getStorybookUrl","resolveImportPath","DEFAULT_CONFIG_FILE_NAME","parseConfig","configFilePath","fs","existsSync","undefined","rawData","readFileSync","config","JSON","parse","error","console","repoPath","spawn","spawnSync","cwd","output","stdout","toString","trim","getGitRepoAbsolutePath","filePath","path","dirname","repoURL","url","replace","repoAbsPath","index","indexOf","relativeFilePath","substring","length","storybookUrl","storybookComponentPath","split","join","isMatch","patternParts","pathParts","i","key","value","Object","entries","react","importPaths","reverse","endsWith","slice"],"mappings":";;;;;;;;;;;IAgFgBA,eAAe;eAAfA;;IAmCAC,gBAAgB;eAAhBA;;IAuBAC,eAAe;eAAfA;;IA2CAC,iBAAiB;eAAjBA;;;+BArLU;6DAET;2DACF;;;;;;AAIf,MAAMC,2BAA2B;AA0DjC,SAASC,YAAYC,cAAsB;IACzC,IAAI,CAACC,WAAE,CAACC,UAAU,CAACF,iBAAiB;QAClC,OAAOG;IACT;IAEA,IAAI;QACF,MAAMC,UAAUH,WAAE,CAACI,YAAY,CAACL,gBAAgB;QAChD,MAAMM,SAASC,KAAKC,KAAK,CAACJ;QAC1B,OAAOE;IACT,EAAE,OAAOG,OAAO;QACdC,QAAQD,KAAK,CAAC,8BAA8BA;QAC5C,O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