@jini-ai/admin 0.7.2 → 0.7.3-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -4
- package/dist/agent-plugins/agent-plugins.module.d.ts +1 -1
- package/dist/agent-plugins/agent-plugins.module.js +1 -1
- package/dist/agent-plugins/controllers/agent-plugin-files.controller.d.ts +3 -3
- package/dist/agent-plugins/controllers/agent-plugin-files.controller.js +1 -1
- package/dist/agent-plugins/controllers/agent-plugins.controller.d.ts +3 -3
- package/dist/agent-plugins/controllers/agent-plugins.controller.js +30 -27
- package/dist/agent-plugins/index.d.ts +11 -8
- package/dist/agent-plugins/index.js +7 -8
- package/dist/agent-plugins/models.d.ts +19 -11
- package/dist/agent-plugins/ports.d.ts +1 -1
- package/dist/agent-plugins/ports.js +1 -1
- package/dist/agent-plugins/react/components/AgentPluginFileContent.d.ts +4 -2
- package/dist/agent-plugins/react/components/AgentPluginFileContent.js +3 -3
- package/dist/agent-plugins/react/components/AgentPluginFileTree.d.ts +4 -2
- package/dist/agent-plugins/react/components/AgentPluginFileTree.js +2 -2
- package/dist/agent-plugins/react/components/AgentPluginInspector.d.ts +4 -2
- package/dist/agent-plugins/react/components/AgentPluginInspector.js +3 -3
- package/dist/agent-plugins/react/components/AgentPluginListPanel.d.ts +5 -3
- package/dist/agent-plugins/react/components/AgentPluginListPanel.js +3 -3
- package/dist/agent-plugins/react/components/AgentPluginRow.d.ts +3 -1
- package/dist/agent-plugins/react/components/AgentPluginRow.js +3 -3
- package/dist/agent-plugins/react/hooks/AgentPluginInspector.hooks.js +2 -2
- package/dist/agent-plugins/react/hooks/AgentPluginPanel.hooks.d.ts +6 -5
- package/dist/agent-plugins/react/hooks/AgentPluginRow.hooks.d.ts +5 -4
- package/dist/agent-plugins/react/hooks/AgentPluginsPage.hooks.d.ts +11 -7
- package/dist/agent-plugins/react/hooks/AgentPluginsPage.hooks.js +3 -3
- package/dist/agent-plugins/react/hooks/AgentPluginsPorts.hooks.d.ts +5 -0
- package/dist/agent-plugins/react/hooks/AgentPluginsPorts.hooks.js +11 -1
- package/dist/agent-plugins/react/hooks/MarketplaceTab.hooks.d.ts +1 -1
- package/dist/agent-plugins/react/index.d.ts +25 -71
- package/dist/agent-plugins/react/index.js +9 -6
- package/dist/agent-plugins/react/pages/AgentPluginsPage.d.ts +8 -2
- package/dist/agent-plugins/react/pages/AgentPluginsPage.js +3 -3
- package/dist/agent-plugins/react/tabs/DownloadedTab.d.ts +2 -2
- package/dist/agent-plugins/react/tabs/DownloadedTab.js +1 -1
- package/dist/agent-plugins/react/tabs/InstalledTab.d.ts +2 -2
- package/dist/agent-plugins/react/tabs/InstalledTab.js +1 -1
- package/dist/agent-plugins/react/tabs/MarketplaceTab.d.ts +5 -2
- package/dist/agent-plugins/react/tabs/MarketplaceTab.js +3 -3
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/react-root-errors.d.ts +19 -0
- package/dist/browser/react-root-errors.js +16 -0
- package/dist/comments/adapters/http.js +2 -3
- package/dist/comments/adapters/memory.d.ts +5 -3
- package/dist/comments/adapters/memory.js +5 -6
- package/dist/comments/comments.module.d.ts +3 -3
- package/dist/comments/comments.module.js +1 -1
- package/dist/comments/controllers/comment-queue.controller.d.ts +14 -12
- package/dist/comments/controllers/comment-queue.controller.js +154 -155
- package/dist/comments/controllers/comment-settings.controller.d.ts +4 -4
- package/dist/comments/controllers/comment-settings.controller.js +40 -39
- package/dist/comments/controllers/comments.controller.d.ts +4 -4
- package/dist/comments/controllers/comments.controller.js +1 -2
- package/dist/comments/ports.d.ts +3 -3
- package/dist/comments/ports.js +1 -1
- package/dist/comments/react/components/QueueActionsCell.d.ts +20 -0
- package/dist/comments/react/components/QueueActionsCell.js +15 -0
- package/dist/comments/react/components/QueueSection.d.ts +20 -9
- package/dist/comments/react/components/QueueSection.js +9 -20
- package/dist/comments/react/components/SettingsFields.d.ts +13 -0
- package/dist/comments/react/components/SettingsFields.js +17 -0
- package/dist/comments/react/components/SettingsSection.d.ts +4 -1
- package/dist/comments/react/components/SettingsSection.js +5 -10
- package/dist/comments/react/hooks/CommentsPage.hooks.js +1 -1
- package/dist/comments/react/hooks/CommentsPorts.hooks.d.ts +5 -0
- package/dist/comments/react/hooks/CommentsPorts.hooks.js +11 -1
- package/dist/comments/react/hooks/QueueActionsCell.hooks.d.ts +13 -0
- package/dist/comments/react/hooks/QueueActionsCell.hooks.js +7 -0
- package/dist/comments/react/hooks/QueueSection.hooks.d.ts +3 -11
- package/dist/comments/react/hooks/QueueSection.hooks.js +8 -11
- package/dist/comments/react/hooks/use-comment-queue.hooks.js +4 -4
- package/dist/comments/react/hooks/use-comment-settings.hooks.js +3 -3
- package/dist/comments/react/hooks/use-comments.hooks.js +3 -3
- package/dist/comments/react/index.d.ts +27 -89
- package/dist/comments/react/index.js +5 -6
- package/dist/comments/react/pages/CommentsPage.d.ts +4 -1
- package/dist/comments/react/pages/CommentsPage.js +2 -2
- package/dist/comments/rules.d.ts +1 -1
- package/dist/comments/rules.js +2 -3
- package/dist/contracts/credential-management.d.ts +1 -1
- package/dist/contracts/credential-management.js +1 -1
- package/dist/contracts/media-picker.d.ts +1 -1
- package/dist/contracts/media-picker.js +1 -1
- package/dist/contracts/playground-render-target.d.ts +1 -1
- package/dist/contracts/playground-render-target.js +1 -1
- package/dist/core/entities/rules.d.ts +8 -2
- package/dist/core/entities/rules.js +3 -3
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.js +1 -3
- package/dist/core/ledger-slice.d.ts +3 -3
- package/dist/core/ledger-slice.js +3 -3
- package/dist/core/manifest/rules.js +1 -1
- package/dist/core/manifest/types.d.ts +11 -0
- package/dist/core/module/create-admin.d.ts +1 -8
- package/dist/core/module/create-admin.js +4 -9
- package/dist/core/module/index.d.ts +1 -5
- package/dist/core/module/index.js +1 -3
- package/dist/core/ports/auth.d.ts +2 -2
- package/dist/core/ports/auth.js +1 -1
- package/dist/core/ports/comment-repo.d.ts +53 -0
- package/dist/core/ports/comment-repo.js +2 -0
- package/dist/core/ports/comments.d.ts +1 -1
- package/dist/core/ports/comments.js +1 -1
- package/dist/core/ports/database.d.ts +1 -1
- package/dist/core/ports/embed-policy.d.ts +19 -0
- package/dist/core/ports/embed-policy.js +2 -0
- package/dist/core/ports/entities.d.ts +14 -0
- package/dist/core/ports/forms-catalog.d.ts +27 -0
- package/dist/core/ports/forms-catalog.js +2 -0
- package/dist/core/ports/forms.d.ts +3 -3
- package/dist/core/ports/identity.d.ts +1 -1
- package/dist/core/ports/identity.js +1 -1
- package/dist/core/ports/index.d.ts +3 -0
- package/dist/core/ports/media.d.ts +1 -1
- package/dist/core/ports/plugins.d.ts +1 -1
- package/dist/core/react/bind-react.d.ts +6 -16
- package/dist/core/react/bind-react.js +1 -1
- package/dist/core/react/index.d.ts +3 -2
- package/dist/core/react/index.js +3 -2
- package/dist/core/react/module-ui.d.ts +10 -0
- package/dist/core/react/module-ui.js +6 -0
- package/dist/core/react/use-controller.d.ts +1 -1
- package/dist/core/react/use-controller.js +2 -1
- package/dist/core/routing/route-template.d.ts +11 -0
- package/dist/core/routing/route-template.js +23 -0
- package/dist/core/transport/http.js +7 -5
- package/dist/core/transport/index.d.ts +0 -1
- package/dist/core/transport/index.js +0 -1
- package/dist/forms/adapters/http.js +2 -2
- package/dist/forms/adapters/memory.d.ts +1 -1
- package/dist/forms/adapters/memory.js +35 -26
- package/dist/forms/controllers/draft-store.d.ts +4 -4
- package/dist/forms/controllers/draft-store.js +1 -1
- package/dist/forms/controllers/field-attributes-dialog.controller.d.ts +7 -8
- package/dist/forms/controllers/field-attributes-dialog.controller.js +8 -6
- package/dist/forms/controllers/form-editor.controller.d.ts +8 -5
- package/dist/forms/controllers/form-editor.controller.js +2 -2
- package/dist/forms/controllers/form-fields-editor.controller.d.ts +4 -4
- package/dist/forms/controllers/form-submission-detail.controller.d.ts +4 -4
- package/dist/forms/controllers/form-submissions.controller.d.ts +4 -4
- package/dist/forms/controllers/forms-list.controller.d.ts +4 -4
- package/dist/forms/field-settings.d.ts +32 -16
- package/dist/forms/field-settings.js +52 -41
- package/dist/forms/forms.module.d.ts +5 -4
- package/dist/forms/forms.module.js +3 -3
- package/dist/forms/html-rules.d.ts +4 -2
- package/dist/forms/html-rules.js +19 -19
- package/dist/forms/index.d.ts +6 -4
- package/dist/forms/index.js +3 -3
- package/dist/forms/messages.en.js +1 -1
- package/dist/forms/models.d.ts +1 -1
- package/dist/forms/ports.d.ts +8 -4
- package/dist/forms/ports.js +3 -1
- package/dist/forms/react/components/FieldAttributesDialog.d.ts +4 -1
- package/dist/forms/react/components/FieldAttributesDialog.js +6 -28
- package/dist/forms/react/components/FieldAttributesStyling.d.ts +26 -0
- package/dist/forms/react/components/FieldAttributesStyling.js +42 -0
- package/dist/forms/react/components/FieldSettingsRows.js +3 -4
- package/dist/forms/react/components/FieldSettingsSection.d.ts +4 -1
- package/dist/forms/react/components/FieldSettingsSection.js +3 -3
- package/dist/forms/react/components/FormEditorFieldsBody.d.ts +5 -2
- package/dist/forms/react/components/FormEditorFieldsBody.js +3 -3
- package/dist/forms/react/components/FormEditorFieldsBodyParts.js +1 -1
- package/dist/forms/react/components/FormEditorFieldsSlot.d.ts +6 -0
- package/dist/forms/react/components/FormEditorFieldsSlot.js +10 -0
- package/dist/forms/react/components/FormEditorHeader.d.ts +9 -0
- package/dist/forms/react/components/FormEditorHeader.js +16 -0
- package/dist/forms/react/components/FormEditorHeaderText.d.ts +1 -1
- package/dist/forms/react/components/FormEditorHeaderText.js +1 -1
- package/dist/forms/react/components/FormEditorMainPanel.d.ts +1 -1
- package/dist/forms/react/components/FormEditorMainPanel.js +4 -4
- package/dist/forms/react/components/FormEditorTabStrip.d.ts +5 -2
- package/dist/forms/react/components/FormEditorTabStrip.js +3 -4
- package/dist/forms/react/components/FormFieldRow.d.ts +10 -0
- package/dist/forms/react/components/FormFieldRow.js +53 -0
- package/dist/forms/react/components/FormFieldsEditor.d.ts +4 -1
- package/dist/forms/react/components/FormFieldsEditor.js +6 -22
- package/dist/forms/react/components/FormFieldsTableParts.d.ts +10 -0
- package/dist/forms/react/components/FormFieldsTableParts.js +11 -0
- package/dist/forms/react/components/FormSubmissionDate.d.ts +1 -1
- package/dist/forms/react/components/FormSubmissionDate.js +1 -1
- package/dist/forms/react/components/FormSubmissionDetail.d.ts +4 -1
- package/dist/forms/react/components/FormSubmissionDetail.js +3 -3
- package/dist/forms/react/components/FormSubmissions.d.ts +6 -1
- package/dist/forms/react/components/FormSubmissions.js +3 -3
- package/dist/forms/react/components/FormSubmissionsTable.js +1 -1
- package/dist/forms/react/components/FormsListParts.d.ts +36 -0
- package/dist/forms/react/components/FormsListParts.js +41 -0
- package/dist/forms/react/hooks/FormsPorts.hooks.d.ts +7 -1
- package/dist/forms/react/hooks/FormsPorts.hooks.js +11 -1
- package/dist/forms/react/hooks/forms-view.hooks.d.ts +17 -11
- package/dist/forms/react/hooks/forms-view.hooks.js +13 -11
- package/dist/forms/react/hooks/use-field-attributes-dialog.hooks.d.ts +4 -1
- package/dist/forms/react/hooks/use-field-attributes-dialog.hooks.js +6 -4
- package/dist/forms/react/hooks/use-form-editor-parts.hooks.d.ts +127 -0
- package/dist/forms/react/hooks/use-form-editor-parts.hooks.js +223 -0
- package/dist/forms/react/hooks/use-form-editor.hooks.d.ts +13 -3
- package/dist/forms/react/hooks/use-form-editor.hooks.js +34 -210
- package/dist/forms/react/hooks/use-form-fields-editor.hooks.js +2 -2
- package/dist/forms/react/hooks/use-form-submission-detail.hooks.d.ts +2 -2
- package/dist/forms/react/hooks/use-form-submission-detail.hooks.js +4 -4
- package/dist/forms/react/hooks/use-form-submissions.hooks.d.ts +2 -2
- package/dist/forms/react/hooks/use-form-submissions.hooks.js +4 -5
- package/dist/forms/react/hooks/use-forms-list.hooks.js +3 -3
- package/dist/forms/react/index.d.ts +35 -26
- package/dist/forms/react/index.js +5 -6
- package/dist/forms/react/pages/FormEditor.d.ts +2 -2
- package/dist/forms/react/pages/FormEditor.js +7 -12
- package/dist/forms/react/pages/FormsList.d.ts +5 -2
- package/dist/forms/react/pages/FormsList.js +4 -30
- package/dist/forms/rules.d.ts +5 -5
- package/dist/forms/rules.js +8 -20
- package/dist/media/adapters/http.d.ts +24 -2
- package/dist/media/adapters/http.js +133 -10
- package/dist/media/adapters/memory.js +41 -46
- package/dist/media/conformance/media-api.conformance.js +60 -42
- package/dist/media/controllers/edit-media.controller.d.ts +5 -5
- package/dist/media/controllers/edit-media.controller.js +20 -17
- package/dist/media/controllers/library.controller.d.ts +14 -14
- package/dist/media/controllers/library.controller.js +180 -167
- package/dist/media/controllers/providers.controller.d.ts +4 -4
- package/dist/media/controllers/providers.controller.js +46 -40
- package/dist/media/html-attributes.d.ts +23 -13
- package/dist/media/html-attributes.js +15 -23
- package/dist/media/index.d.ts +5 -4
- package/dist/media/index.js +3 -3
- package/dist/media/media.module.d.ts +6 -5
- package/dist/media/media.module.js +3 -3
- package/dist/media/ports.d.ts +8 -3
- package/dist/media/ports.js +4 -1
- package/dist/media/react/components/EditMediaPanel.d.ts +4 -1
- package/dist/media/react/components/EditMediaPanel.js +3 -3
- package/dist/media/react/components/MediaCard.d.ts +7 -2
- package/dist/media/react/components/MediaCard.js +6 -6
- package/dist/media/react/components/MediaDialog.d.ts +4 -1
- package/dist/media/react/components/MediaDialog.js +3 -3
- package/dist/media/react/components/MediaGrid.d.ts +4 -1
- package/dist/media/react/components/MediaGrid.js +2 -2
- package/dist/media/react/components/MediaIcons.d.ts +9 -9
- package/dist/media/react/components/MediaIcons.js +9 -9
- package/dist/media/react/components/MediaLightbox.d.ts +4 -1
- package/dist/media/react/components/MediaLightbox.js +3 -3
- package/dist/media/react/components/MediaPicker.d.ts +4 -1
- package/dist/media/react/components/MediaPicker.js +3 -3
- package/dist/media/react/components/MediaPurgeDialog.d.ts +4 -1
- package/dist/media/react/components/MediaPurgeDialog.js +3 -3
- package/dist/media/react/components/UploadButton.d.ts +4 -1
- package/dist/media/react/components/UploadButton.js +3 -3
- package/dist/media/react/hooks/EditMediaPanel.hooks.d.ts +6 -3
- package/dist/media/react/hooks/EditMediaPanel.hooks.js +62 -50
- package/dist/media/react/hooks/LibraryTab.hooks.d.ts +23 -23
- package/dist/media/react/hooks/LibraryTab.hooks.js +52 -36
- package/dist/media/react/hooks/MediaCard.hooks.d.ts +1 -1
- package/dist/media/react/hooks/MediaCard.hooks.js +2 -1
- package/dist/media/react/hooks/MediaDialog.hooks.d.ts +1 -1
- package/dist/media/react/hooks/MediaPage.hooks.d.ts +22 -18
- package/dist/media/react/hooks/MediaPage.hooks.js +3 -3
- package/dist/media/react/hooks/MediaPicker.hooks.d.ts +1 -1
- package/dist/media/react/hooks/MediaPicker.hooks.js +2 -2
- package/dist/media/react/hooks/MediaPorts.hooks.d.ts +7 -0
- package/dist/media/react/hooks/MediaPorts.hooks.js +11 -1
- package/dist/media/react/hooks/MediaQuery.hooks.d.ts +3 -3
- package/dist/media/react/hooks/MediaQuery.hooks.js +1 -1
- package/dist/media/react/hooks/ProvidersTab.hooks.d.ts +7 -1
- package/dist/media/react/hooks/ProvidersTab.hooks.js +49 -46
- package/dist/media/react/index.d.ts +39 -114
- package/dist/media/react/index.js +55 -48
- package/dist/media/react/pages/MediaPage.d.ts +4 -1
- package/dist/media/react/pages/MediaPage.js +2 -2
- package/dist/media/react/tabs/LibraryTab.d.ts +5 -2
- package/dist/media/react/tabs/LibraryTab.js +3 -3
- package/dist/media/react/tabs/ProvidersTab.d.ts +5 -2
- package/dist/media/react/tabs/ProvidersTab.js +2 -2
- package/dist/media/rules.d.ts +0 -7
- package/dist/media/rules.js +0 -12
- package/dist/playground/controllers/playground.controller.d.ts +3 -3
- package/dist/playground/controllers/playground.controller.js +1 -1
- package/dist/playground/playground.module.d.ts +1 -1
- package/dist/playground/playground.module.js +1 -1
- package/dist/playground/react/components/Canvas.d.ts +5 -2
- package/dist/playground/react/components/Canvas.js +3 -3
- package/dist/playground/react/hooks/Canvas.hooks.d.ts +1 -1
- package/dist/playground/react/hooks/PlaygroundPage.hooks.d.ts +7 -3
- package/dist/playground/react/hooks/PlaygroundPorts.hooks.js +1 -1
- package/dist/playground/react/index.d.ts +9 -9
- package/dist/playground/react/pages/PlaygroundPage.d.ts +8 -2
- package/dist/playground/react/pages/PlaygroundPage.js +3 -3
- package/dist/playground/react/tabs/CanvasTab.d.ts +2 -2
- package/dist/playground/react/tabs/CanvasTab.js +1 -1
- package/dist/react/OverlayHost.d.ts +4 -1
- package/dist/react/OverlayHost.js +2 -2
- package/dist/react/components/ConfirmDialog/ConfirmDialog.d.ts +12 -2
- package/dist/react/components/ConfirmDialog/ConfirmDialog.hooks.js +1 -2
- package/dist/react/components/ConfirmDialog/ConfirmDialog.js +6 -4
- package/dist/react/components/ConfirmDialog/confirm-dialog-attrs.d.ts +1 -1
- package/dist/react/components/ConfirmDialog/confirm-dialog-attrs.js +1 -1
- package/dist/react/components/InteractiveHtmlEditor/InteractiveHtmlEditor.d.ts +2 -2
- package/dist/react/components/InteractiveHtmlEditor/InteractiveHtmlEditor.js +9 -8
- package/dist/react/components/RowMenu/RowMenu.hooks.js +66 -63
- package/dist/react/components/RowMenu/RowMenu.js +1 -1
- package/dist/react/components/Sidebar.d.ts +11 -4
- package/dist/react/components/Sidebar.js +11 -101
- package/dist/react/components/SidebarIcon.d.ts +4 -0
- package/dist/react/components/SidebarIcon.js +91 -0
- package/dist/react/components/ThemePreviewReloadControl.d.ts +7 -0
- package/dist/react/components/ThemePreviewReloadControl.js +5 -0
- package/dist/react/entities/EntityDetail.d.ts +4 -1
- package/dist/react/entities/EntityDetail.hooks.d.ts +14 -0
- package/dist/react/entities/EntityDetail.hooks.js +10 -0
- package/dist/react/entities/EntityDetail.js +3 -6
- package/dist/react/entities/EntityEdit.d.ts +6 -1
- package/dist/react/entities/EntityEdit.js +23 -6
- package/dist/react/entities/EntityField.d.ts +3 -1
- package/dist/react/entities/EntityField.js +9 -6
- package/dist/react/entities/EntityList.d.ts +4 -1
- package/dist/react/entities/EntityList.hooks.d.ts +33 -0
- package/dist/react/entities/EntityList.hooks.js +28 -0
- package/dist/react/entities/EntityList.js +3 -23
- package/dist/react/entities/FailureNotice.d.ts +29 -0
- package/dist/react/entities/FailureNotice.js +33 -0
- package/dist/react/entities/contribution.d.ts +2 -0
- package/dist/react/entities/contribution.js +2 -2
- package/dist/react/entities/rules.d.ts +6 -1
- package/dist/react/entities/rules.js +7 -4
- package/dist/react/entities/types.d.ts +19 -0
- package/dist/react/entities/use-entity-edit.d.ts +11 -2
- package/dist/react/entities/use-entity-edit.js +18 -12
- package/dist/react/entities/use-entity-read.d.ts +7 -2
- package/dist/react/entities/use-entity-read.js +9 -4
- package/dist/react/hooks/use-browser-telemetry-feed.d.ts +13 -0
- package/dist/react/hooks/use-browser-telemetry-feed.js +14 -0
- package/dist/react/hooks/use-overflow-title.d.ts +17 -0
- package/dist/react/hooks/use-overflow-title.js +29 -0
- package/dist/react/hooks/use-process-restart.d.ts +46 -0
- package/dist/react/hooks/use-process-restart.js +59 -0
- package/dist/react/hooks/use-rail-label-titles.d.ts +18 -0
- package/dist/react/hooks/use-rail-label-titles.js +44 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.js +5 -0
- package/dist/react/kit-media-providers.d.ts +187 -0
- package/dist/react/kit-media-providers.js +2 -0
- package/dist/react/kit.d.ts +478 -0
- package/dist/react/kit.js +75 -0
- package/dist/react/overlays.d.ts +4 -4
- package/dist/react/overlays.js +1 -1
- package/dist/react/shell/AdminShell.d.ts +2 -2
- package/dist/react/shell/AdminShell.js +56 -24
- package/dist/react/shell/index.d.ts +1 -1
- package/dist/react/shell/model.d.ts +9 -1
- package/dist/react/shell/model.js +31 -15
- package/dist/react/shell/shell-hooks.d.ts +34 -0
- package/dist/react/shell/shell-hooks.js +31 -0
- package/dist/react/shell/theme-ports.d.ts +1 -1
- package/dist/react/shell/types.d.ts +97 -3
- package/dist/react/shell/use-admin-theme.d.ts +4 -2
- package/dist/react/shell/use-admin-theme.js +4 -3
- package/dist/react/testing-kit-media-providers.d.ts +3 -0
- package/dist/react/testing-kit-media-providers.js +96 -0
- package/dist/react/testing-kit.d.ts +11 -0
- package/dist/react/testing-kit.js +114 -0
- package/dist/redirects/adapters/memory.js +42 -33
- package/dist/redirects/conformance/redirects-api.conformance.js +1 -1
- package/dist/redirects/controllers/hit-count.controller.d.ts +5 -5
- package/dist/redirects/controllers/hit-count.controller.js +1 -1
- package/dist/redirects/controllers/import-redirects.controller.d.ts +5 -5
- package/dist/redirects/controllers/import-redirects.controller.js +1 -1
- package/dist/redirects/controllers/redirects.controller.d.ts +5 -5
- package/dist/redirects/controllers/redirects.controller.js +1 -1
- package/dist/redirects/index.d.ts +11 -7
- package/dist/redirects/index.js +6 -7
- package/dist/redirects/messages.en.d.ts +1 -0
- package/dist/redirects/messages.en.js +1 -0
- package/dist/redirects/ports.d.ts +2 -2
- package/dist/redirects/ports.js +1 -1
- package/dist/redirects/react/components/CreateRedirectForm.d.ts +17 -0
- package/dist/redirects/react/components/CreateRedirectForm.js +19 -0
- package/dist/redirects/react/components/HitCountCell.js +2 -2
- package/dist/redirects/react/components/ImportRedirectsForm.js +1 -1
- package/dist/redirects/react/hooks/RedirectsPage.hooks.d.ts +1 -1
- package/dist/redirects/react/hooks/RedirectsPorts.hooks.d.ts +5 -0
- package/dist/redirects/react/hooks/RedirectsPorts.hooks.js +11 -1
- package/dist/redirects/react/hooks/use-hit-count-cell.hooks.js +3 -3
- package/dist/redirects/react/hooks/use-import-redirects-form.hooks.js +4 -4
- package/dist/redirects/react/hooks/use-redirects.hooks.d.ts +1 -1
- package/dist/redirects/react/hooks/use-redirects.hooks.js +4 -4
- package/dist/redirects/react/hooks/wired.hooks.d.ts +1 -1
- package/dist/redirects/react/index.d.ts +28 -90
- package/dist/redirects/react/index.js +6 -7
- package/dist/redirects/react/pages/RedirectsPage.d.ts +3 -1
- package/dist/redirects/react/pages/RedirectsPage.js +5 -5
- package/dist/redirects/redirects.module.d.ts +3 -2
- package/dist/redirects/redirects.module.js +1 -1
- package/dist/security/controllers/access-tokens.controller.d.ts +4 -4
- package/dist/security/controllers/access-tokens.controller.js +20 -15
- package/dist/security/controllers/other-credentials.controller.d.ts +4 -4
- package/dist/security/controllers/other-credentials.controller.js +1 -1
- package/dist/security/controllers/root-key.controller.d.ts +4 -4
- package/dist/security/controllers/root-key.controller.js +1 -1
- package/dist/security/ports.d.ts +3 -3
- package/dist/security/ports.js +1 -1
- package/dist/security/react/components/CredentialEditor.d.ts +4 -2
- package/dist/security/react/components/CredentialEditor.js +3 -3
- package/dist/security/react/hooks/AccessTokensTab.hooks.d.ts +5 -5
- package/dist/security/react/hooks/RootKeyTab.hooks.d.ts +1 -1
- package/dist/security/react/hooks/SecurityPage.hooks.d.ts +7 -3
- package/dist/security/react/hooks/SecurityPorts.hooks.js +1 -1
- package/dist/security/react/index.d.ts +22 -22
- package/dist/security/react/pages/SecurityPage.d.ts +8 -2
- package/dist/security/react/pages/SecurityPage.js +3 -3
- package/dist/security/react/tabs/AccessTokensTab.d.ts +5 -2
- package/dist/security/react/tabs/AccessTokensTab.js +3 -3
- package/dist/security/react/tabs/RootKeyTab.d.ts +5 -2
- package/dist/security/react/tabs/RootKeyTab.js +3 -3
- package/dist/security/rules.d.ts +1 -1
- package/dist/security/security.module.d.ts +4 -4
- package/dist/security/security.module.js +1 -1
- package/dist/seo/controllers/entry-picker.controller.d.ts +7 -7
- package/dist/seo/controllers/entry-picker.controller.js +1 -1
- package/dist/seo/controllers/entry-section.controller.d.ts +9 -9
- package/dist/seo/controllers/entry-section.controller.js +1 -1
- package/dist/seo/controllers/media-ref.controller.d.ts +9 -9
- package/dist/seo/controllers/media-ref.controller.js +1 -1
- package/dist/seo/controllers/seo-entry.controller.d.ts +7 -7
- package/dist/seo/controllers/seo-entry.controller.js +1 -1
- package/dist/seo/controllers/seo.controller.d.ts +7 -7
- package/dist/seo/controllers/seo.controller.js +1 -1
- package/dist/seo/controllers/sitemap.controller.d.ts +7 -7
- package/dist/seo/controllers/sitemap.controller.js +2 -2
- package/dist/seo/index.d.ts +4 -2
- package/dist/seo/index.js +2 -2
- package/dist/seo/ports.d.ts +2 -2
- package/dist/seo/ports.js +1 -1
- package/dist/seo/react/components/AnalyzePanel.d.ts +13 -0
- package/dist/seo/react/components/AnalyzePanel.js +21 -0
- package/dist/seo/react/components/EntryPicker.d.ts +19 -0
- package/dist/seo/react/components/EntryPicker.js +25 -0
- package/dist/seo/react/components/MediaPickerBridge.d.ts +4 -1
- package/dist/seo/react/components/MediaPickerBridge.js +2 -2
- package/dist/seo/react/components/MediaRefField.d.ts +5 -2
- package/dist/seo/react/components/MediaRefField.js +5 -5
- package/dist/seo/react/components/SeoEntryFields.d.ts +19 -0
- package/dist/seo/react/components/SeoEntryFields.js +19 -0
- package/dist/seo/react/components/SeoEntryPanel.d.ts +31 -0
- package/dist/seo/react/components/SeoEntryPanel.js +64 -0
- package/dist/seo/react/components/SeoIcons.d.ts +3 -3
- package/dist/seo/react/components/SeoIcons.js +3 -3
- package/dist/seo/react/components/SeoSection.d.ts +27 -0
- package/dist/seo/react/components/SeoSection.js +24 -0
- package/dist/seo/react/components/SitemapModal.d.ts +42 -2
- package/dist/seo/react/components/SitemapModal.js +17 -17
- package/dist/seo/react/hooks/MediaRefField.hooks.js +6 -6
- package/dist/seo/react/hooks/SeoModuleTabs.d.ts +2 -2
- package/dist/seo/react/hooks/SeoModuleTabs.js +3 -1
- package/dist/seo/react/hooks/SeoPage.hooks.d.ts +2 -2
- package/dist/seo/react/hooks/SeoPorts.hooks.d.ts +5 -0
- package/dist/seo/react/hooks/SeoPorts.hooks.js +11 -1
- package/dist/seo/react/hooks/SeoQuery.hooks.d.ts +3 -3
- package/dist/seo/react/hooks/SeoQuery.hooks.js +1 -1
- package/dist/seo/react/hooks/SitemapModal.hooks.js +1 -1
- package/dist/seo/react/hooks/use-entry-picker.hooks.js +1 -1
- package/dist/seo/react/hooks/use-seo-entry-panel.hooks.js +3 -3
- package/dist/seo/react/hooks/use-seo-entry-section.hooks.js +2 -2
- package/dist/seo/react/hooks/use-seo.hooks.js +3 -3
- package/dist/seo/react/hooks/use-share-image-warning.hooks.js +1 -1
- package/dist/seo/react/hooks/use-sitemap-modal.hooks.d.ts +4 -1
- package/dist/seo/react/hooks/use-sitemap-modal.hooks.js +6 -5
- package/dist/seo/react/index.d.ts +28 -21
- package/dist/seo/react/index.js +5 -6
- package/dist/seo/react/pages/SeoPage.d.ts +16 -82
- package/dist/seo/react/pages/SeoPage.js +29 -216
- package/dist/seo/react/tabs/SeoDefaultsSections.d.ts +19 -0
- package/dist/seo/react/tabs/SeoDefaultsSections.js +48 -0
- package/dist/seo/react/tabs/SeoDefaultsTab.d.ts +24 -0
- package/dist/seo/react/tabs/SeoDefaultsTab.js +30 -0
- package/dist/seo/react/tabs/SeoSitemapTab.d.ts +24 -0
- package/dist/seo/react/tabs/SeoSitemapTab.js +38 -0
- package/dist/seo/rules.d.ts +3 -3
- package/dist/seo/rules.js +6 -6
- package/dist/seo/seo.module.d.ts +3 -3
- package/dist/seo/seo.module.js +1 -1
- package/dist/source-control/controllers/source-control.controller.d.ts +3 -3
- package/dist/source-control/controllers/source-control.controller.js +1 -1
- package/dist/source-control/ports.d.ts +1 -1
- package/dist/source-control/ports.js +1 -1
- package/dist/source-control/react/components/SourceControlCredentialFields.d.ts +4 -2
- package/dist/source-control/react/components/SourceControlCredentialFields.js +3 -3
- package/dist/source-control/react/components/SourceControlProviderRow.d.ts +1 -1
- package/dist/source-control/react/components/SourceControlProviderRow.js +2 -2
- package/dist/source-control/react/hooks/ProvidersTab.hooks.d.ts +1 -1
- package/dist/source-control/react/hooks/ProvidersTab.hooks.js +2 -2
- package/dist/source-control/react/hooks/SourceControlPage.hooks.d.ts +7 -3
- package/dist/source-control/react/hooks/SourceControlPorts.hooks.d.ts +5 -0
- package/dist/source-control/react/hooks/SourceControlPorts.hooks.js +11 -1
- package/dist/source-control/react/index.d.ts +25 -50
- package/dist/source-control/react/index.js +9 -6
- package/dist/source-control/react/pages/SourceControlPage.d.ts +8 -2
- package/dist/source-control/react/pages/SourceControlPage.js +3 -3
- package/dist/source-control/react/tabs/ProvidersTab.d.ts +5 -2
- package/dist/source-control/react/tabs/ProvidersTab.js +3 -3
- package/dist/source-control/source-control.module.d.ts +2 -2
- package/dist/source-control/source-control.module.js +1 -1
- package/dist/widgets/adapters/http.js +2 -2
- package/dist/widgets/adapters/memory.js +26 -20
- package/dist/widgets/controllers/instance-editor.controller.d.ts +3 -3
- package/dist/widgets/controllers/instance-editor.controller.js +48 -38
- package/dist/widgets/controllers/library.controller.d.ts +3 -3
- package/dist/widgets/controllers/library.controller.js +1 -2
- package/dist/widgets/controllers/region-editor.controller.d.ts +3 -3
- package/dist/widgets/controllers/region-editor.controller.js +5 -5
- package/dist/widgets/controllers/regions.controller.d.ts +3 -3
- package/dist/widgets/controllers/regions.controller.js +1 -2
- package/dist/widgets/index.d.ts +2 -1
- package/dist/widgets/index.js +1 -1
- package/dist/widgets/messages.en.js +1 -1
- package/dist/widgets/ports.d.ts +3 -3
- package/dist/widgets/ports.js +1 -1
- package/dist/widgets/react/components/RegionPlacementRow.d.ts +14 -0
- package/dist/widgets/react/components/RegionPlacementRow.js +8 -0
- package/dist/widgets/react/components/TrashWidgetDialog.d.ts +11 -0
- package/dist/widgets/react/components/TrashWidgetDialog.js +8 -0
- package/dist/widgets/react/components/WidgetInstanceNotices.js +1 -1
- package/dist/widgets/react/components/WidgetPageHeaders.d.ts +42 -0
- package/dist/widgets/react/components/WidgetPageHeaders.js +54 -0
- package/dist/widgets/react/components/WidgetRegionEditorHeaderActions.js +1 -1
- package/dist/widgets/react/components/WidgetTableColumns.d.ts +12 -0
- package/dist/widgets/react/components/WidgetTableColumns.js +47 -0
- package/dist/widgets/react/hooks/WidgetsPorts.hooks.d.ts +12 -7
- package/dist/widgets/react/hooks/WidgetsPorts.hooks.js +11 -0
- package/dist/widgets/react/hooks/WidgetsQuery.hooks.d.ts +2 -2
- package/dist/widgets/react/hooks/WidgetsQuery.hooks.js +1 -1
- package/dist/widgets/react/hooks/page-views.hooks.d.ts +1 -1
- package/dist/widgets/react/hooks/page-views.hooks.js +1 -1
- package/dist/widgets/react/hooks/use-widget-instance-editor.hooks.d.ts +2 -2
- package/dist/widgets/react/hooks/use-widget-instance-editor.hooks.js +3 -3
- package/dist/widgets/react/hooks/use-widget-region-editor.hooks.d.ts +1 -1
- package/dist/widgets/react/hooks/use-widget-region-editor.hooks.js +2 -2
- package/dist/widgets/react/hooks/use-widget-regions.hooks.d.ts +3 -1
- package/dist/widgets/react/hooks/use-widget-regions.hooks.js +7 -6
- package/dist/widgets/react/hooks/use-widgets-library.hooks.d.ts +4 -2
- package/dist/widgets/react/hooks/use-widgets-library.hooks.js +7 -6
- package/dist/widgets/react/index.d.ts +41 -34
- package/dist/widgets/react/index.js +5 -6
- package/dist/widgets/react/pages/WidgetInstanceEditor.d.ts +5 -1
- package/dist/widgets/react/pages/WidgetInstanceEditor.js +7 -9
- package/dist/widgets/react/pages/WidgetRegionEditor.d.ts +5 -1
- package/dist/widgets/react/pages/WidgetRegionEditor.js +8 -10
- package/dist/widgets/react/pages/WidgetRegions.d.ts +5 -1
- package/dist/widgets/react/pages/WidgetRegions.js +6 -8
- package/dist/widgets/react/pages/WidgetsLibrary.d.ts +5 -1
- package/dist/widgets/react/pages/WidgetsLibrary.js +8 -45
- package/dist/widgets/rules.d.ts +5 -3
- package/dist/widgets/rules.js +4 -9
- package/dist/widgets/widgets.module.d.ts +3 -3
- package/dist/widgets/widgets.module.js +1 -1
- package/package.json +25 -59
- package/dist/consent/react/ConsentFields.d.ts +0 -39
- package/dist/consent/react/ConsentFields.js +0 -87
- package/dist/consent/react/ConsentPreviewFrame.d.ts +0 -14
- package/dist/consent/react/ConsentPreviewFrame.js +0 -14
- package/dist/consent/react/ConsentSettingsPanel.d.ts +0 -54
- package/dist/consent/react/ConsentSettingsPanel.js +0 -13
- package/dist/consent/react/index.d.ts +0 -8
- package/dist/consent/react/index.js +0 -4
- package/dist/consent/react/settings-panel.hooks.d.ts +0 -49
- package/dist/consent/react/settings-panel.hooks.js +0 -57
- package/dist/core/module/controller-store.d.ts +0 -22
- package/dist/core/module/controller-store.js +0 -32
- package/dist/core/module/define-admin-module.d.ts +0 -4
- package/dist/core/module/define-admin-module.js +0 -5
- package/dist/core/module/token.d.ts +0 -19
- package/dist/core/module/token.js +0 -4
- package/dist/core/module/types.d.ts +0 -79
- package/dist/core/module/types.js +0 -2
- package/dist/core/permissions/rules.d.ts +0 -35
- package/dist/core/permissions/rules.js +0 -34
- package/dist/core/transport/errors.d.ts +0 -62
- package/dist/core/transport/errors.js +0 -63
- package/dist/core/transport/query-suffix.d.ts +0 -3
- package/dist/core/transport/query-suffix.js +0 -5
- package/dist/media/styles.d.ts +0 -4
- package/dist/media/styles.js +0 -5
- package/dist/react/bind-react.d.ts +0 -2
- package/dist/react/bind-react.js +0 -3
- package/dist/react/use-controller.d.ts +0 -2
- package/dist/react/use-controller.js +0 -3
package/dist/comments/rules.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { describeApiError } from '
|
|
2
|
-
import { hasPermission } from '../core/permissions/rules.js';
|
|
1
|
+
import { describeApiError, hasPermission } from '@jini-ai/core/admin-runtime';
|
|
3
2
|
import { englishComments } from './messages.en.js';
|
|
4
3
|
/** Host transports retain their error class; status/body are the shared wire contract. */
|
|
5
4
|
function isCommentsConflict({ e }) {
|
|
@@ -166,7 +165,7 @@ export function buildSettingsPatch(required, _optional = {}) {
|
|
|
166
165
|
};
|
|
167
166
|
}
|
|
168
167
|
/** REQ-09: client-side validates `spamAutoRejectScore` before the network call — mirrors the
|
|
169
|
-
* backend's own `validateCommentsSettingsPatch` bound (`src/comments/settings.ts`). Returns the
|
|
168
|
+
* backend's own `validateCommentsSettingsPatch` bound (the host app's `src/features/comments/settings.ts`). Returns the
|
|
170
169
|
* error message to show, or `null` when the patch is valid. Split out of `save`'s body (originally
|
|
171
170
|
* an inline `if`) because it is the one piece of that flow that computes a value rather than
|
|
172
171
|
* performing an effect. */
|
|
@@ -4,5 +4,5 @@ export interface CredentialManagementPort {
|
|
|
4
4
|
kind: 'source-control';
|
|
5
5
|
}, optional?: Record<string, never>): void;
|
|
6
6
|
}
|
|
7
|
-
export declare const credentialManagementToken: import("
|
|
7
|
+
export declare const credentialManagementToken: import("@jini-ai/core/contracts/admin-module").AdminPortToken<CredentialManagementPort, "admin.credentials.management">;
|
|
8
8
|
//# sourceMappingURL=credential-management.d.ts.map
|
|
@@ -13,5 +13,5 @@ export interface MediaPickerPort {
|
|
|
13
13
|
signal?: AbortSignal;
|
|
14
14
|
}): Promise<MediaAsset | null>;
|
|
15
15
|
}
|
|
16
|
-
export declare const mediaPickerToken: import("
|
|
16
|
+
export declare const mediaPickerToken: import("@jini-ai/core/contracts/admin-module").AdminPortToken<MediaPickerPort, "admin.media.picker">;
|
|
17
17
|
//# sourceMappingURL=media-picker.d.ts.map
|
|
@@ -14,5 +14,5 @@ export interface PlaygroundRenderTargetPort {
|
|
|
14
14
|
release(required?: Record<string, never>, optional?: Record<string, never>): void;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
export declare const playgroundRenderTargetToken: import("
|
|
17
|
+
export declare const playgroundRenderTargetToken: import("@jini-ai/core/contracts/admin-module").AdminPortToken<PlaygroundRenderTargetPort, "admin.playground.render-target">;
|
|
18
18
|
//# sourceMappingURL=playground-render-target.d.ts.map
|
|
@@ -71,7 +71,10 @@ export interface AdminEntityErasureOptions {
|
|
|
71
71
|
* @complexity Time O(1) for every kind but `json`; see {@link describeNonJsonValue} for that one.
|
|
72
72
|
* @overallScore 100
|
|
73
73
|
*/
|
|
74
|
-
export declare function describeAdminEntityFieldMismatch(field
|
|
74
|
+
export declare function describeAdminEntityFieldMismatch({ field, value }: {
|
|
75
|
+
field: AdminEntityField;
|
|
76
|
+
value: unknown;
|
|
77
|
+
}, _optional?: Record<string, never>): string | null;
|
|
75
78
|
/**
|
|
76
79
|
* Erases a port's descriptor generic so a screen can hold ports for different entities in one
|
|
77
80
|
* collection.
|
|
@@ -134,5 +137,8 @@ export declare function listErasedEntityPorts(registry: Readonly<Record<string,
|
|
|
134
137
|
* @complexity Time O(1) for the lookup, O(1) for the erasure.
|
|
135
138
|
* @overallScore 100
|
|
136
139
|
*/
|
|
137
|
-
export declare function getErasedEntityPort(registry
|
|
140
|
+
export declare function getErasedEntityPort({ registry, name }: {
|
|
141
|
+
registry: Readonly<Record<string, AdminEntityPort<AdminEntityDescriptor>>>;
|
|
142
|
+
name: string;
|
|
143
|
+
}, options?: AdminEntityErasureOptions): AdminErasedEntityPort | null;
|
|
138
144
|
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -124,7 +124,7 @@ const FIELD_MISMATCH_BY_KIND = {
|
|
|
124
124
|
* @complexity Time O(1) for every kind but `json`; see {@link describeNonJsonValue} for that one.
|
|
125
125
|
* @overallScore 100
|
|
126
126
|
*/
|
|
127
|
-
export function describeAdminEntityFieldMismatch(field, value) {
|
|
127
|
+
export function describeAdminEntityFieldMismatch({ field, value }, _optional = {}) {
|
|
128
128
|
return FIELD_MISMATCH_BY_KIND[field.kind](value);
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
@@ -176,7 +176,7 @@ function describeFieldProblem({ field, value }, _optional = {}) {
|
|
|
176
176
|
? { problem: 'missing-required', detail: 'declared `required: true` but absent from the row' }
|
|
177
177
|
: null;
|
|
178
178
|
}
|
|
179
|
-
const mismatch = describeAdminEntityFieldMismatch(field, value);
|
|
179
|
+
const mismatch = describeAdminEntityFieldMismatch({ field, value });
|
|
180
180
|
return mismatch === null
|
|
181
181
|
? null
|
|
182
182
|
: { problem: 'wrong-type', detail: `declared \`${field.kind}\`; ${mismatch}` };
|
|
@@ -373,7 +373,7 @@ export function listErasedEntityPorts(registry, options = {}) {
|
|
|
373
373
|
* @complexity Time O(1) for the lookup, O(1) for the erasure.
|
|
374
374
|
* @overallScore 100
|
|
375
375
|
*/
|
|
376
|
-
export function getErasedEntityPort(registry, name, options = {}) {
|
|
376
|
+
export function getErasedEntityPort({ registry, name }, options = {}) {
|
|
377
377
|
if (!Object.hasOwn(registry, name))
|
|
378
378
|
return null;
|
|
379
379
|
const port = registry[name];
|
package/dist/core/index.d.ts
CHANGED
|
@@ -11,8 +11,7 @@ export { buildAgentPageMap, buildAgentScreens, buildNav, panelHref, resolveAgent
|
|
|
11
11
|
export type { AdminNavGroup, AdminNavItem, AdminRegistryContext } from './manifest/rules.js';
|
|
12
12
|
export type { AdminRoute } from './routing/types.js';
|
|
13
13
|
export { DEFAULT_ADMIN_BASE, adminHref, currentRoutePath, matchRoute, stripTrailingSlash, } from './routing/rules.js';
|
|
14
|
-
export {
|
|
15
|
-
export { AdminApiError, createAdminClient, createHttpTransport, describeApiError, } from './transport/index.js';
|
|
14
|
+
export { createAdminClient, createHttpTransport } from './transport/index.js';
|
|
16
15
|
export type { AdminClient, AdminRouteGroupFactory, AdminTransport, AdminFetch, HttpTransportOptions, } from './transport/index.js';
|
|
17
16
|
export type { GatedConfirmResult, GatedOperation, GatedPlanResult } from './gated/types.js';
|
|
18
17
|
export type { DataTableSortDirection, DataTableSortState } from './data-table/types.js';
|
package/dist/core/index.js
CHANGED
|
@@ -8,10 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { buildAgentPageMap, buildAgentScreens, buildNav, panelHref, resolveAgentPageId, resolvePanels, } from './manifest/rules.js';
|
|
10
10
|
export { DEFAULT_ADMIN_BASE, adminHref, currentRoutePath, matchRoute, stripTrailingSlash, } from './routing/rules.js';
|
|
11
|
-
// Permissions — affordance only, never an authorization boundary.
|
|
12
|
-
export { hasPermission } from './permissions/rules.js';
|
|
13
11
|
// Transport — the seam every route group is built on.
|
|
14
|
-
export {
|
|
12
|
+
export { createAdminClient, createHttpTransport } from './transport/index.js';
|
|
15
13
|
export { createAdminEntityRegistry, describeAdminEntityFieldMismatch, eraseEntityPort, getErasedEntityPort, listErasedEntityPorts, } from './entities/rules.js';
|
|
16
14
|
export { loadNamespaceValues, saveChangedEntries, readString, readBoolean, readNumber } from './ledger-slice.js';
|
|
17
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file The shared read/diff-write half of every settings-dialog tab adapter.
|
|
3
3
|
*
|
|
4
|
-
* Each tab maps a
|
|
4
|
+
* Each tab maps a ledger namespace onto one `@jini-ai/ui` config
|
|
5
5
|
* object. Three things are identical across all of them and live here:
|
|
6
6
|
*
|
|
7
7
|
* 1. **Cold-start tolerance.** A namespace with no registered definitions
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* on a database predating the tab). That is not an error worth surfacing —
|
|
10
10
|
* it means "use defaults". Every OTHER failure still propagates.
|
|
11
11
|
* 2. **Field-level diffing.** The ledger is append-only per key
|
|
12
|
-
*
|
|
12
|
+
* so writing all N keys on every save would burn N revisions
|
|
13
13
|
* per keystroke. Only changed keys are written.
|
|
14
14
|
* 3. **Typed reads.** Ledger values arrive as `unknown`; a missing or
|
|
15
15
|
* wrong-typed value falls back field by field rather than throwing, so a
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* What deliberately does NOT live here: anything about a specific tab's
|
|
19
19
|
* shape, and anything about credentials. `execution-settings.ts` keeps its own
|
|
20
|
-
* localStorage half because the
|
|
20
|
+
* localStorage half because the secret gate is an execution-tab
|
|
21
21
|
* problem, not a general one — see that file's header.
|
|
22
22
|
*/
|
|
23
23
|
import type { AdminSettingsPort, SettingScope } from "./ports/settings.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file The shared read/diff-write half of every settings-dialog tab adapter.
|
|
3
3
|
*
|
|
4
|
-
* Each tab maps a
|
|
4
|
+
* Each tab maps a ledger namespace onto one `@jini-ai/ui` config
|
|
5
5
|
* object. Three things are identical across all of them and live here:
|
|
6
6
|
*
|
|
7
7
|
* 1. **Cold-start tolerance.** A namespace with no registered definitions
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* on a database predating the tab). That is not an error worth surfacing —
|
|
10
10
|
* it means "use defaults". Every OTHER failure still propagates.
|
|
11
11
|
* 2. **Field-level diffing.** The ledger is append-only per key
|
|
12
|
-
*
|
|
12
|
+
* so writing all N keys on every save would burn N revisions
|
|
13
13
|
* per keystroke. Only changed keys are written.
|
|
14
14
|
* 3. **Typed reads.** Ledger values arrive as `unknown`; a missing or
|
|
15
15
|
* wrong-typed value falls back field by field rather than throwing, so a
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* What deliberately does NOT live here: anything about a specific tab's
|
|
19
19
|
* shape, and anything about credentials. `execution-settings.ts` keeps its own
|
|
20
|
-
* localStorage half because the
|
|
20
|
+
* localStorage half because the secret gate is an execution-tab
|
|
21
21
|
* problem, not a general one — see that file's header.
|
|
22
22
|
*/
|
|
23
23
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* reach. No DOM, no React, no I/O — every function here is a total function of its arguments,
|
|
4
4
|
* which is what makes the shell's behaviour testable without rendering anything.
|
|
5
5
|
*/
|
|
6
|
-
import { hasPermission } from '
|
|
6
|
+
import { hasPermission } from '@jini-ai/core/admin-runtime';
|
|
7
7
|
/**
|
|
8
8
|
* The panels that actually mount, in registration order.
|
|
9
9
|
*
|
|
@@ -159,5 +159,16 @@ export interface AdminPanel<TRender = unknown> {
|
|
|
159
159
|
* passing check here stand in for server-side authorization.
|
|
160
160
|
*/
|
|
161
161
|
readonly permissions?: readonly string[];
|
|
162
|
+
/**
|
|
163
|
+
* Permission strings of which the operator must hold **at least one** (or the owner wildcard) for
|
|
164
|
+
* this panel to be usable. Use it where the panel's landing read admits several grants and none
|
|
165
|
+
* is implied by the others. When `permissions` is also declared, both must pass.
|
|
166
|
+
*
|
|
167
|
+
* Unlike `permissions`, this is not applied by `resolvePanels`: it is read by
|
|
168
|
+
* `isPanelAccessible` / `withoutInaccessiblePanels` (`@jini-ai/core/admin-runtime`), which the shell
|
|
169
|
+
* uses for nav visibility and the `noAccess` screen. Same contract: **affordance only, never an
|
|
170
|
+
* authorization boundary**; the server re-checks every operation.
|
|
171
|
+
*/
|
|
172
|
+
readonly anyOfPermissions?: readonly string[];
|
|
162
173
|
}
|
|
163
174
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type { AdminInstance, AdminModule, TabId } from '
|
|
2
|
-
import type { PortMap, PortValues } from './token.js';
|
|
3
|
-
export declare class AdminConfigError extends Error {
|
|
4
|
-
readonly issues: readonly string[];
|
|
5
|
-
constructor({ issues }: {
|
|
6
|
-
issues: readonly string[];
|
|
7
|
-
}, _optional?: Record<string, never>);
|
|
8
|
-
}
|
|
1
|
+
import type { AdminInstance, AdminModule, TabId, PortMap, PortValues } from '@jini-ai/core/contracts/admin-module';
|
|
9
2
|
type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
|
|
10
3
|
type TabMaps<M extends AdminModule> = {
|
|
11
4
|
[P in keyof M['pages']]: {
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export class AdminConfigError extends Error {
|
|
3
|
-
issues;
|
|
4
|
-
constructor({ issues }, _optional = {}) {
|
|
5
|
-
super(`Invalid admin configuration:\n${issues.map(bulletLine).join('\n')}`);
|
|
6
|
-
this.name = 'AdminConfigError';
|
|
7
|
-
this.issues = Object.freeze([...issues]);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
import { AdminConfigError } from '@jini-ai/core/admin-runtime';
|
|
10
2
|
function isValidToken(tok) {
|
|
11
3
|
return (Boolean(tok.id) &&
|
|
12
4
|
tok.cardinality === 'one' &&
|
|
@@ -245,6 +237,9 @@ export function createAdmin({ modules, ports, }, options = {}) {
|
|
|
245
237
|
registry,
|
|
246
238
|
context: { values, omitted, grants },
|
|
247
239
|
});
|
|
240
|
+
return createAdminInstance({ modules, values, description }, disposables);
|
|
241
|
+
}
|
|
242
|
+
function createAdminInstance({ modules, values, description }, disposables) {
|
|
248
243
|
let disposed = false;
|
|
249
244
|
return {
|
|
250
245
|
describe: () => description,
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { AdminPortToken, PortMap, PortValues } from './token.js';
|
|
3
|
-
export { defineAdminModule } from './define-admin-module.js';
|
|
4
|
-
export { createAdmin, AdminConfigError } from './create-admin.js';
|
|
1
|
+
export { createAdmin } from './create-admin.js';
|
|
5
2
|
export type { AdminHostPorts, AdminOptions } from './create-admin.js';
|
|
6
|
-
export type { AdminModule, AdminPage, AdminTab, AdminInstance, AdminDescription, ScopedPorts, TabId, } from './types.js';
|
|
7
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Expect a rejection from `login` for invalid credentials, and treat any other 4xx as an opaque
|
|
15
15
|
* authentication failure — the exact `code` vocabulary belongs to the host. See
|
|
16
|
-
*
|
|
16
|
+
* `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`'s header for why a shared code->message table is a regression.
|
|
17
17
|
*/
|
|
18
18
|
/** The minimal principal shape a session carries — see the file header for why this is not
|
|
19
19
|
* `AdminIdentityUser`. */
|
|
@@ -36,7 +36,7 @@ export interface AdminAuthPort {
|
|
|
36
36
|
/**
|
|
37
37
|
* The current session's principal, plus (when the host computes it) the permission strings
|
|
38
38
|
* effective for that principal right now. `effectivePermissions` is an affordance list for
|
|
39
|
-
* driving UI visibility — see
|
|
39
|
+
* driving UI visibility — see `@jini-ai/core/admin-runtime`'s `panel-access.ts`'s `hasPermission`, which is intentionally
|
|
40
40
|
* not an authorization boundary. A host that has not computed this yet may omit the field
|
|
41
41
|
* entirely rather than send an empty array; callers should not treat "absent" and "empty" as the
|
|
42
42
|
* same thing.
|
package/dist/core/ports/auth.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Expect a rejection from `login` for invalid credentials, and treat any other 4xx as an opaque
|
|
15
15
|
* authentication failure — the exact `code` vocabulary belongs to the host. See
|
|
16
|
-
*
|
|
16
|
+
* `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`'s header for why a shared code->message table is a regression.
|
|
17
17
|
*/
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file `AdminCommentRepo` — the three comment-store operations the in-memory admin comments adapter calls.
|
|
3
|
+
*
|
|
4
|
+
* Restated structurally from the comments domain's repository (the queue returns whole comments, as the admin queue shows them); the host
|
|
5
|
+
* supplies a factory that seeds a store from initial comments.
|
|
6
|
+
*/
|
|
7
|
+
import type { AdminComment } from './comments.js';
|
|
8
|
+
type CommentStatus = 'pending' | 'approved' | 'spam' | 'trash';
|
|
9
|
+
type ModerationAction = 'approve' | 'mark_spam' | 'unspam' | 'trash' | 'restore';
|
|
10
|
+
export interface AdminCommentRepo {
|
|
11
|
+
listModerationQueue(required: {
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
status: CommentStatus;
|
|
14
|
+
limit: number;
|
|
15
|
+
cursor?: string | null;
|
|
16
|
+
}, optional?: Record<string, never>): Promise<{
|
|
17
|
+
items: AdminComment[];
|
|
18
|
+
nextCursor: string | null;
|
|
19
|
+
}>;
|
|
20
|
+
applyModeration(required: {
|
|
21
|
+
workspaceId: string;
|
|
22
|
+
id: string;
|
|
23
|
+
expectedVersion: number;
|
|
24
|
+
action: ModerationAction;
|
|
25
|
+
toStatus: CommentStatus;
|
|
26
|
+
actorPrincipalId: string;
|
|
27
|
+
note: string | null;
|
|
28
|
+
at: string;
|
|
29
|
+
}, optional?: Record<string, never>): Promise<{
|
|
30
|
+
ok: true;
|
|
31
|
+
} | {
|
|
32
|
+
ok: false;
|
|
33
|
+
reason: 'not-found' | 'conflict';
|
|
34
|
+
currentVersion?: number | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
purge(required: {
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
id: string;
|
|
39
|
+
actorPrincipalId: string;
|
|
40
|
+
note: string | null;
|
|
41
|
+
at: string;
|
|
42
|
+
}, optional?: Record<string, never>): Promise<{
|
|
43
|
+
ok: true;
|
|
44
|
+
} | {
|
|
45
|
+
ok: false;
|
|
46
|
+
reason: 'not-found';
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
49
|
+
export type AdminCommentRepoFactory = (required: {
|
|
50
|
+
initialComments: readonly unknown[];
|
|
51
|
+
}, optional?: Record<string, never>) => AdminCommentRepo;
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=comment-repo.d.ts.map
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* comment in the response body to return. A panel must re-fetch (or optimistically patch its own
|
|
9
9
|
* local copy of) `listCommentsQueue` to see the new state; do not assume this port hands back the
|
|
10
10
|
* post-moderation row. On a version conflict, expect a conflict-class rejection whose error body
|
|
11
|
-
* carries `currentVersion` (see
|
|
11
|
+
* carries `currentVersion` (see `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`'s "`body` is kept raw" decision) so a
|
|
12
12
|
* panel can refresh and retry without a second round-trip just to learn the current value.
|
|
13
13
|
*
|
|
14
14
|
* ## `purgeComment` has no `expectedVersion` and a different permission than moderation actions
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* comment in the response body to return. A panel must re-fetch (or optimistically patch its own
|
|
9
9
|
* local copy of) `listCommentsQueue` to see the new state; do not assume this port hands back the
|
|
10
10
|
* post-moderation row. On a version conflict, expect a conflict-class rejection whose error body
|
|
11
|
-
* carries `currentVersion` (see
|
|
11
|
+
* carries `currentVersion` (see `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`'s "`body` is kept raw" decision) so a
|
|
12
12
|
* panel can refresh and retry without a second round-trip just to learn the current value.
|
|
13
13
|
*
|
|
14
14
|
* ## `purgeComment` has no `expectedVersion` and a different permission than moderation actions
|
|
@@ -26,7 +26,7 @@ import type { GatedConfirmResult, GatedOperation, GatedPlanResult } from '../gat
|
|
|
26
26
|
export interface AdminLedgerRow {
|
|
27
27
|
readonly id: string;
|
|
28
28
|
/** Host-defined event kind (e.g. `"migration"`, `"restore"`, `"restore-point-created"`) — not
|
|
29
|
-
* enumerated here; see
|
|
29
|
+
* enumerated here; see `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`'s header for the same reasoning applied to error
|
|
30
30
|
* codes instead of ledger kinds. */
|
|
31
31
|
readonly kind: string;
|
|
32
32
|
readonly createdAt: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file `EmbedPolicyPort` — which attributes an embedded HTML snippet may carry, injected by the host.
|
|
3
|
+
*
|
|
4
|
+
* The allow-list and parser belong to the content domain that renders embeds; admin only validates what an
|
|
5
|
+
* operator types against it.
|
|
6
|
+
*/
|
|
7
|
+
import type { ParsedMediaHtmlAttributes } from '../../media/html-attributes.js';
|
|
8
|
+
export interface EmbedPolicyPort {
|
|
9
|
+
readonly allowedAttributeNames: readonly string[];
|
|
10
|
+
isAllowedAttributeName(required: {
|
|
11
|
+
name: string;
|
|
12
|
+
}, optional?: Record<string, never>): boolean;
|
|
13
|
+
parseAttributes(required: {
|
|
14
|
+
text: string;
|
|
15
|
+
}, optional?: {
|
|
16
|
+
styleContext?: 'stylesheet';
|
|
17
|
+
}): ParsedMediaHtmlAttributes;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=embed-policy.d.ts.map
|
|
@@ -78,6 +78,14 @@ interface AdminEntityFieldBase {
|
|
|
78
78
|
readonly label?: string;
|
|
79
79
|
/** When true, the row type makes this field non-optional — see {@link AdminEntityRow}. */
|
|
80
80
|
readonly required?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The value exists only once a row is saved (a version or concurrency token, a generated slug).
|
|
83
|
+
* A generic edit screen leaves it out of the create form and never counts it as a missing required
|
|
84
|
+
* field there; on a saved row it shows the value read-only and sends it back unchanged in the
|
|
85
|
+
* update, so an adapter that needs the token (an optimistic-concurrency `version`) receives it.
|
|
86
|
+
* The row type is unchanged: `required` still decides whether the key is optional on a row.
|
|
87
|
+
*/
|
|
88
|
+
readonly persistedOnly?: true;
|
|
81
89
|
/**
|
|
82
90
|
* Whether a backend can filter or order on this field without a full scan.
|
|
83
91
|
*
|
|
@@ -218,6 +226,12 @@ export interface AdminEntityListQuery {
|
|
|
218
226
|
*/
|
|
219
227
|
readonly cursor?: string;
|
|
220
228
|
readonly filter?: readonly AdminEntityFilter[];
|
|
229
|
+
/**
|
|
230
|
+
* Free text to match, as typed by a person. What it is matched against (titles, bodies, every
|
|
231
|
+
* `queryable` text field) is the adapter's decision and an adapter that cannot search ignores it.
|
|
232
|
+
* An absent or empty search means "no search": a screen never sends `search: ''`.
|
|
233
|
+
*/
|
|
234
|
+
readonly search?: string;
|
|
221
235
|
/**
|
|
222
236
|
* Ordering, applied by the adapter over the whole collection *before* the page is cut.
|
|
223
237
|
*
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file `FormsCatalogPort` — the forms domain's field vocabulary and safety rules, injected by the host.
|
|
3
|
+
*
|
|
4
|
+
* Admin edits form definitions but does not own what a field kind is, which file types are safe or which
|
|
5
|
+
* patterns a browser may run. The host binds the forms domain's tables to this shape; a shape change on
|
|
6
|
+
* either side fails typecheck at the binding. Field kinds are open strings, as in `AdminFormsPort`.
|
|
7
|
+
*/
|
|
8
|
+
export interface FormFieldKindInfo {
|
|
9
|
+
readonly control: 'input' | 'textarea' | 'select' | 'group';
|
|
10
|
+
readonly htmlType: string;
|
|
11
|
+
readonly multiple?: boolean;
|
|
12
|
+
readonly choices?: boolean;
|
|
13
|
+
readonly textual?: boolean;
|
|
14
|
+
readonly attributes?: Readonly<Record<string, string>>;
|
|
15
|
+
}
|
|
16
|
+
export interface FormsCatalogPort {
|
|
17
|
+
readonly fieldKinds: Readonly<Record<string, FormFieldKindInfo>>;
|
|
18
|
+
readonly maxFileBytes: number;
|
|
19
|
+
readonly safeFileTypes: Readonly<Record<string, readonly string[]>>;
|
|
20
|
+
isBrowserSafePattern(required: {
|
|
21
|
+
pattern: string;
|
|
22
|
+
}, optional?: Record<string, never>): boolean;
|
|
23
|
+
escapeHtml(required: {
|
|
24
|
+
value: string;
|
|
25
|
+
}, optional?: Record<string, never>): string;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=forms-catalog.d.ts.map
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
* (`@jini-ai/cms/forms` `FIELD_TYPE_REGISTRY`) now owns the full vocabulary, and a host offering a
|
|
59
59
|
* richer form builder needs room to add its own without this contract standing in the way.
|
|
60
60
|
*/
|
|
61
|
-
import type { FormAnswer } from "@jini-ai/
|
|
61
|
+
import type { FormAnswer } from "@jini-ai/core/contracts/forms";
|
|
62
62
|
/** A form field's input kind — open, see file header. */
|
|
63
63
|
export type FormFieldType = "text" | "email" | "textarea" | "checkbox" | (string & {});
|
|
64
64
|
/** Lifecycle of a form definition — open, see file header. There is no "deleted" state; see the
|
|
@@ -114,7 +114,7 @@ export interface AdminFormDefinition {
|
|
|
114
114
|
readonly provider?: AdminFormProviderSelection | undefined;
|
|
115
115
|
}
|
|
116
116
|
export interface AdminFormSubmission {
|
|
117
|
-
readonly evidence?: import("@jini-ai/
|
|
117
|
+
readonly evidence?: import("@jini-ai/core/contracts/forms").FormSubmissionEvidence;
|
|
118
118
|
readonly schemaHash?: string;
|
|
119
119
|
/** Optional host notification summary, with no recipient/provider details. */
|
|
120
120
|
readonly notificationDelivery?: {
|
|
@@ -165,7 +165,7 @@ export interface AdminFormUpdatePatch {
|
|
|
165
165
|
}
|
|
166
166
|
export interface AdminFormsPort {
|
|
167
167
|
/** Current public collection settings. Older hosts may omit discovery; editors preserve their stored selection. */
|
|
168
|
-
listFormProviders?(requiredArgs: Record<string, never>, optionalArgs?: Record<string, never>): Promise<readonly import("@jini-ai/
|
|
168
|
+
listFormProviders?(requiredArgs: Record<string, never>, optionalArgs?: Record<string, never>): Promise<readonly import("@jini-ai/core/contracts/forms").FormProviderDescription[]>;
|
|
169
169
|
listFormDefinitions(requiredArgs: Record<string, never>): Promise<readonly AdminFormDefinition[]>;
|
|
170
170
|
getFormDefinition(requiredArgs: {
|
|
171
171
|
id: string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* cannot satisfy.
|
|
15
15
|
*
|
|
16
16
|
* **An error-code enum.** Codes like `GRANT_EXCEEDS_ISSUER` and `OWNER_REQUIRED` are real and
|
|
17
|
-
* load-bearing, but their operator-facing *wording* is host-specific — see `
|
|
17
|
+
* load-bearing, but their operator-facing *wording* is host-specific — see `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`
|
|
18
18
|
* on why a shared code->message table is a regression. Panels read `AdminApiError.code` and map
|
|
19
19
|
* it themselves.
|
|
20
20
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* cannot satisfy.
|
|
15
15
|
*
|
|
16
16
|
* **An error-code enum.** Codes like `GRANT_EXCEEDS_ISSUER` and `OWNER_REQUIRED` are real and
|
|
17
|
-
* load-bearing, but their operator-facing *wording* is host-specific — see `
|
|
17
|
+
* load-bearing, but their operator-facing *wording* is host-specific — see `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`
|
|
18
18
|
* on why a shared code->message table is a regression. Panels read `AdminApiError.code` and map
|
|
19
19
|
* it themselves.
|
|
20
20
|
*
|
|
@@ -18,6 +18,9 @@ export type { AdminSeoAnalysis, AdminSeoEntryChoice, AdminSeoIssue, AdminSeoMeta
|
|
|
18
18
|
export type { AdminRedirect, AdminRedirectCreateInput, AdminRedirectHitStats, AdminRedirectImportFailure, AdminRedirectImportResult, AdminRedirectListFilter, AdminRedirectsPort, AdminRedirectUpdatePatch, RedirectMatchType, RedirectSource, RedirectStatus, RedirectStatusCode, } from './redirects.js';
|
|
19
19
|
export type { AdminAssignMenuLocationResult, AdminDeleteMenuResult, AdminMenu, AdminMenuBinding, AdminMenuCreateInput, AdminMenuCustomTarget, AdminMenuEntryTarget, AdminMenuItem, AdminMenuItemAttrs, AdminMenuRouteTarget, AdminMenusPort, AdminMenuTarget, AdminMenuTermTarget, AdminMenuUpdateTreeInput, AdminMenuUrlTarget, MenuStatus, NavTargetKind, } from './menus.js';
|
|
20
20
|
export type { AdminFormCreateInput, AdminFormDefinition, AdminFormField, AdminFormNotifyConfig, AdminFormsPort, AdminFormSubmission, AdminFormSubmissionPage, AdminFormUpdatePatch, FormDefinitionStatus, FormFieldType, } from './forms.js';
|
|
21
|
+
export type { FormFieldKindInfo, FormsCatalogPort } from './forms-catalog.js';
|
|
22
|
+
export type { EmbedPolicyPort } from './embed-policy.js';
|
|
23
|
+
export type { AdminCommentRepo, AdminCommentRepoFactory } from './comment-repo.js';
|
|
21
24
|
export type { AdminEntityDescriptor, AdminEntityField, AdminEntityFieldKind, AdminEntityFilter, AdminEntityJsonField, AdminEntityListQuery, AdminEntityPage, AdminEntityPort, AdminEntityRegistry, AdminEntityRelationField, AdminEntityRow, AdminEntityRowData, AdminEntityScalarField, AdminErasedEntityPort, } from './entities.js';
|
|
22
25
|
export type { AdminShellContext, AdminShellNavigationPort, AdminShellSession, AdminShellSessionPort } from './shell.js';
|
|
23
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -70,7 +70,7 @@ export interface AdminMediaPort {
|
|
|
70
70
|
}): Promise<AdminMedia>;
|
|
71
71
|
/**
|
|
72
72
|
* Hard purge. Irreversible — see the file header. Expect a conflict-class rejection (with a
|
|
73
|
-
* referencing-entities list on the error body, per
|
|
73
|
+
* referencing-entities list on the error body, per `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`'s "`body` is kept
|
|
74
74
|
* raw" decision) when the asset is still trashed-but-referenced elsewhere, and a not-found-class
|
|
75
75
|
* rejection when it has not been trashed first.
|
|
76
76
|
*/
|
|
@@ -33,7 +33,7 @@ export interface AdminPlugin {
|
|
|
33
33
|
readonly source: "built-in" | "site";
|
|
34
34
|
/** Trust tier driving how much a panel should warn before enabling this extension — lower
|
|
35
35
|
* numbers are more trusted. Not ordered numerically on the wire on purpose (host-defined
|
|
36
|
-
* labels), see
|
|
36
|
+
* labels), see `@jini-ai/core/admin-runtime`'s `admin-api-error.ts`'s header for the same "vocabulary belongs to the host"
|
|
37
37
|
* reasoning applied to error codes. */
|
|
38
38
|
readonly tier: "tier-1" | "tier-2" | "tier-3";
|
|
39
39
|
/** Whether the extension currently passes the host's own structural/compatibility checks —
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode, LazyExoticComponent, Context as ReactContext } from 'react';
|
|
2
|
-
import type { AdminInstance, AdminModule, ScopedPorts } from '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly permissions?: readonly string[];
|
|
6
|
-
}
|
|
7
|
-
export interface ModulePageProps {
|
|
8
|
-
readonly tabs: Readonly<Record<string, LazyExoticComponent<ComponentType<TabViewProps>>>>;
|
|
9
|
-
readonly description: ReturnType<AdminInstance['describe']>['pages'][number];
|
|
10
|
-
readonly requestedTab?: string;
|
|
11
|
-
readonly onTabChange?: (required: {
|
|
12
|
-
tab: string;
|
|
13
|
-
}, optional?: Record<string, never>) => void;
|
|
14
|
-
}
|
|
2
|
+
import type { AdminInstance, AdminModule, ModulePageProps, ScopedPorts, TabViewProps } from '@jini-ai/core/contracts/admin-module';
|
|
3
|
+
/** The shell renders every module tab as a lazy component. */
|
|
4
|
+
export type LazyTabView = LazyExoticComponent<ComponentType<TabViewProps>>;
|
|
15
5
|
type Loader<P> = () => Promise<{
|
|
16
6
|
default: ComponentType<P>;
|
|
17
7
|
}>;
|
|
18
8
|
export type ReactViews<M extends AdminModule> = {
|
|
19
9
|
readonly [P in keyof M['pages']]: {
|
|
20
|
-
readonly page: Loader<ModulePageProps
|
|
10
|
+
readonly page: Loader<ModulePageProps<LazyTabView>>;
|
|
21
11
|
readonly tabs: {
|
|
22
12
|
readonly [T in keyof M['pages'][P]['tabs']]: Loader<TabViewProps>;
|
|
23
13
|
};
|
|
@@ -33,8 +23,8 @@ export declare function bindReact<const M extends AdminModule>({ module, views }
|
|
|
33
23
|
}): {
|
|
34
24
|
module: M;
|
|
35
25
|
pages: { [P in keyof M["pages"]]: {
|
|
36
|
-
Page: LazyExoticComponent<ComponentType<ModulePageProps
|
|
37
|
-
tabs: { [T in keyof M["pages"][P]["tabs"]]:
|
|
26
|
+
Page: LazyExoticComponent<ComponentType<ModulePageProps<LazyTabView>>>;
|
|
27
|
+
tabs: { [T in keyof M["pages"][P]["tabs"]]: LazyTabView; };
|
|
38
28
|
}; };
|
|
39
29
|
Provider: ({ admin, children }: {
|
|
40
30
|
admin: AdminInstance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, createElement, lazy, useContext } from 'react';
|
|
2
|
-
import { AdminConfigError } from '
|
|
2
|
+
import { AdminConfigError } from '@jini-ai/core/admin-runtime';
|
|
3
3
|
/** Every page and tab is lazy. The only port context is private to this binding;
|
|
4
4
|
* a sibling module can never read another module's dependencies through a global locator. */
|
|
5
5
|
export function bindReact({ module, views }, { context } = {}) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { bindReact, type LazyTabView, type ReactViews } from './bind-react.js';
|
|
2
|
+
export { useController } from './use-controller.js';
|
|
3
|
+
export { reactModuleUi } from './module-ui.js';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|