slice-machine-ui 1.26.1-beta.9 → 2.0.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 (520) hide show
  1. package/.eslintrc.js +6 -1
  2. package/.storybook/preview.tsx +2 -1
  3. package/out/404.html +1 -1
  4. package/out/_next/static/QWi-WrYk9EtyMIs1RfQ3_/_buildManifest.js +1 -0
  5. package/out/_next/static/chunks/{183-ebd633fed7c74545.js → 183-6ad1d7303abecd2b.js} +1 -1
  6. package/out/_next/static/chunks/18539003-32a73014bab3a789.js +22 -0
  7. package/out/_next/static/chunks/188-2e42d5ebef697946.js +1 -0
  8. package/out/_next/static/chunks/569-2ae3e9666f3bf991.js +1 -0
  9. package/out/_next/static/chunks/614-5130fbdbcfab2d35.js +1 -0
  10. package/out/_next/static/chunks/661-78c8c89d258133b8.js +1 -0
  11. package/out/_next/static/chunks/756-b11a3060cdc2f2d3.js +10 -0
  12. package/out/_next/static/chunks/90-2d4bdae13d031364.js +1 -0
  13. package/out/_next/static/chunks/91-67c244a4a034c8de.js +1 -0
  14. package/out/_next/static/chunks/pages/_app-0fe871bb1059a05c.js +532 -0
  15. package/out/_next/static/chunks/pages/changelog-3f04a3d8747ae383.js +1 -0
  16. package/out/_next/static/chunks/pages/changes-ec62e7eb50d6f2be.js +1 -0
  17. package/out/_next/static/chunks/pages/custom-types/[customTypeId]-982ecf1d799b6bcf.js +1 -0
  18. package/out/_next/static/chunks/pages/{custom-types-3c8e721ec6802127.js → custom-types-900b40b54b74e6d6.js} +1 -1
  19. package/out/_next/static/chunks/pages/{index-cf93d16e9c63b6db.js → index-ccd2975faba412f6.js} +1 -1
  20. package/out/_next/static/chunks/pages/labs-830dde0b85d6dd01.js +1 -0
  21. package/out/_next/static/chunks/pages/page-types/[pageTypeId]-886fc28240831dae.js +1 -0
  22. package/out/_next/static/chunks/pages/settings-f61144a9387fd6f1.js +1 -0
  23. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-9bdb355306fca592.js +1 -0
  24. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ad66e6c755798ce7.js +1 -0
  25. package/out/_next/static/chunks/pages/slices-d65be4ca817a766d.js +1 -0
  26. package/out/_next/static/css/037ba37d121d4afe.css +1 -0
  27. package/out/_next/static/css/22f264c93bd9d85f.css +1 -0
  28. package/out/_next/static/css/6279e95f6aff22d5.css +1 -0
  29. package/out/_next/static/css/824d6e761aed01d2.css +1 -0
  30. package/out/_next/static/css/e3ffbc7931a47375.css +1 -0
  31. package/out/_next/static/css/f01f60095c76c7fb.css +1 -0
  32. package/out/changelog.html +1 -1
  33. package/out/changes.html +1 -1
  34. package/out/custom-types/[customTypeId].html +1 -1
  35. package/out/custom-types.html +1 -1
  36. package/out/index.html +1 -1
  37. package/out/labs.html +1 -1
  38. package/out/page-types/[pageTypeId].html +1 -1
  39. package/out/settings.html +1 -1
  40. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  41. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  42. package/out/slices.html +1 -1
  43. package/package.json +10 -11
  44. package/sentry.client.config.ts +2 -1
  45. package/src/ErrorBoundary.tsx +1 -1
  46. package/src/apiClient.ts +13 -9
  47. package/src/components/BaseHoverCard/BaseHoverCard.module.css +18 -0
  48. package/src/components/BaseHoverCard/BaseHoverCard.module.css.d.ts +7 -0
  49. package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -1
  50. package/src/components/BaseHoverCard/BaseHoverCard.test.tsx +1 -1
  51. package/src/components/BaseHoverCard/BaseHoverCard.tsx +2 -2
  52. package/src/components/BlankSlate/BlankSlate.module.css +74 -0
  53. package/src/components/BlankSlate/BlankSlate.module.css.d.ts +13 -0
  54. package/src/components/BlankSlate/BlankSlate.stories.tsx +1 -1
  55. package/src/components/BlankSlate/BlankSlate.tsx +1 -1
  56. package/src/components/BlankSlate/index.ts +1 -1
  57. package/src/components/Breadcrumb/Breadcrumb.tsx +1 -1
  58. package/src/components/Card/Card.module.css +202 -0
  59. package/src/components/Card/Card.module.css.d.ts +22 -0
  60. package/src/components/Card/Card.stories.tsx +3 -3
  61. package/src/components/Card/Card.tsx +8 -8
  62. package/src/components/CodeBlock/CodeBlock.module.css +46 -0
  63. package/src/components/CodeBlock/CodeBlock.module.css.d.ts +10 -0
  64. package/src/components/CodeBlock/CodeBlock.tsx +7 -7
  65. package/src/components/ContentTabs/ContentTabs.tsx +1 -1
  66. package/src/components/Count/Count.tsx +1 -1
  67. package/src/components/Divider/Divider.module.css +23 -0
  68. package/src/components/Divider/Divider.module.css.d.ts +7 -0
  69. package/src/components/Divider/Divider.stories.tsx +3 -4
  70. package/src/components/Divider/Divider.tsx +5 -8
  71. package/src/components/HoverCard/HoverCard.stories.tsx +3 -2
  72. package/src/components/HoverCard/HoverCard.test.tsx +2 -2
  73. package/src/components/HoverCard/HoverCard.tsx +2 -2
  74. package/src/components/HoverCard/index.ts +3 -3
  75. package/src/components/List/List.css.ts +4 -2
  76. package/src/components/PageLayout/PageLayout.module.css +1 -1
  77. package/src/components/SideNav/SideNav.module.css +1 -1
  78. package/src/components/SideNav/SideNav.stories.tsx +6 -6
  79. package/src/components/SideNav/SideNav.tsx +8 -8
  80. package/src/components/SideNav/SideNavEnvironmentSelector.tsx +10 -12
  81. package/src/components/Table/Table.stories.tsx +2 -2
  82. package/src/components/Table/Table.test.tsx +2 -2
  83. package/src/components/Table/Table.tsx +2 -2
  84. package/src/components/Table/index.ts +1 -1
  85. package/src/components/TextLink/TextLink.stories.tsx +1 -1
  86. package/src/components/TextLink/TextLink.tsx +1 -1
  87. package/src/domain/__tests__/customType.test.ts +1 -186
  88. package/src/domain/__tests__/group.test.ts +161 -0
  89. package/src/domain/__tests__/slice.test.ts +3 -3
  90. package/src/domain/customType.ts +1 -193
  91. package/src/domain/group.ts +89 -0
  92. package/src/domain/slice.ts +28 -12
  93. package/src/features/autoSave/AutoSaveStatusIndicator.tsx +2 -2
  94. package/src/features/changelog/useSliceMachineLatestNonBreakingVersion.ts +1 -1
  95. package/src/features/changelog/useSliceMachineReleaseNotes.ts +1 -1
  96. package/src/features/changelog/useSliceMachineVersions.ts +2 -2
  97. package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +11 -14
  98. package/src/features/changes/PushChangesButton.tsx +5 -5
  99. package/src/features/changes/StatusBadge.tsx +2 -2
  100. package/src/features/customTypes/EditDropdown.tsx +6 -9
  101. package/src/features/customTypes/PageTypeOnboarding.tsx +5 -5
  102. package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +11 -12
  103. package/src/features/customTypes/__tests__/CustomTypesTablePage.test.tsx +11 -10
  104. package/src/features/customTypes/actions/convertCustomToPageType.ts +4 -4
  105. package/src/features/customTypes/actions/createCustomType.ts +5 -5
  106. package/src/features/customTypes/actions/deleteCustomType.ts +3 -3
  107. package/src/features/customTypes/actions/renameCustomType.ts +3 -3
  108. package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +8 -8
  109. package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +17 -12
  110. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.module.css +8 -0
  111. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.module.css.d.ts +5 -0
  112. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +8 -8
  113. package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +3 -3
  114. package/src/features/customTypes/customTypesBuilder/useCustomType.ts +1 -1
  115. package/src/features/customTypes/customTypesConfig.ts +2 -2
  116. package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +16 -16
  117. package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +9 -9
  118. package/src/features/customTypes/customTypesTable/useCustomTypes.ts +8 -8
  119. package/src/features/documentation/MarkdownRenderer/MarkdownRenderer.module.css +11 -0
  120. package/src/features/documentation/MarkdownRenderer/MarkdownRenderer.module.css.d.ts +6 -0
  121. package/src/features/documentation/MarkdownRenderer/index.tsx +6 -7
  122. package/src/features/documentation/useDocumentation.ts +1 -1
  123. package/src/features/environments/actions/getActiveEnvironment.ts +1 -1
  124. package/src/features/environments/actions/getEnvironments.ts +1 -1
  125. package/src/features/environments/actions/setEnvironment.ts +3 -3
  126. package/src/features/inAppGuide/InAppGuideContext.tsx +2 -2
  127. package/src/features/inAppGuide/InAppGuideDialog.tsx +4 -4
  128. package/src/features/inAppGuide/inAppGuideContent.tsx +4 -4
  129. package/src/features/labs/labsList/LabsList.tsx +2 -2
  130. package/src/features/labs/labsList/LabsListItem.tsx +1 -1
  131. package/src/features/labs/labsList/LabsPage.tsx +5 -5
  132. package/src/features/labs/labsList/useLab.tsx +1 -1
  133. package/src/features/settings/SettingsPage.tsx +4 -4
  134. package/src/features/settings/git/ConnectGitRepository.tsx +9 -9
  135. package/src/features/settings/git/GitOwnerSelect.tsx +1 -1
  136. package/src/features/settings/git/GitProvider.ts +4 -4
  137. package/src/features/settings/git/GitProviderConnectButtons.tsx +1 -1
  138. package/src/features/settings/git/GitRepositoriesList.tsx +5 -5
  139. package/src/features/settings/git/GitRepositoriesSearch.tsx +5 -5
  140. package/src/features/settings/git/GitRepositoryConnectDialog.tsx +5 -8
  141. package/src/features/settings/git/useGitIntegrationExperiment.ts +1 -1
  142. package/src/features/settings/git/useGitOwners.ts +1 -1
  143. package/src/features/settings/git/useGitRepos.ts +1 -1
  144. package/src/features/settings/git/useLinkedGitRepos.ts +2 -2
  145. package/src/features/settings/git/useWriteAPIToken.ts +2 -2
  146. package/src/features/slices/actions/addSlicesToSliceZone.ts +2 -2
  147. package/src/features/slices/actions/createSlice.ts +5 -5
  148. package/src/features/slices/actions/deleteSlice.ts +1 -1
  149. package/src/features/slices/actions/renameSlice.ts +4 -4
  150. package/src/features/slices/actions/uploadSliceScreenshot.ts +2 -2
  151. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +9 -9
  152. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +6 -6
  153. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +12 -12
  154. package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +3 -3
  155. package/src/features/slices/convertLegacySlice/types.ts +2 -2
  156. package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +6 -6
  157. package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +9 -9
  158. package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +4 -4
  159. package/src/features/slices/sliceBuilder/actions/renameVariation.ts +3 -3
  160. package/src/features/slices/sliceCards/NonSharedSliceCard.tsx +4 -4
  161. package/src/features/slices/sliceCards/SharedSliceCard.tsx +7 -7
  162. package/src/features/slicesTemplates/actions/createSlicesTemplates.ts +2 -2
  163. package/src/features/slicesTemplates/useSlicesTemplates.ts +2 -1
  164. package/src/features/sync/AutoSyncProvider.tsx +17 -17
  165. package/src/features/sync/actions/pushChanges.ts +4 -3
  166. package/src/features/sync/actions/trackPushChangesSuccess.ts +3 -3
  167. package/src/features/sync/components/AutoSyncStatusIndicator.module.css +1 -1
  168. package/src/features/sync/components/AutoSyncStatusIndicator.tsx +4 -4
  169. package/src/features/sync/fetchUnSyncChanges.ts +5 -5
  170. package/src/features/sync/getUnSyncChanges.ts +9 -9
  171. package/src/features/sync/useUnSyncChanges.ts +5 -5
  172. package/src/hooks/useActionQueue.tsx +5 -5
  173. package/src/hooks/useAdapterName.ts +1 -1
  174. package/src/hooks/useAuthStatus.ts +2 -2
  175. package/src/hooks/useCurrentSlice.tsx +4 -4
  176. package/src/hooks/useEditorContent.ts +5 -4
  177. package/src/hooks/useExperimentVariant.ts +2 -2
  178. package/src/hooks/useIsEmptyProject.ts +1 -1
  179. package/src/hooks/useRepositoryInformation.ts +2 -2
  180. package/src/hooks/useRouteChange.tsx +1 -1
  181. package/src/hooks/useSMTracker.ts +6 -6
  182. package/src/hooks/useScreenshotChangesModal.ts +5 -4
  183. package/src/hooks/useServerState.ts +4 -4
  184. package/src/hooks/useSliceMachineConfig.ts +2 -2
  185. package/src/hooks/useSliceMachineRunningVersion.ts +1 -1
  186. package/src/hooks/useThrottle.ts +1 -1
  187. package/src/hooks/useUpdateAvailable.ts +1 -1
  188. package/src/hooks/useWindowDimensions.ts +1 -1
  189. package/src/hooks/useWindowSize.ts +2 -1
  190. package/{components → src/legacy/components}/App/index.tsx +8 -8
  191. package/{components → src/legacy/components}/AppLayout/index.tsx +5 -6
  192. package/{components → src/legacy/components}/AuthInstructions/index.jsx +1 -1
  193. package/{components → src/legacy/components}/Button/index.tsx +1 -2
  194. package/{components → src/legacy/components}/Card/Default.jsx +2 -1
  195. package/{components → src/legacy/components}/Card/Preview.jsx +1 -1
  196. package/{components → src/legacy/components}/Card/WithTabs/index.jsx +4 -3
  197. package/{components → src/legacy/components}/Card/index.tsx +1 -0
  198. package/{components → src/legacy/components}/Changelog/index.tsx +8 -8
  199. package/{components → src/legacy/components}/Changelog/navigation/VersionBadge.tsx +2 -1
  200. package/{components → src/legacy/components}/Changelog/navigation/VersionTag.tsx +1 -0
  201. package/{components → src/legacy/components}/Changelog/navigation/index.tsx +6 -6
  202. package/{components → src/legacy/components}/Changelog/versionDetails/UpdateCommandBox.tsx +6 -6
  203. package/{components → src/legacy/components}/Changelog/versionDetails/VersionKindLabel.tsx +3 -4
  204. package/{components → src/legacy/components}/Changelog/versionDetails/index.tsx +5 -5
  205. package/{components → src/legacy/components}/ChangesEmptyState/AuthErrorPage.tsx +5 -5
  206. package/{components → src/legacy/components}/ChangesItems/ChangesItems.tsx +14 -14
  207. package/{components → src/legacy/components}/ChangesItems/DevCollaborationExperiment.tsx +3 -3
  208. package/{components → src/legacy/components}/CodeBlock/index.tsx +3 -3
  209. package/{components → src/legacy/components}/ConfigErrors/index.jsx +4 -3
  210. package/{components → src/legacy/components}/CustomTypeTable/changesPage.tsx +9 -8
  211. package/{components → src/legacy/components}/DeleteCTModal/index.tsx +9 -9
  212. package/{components → src/legacy/components}/DeleteDocumentsDrawer/AssociatedDocumentsCard.tsx +4 -4
  213. package/{components → src/legacy/components}/DeleteDocumentsDrawer/HardDeleteDocumentsDrawer.tsx +9 -9
  214. package/{components → src/legacy/components}/DeleteDocumentsDrawer/SoftDeleteDocumentsDrawer.tsx +9 -8
  215. package/{components → src/legacy/components}/DeleteSliceModal/index.tsx +6 -6
  216. package/{components → src/legacy/components}/DeleteVariationModal/index.tsx +6 -6
  217. package/{components → src/legacy/components}/DropDownSelector/index.tsx +2 -4
  218. package/{components → src/legacy/components}/EmptyState/index.tsx +3 -3
  219. package/{components → src/legacy/components}/FormFields/Array.jsx +2 -4
  220. package/{components → src/legacy/components}/FormFields/Checkbox.jsx +1 -1
  221. package/{components → src/legacy/components}/FormFields/CheckboxControl.jsx +1 -1
  222. package/{components → src/legacy/components}/FormFields/Input.tsx +3 -2
  223. package/{components → src/legacy/components}/FormFields/SelectDefaultValue.jsx +1 -1
  224. package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +18 -18
  225. package/{components → src/legacy/components}/Forms/CreateSliceModal/CreateSliceModal.tsx +10 -10
  226. package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +12 -12
  227. package/{components → src/legacy/components}/Forms/RenameSliceModal/RenameSliceModal.tsx +8 -8
  228. package/src/legacy/components/Forms/RenameVariationModal/RenameVariationModal.module.css.d.ts +5 -0
  229. package/{components → src/legacy/components}/Forms/RenameVariationModal/RenameVariationModal.tsx +6 -6
  230. package/{components → src/legacy/components}/Forms/components/InputBox.tsx +2 -2
  231. package/{components → src/legacy/components}/Forms/components/SelectRepeatable.tsx +4 -3
  232. package/{components → src/legacy/components}/Forms/formsValidator.ts +6 -4
  233. package/{components → src/legacy/components}/FullPage/index.tsx +1 -1
  234. package/{components → src/legacy/components}/ListItem/Header.tsx +3 -2
  235. package/{components → src/legacy/components}/ListItem/index.tsx +8 -10
  236. package/{components → src/legacy/components}/LoadingPage/index.tsx +1 -0
  237. package/{components → src/legacy/components}/LoginModal/index.tsx +22 -22
  238. package/{components → src/legacy/components}/ModalFormCard/index.tsx +7 -6
  239. package/{components → src/legacy/components}/Navigation/ChangesItem.tsx +18 -16
  240. package/{components → src/legacy/components}/Navigation/Environment.tsx +13 -13
  241. package/{components → src/legacy/components}/Navigation/RunningVersion.tsx +2 -2
  242. package/{components → src/legacy/components}/Navigation/UpdateBox.tsx +3 -3
  243. package/src/legacy/components/Navigation/VideoItem.module.css.d.ts +5 -0
  244. package/{components → src/legacy/components}/Navigation/VideoItem.tsx +14 -13
  245. package/src/legacy/components/Navigation/index.module.css.d.ts +5 -0
  246. package/{components → src/legacy/components}/Navigation/index.test.tsx +12 -12
  247. package/{components → src/legacy/components}/Navigation/index.tsx +20 -21
  248. package/{components → src/legacy/components}/ReviewModal/ReviewForm.tsx +12 -12
  249. package/{components → src/legacy/components}/ReviewModal/ReviewModal.tsx +6 -6
  250. package/{components → src/legacy/components}/ScreenshotChangesModal/VariationDropZone.tsx +7 -7
  251. package/{components → src/legacy/components}/ScreenshotChangesModal/index.tsx +12 -15
  252. package/{components → src/legacy/components}/ScreenshotChangesModal/useCustomScreenshot.tsx +1 -1
  253. package/{components → src/legacy/components}/ScreenshotPreviewModal/index.tsx +8 -7
  254. package/{components → src/legacy/components}/Simulator/components/FailedConnect/index.tsx +3 -3
  255. package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/MenuList.tsx +2 -1
  256. package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/index.tsx +4 -5
  257. package/{components → src/legacy/components}/Simulator/components/Header/index.tsx +7 -7
  258. package/{components → src/legacy/components}/Simulator/components/IframeRenderer/index.tsx +3 -4
  259. package/{components → src/legacy/components}/Simulator/components/Toolbar/ScreensizeInput/index.tsx +2 -1
  260. package/{components → src/legacy/components}/Simulator/components/Toolbar/index.tsx +4 -5
  261. package/{components → src/legacy/components}/Simulator/index.tsx +25 -30
  262. package/{components → src/legacy/components}/SliceMachineDrawer/index.tsx +3 -2
  263. package/{components → src/legacy/components}/ToasterContainer/index.tsx +3 -5
  264. package/{components → src/legacy/components}/Tooltip/TextWithTooltip.tsx +2 -2
  265. package/{components → src/legacy/components}/Tooltip/index.jsx +2 -2
  266. package/{components → src/legacy/components}/Warnings/index.jsx +1 -1
  267. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/DeleteSliceZoneModal.tsx +4 -4
  268. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/List.tsx +8 -8
  269. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +11 -11
  270. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +3 -3
  271. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +4 -3
  272. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/index.tsx +26 -23
  273. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/sliceTemplatesComingSoon.ts +1 -1
  274. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/InputBox.tsx +1 -1
  275. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/create.tsx +2 -1
  276. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/delete.tsx +2 -2
  277. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/update.tsx +3 -2
  278. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabZone/index.tsx +34 -32
  279. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/index.tsx +5 -5
  280. package/{lib → src/legacy/lib}/builders/SliceBuilder/FieldZones/index.tsx +43 -52
  281. package/{lib → src/legacy/lib}/builders/SliceBuilder/SimulatorButton/index.tsx +12 -11
  282. package/{lib/builders/SliceBuilder/Sidebar → src/legacy/lib/builders/SliceBuilder/VariationsList}/AddVariationModal.tsx +7 -7
  283. package/src/legacy/lib/builders/SliceBuilder/VariationsList/VariationsList.module.css +10 -0
  284. package/src/legacy/lib/builders/SliceBuilder/VariationsList/VariationsList.module.css.d.ts +5 -0
  285. package/src/legacy/lib/builders/SliceBuilder/VariationsList/index.tsx +253 -0
  286. package/{lib → src/legacy/lib}/builders/SliceBuilder/index.tsx +18 -13
  287. package/{lib → src/legacy/lib}/builders/common/EditModal/Field.jsx +3 -5
  288. package/{lib → src/legacy/lib}/builders/common/EditModal/Form.jsx +1 -1
  289. package/{lib → src/legacy/lib}/builders/common/EditModal/index.jsx +14 -16
  290. package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/index.jsx +3 -4
  291. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/ErrorTooltip.tsx +2 -2
  292. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +4 -5
  293. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/index.tsx +2 -1
  294. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/NewField.tsx +16 -13
  295. package/{lib → src/legacy/lib}/builders/common/Zone/Card/index.jsx +15 -9
  296. package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/ZoneEmptyState.module.css +12 -0
  297. package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/ZoneEmptyState.module.css.d.ts +5 -0
  298. package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/ZoneEmptyState.tsx +39 -0
  299. package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/index.tsx +1 -0
  300. package/{lib → src/legacy/lib}/builders/common/Zone/index.jsx +37 -19
  301. package/{lib → src/legacy/lib}/builders/utils/index.ts +1 -1
  302. package/{lib → src/legacy/lib}/forms/fields.ts +1 -2
  303. package/{lib → src/legacy/lib}/forms/index.ts +1 -0
  304. package/{lib → src/legacy/lib}/models/common/CustomType/index.ts +5 -4
  305. package/{lib → src/legacy/lib}/models/common/CustomType/sliceZone.ts +2 -1
  306. package/{lib → src/legacy/lib}/models/common/DeprecatedMockConfigMessage.tsx +3 -2
  307. package/{lib → src/legacy/lib}/models/common/Environment.ts +2 -2
  308. package/{lib → src/legacy/lib}/models/common/Group.ts +3 -2
  309. package/{lib → src/legacy/lib}/models/common/Library.ts +2 -1
  310. package/{lib → src/legacy/lib}/models/common/LibraryUI.ts +1 -1
  311. package/{lib → src/legacy/lib}/models/common/ModelData.ts +3 -3
  312. package/{lib → src/legacy/lib}/models/common/ModelStatus/compareCustomTypeModels.ts +2 -1
  313. package/{lib → src/legacy/lib}/models/common/ModelStatus/compareSliceModels.ts +2 -1
  314. package/{lib → src/legacy/lib}/models/common/ModelStatus/index.ts +10 -9
  315. package/{lib → src/legacy/lib}/models/common/Slice.ts +19 -5
  316. package/{lib → src/legacy/lib}/models/common/normalizers/customType.ts +2 -2
  317. package/{lib → src/legacy/lib}/models/common/normalizers/slices.ts +3 -2
  318. package/{lib → src/legacy/lib}/models/common/widgets/Boolean/index.ts +5 -7
  319. package/{lib → src/legacy/lib}/models/common/widgets/Color/index.ts +2 -3
  320. package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/Form.tsx +9 -10
  321. package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/index.ts +7 -7
  322. package/{lib → src/legacy/lib}/models/common/widgets/GeoPoint/index.ts +2 -3
  323. package/{lib → src/legacy/lib}/models/common/widgets/Group/Form.jsx +6 -6
  324. package/{lib → src/legacy/lib}/models/common/widgets/Group/ListItem/index.jsx +63 -76
  325. package/{lib → src/legacy/lib}/models/common/widgets/Group/index.ts +6 -4
  326. package/{lib → src/legacy/lib}/models/common/widgets/Image/Form.tsx +9 -11
  327. package/{lib → src/legacy/lib}/models/common/widgets/Image/components.tsx +6 -5
  328. package/{lib → src/legacy/lib}/models/common/widgets/Image/index.ts +3 -5
  329. package/{lib → src/legacy/lib}/models/common/widgets/Link/Form.jsx +5 -7
  330. package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/Form.jsx +4 -6
  331. package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/index.ts +4 -4
  332. package/{lib → src/legacy/lib}/models/common/widgets/Select/FormFields.jsx +7 -7
  333. package/{lib → src/legacy/lib}/models/common/widgets/Select/index.ts +3 -6
  334. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/Form.tsx +12 -11
  335. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/index.ts +3 -6
  336. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/options.tsx +2 -2
  337. package/{lib → src/legacy/lib}/models/common/widgets/Timestamp/index.ts +4 -5
  338. package/{lib → src/legacy/lib}/models/common/widgets/UID/index.ts +4 -5
  339. package/{lib → src/legacy/lib}/models/common/widgets/Widget.ts +3 -1
  340. package/src/legacy/lib/models/common/widgets/groupBuilderArray.ts +18 -0
  341. package/src/legacy/lib/models/common/widgets/sliceBuilderArray.ts +19 -0
  342. package/src/legacy/lib/models/common/widgets/withGroup.ts +2 -0
  343. package/{lib → src/legacy/lib}/models/server/ServerState.ts +4 -3
  344. package/{lib → src/legacy/lib}/utils/index.ts +4 -5
  345. package/{lib → src/legacy/lib}/utils/shared/customTypes.ts +1 -1
  346. package/src/modules/availableCustomTypes/index.ts +15 -13
  347. package/src/modules/availableCustomTypes/types.ts +2 -2
  348. package/src/modules/environment/index.ts +10 -8
  349. package/src/modules/environment/types.ts +1 -1
  350. package/src/modules/loading/index.ts +3 -2
  351. package/src/modules/modal/index.ts +4 -2
  352. package/src/modules/slices/index.ts +13 -9
  353. package/src/modules/slices/selector.ts +1 -1
  354. package/src/modules/slices/types.ts +2 -2
  355. package/src/modules/useSliceMachineActions.ts +25 -20
  356. package/src/modules/userContext/index.ts +5 -3
  357. package/{pages → src/pages}/_app.tsx +23 -25
  358. package/{pages → src/pages}/changelog.tsx +1 -1
  359. package/{pages → src/pages}/changes.tsx +22 -19
  360. package/src/pages/custom-types/[customTypeId].tsx +1 -0
  361. package/{pages → src/pages}/custom-types.tsx +1 -1
  362. package/{pages → src/pages}/index.tsx +3 -3
  363. package/src/pages/labs.tsx +1 -0
  364. package/src/pages/page-types/[pageTypeId].tsx +1 -0
  365. package/src/pages/settings.tsx +1 -0
  366. package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/index.tsx +3 -3
  367. package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/simulator.tsx +2 -2
  368. package/{pages → src/pages}/slices.tsx +21 -21
  369. package/src/redux/reducer.ts +8 -7
  370. package/src/redux/store.ts +8 -6
  371. package/src/redux/type.ts +7 -6
  372. package/src/theme.ts +1 -2
  373. package/src/utils/getContentTypeForTracking.ts +21 -0
  374. package/test/__setup__.ts +10 -8
  375. package/test/__testutils__/createTestPlugin.ts +3 -2
  376. package/test/__testutils__/createTestProject.ts +5 -4
  377. package/test/__testutils__/index.tsx +6 -5
  378. package/test/__testutils__/mockAWSACLAPI.ts +1 -1
  379. package/test/__testutils__/mockCustomTypesAPI.ts +1 -1
  380. package/test/__testutils__/mockPrismicAuthAPI.ts +1 -1
  381. package/test/__testutils__/mockPrismicUserAPI.ts +2 -3
  382. package/test/__testutils__/readMSWFormData.ts +1 -1
  383. package/test/components/IframeRenderer.test.ts +3 -2
  384. package/test/lib/builders/EditModal.test.tsx +5 -3
  385. package/test/lib/builders/buildersUtils.test.ts +3 -3
  386. package/test/lib/consts.test.ts +6 -2
  387. package/test/lib/models/common/CustomType.test.ts +6 -2
  388. package/test/lib/models/common/ModelStatus.test.ts +6 -4
  389. package/test/lib/models/common/Slice.test.ts +3 -2
  390. package/test/lib/models/common/widgets/index.test.ts +8 -4
  391. package/test/lib/utils/index.test.ts +3 -2
  392. package/test/lib/utils/preferWroomBase.test.ts +3 -2
  393. package/test/lib/utils/shared/customTypes.test.ts +2 -1
  394. package/test/pages/slices.test.tsx +10 -10
  395. package/test/src/modules/__fixtures__/serverState.ts +3 -3
  396. package/test/src/modules/__fixtures__/sliceUtilsFactory.ts +3 -3
  397. package/test/src/modules/availableCustomTypes/index.test.ts +3 -3
  398. package/test/src/modules/environment.test.ts +3 -5
  399. package/test/src/modules/loading.test.ts +3 -3
  400. package/test/src/modules/modal.test.ts +5 -5
  401. package/test/src/modules/slices.test.ts +3 -2
  402. package/test/src/modules/userContext.test.ts +3 -3
  403. package/test/src/normalizers/customType.test.ts +16 -3
  404. package/test/src/utils/fieldNameCreator.test.ts +1 -1
  405. package/tsconfig.json +1 -6
  406. package/vite.config.ts +5 -10
  407. package/lib/builders/SliceBuilder/Sidebar/index.tsx +0 -157
  408. package/lib/builders/common/Zone/components/EmptyState/index.tsx +0 -33
  409. package/lib/models/common/widgets/sliceBuilderArray.ts +0 -31
  410. package/lib/models/common/widgets/withGroup.ts +0 -20
  411. package/out/_next/static/chunks/18539003-a5a5d48f20a7b261.js +0 -97
  412. package/out/_next/static/chunks/25-792af14760d9df34.js +0 -1
  413. package/out/_next/static/chunks/286-e0950c3083c672e8.js +0 -1
  414. package/out/_next/static/chunks/318-77a29f41c3a027e3.js +0 -1
  415. package/out/_next/static/chunks/46-d22d7a121254e31d.js +0 -8
  416. package/out/_next/static/chunks/727-d0d6a29f0793bde2.js +0 -1
  417. package/out/_next/static/chunks/799-7b910b896ff60ebe.js +0 -1
  418. package/out/_next/static/chunks/869-868567cc5e32452f.js +0 -1
  419. package/out/_next/static/chunks/pages/_app-59bc66a6d9d39383.js +0 -436
  420. package/out/_next/static/chunks/pages/changelog-055db8139a22a592.js +0 -1
  421. package/out/_next/static/chunks/pages/changes-f43ad4ab5e00f9b9.js +0 -1
  422. package/out/_next/static/chunks/pages/custom-types/[customTypeId]-ad5936d95fafff44.js +0 -1
  423. package/out/_next/static/chunks/pages/labs-73a12d2fe0233fb9.js +0 -1
  424. package/out/_next/static/chunks/pages/page-types/[pageTypeId]-5ccb44e013a3b002.js +0 -1
  425. package/out/_next/static/chunks/pages/settings-417f1d5c1e558c88.js +0 -1
  426. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-01d67e97cb901e46.js +0 -1
  427. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a8933b0ef10806cd.js +0 -1
  428. package/out/_next/static/chunks/pages/slices-3c9b08adf578b020.js +0 -1
  429. package/out/_next/static/css/0e0d6c4ec6bf7373.css +0 -1
  430. package/out/_next/static/css/27f2b9b9c9f65885.css +0 -1
  431. package/out/_next/static/css/57a7e5eb58b45860.css +0 -1
  432. package/out/_next/static/css/be1f49e49a5aa7eb.css +0 -1
  433. package/out/_next/static/css/f8eb526e10bc2441.css +0 -1
  434. package/out/_next/static/css/fa4e416634515cbb.css +0 -1
  435. package/out/_next/static/p-7eJUu7gNSRAriJWjZOw/_buildManifest.js +0 -1
  436. package/pages/custom-types/[customTypeId].tsx +0 -1
  437. package/pages/labs.tsx +0 -1
  438. package/pages/page-types/[pageTypeId].tsx +0 -1
  439. package/pages/settings.tsx +0 -1
  440. package/src/components/BaseHoverCard/BaseHoverCard.css.ts +0 -25
  441. package/src/components/BlankSlate/BlankSlate.css.ts +0 -96
  442. package/src/components/Card/Card.css.ts +0 -188
  443. package/src/components/CodeBlock/CodeBlock.css.ts +0 -37
  444. package/src/components/Divider/Divider.css.ts +0 -31
  445. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.css.ts +0 -12
  446. package/src/features/documentation/MarkdownRenderer/MarkdownRenderer.css.ts +0 -13
  447. package/src/features/slices/sliceBuilder/useGroupsInSlicesExperiment.ts +0 -8
  448. package/out/_next/static/{p-7eJUu7gNSRAriJWjZOw → QWi-WrYk9EtyMIs1RfQ3_}/_ssgManifest.js +0 -0
  449. package/{components → src/legacy/components}/Card/CardBox.tsx +0 -0
  450. package/{components → src/legacy/components}/Card/WithTabs/components.jsx +1 -1
  451. package/{components → src/legacy/components}/Changelog/versionDetails/ReleaseNotesDetails.tsx +1 -1
  452. package/{components → src/legacy/components}/ChangesEmptyState/OfflinePage.tsx +1 -1
  453. package/{components → src/legacy/components}/ChangesEmptyState/index.ts +1 -1
  454. package/{components → src/legacy/components}/ChangesItems/ErrorBanner.tsx +1 -1
  455. package/{components → src/legacy/components}/ChangesItems/index.ts +0 -0
  456. package/{components → src/legacy/components}/ChangesSectionHeader/ChangesSectionHeader.tsx +0 -0
  457. package/{components → src/legacy/components}/ChangesSectionHeader/index.ts +0 -0
  458. package/{components → src/legacy/components}/DeleteDocumentsDrawer/index.tsx +1 -1
  459. package/{components → src/legacy/components}/DropDownSelector/MenuList.tsx +0 -0
  460. package/{components → src/legacy/components}/Flex/index.tsx +0 -0
  461. package/{components → src/legacy/components}/FormFields/index.ts +0 -0
  462. package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/index.tsx +0 -0
  463. package/{components → src/legacy/components}/Forms/CreateSliceModal/index.tsx +0 -0
  464. package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/index.ts +0 -0
  465. package/{components → src/legacy/components}/Forms/RenameSliceModal/index.ts +0 -0
  466. package/{components → src/legacy/components}/Forms/RenameVariationModal/RenameVariationModal.module.css +0 -0
  467. package/{components → src/legacy/components}/Forms/RenameVariationModal/index.ts +0 -0
  468. package/{components → src/legacy/components}/Forms/components/FlexCard.tsx +0 -0
  469. package/{components → src/legacy/components}/Forms/formsTypes.ts +0 -0
  470. package/{components → src/legacy/components}/Grid/index.tsx +0 -0
  471. package/{components → src/legacy/components}/InputDeleteIcon/index.jsx +1 -1
  472. package/{components → src/legacy/components}/ItemHeader/index.tsx +1 -1
  473. package/{components → src/legacy/components}/Li/index.tsx +0 -0
  474. package/{components → src/legacy/components}/ListItem/utils.js +0 -0
  475. package/{components → src/legacy/components}/MissingLibraries/index.tsx +0 -0
  476. package/{components → src/legacy/components}/Navigation/VideoItem.module.css +0 -0
  477. package/{components → src/legacy/components}/Navigation/index.module.css +0 -0
  478. package/{components → src/legacy/components}/ReactTooltipPortal/index.tsx +0 -0
  479. package/{components → src/legacy/components}/ReviewModal/ReviewFormSelect.tsx +1 -1
  480. package/{components → src/legacy/components}/ReviewModal/index.ts +0 -0
  481. package/{components → src/legacy/components}/ScreenshotPreview/index.tsx +1 -1
  482. package/{components → src/legacy/components}/Simulator/components/FullPage/index.tsx +0 -0
  483. package/{components → src/legacy/components}/Simulator/components/Header/links.ts +0 -0
  484. package/{components → src/legacy/components}/SliceMachineIconButton/index.tsx +1 -1
  485. package/{components → src/legacy/components}/SliceMachineModal/index.tsx +1 -1
  486. package/{components → src/legacy/components}/WindowPortal/index.js +0 -0
  487. package/{components → src/legacy/components}/YoutubeEmbed/index.tsx +0 -0
  488. package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/FieldTypeCard.jsx +0 -0
  489. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/EditItem.jsx +0 -0
  490. package/{lib → src/legacy/lib}/consts.ts +0 -0
  491. package/{lib → src/legacy/lib}/env/sentry.ts +0 -0
  492. package/{lib → src/legacy/lib}/forms/defaults.ts +1 -1
  493. package/{lib → src/legacy/lib}/forms/types.ts +0 -0
  494. package/{lib → src/legacy/lib}/hljs/svelte.ts +0 -0
  495. package/{lib → src/legacy/lib}/models/common/Auth.ts +0 -0
  496. package/{lib → src/legacy/lib}/models/common/ComponentUI.ts +1 -1
  497. package/{lib → src/legacy/lib}/models/common/CustomType/tab.ts +4 -4
  498. package/{lib → src/legacy/lib}/models/common/ErrorWithStatus.ts +0 -0
  499. package/{lib → src/legacy/lib}/models/common/Fields.ts +1 -1
  500. package/{lib → src/legacy/lib}/models/common/Manifest.ts +0 -0
  501. package/{lib → src/legacy/lib}/models/common/PrismicData.ts +0 -0
  502. package/{lib → src/legacy/lib}/models/common/PrismicFile.ts +0 -0
  503. package/{lib → src/legacy/lib}/models/common/Screenshots.ts +0 -0
  504. package/{lib → src/legacy/lib}/models/common/Simulator.ts +0 -0
  505. package/{lib → src/legacy/lib}/models/common/Slices.ts +2 -2
  506. package/{lib → src/legacy/lib}/models/common/UserProfile.ts +0 -0
  507. package/{lib → src/legacy/lib}/models/common/Warning.ts +0 -0
  508. package/{lib → src/legacy/lib}/models/common/widgets/Date/index.ts +2 -2
  509. package/{lib → src/legacy/lib}/models/common/widgets/Embed/index.ts +2 -2
  510. package/{lib → src/legacy/lib}/models/common/widgets/Link/index.ts +3 -3
  511. package/{lib → src/legacy/lib}/models/common/widgets/Number/index.ts +2 -2
  512. package/{lib → src/legacy/lib}/models/common/widgets/Text/index.ts +5 -5
  513. package/{lib → src/legacy/lib}/models/common/widgets/ctBuilderArray.ts +0 -0
  514. package/{lib → src/legacy/lib}/models/common/widgets/index.ts +1 -1
  515. /package/{lib → src/legacy/lib}/prismic/endpoints.ts +0 -0
  516. /package/{lib → src/legacy/lib}/utils/poll.ts +0 -0
  517. /package/{lib → src/legacy/lib}/utils/preferWroomBase.ts +0 -0
  518. /package/{lib → src/legacy/lib}/utils/repo.ts +0 -0
  519. /package/{lib → src/legacy/lib}/utils/str.ts +0 -0
  520. /package/{pages → src/pages}/api/embed.js +0 -0
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(s,c,a,e,t,i,b,n,f,d,u,h,l,k,j,p,g,o,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,j,p,"static/chunks/pages/index-cf93d16e9c63b6db.js"],"/_error":["static/chunks/pages/_error-69b4f498bafdd188.js"],"/changelog":[s,e,"static/chunks/870-0c7a8a9622de78b7.js","static/chunks/pages/changelog-055db8139a22a592.js"],"/changes":[s,t,"static/chunks/8eec4907-b712959d9f984b68.js",i,"static/chunks/918-5bb55fb464e34768.js",c,n,"static/css/0e0d6c4ec6bf7373.css","static/chunks/pages/changes-f43ad4ab5e00f9b9.js"],"/custom-types":[a,j,p,"static/chunks/pages/custom-types-3c8e721ec6802127.js"],"/custom-types/[customTypeId]":[s,f,d,u,h,e,b,i,l,g,c,a,k,o,r,"static/chunks/pages/custom-types/[customTypeId]-ad5936d95fafff44.js"],"/labs":["static/chunks/pages/labs-73a12d2fe0233fb9.js"],"/page-types/[pageTypeId]":[s,f,d,u,h,e,b,i,l,g,c,a,k,o,r,"static/chunks/pages/page-types/[pageTypeId]-5ccb44e013a3b002.js"],"/settings":["static/css/ca32882a5d2d8d88.css","static/chunks/pages/settings-417f1d5c1e558c88.js"],"/slices":[s,t,b,c,n,"static/css/f8eb526e10bc2441.css","static/chunks/pages/slices-3c9b08adf578b020.js"],"/slices/[lib]/[sliceName]/[variation]":[s,t,f,d,u,h,e,b,i,l,c,k,n,"static/css/27f2b9b9c9f65885.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a8933b0ef10806cd.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[t,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/18539003-a5a5d48f20a7b261.js","static/chunks/46-d22d7a121254e31d.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-01d67e97cb901e46.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/settings","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/59b4e022-7a3b5554b806349f.js","static/chunks/25-792af14760d9df34.js","static/chunks/799-7b910b896ff60ebe.js","static/chunks/183-ebd633fed7c74545.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/543-f8766685f7f451e2.js","static/chunks/50-cfc2514205b86001.js","static/chunks/286-e0950c3083c672e8.js","static/chunks/f36c6662-03bb5e9d9aa0b0aa.js","static/chunks/4c744e84-e3161d754618373f.js","static/chunks/065a3ddb-9a38ca0d60f0bf2f.js","static/chunks/1cc2734a-2c5b6c0367fcde86.js","static/chunks/696-b992b9e1ce75777e.js","static/chunks/318-77a29f41c3a027e3.js","static/chunks/727-d0d6a29f0793bde2.js","static/css/be1f49e49a5aa7eb.css","static/chunks/210-aee6116139329803.js","static/chunks/869-868567cc5e32452f.js","static/css/57a7e5eb58b45860.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +0,0 @@
1
- export { CustomTypesBuilderPage as default } from "@src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage";
package/pages/labs.tsx DELETED
@@ -1 +0,0 @@
1
- export { LabsPage as default } from "@src/features/labs/labsList/LabsPage";
@@ -1 +0,0 @@
1
- export { CustomTypesBuilderPage as default } from "@src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage";
@@ -1 +0,0 @@
1
- export { SettingsPage as default } from "@src/features/settings/SettingsPage";
@@ -1,25 +0,0 @@
1
- import { colors, sprinkles } from "@prismicio/editor-ui";
2
- import { style } from "@vanilla-extract/css";
3
-
4
- const reset = sprinkles({
5
- all: "unset",
6
- boxSizing: "border-box",
7
- display: "revert",
8
- fontFamily: "body",
9
- });
10
-
11
- export const container = style([
12
- reset,
13
- sprinkles({
14
- backgroundColor: colors.grey1,
15
- borderRadius: 6,
16
- boxShadow: 3,
17
- }),
18
- ]);
19
-
20
- export const arrow = style([
21
- reset,
22
- sprinkles({
23
- fill: colors.grey1,
24
- }),
25
- ]);
@@ -1,96 +0,0 @@
1
- import { colors, sprinkles, vars } from "@prismicio/editor-ui";
2
- import { style } from "@vanilla-extract/css";
3
-
4
- const column = sprinkles({
5
- all: "unset",
6
- boxSizing: "border-box",
7
- display: "flex",
8
- flexDirection: "column",
9
- });
10
-
11
- export const root = style([
12
- column,
13
- sprinkles({
14
- animationDuration: 300,
15
- animationName: "fadeIn",
16
- animationTimingFunction: "easeInOut",
17
- borderColor: colors.grey6,
18
- borderRadius: 6,
19
- borderStyle: "solid",
20
- borderWidth: 1,
21
- overflow: "hidden",
22
- }),
23
- { maxWidth: 498, minHeight: 400, backgroundColor: vars.color.greyLight1 },
24
- ]);
25
-
26
- export const withBackground = style([
27
- sprinkles({
28
- textAlign: "center",
29
- width: "100%",
30
- }),
31
- {
32
- backgroundSize: "cover",
33
- backgroundColor: "transparent",
34
- borderRadius: vars.borderRadius[0],
35
- borderStyle: vars.borderStyle.none,
36
- height: "100%",
37
- maxWidth: "100%",
38
- },
39
- ]);
40
-
41
- export const image = style([
42
- column,
43
- sprinkles({
44
- borderBottomColor: colors.grey6,
45
- borderBottomStyle: "solid",
46
- borderBottomWidth: 1,
47
- overflow: "hidden",
48
- }),
49
- ]);
50
-
51
- export const content = style([
52
- column,
53
- sprinkles({ padding: 32 }),
54
- {
55
- selectors: {
56
- [`${withBackground} &`]: {
57
- padding: "64px",
58
- },
59
- },
60
- },
61
- ]);
62
-
63
- export const title = style({
64
- fontSize: 18,
65
- fontWeight: 600,
66
- lineHeight: "32px",
67
- });
68
-
69
- export const desc = style({
70
- fontWeight: 400,
71
- lineHeight: "24px",
72
- selectors: {
73
- [`${withBackground} &`]: {
74
- maxWidth: "464px",
75
- alignSelf: "center",
76
- },
77
- },
78
- });
79
-
80
- export const actions = style([
81
- sprinkles({
82
- all: "unset",
83
- alignItems: "center",
84
- boxSizing: "border-box",
85
- display: "flex",
86
- gap: 16,
87
- marginTop: 16,
88
- }),
89
- {
90
- selectors: {
91
- [`${withBackground} &`]: {
92
- justifyContent: "center",
93
- },
94
- },
95
- },
96
- ]);
@@ -1,188 +0,0 @@
1
- import { colors, selectors, sprinkles, vars } from "@prismicio/editor-ui";
2
- import { style, styleVariants } from "@vanilla-extract/css";
3
- import { calc } from "@vanilla-extract/css-utils";
4
-
5
- const flex = sprinkles({ all: "unset", display: "flex" });
6
-
7
- const column = style([flex, sprinkles({ flexDirection: "column" })]);
8
-
9
- export const root = style([
10
- column,
11
- sprinkles({
12
- borderColor: colors.grey6,
13
- borderRadius: 6,
14
- borderStyle: "solid",
15
- borderWidth: 1,
16
- boxSizing: "border-box",
17
- overflowX: "hidden",
18
- position: "relative",
19
- }),
20
- ]);
21
-
22
- export const size = styleVariants({
23
- small: { height: "240px" },
24
- medium: { height: "320px" },
25
- });
26
-
27
- export const variant = styleVariants({
28
- solid: [
29
- sprinkles({
30
- backgroundColor: colors.grey3,
31
- borderColor: selectors.checked(colors.purple10),
32
- }),
33
- ],
34
- outlined: [
35
- sprinkles({
36
- backgroundColor: colors.grey2,
37
- borderColor: selectors.checked(colors.purple8),
38
- }),
39
- ],
40
- });
41
-
42
- export const interactive = style({
43
- ":focus-visible": { boxShadow: "0px 0px 0px 4px hsla(251, 63%, 63%, 0.1)" },
44
- selectors: {
45
- "&[data-disabled]": { opacity: vars.opacity["50%"] },
46
- "&:not([data-disabled])": { cursor: vars.cursor.pointer },
47
- },
48
- });
49
-
50
- export const interactiveVariant = {
51
- solid: sprinkles({
52
- backgroundColor: selectors.focusVisible(colors.grey5),
53
- borderColor: selectors.focusVisible(colors.purple10),
54
- }),
55
- outlined: sprinkles({
56
- backgroundColor: {
57
- ...selectors.active(colors.grey4),
58
- ...selectors.focusVisible(colors.grey1),
59
- ...selectors.hover(colors.grey4),
60
- },
61
- borderColor: {
62
- ...selectors.active(colors.purple9),
63
- ...selectors.focusVisible(colors.purple8),
64
- },
65
- }),
66
- };
67
-
68
- export const media = style([
69
- column,
70
- sprinkles({ flexBasis: 0, flexGrow: 1, minHeight: 0, position: "relative" }),
71
- {
72
- order: 0,
73
- selectors: {
74
- [`${variant.solid} > &`]: {
75
- padding: calc.subtract(vars.space[32], vars.borderWidth[1]),
76
- },
77
- [`${variant.outlined} > &`]: {
78
- backgroundColor: vars.color.greyLight3,
79
- marginInline: calc.subtract(vars.space[16], vars.borderWidth[1]),
80
- marginTop: calc.subtract(vars.space[16], vars.borderWidth[1]),
81
- padding: vars.space[16],
82
- },
83
- },
84
- },
85
- ]);
86
-
87
- const grid = sprinkles({ all: "unset", display: "grid" });
88
-
89
- export const mediaComponent = styleVariants({
90
- div: [grid, sprinkles({ flexGrow: 1 })],
91
- img: [
92
- sprinkles({ height: "100%", objectFit: "contain" }),
93
- { selectors: { "&:not([src])": { visibility: "hidden" } } },
94
- ],
95
- });
96
-
97
- export const mediaOverlay = style([
98
- grid,
99
- sprinkles({ inset: 0, position: "absolute", visibility: "hidden" }),
100
- {
101
- "::before": {
102
- backgroundColor: vars.color.greyLight12,
103
- content: "",
104
- inset: vars.space[0],
105
- opacity: vars.opacity["10%"],
106
- position: "absolute",
107
- },
108
- selectors: {
109
- [`${interactive}:focus-visible &, ${interactive}:not([data-disabled]) ${media}:hover > &`]:
110
- { visibility: "visible" },
111
- [`${interactive}:not([data-disabled]) &:has(:focus-visible)`]: {
112
- visibility: "visible",
113
- },
114
- },
115
- },
116
- ]);
117
-
118
- const nonMedia = style([
119
- flex,
120
- sprinkles({
121
- alignItems: "center",
122
- boxSizing: "border-box",
123
- flexDirection: "row",
124
- }),
125
- {
126
- selectors: {
127
- [`${variant.solid} > &`]: { backgroundColor: vars.color.greyLight1 },
128
- [`${variant.solid} > &:not(:first-child)`]: {
129
- borderTopColor: vars.color.greyLight6,
130
- borderTopStyle: "inherit",
131
- borderTopWidth: "inherit",
132
- },
133
- },
134
- },
135
- ]);
136
-
137
- export const actions = style([
138
- nonMedia,
139
- sprinkles({ height: 48, justifyContent: "space-between" }),
140
- {
141
- order: 1,
142
- selectors: {
143
- [`${variant.solid} > &`]: {
144
- paddingLeft: calc.subtract(vars.space[12], vars.borderWidth[1]),
145
- paddingRight: calc.subtract(vars.space[8], vars.borderWidth[1]),
146
- },
147
- [`${variant.outlined} > &`]: {
148
- paddingInline: calc.subtract(vars.space[16], vars.borderWidth[1]),
149
- },
150
- },
151
- },
152
- ]);
153
-
154
- export const footer = style([
155
- nonMedia,
156
- sprinkles({ gap: 8, height: 60 }),
157
- {
158
- order: 2,
159
- selectors: {
160
- [`${variant.solid} > &`]: {
161
- paddingInline: calc.subtract(vars.space[12], vars.borderWidth[1]),
162
- },
163
- [`${variant.outlined} > &`]: {
164
- paddingInline: calc.subtract(vars.space[16], vars.borderWidth[1]),
165
- },
166
- },
167
- },
168
- ]);
169
-
170
- export const footerTexts = style([
171
- column,
172
- sprinkles({ flexBasis: 0, flexGrow: 1, minWidth: 0 }),
173
- // Offset `title` and `subtitle` so that they are centered vertically despite
174
- // having different line heights.
175
- { marginBottom: `calc((${24 / 16}rem - ${16 / 16}rem) / 2)` },
176
- ]);
177
-
178
- export const status = style([
179
- column,
180
- sprinkles({
181
- height: 24,
182
- insetInline: 0,
183
- justifyContent: "center",
184
- paddingInline: 8,
185
- position: "absolute",
186
- }),
187
- { backgroundColor: "hsl(251, 91%, 95%)", color: "hsl(250, 43%, 48%)" },
188
- ]);
@@ -1,37 +0,0 @@
1
- import { style } from "@vanilla-extract/css";
2
- import { colors, sprinkles } from "@prismicio/editor-ui";
3
-
4
- export const root = sprinkles({
5
- all: "unset",
6
- display: "revert",
7
- borderWidth: 1,
8
- borderRadius: 6,
9
- borderStyle: "solid",
10
- borderColor: colors.grey6,
11
- });
12
-
13
- export const header = sprinkles({
14
- all: "unset",
15
- display: "flex",
16
- alignItems: "center",
17
- justifyContent: "space-between",
18
- borderTopRightRadius: 4,
19
- borderTopLeftRadius: 4,
20
- borderBottomStyle: "solid",
21
- borderBottomWidth: 1,
22
- backgroundColor: colors.grey2,
23
- borderBottomColor: colors.grey6,
24
- paddingBlock: 4,
25
- paddingRight: 4,
26
- });
27
-
28
- export const fileInfo = sprinkles({
29
- all: "unset",
30
- display: "flex",
31
- justifyContent: "space-between",
32
- alignItems: "center",
33
- });
34
-
35
- export const fileName = style({
36
- lineHeight: "32px",
37
- });
@@ -1,31 +0,0 @@
1
- import { colors, sprinkles } from "@prismicio/editor-ui";
2
- import { style, styleVariants } from "@vanilla-extract/css";
3
-
4
- const base = style([
5
- sprinkles({
6
- width: "100%",
7
- borderStyle: "none",
8
- margin: 0,
9
- }),
10
- ]);
11
-
12
- export const variants = styleVariants({
13
- dashed: [
14
- base,
15
- sprinkles({
16
- borderColor: colors.currentColor,
17
- borderTopStyle: "dashed",
18
- borderWidth: 1,
19
- }),
20
- ],
21
- edgeFaded: [
22
- base,
23
- sprinkles({
24
- height: 1,
25
- }),
26
- {
27
- backgroundImage:
28
- "linear-gradient(to right, color-mix(in srgb, currentColor, transparent 100%), currentColor, color-mix(in srgb, currentColor, transparent 100%))",
29
- },
30
- ],
31
- });
@@ -1,12 +0,0 @@
1
- import { sprinkles } from "@prismicio/editor-ui";
2
- import { style } from "@vanilla-extract/css";
3
-
4
- export const content = style([
5
- sprinkles({
6
- display: "flex",
7
- flexDirection: "column",
8
- minHeight: 0,
9
- gap: 12,
10
- }),
11
- { gridArea: "content", overflow: "hidden" },
12
- ]);
@@ -1,13 +0,0 @@
1
- import { colors, sprinkles } from "@prismicio/editor-ui";
2
-
3
- export const section = sprinkles({
4
- paddingBottom: 16,
5
- });
6
-
7
- export const inlineCode = sprinkles({
8
- fontFamily: "code",
9
- backgroundColor: colors.grey2,
10
- borderRadius: 6,
11
- paddingBlock: 2,
12
- paddingInline: 4,
13
- });
@@ -1,8 +0,0 @@
1
- import { useExperimentVariant } from "@src/hooks/useExperimentVariant";
2
-
3
- type UseGitIntegrationExperimentReturnType = { eligible: boolean };
4
-
5
- export function useGroupsInSlicesExperiment(): UseGitIntegrationExperimentReturnType {
6
- const variant = useExperimentVariant("slicemachine-groups-in-slices");
7
- return { eligible: variant?.value === "on" };
8
- }
@@ -1,5 +1,5 @@
1
- import { Box, useThemeUI } from "theme-ui";
2
1
  import { Tab } from "react-tabs";
2
+ import { Box, useThemeUI } from "theme-ui";
3
3
 
4
4
  export const CustomTabList = ({ children, ...otherProps }) => (
5
5
  <Box
@@ -1,6 +1,6 @@
1
+ import { marked } from "marked";
1
2
  import React from "react";
2
3
  import { Text } from "theme-ui";
3
- import { marked } from "marked";
4
4
 
5
5
  interface ReleaseNotesDetailsProps {
6
6
  releaseNotes: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { Flex, Text } from "theme-ui";
3
2
  import { IoCloudOfflineOutline } from "react-icons/io5";
3
+ import { Flex, Text } from "theme-ui";
4
4
 
5
5
  export const OfflinePage = () => {
6
6
  return (
@@ -1,2 +1,2 @@
1
- export { OfflinePage } from "./OfflinePage";
2
1
  export { AuthErrorPage } from "./AuthErrorPage";
2
+ export { OfflinePage } from "./OfflinePage";
@@ -1,6 +1,6 @@
1
+ import { alpha } from "@theme-ui/color";
1
2
  import React from "react";
2
3
  import { Flex, Text, ThemeUIStyleObject } from "theme-ui";
3
- import { alpha } from "@theme-ui/color";
4
4
 
5
5
  interface ErrorBannerProps {
6
6
  message: string;
@@ -1,2 +1,2 @@
1
- export { SoftDeleteDocumentsDrawer } from "./SoftDeleteDocumentsDrawer";
2
1
  export { HardDeleteDocumentsDrawer } from "./HardDeleteDocumentsDrawer";
2
+ export { SoftDeleteDocumentsDrawer } from "./SoftDeleteDocumentsDrawer";
@@ -1,5 +1,5 @@
1
- import { IconButton, useThemeUI } from "theme-ui";
2
1
  import { AiFillCloseCircle } from "react-icons/ai";
2
+ import { IconButton, useThemeUI } from "theme-ui";
3
3
 
4
4
  const InputDeleteIcon = ({ sx, size = 22, ...rest }) => {
5
5
  const { theme } = useThemeUI();
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { Flex, Text } from "theme-ui";
3
2
  import type { Theme } from "theme-ui";
3
+ import { Flex, Text } from "theme-ui";
4
4
 
5
5
  const ItemHeader: React.FC<{
6
6
  text: React.ReactNode;
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
1
  import { FieldProps } from "formik";
2
+ import { FC } from "react";
3
3
  import { Box, Button } from "theme-ui";
4
4
 
5
5
  const ratingSelectable = [1, 2, 3, 4, 5];
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from "react";
2
- import { Flex, Image, Text, ThemeUIStyleObject } from "theme-ui";
3
2
  import { MdInfoOutline } from "react-icons/md";
3
+ import { Flex, Image, Text, ThemeUIStyleObject } from "theme-ui";
4
4
 
5
5
  const MemoedImage = memo<{ src: string | undefined }>(({ src }) => (
6
6
  <Image src={src} alt="Preview image" sx={{ maxHeight: "100%" }} />
@@ -1,6 +1,6 @@
1
- import { IconButton } from "theme-ui";
2
1
  import { IconButtonProps } from "@theme-ui/components";
3
2
  import { IconType } from "react-icons/lib";
3
+ import { IconButton } from "theme-ui";
4
4
 
5
5
  const defaultActiveSx = (active: boolean, hasError: boolean | null): object => {
6
6
  // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
@@ -1,5 +1,5 @@
1
- import Modal from "react-modal";
2
1
  import * as React from "react";
2
+ import Modal from "react-modal";
3
3
 
4
4
  const SliceMachineModal: React.FunctionComponent<Modal.Props> = (props) => {
5
5
  const modalStyle = {
File without changes
File without changes
@@ -1,5 +1,5 @@
1
- import { Input, InputType } from "./fields";
2
1
  import { API_ID_REGEX } from "../consts";
2
+ import { Input, InputType } from "./fields";
3
3
 
4
4
  export const validateId = ({
5
5
  value,
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
- import { VariationSM } from "./Slice";
2
1
  import { Component, Screenshot } from "./Library";
2
+ import { VariationSM } from "./Slice";
3
3
 
4
4
  export const createScreenshotUI = (screenshot: Screenshot): ScreenshotUI => ({
5
5
  hash: screenshot.hash,