@riboseinc/paneron-registry-kit 2.2.58 → 2.2.60
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/LICENSE +21 -0
- package/README.adoc +67 -0
- package/compiled/common.js +2 -0
- package/compiled/index.js +42 -0
- package/compiled/item-classes/Tree.js +61 -0
- package/compiled/item-classes/treeNodes.js +56 -0
- package/compiled/migrations/initial.js +28 -0
- package/compiled/proposals/ChangeRequestContext.js +121 -0
- package/compiled/proposals/HistoryDrawer.js +55 -0
- package/compiled/proposals/ListItem.js +22 -0
- package/compiled/proposals/MetaProperties.js +98 -0
- package/compiled/proposals/NewProposalMenu.js +53 -0
- package/compiled/proposals/ProposalBrowser.js +141 -0
- package/compiled/proposals/ProposalDetail.js +27 -0
- package/compiled/proposals/ProposalItem.js +24 -0
- package/compiled/proposals/ProposalSummary.js +28 -0
- package/compiled/proposals/ProposalTab.js +89 -0
- package/compiled/proposals/ProposalType.js +62 -0
- package/compiled/proposals/ProposalWorkspace.js +70 -0
- package/compiled/proposals/Search.js +106 -0
- package/compiled/proposals/TransitionHistory.js +271 -0
- package/compiled/proposals/TransitionOptions.js +432 -0
- package/compiled/proposals/actionableGroups/Tree.js +170 -0
- package/compiled/proposals/actionableGroups/queries.js +78 -0
- package/compiled/proposals/actionableGroups/treeNodes.js +90 -0
- package/compiled/proposals/actionableGroups/types.js +2 -0
- package/compiled/proposals/index.js +7 -0
- package/compiled/proposals/objectChangeset.js +331 -0
- package/compiled/proposals/queries.js +5 -0
- package/compiled/proposals/types.js +229 -0
- package/compiled/types/index.js +7 -0
- package/compiled/types/item.js +28 -0
- package/compiled/types/register.js +25 -0
- package/compiled/types/registry.js +10 -0
- package/compiled/types/stakeholder.js +81 -0
- package/compiled/types/util.js +3 -0
- package/compiled/types/views.js +2 -0
- package/compiled/views/AnnotatedChange.js +62 -0
- package/compiled/views/BrowserCtx.js +20 -0
- package/compiled/views/FilterCriteria/CRITERIA_CONFIGURATION.js +121 -0
- package/compiled/views/FilterCriteria/criteriaGroupToQueryExpression.js +45 -0
- package/compiled/views/FilterCriteria/criteriaGroupToSummary.js +47 -0
- package/compiled/views/FilterCriteria/criteriaToNodes.js +92 -0
- package/compiled/views/FilterCriteria/index.js +75 -0
- package/compiled/views/FilterCriteria/models.js +45 -0
- package/compiled/views/FilterCriteria/mutateGroup.js +74 -0
- package/compiled/views/GenericRelatedItemView.js +179 -0
- package/compiled/views/ItemDetailsDrawer.js +21 -0
- package/compiled/views/ItemSearchDrawer.js +29 -0
- package/compiled/views/Party.js +156 -0
- package/compiled/views/RegisterStakeholder.js +22 -0
- package/compiled/views/RegisterVersion.js +20 -0
- package/compiled/views/SearchQuery.js +90 -0
- package/compiled/views/StatefulTree.js +95 -0
- package/compiled/views/detail/AllItems.js +31 -0
- package/compiled/views/detail/ChangeRequest/index.js +49 -0
- package/compiled/views/detail/CustomView/index.js +34 -0
- package/compiled/views/detail/ProposalWork.js +167 -0
- package/compiled/views/detail/RegisterHome/ActiveProposalDetails.js +64 -0
- package/compiled/views/detail/RegisterHome/Block.js +39 -0
- package/compiled/views/detail/RegisterHome/MetaSummary.js +27 -0
- package/compiled/views/detail/RegisterHome/Proposal.js +105 -0
- package/compiled/views/detail/RegisterHome/index.js +381 -0
- package/compiled/views/detail/RegisterHome2/index.js +36 -0
- package/compiled/views/detail/RegisterItem/RelatedItems.js +28 -0
- package/compiled/views/detail/RegisterItem/SupersedingItemMenu.js +27 -0
- package/compiled/views/detail/RegisterItem/index.js +576 -0
- package/compiled/views/detail/RegisterItem/index.js.map +1 -0
- package/compiled/views/detail/RegisterItemClass.js +59 -0
- package/compiled/views/detail/RegisterMeta/RegisterMetaForm.js +176 -0
- package/compiled/views/detail/RegisterMeta/index.js +73 -0
- package/compiled/views/detail/index.js +12 -0
- package/compiled/views/diffing/InlineDiff.js +117 -0
- package/compiled/views/diffing/StructuredDiff.js +38 -0
- package/compiled/views/hooks/useCustomView.js +14 -0
- package/compiled/views/hooks/useItemClassConfig.js +8 -0
- package/compiled/views/hooks/useItemRef.js +27 -0
- package/compiled/views/hooks/useLatestAcceptedProposal.js +39 -0
- package/compiled/views/hooks/useRegisterVersion.js +35 -0
- package/compiled/views/hooks/useSingleRegisterItemData.js +22 -0
- package/compiled/views/hooks/useStakeholder.js +2 -0
- package/compiled/views/index.js +247 -0
- package/compiled/views/itemPathUtils.js +139 -0
- package/compiled/views/itemQueryUtils.js +49 -0
- package/compiled/views/protocolRegistry.js +30 -0
- package/compiled/views/sidebar/Browse/index.js +291 -0
- package/compiled/views/sidebar/ExportImport/ExportOptions.js +56 -0
- package/compiled/views/sidebar/ExportImport/ImportOptions.js +9 -0
- package/compiled/views/sidebar/ExportImport/index.js +4 -0
- package/compiled/views/sidebar/ListItem.js +31 -0
- package/compiled/views/sidebar/Registration/index.js +89 -0
- package/compiled/views/sidebar/Search/index.js +129 -0
- package/{views → compiled/views}/sidebar/Search/index.js.map +1 -1
- package/compiled/views/sidebar/index.js +115 -0
- package/compiled/views/util.js +278 -0
- package/compiled/views/util.js.map +1 -0
- package/dependencies-local/extension-kit/SettingsContext.d.ts +8 -0
- package/dependencies-local/extension-kit/SettingsContext.js +19 -0
- package/dependencies-local/extension-kit/SettingsContext.js.map +1 -0
- package/dependencies-local/extension-kit/build_site.d.ts +1 -0
- package/dependencies-local/extension-kit/build_site.js +4 -0
- package/dependencies-local/extension-kit/build_site.js.map +1 -0
- package/dependencies-local/extension-kit/context.d.ts +18 -0
- package/dependencies-local/extension-kit/context.js +143 -0
- package/dependencies-local/extension-kit/context.js.map +1 -0
- package/dependencies-local/extension-kit/i18n/ContextProvider.d.ts +9 -0
- package/dependencies-local/extension-kit/i18n/ContextProvider.js +33 -0
- package/dependencies-local/extension-kit/i18n/ContextProvider.js.map +1 -0
- package/dependencies-local/extension-kit/i18n/context.d.ts +9 -0
- package/dependencies-local/extension-kit/i18n/context.js +23 -0
- package/dependencies-local/extension-kit/i18n/context.js.map +1 -0
- package/dependencies-local/extension-kit/i18n/types.d.ts +10 -0
- package/dependencies-local/extension-kit/i18n/types.js.map +1 -0
- package/dependencies-local/extension-kit/i18n/widgets.d.ts +16 -0
- package/dependencies-local/extension-kit/i18n/widgets.js +59 -0
- package/dependencies-local/extension-kit/i18n/widgets.js.map +1 -0
- package/dependencies-local/extension-kit/index.d.ts +16 -0
- package/dependencies-local/extension-kit/index.js +149 -0
- package/dependencies-local/extension-kit/index.js.map +1 -0
- package/dependencies-local/extension-kit/object-specs/index.d.ts +2 -0
- package/dependencies-local/extension-kit/object-specs/index.js +22 -0
- package/dependencies-local/extension-kit/object-specs/index.js.map +1 -0
- package/dependencies-local/extension-kit/object-specs/paneron-object.d.ts +7 -0
- package/dependencies-local/extension-kit/object-specs/paneron-object.js +159 -0
- package/dependencies-local/extension-kit/object-specs/paneron-object.js.map +1 -0
- package/dependencies-local/extension-kit/object-specs/ser-des.d.ts +32 -0
- package/dependencies-local/extension-kit/object-specs/ser-des.js +232 -0
- package/dependencies-local/extension-kit/object-specs/ser-des.js.map +1 -0
- package/dependencies-local/extension-kit/object-specs/yaml/custom-bool.d.ts +3 -0
- package/dependencies-local/extension-kit/object-specs/yaml/custom-bool.js +42 -0
- package/dependencies-local/extension-kit/object-specs/yaml/custom-bool.js.map +1 -0
- package/dependencies-local/extension-kit/object-specs/yaml/custom-timestamp.d.ts +3 -0
- package/dependencies-local/extension-kit/object-specs/yaml/custom-timestamp.js +110 -0
- package/dependencies-local/extension-kit/object-specs/yaml/custom-timestamp.js.map +1 -0
- package/dependencies-local/extension-kit/object-specs/yaml/index.d.ts +9 -0
- package/dependencies-local/extension-kit/object-specs/yaml/index.js +36 -0
- package/dependencies-local/extension-kit/object-specs/yaml/index.js.map +1 -0
- package/dependencies-local/extension-kit/object-specs/yaml/schema.d.ts +4 -0
- package/dependencies-local/extension-kit/object-specs/yaml/schema.js +26 -0
- package/dependencies-local/extension-kit/object-specs/yaml/schema.js.map +1 -0
- package/dependencies-local/extension-kit/settings.d.ts +9 -0
- package/dependencies-local/extension-kit/settings.js +17 -0
- package/dependencies-local/extension-kit/settings.js.map +1 -0
- package/dependencies-local/extension-kit/types/binary-invocation.d.ts +31 -0
- package/dependencies-local/extension-kit/types/binary-invocation.js.map +1 -0
- package/dependencies-local/extension-kit/types/buffers.d.ts +19 -0
- package/dependencies-local/extension-kit/types/buffers.js.map +1 -0
- package/dependencies-local/extension-kit/types/changes.d.ts +37 -0
- package/dependencies-local/extension-kit/types/changes.js +5 -0
- package/dependencies-local/extension-kit/types/changes.js.map +1 -0
- package/dependencies-local/extension-kit/types/data.d.ts +54 -0
- package/dependencies-local/extension-kit/types/data.js +5 -0
- package/dependencies-local/extension-kit/types/data.js.map +1 -0
- package/dependencies-local/extension-kit/types/dialogs.d.ts +21 -0
- package/dependencies-local/extension-kit/types/dialogs.js +5 -0
- package/dependencies-local/extension-kit/types/dialogs.js.map +1 -0
- package/dependencies-local/extension-kit/types/export-formats.d.ts +23 -0
- package/dependencies-local/extension-kit/types/export-formats.js +5 -0
- package/dependencies-local/extension-kit/types/export-formats.js.map +1 -0
- package/dependencies-local/extension-kit/types/extension-maker.d.ts +17 -0
- package/dependencies-local/extension-kit/types/extension-maker.js +5 -0
- package/dependencies-local/extension-kit/types/extension-maker.js.map +1 -0
- package/dependencies-local/extension-kit/types/extension.d.ts +40 -0
- package/dependencies-local/extension-kit/types/extension.js +5 -0
- package/dependencies-local/extension-kit/types/extension.js.map +1 -0
- package/dependencies-local/extension-kit/types/index.d.ts +3 -0
- package/dependencies-local/extension-kit/types/index.js +41 -0
- package/dependencies-local/extension-kit/types/index.js.map +1 -0
- package/dependencies-local/extension-kit/types/indexes.d.ts +6 -0
- package/dependencies-local/extension-kit/types/indexes.js +15 -0
- package/dependencies-local/extension-kit/types/indexes.js.map +1 -0
- package/dependencies-local/extension-kit/types/migrations.d.ts +35 -0
- package/dependencies-local/extension-kit/types/migrations.js +5 -0
- package/dependencies-local/extension-kit/types/migrations.js.map +1 -0
- package/dependencies-local/extension-kit/types/object-spec.d.ts +109 -0
- package/dependencies-local/extension-kit/types/object-spec.js +24 -0
- package/dependencies-local/extension-kit/types/object-spec.js.map +1 -0
- package/dependencies-local/extension-kit/types/objects.d.ts +18 -0
- package/dependencies-local/extension-kit/types/objects.js +5 -0
- package/dependencies-local/extension-kit/types/objects.js.map +1 -0
- package/dependencies-local/extension-kit/types/progress.d.ts +5 -0
- package/dependencies-local/extension-kit/types/progress.js +5 -0
- package/dependencies-local/extension-kit/types/progress.js.map +1 -0
- package/dependencies-local/extension-kit/types/renderer.d.ts +505 -0
- package/dependencies-local/extension-kit/types/renderer.js +16 -0
- package/dependencies-local/extension-kit/types/renderer.js.map +1 -0
- package/dependencies-local/extension-kit/useDebounce.d.ts +5 -0
- package/dependencies-local/extension-kit/useDebounce.js +25 -0
- package/dependencies-local/extension-kit/useDebounce.js.map +1 -0
- package/dependencies-local/extension-kit/usePersistentStateReducer.d.ts +39 -0
- package/dependencies-local/extension-kit/usePersistentStateReducer.js +133 -0
- package/dependencies-local/extension-kit/usePersistentStateReducer.js.map +1 -0
- package/dependencies-local/extension-kit/useTimeTravelingPersistentStateReducer.d.ts +71 -0
- package/dependencies-local/extension-kit/useTimeTravelingPersistentStateReducer.js +107 -0
- package/dependencies-local/extension-kit/useTimeTravelingPersistentStateReducer.js.map +1 -0
- package/dependencies-local/extension-kit/util.d.ts +37 -0
- package/dependencies-local/extension-kit/util.js +179 -0
- package/dependencies-local/extension-kit/util.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/DL.d.ts +44 -0
- package/dependencies-local/extension-kit/widgets/DL.js +89 -0
- package/dependencies-local/extension-kit/widgets/DL.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/ErrorBoundary.d.ts +17 -0
- package/dependencies-local/extension-kit/widgets/ErrorBoundary.js +49 -0
- package/dependencies-local/extension-kit/widgets/ErrorBoundary.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/ErrorState.d.ts +10 -0
- package/dependencies-local/extension-kit/widgets/ErrorState.js +54 -0
- package/dependencies-local/extension-kit/widgets/ErrorState.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/Grid.d.ts +41 -0
- package/dependencies-local/extension-kit/widgets/Grid.js +213 -0
- package/dependencies-local/extension-kit/widgets/Grid.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/HelpTooltip.d.ts +18 -0
- package/dependencies-local/extension-kit/widgets/HelpTooltip.js +72 -0
- package/dependencies-local/extension-kit/widgets/HelpTooltip.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/ItemCount.d.ts +19 -0
- package/dependencies-local/extension-kit/widgets/ItemCount.js +79 -0
- package/dependencies-local/extension-kit/widgets/ItemCount.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/List.d.ts +41 -0
- package/dependencies-local/extension-kit/widgets/List.js +210 -0
- package/dependencies-local/extension-kit/widgets/List.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/Navbar.d.ts +20 -0
- package/dependencies-local/extension-kit/widgets/Navbar.js +76 -0
- package/dependencies-local/extension-kit/widgets/Navbar.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/Navbar2.d.ts +17 -0
- package/dependencies-local/extension-kit/widgets/Navbar2.js +95 -0
- package/dependencies-local/extension-kit/widgets/Navbar2.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/context.d.ts +17 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/context.js +21 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/context.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/index.d.ts +8 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/index.js +159 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/index.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/types.d.ts +19 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/types.js +5 -0
- package/dependencies-local/extension-kit/widgets/OperationQueue/types.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/SearchResultList.d.ts +31 -0
- package/dependencies-local/extension-kit/widgets/SearchResultList.js +203 -0
- package/dependencies-local/extension-kit/widgets/SearchResultList.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/Block.d.ts +24 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/Block.js +109 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/Block.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/BlockStateButtonGroup.d.ts +6 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/BlockStateButtonGroup.js +23 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/BlockStateButtonGroup.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/PropertyView.d.ts +29 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/PropertyView.js +157 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/PropertyView.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/index.d.ts +27 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/index.js +197 -0
- package/dependencies-local/extension-kit/widgets/Sidebar/index.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/SuperSidebar.d.ts +29 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/SuperSidebar.js +135 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/SuperSidebar.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/context.d.ts +10 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/context.js +205 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/context.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/detail.d.ts +9 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/detail.js +69 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/detail.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/index.d.ts +54 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/index.js +301 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/index.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/types.d.ts +102 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/types.js +5 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/types.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/util.d.ts +1 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/util.js +14 -0
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/util.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/Workspace.d.ts +40 -0
- package/dependencies-local/extension-kit/widgets/Workspace.js +96 -0
- package/dependencies-local/extension-kit/widgets/Workspace.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/panels/PanelSeparator.d.ts +12 -0
- package/dependencies-local/extension-kit/widgets/panels/PanelSeparator.js +60 -0
- package/dependencies-local/extension-kit/widgets/panels/PanelSeparator.js.map +1 -0
- package/dependencies-local/extension-kit/widgets/panels/index.d.ts +28 -0
- package/dependencies-local/extension-kit/widgets/panels/index.js +169 -0
- package/dependencies-local/extension-kit/widgets/panels/index.js.map +1 -0
- package/dist/common.d.ts +1 -0
- package/dist/common.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js.map +1 -0
- package/dist/item-classes/Tree.d.ts +5 -0
- package/dist/item-classes/Tree.js.map +1 -0
- package/dist/item-classes/treeNodes.d.ts +12 -0
- package/dist/item-classes/treeNodes.js.map +1 -0
- package/dist/migrations/initial.d.ts +3 -0
- package/dist/migrations/initial.js.map +1 -0
- package/dist/proposals/ChangeRequestContext.d.ts +44 -0
- package/dist/proposals/ChangeRequestContext.js.map +1 -0
- package/dist/proposals/HistoryDrawer.d.ts +12 -0
- package/dist/proposals/HistoryDrawer.js.map +1 -0
- package/dist/proposals/ListItem.d.ts +9 -0
- package/dist/proposals/ListItem.js.map +1 -0
- package/dist/proposals/MetaProperties.d.ts +14 -0
- package/dist/proposals/MetaProperties.js.map +1 -0
- package/dist/proposals/NewProposalMenu.d.ts +10 -0
- package/dist/proposals/NewProposalMenu.js.map +1 -0
- package/dist/proposals/ProposalBrowser.d.ts +29 -0
- package/dist/proposals/ProposalBrowser.js.map +1 -0
- package/dist/proposals/ProposalDetail.d.ts +6 -0
- package/dist/proposals/ProposalDetail.js.map +1 -0
- package/dist/proposals/ProposalItem.d.ts +16 -0
- package/dist/proposals/ProposalItem.js.map +1 -0
- package/dist/proposals/ProposalSummary.d.ts +6 -0
- package/dist/proposals/ProposalSummary.js.map +1 -0
- package/dist/proposals/ProposalTab.d.ts +14 -0
- package/dist/proposals/ProposalTab.js.map +1 -0
- package/dist/proposals/ProposalType.d.ts +11 -0
- package/dist/proposals/ProposalType.js.map +1 -0
- package/dist/proposals/ProposalWorkspace.d.ts +15 -0
- package/dist/proposals/ProposalWorkspace.js.map +1 -0
- package/dist/proposals/Search.d.ts +26 -0
- package/dist/proposals/Search.js.map +1 -0
- package/dist/proposals/TransitionHistory.d.ts +31 -0
- package/dist/proposals/TransitionHistory.js.map +1 -0
- package/dist/proposals/TransitionOptions.d.ts +38 -0
- package/dist/proposals/TransitionOptions.js.map +1 -0
- package/dist/proposals/actionableGroups/Tree.d.ts +7 -0
- package/dist/proposals/actionableGroups/Tree.js.map +1 -0
- package/dist/proposals/actionableGroups/queries.d.ts +4 -0
- package/dist/proposals/actionableGroups/queries.js.map +1 -0
- package/dist/proposals/actionableGroups/treeNodes.d.ts +27 -0
- package/dist/proposals/actionableGroups/treeNodes.js.map +1 -0
- package/dist/proposals/actionableGroups/types.d.ts +6 -0
- package/dist/proposals/actionableGroups/types.js +5 -0
- package/dist/proposals/actionableGroups/types.js.map +1 -0
- package/dist/proposals/index.d.ts +6 -0
- package/dist/proposals/index.js.map +1 -0
- package/dist/proposals/objectChangeset.d.ts +72 -0
- package/dist/proposals/objectChangeset.js.map +1 -0
- package/dist/proposals/queries.d.ts +4 -0
- package/dist/proposals/queries.js.map +1 -0
- package/dist/proposals/types.d.ts +332 -0
- package/dist/proposals/types.js.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/item.d.ts +55 -0
- package/dist/types/item.js.map +1 -0
- package/dist/types/register.d.ts +21 -0
- package/dist/types/register.js.map +1 -0
- package/dist/types/registry.d.ts +15 -0
- package/dist/types/registry.js.map +1 -0
- package/dist/types/stakeholder.d.ts +43 -0
- package/dist/types/stakeholder.js.map +1 -0
- package/dist/types/util.d.ts +28 -0
- package/dist/types/util.js +5 -0
- package/dist/types/util.js.map +1 -0
- package/dist/types/views.d.ts +228 -0
- package/dist/types/views.js +5 -0
- package/dist/types/views.js.map +1 -0
- package/dist/views/AnnotatedChange.d.ts +7 -0
- package/dist/views/AnnotatedChange.js.map +1 -0
- package/dist/views/BrowserCtx.d.ts +69 -0
- package/dist/views/BrowserCtx.js.map +1 -0
- package/dist/views/FilterCriteria/CRITERIA_CONFIGURATION.d.ts +17 -0
- package/dist/views/FilterCriteria/CRITERIA_CONFIGURATION.js.map +1 -0
- package/dist/views/FilterCriteria/criteriaGroupToQueryExpression.d.ts +6 -0
- package/dist/views/FilterCriteria/criteriaGroupToQueryExpression.js.map +1 -0
- package/dist/views/FilterCriteria/criteriaGroupToSummary.d.ts +5 -0
- package/dist/views/FilterCriteria/criteriaGroupToSummary.js.map +1 -0
- package/dist/views/FilterCriteria/criteriaToNodes.d.ts +24 -0
- package/dist/views/FilterCriteria/criteriaToNodes.js.map +1 -0
- package/dist/views/FilterCriteria/index.d.ts +23 -0
- package/dist/views/FilterCriteria/index.js.map +1 -0
- package/dist/views/FilterCriteria/models.d.ts +70 -0
- package/dist/views/FilterCriteria/models.js.map +1 -0
- package/dist/views/FilterCriteria/mutateGroup.d.ts +24 -0
- package/dist/views/FilterCriteria/mutateGroup.js.map +1 -0
- package/dist/views/GenericRelatedItemView.d.ts +9 -0
- package/dist/views/GenericRelatedItemView.js.map +1 -0
- package/dist/views/ItemDetailsDrawer.d.ts +12 -0
- package/dist/views/ItemDetailsDrawer.js.map +1 -0
- package/dist/views/ItemSearchDrawer.d.ts +11 -0
- package/dist/views/ItemSearchDrawer.js.map +1 -0
- package/dist/views/Party.d.ts +0 -0
- package/dist/views/Party.js.map +1 -0
- package/dist/views/RegisterStakeholder.d.ts +12 -0
- package/dist/views/RegisterStakeholder.js.map +1 -0
- package/dist/views/RegisterVersion.d.ts +9 -0
- package/dist/views/RegisterVersion.js.map +1 -0
- package/dist/views/SearchQuery.d.ts +19 -0
- package/dist/views/SearchQuery.js.map +1 -0
- package/dist/views/StatefulTree.d.ts +28 -0
- package/dist/views/StatefulTree.js.map +1 -0
- package/dist/views/detail/AllItems.d.ts +8 -0
- package/dist/views/detail/AllItems.js.map +1 -0
- package/dist/views/detail/ChangeRequest/index.d.ts +12 -0
- package/dist/views/detail/ChangeRequest/index.js.map +1 -0
- package/dist/views/detail/CustomView/index.d.ts +13 -0
- package/dist/views/detail/CustomView/index.js.map +1 -0
- package/dist/views/detail/ProposalWork.d.ts +8 -0
- package/dist/views/detail/ProposalWork.js.map +1 -0
- package/dist/views/detail/RegisterHome/ActiveProposalDetails.d.ts +15 -0
- package/dist/views/detail/RegisterHome/ActiveProposalDetails.js.map +1 -0
- package/dist/views/detail/RegisterHome/Block.d.ts +29 -0
- package/dist/views/detail/RegisterHome/Block.js.map +1 -0
- package/dist/views/detail/RegisterHome/MetaSummary.d.ts +9 -0
- package/dist/views/detail/RegisterHome/MetaSummary.js.map +1 -0
- package/dist/views/detail/RegisterHome/Proposal.d.ts +14 -0
- package/dist/views/detail/RegisterHome/Proposal.js.map +1 -0
- package/dist/views/detail/RegisterHome/index.d.ts +5 -0
- package/dist/views/detail/RegisterHome/index.js.map +1 -0
- package/dist/views/detail/RegisterHome2/index.d.ts +5 -0
- package/dist/views/detail/RegisterHome2/index.js.map +1 -0
- package/dist/views/detail/RegisterItem/RelatedItems.d.ts +14 -0
- package/dist/views/detail/RegisterItem/RelatedItems.js.map +1 -0
- package/dist/views/detail/RegisterItem/SupersedingItemMenu.d.ts +13 -0
- package/dist/views/detail/RegisterItem/SupersedingItemMenu.js.map +1 -0
- package/dist/views/detail/RegisterItem/index.d.ts +21 -0
- package/{views → dist/views}/detail/RegisterItem/index.js +1 -1
- package/dist/views/detail/RegisterItem/index.js.map +1 -0
- package/dist/views/detail/RegisterItemClass.d.ts +12 -0
- package/dist/views/detail/RegisterItemClass.js.map +1 -0
- package/dist/views/detail/RegisterMeta/RegisterMetaForm.d.ts +10 -0
- package/dist/views/detail/RegisterMeta/RegisterMetaForm.js.map +1 -0
- package/dist/views/detail/RegisterMeta/index.d.ts +10 -0
- package/dist/views/detail/RegisterMeta/index.js.map +1 -0
- package/dist/views/detail/index.d.ts +1 -0
- package/dist/views/detail/index.js.map +1 -0
- package/dist/views/diffing/InlineDiff.d.ts +38 -0
- package/dist/views/diffing/InlineDiff.js.map +1 -0
- package/dist/views/diffing/StructuredDiff.d.ts +11 -0
- package/dist/views/diffing/StructuredDiff.js.map +1 -0
- package/dist/views/hooks/useCustomView.d.ts +3 -0
- package/dist/views/hooks/useCustomView.js.map +1 -0
- package/dist/views/hooks/useItemClassConfig.d.ts +2 -0
- package/dist/views/hooks/useItemClassConfig.js.map +1 -0
- package/dist/views/hooks/useItemRef.d.ts +3 -0
- package/dist/views/hooks/useItemRef.js.map +1 -0
- package/dist/views/hooks/useLatestAcceptedProposal.d.ts +2 -0
- package/dist/views/hooks/useLatestAcceptedProposal.js.map +1 -0
- package/dist/views/hooks/useRegisterVersion.d.ts +5 -0
- package/dist/views/hooks/useRegisterVersion.js.map +1 -0
- package/dist/views/hooks/useSingleRegisterItemData.d.ts +3 -0
- package/dist/views/hooks/useSingleRegisterItemData.js.map +1 -0
- package/dist/views/hooks/useStakeholder.d.ts +0 -0
- package/dist/views/hooks/useStakeholder.js.map +1 -0
- package/dist/views/index.d.ts +8 -0
- package/dist/views/index.js.map +1 -0
- package/dist/views/itemPathUtils.d.ts +47 -0
- package/dist/views/itemPathUtils.js.map +1 -0
- package/dist/views/itemQueryUtils.d.ts +12 -0
- package/dist/views/itemQueryUtils.js.map +1 -0
- package/dist/views/protocolRegistry.d.ts +14 -0
- package/dist/views/protocolRegistry.js.map +1 -0
- package/dist/views/sidebar/Browse/index.d.ts +11 -0
- package/dist/views/sidebar/Browse/index.js.map +1 -0
- package/dist/views/sidebar/ExportImport/ExportOptions.d.ts +5 -0
- package/dist/views/sidebar/ExportImport/ExportOptions.js.map +1 -0
- package/dist/views/sidebar/ExportImport/ImportOptions.d.ts +4 -0
- package/dist/views/sidebar/ExportImport/ImportOptions.js.map +1 -0
- package/dist/views/sidebar/ExportImport/index.d.ts +3 -0
- package/dist/views/sidebar/ExportImport/index.js.map +1 -0
- package/dist/views/sidebar/ListItem.d.ts +10 -0
- package/dist/views/sidebar/ListItem.js.map +1 -0
- package/dist/views/sidebar/Registration/index.d.ts +9 -0
- package/dist/views/sidebar/Registration/index.js.map +1 -0
- package/dist/views/sidebar/Search/index.d.ts +29 -0
- package/{views → dist/views}/sidebar/Search/index.js +1 -1
- package/dist/views/sidebar/Search/index.js.map +1 -0
- package/dist/views/sidebar/index.d.ts +7 -0
- package/dist/views/sidebar/index.js.map +1 -0
- package/dist/views/util.d.ts +98 -0
- package/{views → dist/views}/util.js +33 -7
- package/dist/views/util.js.map +1 -0
- package/package.json +1 -1
- package/react-visual-diff.d.ts +9 -0
- package/views/detail/RegisterItem/index.js.map +0 -1
- package/views/util.js.map +0 -1
- /package/{common.d.ts → compiled/common.d.ts} +0 -0
- /package/{common.js.map → compiled/common.js.map} +0 -0
- /package/{index.d.ts → compiled/index.d.ts} +0 -0
- /package/{index.js.map → compiled/index.js.map} +0 -0
- /package/{item-classes → compiled/item-classes}/Tree.d.ts +0 -0
- /package/{item-classes → compiled/item-classes}/Tree.js.map +0 -0
- /package/{item-classes → compiled/item-classes}/treeNodes.d.ts +0 -0
- /package/{item-classes → compiled/item-classes}/treeNodes.js.map +0 -0
- /package/{migrations → compiled/migrations}/initial.d.ts +0 -0
- /package/{migrations → compiled/migrations}/initial.js.map +0 -0
- /package/{proposals → compiled/proposals}/ChangeRequestContext.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ChangeRequestContext.js.map +0 -0
- /package/{proposals → compiled/proposals}/HistoryDrawer.d.ts +0 -0
- /package/{proposals → compiled/proposals}/HistoryDrawer.js.map +0 -0
- /package/{proposals → compiled/proposals}/ListItem.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ListItem.js.map +0 -0
- /package/{proposals → compiled/proposals}/MetaProperties.d.ts +0 -0
- /package/{proposals → compiled/proposals}/MetaProperties.js.map +0 -0
- /package/{proposals → compiled/proposals}/NewProposalMenu.d.ts +0 -0
- /package/{proposals → compiled/proposals}/NewProposalMenu.js.map +0 -0
- /package/{proposals → compiled/proposals}/ProposalBrowser.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ProposalBrowser.js.map +0 -0
- /package/{proposals → compiled/proposals}/ProposalDetail.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ProposalDetail.js.map +0 -0
- /package/{proposals → compiled/proposals}/ProposalItem.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ProposalItem.js.map +0 -0
- /package/{proposals → compiled/proposals}/ProposalSummary.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ProposalSummary.js.map +0 -0
- /package/{proposals → compiled/proposals}/ProposalTab.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ProposalTab.js.map +0 -0
- /package/{proposals → compiled/proposals}/ProposalType.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ProposalType.js.map +0 -0
- /package/{proposals → compiled/proposals}/ProposalWorkspace.d.ts +0 -0
- /package/{proposals → compiled/proposals}/ProposalWorkspace.js.map +0 -0
- /package/{proposals → compiled/proposals}/Search.d.ts +0 -0
- /package/{proposals → compiled/proposals}/Search.js.map +0 -0
- /package/{proposals → compiled/proposals}/TransitionHistory.d.ts +0 -0
- /package/{proposals → compiled/proposals}/TransitionHistory.js.map +0 -0
- /package/{proposals → compiled/proposals}/TransitionOptions.d.ts +0 -0
- /package/{proposals → compiled/proposals}/TransitionOptions.js.map +0 -0
- /package/{proposals → compiled/proposals}/actionableGroups/Tree.d.ts +0 -0
- /package/{proposals → compiled/proposals}/actionableGroups/Tree.js.map +0 -0
- /package/{proposals → compiled/proposals}/actionableGroups/queries.d.ts +0 -0
- /package/{proposals → compiled/proposals}/actionableGroups/queries.js.map +0 -0
- /package/{proposals → compiled/proposals}/actionableGroups/treeNodes.d.ts +0 -0
- /package/{proposals → compiled/proposals}/actionableGroups/treeNodes.js.map +0 -0
- /package/{proposals → compiled/proposals}/actionableGroups/types.d.ts +0 -0
- /package/{proposals → compiled/proposals}/actionableGroups/types.js.map +0 -0
- /package/{proposals → compiled/proposals}/index.d.ts +0 -0
- /package/{proposals → compiled/proposals}/index.js.map +0 -0
- /package/{proposals → compiled/proposals}/objectChangeset.d.ts +0 -0
- /package/{proposals → compiled/proposals}/objectChangeset.js.map +0 -0
- /package/{proposals → compiled/proposals}/queries.d.ts +0 -0
- /package/{proposals → compiled/proposals}/queries.js.map +0 -0
- /package/{proposals → compiled/proposals}/types.d.ts +0 -0
- /package/{proposals → compiled/proposals}/types.js.map +0 -0
- /package/{types → compiled/types}/index.d.ts +0 -0
- /package/{types → compiled/types}/index.js.map +0 -0
- /package/{types → compiled/types}/item.d.ts +0 -0
- /package/{types → compiled/types}/item.js.map +0 -0
- /package/{types → compiled/types}/register.d.ts +0 -0
- /package/{types → compiled/types}/register.js.map +0 -0
- /package/{types → compiled/types}/registry.d.ts +0 -0
- /package/{types → compiled/types}/registry.js.map +0 -0
- /package/{types → compiled/types}/stakeholder.d.ts +0 -0
- /package/{types → compiled/types}/stakeholder.js.map +0 -0
- /package/{types → compiled/types}/util.d.ts +0 -0
- /package/{types → compiled/types}/util.js.map +0 -0
- /package/{types → compiled/types}/views.d.ts +0 -0
- /package/{types → compiled/types}/views.js.map +0 -0
- /package/{views → compiled/views}/AnnotatedChange.d.ts +0 -0
- /package/{views → compiled/views}/AnnotatedChange.js.map +0 -0
- /package/{views → compiled/views}/BrowserCtx.d.ts +0 -0
- /package/{views → compiled/views}/BrowserCtx.js.map +0 -0
- /package/{views → compiled/views}/FilterCriteria/CRITERIA_CONFIGURATION.d.ts +0 -0
- /package/{views → compiled/views}/FilterCriteria/CRITERIA_CONFIGURATION.js.map +0 -0
- /package/{views → compiled/views}/FilterCriteria/criteriaGroupToQueryExpression.d.ts +0 -0
- /package/{views → compiled/views}/FilterCriteria/criteriaGroupToQueryExpression.js.map +0 -0
- /package/{views → compiled/views}/FilterCriteria/criteriaGroupToSummary.d.ts +0 -0
- /package/{views → compiled/views}/FilterCriteria/criteriaGroupToSummary.js.map +0 -0
- /package/{views → compiled/views}/FilterCriteria/criteriaToNodes.d.ts +0 -0
- /package/{views → compiled/views}/FilterCriteria/criteriaToNodes.js.map +0 -0
- /package/{views → compiled/views}/FilterCriteria/index.d.ts +0 -0
- /package/{views → compiled/views}/FilterCriteria/index.js.map +0 -0
- /package/{views → compiled/views}/FilterCriteria/models.d.ts +0 -0
- /package/{views → compiled/views}/FilterCriteria/models.js.map +0 -0
- /package/{views → compiled/views}/FilterCriteria/mutateGroup.d.ts +0 -0
- /package/{views → compiled/views}/FilterCriteria/mutateGroup.js.map +0 -0
- /package/{views → compiled/views}/GenericRelatedItemView.d.ts +0 -0
- /package/{views → compiled/views}/GenericRelatedItemView.js.map +0 -0
- /package/{views → compiled/views}/ItemDetailsDrawer.d.ts +0 -0
- /package/{views → compiled/views}/ItemDetailsDrawer.js.map +0 -0
- /package/{views → compiled/views}/ItemSearchDrawer.d.ts +0 -0
- /package/{views → compiled/views}/ItemSearchDrawer.js.map +0 -0
- /package/{views → compiled/views}/Party.d.ts +0 -0
- /package/{views → compiled/views}/Party.js.map +0 -0
- /package/{views → compiled/views}/RegisterStakeholder.d.ts +0 -0
- /package/{views → compiled/views}/RegisterStakeholder.js.map +0 -0
- /package/{views → compiled/views}/RegisterVersion.d.ts +0 -0
- /package/{views → compiled/views}/RegisterVersion.js.map +0 -0
- /package/{views → compiled/views}/SearchQuery.d.ts +0 -0
- /package/{views → compiled/views}/SearchQuery.js.map +0 -0
- /package/{views → compiled/views}/StatefulTree.d.ts +0 -0
- /package/{views → compiled/views}/StatefulTree.js.map +0 -0
- /package/{views → compiled/views}/detail/AllItems.d.ts +0 -0
- /package/{views → compiled/views}/detail/AllItems.js.map +0 -0
- /package/{views → compiled/views}/detail/ChangeRequest/index.d.ts +0 -0
- /package/{views → compiled/views}/detail/ChangeRequest/index.js.map +0 -0
- /package/{views → compiled/views}/detail/CustomView/index.d.ts +0 -0
- /package/{views → compiled/views}/detail/CustomView/index.js.map +0 -0
- /package/{views → compiled/views}/detail/ProposalWork.d.ts +0 -0
- /package/{views → compiled/views}/detail/ProposalWork.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/ActiveProposalDetails.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/ActiveProposalDetails.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/Block.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/Block.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/MetaSummary.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/MetaSummary.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/Proposal.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/Proposal.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/index.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterHome/index.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterHome2/index.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterHome2/index.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterItem/RelatedItems.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterItem/RelatedItems.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterItem/SupersedingItemMenu.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterItem/SupersedingItemMenu.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterItem/index.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterItemClass.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterItemClass.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterMeta/RegisterMetaForm.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterMeta/RegisterMetaForm.js.map +0 -0
- /package/{views → compiled/views}/detail/RegisterMeta/index.d.ts +0 -0
- /package/{views → compiled/views}/detail/RegisterMeta/index.js.map +0 -0
- /package/{views → compiled/views}/detail/index.d.ts +0 -0
- /package/{views → compiled/views}/detail/index.js.map +0 -0
- /package/{views → compiled/views}/diffing/InlineDiff.d.ts +0 -0
- /package/{views → compiled/views}/diffing/InlineDiff.js.map +0 -0
- /package/{views → compiled/views}/diffing/StructuredDiff.d.ts +0 -0
- /package/{views → compiled/views}/diffing/StructuredDiff.js.map +0 -0
- /package/{views → compiled/views}/hooks/useCustomView.d.ts +0 -0
- /package/{views → compiled/views}/hooks/useCustomView.js.map +0 -0
- /package/{views → compiled/views}/hooks/useItemClassConfig.d.ts +0 -0
- /package/{views → compiled/views}/hooks/useItemClassConfig.js.map +0 -0
- /package/{views → compiled/views}/hooks/useItemRef.d.ts +0 -0
- /package/{views → compiled/views}/hooks/useItemRef.js.map +0 -0
- /package/{views → compiled/views}/hooks/useLatestAcceptedProposal.d.ts +0 -0
- /package/{views → compiled/views}/hooks/useLatestAcceptedProposal.js.map +0 -0
- /package/{views → compiled/views}/hooks/useRegisterVersion.d.ts +0 -0
- /package/{views → compiled/views}/hooks/useRegisterVersion.js.map +0 -0
- /package/{views → compiled/views}/hooks/useSingleRegisterItemData.d.ts +0 -0
- /package/{views → compiled/views}/hooks/useSingleRegisterItemData.js.map +0 -0
- /package/{views → compiled/views}/hooks/useStakeholder.d.ts +0 -0
- /package/{views → compiled/views}/hooks/useStakeholder.js.map +0 -0
- /package/{views → compiled/views}/index.d.ts +0 -0
- /package/{views → compiled/views}/index.js.map +0 -0
- /package/{views → compiled/views}/itemPathUtils.d.ts +0 -0
- /package/{views → compiled/views}/itemPathUtils.js.map +0 -0
- /package/{views → compiled/views}/itemQueryUtils.d.ts +0 -0
- /package/{views → compiled/views}/itemQueryUtils.js.map +0 -0
- /package/{views → compiled/views}/protocolRegistry.d.ts +0 -0
- /package/{views → compiled/views}/protocolRegistry.js.map +0 -0
- /package/{views → compiled/views}/sidebar/Browse/index.d.ts +0 -0
- /package/{views → compiled/views}/sidebar/Browse/index.js.map +0 -0
- /package/{views → compiled/views}/sidebar/ExportImport/ExportOptions.d.ts +0 -0
- /package/{views → compiled/views}/sidebar/ExportImport/ExportOptions.js.map +0 -0
- /package/{views → compiled/views}/sidebar/ExportImport/ImportOptions.d.ts +0 -0
- /package/{views → compiled/views}/sidebar/ExportImport/ImportOptions.js.map +0 -0
- /package/{views → compiled/views}/sidebar/ExportImport/index.d.ts +0 -0
- /package/{views → compiled/views}/sidebar/ExportImport/index.js.map +0 -0
- /package/{views → compiled/views}/sidebar/ListItem.d.ts +0 -0
- /package/{views → compiled/views}/sidebar/ListItem.js.map +0 -0
- /package/{views → compiled/views}/sidebar/Registration/index.d.ts +0 -0
- /package/{views → compiled/views}/sidebar/Registration/index.js.map +0 -0
- /package/{views → compiled/views}/sidebar/Search/index.d.ts +0 -0
- /package/{views → compiled/views}/sidebar/index.d.ts +0 -0
- /package/{views → compiled/views}/sidebar/index.js.map +0 -0
- /package/{views → compiled/views}/util.d.ts +0 -0
- /package/{proposals/actionableGroups → dependencies-local/extension-kit/i18n}/types.js +0 -0
- /package/{types/util.js → dependencies-local/extension-kit/types/binary-invocation.js} +0 -0
- /package/{types/views.js → dependencies-local/extension-kit/types/buffers.js} +0 -0
- /package/{common.js → dist/common.js} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{item-classes → dist/item-classes}/Tree.js +0 -0
- /package/{item-classes → dist/item-classes}/treeNodes.js +0 -0
- /package/{migrations → dist/migrations}/initial.js +0 -0
- /package/{proposals → dist/proposals}/ChangeRequestContext.js +0 -0
- /package/{proposals → dist/proposals}/HistoryDrawer.js +0 -0
- /package/{proposals → dist/proposals}/ListItem.js +0 -0
- /package/{proposals → dist/proposals}/MetaProperties.js +0 -0
- /package/{proposals → dist/proposals}/NewProposalMenu.js +0 -0
- /package/{proposals → dist/proposals}/ProposalBrowser.js +0 -0
- /package/{proposals → dist/proposals}/ProposalDetail.js +0 -0
- /package/{proposals → dist/proposals}/ProposalItem.js +0 -0
- /package/{proposals → dist/proposals}/ProposalSummary.js +0 -0
- /package/{proposals → dist/proposals}/ProposalTab.js +0 -0
- /package/{proposals → dist/proposals}/ProposalType.js +0 -0
- /package/{proposals → dist/proposals}/ProposalWorkspace.js +0 -0
- /package/{proposals → dist/proposals}/Search.js +0 -0
- /package/{proposals → dist/proposals}/TransitionHistory.js +0 -0
- /package/{proposals → dist/proposals}/TransitionOptions.js +0 -0
- /package/{proposals → dist/proposals}/actionableGroups/Tree.js +0 -0
- /package/{proposals → dist/proposals}/actionableGroups/queries.js +0 -0
- /package/{proposals → dist/proposals}/actionableGroups/treeNodes.js +0 -0
- /package/{proposals → dist/proposals}/index.js +0 -0
- /package/{proposals → dist/proposals}/objectChangeset.js +0 -0
- /package/{proposals → dist/proposals}/queries.js +0 -0
- /package/{proposals → dist/proposals}/types.js +0 -0
- /package/{types → dist/types}/index.js +0 -0
- /package/{types → dist/types}/item.js +0 -0
- /package/{types → dist/types}/register.js +0 -0
- /package/{types → dist/types}/registry.js +0 -0
- /package/{types → dist/types}/stakeholder.js +0 -0
- /package/{views → dist/views}/AnnotatedChange.js +0 -0
- /package/{views → dist/views}/BrowserCtx.js +0 -0
- /package/{views → dist/views}/FilterCriteria/CRITERIA_CONFIGURATION.js +0 -0
- /package/{views → dist/views}/FilterCriteria/criteriaGroupToQueryExpression.js +0 -0
- /package/{views → dist/views}/FilterCriteria/criteriaGroupToSummary.js +0 -0
- /package/{views → dist/views}/FilterCriteria/criteriaToNodes.js +0 -0
- /package/{views → dist/views}/FilterCriteria/index.js +0 -0
- /package/{views → dist/views}/FilterCriteria/models.js +0 -0
- /package/{views → dist/views}/FilterCriteria/mutateGroup.js +0 -0
- /package/{views → dist/views}/GenericRelatedItemView.js +0 -0
- /package/{views → dist/views}/ItemDetailsDrawer.js +0 -0
- /package/{views → dist/views}/ItemSearchDrawer.js +0 -0
- /package/{views → dist/views}/Party.js +0 -0
- /package/{views → dist/views}/RegisterStakeholder.js +0 -0
- /package/{views → dist/views}/RegisterVersion.js +0 -0
- /package/{views → dist/views}/SearchQuery.js +0 -0
- /package/{views → dist/views}/StatefulTree.js +0 -0
- /package/{views → dist/views}/detail/AllItems.js +0 -0
- /package/{views → dist/views}/detail/ChangeRequest/index.js +0 -0
- /package/{views → dist/views}/detail/CustomView/index.js +0 -0
- /package/{views → dist/views}/detail/ProposalWork.js +0 -0
- /package/{views → dist/views}/detail/RegisterHome/ActiveProposalDetails.js +0 -0
- /package/{views → dist/views}/detail/RegisterHome/Block.js +0 -0
- /package/{views → dist/views}/detail/RegisterHome/MetaSummary.js +0 -0
- /package/{views → dist/views}/detail/RegisterHome/Proposal.js +0 -0
- /package/{views → dist/views}/detail/RegisterHome/index.js +0 -0
- /package/{views → dist/views}/detail/RegisterHome2/index.js +0 -0
- /package/{views → dist/views}/detail/RegisterItem/RelatedItems.js +0 -0
- /package/{views → dist/views}/detail/RegisterItem/SupersedingItemMenu.js +0 -0
- /package/{views → dist/views}/detail/RegisterItemClass.js +0 -0
- /package/{views → dist/views}/detail/RegisterMeta/RegisterMetaForm.js +0 -0
- /package/{views → dist/views}/detail/RegisterMeta/index.js +0 -0
- /package/{views → dist/views}/detail/index.js +0 -0
- /package/{views → dist/views}/diffing/InlineDiff.js +0 -0
- /package/{views → dist/views}/diffing/StructuredDiff.js +0 -0
- /package/{views → dist/views}/hooks/useCustomView.js +0 -0
- /package/{views → dist/views}/hooks/useItemClassConfig.js +0 -0
- /package/{views → dist/views}/hooks/useItemRef.js +0 -0
- /package/{views → dist/views}/hooks/useLatestAcceptedProposal.js +0 -0
- /package/{views → dist/views}/hooks/useRegisterVersion.js +0 -0
- /package/{views → dist/views}/hooks/useSingleRegisterItemData.js +0 -0
- /package/{views → dist/views}/hooks/useStakeholder.js +0 -0
- /package/{views → dist/views}/index.js +0 -0
- /package/{views → dist/views}/itemPathUtils.js +0 -0
- /package/{views → dist/views}/itemQueryUtils.js +0 -0
- /package/{views → dist/views}/protocolRegistry.js +0 -0
- /package/{views → dist/views}/sidebar/Browse/index.js +0 -0
- /package/{views → dist/views}/sidebar/ExportImport/ExportOptions.js +0 -0
- /package/{views → dist/views}/sidebar/ExportImport/ImportOptions.js +0 -0
- /package/{views → dist/views}/sidebar/ExportImport/index.js +0 -0
- /package/{views → dist/views}/sidebar/ListItem.js +0 -0
- /package/{views → dist/views}/sidebar/Registration/index.js +0 -0
- /package/{views → dist/views}/sidebar/index.js +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
dump: (data: Record<string, any>) => string;
|
|
3
|
+
load: <T extends Record<string, any>>(rawData: string) => T;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* A wrapper around js-yaml that supplies noRefs & schema options,
|
|
7
|
+
* and is supposed to handle specifically dictionaries/objects.
|
|
8
|
+
*/
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _jsYaml = _interopRequireDefault(require("js-yaml"));
|
|
9
|
+
|
|
10
|
+
var _schema = _interopRequireDefault(require("./schema"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A wrapper around js-yaml that supplies noRefs & schema options,
|
|
16
|
+
* and is supposed to handle specifically dictionaries/objects.
|
|
17
|
+
*/
|
|
18
|
+
var _default = {
|
|
19
|
+
dump: data => _jsYaml.default.dump(data, {
|
|
20
|
+
schema: _schema.default,
|
|
21
|
+
noRefs: true
|
|
22
|
+
}),
|
|
23
|
+
load: rawData => {
|
|
24
|
+
const result = _jsYaml.default.load(rawData, {
|
|
25
|
+
schema: _schema.default
|
|
26
|
+
}); //console.debug("yaml.load: deserialized", rawData, "as", result, "/", JSON.stringify(result));
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
if (result && typeof result !== 'string' && typeof result !== 'number') {
|
|
30
|
+
return result;
|
|
31
|
+
} else {
|
|
32
|
+
throw new Error("Failed to load YAML buffer data: got a non-object from js-yaml’s load()");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/object-specs/yaml/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B;;;GAGG;AACH,eAAe;IACb,IAAI,EAAE,CAAC,IAAyB,EAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACtF,IAAI,EAAE,CAAgC,OAAe,EAAK,EAAE;QAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAC9C,+FAA+F;QAC/F,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YACtE,OAAO,MAAW,CAAC;SACpB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC;SAC5F;IACH,CAAC;CACF,CAAC","sourcesContent":["import yaml from 'js-yaml';\nimport schema from './schema';\n\n/**\n * A wrapper around js-yaml that supplies noRefs & schema options,\n * and is supposed to handle specifically dictionaries/objects.\n */\nexport default {\n dump: (data: Record<string, any>): string => yaml.dump(data, { schema, noRefs: true }),\n load: <T extends Record<string, any>>(rawData: string): T => {\n const result = yaml.load(rawData, { schema });\n //console.debug(\"yaml.load: deserialized\", rawData, \"as\", result, \"/\", JSON.stringify(result));\n if (result && typeof result !== 'string' && typeof result !== 'number') {\n return result as T;\n } else {\n throw new Error(\"Failed to load YAML buffer data: got a non-object from js-yaml’s load()\");\n }\n },\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var yaml = _interopRequireWildcard(require("js-yaml"));
|
|
9
|
+
|
|
10
|
+
var _customTimestamp = _interopRequireDefault(require("./custom-timestamp"));
|
|
11
|
+
|
|
12
|
+
var _customBool = require("./custom-bool");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
17
|
+
|
|
18
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
20
|
+
/** This schema adds timestamp parsing and adjusts boolean parsing. */
|
|
21
|
+
const schema = yaml.DEFAULT_SCHEMA.extend({
|
|
22
|
+
// Trick because js-yaml API appears to not support augmenting implicit tags
|
|
23
|
+
implicit: [...yaml.DEFAULT_SCHEMA.implicit, ...[_customTimestamp.default, _customBool.customBoolType]]
|
|
24
|
+
});
|
|
25
|
+
var _default = schema;
|
|
26
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/object-specs/yaml/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,mBAAmB,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,sEAAsE;AACtE,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;IACxC,4EAA4E;IAC5E,QAAQ,EAAE;QACR,GAAI,IAAI,CAAC,cAAsB,CAAC,QAAQ;QACxC,GAAG,CAAC,mBAAmB,EAAE,cAAc,CAAC;KACzC;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC","sourcesContent":["import * as yaml from 'js-yaml';\nimport customTimestampType from './custom-timestamp';\nimport { customBoolType } from './custom-bool';\n\n\n/** This schema adds timestamp parsing and adjusts boolean parsing. */\nconst schema = yaml.DEFAULT_SCHEMA.extend({\n // Trick because js-yaml API appears to not support augmenting implicit tags\n implicit: [\n ...(yaml.DEFAULT_SCHEMA as any).implicit,\n ...[customTimestampType, customBoolType],\n ],\n});\n\nexport default schema;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type Settings = Record<string, any>;
|
|
2
|
+
export interface GlobalSettings extends Settings {
|
|
3
|
+
sidebarPosition: 'left' | 'right';
|
|
4
|
+
mainNavbarPosition: 'top' | 'bottom';
|
|
5
|
+
/** Color scheme, if `null` then use OS native color scheme. */
|
|
6
|
+
defaultTheme: 'dark' | 'light' | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const INITIAL_GLOBAL_SETTINGS: GlobalSettings;
|
|
9
|
+
export declare function isValidGlobalSettings(val: any): val is GlobalSettings;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isValidGlobalSettings = isValidGlobalSettings;
|
|
7
|
+
exports.INITIAL_GLOBAL_SETTINGS = void 0;
|
|
8
|
+
const INITIAL_GLOBAL_SETTINGS = {
|
|
9
|
+
sidebarPosition: 'right',
|
|
10
|
+
mainNavbarPosition: 'top',
|
|
11
|
+
defaultTheme: 'light'
|
|
12
|
+
};
|
|
13
|
+
exports.INITIAL_GLOBAL_SETTINGS = INITIAL_GLOBAL_SETTINGS;
|
|
14
|
+
|
|
15
|
+
function isValidGlobalSettings(val) {
|
|
16
|
+
return val && ['left', 'right'].indexOf(val.sidebarPosition) >= 0 && ['top', 'bottom'].indexOf(val.mainNavbarPosition) >= 0 && ['dark', 'light', null].indexOf(val.defaultTheme) >= 0;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,uBAAuB,GAAmB;IACrD,eAAe,EAAE,OAAO;IACxB,kBAAkB,EAAE,KAAK;IACzB,YAAY,EAAE,OAAO;CACtB,CAAC;AAGF,MAAM,UAAU,qBAAqB,CAAC,GAAQ;IAC5C,OAAO,CACL,GAAG;WACA,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC;WACnD,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC;WACtD,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["export type Settings = Record<string, any>\n\nexport interface GlobalSettings extends Settings {\n sidebarPosition: 'left' | 'right'\n mainNavbarPosition: 'top' | 'bottom'\n\n /** Color scheme, if `null` then use OS native color scheme. */\n defaultTheme: 'dark' | 'light' | null\n}\n\nexport const INITIAL_GLOBAL_SETTINGS: GlobalSettings = {\n sidebarPosition: 'right',\n mainNavbarPosition: 'top',\n defaultTheme: 'light',\n};\n\n\nexport function isValidGlobalSettings(val: any): val is GlobalSettings {\n return (\n val\n && ['left', 'right'].indexOf(val.sidebarPosition) >= 0\n && ['top', 'bottom'].indexOf(val.mainNavbarPosition) >= 0\n && ['dark', 'light', null].indexOf(val.defaultTheme) >= 0);\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface BinaryInvocationRequest {
|
|
2
|
+
/** Path relative to Paneron’s bin directory. No extension, .exe will be auto-appended on Windows. */
|
|
3
|
+
binaryName: string;
|
|
4
|
+
/** Arguments will be concatenated. */
|
|
5
|
+
cliArgs: string[];
|
|
6
|
+
/**
|
|
7
|
+
* If true, command is executed inside a shell.
|
|
8
|
+
* In this case, no untrusted input should be passed to the command.
|
|
9
|
+
*/
|
|
10
|
+
useShell?: true;
|
|
11
|
+
}
|
|
12
|
+
export interface SubprocessDescription {
|
|
13
|
+
/** Platform-specific process ID. */
|
|
14
|
+
pid: number;
|
|
15
|
+
/** The original options subprocess had been invoked with. */
|
|
16
|
+
opts: BinaryInvocationRequest;
|
|
17
|
+
/** What the called subprocess output. */
|
|
18
|
+
stdout: string;
|
|
19
|
+
/** What the called subprocess emitted to error output. */
|
|
20
|
+
stderr: string;
|
|
21
|
+
/** Termination result. */
|
|
22
|
+
termination?: ProcessTerminationMetadata;
|
|
23
|
+
}
|
|
24
|
+
export interface ProcessTerminationMetadata {
|
|
25
|
+
/** Termination code, if any. */
|
|
26
|
+
code: number | null;
|
|
27
|
+
/** The signal subprocess was terminated with, if any. */
|
|
28
|
+
signal: string | null;
|
|
29
|
+
/** Error description, if any. */
|
|
30
|
+
error: string | null;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binary-invocation.js","sourceRoot":"","sources":["../../src/types/binary-invocation.ts"],"names":[],"mappings":"","sourcesContent":["export interface BinaryInvocationRequest {\n /** Path relative to Paneron’s bin directory. No extension, .exe will be auto-appended on Windows. */\n binaryName: string;\n\n /** Arguments will be concatenated. */\n cliArgs: string[];\n\n /**\n * If true, command is executed inside a shell.\n * In this case, no untrusted input should be passed to the command.\n */\n useShell?: true;\n}\n\nexport interface SubprocessDescription {\n /** Platform-specific process ID. */\n pid: number\n\n /** The original options subprocess had been invoked with. */\n opts: BinaryInvocationRequest\n\n /** What the called subprocess output. */\n stdout: string\n\n /** What the called subprocess emitted to error output. */\n stderr: string\n\n /** Termination result. */\n termination?: ProcessTerminationMetadata\n}\n\nexport interface ProcessTerminationMetadata {\n /** Termination code, if any. */\n code: number | null;\n\n /** The signal subprocess was terminated with, if any. */\n signal: string | null;\n\n /** Error description, if any. */\n error: string | null;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Buffers describe physical data atoms.
|
|
3
|
+
* A buffer is a raw binary blob
|
|
4
|
+
* and in current implementation maps to a file on disk
|
|
5
|
+
* (or an object in Git repo).
|
|
6
|
+
*
|
|
7
|
+
* A `null` value indicates nothing exists at given path.
|
|
8
|
+
*
|
|
9
|
+
* A buffer is associated with a path (in POSIX format)
|
|
10
|
+
* that describes its place in data repository tree.
|
|
11
|
+
*
|
|
12
|
+
* Multiple buffers may comprise a single logical **object**.
|
|
13
|
+
*/
|
|
14
|
+
import type { Change, Changeset } from './changes';
|
|
15
|
+
export declare type BufferDataset = {
|
|
16
|
+
[bufferPath: string]: Uint8Array | null;
|
|
17
|
+
};
|
|
18
|
+
export declare type BufferChange = Change<Uint8Array>;
|
|
19
|
+
export declare type BufferChangeset = Changeset<BufferChange>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buffers.js","sourceRoot":"","sources":["../../src/types/buffers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG","sourcesContent":["/**\n * Buffers describe physical data atoms.\n * A buffer is a raw binary blob\n * and in current implementation maps to a file on disk\n * (or an object in Git repo).\n *\n * A `null` value indicates nothing exists at given path.\n *\n * A buffer is associated with a path (in POSIX format)\n * that describes its place in data repository tree.\n *\n * Multiple buffers may comprise a single logical **object**.\n */\n\nimport type { Change, Changeset } from './changes';\n\n\nexport type BufferDataset = { [bufferPath: string]: Uint8Array | null };\n\nexport type BufferChange = Change<Uint8Array>;\n\nexport type BufferChangeset = Changeset<BufferChange>;\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare type ChangeStatus = 'modified' | 'added' | 'removed';
|
|
2
|
+
export declare type DiffStatus = ChangeStatus | 'unchanged';
|
|
3
|
+
export interface PathDiff {
|
|
4
|
+
[path: string]: DiffStatus;
|
|
5
|
+
}
|
|
6
|
+
export interface PathChanges {
|
|
7
|
+
[path: string]: ChangeStatus;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Describes a change of an object.
|
|
11
|
+
*
|
|
12
|
+
* A null value below means nonexistend object at this path.
|
|
13
|
+
*
|
|
14
|
+
* - newValue: null means delete object, if it exists.
|
|
15
|
+
* - oldValue: null means the object previously did not exist.
|
|
16
|
+
* - Undefined (unspecified) oldValue means no consistency check.
|
|
17
|
+
*/
|
|
18
|
+
export declare type Change<T extends Uint8Array | Record<string, any>> = {
|
|
19
|
+
newValue: T | null;
|
|
20
|
+
oldValue?: T | null;
|
|
21
|
+
};
|
|
22
|
+
export declare type Changeset<C extends Change<any>> = {
|
|
23
|
+
[path: string]: C;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The result of applying a changeset.
|
|
27
|
+
*
|
|
28
|
+
* `conflicts` shows how paths don’t match reference data (`oldValue`s)
|
|
29
|
+
* provided by the changeset. Ideally conflicts would be an empty object,
|
|
30
|
+
*
|
|
31
|
+
* Paths in conflicts can be object or buffer paths,
|
|
32
|
+
* depending on use case.
|
|
33
|
+
*/
|
|
34
|
+
export interface CommitOutcome {
|
|
35
|
+
newCommitHash?: string;
|
|
36
|
+
conflicts?: PathChanges;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changes.js","sourceRoot":"","sources":["../../src/types/changes.ts"],"names":[],"mappings":"","sourcesContent":["export type ChangeStatus = 'modified' | 'added' | 'removed';\n\nexport type DiffStatus = ChangeStatus | 'unchanged';\n\nexport interface PathDiff {\n [path: string]: DiffStatus\n}\n\nexport interface PathChanges {\n [path: string]: ChangeStatus\n}\n\n/**\n * Describes a change of an object.\n *\n * A null value below means nonexistend object at this path.\n *\n * - newValue: null means delete object, if it exists.\n * - oldValue: null means the object previously did not exist.\n * - Undefined (unspecified) oldValue means no consistency check.\n */\nexport type Change<T extends Uint8Array | Record<string, any>> =\n { newValue: T | null, oldValue?: T | null };\n\nexport type Changeset<C extends Change<any>> = {\n [path: string]: C\n}\n\n/**\n * The result of applying a changeset.\n *\n * `conflicts` shows how paths don’t match reference data (`oldValue`s)\n * provided by the changeset. Ideally conflicts would be an empty object,\n *\n * Paths in conflicts can be object or buffer paths,\n * depending on use case.\n */\nexport interface CommitOutcome {\n // TODO: “Commit hash” ties this to Git; potentially this could be made generic.\n newCommitHash?: string\n conflicts?: PathChanges\n}\n"]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare type FileChangeType = 'modified' | 'added' | 'removed' | 'unchanged';
|
|
2
|
+
/** Describes single object’s data, can be text with specified encoding or binary data. */
|
|
3
|
+
export declare type ObjectData = null | {
|
|
4
|
+
value: string;
|
|
5
|
+
encoding: string;
|
|
6
|
+
} | {
|
|
7
|
+
value: Uint8Array;
|
|
8
|
+
encoding: undefined;
|
|
9
|
+
};
|
|
10
|
+
/** Maps a set of object paths to respective data. */
|
|
11
|
+
export interface ObjectDataset {
|
|
12
|
+
[objectPath: string]: ObjectData;
|
|
13
|
+
}
|
|
14
|
+
/** Maps a set of object paths to object’s change status. */
|
|
15
|
+
export interface ObjectChangeStatusSet {
|
|
16
|
+
[objectPath: string]: FileChangeType;
|
|
17
|
+
}
|
|
18
|
+
/** Describes a query to retrieve which objects exist without knowing their paths. */
|
|
19
|
+
export interface ObjectQuery {
|
|
20
|
+
pathPrefix: string;
|
|
21
|
+
contentSubstring?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Describes a query to get object data for specified object paths. */
|
|
24
|
+
export declare type ObjectDataRequest = Record<string, 'utf-8' | 'binary'>;
|
|
25
|
+
/**
|
|
26
|
+
* Describes a change made to a single object.
|
|
27
|
+
*
|
|
28
|
+
* For data consistency, users must provide `oldValue` to indicate which value should be replaced;
|
|
29
|
+
* if preexisting value is different from `oldValue` then there was likely a race condition
|
|
30
|
+
* (object data changed e.g. by another user), the new value should not be written
|
|
31
|
+
* and user should be informed about a conflict.
|
|
32
|
+
*
|
|
33
|
+
* `encoding` is not expected to change through the lifetime of an object.
|
|
34
|
+
*/
|
|
35
|
+
export declare type ObjectChange = {
|
|
36
|
+
newValue: string | null;
|
|
37
|
+
encoding: string;
|
|
38
|
+
oldValue?: string | null;
|
|
39
|
+
} | {
|
|
40
|
+
newValue: Uint8Array | null;
|
|
41
|
+
encoding: undefined;
|
|
42
|
+
oldValue?: Uint8Array | null;
|
|
43
|
+
};
|
|
44
|
+
/** Maps object data changes to object paths. */
|
|
45
|
+
export interface ObjectChangeset {
|
|
46
|
+
[objectPath: string]: ObjectChange;
|
|
47
|
+
}
|
|
48
|
+
/** The result of applying an ObjectChangeset. */
|
|
49
|
+
export interface CommitOutcome {
|
|
50
|
+
newCommitHash?: string;
|
|
51
|
+
conflicts?: {
|
|
52
|
+
[objectPath: string]: true;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/types/data.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,mDAAmD;AACnD,sDAAsD","sourcesContent":["// DEPRECATED: These types are legacy:\n// - for binary data at physical level see buffers,\n// - for structured data at logical level see objects.\n\n// In context of Git/filesystem based data storage backend,\n// which is currently the only context, “object” below refers to a file,\n// and object path is a string like `folder1/folder2/file.yaml`\n// (depending on context, can be relative to repository root or dataset root).\n// Other backends may be implemented later, so let’s not involve filesystem specifics here.\n\n// Encoding can be any string, but types elsewhere may restrict encoding to 'utf-8' or 'binary'\n// (other encodings have not been tested).\n\nexport type FileChangeType = 'modified' | 'added' | 'removed' | 'unchanged';\n\n\n/** Describes single object’s data, can be text with specified encoding or binary data. */\nexport type ObjectData = null\n | { value: string, encoding: string }\n | { value: Uint8Array, encoding: undefined }\n\n\n/** Maps a set of object paths to respective data. */\nexport interface ObjectDataset {\n [objectPath: string]: ObjectData\n}\n\n\n/** Maps a set of object paths to object’s change status. */\nexport interface ObjectChangeStatusSet {\n [objectPath: string]: FileChangeType\n}\n\n\n/** Describes a query to retrieve which objects exist without knowing their paths. */\nexport interface ObjectQuery {\n pathPrefix: string\n contentSubstring?: string\n}\n\n\n/** Describes a query to get object data for specified object paths. */\nexport type ObjectDataRequest = Record<string, 'utf-8' | 'binary'>;\n\n\n/**\n * Describes a change made to a single object.\n *\n * For data consistency, users must provide `oldValue` to indicate which value should be replaced;\n * if preexisting value is different from `oldValue` then there was likely a race condition\n * (object data changed e.g. by another user), the new value should not be written\n * and user should be informed about a conflict.\n *\n * `encoding` is not expected to change through the lifetime of an object.\n */\nexport type ObjectChange =\n | { newValue: string | null, encoding: string, oldValue?: string | null }\n | { newValue: Uint8Array | null, encoding: undefined, oldValue?: Uint8Array | null }\n\n\n/** Maps object data changes to object paths. */\nexport interface ObjectChangeset {\n // Object path must be supplied / is returned relative to repository root.\n // Writing null must cause the object to be deleted.\n // When null is returned, it means object does not exist.\n [objectPath: string]: ObjectChange\n}\n\n\n/** The result of applying an ObjectChangeset. */\nexport interface CommitOutcome {\n // TODO: “Commit hash” ties this to Git; potentially this could be made generic.\n newCommitHash?: string\n conflicts?: {\n [objectPath: string]: true\n }\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FileFilter } from './renderer';
|
|
2
|
+
/** Mimics Electron’s dialog options without having to import from Electron. */
|
|
3
|
+
export interface FSDialogProps {
|
|
4
|
+
prompt: string;
|
|
5
|
+
}
|
|
6
|
+
export interface OpenFileDialogProps extends FSDialogProps {
|
|
7
|
+
filters?: FileFilter[];
|
|
8
|
+
allowMultiple?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface SelectDirectoryProps extends FSDialogProps {
|
|
11
|
+
prompt: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SaveFileDialogProps extends FSDialogProps {
|
|
14
|
+
prompt: string;
|
|
15
|
+
/**
|
|
16
|
+
* Pre-written path to save as.
|
|
17
|
+
* Ideally, at least extension should be specified.
|
|
18
|
+
*/
|
|
19
|
+
defaultPath?: string;
|
|
20
|
+
filters?: FileFilter[];
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogs.js","sourceRoot":"","sources":["../../src/types/dialogs.ts"],"names":[],"mappings":"","sourcesContent":["import type { FileFilter } from './renderer';\n\n\n/** Mimics Electron’s dialog options without having to import from Electron. */\nexport interface FSDialogProps {\n prompt: string\n}\n\nexport interface OpenFileDialogProps extends FSDialogProps {\n filters?: FileFilter[]\n allowMultiple?: boolean\n}\n\nexport interface SelectDirectoryProps extends FSDialogProps {\n prompt: string\n}\n\n\nexport interface SaveFileDialogProps extends FSDialogProps {\n prompt: string\n\n /**\n * Pre-written path to save as.\n * Ideally, at least extension should be specified.\n */\n defaultPath?: string\n\n filters?: FileFilter[]\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BufferDataset } from './buffers';
|
|
2
|
+
import type { DatasetContext } from './renderer';
|
|
3
|
+
/** Options supplied implicitly to the exporter. */
|
|
4
|
+
export interface ExportOptions extends Pick<DatasetContext, 'getObjectData' | 'getMapReducedData'> {
|
|
5
|
+
onProgress?: (message: string, loaded?: number, total?: number) => void;
|
|
6
|
+
}
|
|
7
|
+
/** Export format metadata. */
|
|
8
|
+
export interface ExportFormatInfo {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
}
|
|
12
|
+
/** Export format configuration with the actual exporter function. */
|
|
13
|
+
export interface ExportFormatConfiguration extends ExportFormatInfo {
|
|
14
|
+
exporter: ExporterConstructor;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* An exporter is a generator of buffer datasets.
|
|
18
|
+
*/
|
|
19
|
+
export declare type Exporter = AsyncGenerator<BufferDataset, void, void>;
|
|
20
|
+
/**
|
|
21
|
+
* Prepares exporter given configuration (progress handler, etc.).
|
|
22
|
+
*/
|
|
23
|
+
export declare type ExporterConstructor = (opts: ExportOptions) => Exporter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-formats.js","sourceRoot":"","sources":["../../src/types/export-formats.ts"],"names":[],"mappings":"","sourcesContent":["import type { BufferDataset } from './buffers';\nimport type { DatasetContext } from './renderer';\n\n\n/** Options supplied implicitly to the exporter. */\nexport interface ExportOptions\nextends Pick<DatasetContext, 'getObjectData' | 'getMapReducedData'> {\n onProgress?: (message: string, loaded?: number, total?: number) => void\n}\n\n/** Export format metadata. */\nexport interface ExportFormatInfo {\n name: string\n description: string\n}\n\n/** Export format configuration with the actual exporter function. */\nexport interface ExportFormatConfiguration extends ExportFormatInfo {\n exporter: ExporterConstructor;\n}\n\n/**\n * An exporter is a generator of buffer datasets.\n */\nexport type Exporter = AsyncGenerator<BufferDataset, void, void>;\n\n/**\n * Prepares exporter given configuration (progress handler, etc.).\n */\nexport type ExporterConstructor = (opts: ExportOptions) => Exporter;\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Extension } from './extension';
|
|
3
|
+
import type { MigrationInfo } from './migrations';
|
|
4
|
+
import type { ExportFormatConfiguration } from './export-formats';
|
|
5
|
+
export interface ExtensionMakerProps {
|
|
6
|
+
name: string;
|
|
7
|
+
requiredHostAppVersion: string;
|
|
8
|
+
mainView: React.FC<Record<never, never>>;
|
|
9
|
+
datasetInitializer?: MigrationInfo;
|
|
10
|
+
exportFormats?: {
|
|
11
|
+
[exportFormatID: string]: ExportFormatConfiguration;
|
|
12
|
+
};
|
|
13
|
+
datasetMigrations?: {
|
|
14
|
+
[versionSpec: string]: MigrationInfo;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare type ExtensionMaker = (extensionOptions: ExtensionMakerProps) => Promise<Extension>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-maker.js","sourceRoot":"","sources":["../../src/types/extension-maker.ts"],"names":[],"mappings":"","sourcesContent":["import type { Extension } from './extension';\nimport type { MigrationInfo } from './migrations';\nimport type { ExportFormatConfiguration } from './export-formats';\n\n\nexport interface ExtensionMakerProps {\n name: string\n requiredHostAppVersion: string\n\n /* Principal dataset view. */\n mainView: React.FC<Record<never, never>>\n\n /* Instructs which migration to run if new dataset is being initialized.\n The migration is supposed to return version matching latest extension version. */\n datasetInitializer?: MigrationInfo\n\n exportFormats?: {\n [exportFormatID: string]: ExportFormatConfiguration\n }\n\n /* Instructs a migration to run if current dataset version matches\n one of these specs (in semver format).\n The migration will return a new dataset version as a result.\n The returned version will be checked for migration matches again,\n the app will keep running matching migrations until one returns a version\n for which there is no matching migration versionSpec anymore.\n\n For example:\n\n Let’s say current extension version is 1.3.4,\n but user loaded dataset of version 1.1.8.\n\n If extension developer specified a migration with versionSpec \"<1.2\",\n the app will require the user to migrate.\n When migration is run, it’s given dataset path\n and currently specified version (1.1.8),\n based on which it rewrites dataset files as necessary\n and returns a new version (e.g., \"1.2\") after it finishes.\n\n If developer also specified a migration for \">=1.2 <1.3\",\n it will be run automatically.\n\n Let’s say it returns \"1.3\" when finishes.\n 1.3 doesn’t match any migration spec, so dataset version is updated to \"1.3\"\n and user can start the work.\n\n New extension versions continue to come out with no migrations necessary,\n but later the developer changes data schema again in 1.3.7. In that version,\n they include a migration with versionSpec \">=1.3 <1.3.7\".\n When user opens their 1.3 dataset, they will be asked to update again,\n and that migration will run.\n\n The idea is that extension developer only has to support the most current\n data schema version, but they must alwyas provide migrations\n if data schema changes.\n\n IMPORTANT: It is developer’s responsibility\n to carefully specify migration version specs,\n as they could create infinite migration loops if they wanted to.\n */\n datasetMigrations?: {\n [versionSpec: string]: MigrationInfo\n }\n}\n\n\nexport type ExtensionMaker =\n (extensionOptions: ExtensionMakerProps) => Promise<Extension>;\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ObjectSpec, ObjectSpecViewID, ObjectViewProps } from './object-spec';
|
|
3
|
+
import type { MigrationInfo } from './migrations';
|
|
4
|
+
import type { DatasetContext } from './renderer';
|
|
5
|
+
import type { ExportFormatConfiguration } from './export-formats';
|
|
6
|
+
/** The interface that extension instance exposes in browser. */
|
|
7
|
+
export interface RendererPlugin {
|
|
8
|
+
/** Dataset-wide view. */
|
|
9
|
+
mainView?: React.FC<DatasetContext>;
|
|
10
|
+
exportFormats: {
|
|
11
|
+
[name: string]: ExportFormatConfiguration;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* False return value
|
|
15
|
+
* means another version of the host app must be used.
|
|
16
|
+
*/
|
|
17
|
+
isCompatible: (withHostAppVersion: string) => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Compatible host app version spec.
|
|
20
|
+
*/
|
|
21
|
+
requiredHostAppVersionSpec: string;
|
|
22
|
+
/**
|
|
23
|
+
* Non-null return value means pending migration.
|
|
24
|
+
*/
|
|
25
|
+
getMigration: (datasetVersion: string) => {
|
|
26
|
+
/** Updated version spec */
|
|
27
|
+
versionSpec: string;
|
|
28
|
+
/** Migration implementation */
|
|
29
|
+
migration: MigrationInfo;
|
|
30
|
+
};
|
|
31
|
+
initialMigration: MigrationInfo;
|
|
32
|
+
/** @deprecated Do not use. API may change. */
|
|
33
|
+
getObjectSpecs: () => ObjectSpec[];
|
|
34
|
+
/** @deprecated Do not use. API may change. */
|
|
35
|
+
getObjectView: (opts: {
|
|
36
|
+
objectPath: string;
|
|
37
|
+
viewID: ObjectSpecViewID;
|
|
38
|
+
}) => React.FC<ObjectViewProps> | undefined;
|
|
39
|
+
}
|
|
40
|
+
export declare type Extension = RendererPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/types/extension.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\nimport type { ObjectSpec, ObjectSpecViewID, ObjectViewProps } from './object-spec';\nimport type { MigrationInfo } from './migrations';\nimport type { DatasetContext } from './renderer';\nimport type { ExportFormatConfiguration } from './export-formats';\n\n\n/** The interface that extension instance exposes in browser. */\nexport interface RendererPlugin {\n /** Dataset-wide view. */\n mainView?: React.FC<DatasetContext>\n\n exportFormats: {\n [name: string]: ExportFormatConfiguration\n }\n\n /**\n * False return value\n * means another version of the host app must be used. \n */\n isCompatible: (withHostAppVersion: string) => boolean\n\n /**\n * Compatible host app version spec.\n */\n requiredHostAppVersionSpec: string\n\n /**\n * Non-null return value means pending migration.\n */\n getMigration: (datasetVersion: string) => {\n /** Updated version spec */\n versionSpec: string\n /** Migration implementation */\n migration: MigrationInfo\n }\n\n initialMigration: MigrationInfo\n\n /** @deprecated Do not use. API may change. */\n getObjectSpecs: () => ObjectSpec[]\n\n /** @deprecated Do not use. API may change. */\n getObjectView:\n (opts: { objectPath: string, viewID: ObjectSpecViewID }) =>\n React.FC<ObjectViewProps> | undefined\n}\n\nexport type Extension = RendererPlugin;\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _extension = require("./extension");
|
|
8
|
+
|
|
9
|
+
Object.keys(_extension).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
Object.defineProperty(exports, key, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return _extension[key];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _data = require("./data");
|
|
20
|
+
|
|
21
|
+
Object.keys(_data).forEach(function (key) {
|
|
22
|
+
if (key === "default" || key === "__esModule") return;
|
|
23
|
+
Object.defineProperty(exports, key, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return _data[key];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
var _renderer = require("./renderer");
|
|
32
|
+
|
|
33
|
+
Object.keys(_renderer).forEach(function (key) {
|
|
34
|
+
if (key === "default" || key === "__esModule") return;
|
|
35
|
+
Object.defineProperty(exports, key, {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () {
|
|
38
|
+
return _renderer[key];
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC","sourcesContent":["export * from './extension';\nexport * from './data';\nexport * from './renderer';\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.INITIAL_INDEX_STATUS = void 0;
|
|
7
|
+
const INITIAL_INDEX_STATUS = {
|
|
8
|
+
objectCount: 0,
|
|
9
|
+
progress: {
|
|
10
|
+
phase: 'initializing',
|
|
11
|
+
total: 0,
|
|
12
|
+
loaded: 0
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
exports.INITIAL_INDEX_STATUS = INITIAL_INDEX_STATUS;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexes.js","sourceRoot":"","sources":["../../src/types/indexes.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,WAAW,EAAE,CAAC;IACd,QAAQ,EAAE;QACR,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;KACV;CACF,CAAA","sourcesContent":["import { Progress } from './progress';\n\n// Describes status of a filtered (or future custom) object index of a dataset\nexport interface IndexStatus {\n objectCount: number\n progress?: Progress<'initializing' | 'counting' | 'indexing'>\n}\n\n\nexport const INITIAL_INDEX_STATUS: IndexStatus = {\n objectCount: 0,\n progress: {\n phase: 'initializing',\n total: 0,\n loaded: 0,\n },\n}\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migrations are used to update dataset structure as extension evolves.
|
|
3
|
+
* Not every extension version requires a structure update.
|
|
4
|
+
*
|
|
5
|
+
* “Dataset extension”
|
|
6
|
+
* generally means “extension version captured in dataset metadata”.
|
|
7
|
+
*
|
|
8
|
+
* A migration uses functions to retrieve deserialized object data
|
|
9
|
+
* and generates serialized buffer data as a result.
|
|
10
|
+
*/
|
|
11
|
+
import type { BufferDataset } from './buffers';
|
|
12
|
+
import type { DatasetContext } from './renderer';
|
|
13
|
+
export interface DatasetMigrationOptions extends Pick<DatasetContext, 'getObjectData' | 'getMapReducedData'> {
|
|
14
|
+
/** Current version of the dataset. */
|
|
15
|
+
versionBefore?: string;
|
|
16
|
+
onProgress?: (message: string, loaded?: number, total?: number) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface MigrationInfo {
|
|
19
|
+
/**
|
|
20
|
+
* Version of the dataset to set after applying the migration.
|
|
21
|
+
* Must not satisfy `versionBefore`, otherwise means infinite migration loop.
|
|
22
|
+
*
|
|
23
|
+
* This is ignored for initial migration, which is naturally expected
|
|
24
|
+
* to migrate the dataset to extension version.
|
|
25
|
+
*/
|
|
26
|
+
versionAfter: string;
|
|
27
|
+
migrator: MigratorConstructor;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Migrator function is a generator of buffer datasets
|
|
31
|
+
* with dataset-relative paths. A path assigned to `null`
|
|
32
|
+
* means buffer at that path will be deleted, if existed.
|
|
33
|
+
*/
|
|
34
|
+
export declare type Migrator = AsyncGenerator<BufferDataset, void, void>;
|
|
35
|
+
export declare type MigratorConstructor = (opts: DatasetMigrationOptions) => Migrator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/types/migrations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG","sourcesContent":["/**\n * Migrations are used to update dataset structure as extension evolves.\n * Not every extension version requires a structure update.\n *\n * “Dataset extension”\n * generally means “extension version captured in dataset metadata”.\n *\n * A migration uses functions to retrieve deserialized object data\n * and generates serialized buffer data as a result.\n */\n\nimport type { BufferDataset } from './buffers';\nimport type { DatasetContext } from './renderer';\n\n\nexport interface DatasetMigrationOptions\nextends Pick<DatasetContext, 'getObjectData' | 'getMapReducedData'> {\n /** Current version of the dataset. */\n versionBefore?: string\n onProgress?: (message: string, loaded?: number, total?: number) => void\n}\n\nexport interface MigrationInfo {\n /**\n * Version of the dataset to set after applying the migration.\n * Must not satisfy `versionBefore`, otherwise means infinite migration loop.\n *\n * This is ignored for initial migration, which is naturally expected\n * to migrate the dataset to extension version. \n */\n versionAfter: string\n migrator: MigratorConstructor\n}\n\n/**\n * Migrator function is a generator of buffer datasets\n * with dataset-relative paths. A path assigned to `null`\n * means buffer at that path will be deleted, if existed.\n */\nexport type Migrator = AsyncGenerator<BufferDataset, void, void>;\n\nexport type MigratorConstructor = (opts: DatasetMigrationOptions) => Migrator;\n"]}
|