slice-machine-ui 1.26.1-beta.1 → 1.26.1-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +6 -1
- package/.storybook/preview.tsx +2 -1
- package/components/App/index.tsx +6 -7
- package/components/AppLayout/index.tsx +6 -8
- package/components/AuthInstructions/index.jsx +1 -1
- package/components/Button/index.tsx +1 -2
- package/components/Card/Default.jsx +2 -1
- package/components/Card/Preview.jsx +1 -1
- package/components/Card/WithTabs/components.jsx +1 -1
- package/components/Card/WithTabs/index.jsx +4 -3
- package/components/Card/index.tsx +1 -0
- package/components/Changelog/index.tsx +6 -7
- package/components/Changelog/navigation/VersionBadge.tsx +2 -1
- package/components/Changelog/navigation/VersionTag.tsx +1 -0
- package/components/Changelog/navigation/index.tsx +3 -4
- package/components/Changelog/versionDetails/ReleaseNotesDetails.tsx +1 -1
- package/components/Changelog/versionDetails/UpdateCommandBox.tsx +4 -5
- package/components/Changelog/versionDetails/VersionKindLabel.tsx +3 -4
- package/components/Changelog/versionDetails/index.tsx +4 -5
- package/components/ChangesEmptyState/AuthErrorPage.tsx +2 -3
- package/components/ChangesEmptyState/OfflinePage.tsx +1 -1
- package/components/ChangesEmptyState/index.ts +1 -1
- package/components/ChangesItems/ChangesItems.tsx +9 -10
- package/components/ChangesItems/DevCollaborationExperiment.tsx +2 -3
- package/components/ChangesItems/ErrorBanner.tsx +1 -1
- package/components/CodeBlock/index.tsx +3 -4
- package/components/ConfigErrors/index.jsx +1 -1
- package/components/CustomTypeTable/changesPage.tsx +6 -6
- package/components/DeleteCTModal/index.tsx +6 -7
- package/components/DeleteDocumentsDrawer/AssociatedDocumentsCard.tsx +2 -3
- package/components/DeleteDocumentsDrawer/HardDeleteDocumentsDrawer.tsx +8 -9
- package/components/DeleteDocumentsDrawer/SoftDeleteDocumentsDrawer.tsx +8 -8
- package/components/DeleteDocumentsDrawer/index.tsx +1 -1
- package/components/DeleteSliceModal/index.tsx +6 -7
- package/components/DeleteVariationModal/index.tsx +5 -6
- package/components/DropDownSelector/index.tsx +2 -4
- package/components/EmptyState/index.tsx +3 -4
- package/components/FormFields/Array.jsx +2 -4
- package/components/FormFields/Checkbox.jsx +1 -1
- package/components/FormFields/CheckboxControl.jsx +1 -1
- package/components/FormFields/Input.tsx +1 -1
- package/components/FormFields/SelectDefaultValue.jsx +1 -1
- package/components/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +15 -16
- package/components/Forms/CreateSliceModal/CreateSliceModal.tsx +9 -10
- package/components/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +11 -12
- package/components/Forms/RenameSliceModal/RenameSliceModal.tsx +6 -7
- package/components/Forms/RenameVariationModal/RenameVariationModal.module.css +5 -0
- package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +6 -7
- package/components/Forms/components/InputBox.tsx +2 -2
- package/components/Forms/components/SelectRepeatable.tsx +3 -3
- package/components/Forms/formsValidator.ts +3 -2
- package/components/FullPage/index.tsx +1 -1
- package/components/InputDeleteIcon/index.jsx +1 -1
- package/components/ItemHeader/index.tsx +1 -1
- package/components/ListItem/Header.tsx +1 -1
- package/components/ListItem/index.tsx +7 -10
- package/components/LoadingPage/index.tsx +1 -0
- package/components/LoginModal/index.tsx +22 -23
- package/components/ModalFormCard/index.tsx +5 -5
- package/components/Navigation/ChangesItem.tsx +8 -9
- package/components/Navigation/Environment.tsx +7 -8
- package/components/Navigation/RunningVersion.tsx +1 -2
- package/components/Navigation/UpdateBox.tsx +3 -4
- package/components/Navigation/VideoItem.tsx +16 -16
- package/components/Navigation/index.module.css +3 -0
- package/components/Navigation/index.test.tsx +14 -12
- package/components/Navigation/index.tsx +18 -20
- package/components/ReviewModal/ReviewForm.tsx +12 -13
- package/components/ReviewModal/ReviewFormSelect.tsx +1 -1
- package/components/ReviewModal/ReviewModal.tsx +6 -7
- package/components/ScreenshotChangesModal/VariationDropZone.tsx +7 -8
- package/components/ScreenshotChangesModal/index.tsx +10 -14
- package/components/ScreenshotChangesModal/useCustomScreenshot.tsx +1 -2
- package/components/ScreenshotPreview/index.tsx +1 -1
- package/components/ScreenshotPreviewModal/index.tsx +4 -4
- package/components/Simulator/components/FailedConnect/index.tsx +3 -4
- package/components/Simulator/components/Header/VariationsPopover/index.tsx +3 -5
- package/components/Simulator/components/Header/index.tsx +4 -5
- package/components/Simulator/components/IframeRenderer/index.tsx +3 -5
- package/components/Simulator/components/Toolbar/index.tsx +2 -4
- package/components/Simulator/index.tsx +19 -26
- package/components/SliceMachineDrawer/index.tsx +2 -2
- package/components/SliceMachineIconButton/index.tsx +1 -1
- package/components/SliceMachineModal/index.tsx +1 -1
- package/components/ToasterContainer/index.tsx +3 -5
- package/components/Tooltip/TextWithTooltip.tsx +2 -3
- package/components/Tooltip/index.jsx +2 -3
- package/components/Warnings/index.jsx +1 -1
- package/lib/builders/CustomTypeBuilder/SliceZone/DeleteSliceZoneModal.tsx +2 -3
- package/lib/builders/CustomTypeBuilder/SliceZone/List.tsx +4 -5
- package/lib/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +8 -9
- package/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +2 -3
- package/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +3 -3
- package/lib/builders/CustomTypeBuilder/SliceZone/index.tsx +21 -22
- package/lib/builders/CustomTypeBuilder/TabModal/InputBox.tsx +1 -1
- package/lib/builders/CustomTypeBuilder/TabModal/delete.tsx +1 -1
- package/lib/builders/CustomTypeBuilder/TabModal/update.tsx +1 -1
- package/lib/builders/CustomTypeBuilder/TabZone/index.tsx +20 -21
- package/lib/builders/CustomTypeBuilder/index.tsx +4 -5
- package/lib/builders/SliceBuilder/FieldZones/index.tsx +105 -41
- package/lib/builders/SliceBuilder/Sidebar/AddVariationModal.tsx +7 -8
- package/lib/builders/SliceBuilder/Sidebar/index.tsx +7 -8
- package/lib/builders/SliceBuilder/SimulatorButton/index.tsx +9 -12
- package/lib/builders/SliceBuilder/index.tsx +11 -8
- package/lib/builders/common/EditModal/Field.jsx +2 -5
- package/lib/builders/common/EditModal/Form.jsx +1 -1
- package/lib/builders/common/EditModal/index.jsx +11 -17
- package/lib/builders/common/SelectFieldTypeModal/index.jsx +3 -5
- package/lib/builders/common/Zone/Card/components/ErrorTooltip.tsx +2 -3
- package/lib/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +4 -6
- package/lib/builders/common/Zone/Card/components/Hints/index.tsx +1 -1
- package/lib/builders/common/Zone/Card/components/NewField.tsx +13 -14
- package/lib/builders/common/Zone/Card/index.jsx +2 -3
- package/lib/builders/common/Zone/components/EmptyState/index.tsx +2 -2
- package/lib/builders/common/Zone/index.jsx +3 -4
- package/lib/forms/defaults.ts +1 -1
- package/lib/forms/fields.ts +1 -2
- package/lib/forms/index.ts +1 -0
- package/lib/models/common/ComponentUI.ts +1 -1
- package/lib/models/common/CustomType/index.ts +5 -4
- package/lib/models/common/CustomType/sliceZone.ts +2 -1
- package/lib/models/common/CustomType/tab.ts +4 -4
- package/lib/models/common/DeprecatedMockConfigMessage.tsx +2 -2
- package/lib/models/common/Environment.ts +2 -2
- package/lib/models/common/Fields.ts +1 -1
- package/lib/models/common/Group.ts +3 -2
- package/lib/models/common/Library.ts +2 -1
- package/lib/models/common/LibraryUI.ts +1 -1
- package/lib/models/common/ModelData.ts +1 -1
- package/lib/models/common/ModelStatus/compareCustomTypeModels.ts +2 -1
- package/lib/models/common/ModelStatus/compareSliceModels.ts +2 -1
- package/lib/models/common/ModelStatus/index.ts +10 -9
- package/lib/models/common/Slice.ts +2 -2
- package/lib/models/common/Slices.ts +2 -2
- package/lib/models/common/normalizers/customType.ts +1 -1
- package/lib/models/common/normalizers/slices.ts +3 -2
- package/lib/models/common/widgets/Boolean/index.ts +5 -7
- package/lib/models/common/widgets/Color/index.ts +2 -3
- package/lib/models/common/widgets/ContentRelationship/Form.tsx +7 -9
- package/lib/models/common/widgets/ContentRelationship/index.ts +7 -8
- package/lib/models/common/widgets/Date/index.ts +2 -2
- package/lib/models/common/widgets/Embed/index.ts +2 -2
- package/lib/models/common/widgets/GeoPoint/index.ts +2 -3
- package/lib/models/common/widgets/Group/Form.jsx +3 -4
- package/lib/models/common/widgets/Group/ListItem/index.jsx +13 -23
- package/lib/models/common/widgets/Group/index.ts +4 -3
- package/lib/models/common/widgets/Image/Form.tsx +8 -11
- package/lib/models/common/widgets/Image/components.tsx +5 -5
- package/lib/models/common/widgets/Image/index.ts +3 -5
- package/lib/models/common/widgets/Link/Form.jsx +3 -5
- package/lib/models/common/widgets/Link/index.ts +3 -3
- package/lib/models/common/widgets/LinkToMedia/Form.jsx +2 -4
- package/lib/models/common/widgets/LinkToMedia/index.ts +3 -4
- package/lib/models/common/widgets/Number/index.ts +2 -2
- package/lib/models/common/widgets/Select/FormFields.jsx +7 -8
- package/lib/models/common/widgets/Select/index.ts +3 -6
- package/lib/models/common/widgets/StructuredText/Form.tsx +10 -10
- package/lib/models/common/widgets/StructuredText/index.ts +3 -6
- package/lib/models/common/widgets/StructuredText/options.tsx +2 -2
- package/lib/models/common/widgets/Text/index.ts +5 -5
- package/lib/models/common/widgets/Timestamp/index.ts +4 -5
- package/lib/models/common/widgets/UID/index.ts +4 -5
- package/lib/models/common/widgets/Widget.ts +2 -1
- package/lib/models/common/widgets/index.ts +1 -1
- package/lib/models/common/widgets/withGroup.ts +1 -2
- package/lib/models/server/ServerState.ts +4 -3
- package/lib/utils/index.ts +4 -5
- package/out/404.html +1 -1
- package/out/_next/static/6WrgMw0SELcypoJCYNiKd/_buildManifest.js +1 -0
- package/out/_next/static/chunks/{25-792af14760d9df34.js → 25-607d5cfe6492f4e8.js} +1 -1
- package/out/_next/static/chunks/286-6ee80333008646b9.js +1 -0
- package/out/_next/static/chunks/318-c84322cba57be932.js +1 -0
- package/out/_next/static/chunks/382-8194eab141c7ea2f.js +1 -0
- package/out/_next/static/chunks/727-b53258380c1a11f1.js +1 -0
- package/out/_next/static/chunks/799-68887319f3169f78.js +1 -0
- package/out/_next/static/chunks/pages/{_app-756c037ed6c707e9.js → _app-6177e3581af44083.js} +1 -1
- package/out/_next/static/chunks/pages/changelog-2d061c06b2b82e28.js +1 -0
- package/out/_next/static/chunks/pages/changes-cde59d56dc849106.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-d1a4a07e6b600fa6.js → [customTypeId]-89ccb93ce7409ad0.js} +1 -1
- package/out/_next/static/chunks/pages/index-b5817351a77c6d40.js +1 -0
- package/out/_next/static/chunks/pages/labs-0fc7d01b8c9bfc2a.js +1 -0
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-a724ff12ef322020.js → [pageTypeId]-dbf86fe3a94dc892.js} +1 -1
- package/out/_next/static/chunks/pages/settings-897ad13a08f73048.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-ed3157875529f0f2.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-69cf4b12bb354f9f.js +1 -0
- package/out/_next/static/chunks/pages/slices-391f6c4b30af0759.js +1 -0
- package/out/_next/static/css/{838fd8bb5a7c32b0.css → 0e0d6c4ec6bf7373.css} +1 -1
- package/out/_next/static/css/{21654235130d0806.css → 243a4d347efcfd53.css} +1 -1
- package/out/_next/static/css/{b22c0750c14cc089.css → 27f2b9b9c9f65885.css} +1 -1
- package/out/_next/static/css/{72465cc1225f28a2.css → 6e65ff596e3b465e.css} +1 -1
- package/out/_next/static/css/70e3649c6ba13fdc.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +5 -3
- package/pages/_app.tsx +6 -8
- package/pages/changelog.tsx +1 -2
- package/pages/changes.tsx +17 -15
- package/pages/custom-types.tsx +1 -2
- package/pages/index.tsx +1 -2
- package/pages/slices/[lib]/[sliceName]/[variation]/index.tsx +2 -3
- package/pages/slices/[lib]/[sliceName]/[variation]/simulator.tsx +2 -3
- package/pages/slices.tsx +22 -20
- package/sentry.client.config.ts +1 -1
- package/src/ErrorBoundary.tsx +1 -2
- package/src/apiClient.ts +7 -8
- package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -1
- package/src/components/BaseHoverCard/BaseHoverCard.test.tsx +1 -1
- package/src/components/BaseHoverCard/BaseHoverCard.tsx +1 -1
- package/src/components/BlankSlate/BlankSlate.stories.tsx +1 -1
- package/src/components/BlankSlate/index.ts +1 -1
- package/src/components/Breadcrumb/Breadcrumb.module.css +11 -0
- package/src/components/Breadcrumb/Breadcrumb.module.css.d.ts +6 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +34 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +43 -25
- package/src/components/Breadcrumb/index.ts +1 -1
- package/src/components/Card/Card.stories.tsx +1 -2
- package/src/components/Card/Card.tsx +3 -2
- package/src/components/CodeBlock/CodeBlock.module.css +46 -0
- package/src/components/CodeBlock/CodeBlock.module.css.d.ts +10 -0
- package/src/components/CodeBlock/CodeBlock.tsx +7 -8
- package/src/components/ContentTabs/ContentTabs.module.css +60 -0
- package/src/components/ContentTabs/ContentTabs.module.css.d.ts +12 -0
- package/src/components/ContentTabs/ContentTabs.tsx +2 -2
- package/src/components/Count/Count.module.css +19 -0
- package/src/components/Count/Count.module.css.d.ts +6 -0
- package/src/components/{Counter/Counter.stories.tsx → Count/Count.stories.tsx} +3 -3
- package/src/components/{Counter/Counter.tsx → Count/Count.tsx} +3 -4
- package/src/components/Count/index.ts +1 -0
- package/src/components/Divider/Divider.stories.tsx +1 -1
- package/src/components/HoverCard/HoverCard.module.css +79 -0
- package/src/components/HoverCard/HoverCard.module.css.d.ts +13 -0
- package/src/components/HoverCard/HoverCard.stories.tsx +3 -2
- package/src/components/HoverCard/HoverCard.test.tsx +2 -2
- package/src/components/HoverCard/HoverCard.tsx +3 -4
- package/src/components/HoverCard/index.ts +3 -3
- package/src/components/SideNav/SideNav.stories.tsx +6 -7
- package/src/components/SideNav/SideNav.tsx +6 -6
- package/src/components/SideNav/SideNavEnvironmentSelector.tsx +3 -4
- package/src/components/Table/Table.stories.tsx +2 -2
- package/src/components/Table/Table.test.tsx +1 -2
- package/src/components/Table/Table.tsx +2 -2
- package/src/components/Table/index.ts +1 -1
- package/src/components/TextLink/TextLink.module.css +58 -0
- package/src/components/TextLink/TextLink.module.css.d.ts +11 -0
- package/src/components/TextLink/TextLink.stories.tsx +1 -1
- package/src/components/TextLink/TextLink.tsx +5 -5
- package/src/domain/__tests__/customType.test.ts +1 -2
- package/src/domain/__tests__/slice.test.ts +40 -0
- package/src/domain/customType.ts +1 -2
- package/src/domain/slice.ts +29 -5
- package/src/features/autoSave/AutoSaveStatusIndicator.tsx +1 -2
- package/src/features/changelog/useSliceMachineLatestNonBreakingVersion.ts +0 -1
- package/src/features/changelog/useSliceMachineReleaseNotes.ts +0 -1
- package/src/features/changelog/useSliceMachineVersions.ts +0 -1
- package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +9 -13
- package/src/features/changes/PushChangesButton.tsx +5 -6
- package/src/features/changes/StatusBadge.tsx +2 -3
- package/src/features/customTypes/EditDropdown.tsx +6 -10
- package/src/features/customTypes/PageTypeOnboarding.tsx +4 -5
- package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +12 -15
- package/src/features/customTypes/__tests__/CustomTypesTablePage.test.tsx +7 -7
- package/src/features/customTypes/actions/convertCustomToPageType.ts +2 -3
- package/src/features/customTypes/actions/createCustomType.ts +2 -3
- package/src/features/customTypes/actions/deleteCustomType.ts +2 -3
- package/src/features/customTypes/actions/renameCustomType.ts +2 -3
- package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +8 -9
- package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +22 -16
- package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +4 -5
- package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +1 -2
- package/src/features/customTypes/customTypesBuilder/useCustomType.ts +0 -1
- package/src/features/customTypes/customTypesConfig.ts +1 -2
- package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +14 -15
- package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +21 -23
- package/src/features/customTypes/customTypesTable/useCustomTypes.ts +4 -5
- package/src/features/documentation/MarkdownRenderer/index.tsx +5 -7
- package/src/features/documentation/useDocumentation.ts +0 -1
- package/src/features/environments/actions/getActiveEnvironment.ts +0 -1
- package/src/features/environments/actions/setEnvironment.ts +1 -2
- package/src/features/inAppGuide/InAppGuideContext.tsx +2 -3
- package/src/features/inAppGuide/InAppGuideDialog.tsx +4 -5
- package/src/features/inAppGuide/inAppGuideContent.tsx +1 -2
- package/src/features/labs/labsList/LabsList.tsx +2 -2
- package/src/features/labs/labsList/LabsListItem.tsx +1 -1
- package/src/features/labs/labsList/LabsPage.tsx +7 -5
- package/src/features/labs/labsList/useLab.tsx +0 -1
- package/src/features/settings/SettingsPage.tsx +8 -6
- package/src/features/settings/git/ConnectGitRepository.tsx +2 -3
- package/src/features/settings/git/GitOwnerSelect.tsx +1 -2
- package/src/features/settings/git/GitProvider.ts +0 -1
- package/src/features/settings/git/GitProviderConnectButtons.tsx +1 -2
- package/src/features/settings/git/GitRepositoriesList.tsx +1 -2
- package/src/features/settings/git/GitRepositoriesSearch.tsx +1 -2
- package/src/features/settings/git/GitRepositoryConnectDialog.tsx +3 -4
- package/src/features/settings/git/useGitOwners.ts +0 -1
- package/src/features/settings/git/useGitRepos.ts +0 -1
- package/src/features/settings/git/useLinkedGitRepos.ts +0 -1
- package/src/features/settings/git/useWriteAPIToken.ts +0 -1
- package/src/features/slices/actions/addSlicesToSliceZone.ts +1 -2
- package/src/features/slices/actions/createSlice.ts +3 -4
- package/src/features/slices/actions/deleteSlice.ts +1 -2
- package/src/features/slices/actions/renameSlice.ts +3 -4
- package/src/features/slices/actions/uploadSliceScreenshot.ts +1 -2
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +9 -10
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +7 -8
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css +14 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css.d.ts +6 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +10 -11
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +5 -8
- package/src/features/slices/convertLegacySlice/types.ts +1 -1
- package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +3 -4
- package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +9 -10
- package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +2 -3
- package/src/features/slices/sliceBuilder/actions/renameVariation.ts +1 -2
- package/src/features/slices/sliceBuilder/useGroupsInSlicesExperiment.ts +8 -0
- package/src/features/slices/sliceCards/NonSharedSliceCard.tsx +2 -3
- package/src/features/slices/sliceCards/SharedSliceCard.tsx +4 -5
- package/src/features/slicesTemplates/actions/createSlicesTemplates.ts +2 -3
- package/src/features/sync/AutoSyncProvider.tsx +17 -18
- package/src/features/sync/actions/pushChanges.ts +1 -1
- package/src/features/sync/components/AutoSyncStatusIndicator.tsx +2 -3
- package/src/features/sync/fetchUnSyncChanges.ts +1 -1
- package/src/features/sync/getUnSyncChanges.ts +4 -4
- package/src/features/sync/useUnSyncChanges.ts +4 -5
- package/src/hooks/useActionQueue.tsx +5 -5
- package/src/hooks/useAdapterName.ts +0 -1
- package/src/hooks/useAuthStatus.ts +1 -2
- package/src/hooks/useCurrentSlice.tsx +2 -3
- package/src/hooks/useEditorContent.ts +3 -3
- package/src/hooks/useExperimentVariant.ts +0 -1
- package/src/hooks/useIsEmptyProject.ts +0 -1
- package/src/hooks/useRepositoryInformation.ts +2 -3
- package/src/hooks/useRouteChange.tsx +1 -1
- package/src/hooks/useSMTracker.ts +4 -5
- package/src/hooks/useScreenshotChangesModal.ts +3 -3
- package/src/hooks/useServerState.ts +4 -5
- package/src/hooks/useSliceMachineConfig.ts +1 -2
- package/src/hooks/useSliceMachineRunningVersion.ts +0 -1
- package/src/hooks/useThrottle.ts +1 -1
- package/src/hooks/useUpdateAvailable.ts +0 -1
- package/src/hooks/useWindowDimensions.ts +1 -1
- package/src/hooks/useWindowSize.ts +2 -1
- package/src/modules/availableCustomTypes/index.ts +13 -12
- package/src/modules/environment/index.ts +9 -8
- package/src/modules/loading/index.ts +3 -2
- package/src/modules/modal/index.ts +3 -2
- package/src/modules/slices/index.ts +4 -4
- package/src/modules/slices/types.ts +1 -1
- package/src/modules/useSliceMachineActions.ts +22 -21
- package/src/modules/userContext/index.ts +5 -4
- package/src/redux/reducer.ts +5 -5
- package/src/redux/store.ts +6 -5
- package/src/redux/type.ts +4 -4
- package/src/theme.ts +1 -2
- package/test/__setup__.ts +3 -0
- package/vite.config.ts +4 -3
- package/components/Forms/RenameVariationModal/RenameVariationModal.css.ts +0 -7
- package/components/Navigation/index.css.ts +0 -5
- package/out/_next/static/chunks/286-e0950c3083c672e8.js +0 -1
- package/out/_next/static/chunks/318-d6f1200138628ec3.js +0 -1
- package/out/_next/static/chunks/727-2c302be2def92786.js +0 -1
- package/out/_next/static/chunks/799-7b910b896ff60ebe.js +0 -1
- package/out/_next/static/chunks/904-c9221a5cb09524e8.js +0 -1
- package/out/_next/static/chunks/pages/changelog-5c9ac93faf0df06b.js +0 -1
- package/out/_next/static/chunks/pages/changes-3e4989e09fd412a8.js +0 -1
- package/out/_next/static/chunks/pages/index-cf93d16e9c63b6db.js +0 -1
- package/out/_next/static/chunks/pages/labs-6f5925cd6cdcee9e.js +0 -1
- package/out/_next/static/chunks/pages/settings-f0620e5b727cda03.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-01d67e97cb901e46.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-8d7043e6638d65cd.js +0 -1
- package/out/_next/static/chunks/pages/slices-77cff50b1df13579.js +0 -1
- package/out/_next/static/css/be1f49e49a5aa7eb.css +0 -1
- package/out/_next/static/dLmvq3LL0BsWu15laiKoK/_buildManifest.js +0 -1
- package/src/components/Breadcrumb/Breadcrumb.css.ts +0 -5
- package/src/components/Breadcrumb/Breadcrumb.stories.ts +0 -32
- package/src/components/CodeBlock/CodeBlock.css.ts +0 -37
- package/src/components/ContentTabs/ContentTabs.css.ts +0 -49
- package/src/components/Counter/Counter.css.ts +0 -26
- package/src/components/Counter/index.ts +0 -1
- package/src/components/HoverCard/HoverCard.css.ts +0 -105
- package/src/components/TextLink/TextLink.css.ts +0 -65
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.css.ts +0 -15
- /package/out/_next/static/{dLmvq3LL0BsWu15laiKoK → 6WrgMw0SELcypoJCYNiKd}/_ssgManifest.js +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
import { Breadcrumb } from "./Breadcrumb";
|
|
4
|
-
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
component: Breadcrumb,
|
|
9
|
-
} satisfies Meta<typeof Breadcrumb>;
|
|
10
|
-
|
|
11
|
-
export default meta;
|
|
12
|
-
|
|
13
|
-
export const Default = {
|
|
14
|
-
args: {
|
|
15
|
-
folder: "folder",
|
|
16
|
-
page: "page",
|
|
17
|
-
},
|
|
18
|
-
} satisfies Story;
|
|
19
|
-
|
|
20
|
-
export const FolderOnly = {
|
|
21
|
-
args: {
|
|
22
|
-
folder: "folder",
|
|
23
|
-
},
|
|
24
|
-
} satisfies Story;
|
|
25
|
-
|
|
26
|
-
export const CustomSeparator = {
|
|
27
|
-
args: {
|
|
28
|
-
folder: "folder",
|
|
29
|
-
page: "page",
|
|
30
|
-
separator: ">",
|
|
31
|
-
},
|
|
32
|
-
} satisfies Story;
|
|
@@ -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,49 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles, vars } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
const flex = sprinkles({ all: "unset", display: "flex" });
|
|
5
|
-
|
|
6
|
-
const column = style([flex, sprinkles({ flexDirection: "column" })]);
|
|
7
|
-
|
|
8
|
-
const row = style([flex, sprinkles({ flexDirection: "row" })]);
|
|
9
|
-
|
|
10
|
-
export const root = style([
|
|
11
|
-
column,
|
|
12
|
-
sprinkles({ backgroundColor: colors.grey1, minHeight: 0 }),
|
|
13
|
-
]);
|
|
14
|
-
|
|
15
|
-
export const list = style([
|
|
16
|
-
row,
|
|
17
|
-
sprinkles({
|
|
18
|
-
borderBottomColor: colors.grey5,
|
|
19
|
-
borderBottomStyle: "solid",
|
|
20
|
-
borderBottomWidth: 1,
|
|
21
|
-
paddingInline: 16,
|
|
22
|
-
}),
|
|
23
|
-
]);
|
|
24
|
-
|
|
25
|
-
export const trigger = style([
|
|
26
|
-
column,
|
|
27
|
-
sprinkles({ color: colors.grey11, cursor: "pointer", paddingBlock: 8 }),
|
|
28
|
-
{
|
|
29
|
-
selectors: {
|
|
30
|
-
"&:not(:last-child)": { marginRight: vars.space[16] },
|
|
31
|
-
'&[data-state="active"]': {
|
|
32
|
-
boxShadow: "inset 0 -1px 0 0 currentColor, 0 1px 0 0 currentColor",
|
|
33
|
-
color: vars.color.purpleLight9,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
]);
|
|
38
|
-
|
|
39
|
-
export const triggerText = style({
|
|
40
|
-
lineHeight: "32px",
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
export const content = style([
|
|
44
|
-
column,
|
|
45
|
-
sprinkles({ minHeight: 0, outline: "none" }),
|
|
46
|
-
{ flex: 1, selectors: { '&[data-state="inactive"]': { display: "none" } } },
|
|
47
|
-
]);
|
|
48
|
-
|
|
49
|
-
export const scrollArea = sprinkles({ padding: 16 });
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
export const root = sprinkles({
|
|
5
|
-
all: "unset",
|
|
6
|
-
display: "inline-flex",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
position: "relative",
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const count = style([
|
|
12
|
-
sprinkles({
|
|
13
|
-
all: "unset",
|
|
14
|
-
display: "revert",
|
|
15
|
-
color: colors.grey1,
|
|
16
|
-
fontFamily: "body",
|
|
17
|
-
position: "absolute",
|
|
18
|
-
}),
|
|
19
|
-
{
|
|
20
|
-
fontSize: "9px",
|
|
21
|
-
fontWeight: 500,
|
|
22
|
-
left: "50%",
|
|
23
|
-
top: "50%",
|
|
24
|
-
transform: "translate(-50%, -50%)",
|
|
25
|
-
},
|
|
26
|
-
]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Counter } from "./Counter";
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles, vars } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
const block = style([
|
|
5
|
-
sprinkles({
|
|
6
|
-
all: "unset",
|
|
7
|
-
boxSizing: "border-box",
|
|
8
|
-
fontFamily: "body",
|
|
9
|
-
}),
|
|
10
|
-
]);
|
|
11
|
-
|
|
12
|
-
const blockWithDisplayRevert = style([
|
|
13
|
-
block,
|
|
14
|
-
sprinkles({
|
|
15
|
-
display: "revert",
|
|
16
|
-
}),
|
|
17
|
-
]);
|
|
18
|
-
|
|
19
|
-
export const root = style([
|
|
20
|
-
blockWithDisplayRevert,
|
|
21
|
-
{
|
|
22
|
-
width: "288px",
|
|
23
|
-
},
|
|
24
|
-
]);
|
|
25
|
-
|
|
26
|
-
export const title = style([
|
|
27
|
-
block,
|
|
28
|
-
sprinkles({
|
|
29
|
-
alignItems: "center",
|
|
30
|
-
borderBottomStyle: "solid",
|
|
31
|
-
borderColor: colors.grey6,
|
|
32
|
-
borderWidth: 1,
|
|
33
|
-
color: colors.grey12,
|
|
34
|
-
display: "flex",
|
|
35
|
-
justifyContent: "space-between",
|
|
36
|
-
marginBottom: 16,
|
|
37
|
-
paddingBottom: 4,
|
|
38
|
-
paddingLeft: 16,
|
|
39
|
-
paddingRight: 6,
|
|
40
|
-
paddingTop: 4,
|
|
41
|
-
}),
|
|
42
|
-
{
|
|
43
|
-
fontSize: "12px",
|
|
44
|
-
fontWeight: "500",
|
|
45
|
-
lineHeight: "16px",
|
|
46
|
-
},
|
|
47
|
-
]);
|
|
48
|
-
|
|
49
|
-
export const titleCloseIcon = style([
|
|
50
|
-
block,
|
|
51
|
-
sprinkles({
|
|
52
|
-
color: colors.grey11,
|
|
53
|
-
display: "flex",
|
|
54
|
-
padding: 4,
|
|
55
|
-
}),
|
|
56
|
-
{
|
|
57
|
-
":hover": { cursor: vars.cursor.pointer },
|
|
58
|
-
},
|
|
59
|
-
]);
|
|
60
|
-
|
|
61
|
-
export const mediaContainer = style([
|
|
62
|
-
block,
|
|
63
|
-
sprinkles({
|
|
64
|
-
display: "flex",
|
|
65
|
-
marginBottom: 8,
|
|
66
|
-
paddingInline: 16,
|
|
67
|
-
}),
|
|
68
|
-
]);
|
|
69
|
-
|
|
70
|
-
export const media = style([
|
|
71
|
-
blockWithDisplayRevert,
|
|
72
|
-
sprinkles({
|
|
73
|
-
borderColor: colors.grey6,
|
|
74
|
-
borderRadius: 6,
|
|
75
|
-
borderStyle: "solid",
|
|
76
|
-
borderWidth: 1,
|
|
77
|
-
overflow: "hidden",
|
|
78
|
-
width: "100%",
|
|
79
|
-
}),
|
|
80
|
-
{
|
|
81
|
-
height: "146px",
|
|
82
|
-
},
|
|
83
|
-
]);
|
|
84
|
-
|
|
85
|
-
export const description = style([
|
|
86
|
-
blockWithDisplayRevert,
|
|
87
|
-
sprinkles({
|
|
88
|
-
color: colors.grey11,
|
|
89
|
-
marginBottom: 16,
|
|
90
|
-
paddingInline: 16,
|
|
91
|
-
}),
|
|
92
|
-
{
|
|
93
|
-
fontSize: "12px",
|
|
94
|
-
fontWeight: "400",
|
|
95
|
-
lineHeight: "20px",
|
|
96
|
-
},
|
|
97
|
-
]);
|
|
98
|
-
|
|
99
|
-
export const closeButtonContainer = style([
|
|
100
|
-
blockWithDisplayRevert,
|
|
101
|
-
sprinkles({
|
|
102
|
-
paddingBottom: 16,
|
|
103
|
-
paddingInline: 16,
|
|
104
|
-
}),
|
|
105
|
-
]);
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { style, styleVariants } from "@vanilla-extract/css";
|
|
2
|
-
|
|
3
|
-
import { colors, selectors, sprinkles } from "@prismicio/editor-ui";
|
|
4
|
-
|
|
5
|
-
export const root = style([
|
|
6
|
-
sprinkles({
|
|
7
|
-
all: "unset",
|
|
8
|
-
cursor: "pointer",
|
|
9
|
-
display: "flex",
|
|
10
|
-
alignItems: "center",
|
|
11
|
-
}),
|
|
12
|
-
{
|
|
13
|
-
":focus-visible": {
|
|
14
|
-
outline: "none",
|
|
15
|
-
textDecorationLine: "underline",
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
]);
|
|
19
|
-
|
|
20
|
-
export const colorVariant = {
|
|
21
|
-
primary: sprinkles({
|
|
22
|
-
color: {
|
|
23
|
-
...colors.purple9,
|
|
24
|
-
...selectors.hover(colors.purple8),
|
|
25
|
-
...selectors.active(colors.purple9),
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
28
|
-
secondary: sprinkles({
|
|
29
|
-
color: {
|
|
30
|
-
...colors.indigo11,
|
|
31
|
-
...selectors.hover(colors.indigo10),
|
|
32
|
-
...selectors.active(colors.indigo11),
|
|
33
|
-
},
|
|
34
|
-
}),
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/* TODO move paddingLeft to iconVariant style objects */
|
|
38
|
-
export const endIcon = sprinkles({
|
|
39
|
-
paddingLeft: 4,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export const iconVariant = styleVariants({
|
|
43
|
-
normal: [
|
|
44
|
-
{
|
|
45
|
-
fontSize: "1.2rem",
|
|
46
|
-
width: "18px",
|
|
47
|
-
height: "18px",
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
smallBold: [
|
|
51
|
-
{
|
|
52
|
-
fontSize: "1rem",
|
|
53
|
-
width: "16px",
|
|
54
|
-
height: "16px",
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
inherit: [
|
|
58
|
-
sprinkles({ fontFamily: "inherit" }),
|
|
59
|
-
{
|
|
60
|
-
fontSize: "inherit",
|
|
61
|
-
width: "inherit",
|
|
62
|
-
height: "inherit",
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { sprinkles } from "@prismicio/editor-ui";
|
|
2
|
-
|
|
3
|
-
export const scrollArea = sprinkles({
|
|
4
|
-
height: "100%",
|
|
5
|
-
display: "flex",
|
|
6
|
-
gap: 8,
|
|
7
|
-
paddingInline: 16,
|
|
8
|
-
paddingBlock: 16,
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const label = sprinkles({
|
|
12
|
-
display: "inline-flex",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
gap: 4,
|
|
15
|
-
});
|
|
File without changes
|