@pantheon-systems/puck-css 0.12.0 → 0.14.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.
- package/README.md +1 -1
- package/dist/agent/components/AgentActionButton.js +0 -13
- package/dist/agent/components/AgentActionButton.js.map +1 -1
- package/dist/agent/components/AgentActionModal.js +0 -13
- package/dist/agent/components/AgentActionModal.js.map +1 -1
- package/dist/agent/components/AgentStatusPanel.js +0 -10
- package/dist/agent/components/AgentStatusPanel.js.map +1 -1
- package/dist/agent/components/index.js +0 -5
- package/dist/agent/components/index.js.map +1 -1
- package/dist/agent/useAgentEdit.js +0 -12
- package/dist/agent/useAgentEdit.js.map +1 -1
- package/dist/agent/useAgentTrigger.js +0 -29
- package/dist/agent/useAgentTrigger.js.map +1 -1
- package/dist/auth/P1AuthProvider.d.ts +9 -2
- package/dist/auth/P1AuthProvider.d.ts.map +1 -1
- package/dist/auth/P1AuthProvider.js +21 -44
- package/dist/auth/P1AuthProvider.js.map +1 -1
- package/dist/auth/P1LoginPage.js +0 -18
- package/dist/auth/P1LoginPage.js.map +1 -1
- package/dist/auth/index.d.ts +2 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -9
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/logout.d.ts +23 -0
- package/dist/auth/logout.d.ts.map +1 -0
- package/dist/auth/logout.js +14 -0
- package/dist/auth/logout.js.map +1 -0
- package/dist/auth/storage-keys.d.ts +5 -0
- package/dist/auth/storage-keys.d.ts.map +1 -0
- package/dist/auth/storage-keys.js +3 -0
- package/dist/auth/storage-keys.js.map +1 -0
- package/dist/collaboration/components/AgentActivityBanner.js +0 -15
- package/dist/collaboration/components/AgentActivityBanner.js.map +1 -1
- package/dist/collaboration/components/CollaboratorAvatars.js +0 -17
- package/dist/collaboration/components/CollaboratorAvatars.js.map +1 -1
- package/dist/collaboration/components/FocusRegionHighlight.js +0 -9
- package/dist/collaboration/components/FocusRegionHighlight.js.map +1 -1
- package/dist/collaboration/components/PresenceIndicator.js +0 -9
- package/dist/collaboration/components/PresenceIndicator.js.map +1 -1
- package/dist/collaboration/useBranchPresence.js +0 -36
- package/dist/collaboration/useBranchPresence.js.map +1 -1
- package/dist/collaboration/useFocusRegionReporting.js +0 -75
- package/dist/collaboration/useFocusRegionReporting.js.map +1 -1
- package/dist/collaboration/usePresence.js +0 -37
- package/dist/collaboration/usePresence.js.map +1 -1
- package/dist/collaboration/useSitePresence.js +0 -36
- package/dist/collaboration/useSitePresence.js.map +1 -1
- package/dist/collaboration/utils/avatarColor.js +0 -3
- package/dist/collaboration/utils/avatarColor.js.map +1 -1
- package/dist/collaboration/utils/focusHighlightConfig.js +0 -61
- package/dist/collaboration/utils/focusHighlightConfig.js.map +1 -1
- package/dist/collaboration/utils/focusRegionMap.js +1 -80
- package/dist/collaboration/utils/focusRegionMap.js.map +1 -1
- package/dist/collaboration/utils/initials.js +0 -14
- package/dist/collaboration/utils/initials.js.map +1 -1
- package/dist/collaboration/utils/presenceIdentity.js +0 -26
- package/dist/collaboration/utils/presenceIdentity.js.map +1 -1
- package/dist/core/FocusHighlightContext.js +0 -31
- package/dist/core/FocusHighlightContext.js.map +1 -1
- package/dist/core/NotificationContext.js +2 -67
- package/dist/core/NotificationContext.js.map +1 -1
- package/dist/core/P1PuckContext.js +0 -31
- package/dist/core/P1PuckContext.js.map +1 -1
- package/dist/core/PresenceContext.js +0 -18
- package/dist/core/PresenceContext.js.map +1 -1
- package/dist/core/config.js +0 -11
- package/dist/core/config.js.map +1 -1
- package/dist/core/featureConfig.js +0 -32
- package/dist/core/featureConfig.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/plugin-types.d.ts +9 -0
- package/dist/core/plugin-types.d.ts.map +1 -1
- package/dist/core/types.d.ts +7 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +0 -3
- package/dist/core/types.js.map +1 -1
- package/dist/core/utils/debounce.js +0 -18
- package/dist/core/utils/debounce.js.map +1 -1
- package/dist/core/utils/requestError.js +0 -5
- package/dist/core/utils/requestError.js.map +1 -1
- package/dist/core/utils/retry.js +0 -31
- package/dist/core/utils/retry.js.map +1 -1
- package/dist/core/utils/throttle.js +0 -24
- package/dist/core/utils/throttle.js.map +1 -1
- package/dist/data/cross-reference-resolve.js +0 -6
- package/dist/data/cross-reference-resolve.js.map +1 -1
- package/dist/data/cross-reference.js +0 -15
- package/dist/data/cross-reference.js.map +1 -1
- package/dist/data/css-queries/css-query-registry.d.ts +2 -2
- package/dist/data/css-queries/css-query-registry.js +1 -1
- package/dist/data/css-queries/css-query-registry.js.map +1 -1
- package/dist/data/dal/index.js +0 -21
- package/dist/data/dal/index.js.map +1 -1
- package/dist/data/dal/init.js +0 -40
- package/dist/data/dal/init.js.map +1 -1
- package/dist/data/dal/p1-store.d.ts.map +1 -1
- package/dist/data/dal/p1-store.js +11 -41
- package/dist/data/dal/p1-store.js.map +1 -1
- package/dist/data/data-list-block/builtin-components/cards.d.ts +1 -0
- package/dist/data/data-list-block/builtin-components/cards.d.ts.map +1 -1
- package/dist/data/data-list-block/builtin-components/cards.js +16 -16
- package/dist/data/data-list-block/builtin-components/cards.js.map +1 -1
- package/dist/data/data-list-block/builtin-components/listing.d.ts +1 -0
- package/dist/data/data-list-block/builtin-components/listing.d.ts.map +1 -1
- package/dist/data/data-list-block/builtin-components/listing.js +4 -3
- package/dist/data/data-list-block/builtin-components/listing.js.map +1 -1
- package/dist/data/data-list-block/builtin-components/rows.d.ts +1 -0
- package/dist/data/data-list-block/builtin-components/rows.d.ts.map +1 -1
- package/dist/data/data-list-block/builtin-components/rows.js +3 -3
- package/dist/data/data-list-block/builtin-components/rows.js.map +1 -1
- package/dist/data/data-list-block/create-data-list-block.d.ts +1 -0
- package/dist/data/data-list-block/create-data-list-block.d.ts.map +1 -1
- package/dist/data/data-list-block/create-data-list-block.js +7 -11
- package/dist/data/data-list-block/create-data-list-block.js.map +1 -1
- package/dist/data/data-list-block/data-list.css +314 -0
- package/dist/data/data-list-block/utils.js +0 -1
- package/dist/data/data-list-block/utils.js.map +1 -1
- package/dist/data/fields/pds-field-helpers.js +1 -4
- package/dist/data/fields/pds-field-helpers.js.map +1 -1
- package/dist/data/fields/visible-when.js +0 -5
- package/dist/data/fields/visible-when.js.map +1 -1
- package/dist/data/fields.d.ts.map +1 -1
- package/dist/data/fields.js +7 -14
- package/dist/data/fields.js.map +1 -1
- package/dist/data/get-page.js +0 -1
- package/dist/data/get-page.js.map +1 -1
- package/dist/data/page-editor-meta.js +0 -7
- package/dist/data/page-editor-meta.js.map +1 -1
- package/dist/data/page-store.js +0 -32
- package/dist/data/page-store.js.map +1 -1
- package/dist/data/page-structure.js +0 -3
- package/dist/data/page-structure.js.map +1 -1
- package/dist/data/paths.d.ts +6 -0
- package/dist/data/paths.d.ts.map +1 -1
- package/dist/data/paths.js +3 -16
- package/dist/data/paths.js.map +1 -1
- package/dist/data/query-provider.d.ts +14 -0
- package/dist/data/query-provider.d.ts.map +1 -1
- package/dist/data/query-provider.js +20 -9
- package/dist/data/query-provider.js.map +1 -1
- package/dist/data/remote-datasources/fetch-http-json.js +0 -5
- package/dist/data/remote-datasources/fetch-http-json.js.map +1 -1
- package/dist/data/remote-datasources/loader.js +0 -21
- package/dist/data/remote-datasources/loader.js.map +1 -1
- package/dist/data/remote-datasources/remote-datasource-registry.js +0 -4
- package/dist/data/remote-datasources/remote-datasource-registry.js.map +1 -1
- package/dist/data/resolve-data-templates.js +0 -24
- package/dist/data/resolve-data-templates.js.map +1 -1
- package/dist/data/route-templates.js +0 -29
- package/dist/data/route-templates.js.map +1 -1
- package/dist/data/semantic-ops.js +0 -11
- package/dist/data/semantic-ops.js.map +1 -1
- package/dist/data/styles.js +0 -2
- package/dist/data/styles.js.map +1 -1
- package/dist/data/template-autocomplete.js +0 -8
- package/dist/data/template-autocomplete.js.map +1 -1
- package/dist/data/utils.d.ts +16 -0
- package/dist/data/utils.d.ts.map +1 -1
- package/dist/data/utils.js +21 -1
- package/dist/data/utils.js.map +1 -1
- package/dist/editor/P1App.d.ts.map +1 -1
- package/dist/editor/P1App.js +6 -45
- package/dist/editor/P1App.js.map +1 -1
- package/dist/editor/P1PuckProvider.d.ts +1 -1
- package/dist/editor/P1PuckProvider.d.ts.map +1 -1
- package/dist/editor/P1PuckProvider.js +54 -561
- package/dist/editor/P1PuckProvider.js.map +1 -1
- package/dist/editor/aiPanelStore.js +0 -7
- package/dist/editor/aiPanelStore.js.map +1 -1
- package/dist/editor/components/BranchSelector.js +0 -21
- package/dist/editor/components/BranchSelector.js.map +1 -1
- package/dist/editor/components/CollapsibleSectionHeader.js +1 -4
- package/dist/editor/components/CollapsibleSectionHeader.js.map +1 -1
- package/dist/editor/components/DraggableRow.js +0 -1
- package/dist/editor/components/DraggableRow.js.map +1 -1
- package/dist/editor/components/EditorReloadOverlay.d.ts +16 -0
- package/dist/editor/components/EditorReloadOverlay.d.ts.map +1 -0
- package/dist/editor/components/EditorReloadOverlay.js +13 -0
- package/dist/editor/components/EditorReloadOverlay.js.map +1 -0
- package/dist/editor/components/NotificationContainer.js +0 -20
- package/dist/editor/components/NotificationContainer.js.map +1 -1
- package/dist/editor/components/OutlinePanel.js +1 -12
- package/dist/editor/components/OutlinePanel.js.map +1 -1
- package/dist/editor/components/P1InspectorFields.d.ts.map +1 -1
- package/dist/editor/components/P1InspectorFields.js +12 -14
- package/dist/editor/components/P1InspectorFields.js.map +1 -1
- package/dist/editor/components/P1TemplateFields.js +6 -12
- package/dist/editor/components/P1TemplateFields.js.map +1 -1
- package/dist/editor/components/PanelHeader.d.ts.map +1 -1
- package/dist/editor/components/PanelHeader.js +3 -2
- package/dist/editor/components/PanelHeader.js.map +1 -1
- package/dist/editor/components/PublishButton.js +0 -21
- package/dist/editor/components/PublishButton.js.map +1 -1
- package/dist/editor/components/PuckDataCapture.js +0 -14
- package/dist/editor/components/PuckDataCapture.js.map +1 -1
- package/dist/editor/components/PuckDataSynchronizer.js +0 -67
- package/dist/editor/components/PuckDataSynchronizer.js.map +1 -1
- package/dist/editor/components/PuckSelectionTracker.js +0 -62
- package/dist/editor/components/PuckSelectionTracker.js.map +1 -1
- package/dist/editor/components/SaveIndicator.js +0 -41
- package/dist/editor/components/SaveIndicator.js.map +1 -1
- package/dist/editor/components/Toast.js +1 -32
- package/dist/editor/components/Toast.js.map +1 -1
- package/dist/editor/components/VersionBannerOverride.d.ts +7 -1
- package/dist/editor/components/VersionBannerOverride.d.ts.map +1 -1
- package/dist/editor/components/VersionBannerOverride.js +17 -24
- package/dist/editor/components/VersionBannerOverride.js.map +1 -1
- package/dist/editor/components/collapsibleSectionContext.js +0 -10
- package/dist/editor/components/collapsibleSectionContext.js.map +1 -1
- package/dist/editor/components/componentIconName.js +0 -23
- package/dist/editor/components/componentIconName.js.map +1 -1
- package/dist/editor/components/connectable.js +0 -5
- package/dist/editor/components/connectable.js.map +1 -1
- package/dist/editor/components/merge-preview/MergePreviewRenderer.js +2 -74
- package/dist/editor/components/merge-preview/MergePreviewRenderer.js.map +1 -1
- package/dist/editor/components/merge-preview/ScaledContent.js +0 -6
- package/dist/editor/components/merge-preview/ScaledContent.js.map +1 -1
- package/dist/editor/components/merge-preview/index.js +0 -5
- package/dist/editor/components/merge-preview/index.js.map +1 -1
- package/dist/editor/components/outlineTree.js +0 -31
- package/dist/editor/components/outlineTree.js.map +1 -1
- package/dist/editor/components/useDragReorder.js +0 -1
- package/dist/editor/components/useDragReorder.js.map +1 -1
- package/dist/editor/composePlugins.d.ts +9 -3
- package/dist/editor/composePlugins.d.ts.map +1 -1
- package/dist/editor/composePlugins.js +3 -8
- package/dist/editor/composePlugins.js.map +1 -1
- package/dist/editor/defaultPlugins.d.ts +1 -1
- package/dist/editor/defaultPlugins.d.ts.map +1 -1
- package/dist/editor/defaultPlugins.js +3 -1
- package/dist/editor/defaultPlugins.js.map +1 -1
- package/dist/editor/freshFieldTypes.d.ts +12 -0
- package/dist/editor/freshFieldTypes.d.ts.map +1 -0
- package/dist/editor/freshFieldTypes.js +11 -0
- package/dist/editor/freshFieldTypes.js.map +1 -0
- package/dist/editor/logout-store.d.ts +13 -0
- package/dist/editor/logout-store.d.ts.map +1 -0
- package/dist/editor/logout-store.js +23 -0
- package/dist/editor/logout-store.js.map +1 -0
- package/dist/editor/plugin/P1Plugin.d.ts +16 -3
- package/dist/editor/plugin/P1Plugin.d.ts.map +1 -1
- package/dist/editor/plugin/P1Plugin.js +21 -171
- package/dist/editor/plugin/P1Plugin.js.map +1 -1
- package/dist/editor/plugin/context-sync-key.js +0 -19
- package/dist/editor/plugin/context-sync-key.js.map +1 -1
- package/dist/editor/plugin/createP1Overrides.js +1 -49
- package/dist/editor/plugin/createP1Overrides.js.map +1 -1
- package/dist/editor/plugin/document-sync-plugin.js +0 -50
- package/dist/editor/plugin/document-sync-plugin.js.map +1 -1
- package/dist/editor/plugin/fieldGuidance.js +0 -5
- package/dist/editor/plugin/fieldGuidance.js.map +1 -1
- package/dist/editor/plugin/index.js +0 -6
- package/dist/editor/plugin/index.js.map +1 -1
- package/dist/editor/plugin/selectHeaderCollaborators.js +0 -8
- package/dist/editor/plugin/selectHeaderCollaborators.js.map +1 -1
- package/dist/editor/presets.js +2 -2
- package/dist/editor/stablePluginDeps.d.ts +9 -0
- package/dist/editor/stablePluginDeps.d.ts.map +1 -0
- package/dist/editor/stablePluginDeps.js +15 -0
- package/dist/editor/stablePluginDeps.js.map +1 -0
- package/dist/editor/thumbnails/LiveThumbnail.js +1 -49
- package/dist/editor/thumbnails/LiveThumbnail.js.map +1 -1
- package/dist/editor/thumbnails/ThumbnailCard.js +0 -25
- package/dist/editor/thumbnails/ThumbnailCard.js.map +1 -1
- package/dist/editor/thumbnails/buildLiveThumbnailDrawer.js +0 -21
- package/dist/editor/thumbnails/buildLiveThumbnailDrawer.js.map +1 -1
- package/dist/editor/thumbnails/humanizeComponentName.js +0 -17
- package/dist/editor/thumbnails/humanizeComponentName.js.map +1 -1
- package/dist/editor/thumbnails/resolveLiveThumbnailDrawer.js +0 -11
- package/dist/editor/thumbnails/resolveLiveThumbnailDrawer.js.map +1 -1
- package/dist/editor/thumbnails/thumbnailCache.js +0 -38
- package/dist/editor/thumbnails/thumbnailCache.js.map +1 -1
- package/dist/editor/useAutoSave.js +0 -32
- package/dist/editor/useAutoSave.js.map +1 -1
- package/dist/editor/useBranches.js +0 -30
- package/dist/editor/useBranches.js.map +1 -1
- package/dist/editor/useComponentRegistry.d.ts +1 -1
- package/dist/editor/useComponentRegistry.js +0 -28
- package/dist/editor/useComponentRegistry.js.map +1 -1
- package/dist/editor/useDocuments.js +0 -51
- package/dist/editor/useDocuments.js.map +1 -1
- package/dist/editor/useMergePreview.js +8 -12
- package/dist/editor/useMergePreview.js.map +1 -1
- package/dist/editor/useP1Editor.d.ts +35 -7
- package/dist/editor/useP1Editor.d.ts.map +1 -1
- package/dist/editor/useP1Editor.js +146 -243
- package/dist/editor/useP1Editor.js.map +1 -1
- package/dist/editor/useP1Overrides.js +15 -50
- package/dist/editor/useP1Overrides.js.map +1 -1
- package/dist/editor/useP1Plugin.d.ts +10 -4
- package/dist/editor/useP1Plugin.d.ts.map +1 -1
- package/dist/editor/useP1Plugin.js +34 -56
- package/dist/editor/useP1Plugin.js.map +1 -1
- package/dist/editor/useRealtime.d.ts +15 -3
- package/dist/editor/useRealtime.d.ts.map +1 -1
- package/dist/editor/useRealtime.js +12 -91
- package/dist/editor/useRealtime.js.map +1 -1
- package/dist/editor/useResponsivePanels.js +2 -35
- package/dist/editor/useResponsivePanels.js.map +1 -1
- package/dist/editor/useSidebarScrollPreservation.js +0 -14
- package/dist/editor/useSidebarScrollPreservation.js.map +1 -1
- package/dist/editor/utils/buildThumbnailOverride.js +0 -9
- package/dist/editor/utils/buildThumbnailOverride.js.map +1 -1
- package/dist/editor/utils/componentRegistry.d.ts +6 -11
- package/dist/editor/utils/componentRegistry.d.ts.map +1 -1
- package/dist/editor/utils/componentRegistry.js +1 -71
- package/dist/editor/utils/componentRegistry.js.map +1 -1
- package/dist/editor/utils/createStablePluginArray.js +0 -27
- package/dist/editor/utils/createStablePluginArray.js.map +1 -1
- package/dist/editor/utils/path.js +0 -6
- package/dist/editor/utils/path.js.map +1 -1
- package/dist/editor/utils/puckYjsBinding.d.ts +1 -1
- package/dist/editor/utils/puckYjsBinding.js +0 -99
- package/dist/editor/utils/puckYjsBinding.js.map +1 -1
- package/dist/editor/utils/restoreDocumentVersion.js +0 -12
- package/dist/editor/utils/restoreDocumentVersion.js.map +1 -1
- package/dist/editor/utils/sanitizeRichtextDefaults.js +0 -26
- package/dist/editor/utils/sanitizeRichtextDefaults.js.map +1 -1
- package/dist/editor/utils/snapshotToPuckData.js +0 -8
- package/dist/editor/utils/snapshotToPuckData.js.map +1 -1
- package/dist/editor/utils/syncComponentRegistry.d.ts +2 -2
- package/dist/editor/utils/syncComponentRegistry.js +1 -76
- package/dist/editor/utils/syncComponentRegistry.js.map +1 -1
- package/dist/editor/utils/syncComponentRegistryWriteOnly.d.ts +7 -7
- package/dist/editor/utils/syncComponentRegistryWriteOnly.js +0 -22
- package/dist/editor/utils/syncComponentRegistryWriteOnly.js.map +1 -1
- package/dist/editor/utils/templatePath.js +0 -5
- package/dist/editor/utils/templatePath.js.map +1 -1
- package/dist/features/content-type-templates/editor/useTemplatePermissions.js +0 -3
- package/dist/features/content-type-templates/editor/useTemplatePermissions.js.map +1 -1
- package/dist/features/content-type-templates/hooks/useTemplateList.js +0 -30
- package/dist/features/content-type-templates/hooks/useTemplateList.js.map +1 -1
- package/dist/features/content-type-templates/index.js +0 -8
- package/dist/features/content-type-templates/index.js.map +1 -1
- package/dist/features/content-type-templates/permissions/createPuckPermissions.js +1 -43
- package/dist/features/content-type-templates/permissions/createPuckPermissions.js.map +1 -1
- package/dist/features/content-type-templates/permissions/role-permissions.d.ts +8 -0
- package/dist/features/content-type-templates/permissions/role-permissions.d.ts.map +1 -1
- package/dist/features/content-type-templates/permissions/role-permissions.js +3 -29
- package/dist/features/content-type-templates/permissions/role-permissions.js.map +1 -1
- package/dist/features/content-type-templates/permissions/useContentRole.js +0 -24
- package/dist/features/content-type-templates/permissions/useContentRole.js.map +1 -1
- package/dist/features/content-type-templates/permissions/useResolveContentRole.d.ts +5 -5
- package/dist/features/content-type-templates/permissions/useResolveContentRole.js +2 -22
- package/dist/features/content-type-templates/permissions/useResolveContentRole.js.map +1 -1
- package/dist/features/content-type-templates/stores/index.js +0 -5
- package/dist/features/content-type-templates/stores/index.js.map +1 -1
- package/dist/features/content-type-templates/stores/template-store-api.js +0 -14
- package/dist/features/content-type-templates/stores/template-store-api.js.map +1 -1
- package/dist/features/content-type-templates/stores/template-store.d.ts +1 -1
- package/dist/features/content-type-templates/stores/template-store.js +0 -12
- package/dist/features/content-type-templates/stores/template-store.js.map +1 -1
- package/dist/features/content-type-templates/types.js +0 -5
- package/dist/features/content-type-templates/types.js.map +1 -1
- package/dist/features/content-type-templates/ui/ActionBarPinButton.js +12 -21
- package/dist/features/content-type-templates/ui/ActionBarPinButton.js.map +1 -1
- package/dist/features/content-type-templates/ui/TemplateDetailsPanel.js +0 -23
- package/dist/features/content-type-templates/ui/TemplateDetailsPanel.js.map +1 -1
- package/dist/features/content-type-templates/ui/TemplateSelector.js +0 -19
- package/dist/features/content-type-templates/ui/TemplateSelector.js.map +1 -1
- package/dist/features/content-type-templates/validation/structural-validation.js +0 -40
- package/dist/features/content-type-templates/validation/structural-validation.js.map +1 -1
- package/dist/features/localization/authority.d.ts +26 -0
- package/dist/features/localization/authority.d.ts.map +1 -0
- package/dist/features/localization/authority.js +17 -0
- package/dist/features/localization/authority.js.map +1 -0
- package/dist/features/localization/index.d.ts +11 -0
- package/dist/features/localization/index.d.ts.map +1 -0
- package/dist/features/localization/index.js +7 -0
- package/dist/features/localization/index.js.map +1 -0
- package/dist/features/localization/prop-target.d.ts +26 -0
- package/dist/features/localization/prop-target.d.ts.map +1 -0
- package/dist/features/localization/prop-target.js +15 -0
- package/dist/features/localization/prop-target.js.map +1 -0
- package/dist/features/localization/puck-overrides.d.ts +12 -0
- package/dist/features/localization/puck-overrides.d.ts.map +1 -0
- package/dist/features/localization/puck-overrides.js +12 -0
- package/dist/features/localization/puck-overrides.js.map +1 -0
- package/dist/features/localization/relation.d.ts +14 -0
- package/dist/features/localization/relation.d.ts.map +1 -0
- package/dist/features/localization/relation.js +7 -0
- package/dist/features/localization/relation.js.map +1 -0
- package/dist/features/localization/translatable.d.ts +24 -0
- package/dist/features/localization/translatable.d.ts.map +1 -0
- package/dist/features/localization/translatable.js +30 -0
- package/dist/features/localization/translatable.js.map +1 -0
- package/dist/features/localization/types.d.ts +17 -0
- package/dist/features/localization/types.d.ts.map +1 -0
- package/dist/features/localization/types.js +2 -0
- package/dist/features/localization/types.js.map +1 -0
- package/dist/features/localization/ui/AuthorityFieldControl.d.ts +32 -0
- package/dist/features/localization/ui/AuthorityFieldControl.d.ts.map +1 -0
- package/dist/features/localization/ui/AuthorityFieldControl.js +36 -0
- package/dist/features/localization/ui/AuthorityFieldControl.js.map +1 -0
- package/dist/features/localization/ui/TranslatabilityToggle.d.ts +17 -0
- package/dist/features/localization/ui/TranslatabilityToggle.d.ts.map +1 -0
- package/dist/features/localization/ui/TranslatabilityToggle.js +16 -0
- package/dist/features/localization/ui/TranslatabilityToggle.js.map +1 -0
- package/dist/features/localization/useLocalizationData.d.ts +37 -0
- package/dist/features/localization/useLocalizationData.d.ts.map +1 -0
- package/dist/features/localization/useLocalizationData.js +88 -0
- package/dist/features/localization/useLocalizationData.js.map +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -43
- package/dist/index.js.map +1 -1
- package/dist/merge/components/conflict-notifications/ConflictNotificationToast.js +0 -19
- package/dist/merge/components/conflict-notifications/ConflictNotificationToast.js.map +1 -1
- package/dist/merge/components/conflict-notifications/index.js +0 -5
- package/dist/merge/components/conflict-notifications/index.js.map +1 -1
- package/dist/merge/components/conflict-notifications/useConflictNotifications.js +0 -48
- package/dist/merge/components/conflict-notifications/useConflictNotifications.js.map +1 -1
- package/dist/merge/components/conflict-resolution/ComponentConflictGroup.js +0 -36
- package/dist/merge/components/conflict-resolution/ComponentConflictGroup.js.map +1 -1
- package/dist/merge/components/conflict-resolution/PuckFieldResolutionPanel.js +0 -40
- package/dist/merge/components/conflict-resolution/PuckFieldResolutionPanel.js.map +1 -1
- package/dist/merge/components/conflict-resolution/RenderedResolutionPreview.js +0 -21
- package/dist/merge/components/conflict-resolution/RenderedResolutionPreview.js.map +1 -1
- package/dist/merge/components/conflict-resolution/index.js +0 -5
- package/dist/merge/components/conflict-resolution/index.js.map +1 -1
- package/dist/merge/components/merge-resolution/CherryPickVisualPanel.js +0 -44
- package/dist/merge/components/merge-resolution/CherryPickVisualPanel.js.map +1 -1
- package/dist/merge/components/merge-resolution/ComponentClickOverlay.js +0 -24
- package/dist/merge/components/merge-resolution/ComponentClickOverlay.js.map +1 -1
- package/dist/merge/components/merge-resolution/DocumentResolutionDetail.d.ts.map +1 -1
- package/dist/merge/components/merge-resolution/DocumentResolutionDetail.js +6 -31
- package/dist/merge/components/merge-resolution/DocumentResolutionDetail.js.map +1 -1
- package/dist/merge/components/merge-resolution/index.js +0 -3
- package/dist/merge/components/merge-resolution/index.js.map +1 -1
- package/dist/merge/useMergeResolution.d.ts +1 -1
- package/dist/merge/useMergeResolution.d.ts.map +1 -1
- package/dist/merge/useMergeResolution.js +6 -75
- package/dist/merge/useMergeResolution.js.map +1 -1
- package/dist/merge/utils/namespacePuckData.d.ts.map +1 -1
- package/dist/merge/utils/namespacePuckData.js +8 -8
- package/dist/merge/utils/namespacePuckData.js.map +1 -1
- package/dist/merge/utils/puckFieldClassifier.js +0 -183
- package/dist/merge/utils/puckFieldClassifier.js.map +1 -1
- package/dist/p1/editor/connect/connect-preview-config.js +0 -5
- package/dist/p1/editor/connect/connect-preview-config.js.map +1 -1
- package/dist/p1/editor/connect/field-connect-plugin.js +0 -6
- package/dist/p1/editor/connect/field-connect-plugin.js.map +1 -1
- package/dist/p1/editor/editor-preview-resolve.js +0 -13
- package/dist/p1/editor/editor-preview-resolve.js.map +1 -1
- package/dist/p1/editor/hooks/api-hooks.js +0 -7
- package/dist/p1/editor/hooks/api-hooks.js.map +1 -1
- package/dist/p1/editor/hooks/useLiveEditorContext.d.ts.map +1 -1
- package/dist/p1/editor/hooks/useLiveEditorContext.js +2 -13
- package/dist/p1/editor/hooks/useLiveEditorContext.js.map +1 -1
- package/dist/p1/editor/hooks/useLiveRemoteDatasources.js +0 -22
- package/dist/p1/editor/hooks/useLiveRemoteDatasources.js.map +1 -1
- package/dist/p1/editor/hooks/useP1Plugins.js +0 -5
- package/dist/p1/editor/hooks/useP1Plugins.js.map +1 -1
- package/dist/p1/editor/remote-datasources/remote-datasource-explorer-plugin.js +0 -7
- package/dist/p1/editor/remote-datasources/remote-datasource-explorer-plugin.js.map +1 -1
- package/dist/p1/editor/template-autocomplete-layer.js +0 -4
- package/dist/p1/editor/template-autocomplete-layer.js.map +1 -1
- package/dist/pds/components/AgentChip.js +0 -3
- package/dist/pds/components/AgentChip.js.map +1 -1
- package/dist/pds/components/CreatePageModal.js +1 -97
- package/dist/pds/components/CreatePageModal.js.map +1 -1
- package/dist/pds/components/LoadingMessage.d.ts.map +1 -1
- package/dist/pds/components/LoadingMessage.js +2 -1
- package/dist/pds/components/LoadingMessage.js.map +1 -1
- package/dist/pds/components/LoadingMessage.module.css +2 -21
- package/dist/pds/components/LoadingOverlay.d.ts +17 -0
- package/dist/pds/components/LoadingOverlay.d.ts.map +1 -0
- package/dist/pds/components/LoadingOverlay.js +7 -0
- package/dist/pds/components/LoadingOverlay.js.map +1 -0
- package/dist/pds/components/LoadingOverlay.module.css +28 -0
- package/dist/pds/components/P1EditorHeader.d.ts +9 -2
- package/dist/pds/components/P1EditorHeader.d.ts.map +1 -1
- package/dist/pds/components/P1EditorHeader.js +6 -26
- package/dist/pds/components/P1EditorHeader.js.map +1 -1
- package/dist/pds/components/P1EditorHeader.module.css +26 -0
- package/dist/pds/components/PageNavigator.js +0 -16
- package/dist/pds/components/PageNavigator.js.map +1 -1
- package/dist/pds/components/PageNotFound.d.ts +27 -0
- package/dist/pds/components/PageNotFound.d.ts.map +1 -0
- package/dist/pds/components/PageNotFound.js +24 -0
- package/dist/pds/components/PageNotFound.js.map +1 -0
- package/dist/pds/components/PageNotFound.module.css +51 -0
- package/dist/pds/components/PresenceStack.js +0 -9
- package/dist/pds/components/PresenceStack.js.map +1 -1
- package/dist/pds/components/PublishControl.js +0 -6
- package/dist/pds/components/PublishControl.js.map +1 -1
- package/dist/pds/components/WorkstreamSwitcher.js +1 -25
- package/dist/pds/components/WorkstreamSwitcher.js.map +1 -1
- package/dist/pds/index.d.ts +4 -0
- package/dist/pds/index.d.ts.map +1 -1
- package/dist/pds/index.js +2 -29
- package/dist/pds/index.js.map +1 -1
- package/dist/pds/theme/pds-core-content.js +0 -5
- package/dist/pds/theme/pds-core-content.js.map +1 -1
- package/dist/pds/utils/deriveDocState.js +0 -1
- package/dist/pds/utils/deriveDocState.js.map +1 -1
- package/dist/pds/utils/deriveLiveDocState.js +0 -13
- package/dist/pds/utils/deriveLiveDocState.js.map +1 -1
- package/dist/registry-sync.js +0 -4
- package/dist/registry-sync.js.map +1 -1
- package/dist/server.js +0 -7
- package/dist/server.js.map +1 -1
- package/dist/versioning/components/ReadOnlyFieldsGuard.js +0 -3
- package/dist/versioning/components/ReadOnlyFieldsGuard.js.map +1 -1
- package/dist/versioning/components/VersionBannerActions.js +0 -1
- package/dist/versioning/components/VersionBannerActions.js.map +1 -1
- package/dist/versioning/components/version-compare/BranchDiffHeader.js +0 -7
- package/dist/versioning/components/version-compare/BranchDiffHeader.js.map +1 -1
- package/dist/versioning/components/version-compare/BranchMergeCompare.js +0 -19
- package/dist/versioning/components/version-compare/BranchMergeCompare.js.map +1 -1
- package/dist/versioning/components/version-compare/ComponentNode.js +0 -8
- package/dist/versioning/components/version-compare/ComponentNode.js.map +1 -1
- package/dist/versioning/components/version-compare/ComponentTree.js +0 -10
- package/dist/versioning/components/version-compare/ComponentTree.js.map +1 -1
- package/dist/versioning/components/version-compare/DiffHeader.js +0 -3
- package/dist/versioning/components/version-compare/DiffHeader.js.map +1 -1
- package/dist/versioning/components/version-compare/DocumentDiffList.js +0 -14
- package/dist/versioning/components/version-compare/DocumentDiffList.js.map +1 -1
- package/dist/versioning/components/version-compare/PropDiffPanel.js +0 -7
- package/dist/versioning/components/version-compare/PropDiffPanel.js.map +1 -1
- package/dist/versioning/components/version-compare/PropDiffRow.js +0 -3
- package/dist/versioning/components/version-compare/PropDiffRow.js.map +1 -1
- package/dist/versioning/components/version-compare/PropValueDisplay.js +0 -22
- package/dist/versioning/components/version-compare/PropValueDisplay.js.map +1 -1
- package/dist/versioning/components/version-compare/VersionComparePage.js +0 -13
- package/dist/versioning/components/version-compare/VersionComparePage.js.map +1 -1
- package/dist/versioning/components/version-compare/VisualBranchCompare.js +0 -17
- package/dist/versioning/components/version-compare/VisualBranchCompare.js.map +1 -1
- package/dist/versioning/components/version-compare/VisualVersionCompare.js +0 -23
- package/dist/versioning/components/version-compare/VisualVersionCompare.js.map +1 -1
- package/dist/versioning/components/version-compare/index.js +0 -5
- package/dist/versioning/components/version-compare/index.js.map +1 -1
- package/dist/versioning/components/version-history/AgentCheckpointBadge.js +0 -14
- package/dist/versioning/components/version-history/AgentCheckpointBadge.js.map +1 -1
- package/dist/versioning/components/version-history/VersionItem.js +0 -7
- package/dist/versioning/components/version-history/VersionItem.js.map +1 -1
- package/dist/versioning/components/version-history/index.js +0 -5
- package/dist/versioning/components/version-history/index.js.map +1 -1
- package/dist/versioning/useCheckpoints.js +0 -28
- package/dist/versioning/useCheckpoints.js.map +1 -1
- package/dist/versioning/useVersions.js +0 -31
- package/dist/versioning/useVersions.js.map +1 -1
- package/dist/versioning/utils/branchDiff.js +0 -93
- package/dist/versioning/utils/branchDiff.js.map +1 -1
- package/dist/versioning/utils/diff.js +0 -79
- package/dist/versioning/utils/diff.js.map +1 -1
- package/dist/versioning/utils/formatVersionDate.js +0 -12
- package/dist/versioning/utils/formatVersionDate.js.map +1 -1
- package/dist/versioning/utils/highlightConfig.js +0 -42
- package/dist/versioning/utils/highlightConfig.js.map +1 -1
- package/dist/versioning/utils/versionKind.js +0 -10
- package/dist/versioning/utils/versionKind.js.map +1 -1
- package/package.json +7 -7
- package/src/data/data-list-block/data-list.css +314 -0
- package/src/pds/theme/PuckEditorTheme.css +5 -5
- package/src/styles.css +1 -1
- package/src/pds/theme/PuckEditorTheme.test.ts +0 -195
- package/src/pds/theme/pds-core-content.ts +0 -8
|
@@ -1,67 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase 3.2: useRealtime Hook
|
|
3
|
-
*
|
|
4
|
-
* React hook for real-time collaborative editing with Puck.
|
|
5
|
-
* Manages WebSocket connection and Yjs CRDT synchronization.
|
|
6
|
-
*/
|
|
7
1
|
import { useState, useEffect, useLayoutEffect, useRef, useCallback } from 'react';
|
|
8
2
|
import { RealtimeClient } from '@pantheon-systems/css-client';
|
|
9
3
|
import { createPuckYjsBinding, } from './utils/puckYjsBinding.js';
|
|
10
|
-
/**
|
|
11
|
-
* Hook for real-time collaborative editing with Puck.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* function Editor() {
|
|
16
|
-
* const realtime = useRealtime({
|
|
17
|
-
* baseUrl: 'wss://api.example.com',
|
|
18
|
-
* siteId: 'site-123',
|
|
19
|
-
* branchId: 'branch-456',
|
|
20
|
-
* documentPath: 'pages/home',
|
|
21
|
-
* actorId: 'user-789',
|
|
22
|
-
* actorType: 'user',
|
|
23
|
-
* enabled: true,
|
|
24
|
-
* onRemoteUpdate: (data) => setPuckData(data),
|
|
25
|
-
* });
|
|
26
|
-
*
|
|
27
|
-
* return (
|
|
28
|
-
* <Puck
|
|
29
|
-
* data={puckData}
|
|
30
|
-
* onChange={(data) => {
|
|
31
|
-
* setPuckData(data);
|
|
32
|
-
* realtime.applyLocalChange(data);
|
|
33
|
-
* }}
|
|
34
|
-
* />
|
|
35
|
-
* );
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
4
|
export function useRealtime(params) {
|
|
40
|
-
const { baseUrl, apiKey, tokenRefresher, siteId, branchId, documentPath, actorId, actorType, sessionId, enabled = true, onRemoteUpdate, onPresenceUpdate, onFocusRegionBroadcast, onServerReload, } = params;
|
|
5
|
+
const { baseUrl, apiKey, tokenRefresher, siteId, branchId, documentPath, actorId, actorType, sessionId, enabled = true, onRemoteUpdate, onPresenceUpdate, onFocusRegionBroadcast, onServerReload, onBaselineReset, resetKey = 0, } = params;
|
|
41
6
|
const [connected, setConnected] = useState(false);
|
|
42
7
|
const [error, setError] = useState(null);
|
|
43
8
|
const [presenceViaWebSocket, setPresenceViaWebSocket] = useState(false);
|
|
44
|
-
// Track the document path that the active connection is bound to.
|
|
45
|
-
// Captured at connection time, cleared on disconnect. Used to prevent
|
|
46
|
-
// cross-document state bleed: callers can compare this against their
|
|
47
|
-
// current document path before sending data through the binding.
|
|
48
9
|
const connectedDocumentPathRef = useRef(null);
|
|
49
|
-
// Refs to avoid recreating callbacks
|
|
50
10
|
const clientRef = useRef(null);
|
|
51
11
|
const bindingRef = useRef(null);
|
|
52
12
|
const onRemoteUpdateRef = useRef(onRemoteUpdate);
|
|
53
13
|
const onPresenceUpdateRef = useRef(onPresenceUpdate);
|
|
54
14
|
const onFocusRegionBroadcastRef = useRef(onFocusRegionBroadcast);
|
|
55
15
|
const onServerReloadRef = useRef(onServerReload);
|
|
56
|
-
|
|
57
|
-
// latest version without needing to be recreated on reference changes.
|
|
16
|
+
const onBaselineResetRef = useRef(onBaselineReset);
|
|
58
17
|
const tokenRefresherRef = useRef(tokenRefresher);
|
|
59
18
|
tokenRefresherRef.current = tokenRefresher;
|
|
60
19
|
const initialDataRef = useRef(params.initialData);
|
|
61
|
-
// Keep ref in sync but do NOT add to effect deps — changing data
|
|
62
|
-
// during editing must not trigger a WebSocket reconnection.
|
|
63
20
|
initialDataRef.current = params.initialData;
|
|
64
|
-
// Keep callback refs up to date
|
|
65
21
|
useEffect(() => {
|
|
66
22
|
onRemoteUpdateRef.current = onRemoteUpdate;
|
|
67
23
|
}, [onRemoteUpdate]);
|
|
@@ -74,12 +30,9 @@ export function useRealtime(params) {
|
|
|
74
30
|
useEffect(() => {
|
|
75
31
|
onServerReloadRef.current = onServerReload;
|
|
76
32
|
}, [onServerReload]);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
// where PuckDataSynchronizer dispatches setData during a document switch, Puck
|
|
81
|
-
// fires onChange, and saveData sends data through a stale binding that still
|
|
82
|
-
// points to the previous document's Y.Doc — causing cross-document state bleed.
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
onBaselineResetRef.current = onBaselineReset;
|
|
35
|
+
}, [onBaselineReset]);
|
|
83
36
|
useLayoutEffect(() => {
|
|
84
37
|
return () => {
|
|
85
38
|
connectedDocumentPathRef.current = null;
|
|
@@ -88,22 +41,14 @@ export function useRealtime(params) {
|
|
|
88
41
|
clientRef.current?.disconnect();
|
|
89
42
|
clientRef.current = null;
|
|
90
43
|
};
|
|
91
|
-
}, [baseUrl, apiKey, siteId, branchId, documentPath, actorId, actorType, sessionId, enabled]);
|
|
92
|
-
// Effect to manage connection lifecycle
|
|
44
|
+
}, [baseUrl, apiKey, siteId, branchId, documentPath, actorId, actorType, sessionId, enabled, resetKey]);
|
|
93
45
|
useEffect(() => {
|
|
94
|
-
// Don't connect if disabled, no document path, or missing required params
|
|
95
46
|
if (!enabled || !documentPath || !branchId || !siteId) {
|
|
96
47
|
return;
|
|
97
48
|
}
|
|
98
|
-
// Create new client
|
|
99
|
-
// NOTE: We don't use RealtimeClient.onUpdate because it would cause double callbacks.
|
|
100
|
-
// The Puck-Yjs binding observer already handles remote updates properly by checking
|
|
101
|
-
// transaction origin to distinguish local vs remote changes.
|
|
102
49
|
const client = new RealtimeClient({
|
|
103
50
|
baseUrl,
|
|
104
51
|
apiKey,
|
|
105
|
-
// Use ref-wrapped refresher so the client always calls the latest version
|
|
106
|
-
// without needing to be recreated when the function reference changes.
|
|
107
52
|
tokenRefresher: tokenRefresherRef.current
|
|
108
53
|
? () => {
|
|
109
54
|
const refresher = tokenRefresherRef.current;
|
|
@@ -111,26 +56,14 @@ export function useRealtime(params) {
|
|
|
111
56
|
}
|
|
112
57
|
: undefined,
|
|
113
58
|
onConnect: () => {
|
|
114
|
-
// Guard: ignore callbacks from stale clients.
|
|
115
|
-
// When dependencies change, the old client is destroyed and a new one
|
|
116
|
-
// created. The old WebSocket's close event fires asynchronously and may
|
|
117
|
-
// arrive AFTER the new client has already connected. Without this guard,
|
|
118
|
-
// the stale onDisconnect would overwrite the new client's connection
|
|
119
|
-
// state (connectedDocumentPathRef, connected, presenceViaWebSocket),
|
|
120
|
-
// permanently breaking sync in one direction and corrupting presence.
|
|
121
59
|
if (clientRef.current !== client)
|
|
122
60
|
return;
|
|
123
|
-
// Capture the document path this connection is bound to.
|
|
124
|
-
// documentPath here is from the effect closure — it's the value
|
|
125
|
-
// that was current when this effect ran, which is the document
|
|
126
|
-
// the WebSocket was created for.
|
|
127
61
|
connectedDocumentPathRef.current = documentPath;
|
|
128
62
|
setConnected(true);
|
|
129
63
|
setPresenceViaWebSocket(true);
|
|
130
64
|
setError(null);
|
|
131
65
|
},
|
|
132
66
|
onDisconnect: () => {
|
|
133
|
-
// Guard: ignore callbacks from stale clients (see onConnect comment).
|
|
134
67
|
if (clientRef.current !== client)
|
|
135
68
|
return;
|
|
136
69
|
connectedDocumentPathRef.current = null;
|
|
@@ -140,7 +73,6 @@ export function useRealtime(params) {
|
|
|
140
73
|
onError: (err) => {
|
|
141
74
|
setError(err);
|
|
142
75
|
},
|
|
143
|
-
// onUpdate intentionally omitted - binding handles this
|
|
144
76
|
onPresenceUpdate: (actors) => {
|
|
145
77
|
onPresenceUpdateRef.current?.(actors);
|
|
146
78
|
},
|
|
@@ -150,24 +82,20 @@ export function useRealtime(params) {
|
|
|
150
82
|
onServerReload: () => {
|
|
151
83
|
onServerReloadRef.current?.();
|
|
152
84
|
},
|
|
85
|
+
onBaselineReset: () => {
|
|
86
|
+
if (clientRef.current !== client)
|
|
87
|
+
return;
|
|
88
|
+
onBaselineResetRef.current?.();
|
|
89
|
+
},
|
|
153
90
|
});
|
|
154
91
|
clientRef.current = client;
|
|
155
|
-
// Create Puck-Yjs binding - this is the ONLY place that calls onRemoteUpdate
|
|
156
|
-
// The binding observes Yjs changes and filters out local changes (origin === 'local')
|
|
157
92
|
const binding = createPuckYjsBinding(client.getYDoc(), (data) => {
|
|
158
93
|
onRemoteUpdateRef.current?.(data);
|
|
159
94
|
});
|
|
160
95
|
bindingRef.current = binding;
|
|
161
|
-
// Seed Y.Doc with initial REST data before connecting.
|
|
162
|
-
// This populates the client's Y.Doc so the server can send a delta
|
|
163
|
-
// instead of the full CRDT state on initial connect.
|
|
164
|
-
// Safe because:
|
|
165
|
-
// - applyLocalChange uses LOCAL_ORIGIN (observer ignores local changes)
|
|
166
|
-
// - this.ws is null at this point (update listener won't try to send)
|
|
167
96
|
if (initialDataRef.current) {
|
|
168
97
|
binding.applyLocalChange(initialDataRef.current);
|
|
169
98
|
}
|
|
170
|
-
// Connect to the document session
|
|
171
99
|
client.connect({
|
|
172
100
|
siteId,
|
|
173
101
|
branchId,
|
|
@@ -176,7 +104,6 @@ export function useRealtime(params) {
|
|
|
176
104
|
actorType,
|
|
177
105
|
sessionId,
|
|
178
106
|
});
|
|
179
|
-
// Cleanup on unmount or when dependencies change
|
|
180
107
|
return () => {
|
|
181
108
|
connectedDocumentPathRef.current = null;
|
|
182
109
|
binding.destroy();
|
|
@@ -186,8 +113,7 @@ export function useRealtime(params) {
|
|
|
186
113
|
setConnected(false);
|
|
187
114
|
setPresenceViaWebSocket(false);
|
|
188
115
|
};
|
|
189
|
-
}, [baseUrl, apiKey, siteId, branchId, documentPath, actorId, actorType, sessionId, enabled]);
|
|
190
|
-
// Apply local change function
|
|
116
|
+
}, [baseUrl, apiKey, siteId, branchId, documentPath, actorId, actorType, sessionId, enabled, resetKey]);
|
|
191
117
|
const applyLocalChange = useCallback((data, puckActions) => {
|
|
192
118
|
if (bindingRef.current) {
|
|
193
119
|
if (puckActions && puckActions.length > 0 && clientRef.current) {
|
|
@@ -196,7 +122,6 @@ export function useRealtime(params) {
|
|
|
196
122
|
bindingRef.current.applyLocalChange(data);
|
|
197
123
|
}
|
|
198
124
|
}, [connected]);
|
|
199
|
-
// Get current snapshot from Yjs document
|
|
200
125
|
const getSnapshot = useCallback(() => {
|
|
201
126
|
if (clientRef.current) {
|
|
202
127
|
const snapshot = clientRef.current.getSnapshot();
|
|
@@ -206,27 +131,23 @@ export function useRealtime(params) {
|
|
|
206
131
|
}
|
|
207
132
|
return null;
|
|
208
133
|
}, []);
|
|
209
|
-
// Send focus regions update to server
|
|
210
134
|
const sendFocusRegions = useCallback((regions) => {
|
|
211
135
|
if (clientRef.current) {
|
|
212
136
|
return clientRef.current.sendFocusRegions(regions);
|
|
213
137
|
}
|
|
214
138
|
return false;
|
|
215
139
|
}, []);
|
|
216
|
-
// Send presence heartbeat to server
|
|
217
140
|
const sendHeartbeat = useCallback((state) => {
|
|
218
141
|
if (clientRef.current) {
|
|
219
142
|
clientRef.current.sendHeartbeat(state);
|
|
220
143
|
}
|
|
221
144
|
}, []);
|
|
222
|
-
// Wait for delivery acknowledgment from server
|
|
223
145
|
const waitForDelivery = useCallback(() => {
|
|
224
146
|
if (clientRef.current) {
|
|
225
147
|
return clientRef.current.waitForDelivery();
|
|
226
148
|
}
|
|
227
149
|
return Promise.reject(new Error('Not connected'));
|
|
228
150
|
}, []);
|
|
229
|
-
// Request publish via WebSocket (DO handles flush + publish)
|
|
230
151
|
const requestPublish = useCallback(() => {
|
|
231
152
|
if (clientRef.current) {
|
|
232
153
|
return clientRef.current.requestPublish();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRealtime.js","sourceRoot":"","sources":["../../src/editor/useRealtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRealtime.js","sourceRoot":"","sources":["../../src/editor/useRealtime.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACL,oBAAoB,GAErB,MAAM,2BAA2B,CAAC;AAsLnC,MAAM,UAAU,WAAW,CAAC,MAAyB;IACnD,MAAM,EACJ,OAAO,EACP,MAAM,EACN,cAAc,EACd,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,SAAS,EACT,SAAS,EACT,OAAO,GAAG,IAAI,EACd,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,QAAQ,GAAG,CAAC,GACb,GAAG,MAAM,CAAC;IAEX,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAMxE,MAAM,wBAAwB,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAC;IAG7D,MAAM,SAAS,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IACtD,MAAM,UAAU,GAAG,MAAM,CAAiD,IAAI,CAAC,CAAC;IAChF,MAAM,iBAAiB,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IACjD,MAAM,mBAAmB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACrD,MAAM,yBAAyB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;I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ACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAGP,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,KAAkB,EAAQ,EAAE;QAC7D,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;YACtB,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAGP,MAAM,eAAe,GAAG,WAAW,CAAC,GAAkB,EAAE;QACtD,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;YACtB,OAAO,SAAS,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;QAC7C,CAAC;QACD,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;IACpD,CAAC,EAAE,EAAE,CAAC,CAAC;IAGP,MAAM,cAAc,GAAG,WAAW,CAAC,GAA2B,EAAE;QAC9D,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;YACtB,OAAO,SAAS,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAC5C,CAAC;QACD,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;IACpD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,SAAS;QACT,gBAAgB;QAChB,WAAW;QACX,KAAK;QACL,gBAAgB;QAChB,aAAa;QACb,oBAAoB;QACpB,qBAAqB,EAAE,wBAAwB,CAAC,OAAO;QACvD,eAAe;QACf,cAAc;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
|
-
// Measured against the running editor at 1600px, where Puck's grid resolves to
|
|
3
|
-
// `68px 320px 892px 320px`.
|
|
4
2
|
const RAIL_W = 68;
|
|
5
3
|
const LEFT_PANEL_W = 320;
|
|
6
4
|
const RIGHT_PANEL_W = 320;
|
|
7
5
|
const CANVAS_MIN = 600;
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
/** Below this the right panel can no longer afford its column either. */
|
|
11
|
-
const DOCKED_BUDGET = RAIL_W + RIGHT_PANEL_W + CANVAS_MIN; // 988
|
|
12
|
-
/** localStorage is already origin-scoped and an origin serves one site. */
|
|
6
|
+
const ALL_OPEN_BUDGET = RAIL_W + LEFT_PANEL_W + RIGHT_PANEL_W + CANVAS_MIN;
|
|
7
|
+
const DOCKED_BUDGET = RAIL_W + RIGHT_PANEL_W + CANVAS_MIN;
|
|
13
8
|
const STORAGE_KEY = 'p1-sidebar';
|
|
14
9
|
const UI_KEY = { left: 'leftSideBarVisible', right: 'rightSideBarVisible' };
|
|
15
10
|
const SIDES = ['left', 'right'];
|
|
@@ -28,7 +23,6 @@ function readPersisted() {
|
|
|
28
23
|
if (!stored)
|
|
29
24
|
return {};
|
|
30
25
|
const parsed = JSON.parse(stored);
|
|
31
|
-
// A hand-edited or truncated value must not crash the editor.
|
|
32
26
|
if (typeof parsed !== 'object' || parsed === null)
|
|
33
27
|
return {};
|
|
34
28
|
return parsed;
|
|
@@ -42,7 +36,6 @@ function writePersisted(value) {
|
|
|
42
36
|
localStorage.setItem(STORAGE_KEY, JSON.stringify(value));
|
|
43
37
|
}
|
|
44
38
|
catch {
|
|
45
|
-
/* private browsing and quota exhaustion throw; neither is worth failing over */
|
|
46
39
|
}
|
|
47
40
|
}
|
|
48
41
|
export function initialPanelUi() {
|
|
@@ -53,10 +46,6 @@ export function initialPanelUi() {
|
|
|
53
46
|
rightSideBarVisible: (persisted.right ?? true) && budget.right,
|
|
54
47
|
};
|
|
55
48
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Seeded from the first load: a panel the budget closed against a stored
|
|
58
|
-
* preference of open is auto's to reopen. One already stored closed is not.
|
|
59
|
-
*/
|
|
60
49
|
function initialAutoState() {
|
|
61
50
|
const persisted = readPersisted();
|
|
62
51
|
const budget = panelsForWidth(viewportWidth());
|
|
@@ -71,7 +60,6 @@ function initialAutoState() {
|
|
|
71
60
|
prevObserved: null,
|
|
72
61
|
};
|
|
73
62
|
}
|
|
74
|
-
/** Divergence from what auto wrote is a user action; auto hands that side back. */
|
|
75
63
|
function releaseUserChangedSides(auto, observed) {
|
|
76
64
|
for (const side of SIDES) {
|
|
77
65
|
if (auto.lastApplied[side] !== undefined && observed[side] !== auto.lastApplied[side]) {
|
|
@@ -80,7 +68,6 @@ function releaseUserChangedSides(auto, observed) {
|
|
|
80
68
|
}
|
|
81
69
|
}
|
|
82
70
|
}
|
|
83
|
-
/** A threshold crossing earns auto one fresh enforcement of that side. */
|
|
84
71
|
function rearmOnThresholdCross(auto, target) {
|
|
85
72
|
for (const side of SIDES) {
|
|
86
73
|
if (auto.prevTarget && auto.prevTarget[side] !== target[side])
|
|
@@ -88,7 +75,6 @@ function rearmOnThresholdCross(auto, target) {
|
|
|
88
75
|
}
|
|
89
76
|
auto.prevTarget = target;
|
|
90
77
|
}
|
|
91
|
-
/** Close what the budget can no longer afford; reopen only what auto closed. */
|
|
92
78
|
function budgetUi(auto, target, observed) {
|
|
93
79
|
const ui = {};
|
|
94
80
|
for (const side of SIDES) {
|
|
@@ -111,10 +97,6 @@ function budgetUi(auto, target, observed) {
|
|
|
111
97
|
}
|
|
112
98
|
return ui;
|
|
113
99
|
}
|
|
114
|
-
/**
|
|
115
|
-
* Save only at widths where auto closes nothing, so a narrow session never
|
|
116
|
-
* overwrites the wide-screen preference.
|
|
117
|
-
*/
|
|
118
100
|
function persistIfDeliberate(width, ui, observed, observedChanged) {
|
|
119
101
|
const dispatched = Object.keys(ui).length > 0;
|
|
120
102
|
if (!shouldPersist(width) || (!dispatched && !observedChanged))
|
|
@@ -124,21 +106,8 @@ function persistIfDeliberate(width, ui, observed, observedChanged) {
|
|
|
124
106
|
right: ui.rightSideBarVisible ?? observed.right,
|
|
125
107
|
});
|
|
126
108
|
}
|
|
127
|
-
/**
|
|
128
|
-
* Collapses the left panel then the right as the window narrows, and reopens
|
|
129
|
-
* them as it widens again.
|
|
130
|
-
*
|
|
131
|
-
* Divergence from the last auto-dispatched value is how a user action is
|
|
132
|
-
* detected, which covers every mutation path — the subheader toggles, Puck's own
|
|
133
|
-
* in-panel collapse buttons, the AI panel's rail bridge — without threading a
|
|
134
|
-
* flag through each handler.
|
|
135
|
-
*/
|
|
136
109
|
export function useResponsivePanels({ leftVisible, rightVisible, dispatch, }) {
|
|
137
|
-
// Hold the derived target rather than the raw width: a drag fires hundreds of
|
|
138
|
-
// resize events but crosses a threshold at most twice.
|
|
139
110
|
const [target, setTarget] = useState(() => panelsForWidth(viewportWidth()));
|
|
140
|
-
// The raw width, in a ref so the persistence gate can read it without
|
|
141
|
-
// re-rendering on every resize event.
|
|
142
111
|
const widthRef = useRef(viewportWidth());
|
|
143
112
|
useEffect(() => {
|
|
144
113
|
const onResize = () => {
|
|
@@ -159,8 +128,6 @@ export function useResponsivePanels({ leftVisible, rightVisible, dispatch, }) {
|
|
|
159
128
|
return;
|
|
160
129
|
const auto = autoRef.current;
|
|
161
130
|
const observed = { left: leftVisible, right: rightVisible };
|
|
162
|
-
// Captured before it is overwritten: a null previous means the initial
|
|
163
|
-
// render, where mounting must not overwrite a stored preference.
|
|
164
131
|
const prevObserved = auto.prevObserved;
|
|
165
132
|
auto.prevObserved = observed;
|
|
166
133
|
releaseUserChangedSides(auto, observed);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResponsivePanels.js","sourceRoot":"","sources":["../../src/editor/useResponsivePanels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useResponsivePanels.js","sourceRoot":"","sources":["../../src/editor/useResponsivePanels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAwCpD,MAAM,MAAM,GAAG,EAAE,CAAC;AAClB,M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AAI,IAAI,YAAY,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC,CACjF,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { useRef, useLayoutEffect } from 'react';
|
|
2
2
|
const SIDEBAR_SELECTOR = '[class*="_Sidebar--right_"]';
|
|
3
|
-
/**
|
|
4
|
-
* Keeps the inspector sidebar's scroll position across re-renders that rebuild
|
|
5
|
-
* the field list (collapsing a section, switching a block's view mode), which
|
|
6
|
-
* otherwise snap it back to the top.
|
|
7
|
-
*
|
|
8
|
-
* Selecting a different block deliberately does not restore — a new block
|
|
9
|
-
* starts at the top rather than inheriting the previous one's offset.
|
|
10
|
-
*/
|
|
11
3
|
export function useSidebarScrollPreservation(itemSelector, containerSelector = SIDEBAR_SELECTOR) {
|
|
12
4
|
const savedScrollRef = useRef(0);
|
|
13
5
|
const prevSelectorKeyRef = useRef('');
|
|
@@ -16,10 +8,6 @@ export function useSidebarScrollPreservation(itemSelector, containerSelector = S
|
|
|
16
8
|
: document.querySelector(containerSelector);
|
|
17
9
|
const selectorKey = itemSelector ? JSON.stringify(itemSelector) : '';
|
|
18
10
|
const selectionChanged = selectorKey !== prevSelectorKeyRef.current;
|
|
19
|
-
// Captured during render, which runs before React commits DOM changes, so this
|
|
20
|
-
// is always the live pre-update offset. Reading it from a `scroll` listener
|
|
21
|
-
// instead would leave it stale whenever a background re-render (presence,
|
|
22
|
-
// document sync) landed before the event dispatched.
|
|
23
11
|
if (container && !selectionChanged) {
|
|
24
12
|
savedScrollRef.current = container.scrollTop;
|
|
25
13
|
}
|
|
@@ -29,8 +17,6 @@ export function useSidebarScrollPreservation(itemSelector, containerSelector = S
|
|
|
29
17
|
savedScrollRef.current = 0;
|
|
30
18
|
return;
|
|
31
19
|
}
|
|
32
|
-
// Restore only when the commit actually reset the scroll. Writing on any
|
|
33
|
-
// mismatch would yank the user mid-scroll on unrelated re-renders.
|
|
34
20
|
if (container && container.scrollTop === 0 && savedScrollRef.current > 0) {
|
|
35
21
|
container.scrollTop = savedScrollRef.current;
|
|
36
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSidebarScrollPreservation.js","sourceRoot":"","sources":["../../src/editor/useSidebarScrollPreservation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,gBAAgB,GAAG,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"useSidebarScrollPreservation.js","sourceRoot":"","sources":["../../src/editor/useSidebarScrollPreservation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,gBAAgB,GAAG,6BAA6B,CAAC;AAUvD,MAAM,UAAU,4BAA4B,CAC1C,YAAqB,EACrB,oBAA4B,gBAAgB;IAE5C,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IACjC,MAAM,kBAAkB,GAAG,MAAM,CAAS,EAAE,CAAC,CAAC;IAE9C,MAAM,SAAS,GACb,OAAO,QAAQ,KAAK,WAAW;QAC7B,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAc,iBAAiB,CAAC,CAAC;IAE7D,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACrE,MAAM,gBAAgB,GAAG,WAAW,KAAK,kBAAkB,CAAC,OAAO,CAAC;IAMpE,IAAI,SAAS,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACnC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,SAAS,CAAC;IAC/C,CAAC;IAED,eAAe,CAAC,GAAG,EAAE;QACnB,IAAI,gBAAgB,EAAE,CAAC;YACrB,kBAAkB,CAAC,OAAO,GAAG,WAAW,CAAC;YACzC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;YAC3B,OAAO;QACT,CAAC;QAGD,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,KAAK,CAAC,IAAI,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,CAAC;YACzE,SAAS,CAAC,SAAS,GAAG,cAAc,CAAC,OAAO,CAAC;QAC/C,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { GenericThumbnailIcon } from '../icons/GenericThumbnailIcon.js';
|
|
3
3
|
import { GripHandleIcon } from '../icons/GripHandleIcon.js';
|
|
4
|
-
// ─── Thumbnail wrapper ─────────────────────────────────────────────────────────
|
|
5
4
|
function Thumbnail({ name, thumbnailMap }) {
|
|
6
5
|
const ThumbnailFn = thumbnailMap[name] ?? GenericThumbnailIcon;
|
|
7
6
|
return (_jsx("div", { style: { width: 48, height: 32, flexShrink: 0, borderRadius: 3, overflow: 'hidden' }, "aria-label": `${name} layout preview`, children: _jsx(ThumbnailFn, {}) }));
|
|
8
7
|
}
|
|
9
|
-
// ─── Public builder ───────────────────────────────────────────────────────────
|
|
10
|
-
/**
|
|
11
|
-
* Returns a partial `PuckOverrides` object containing a `componentItem` override
|
|
12
|
-
* that renders a thumbnail, the component name, and a drag-handle affordance.
|
|
13
|
-
*
|
|
14
|
-
* Pass the result to `useP1Editor`'s `additionalOverrides` or merge it with
|
|
15
|
-
* your existing overrides.
|
|
16
|
-
*/
|
|
17
8
|
export function buildThumbnailOverride(thumbnailMap) {
|
|
18
9
|
return {
|
|
19
10
|
drawerItem: ({ name }) => (_jsxs("div", { style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildThumbnailOverride.js","sourceRoot":"","sources":["../../../src/editor/utils/buildThumbnailOverride.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"buildThumbnailOverride.js","sourceRoot":"","sources":["../../../src/editor/utils/buildThumbnailOverride.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAU5D,SAAS,SAAS,CAAC,EAAE,IAAI,EAAE,YAAY,EAAgD;IACrF,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,oBAAoB,CAAC;IAC/D,OAAO,CACL,cACE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBACxE,GAAG,IAAI,iBAAiB,YAEpC,KAAC,WAAW,KAAG,GACX,CACP,CAAC;AACJ,CAAC;AAWD,MAAM,UAAU,sBAAsB,CAAC,YAA0B;IAC/D,OAAO;QACL,UAAU,EAAE,CAAC,EAAE,IAAI,EAA+C,EAAE,EAAE,CAAC,CACrE,eACE,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,QAAQ;gBACpB,GAAG,EAAE,EAAE;gBACP,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,SAAS;gBAClB,YAAY,EAAE,CAAC;gBACf,MAAM,EAAE,MAAM;gBACd,SAAS,EAAE,YAAY;aACxB,aAED,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,GAAI,EACrD,eACE,KAAK,EAAE;wBACL,IAAI,EAAE,CAAC;wBACP,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,GAAG;wBACf,KAAK,EAAE,SAAS;wBAChB,QAAQ,EAAE,QAAQ;wBAClB,YAAY,EAAE,UAAU;wBACxB,UAAU,EAAE,QAAQ;qBACrB,YAEA,IAAI,GACA,EACP,KAAC,cAAc,KAAG,IACd,CACP;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -103,15 +103,10 @@ export interface RegistryIndex {
|
|
|
103
103
|
hashes?: Record<string, string>;
|
|
104
104
|
/**
|
|
105
105
|
* Timestamp of the last full, per-component verification of every hash in
|
|
106
|
-
* `hashes` against its component document's own stored content
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* never told about), the fast path has no way to detect this on its own
|
|
111
|
-
* and would skip forever. Once `verifiedAt` is older than
|
|
112
|
-
* REGISTRY_VERIFICATION_INTERVAL_MS, the hook forces a real per-component
|
|
113
|
-
* check instead of trusting `hashes`, bounding how long such a desync can
|
|
114
|
-
* persist. Carried forward unchanged on fast-path runs; only refreshed
|
|
106
|
+
* `hashes` against its component document's own stored content.
|
|
107
|
+
* Once `verifiedAt` is older than REGISTRY_VERIFICATION_INTERVAL_MS, the
|
|
108
|
+
* hook forces a real per-component check instead of trusting `hashes`.
|
|
109
|
+
* Carried forward unchanged on fast-path runs; only refreshed
|
|
115
110
|
* when a full per-component verification actually just ran.
|
|
116
111
|
*/
|
|
117
112
|
verifiedAt?: string;
|
|
@@ -153,8 +148,8 @@ export declare function extractDescriptors(puckConfig: unknown, upstreamConfig?:
|
|
|
153
148
|
/**
|
|
154
149
|
* Builds the RegistryIndex from a list of extracted descriptors.
|
|
155
150
|
*
|
|
156
|
-
* @param verifiedAt - Pass when a full per-component verification just ran
|
|
157
|
-
*
|
|
151
|
+
* @param verifiedAt - Pass when a full per-component verification just ran,
|
|
152
|
+
* to stamp the index with that confirmation time. Omit to
|
|
158
153
|
* carry an existing value forward unchanged on a fast-path-only run.
|
|
159
154
|
*/
|
|
160
155
|
export declare function buildRegistryIndex(descriptors: ComponentDescriptor[], siteId: string, branchId: string, verifiedAt?: string): RegistryIndex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentRegistry.d.ts","sourceRoot":"","sources":["../../../src/editor/utils/componentRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,CAAC;AAErE,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+HAA+H;IAC/H,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sFAAsF;IACtF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,GAChE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,GACpE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,GAC9F;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,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