@supernovaio/cli 1.1.0 → 1.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.
Files changed (304) hide show
  1. package/dist/commands/describe-design-system.js +1 -1
  2. package/dist/commands/describe-workspaces.js +1 -1
  3. package/dist/commands/publish-documentation.d.ts +1 -0
  4. package/dist/commands/publish-documentation.js +59 -9
  5. package/dist/commands/run-local-exporter.js +5 -2
  6. package/dist/commands/sync-tokens.js +5 -2
  7. package/dist/index.d.ts +1 -1
  8. package/dist/utils/common.d.ts +1 -0
  9. package/dist/utils/common.js +7 -0
  10. package/dist/utils/figma-tokens-data-loader.js +51 -49
  11. package/dist/utils/sdk.js +6 -4
  12. package/node_modules/@supernova-studio/pulsar-core/build/main/pulsar-core.js +2 -2
  13. package/node_modules/@supernova-studio/pulsar-core/package.json +8 -26
  14. package/node_modules/@supernova-studio/pulsar-language/build/main/language/src/extensions/dsm/DSMBridge.d.ts +4 -0
  15. package/node_modules/@supernova-studio/pulsar-language/build/main/pulsar-language.js +1 -1
  16. package/node_modules/@supernova-studio/pulsar-language/package.json +7 -22
  17. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDocumentation.d.ts +4 -4
  18. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKDataCore.d.ts +2 -2
  19. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/exports.d.ts +1 -0
  20. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPageBlock.d.ts +11 -4
  21. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAssetGroup.d.ts +25 -0
  22. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuideline.d.ts +11 -0
  23. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuidelineProps.d.ts +17 -0
  24. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuidelines.d.ts +8 -0
  25. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockImage.d.ts +2 -0
  26. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockSwatch.d.ts +9 -0
  27. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageBlockType.d.ts +3 -0
  28. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +6 -0
  29. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/tsconfig.tsbuildinfo +6395 -0
  30. package/node_modules/@supernovaio/supernova-sdk/build/supernova-sdk-typescript.js +1 -1
  31. package/node_modules/@supernovaio/supernova-sdk/build/supernova-sdk-typescript.js.map +1 -1
  32. package/node_modules/@supernovaio/supernova-sdk/package.json +7 -8
  33. package/node_modules/axios/CHANGELOG.md +895 -746
  34. package/node_modules/axios/README.md +37 -42
  35. package/node_modules/axios/dist/axios.js +1168 -299
  36. package/node_modules/axios/dist/axios.js.map +1 -1
  37. package/node_modules/axios/dist/axios.min.js +1 -1
  38. package/node_modules/axios/dist/axios.min.js.map +1 -1
  39. package/node_modules/axios/dist/browser/axios.cjs +810 -315
  40. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  41. package/node_modules/axios/dist/esm/axios.js +810 -315
  42. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  43. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  44. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  45. package/node_modules/axios/dist/node/axios.cjs +824 -396
  46. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  47. package/node_modules/axios/index.d.cts +5 -2
  48. package/node_modules/axios/index.d.ts +5 -2
  49. package/node_modules/axios/lib/adapters/adapters.js +3 -1
  50. package/node_modules/axios/lib/adapters/fetch.js +229 -0
  51. package/node_modules/axios/lib/adapters/http.js +27 -17
  52. package/node_modules/axios/lib/adapters/xhr.js +36 -99
  53. package/node_modules/axios/lib/cancel/CancelToken.js +14 -0
  54. package/node_modules/axios/lib/core/Axios.js +9 -6
  55. package/node_modules/axios/lib/core/AxiosError.js +5 -2
  56. package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
  57. package/node_modules/axios/lib/defaults/index.js +7 -2
  58. package/node_modules/axios/lib/env/data.js +1 -1
  59. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +3 -51
  60. package/node_modules/axios/lib/helpers/composeSignals.js +48 -0
  61. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  62. package/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
  63. package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
  64. package/node_modules/axios/lib/helpers/throttle.js +30 -19
  65. package/node_modules/axios/lib/helpers/trackStream.js +87 -0
  66. package/node_modules/axios/lib/platform/common/utils.js +9 -5
  67. package/node_modules/axios/lib/utils.js +40 -3
  68. package/node_modules/axios/package.json +4 -3
  69. package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts.map +1 -1
  70. package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.js +2 -2
  71. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  72. package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/package.json +2 -2
  73. package/oclif.manifest.json +7 -1
  74. package/package.json +109 -108
  75. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/README.md +0 -95
  76. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.d.ts +0 -38
  77. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.d.ts.map +0 -1
  78. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.js +0 -112
  79. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.js.map +0 -1
  80. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/package.json +0 -49
  81. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/README.md +0 -97
  82. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.d.ts +0 -46
  83. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
  84. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.js +0 -174
  85. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  86. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/package.json +0 -50
  87. package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.d.ts +0 -15
  88. package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
  89. package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.js +0 -66
  90. package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.js.map +0 -1
  91. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
  92. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.js +0 -175
  93. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  94. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
  95. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
  96. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  97. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  98. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/package.json +0 -50
  99. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/LICENSE +0 -22
  100. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/README.md +0 -69
  101. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.d.ts +0 -15
  102. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
  103. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.js +0 -66
  104. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.js.map +0 -1
  105. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.d.ts +0 -41
  106. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.d.ts.map +0 -1
  107. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.js +0 -175
  108. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.js.map +0 -1
  109. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/package.json +0 -49
  110. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/LICENSE +0 -22
  111. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/README.md +0 -70
  112. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/index.d.ts +0 -47
  113. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  114. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
  115. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
  116. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  117. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  118. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/browser-bundle.d.ts +0 -0
  119. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKBrand.d.ts +0 -0
  120. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKBrandWriter.d.ts +0 -0
  121. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystem.d.ts +0 -0
  122. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystemVersion.d.ts +0 -0
  123. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystemVersionWriter.d.ts +0 -0
  124. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKSupernova.d.ts +0 -0
  125. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKWorkspace.d.ts +0 -0
  126. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKConfiguration.d.ts +0 -0
  127. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKDataBridge.d.ts +0 -0
  128. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/errors/SDKSupernovaError.d.ts +0 -0
  129. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKAssetGroupResolver.d.ts +0 -0
  130. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKComponentResolver.d.ts +0 -0
  131. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +0 -0
  132. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKDocumentationItemResolver.d.ts +0 -0
  133. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKTokenGroupResolver.d.ts +0 -0
  134. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKTokenResolver.d.ts +0 -0
  135. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/index.d.ts +0 -0
  136. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/assets/SDKAsset.d.ts +0 -0
  137. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/assets/SDKRenderedAsset.d.ts +0 -0
  138. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/components/SDKComponent.d.ts +0 -0
  139. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/components/SDKDesignComponent.d.ts +0 -0
  140. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationConfiguration.d.ts +0 -0
  141. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationGroup.d.ts +0 -0
  142. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationItem.d.ts +0 -0
  143. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPage.d.ts +0 -0
  144. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPageAsset.d.ts +0 -0
  145. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichText.d.ts +0 -0
  146. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichTextSpan.d.ts +0 -0
  147. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichTextSpanAttribute.d.ts +0 -0
  148. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockAsset.d.ts +0 -0
  149. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockAssets.d.ts +0 -0
  150. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCallout.d.ts +0 -0
  151. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCode.d.ts +0 -0
  152. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockColumn.d.ts +0 -0
  153. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockColumnItem.d.ts +0 -0
  154. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCustom.d.ts +0 -0
  155. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockDivider.d.ts +0 -0
  156. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedFigma.d.ts +0 -0
  157. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedGeneric.d.ts +0 -0
  158. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedLink.d.ts +0 -0
  159. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedStorybook.d.ts +0 -0
  160. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedYoutube.d.ts +0 -0
  161. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockFrame.d.ts +0 -0
  162. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockFrames.d.ts +0 -0
  163. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockHeading.d.ts +0 -0
  164. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockOrderedList.d.ts +0 -0
  165. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockQuote.d.ts +0 -0
  166. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockRenderCode.d.ts +0 -0
  167. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockShortcut.d.ts +0 -0
  168. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockShortcuts.d.ts +0 -0
  169. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTab.d.ts +0 -0
  170. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTabItem.d.ts +0 -0
  171. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTable.d.ts +0 -0
  172. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableCell.d.ts +0 -0
  173. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableColumn.d.ts +0 -0
  174. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableRow.d.ts +0 -0
  175. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockText.d.ts +0 -0
  176. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockToken.d.ts +0 -0
  177. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTokenGroup.d.ts +0 -0
  178. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTokenList.d.ts +0 -0
  179. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockUnorderedList.d.ts +0 -0
  180. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/builder/SDKDocumentationBlockBuilder.d.ts +0 -0
  181. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/configuration/SDKDocumentationItemConfiguration.d.ts +0 -0
  182. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/configuration/SDKDocumentationItemHeader.d.ts +0 -0
  183. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementDataView.d.ts +0 -0
  184. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementDataViewColumn.d.ts +0 -0
  185. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementProperty.d.ts +0 -0
  186. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementPropertyOption.d.ts +0 -0
  187. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/values/SDKElementPropertyValue.d.ts +0 -0
  188. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAlignment.d.ts +0 -0
  189. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetFormat.d.ts +0 -0
  190. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetScale.d.ts +0 -0
  191. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetScaleType.d.ts +0 -0
  192. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKBlurType.d.ts +0 -0
  193. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKBorderPosition.d.ts +0 -0
  194. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationCalloutType.d.ts +0 -0
  195. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationEnvironment.d.ts +0 -0
  196. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationGroupBehavior.d.ts +0 -0
  197. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationHeadingType.d.ts +0 -0
  198. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationItemType.d.ts +0 -0
  199. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageAssetType.d.ts +0 -0
  200. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageBlockThemeType.d.ts +0 -0
  201. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKFrameAlignment.d.ts +0 -0
  202. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKFrameLayout.d.ts +0 -0
  203. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKGradientType.d.ts +0 -0
  204. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKRichTextSpanAttributeType.d.ts +0 -0
  205. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKShadowType.d.ts +0 -0
  206. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKSourceType.d.ts +0 -0
  207. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTextCase.d.ts +0 -0
  208. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTextDecoration.d.ts +0 -0
  209. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTokenType.d.ts +0 -0
  210. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKUnit.d.ts +0 -0
  211. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/SDKExporter.d.ts +0 -0
  212. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +0 -0
  213. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +0 -0
  214. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +0 -0
  215. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +0 -0
  216. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKAssetGroup.d.ts +0 -0
  217. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKDesignComponentGroup.d.ts +0 -0
  218. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKTokenGroup.d.ts +0 -0
  219. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKDesignComponentOrigin.d.ts +0 -0
  220. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKFrameOrigin.d.ts +0 -0
  221. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKSize.d.ts +0 -0
  222. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKSource.d.ts +0 -0
  223. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKTokenOrigin.d.ts +0 -0
  224. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKWorkspaceNPMRegistry.d.ts +0 -0
  225. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKThemeUtilities.d.ts +0 -0
  226. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKTokenTheme.d.ts +5 -5
  227. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKTokenThemeOverride.d.ts +5 -5
  228. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKBlurToken.d.ts +0 -0
  229. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKBorderToken.d.ts +0 -0
  230. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKColorToken.d.ts +0 -0
  231. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKFontToken.d.ts +0 -0
  232. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKGenericToken.d.ts +0 -0
  233. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKGradientToken.d.ts +0 -0
  234. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKMeasureToken.d.ts +0 -0
  235. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKRadiusToken.d.ts +0 -0
  236. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKShadowToken.d.ts +0 -0
  237. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTextToken.d.ts +0 -0
  238. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKToken.d.ts +0 -0
  239. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTokenCompator.d.ts +0 -0
  240. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTokenValue.d.ts +0 -0
  241. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTypographyToken.d.ts +0 -0
  242. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenData.d.ts +0 -0
  243. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +0 -0
  244. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +0 -0
  245. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/users/SDKUser.d.ts +0 -0
  246. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Brand.spec.d.ts +0 -0
  247. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Components.spec.d.ts +0 -0
  248. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/DesignSystem.spec.d.ts +0 -0
  249. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/DesignSystemVersion.spec.d.ts +0 -0
  250. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Documentation.spec.d.ts +0 -0
  251. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Supernova.spec.d.ts +0 -0
  252. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Theme.spec.d.ts +0 -0
  253. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Workspace.spec.d.ts +0 -0
  254. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/PluginFigmaTokens.spec.d.ts +0 -0
  255. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/PluginJSONBuilder.spec.d.ts +0 -0
  256. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/ToolDocSearch.spec.d.ts +0 -0
  257. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/ToolMarkdownTransform.spec.d.ts +0 -0
  258. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/helpers.d.ts +0 -0
  259. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +0 -0
  260. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +0 -0
  261. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +0 -0
  262. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +0 -0
  263. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +0 -0
  264. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +0 -0
  265. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +0 -0
  266. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +0 -0
  267. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +0 -0
  268. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +0 -0
  269. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +0 -0
  270. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +0 -0
  271. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/collection/SDKDTTokenCollection.d.ts +0 -0
  272. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/expression/SDKDTExpressionParser.d.ts +0 -0
  273. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +0 -0
  274. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +0 -0
  275. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +0 -0
  276. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +0 -0
  277. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +0 -0
  278. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +0 -0
  279. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +0 -0
  280. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +0 -0
  281. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformCustomBlock.d.ts +0 -0
  282. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +0 -0
  283. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/search-index/SDKToolsDocSearch.d.ts +0 -0
  284. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/token-transform/SDKToolsTokenTransform.d.ts +0 -0
  285. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/utils/FlowUtils.d.ts +0 -0
  286. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/utils/StringUtils.d.ts +0 -0
  287. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/LICENSE +0 -0
  288. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/README.md +0 -0
  289. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.d.ts +0 -0
  290. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.d.ts.map +0 -0
  291. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.js +0 -0
  292. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.js.map +0 -0
  293. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.d.ts +0 -0
  294. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.d.ts.map +0 -0
  295. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.js +0 -0
  296. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.js.map +0 -0
  297. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/package.json +0 -0
  298. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/LICENSE +0 -0
  299. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/README.md +0 -0
  300. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts +0 -0
  301. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
  302. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
  303. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js +0 -0
  304. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
@@ -35,7 +35,7 @@ class DescribeDesignSystem extends core_1.Command {
35
35
  this.log(`\n↳ Design system "${designSystem.name}", id: ${designSystem.id}`.cyan);
36
36
  for (let brand of brands) {
37
37
  this.log(` ↳ Brand: "${brand.name}", id: ${brand.id}`);
38
- let brandThemes = themes.filter((t) => t.brandId === brand.id);
38
+ let brandThemes = themes.filter(t => t.brandId === brand.id);
39
39
  if (brandThemes.length > 0) {
40
40
  for (let theme of brandThemes) {
41
41
  this.log(` ↳ Theme: "${theme.name}", id: ${theme.id}`);
@@ -45,7 +45,7 @@ class DescribeWorkspaces extends core_1.Command {
45
45
  let themes = await instance.tokens.getTokenThemes(id);
46
46
  for (let brand of brands) {
47
47
  this.log(` ↳ Brand: "${brand.name}", id: ${brand.id}`);
48
- let brandThemes = themes.filter((t) => t.brandId === brand.id);
48
+ let brandThemes = themes.filter(t => t.brandId === brand.id);
49
49
  if (brandThemes.length > 0) {
50
50
  for (let theme of brandThemes) {
51
51
  this.log(` ↳ Theme: "${theme.name}", id: ${theme.id}`.gray);
@@ -12,6 +12,7 @@ export declare class PublishDocumentation extends Command {
12
12
  target: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
13
13
  environment: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
14
14
  proxyUrl: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
15
+ awaitPublishJob: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
16
  };
16
17
  run(): Promise<void>;
17
18
  }
@@ -14,6 +14,8 @@ const core_1 = require("@oclif/core");
14
14
  const types_1 = require("../types/types");
15
15
  const sdk_1 = require("../utils/sdk");
16
16
  require("colors");
17
+ const sdk_2 = require("@supernovaio/sdk");
18
+ const common_1 = require("../utils/common");
17
19
  // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
18
20
  // MARK: - Definition
19
21
  // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
@@ -25,20 +27,44 @@ class PublishDocumentation extends core_1.Command {
25
27
  // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
26
28
  // MARK: - Command runtime
27
29
  async run() {
30
+ var _a;
28
31
  try {
29
32
  const { flags } = await this.parse(PublishDocumentation);
33
+ const environment = tryParseDocsEnvironment(flags.target);
34
+ if (!environment) {
35
+ const supportedEnvs = [sdk_2.DocumentationEnvironment.live, sdk_2.DocumentationEnvironment.preview];
36
+ this.error(`Unknown target ${flags.target}, must be one of [${supportedEnvs.join(", ")}]`);
37
+ }
30
38
  // Get workspace -> design system –> version
31
- let { instance, id } = await (0, sdk_1.getWritableVersion)(flags);
32
- let documentation = await instance.documentation.getDocumentation(id);
33
- let result = await instance.documentation.publish(id, flags.target);
34
- if (result.status === "Success") {
39
+ const { instance, id, designSystem } = await (0, sdk_1.getWritableVersion)(flags);
40
+ const publishJob = await instance.documentation.publishDrafts(id, environment, {
41
+ pagePersistentIds: [],
42
+ groupPersistentIds: [],
43
+ });
44
+ if (!((_a = flags.awaitPublishJob) !== null && _a !== void 0 ? _a : true)) {
45
+ this.log(`Publishing documentation in ${designSystem.name} has started, job await is disabled, exiting...`);
46
+ }
47
+ else {
48
+ this.log(`Publishing documentation in ${designSystem.name}...`);
49
+ }
50
+ // Timeout is roughly 30 minutes
51
+ for (let i = 0; i < 30 * 60; i++) {
52
+ await (0, common_1.sleep)(1000);
53
+ const updatedJob = await instance.documentation.getDocumentationBuild(designSystem.workspaceId, publishJob.id);
54
+ if (isJobStatusDone(updatedJob.status))
55
+ break;
56
+ }
57
+ if (publishJob.status === "Success") {
35
58
  this.log("\nDone: Documentation queued for publishing".green);
36
59
  }
37
- else if (result.status === "InProgress") {
38
- this.log("\n Done: Skipped documentation publish as another build is already in progress".green);
60
+ else if (publishJob.status === "Failed") {
61
+ throw new Error(`Documentation publish failed`);
62
+ }
63
+ else if (publishJob.status === "Timeout") {
64
+ throw new Error(`Documentation publish timed out`);
39
65
  }
40
- else if (result.status === "Failed") {
41
- throw new Error(`Documentation publish failed with unknown failure`);
66
+ else {
67
+ throw new Error(`Error awaiting publish job`);
42
68
  }
43
69
  }
44
70
  catch (error) {
@@ -61,7 +87,11 @@ PublishDocumentation.flags = {
61
87
  apiKey: core_1.Flags.string({ description: "API key to use for accessing Supernova instance", required: true }),
62
88
  designSystemId: core_1.Flags.string({ description: "Design System to publish the documentation", required: true }),
63
89
  dev: core_1.Flags.boolean({ description: "When enabled, CLI will target dev server", hidden: true, default: false }),
64
- target: core_1.Flags.string({ description: "Environment to use for publishing: Live or Preview", required: false, default: "Live" }),
90
+ target: core_1.Flags.string({
91
+ description: "Environment to use for publishing: Live or Preview",
92
+ required: false,
93
+ default: "Live",
94
+ }),
65
95
  environment: core_1.Flags.string({
66
96
  description: "When set, CLI will target a specific environment",
67
97
  hidden: true,
@@ -74,4 +104,24 @@ PublishDocumentation.flags = {
74
104
  hidden: true,
75
105
  required: false,
76
106
  }),
107
+ awaitPublishJob: core_1.Flags.boolean({
108
+ description: "Whether to block the process until the publishing is done. " +
109
+ "Setting the flag to false will exit with success as long as documentation publish was successfully triggered, " +
110
+ "but before the publish is completed. Setting the flag to true will exit once the publish is complete and will " +
111
+ "throw if documentation publish is not successful.",
112
+ default: true,
113
+ }),
77
114
  };
115
+ function tryParseDocsEnvironment(targetArg) {
116
+ switch (targetArg.toLowerCase()) {
117
+ case "live":
118
+ return sdk_2.DocumentationEnvironment.live;
119
+ case "preview":
120
+ return sdk_2.DocumentationEnvironment.preview;
121
+ default:
122
+ return null;
123
+ }
124
+ }
125
+ function isJobStatusDone(status) {
126
+ return (status === sdk_2.ExportBuildStatus.Failed || status === sdk_2.ExportBuildStatus.Success || status === sdk_2.ExportBuildStatus.Timeout);
127
+ }
@@ -134,7 +134,7 @@ class RunLocalExporter extends core_1.Command {
134
134
  const chunkSize = 4;
135
135
  for (let i = 0; i < result.emittedFiles.length; i += chunkSize) {
136
136
  const chunk = result.emittedFiles.slice(i, i + chunkSize);
137
- await Promise.all(chunk.map((file) => processFile(file)));
137
+ await Promise.all(chunk.map(file => processFile(file)));
138
138
  }
139
139
  // Write all files from the temporary structure to the filesystem as a final step - this is to avoid partial writes
140
140
  filesToWrite.forEach(({ filePath, content }) => {
@@ -200,7 +200,10 @@ RunLocalExporter.flags = {
200
200
  apiKey: core_1.Flags.string({ description: "API key to use for accessing Supernova instance", required: true }),
201
201
  designSystemId: core_1.Flags.string({ description: "Design System to export from", required: true }),
202
202
  exporterDir: core_1.Flags.string({ description: "Path to exporter package", required: true }),
203
- outputDir: core_1.Flags.string({ description: "Path to output folder. Must be empty, unless `forceClearOutputDir` is set", required: true }),
203
+ outputDir: core_1.Flags.string({
204
+ description: "Path to output folder. Must be empty, unless `forceClearOutputDir` is set",
205
+ required: true,
206
+ }),
204
207
  themeId: core_1.Flags.string({
205
208
  description: "Theme to export. Will only be used when exporter has usesThemes: true, and is optional",
206
209
  required: false,
@@ -46,7 +46,7 @@ class SyncDesignTokens extends core_1.Command {
46
46
  let tokenDefinition = flags.tokenDirPath
47
47
  ? await dataLoader.loadTokensFromDirectory(flags.tokenDirPath, flags.configFilePath)
48
48
  : await dataLoader.loadTokensFromPath(flags.tokenFilePath);
49
- const response = await instance.versions.writeTokenStudioData(id, buildData(tokenDefinition));
49
+ const response = (await instance.versions.writeTokenStudioData(id, buildData(tokenDefinition)));
50
50
  if (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.logs) && response.result.logs.length > 0) {
51
51
  for (const log of response.result.logs) {
52
52
  this.log(log);
@@ -94,7 +94,10 @@ SyncDesignTokens.flags = {
94
94
  exactlyOne: ["tokenDirPath", "tokenFilePath"],
95
95
  }),
96
96
  configFilePath: core_1.Flags.string({ description: "Path to configuration JSON file", required: true, exclusive: [] }),
97
- apiUrl: core_1.Flags.string({ description: "API url to use for accessing Supernova instance, would ignore defaults", hidden: true }),
97
+ apiUrl: core_1.Flags.string({
98
+ description: "API url to use for accessing Supernova instance, would ignore defaults",
99
+ hidden: true,
100
+ }),
98
101
  environment: core_1.Flags.string({
99
102
  description: "When set, CLI will target a specific environment",
100
103
  hidden: true,
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { run } from '@oclif/core';
1
+ export { run } from "@oclif/core";
@@ -0,0 +1 @@
1
+ export declare function sleep(ms: number): Promise<void>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sleep = void 0;
4
+ async function sleep(ms) {
5
+ return new Promise(resolve => setTimeout(resolve, ms));
6
+ }
7
+ exports.sleep = sleep;
@@ -4,7 +4,7 @@ exports.FigmaTokensDataLoader = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const sdk_1 = require("@supernovaio/sdk");
6
6
  const fs = tslib_1.__importStar(require("fs"));
7
- const path = require('path');
7
+ const path = require("path");
8
8
  class FigmaTokensDataLoader {
9
9
  /** Load token definitions from path */
10
10
  async loadTokensFromPath(pathToFile) {
@@ -12,12 +12,12 @@ class FigmaTokensDataLoader {
12
12
  if (!(fs.existsSync(pathToFile) && fs.lstatSync(pathToFile).isFile())) {
13
13
  throw Error(`Provided token file directory ${pathToFile} is not a file or doesn't exist`);
14
14
  }
15
- let definition = fs.readFileSync(pathToFile, 'utf8');
15
+ let definition = fs.readFileSync(pathToFile, "utf8");
16
16
  let parsedDefinition = this.parseDefinition(definition);
17
17
  return parsedDefinition;
18
18
  }
19
19
  catch (error) {
20
- throw new Error('Unable to load JSON definition file: ' + error);
20
+ throw new Error("Unable to load JSON definition file: " + error);
21
21
  }
22
22
  }
23
23
  async loadTokensFromDirectory(pathToDirectory, settingsPath) {
@@ -28,9 +28,9 @@ class FigmaTokensDataLoader {
28
28
  }
29
29
  let jsonPaths = this.getAllJSONFiles(pathToDirectory);
30
30
  for (let path of jsonPaths) {
31
- if (path.endsWith('json') && path !== settingsPath && !path.includes('$')) {
31
+ if (path.endsWith("json") && path !== settingsPath && !path.includes("$")) {
32
32
  let result = await this.loadObjectFile(path);
33
- if (typeof result === 'object') {
33
+ if (typeof result === "object") {
34
34
  // let name = this.getFileNameWithoutExtension(path)
35
35
  let name = this.getSetKey(path, pathToDirectory);
36
36
  fullStructuredObject[name] = result;
@@ -38,21 +38,21 @@ class FigmaTokensDataLoader {
38
38
  }
39
39
  }
40
40
  // Try to load themes, if any
41
- let themePath = pathToDirectory + '/' + '$themes.json';
41
+ let themePath = pathToDirectory + "/" + "$themes.json";
42
42
  if (fs.existsSync(themePath)) {
43
43
  let themes = await this.loadObjectFile(themePath);
44
- fullStructuredObject['$themes'] = themes;
44
+ fullStructuredObject["$themes"] = themes;
45
45
  }
46
46
  // Try to load metadata, if any
47
- let metadataPath = pathToDirectory + '/' + '$metadata.json';
47
+ let metadataPath = pathToDirectory + "/" + "$metadata.json";
48
48
  if (fs.existsSync(metadataPath)) {
49
49
  let metadata = await this.loadObjectFile(metadataPath);
50
- fullStructuredObject['$metadata'] = metadata;
50
+ fullStructuredObject["$metadata"] = metadata;
51
51
  }
52
52
  return fullStructuredObject;
53
53
  }
54
54
  catch (error) {
55
- throw new Error('Unable to load JSON definition file: ' + error);
55
+ throw new Error("Unable to load JSON definition file: " + error);
56
56
  }
57
57
  }
58
58
  getAllJSONFiles(dir) {
@@ -64,7 +64,7 @@ class FigmaTokensDataLoader {
64
64
  if (fileStat.isDirectory()) {
65
65
  jsonFiles.push(...this.getAllJSONFiles(filePath));
66
66
  }
67
- else if (fileStat.isFile() && filePath.endsWith('.json')) {
67
+ else if (fileStat.isFile() && filePath.endsWith(".json")) {
68
68
  jsonFiles.push(filePath);
69
69
  }
70
70
  }
@@ -87,7 +87,7 @@ class FigmaTokensDataLoader {
87
87
  return this.processFileToMapping(parsedDefinition);
88
88
  }
89
89
  catch (error) {
90
- throw new Error('Unable to load JSON definition file: ' + error);
90
+ throw new Error("Unable to load JSON definition file: " + error);
91
91
  }
92
92
  }
93
93
  loadConfigFromPathAsIs(pathToFile) {
@@ -95,66 +95,67 @@ class FigmaTokensDataLoader {
95
95
  if (!(fs.existsSync(pathToFile) && fs.lstatSync(pathToFile).isFile())) {
96
96
  throw new Error(`Provided configuration file directory ${pathToFile} is not a file or doesn't exist`);
97
97
  }
98
- let definition = fs.readFileSync(pathToFile, 'utf8');
98
+ let definition = fs.readFileSync(pathToFile, "utf8");
99
99
  let parsedDefinition = this.parseDefinition(definition);
100
100
  return parsedDefinition;
101
101
  }
102
102
  catch (error) {
103
- throw new Error('Unable to load JSON definition file: ' + error);
103
+ throw new Error("Unable to load JSON definition file: " + error);
104
104
  }
105
105
  }
106
106
  weakValidateMapping(mapping) {
107
- if (!mapping.hasOwnProperty('mode') ||
108
- typeof mapping.mode !== 'string' ||
109
- (mapping.mode !== 'multi-file' && mapping.mode !== 'single-file')) {
110
- throw new Error('Unable to load mapping file: `mode` must be provided [single-file or multi-file]`');
107
+ if (!mapping.hasOwnProperty("mode") ||
108
+ typeof mapping.mode !== "string" ||
109
+ (mapping.mode !== "multi-file" && mapping.mode !== "single-file")) {
110
+ throw new Error("Unable to load mapping file: `mode` must be provided [single-file or multi-file]`");
111
111
  }
112
112
  if (!mapping.mapping || !(mapping.mapping instanceof Array)) {
113
- throw new Error('Unable to load mapping file: `mapping` key must be present and array.');
113
+ throw new Error("Unable to load mapping file: `mapping` key must be present and array.");
114
114
  }
115
115
  let mapPack = mapping.mapping;
116
116
  for (let map of mapPack) {
117
- if (typeof map !== 'object') {
118
- throw new Error('Unable to load mapping file: `mapping` must contain objects only');
117
+ if (typeof map !== "object") {
118
+ throw new Error("Unable to load mapping file: `mapping` must contain objects only");
119
119
  }
120
120
  if (!map.tokenSets && !map.tokensTheme) {
121
- throw new Error('Unable to load mapping file: `mapping` must contain either `tokensTheme` or `tokenSets`');
121
+ throw new Error("Unable to load mapping file: `mapping` must contain either `tokensTheme` or `tokenSets`");
122
122
  }
123
123
  if (map.tokenSets && map.tokensTheme) {
124
- throw new Error('Unable to load mapping file: `mapping` must not contain both `tokensTheme` or `tokenSets`');
124
+ throw new Error("Unable to load mapping file: `mapping` must not contain both `tokensTheme` or `tokenSets`");
125
125
  }
126
126
  if (map.tokenSets && (!(map.tokenSets instanceof Array) || map.tokenSets.length === 0)) {
127
- throw new Error('Unable to load mapping file: `mapping`.`tokenSets` must be an Array with at least one entry');
127
+ throw new Error("Unable to load mapping file: `mapping`.`tokenSets` must be an Array with at least one entry");
128
128
  }
129
- if (map.tokensTheme && ((typeof map.tokensTheme !== 'string' && !Array.isArray(map.tokensTheme)) || map.tokensTheme.length === 0)) {
130
- throw new Error('Unable to load mapping file: `mapping`.`tokensTheme` must be a non-empty string or non-empty array of strings');
129
+ if (map.tokensTheme &&
130
+ ((typeof map.tokensTheme !== "string" && !Array.isArray(map.tokensTheme)) || map.tokensTheme.length === 0)) {
131
+ throw new Error("Unable to load mapping file: `mapping`.`tokensTheme` must be a non-empty string or non-empty array of strings");
131
132
  }
132
- if (!map.supernovaBrand || typeof map.supernovaBrand !== 'string' || map.supernovaBrand.length === 0) {
133
- throw new Error('Unable to load mapping file: `supernovaBrand` must be a non-empty string');
133
+ if (!map.supernovaBrand || typeof map.supernovaBrand !== "string" || map.supernovaBrand.length === 0) {
134
+ throw new Error("Unable to load mapping file: `supernovaBrand` must be a non-empty string");
134
135
  }
135
- if (map.supernovaTheme && (typeof map.supernovaTheme !== 'string' || map.supernovaTheme.length === 0)) {
136
- throw new Error('Unable to load mapping file: `supernovaTheme` may be empty but must be non-empty string if not');
136
+ if (map.supernovaTheme && (typeof map.supernovaTheme !== "string" || map.supernovaTheme.length === 0)) {
137
+ throw new Error("Unable to load mapping file: `supernovaTheme` may be empty but must be non-empty string if not");
137
138
  }
138
139
  }
139
140
  if (mapping.settings) {
140
- if (typeof mapping.settings !== 'object') {
141
- throw new Error('Unable to load mapping file: `settings` must be an object');
141
+ if (typeof mapping.settings !== "object") {
142
+ throw new Error("Unable to load mapping file: `settings` must be an object");
142
143
  }
143
- if (mapping.settings.hasOwnProperty('dryRun') && typeof mapping.settings.dryRun !== 'boolean') {
144
- throw new Error('Unable to load mapping file: `dryRun` must be of boolean type');
144
+ if (mapping.settings.hasOwnProperty("dryRun") && typeof mapping.settings.dryRun !== "boolean") {
145
+ throw new Error("Unable to load mapping file: `dryRun` must be of boolean type");
145
146
  }
146
- if (mapping.settings.hasOwnProperty('verbose') && typeof mapping.settings.verbose !== 'boolean') {
147
- throw new Error('Unable to load mapping file: `verbose` must be of boolean type');
147
+ if (mapping.settings.hasOwnProperty("verbose") && typeof mapping.settings.verbose !== "boolean") {
148
+ throw new Error("Unable to load mapping file: `verbose` must be of boolean type");
148
149
  }
149
- if (mapping.settings.hasOwnProperty('preciseCopy')
150
- && typeof mapping.settings.preciseCopy !== 'boolean'
151
- && typeof mapping.settings.preciseCopy !== "string") {
152
- throw new Error('Unable to load mapping file: `preciseCopy` must be of boolean or string type');
150
+ if (mapping.settings.hasOwnProperty("preciseCopy") &&
151
+ typeof mapping.settings.preciseCopy !== "boolean" &&
152
+ typeof mapping.settings.preciseCopy !== "string") {
153
+ throw new Error("Unable to load mapping file: `preciseCopy` must be of boolean or string type");
153
154
  }
154
155
  }
155
156
  }
156
157
  processFileToMapping(mapping) {
157
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
158
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
158
159
  let result = new Array();
159
160
  for (let map of mapping.mapping) {
160
161
  result.push({
@@ -165,18 +166,19 @@ class FigmaTokensDataLoader {
165
166
  bindToTheme: (_c = map.supernovaTheme) !== null && _c !== void 0 ? _c : null,
166
167
  nodes: null,
167
168
  processedNodes: null,
168
- processedGroups: null
169
+ processedGroups: null,
169
170
  });
170
171
  }
171
172
  let settings = {
172
173
  ...((_d = mapping.settings) !== null && _d !== void 0 ? _d : {}),
173
174
  dryRun: (_f = (_e = mapping.settings) === null || _e === void 0 ? void 0 : _e.dryRun) !== null && _f !== void 0 ? _f : false,
174
175
  verbose: (_h = (_g = mapping.settings) === null || _g === void 0 ? void 0 : _g.verbose) !== null && _h !== void 0 ? _h : false,
175
- preciseCopy: (_k = (_j = mapping.settings) === null || _j === void 0 ? void 0 : _j.preciseCopy) !== null && _k !== void 0 ? _k : false
176
+ preciseCopy: (0, sdk_1.toPreciseCopyStrategy)((_j = mapping.settings) === null || _j === void 0 ? void 0 : _j.preciseCopy),
177
+ themeOverridesStrategy: (_l = (_k = mapping.settings) === null || _k === void 0 ? void 0 : _k.themeOverridesStrategy) !== null && _l !== void 0 ? _l : "default",
176
178
  };
177
179
  return {
178
180
  mapping: result,
179
- settings: settings
181
+ settings: settings,
180
182
  };
181
183
  }
182
184
  // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
@@ -184,13 +186,13 @@ class FigmaTokensDataLoader {
184
186
  parseDefinition(definition) {
185
187
  try {
186
188
  let object = JSON.parse(definition);
187
- if (typeof object !== 'object') {
188
- throw new Error('Invalid Supernova mapping definition JSON file - root level entity must be object');
189
+ if (typeof object !== "object") {
190
+ throw new Error("Invalid Supernova mapping definition JSON file - root level entity must be object");
189
191
  }
190
192
  return object;
191
193
  }
192
194
  catch (error) {
193
- throw new Error('Invalid Supernova mapping definition JSON file - file structure invalid');
195
+ throw new Error("Invalid Supernova mapping definition JSON file - file structure invalid");
194
196
  }
195
197
  }
196
198
  async loadObjectFile(pathToFile) {
@@ -198,12 +200,12 @@ class FigmaTokensDataLoader {
198
200
  if (!(fs.existsSync(pathToFile) && fs.lstatSync(pathToFile).isFile())) {
199
201
  throw new Error(`Provided token file directory ${pathToFile} is not a file or doesn't exist`);
200
202
  }
201
- let definition = fs.readFileSync(pathToFile, 'utf8');
203
+ let definition = fs.readFileSync(pathToFile, "utf8");
202
204
  let parsedDefinition = this.parseDefinition(definition);
203
205
  return parsedDefinition;
204
206
  }
205
207
  catch (error) {
206
- throw new Error('Unable to load JSON definition file: ' + error);
208
+ throw new Error("Unable to load JSON definition file: " + error);
207
209
  }
208
210
  }
209
211
  }
package/dist/utils/sdk.js CHANGED
@@ -13,7 +13,9 @@ async function getWritableVersion(flags, apiVersion = "v2") {
13
13
  throw new Error(`Design System ID must not be empty`);
14
14
  }
15
15
  // Create instance for prod / dev
16
- let apiUrl = flags.apiUrl && flags.apiUrl.length > 0 ? flags.apiUrl : (0, network_1.environmentAPI)(flags.environment, apiVersion);
16
+ let apiUrl = flags.apiUrl && flags.apiUrl.length > 0
17
+ ? flags.apiUrl
18
+ : (0, network_1.environmentAPI)(flags.environment, apiVersion);
17
19
  let instance = new sdk_1.Supernova(flags.apiKey, { apiUrl, bypassEnvFetch: true, proxyUrl: flags.proxyUrl });
18
20
  let designSystem = await instance.designSystems.designSystem(flags.designSystemId);
19
21
  if (!designSystem) {
@@ -26,12 +28,12 @@ async function getWritableVersion(flags, apiVersion = "v2") {
26
28
  let id = {
27
29
  designSystemId: flags.designSystemId,
28
30
  versionId: version.id,
29
- workspaceId: designSystem.workspaceId
31
+ workspaceId: designSystem.workspaceId,
30
32
  };
31
33
  let brand = null;
32
34
  if (flags.brandId) {
33
35
  const brands = await instance.brands.getBrands(id);
34
- brand = (_a = brands.find((brand) => brand.id === flags.brandId || brand.idInVersion === flags.brandId)) !== null && _a !== void 0 ? _a : null;
36
+ brand = (_a = brands.find(brand => brand.id === flags.brandId || brand.idInVersion === flags.brandId)) !== null && _a !== void 0 ? _a : null;
35
37
  if (!brand) {
36
38
  throw new Error(`Brand ${flags.brandId} not found in specified design system`);
37
39
  }
@@ -39,7 +41,7 @@ async function getWritableVersion(flags, apiVersion = "v2") {
39
41
  let theme = null;
40
42
  if (flags.themeId) {
41
43
  const themes = await instance.tokens.getTokenThemes(id);
42
- theme = (_b = themes.find((theme) => theme.id === flags.themeId || theme.idInVersion === flags.themeId)) !== null && _b !== void 0 ? _b : null;
44
+ theme = (_b = themes.find(theme => theme.id === flags.themeId || theme.idInVersion === flags.themeId)) !== null && _b !== void 0 ? _b : null;
43
45
  if (!theme) {
44
46
  throw new Error(`Theme ${flags.themeId} not found in specified brand`);
45
47
  }