@riboseinc/paneron-registry-kit 2.2.60 → 2.2.61
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/package.json +1 -1
- package/LICENSE +0 -21
- package/README.adoc +0 -67
- package/compiled/common.js +0 -2
- package/compiled/index.js +0 -42
- package/compiled/item-classes/Tree.js +0 -61
- package/compiled/item-classes/treeNodes.js +0 -56
- package/compiled/migrations/initial.js +0 -28
- package/compiled/proposals/ChangeRequestContext.js +0 -121
- package/compiled/proposals/HistoryDrawer.js +0 -55
- package/compiled/proposals/ListItem.js +0 -22
- package/compiled/proposals/MetaProperties.js +0 -98
- package/compiled/proposals/NewProposalMenu.js +0 -53
- package/compiled/proposals/ProposalBrowser.js +0 -141
- package/compiled/proposals/ProposalDetail.js +0 -27
- package/compiled/proposals/ProposalItem.js +0 -24
- package/compiled/proposals/ProposalSummary.js +0 -28
- package/compiled/proposals/ProposalTab.js +0 -89
- package/compiled/proposals/ProposalType.js +0 -62
- package/compiled/proposals/ProposalWorkspace.js +0 -70
- package/compiled/proposals/Search.js +0 -106
- package/compiled/proposals/TransitionHistory.js +0 -271
- package/compiled/proposals/TransitionOptions.js +0 -432
- package/compiled/proposals/actionableGroups/Tree.js +0 -170
- package/compiled/proposals/actionableGroups/queries.js +0 -78
- package/compiled/proposals/actionableGroups/treeNodes.js +0 -90
- package/compiled/proposals/actionableGroups/types.js +0 -2
- package/compiled/proposals/index.js +0 -7
- package/compiled/proposals/objectChangeset.js +0 -331
- package/compiled/proposals/queries.js +0 -5
- package/compiled/proposals/types.js +0 -229
- package/compiled/types/index.js +0 -7
- package/compiled/types/item.js +0 -28
- package/compiled/types/register.js +0 -25
- package/compiled/types/registry.js +0 -10
- package/compiled/types/stakeholder.js +0 -81
- package/compiled/types/util.js +0 -3
- package/compiled/types/views.js +0 -2
- package/compiled/views/AnnotatedChange.js +0 -62
- package/compiled/views/BrowserCtx.js +0 -20
- package/compiled/views/FilterCriteria/CRITERIA_CONFIGURATION.js +0 -121
- package/compiled/views/FilterCriteria/criteriaGroupToQueryExpression.js +0 -45
- package/compiled/views/FilterCriteria/criteriaGroupToSummary.js +0 -47
- package/compiled/views/FilterCriteria/criteriaToNodes.js +0 -92
- package/compiled/views/FilterCriteria/index.js +0 -75
- package/compiled/views/FilterCriteria/models.js +0 -45
- package/compiled/views/FilterCriteria/mutateGroup.js +0 -74
- package/compiled/views/GenericRelatedItemView.js +0 -179
- package/compiled/views/ItemDetailsDrawer.js +0 -21
- package/compiled/views/ItemSearchDrawer.js +0 -29
- package/compiled/views/Party.js +0 -156
- package/compiled/views/RegisterStakeholder.js +0 -22
- package/compiled/views/RegisterVersion.js +0 -20
- package/compiled/views/SearchQuery.js +0 -90
- package/compiled/views/StatefulTree.js +0 -95
- package/compiled/views/detail/AllItems.js +0 -31
- package/compiled/views/detail/ChangeRequest/index.js +0 -49
- package/compiled/views/detail/CustomView/index.js +0 -34
- package/compiled/views/detail/ProposalWork.js +0 -167
- package/compiled/views/detail/RegisterHome/ActiveProposalDetails.js +0 -64
- package/compiled/views/detail/RegisterHome/Block.js +0 -39
- package/compiled/views/detail/RegisterHome/MetaSummary.js +0 -27
- package/compiled/views/detail/RegisterHome/Proposal.js +0 -105
- package/compiled/views/detail/RegisterHome/index.js +0 -381
- package/compiled/views/detail/RegisterHome2/index.js +0 -36
- package/compiled/views/detail/RegisterItem/RelatedItems.js +0 -28
- package/compiled/views/detail/RegisterItem/SupersedingItemMenu.js +0 -27
- package/compiled/views/detail/RegisterItem/index.js +0 -576
- package/compiled/views/detail/RegisterItemClass.js +0 -59
- package/compiled/views/detail/RegisterMeta/RegisterMetaForm.js +0 -176
- package/compiled/views/detail/RegisterMeta/index.js +0 -73
- package/compiled/views/detail/index.js +0 -12
- package/compiled/views/diffing/InlineDiff.js +0 -117
- package/compiled/views/diffing/StructuredDiff.js +0 -38
- package/compiled/views/hooks/useCustomView.js +0 -14
- package/compiled/views/hooks/useItemClassConfig.js +0 -8
- package/compiled/views/hooks/useItemRef.js +0 -27
- package/compiled/views/hooks/useLatestAcceptedProposal.js +0 -39
- package/compiled/views/hooks/useRegisterVersion.js +0 -35
- package/compiled/views/hooks/useSingleRegisterItemData.js +0 -22
- package/compiled/views/hooks/useStakeholder.js +0 -2
- package/compiled/views/index.js +0 -247
- package/compiled/views/itemPathUtils.js +0 -139
- package/compiled/views/itemQueryUtils.js +0 -49
- package/compiled/views/protocolRegistry.js +0 -30
- package/compiled/views/sidebar/Browse/index.js +0 -291
- package/compiled/views/sidebar/ExportImport/ExportOptions.js +0 -56
- package/compiled/views/sidebar/ExportImport/ImportOptions.js +0 -9
- package/compiled/views/sidebar/ExportImport/index.js +0 -4
- package/compiled/views/sidebar/ListItem.js +0 -31
- package/compiled/views/sidebar/Registration/index.js +0 -89
- package/compiled/views/sidebar/Search/index.js +0 -129
- package/compiled/views/sidebar/index.js +0 -115
- package/compiled/views/util.js +0 -278
- package/dependencies-local/extension-kit/SettingsContext.d.ts +0 -8
- package/dependencies-local/extension-kit/SettingsContext.js +0 -19
- package/dependencies-local/extension-kit/SettingsContext.js.map +0 -1
- package/dependencies-local/extension-kit/build_site.d.ts +0 -1
- package/dependencies-local/extension-kit/build_site.js +0 -4
- package/dependencies-local/extension-kit/build_site.js.map +0 -1
- package/dependencies-local/extension-kit/context.d.ts +0 -18
- package/dependencies-local/extension-kit/context.js +0 -143
- package/dependencies-local/extension-kit/context.js.map +0 -1
- package/dependencies-local/extension-kit/i18n/ContextProvider.d.ts +0 -9
- package/dependencies-local/extension-kit/i18n/ContextProvider.js +0 -33
- package/dependencies-local/extension-kit/i18n/ContextProvider.js.map +0 -1
- package/dependencies-local/extension-kit/i18n/context.d.ts +0 -9
- package/dependencies-local/extension-kit/i18n/context.js +0 -23
- package/dependencies-local/extension-kit/i18n/context.js.map +0 -1
- package/dependencies-local/extension-kit/i18n/types.d.ts +0 -10
- package/dependencies-local/extension-kit/i18n/types.js.map +0 -1
- package/dependencies-local/extension-kit/i18n/widgets.d.ts +0 -16
- package/dependencies-local/extension-kit/i18n/widgets.js +0 -59
- package/dependencies-local/extension-kit/i18n/widgets.js.map +0 -1
- package/dependencies-local/extension-kit/index.d.ts +0 -16
- package/dependencies-local/extension-kit/index.js +0 -149
- package/dependencies-local/extension-kit/index.js.map +0 -1
- package/dependencies-local/extension-kit/object-specs/index.d.ts +0 -2
- package/dependencies-local/extension-kit/object-specs/index.js +0 -22
- package/dependencies-local/extension-kit/object-specs/index.js.map +0 -1
- package/dependencies-local/extension-kit/object-specs/paneron-object.d.ts +0 -7
- package/dependencies-local/extension-kit/object-specs/paneron-object.js +0 -159
- package/dependencies-local/extension-kit/object-specs/paneron-object.js.map +0 -1
- package/dependencies-local/extension-kit/object-specs/ser-des.d.ts +0 -32
- package/dependencies-local/extension-kit/object-specs/ser-des.js +0 -232
- package/dependencies-local/extension-kit/object-specs/ser-des.js.map +0 -1
- package/dependencies-local/extension-kit/object-specs/yaml/custom-bool.d.ts +0 -3
- package/dependencies-local/extension-kit/object-specs/yaml/custom-bool.js +0 -42
- package/dependencies-local/extension-kit/object-specs/yaml/custom-bool.js.map +0 -1
- package/dependencies-local/extension-kit/object-specs/yaml/custom-timestamp.d.ts +0 -3
- package/dependencies-local/extension-kit/object-specs/yaml/custom-timestamp.js +0 -110
- package/dependencies-local/extension-kit/object-specs/yaml/custom-timestamp.js.map +0 -1
- package/dependencies-local/extension-kit/object-specs/yaml/index.d.ts +0 -9
- package/dependencies-local/extension-kit/object-specs/yaml/index.js +0 -36
- package/dependencies-local/extension-kit/object-specs/yaml/index.js.map +0 -1
- package/dependencies-local/extension-kit/object-specs/yaml/schema.d.ts +0 -4
- package/dependencies-local/extension-kit/object-specs/yaml/schema.js +0 -26
- package/dependencies-local/extension-kit/object-specs/yaml/schema.js.map +0 -1
- package/dependencies-local/extension-kit/settings.d.ts +0 -9
- package/dependencies-local/extension-kit/settings.js +0 -17
- package/dependencies-local/extension-kit/settings.js.map +0 -1
- package/dependencies-local/extension-kit/types/binary-invocation.d.ts +0 -31
- package/dependencies-local/extension-kit/types/binary-invocation.js +0 -5
- package/dependencies-local/extension-kit/types/binary-invocation.js.map +0 -1
- package/dependencies-local/extension-kit/types/buffers.d.ts +0 -19
- package/dependencies-local/extension-kit/types/buffers.js +0 -5
- package/dependencies-local/extension-kit/types/buffers.js.map +0 -1
- package/dependencies-local/extension-kit/types/changes.d.ts +0 -37
- package/dependencies-local/extension-kit/types/changes.js +0 -5
- package/dependencies-local/extension-kit/types/changes.js.map +0 -1
- package/dependencies-local/extension-kit/types/data.d.ts +0 -54
- package/dependencies-local/extension-kit/types/data.js +0 -5
- package/dependencies-local/extension-kit/types/data.js.map +0 -1
- package/dependencies-local/extension-kit/types/dialogs.d.ts +0 -21
- package/dependencies-local/extension-kit/types/dialogs.js +0 -5
- package/dependencies-local/extension-kit/types/dialogs.js.map +0 -1
- package/dependencies-local/extension-kit/types/export-formats.d.ts +0 -23
- package/dependencies-local/extension-kit/types/export-formats.js +0 -5
- package/dependencies-local/extension-kit/types/export-formats.js.map +0 -1
- package/dependencies-local/extension-kit/types/extension-maker.d.ts +0 -17
- package/dependencies-local/extension-kit/types/extension-maker.js +0 -5
- package/dependencies-local/extension-kit/types/extension-maker.js.map +0 -1
- package/dependencies-local/extension-kit/types/extension.d.ts +0 -40
- package/dependencies-local/extension-kit/types/extension.js +0 -5
- package/dependencies-local/extension-kit/types/extension.js.map +0 -1
- package/dependencies-local/extension-kit/types/index.d.ts +0 -3
- package/dependencies-local/extension-kit/types/index.js +0 -41
- package/dependencies-local/extension-kit/types/index.js.map +0 -1
- package/dependencies-local/extension-kit/types/indexes.d.ts +0 -6
- package/dependencies-local/extension-kit/types/indexes.js +0 -15
- package/dependencies-local/extension-kit/types/indexes.js.map +0 -1
- package/dependencies-local/extension-kit/types/migrations.d.ts +0 -35
- package/dependencies-local/extension-kit/types/migrations.js +0 -5
- package/dependencies-local/extension-kit/types/migrations.js.map +0 -1
- package/dependencies-local/extension-kit/types/object-spec.d.ts +0 -109
- package/dependencies-local/extension-kit/types/object-spec.js +0 -24
- package/dependencies-local/extension-kit/types/object-spec.js.map +0 -1
- package/dependencies-local/extension-kit/types/objects.d.ts +0 -18
- package/dependencies-local/extension-kit/types/objects.js +0 -5
- package/dependencies-local/extension-kit/types/objects.js.map +0 -1
- package/dependencies-local/extension-kit/types/progress.d.ts +0 -5
- package/dependencies-local/extension-kit/types/progress.js +0 -5
- package/dependencies-local/extension-kit/types/progress.js.map +0 -1
- package/dependencies-local/extension-kit/types/renderer.d.ts +0 -505
- package/dependencies-local/extension-kit/types/renderer.js +0 -16
- package/dependencies-local/extension-kit/types/renderer.js.map +0 -1
- package/dependencies-local/extension-kit/useDebounce.d.ts +0 -5
- package/dependencies-local/extension-kit/useDebounce.js +0 -25
- package/dependencies-local/extension-kit/useDebounce.js.map +0 -1
- package/dependencies-local/extension-kit/usePersistentStateReducer.d.ts +0 -39
- package/dependencies-local/extension-kit/usePersistentStateReducer.js +0 -133
- package/dependencies-local/extension-kit/usePersistentStateReducer.js.map +0 -1
- package/dependencies-local/extension-kit/useTimeTravelingPersistentStateReducer.d.ts +0 -71
- package/dependencies-local/extension-kit/useTimeTravelingPersistentStateReducer.js +0 -107
- package/dependencies-local/extension-kit/useTimeTravelingPersistentStateReducer.js.map +0 -1
- package/dependencies-local/extension-kit/util.d.ts +0 -37
- package/dependencies-local/extension-kit/util.js +0 -179
- package/dependencies-local/extension-kit/util.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/DL.d.ts +0 -44
- package/dependencies-local/extension-kit/widgets/DL.js +0 -89
- package/dependencies-local/extension-kit/widgets/DL.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/ErrorBoundary.d.ts +0 -17
- package/dependencies-local/extension-kit/widgets/ErrorBoundary.js +0 -49
- package/dependencies-local/extension-kit/widgets/ErrorBoundary.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/ErrorState.d.ts +0 -10
- package/dependencies-local/extension-kit/widgets/ErrorState.js +0 -54
- package/dependencies-local/extension-kit/widgets/ErrorState.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/Grid.d.ts +0 -41
- package/dependencies-local/extension-kit/widgets/Grid.js +0 -213
- package/dependencies-local/extension-kit/widgets/Grid.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/HelpTooltip.d.ts +0 -18
- package/dependencies-local/extension-kit/widgets/HelpTooltip.js +0 -72
- package/dependencies-local/extension-kit/widgets/HelpTooltip.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/ItemCount.d.ts +0 -19
- package/dependencies-local/extension-kit/widgets/ItemCount.js +0 -79
- package/dependencies-local/extension-kit/widgets/ItemCount.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/List.d.ts +0 -41
- package/dependencies-local/extension-kit/widgets/List.js +0 -210
- package/dependencies-local/extension-kit/widgets/List.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/Navbar.d.ts +0 -20
- package/dependencies-local/extension-kit/widgets/Navbar.js +0 -76
- package/dependencies-local/extension-kit/widgets/Navbar.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/Navbar2.d.ts +0 -17
- package/dependencies-local/extension-kit/widgets/Navbar2.js +0 -95
- package/dependencies-local/extension-kit/widgets/Navbar2.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/OperationQueue/context.d.ts +0 -17
- package/dependencies-local/extension-kit/widgets/OperationQueue/context.js +0 -21
- package/dependencies-local/extension-kit/widgets/OperationQueue/context.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/OperationQueue/index.d.ts +0 -8
- package/dependencies-local/extension-kit/widgets/OperationQueue/index.js +0 -159
- package/dependencies-local/extension-kit/widgets/OperationQueue/index.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/OperationQueue/types.d.ts +0 -19
- package/dependencies-local/extension-kit/widgets/OperationQueue/types.js +0 -5
- package/dependencies-local/extension-kit/widgets/OperationQueue/types.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/SearchResultList.d.ts +0 -31
- package/dependencies-local/extension-kit/widgets/SearchResultList.js +0 -203
- package/dependencies-local/extension-kit/widgets/SearchResultList.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/Sidebar/Block.d.ts +0 -24
- package/dependencies-local/extension-kit/widgets/Sidebar/Block.js +0 -109
- package/dependencies-local/extension-kit/widgets/Sidebar/Block.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/Sidebar/BlockStateButtonGroup.d.ts +0 -6
- package/dependencies-local/extension-kit/widgets/Sidebar/BlockStateButtonGroup.js +0 -23
- package/dependencies-local/extension-kit/widgets/Sidebar/BlockStateButtonGroup.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/Sidebar/PropertyView.d.ts +0 -29
- package/dependencies-local/extension-kit/widgets/Sidebar/PropertyView.js +0 -157
- package/dependencies-local/extension-kit/widgets/Sidebar/PropertyView.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/Sidebar/index.d.ts +0 -27
- package/dependencies-local/extension-kit/widgets/Sidebar/index.js +0 -197
- package/dependencies-local/extension-kit/widgets/Sidebar/index.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/SuperSidebar.d.ts +0 -29
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/SuperSidebar.js +0 -135
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/SuperSidebar.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/context.d.ts +0 -10
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/context.js +0 -205
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/context.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/detail.d.ts +0 -9
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/detail.js +0 -69
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/detail.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/index.d.ts +0 -54
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/index.js +0 -301
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/index.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/types.d.ts +0 -102
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/types.js +0 -5
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/types.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/util.d.ts +0 -1
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/util.js +0 -14
- package/dependencies-local/extension-kit/widgets/TabbedWorkspace/util.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/Workspace.d.ts +0 -40
- package/dependencies-local/extension-kit/widgets/Workspace.js +0 -96
- package/dependencies-local/extension-kit/widgets/Workspace.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/panels/PanelSeparator.d.ts +0 -12
- package/dependencies-local/extension-kit/widgets/panels/PanelSeparator.js +0 -60
- package/dependencies-local/extension-kit/widgets/panels/PanelSeparator.js.map +0 -1
- package/dependencies-local/extension-kit/widgets/panels/index.d.ts +0 -28
- package/dependencies-local/extension-kit/widgets/panels/index.js +0 -169
- package/dependencies-local/extension-kit/widgets/panels/index.js.map +0 -1
- package/dist/common.d.ts +0 -1
- package/dist/common.js.map +0 -1
- package/dist/index.d.ts +0 -18
- package/dist/index.js.map +0 -1
- package/dist/item-classes/Tree.d.ts +0 -5
- package/dist/item-classes/Tree.js.map +0 -1
- package/dist/item-classes/treeNodes.d.ts +0 -12
- package/dist/item-classes/treeNodes.js.map +0 -1
- package/dist/migrations/initial.d.ts +0 -3
- package/dist/migrations/initial.js.map +0 -1
- package/dist/proposals/ChangeRequestContext.d.ts +0 -44
- package/dist/proposals/ChangeRequestContext.js.map +0 -1
- package/dist/proposals/HistoryDrawer.d.ts +0 -12
- package/dist/proposals/HistoryDrawer.js.map +0 -1
- package/dist/proposals/ListItem.d.ts +0 -9
- package/dist/proposals/ListItem.js.map +0 -1
- package/dist/proposals/MetaProperties.d.ts +0 -14
- package/dist/proposals/MetaProperties.js.map +0 -1
- package/dist/proposals/NewProposalMenu.d.ts +0 -10
- package/dist/proposals/NewProposalMenu.js.map +0 -1
- package/dist/proposals/ProposalBrowser.d.ts +0 -29
- package/dist/proposals/ProposalBrowser.js.map +0 -1
- package/dist/proposals/ProposalDetail.d.ts +0 -6
- package/dist/proposals/ProposalDetail.js.map +0 -1
- package/dist/proposals/ProposalItem.d.ts +0 -16
- package/dist/proposals/ProposalItem.js.map +0 -1
- package/dist/proposals/ProposalSummary.d.ts +0 -6
- package/dist/proposals/ProposalSummary.js.map +0 -1
- package/dist/proposals/ProposalTab.d.ts +0 -14
- package/dist/proposals/ProposalTab.js.map +0 -1
- package/dist/proposals/ProposalType.d.ts +0 -11
- package/dist/proposals/ProposalType.js.map +0 -1
- package/dist/proposals/ProposalWorkspace.d.ts +0 -15
- package/dist/proposals/ProposalWorkspace.js.map +0 -1
- package/dist/proposals/Search.d.ts +0 -26
- package/dist/proposals/Search.js.map +0 -1
- package/dist/proposals/TransitionHistory.d.ts +0 -31
- package/dist/proposals/TransitionHistory.js.map +0 -1
- package/dist/proposals/TransitionOptions.d.ts +0 -38
- package/dist/proposals/TransitionOptions.js.map +0 -1
- package/dist/proposals/actionableGroups/Tree.d.ts +0 -7
- package/dist/proposals/actionableGroups/Tree.js.map +0 -1
- package/dist/proposals/actionableGroups/queries.d.ts +0 -4
- package/dist/proposals/actionableGroups/queries.js.map +0 -1
- package/dist/proposals/actionableGroups/treeNodes.d.ts +0 -27
- package/dist/proposals/actionableGroups/treeNodes.js.map +0 -1
- package/dist/proposals/actionableGroups/types.d.ts +0 -6
- package/dist/proposals/actionableGroups/types.js +0 -5
- package/dist/proposals/actionableGroups/types.js.map +0 -1
- package/dist/proposals/index.d.ts +0 -6
- package/dist/proposals/index.js.map +0 -1
- package/dist/proposals/objectChangeset.d.ts +0 -72
- package/dist/proposals/objectChangeset.js.map +0 -1
- package/dist/proposals/queries.d.ts +0 -4
- package/dist/proposals/queries.js.map +0 -1
- package/dist/proposals/types.d.ts +0 -332
- package/dist/proposals/types.js.map +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/index.js.map +0 -1
- package/dist/types/item.d.ts +0 -55
- package/dist/types/item.js.map +0 -1
- package/dist/types/register.d.ts +0 -21
- package/dist/types/register.js.map +0 -1
- package/dist/types/registry.d.ts +0 -15
- package/dist/types/registry.js.map +0 -1
- package/dist/types/stakeholder.d.ts +0 -43
- package/dist/types/stakeholder.js.map +0 -1
- package/dist/types/util.d.ts +0 -28
- package/dist/types/util.js.map +0 -1
- package/dist/types/views.d.ts +0 -228
- package/dist/types/views.js.map +0 -1
- package/dist/views/AnnotatedChange.d.ts +0 -7
- package/dist/views/AnnotatedChange.js.map +0 -1
- package/dist/views/BrowserCtx.d.ts +0 -69
- package/dist/views/BrowserCtx.js.map +0 -1
- package/dist/views/FilterCriteria/CRITERIA_CONFIGURATION.d.ts +0 -17
- package/dist/views/FilterCriteria/CRITERIA_CONFIGURATION.js.map +0 -1
- package/dist/views/FilterCriteria/criteriaGroupToQueryExpression.d.ts +0 -6
- package/dist/views/FilterCriteria/criteriaGroupToQueryExpression.js.map +0 -1
- package/dist/views/FilterCriteria/criteriaGroupToSummary.d.ts +0 -5
- package/dist/views/FilterCriteria/criteriaGroupToSummary.js.map +0 -1
- package/dist/views/FilterCriteria/criteriaToNodes.d.ts +0 -24
- package/dist/views/FilterCriteria/criteriaToNodes.js.map +0 -1
- package/dist/views/FilterCriteria/index.d.ts +0 -23
- package/dist/views/FilterCriteria/index.js.map +0 -1
- package/dist/views/FilterCriteria/models.d.ts +0 -70
- package/dist/views/FilterCriteria/models.js.map +0 -1
- package/dist/views/FilterCriteria/mutateGroup.d.ts +0 -24
- package/dist/views/FilterCriteria/mutateGroup.js.map +0 -1
- package/dist/views/GenericRelatedItemView.d.ts +0 -9
- package/dist/views/GenericRelatedItemView.js.map +0 -1
- package/dist/views/ItemDetailsDrawer.d.ts +0 -12
- package/dist/views/ItemDetailsDrawer.js.map +0 -1
- package/dist/views/ItemSearchDrawer.d.ts +0 -11
- package/dist/views/ItemSearchDrawer.js.map +0 -1
- package/dist/views/Party.d.ts +0 -0
- package/dist/views/Party.js.map +0 -1
- package/dist/views/RegisterStakeholder.d.ts +0 -12
- package/dist/views/RegisterStakeholder.js.map +0 -1
- package/dist/views/RegisterVersion.d.ts +0 -9
- package/dist/views/RegisterVersion.js.map +0 -1
- package/dist/views/SearchQuery.d.ts +0 -19
- package/dist/views/SearchQuery.js.map +0 -1
- package/dist/views/StatefulTree.d.ts +0 -28
- package/dist/views/StatefulTree.js.map +0 -1
- package/dist/views/detail/AllItems.d.ts +0 -8
- package/dist/views/detail/AllItems.js.map +0 -1
- package/dist/views/detail/ChangeRequest/index.d.ts +0 -12
- package/dist/views/detail/ChangeRequest/index.js.map +0 -1
- package/dist/views/detail/CustomView/index.d.ts +0 -13
- package/dist/views/detail/CustomView/index.js.map +0 -1
- package/dist/views/detail/ProposalWork.d.ts +0 -8
- package/dist/views/detail/ProposalWork.js.map +0 -1
- package/dist/views/detail/RegisterHome/ActiveProposalDetails.d.ts +0 -15
- package/dist/views/detail/RegisterHome/ActiveProposalDetails.js.map +0 -1
- package/dist/views/detail/RegisterHome/Block.d.ts +0 -29
- package/dist/views/detail/RegisterHome/Block.js.map +0 -1
- package/dist/views/detail/RegisterHome/MetaSummary.d.ts +0 -9
- package/dist/views/detail/RegisterHome/MetaSummary.js.map +0 -1
- package/dist/views/detail/RegisterHome/Proposal.d.ts +0 -14
- package/dist/views/detail/RegisterHome/Proposal.js.map +0 -1
- package/dist/views/detail/RegisterHome/index.d.ts +0 -5
- package/dist/views/detail/RegisterHome/index.js.map +0 -1
- package/dist/views/detail/RegisterHome2/index.d.ts +0 -5
- package/dist/views/detail/RegisterHome2/index.js.map +0 -1
- package/dist/views/detail/RegisterItem/RelatedItems.d.ts +0 -14
- package/dist/views/detail/RegisterItem/RelatedItems.js.map +0 -1
- package/dist/views/detail/RegisterItem/SupersedingItemMenu.d.ts +0 -13
- package/dist/views/detail/RegisterItem/SupersedingItemMenu.js.map +0 -1
- package/dist/views/detail/RegisterItem/index.d.ts +0 -21
- package/dist/views/detail/RegisterItem/index.js.map +0 -1
- package/dist/views/detail/RegisterItemClass.d.ts +0 -12
- package/dist/views/detail/RegisterItemClass.js.map +0 -1
- package/dist/views/detail/RegisterMeta/RegisterMetaForm.d.ts +0 -10
- package/dist/views/detail/RegisterMeta/RegisterMetaForm.js.map +0 -1
- package/dist/views/detail/RegisterMeta/index.d.ts +0 -10
- package/dist/views/detail/RegisterMeta/index.js.map +0 -1
- package/dist/views/detail/index.d.ts +0 -1
- package/dist/views/detail/index.js.map +0 -1
- package/dist/views/diffing/InlineDiff.d.ts +0 -38
- package/dist/views/diffing/InlineDiff.js.map +0 -1
- package/dist/views/diffing/StructuredDiff.d.ts +0 -11
- package/dist/views/diffing/StructuredDiff.js.map +0 -1
- package/dist/views/hooks/useCustomView.d.ts +0 -3
- package/dist/views/hooks/useCustomView.js.map +0 -1
- package/dist/views/hooks/useItemClassConfig.d.ts +0 -2
- package/dist/views/hooks/useItemClassConfig.js.map +0 -1
- package/dist/views/hooks/useItemRef.d.ts +0 -3
- package/dist/views/hooks/useItemRef.js.map +0 -1
- package/dist/views/hooks/useLatestAcceptedProposal.d.ts +0 -2
- package/dist/views/hooks/useLatestAcceptedProposal.js.map +0 -1
- package/dist/views/hooks/useRegisterVersion.d.ts +0 -5
- package/dist/views/hooks/useRegisterVersion.js.map +0 -1
- package/dist/views/hooks/useSingleRegisterItemData.d.ts +0 -3
- package/dist/views/hooks/useSingleRegisterItemData.js.map +0 -1
- package/dist/views/hooks/useStakeholder.d.ts +0 -0
- package/dist/views/hooks/useStakeholder.js.map +0 -1
- package/dist/views/index.d.ts +0 -8
- package/dist/views/index.js.map +0 -1
- package/dist/views/itemPathUtils.d.ts +0 -47
- package/dist/views/itemPathUtils.js.map +0 -1
- package/dist/views/itemQueryUtils.d.ts +0 -12
- package/dist/views/itemQueryUtils.js.map +0 -1
- package/dist/views/protocolRegistry.d.ts +0 -14
- package/dist/views/protocolRegistry.js.map +0 -1
- package/dist/views/sidebar/Browse/index.d.ts +0 -11
- package/dist/views/sidebar/Browse/index.js.map +0 -1
- package/dist/views/sidebar/ExportImport/ExportOptions.d.ts +0 -5
- package/dist/views/sidebar/ExportImport/ExportOptions.js.map +0 -1
- package/dist/views/sidebar/ExportImport/ImportOptions.d.ts +0 -4
- package/dist/views/sidebar/ExportImport/ImportOptions.js.map +0 -1
- package/dist/views/sidebar/ExportImport/index.d.ts +0 -3
- package/dist/views/sidebar/ExportImport/index.js.map +0 -1
- package/dist/views/sidebar/ListItem.d.ts +0 -10
- package/dist/views/sidebar/ListItem.js.map +0 -1
- package/dist/views/sidebar/Registration/index.d.ts +0 -9
- package/dist/views/sidebar/Registration/index.js.map +0 -1
- package/dist/views/sidebar/Search/index.d.ts +0 -29
- package/dist/views/sidebar/Search/index.js.map +0 -1
- package/dist/views/sidebar/index.d.ts +0 -7
- package/dist/views/sidebar/index.js.map +0 -1
- package/dist/views/util.d.ts +0 -98
- package/dist/views/util.js.map +0 -1
- package/react-visual-diff.d.ts +0 -9
- /package/{compiled/common.d.ts → common.d.ts} +0 -0
- /package/{dist/common.js → common.js} +0 -0
- /package/{compiled/common.js.map → common.js.map} +0 -0
- /package/{compiled/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{compiled/index.js.map → index.js.map} +0 -0
- /package/{compiled/item-classes → item-classes}/Tree.d.ts +0 -0
- /package/{dist/item-classes → item-classes}/Tree.js +0 -0
- /package/{compiled/item-classes → item-classes}/Tree.js.map +0 -0
- /package/{compiled/item-classes → item-classes}/treeNodes.d.ts +0 -0
- /package/{dist/item-classes → item-classes}/treeNodes.js +0 -0
- /package/{compiled/item-classes → item-classes}/treeNodes.js.map +0 -0
- /package/{compiled/migrations → migrations}/initial.d.ts +0 -0
- /package/{dist/migrations → migrations}/initial.js +0 -0
- /package/{compiled/migrations → migrations}/initial.js.map +0 -0
- /package/{compiled/proposals → proposals}/ChangeRequestContext.d.ts +0 -0
- /package/{dist/proposals → proposals}/ChangeRequestContext.js +0 -0
- /package/{compiled/proposals → proposals}/ChangeRequestContext.js.map +0 -0
- /package/{compiled/proposals → proposals}/HistoryDrawer.d.ts +0 -0
- /package/{dist/proposals → proposals}/HistoryDrawer.js +0 -0
- /package/{compiled/proposals → proposals}/HistoryDrawer.js.map +0 -0
- /package/{compiled/proposals → proposals}/ListItem.d.ts +0 -0
- /package/{dist/proposals → proposals}/ListItem.js +0 -0
- /package/{compiled/proposals → proposals}/ListItem.js.map +0 -0
- /package/{compiled/proposals → proposals}/MetaProperties.d.ts +0 -0
- /package/{dist/proposals → proposals}/MetaProperties.js +0 -0
- /package/{compiled/proposals → proposals}/MetaProperties.js.map +0 -0
- /package/{compiled/proposals → proposals}/NewProposalMenu.d.ts +0 -0
- /package/{dist/proposals → proposals}/NewProposalMenu.js +0 -0
- /package/{compiled/proposals → proposals}/NewProposalMenu.js.map +0 -0
- /package/{compiled/proposals → proposals}/ProposalBrowser.d.ts +0 -0
- /package/{dist/proposals → proposals}/ProposalBrowser.js +0 -0
- /package/{compiled/proposals → proposals}/ProposalBrowser.js.map +0 -0
- /package/{compiled/proposals → proposals}/ProposalDetail.d.ts +0 -0
- /package/{dist/proposals → proposals}/ProposalDetail.js +0 -0
- /package/{compiled/proposals → proposals}/ProposalDetail.js.map +0 -0
- /package/{compiled/proposals → proposals}/ProposalItem.d.ts +0 -0
- /package/{dist/proposals → proposals}/ProposalItem.js +0 -0
- /package/{compiled/proposals → proposals}/ProposalItem.js.map +0 -0
- /package/{compiled/proposals → proposals}/ProposalSummary.d.ts +0 -0
- /package/{dist/proposals → proposals}/ProposalSummary.js +0 -0
- /package/{compiled/proposals → proposals}/ProposalSummary.js.map +0 -0
- /package/{compiled/proposals → proposals}/ProposalTab.d.ts +0 -0
- /package/{dist/proposals → proposals}/ProposalTab.js +0 -0
- /package/{compiled/proposals → proposals}/ProposalTab.js.map +0 -0
- /package/{compiled/proposals → proposals}/ProposalType.d.ts +0 -0
- /package/{dist/proposals → proposals}/ProposalType.js +0 -0
- /package/{compiled/proposals → proposals}/ProposalType.js.map +0 -0
- /package/{compiled/proposals → proposals}/ProposalWorkspace.d.ts +0 -0
- /package/{dist/proposals → proposals}/ProposalWorkspace.js +0 -0
- /package/{compiled/proposals → proposals}/ProposalWorkspace.js.map +0 -0
- /package/{compiled/proposals → proposals}/Search.d.ts +0 -0
- /package/{dist/proposals → proposals}/Search.js +0 -0
- /package/{compiled/proposals → proposals}/Search.js.map +0 -0
- /package/{compiled/proposals → proposals}/TransitionHistory.d.ts +0 -0
- /package/{dist/proposals → proposals}/TransitionHistory.js +0 -0
- /package/{compiled/proposals → proposals}/TransitionHistory.js.map +0 -0
- /package/{compiled/proposals → proposals}/TransitionOptions.d.ts +0 -0
- /package/{dist/proposals → proposals}/TransitionOptions.js +0 -0
- /package/{compiled/proposals → proposals}/TransitionOptions.js.map +0 -0
- /package/{compiled/proposals → proposals}/actionableGroups/Tree.d.ts +0 -0
- /package/{dist/proposals → proposals}/actionableGroups/Tree.js +0 -0
- /package/{compiled/proposals → proposals}/actionableGroups/Tree.js.map +0 -0
- /package/{compiled/proposals → proposals}/actionableGroups/queries.d.ts +0 -0
- /package/{dist/proposals → proposals}/actionableGroups/queries.js +0 -0
- /package/{compiled/proposals → proposals}/actionableGroups/queries.js.map +0 -0
- /package/{compiled/proposals → proposals}/actionableGroups/treeNodes.d.ts +0 -0
- /package/{dist/proposals → proposals}/actionableGroups/treeNodes.js +0 -0
- /package/{compiled/proposals → proposals}/actionableGroups/treeNodes.js.map +0 -0
- /package/{compiled/proposals → proposals}/actionableGroups/types.d.ts +0 -0
- /package/{dependencies-local/extension-kit/i18n → proposals/actionableGroups}/types.js +0 -0
- /package/{compiled/proposals → proposals}/actionableGroups/types.js.map +0 -0
- /package/{compiled/proposals → proposals}/index.d.ts +0 -0
- /package/{dist/proposals → proposals}/index.js +0 -0
- /package/{compiled/proposals → proposals}/index.js.map +0 -0
- /package/{compiled/proposals → proposals}/objectChangeset.d.ts +0 -0
- /package/{dist/proposals → proposals}/objectChangeset.js +0 -0
- /package/{compiled/proposals → proposals}/objectChangeset.js.map +0 -0
- /package/{compiled/proposals → proposals}/queries.d.ts +0 -0
- /package/{dist/proposals → proposals}/queries.js +0 -0
- /package/{compiled/proposals → proposals}/queries.js.map +0 -0
- /package/{compiled/proposals → proposals}/types.d.ts +0 -0
- /package/{dist/proposals → proposals}/types.js +0 -0
- /package/{compiled/proposals → proposals}/types.js.map +0 -0
- /package/{compiled/types → types}/index.d.ts +0 -0
- /package/{dist/types → types}/index.js +0 -0
- /package/{compiled/types → types}/index.js.map +0 -0
- /package/{compiled/types → types}/item.d.ts +0 -0
- /package/{dist/types → types}/item.js +0 -0
- /package/{compiled/types → types}/item.js.map +0 -0
- /package/{compiled/types → types}/register.d.ts +0 -0
- /package/{dist/types → types}/register.js +0 -0
- /package/{compiled/types → types}/register.js.map +0 -0
- /package/{compiled/types → types}/registry.d.ts +0 -0
- /package/{dist/types → types}/registry.js +0 -0
- /package/{compiled/types → types}/registry.js.map +0 -0
- /package/{compiled/types → types}/stakeholder.d.ts +0 -0
- /package/{dist/types → types}/stakeholder.js +0 -0
- /package/{compiled/types → types}/stakeholder.js.map +0 -0
- /package/{compiled/types → types}/util.d.ts +0 -0
- /package/{dist/types → types}/util.js +0 -0
- /package/{compiled/types → types}/util.js.map +0 -0
- /package/{compiled/types → types}/views.d.ts +0 -0
- /package/{dist/types → types}/views.js +0 -0
- /package/{compiled/types → types}/views.js.map +0 -0
- /package/{compiled/views → views}/AnnotatedChange.d.ts +0 -0
- /package/{dist/views → views}/AnnotatedChange.js +0 -0
- /package/{compiled/views → views}/AnnotatedChange.js.map +0 -0
- /package/{compiled/views → views}/BrowserCtx.d.ts +0 -0
- /package/{dist/views → views}/BrowserCtx.js +0 -0
- /package/{compiled/views → views}/BrowserCtx.js.map +0 -0
- /package/{compiled/views → views}/FilterCriteria/CRITERIA_CONFIGURATION.d.ts +0 -0
- /package/{dist/views → views}/FilterCriteria/CRITERIA_CONFIGURATION.js +0 -0
- /package/{compiled/views → views}/FilterCriteria/CRITERIA_CONFIGURATION.js.map +0 -0
- /package/{compiled/views → views}/FilterCriteria/criteriaGroupToQueryExpression.d.ts +0 -0
- /package/{dist/views → views}/FilterCriteria/criteriaGroupToQueryExpression.js +0 -0
- /package/{compiled/views → views}/FilterCriteria/criteriaGroupToQueryExpression.js.map +0 -0
- /package/{compiled/views → views}/FilterCriteria/criteriaGroupToSummary.d.ts +0 -0
- /package/{dist/views → views}/FilterCriteria/criteriaGroupToSummary.js +0 -0
- /package/{compiled/views → views}/FilterCriteria/criteriaGroupToSummary.js.map +0 -0
- /package/{compiled/views → views}/FilterCriteria/criteriaToNodes.d.ts +0 -0
- /package/{dist/views → views}/FilterCriteria/criteriaToNodes.js +0 -0
- /package/{compiled/views → views}/FilterCriteria/criteriaToNodes.js.map +0 -0
- /package/{compiled/views → views}/FilterCriteria/index.d.ts +0 -0
- /package/{dist/views → views}/FilterCriteria/index.js +0 -0
- /package/{compiled/views → views}/FilterCriteria/index.js.map +0 -0
- /package/{compiled/views → views}/FilterCriteria/models.d.ts +0 -0
- /package/{dist/views → views}/FilterCriteria/models.js +0 -0
- /package/{compiled/views → views}/FilterCriteria/models.js.map +0 -0
- /package/{compiled/views → views}/FilterCriteria/mutateGroup.d.ts +0 -0
- /package/{dist/views → views}/FilterCriteria/mutateGroup.js +0 -0
- /package/{compiled/views → views}/FilterCriteria/mutateGroup.js.map +0 -0
- /package/{compiled/views → views}/GenericRelatedItemView.d.ts +0 -0
- /package/{dist/views → views}/GenericRelatedItemView.js +0 -0
- /package/{compiled/views → views}/GenericRelatedItemView.js.map +0 -0
- /package/{compiled/views → views}/ItemDetailsDrawer.d.ts +0 -0
- /package/{dist/views → views}/ItemDetailsDrawer.js +0 -0
- /package/{compiled/views → views}/ItemDetailsDrawer.js.map +0 -0
- /package/{compiled/views → views}/ItemSearchDrawer.d.ts +0 -0
- /package/{dist/views → views}/ItemSearchDrawer.js +0 -0
- /package/{compiled/views → views}/ItemSearchDrawer.js.map +0 -0
- /package/{compiled/views → views}/Party.d.ts +0 -0
- /package/{dist/views → views}/Party.js +0 -0
- /package/{compiled/views → views}/Party.js.map +0 -0
- /package/{compiled/views → views}/RegisterStakeholder.d.ts +0 -0
- /package/{dist/views → views}/RegisterStakeholder.js +0 -0
- /package/{compiled/views → views}/RegisterStakeholder.js.map +0 -0
- /package/{compiled/views → views}/RegisterVersion.d.ts +0 -0
- /package/{dist/views → views}/RegisterVersion.js +0 -0
- /package/{compiled/views → views}/RegisterVersion.js.map +0 -0
- /package/{compiled/views → views}/SearchQuery.d.ts +0 -0
- /package/{dist/views → views}/SearchQuery.js +0 -0
- /package/{compiled/views → views}/SearchQuery.js.map +0 -0
- /package/{compiled/views → views}/StatefulTree.d.ts +0 -0
- /package/{dist/views → views}/StatefulTree.js +0 -0
- /package/{compiled/views → views}/StatefulTree.js.map +0 -0
- /package/{compiled/views → views}/detail/AllItems.d.ts +0 -0
- /package/{dist/views → views}/detail/AllItems.js +0 -0
- /package/{compiled/views → views}/detail/AllItems.js.map +0 -0
- /package/{compiled/views → views}/detail/ChangeRequest/index.d.ts +0 -0
- /package/{dist/views → views}/detail/ChangeRequest/index.js +0 -0
- /package/{compiled/views → views}/detail/ChangeRequest/index.js.map +0 -0
- /package/{compiled/views → views}/detail/CustomView/index.d.ts +0 -0
- /package/{dist/views → views}/detail/CustomView/index.js +0 -0
- /package/{compiled/views → views}/detail/CustomView/index.js.map +0 -0
- /package/{compiled/views → views}/detail/ProposalWork.d.ts +0 -0
- /package/{dist/views → views}/detail/ProposalWork.js +0 -0
- /package/{compiled/views → views}/detail/ProposalWork.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/ActiveProposalDetails.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterHome/ActiveProposalDetails.js +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/ActiveProposalDetails.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/Block.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterHome/Block.js +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/Block.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/MetaSummary.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterHome/MetaSummary.js +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/MetaSummary.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/Proposal.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterHome/Proposal.js +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/Proposal.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/index.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterHome/index.js +0 -0
- /package/{compiled/views → views}/detail/RegisterHome/index.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterHome2/index.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterHome2/index.js +0 -0
- /package/{compiled/views → views}/detail/RegisterHome2/index.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterItem/RelatedItems.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterItem/RelatedItems.js +0 -0
- /package/{compiled/views → views}/detail/RegisterItem/RelatedItems.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterItem/SupersedingItemMenu.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterItem/SupersedingItemMenu.js +0 -0
- /package/{compiled/views → views}/detail/RegisterItem/SupersedingItemMenu.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterItem/index.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterItem/index.js +0 -0
- /package/{compiled/views → views}/detail/RegisterItem/index.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterItemClass.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterItemClass.js +0 -0
- /package/{compiled/views → views}/detail/RegisterItemClass.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterMeta/RegisterMetaForm.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterMeta/RegisterMetaForm.js +0 -0
- /package/{compiled/views → views}/detail/RegisterMeta/RegisterMetaForm.js.map +0 -0
- /package/{compiled/views → views}/detail/RegisterMeta/index.d.ts +0 -0
- /package/{dist/views → views}/detail/RegisterMeta/index.js +0 -0
- /package/{compiled/views → views}/detail/RegisterMeta/index.js.map +0 -0
- /package/{compiled/views → views}/detail/index.d.ts +0 -0
- /package/{dist/views → views}/detail/index.js +0 -0
- /package/{compiled/views → views}/detail/index.js.map +0 -0
- /package/{compiled/views → views}/diffing/InlineDiff.d.ts +0 -0
- /package/{dist/views → views}/diffing/InlineDiff.js +0 -0
- /package/{compiled/views → views}/diffing/InlineDiff.js.map +0 -0
- /package/{compiled/views → views}/diffing/StructuredDiff.d.ts +0 -0
- /package/{dist/views → views}/diffing/StructuredDiff.js +0 -0
- /package/{compiled/views → views}/diffing/StructuredDiff.js.map +0 -0
- /package/{compiled/views → views}/hooks/useCustomView.d.ts +0 -0
- /package/{dist/views → views}/hooks/useCustomView.js +0 -0
- /package/{compiled/views → views}/hooks/useCustomView.js.map +0 -0
- /package/{compiled/views → views}/hooks/useItemClassConfig.d.ts +0 -0
- /package/{dist/views → views}/hooks/useItemClassConfig.js +0 -0
- /package/{compiled/views → views}/hooks/useItemClassConfig.js.map +0 -0
- /package/{compiled/views → views}/hooks/useItemRef.d.ts +0 -0
- /package/{dist/views → views}/hooks/useItemRef.js +0 -0
- /package/{compiled/views → views}/hooks/useItemRef.js.map +0 -0
- /package/{compiled/views → views}/hooks/useLatestAcceptedProposal.d.ts +0 -0
- /package/{dist/views → views}/hooks/useLatestAcceptedProposal.js +0 -0
- /package/{compiled/views → views}/hooks/useLatestAcceptedProposal.js.map +0 -0
- /package/{compiled/views → views}/hooks/useRegisterVersion.d.ts +0 -0
- /package/{dist/views → views}/hooks/useRegisterVersion.js +0 -0
- /package/{compiled/views → views}/hooks/useRegisterVersion.js.map +0 -0
- /package/{compiled/views → views}/hooks/useSingleRegisterItemData.d.ts +0 -0
- /package/{dist/views → views}/hooks/useSingleRegisterItemData.js +0 -0
- /package/{compiled/views → views}/hooks/useSingleRegisterItemData.js.map +0 -0
- /package/{compiled/views → views}/hooks/useStakeholder.d.ts +0 -0
- /package/{dist/views → views}/hooks/useStakeholder.js +0 -0
- /package/{compiled/views → views}/hooks/useStakeholder.js.map +0 -0
- /package/{compiled/views → views}/index.d.ts +0 -0
- /package/{dist/views → views}/index.js +0 -0
- /package/{compiled/views → views}/index.js.map +0 -0
- /package/{compiled/views → views}/itemPathUtils.d.ts +0 -0
- /package/{dist/views → views}/itemPathUtils.js +0 -0
- /package/{compiled/views → views}/itemPathUtils.js.map +0 -0
- /package/{compiled/views → views}/itemQueryUtils.d.ts +0 -0
- /package/{dist/views → views}/itemQueryUtils.js +0 -0
- /package/{compiled/views → views}/itemQueryUtils.js.map +0 -0
- /package/{compiled/views → views}/protocolRegistry.d.ts +0 -0
- /package/{dist/views → views}/protocolRegistry.js +0 -0
- /package/{compiled/views → views}/protocolRegistry.js.map +0 -0
- /package/{compiled/views → views}/sidebar/Browse/index.d.ts +0 -0
- /package/{dist/views → views}/sidebar/Browse/index.js +0 -0
- /package/{compiled/views → views}/sidebar/Browse/index.js.map +0 -0
- /package/{compiled/views → views}/sidebar/ExportImport/ExportOptions.d.ts +0 -0
- /package/{dist/views → views}/sidebar/ExportImport/ExportOptions.js +0 -0
- /package/{compiled/views → views}/sidebar/ExportImport/ExportOptions.js.map +0 -0
- /package/{compiled/views → views}/sidebar/ExportImport/ImportOptions.d.ts +0 -0
- /package/{dist/views → views}/sidebar/ExportImport/ImportOptions.js +0 -0
- /package/{compiled/views → views}/sidebar/ExportImport/ImportOptions.js.map +0 -0
- /package/{compiled/views → views}/sidebar/ExportImport/index.d.ts +0 -0
- /package/{dist/views → views}/sidebar/ExportImport/index.js +0 -0
- /package/{compiled/views → views}/sidebar/ExportImport/index.js.map +0 -0
- /package/{compiled/views → views}/sidebar/ListItem.d.ts +0 -0
- /package/{dist/views → views}/sidebar/ListItem.js +0 -0
- /package/{compiled/views → views}/sidebar/ListItem.js.map +0 -0
- /package/{compiled/views → views}/sidebar/Registration/index.d.ts +0 -0
- /package/{dist/views → views}/sidebar/Registration/index.js +0 -0
- /package/{compiled/views → views}/sidebar/Registration/index.js.map +0 -0
- /package/{compiled/views → views}/sidebar/Search/index.d.ts +0 -0
- /package/{dist/views → views}/sidebar/Search/index.js +0 -0
- /package/{compiled/views → views}/sidebar/Search/index.js.map +0 -0
- /package/{compiled/views → views}/sidebar/index.d.ts +0 -0
- /package/{dist/views → views}/sidebar/index.js +0 -0
- /package/{compiled/views → views}/sidebar/index.js.map +0 -0
- /package/{compiled/views → views}/util.d.ts +0 -0
- /package/{dist/views → views}/util.js +0 -0
- /package/{compiled/views → views}/util.js.map +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContextProvider.js","sourceRoot":"","sources":["../../src/i18n/ContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAU9C,MAAM,mBAAmB,GAA4C,UAAU,KAAK;IAClF,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC;QAC3C,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,OAAO,EAAE,KAAK,CAAC,OAAiB;QAChC,QAAQ,EAAE,KAAK,CAAC,QAAkB;QAClC,MAAM,EAAE,CAAC,MAAoC,EAAE,EAAE;YAC/C,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QACnF,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,IAC1C,KAAK,CAAC,QAAQ,CACY,CAC9B,CAAC;AACJ,CAAC,CAAC;AAGF,eAAe,mBAAmB,CAAC","sourcesContent":["import React, { useState } from 'react';\n\nimport { SupportedLanguages } from './types';\nimport { I18nConfigContext } from './context';\n\n\nexport type I18nContextProviderProps<Languages extends SupportedLanguages> = {\n available: Languages\n default: keyof Languages\n selected: keyof Languages\n};\n\n\nconst I18nContextProvider: React.FC<I18nContextProviderProps<any>> = function (props) {\n const [langConfig, setLangConfig] = useState({\n available: props.available,\n default: props.default as string,\n selected: props.selected as string,\n select: (langId: keyof typeof props.available) => {\n setLangConfig(langConfig => Object.assign({}, langConfig, { selected: langId }));\n },\n });\n\n return (\n <I18nConfigContext.Provider value={langConfig}>\n {props.children}\n </I18nConfigContext.Provider>\n );\n};\n\n\nexport default I18nContextProvider;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SupportedLanguages, LangConfig } from './types';
|
|
3
|
-
export interface I18nConfigContextSpec extends LangConfig {
|
|
4
|
-
available: SupportedLanguages;
|
|
5
|
-
default: keyof SupportedLanguages & string;
|
|
6
|
-
selected: keyof SupportedLanguages & string;
|
|
7
|
-
select(id: string): void;
|
|
8
|
-
}
|
|
9
|
-
export declare const I18nConfigContext: React.Context<I18nConfigContextSpec>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.I18nConfigContext = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
const I18nConfigContext = _react.default.createContext({
|
|
13
|
-
available: {
|
|
14
|
-
en: 'English',
|
|
15
|
-
zh: 'Chinese',
|
|
16
|
-
ru: 'Russian'
|
|
17
|
-
},
|
|
18
|
-
default: 'en',
|
|
19
|
-
selected: 'en',
|
|
20
|
-
select: id => {}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
exports.I18nConfigContext = I18nConfigContext;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/i18n/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAwB;IAC1E,SAAS,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE;IAC1D,OAAO,EAAE,IAAa;IACtB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,CAAC,EAAU,EAAE,EAAE,GAAE,CAAC;CAC3B,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { SupportedLanguages, LangConfig } from './types';\n\n\nexport interface I18nConfigContextSpec extends LangConfig {\n available: SupportedLanguages,\n default: keyof SupportedLanguages & string,\n selected: keyof SupportedLanguages & string,\n select(id: string): void,\n}\n\n\nexport const I18nConfigContext = React.createContext<I18nConfigContextSpec>({\n available: { en: 'English', zh: 'Chinese', ru: 'Russian' },\n default: 'en' as const,\n selected: 'en',\n select: (id: string) => {},\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/i18n/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface SupportedLanguages { [id: string]: string }\nexport interface LangConfig { default: string, selected: string }\nexport interface Translatable<T> { [id: string]: T; }\n\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IButtonGroupProps, IButtonProps } from '@blueprintjs/core';
|
|
3
|
-
import { Translatable } from './types';
|
|
4
|
-
interface TranslatableComponentProps {
|
|
5
|
-
what: Translatable<string>;
|
|
6
|
-
}
|
|
7
|
-
export declare const Trans: React.FC<TranslatableComponentProps>;
|
|
8
|
-
interface LangSelectorProps {
|
|
9
|
-
value?: Translatable<any>;
|
|
10
|
-
groupProps?: IButtonGroupProps;
|
|
11
|
-
exclude?: string[];
|
|
12
|
-
untranslatedProps?: IButtonProps;
|
|
13
|
-
translatedProps?: IButtonProps;
|
|
14
|
-
}
|
|
15
|
-
export declare const LangSelector: React.FC<LangSelectorProps>;
|
|
16
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LangSelector = exports.Trans = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _core = require("@blueprintjs/core");
|
|
11
|
-
|
|
12
|
-
var _context = require("./context");
|
|
13
|
-
|
|
14
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
15
|
-
|
|
16
|
-
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; }
|
|
17
|
-
|
|
18
|
-
const Trans = function ({
|
|
19
|
-
what
|
|
20
|
-
}) {
|
|
21
|
-
const i18n = (0, _react.useContext)(_context.I18nConfigContext);
|
|
22
|
-
const translated = what[i18n.selected];
|
|
23
|
-
const untranslated = what[i18n.default];
|
|
24
|
-
return _react.default.createElement("span", null, translated || untranslated || '(malformed translatable string)');
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.Trans = Trans;
|
|
28
|
-
|
|
29
|
-
const LangSelector = function ({
|
|
30
|
-
exclude,
|
|
31
|
-
value,
|
|
32
|
-
untranslatedProps,
|
|
33
|
-
translatedProps,
|
|
34
|
-
groupProps
|
|
35
|
-
}) {
|
|
36
|
-
const i18n = (0, _react.useContext)(_context.I18nConfigContext);
|
|
37
|
-
return _react.default.createElement(_core.ButtonGroup, { ...groupProps
|
|
38
|
-
}, Object.keys(i18n.available).filter(langID => (exclude || []).indexOf(langID) < 0).map(langId => _react.default.createElement(LangSelectorButton, {
|
|
39
|
-
key: langId,
|
|
40
|
-
id: langId,
|
|
41
|
-
title: i18n.available[langId],
|
|
42
|
-
isSelected: langId === i18n.selected,
|
|
43
|
-
onSelect: () => i18n.select(langId),
|
|
44
|
-
untranslatedProps: untranslatedProps,
|
|
45
|
-
translatedProps: translatedProps,
|
|
46
|
-
hasTranslation: value !== undefined ? value[langId] !== undefined : undefined
|
|
47
|
-
})));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
exports.LangSelector = LangSelector;
|
|
51
|
-
|
|
52
|
-
const LangSelectorButton = function (props) {
|
|
53
|
-
return _react.default.createElement(_core.Button, {
|
|
54
|
-
active: props.isSelected,
|
|
55
|
-
onClick: props.onSelect,
|
|
56
|
-
...(!props.hasTranslation ? props.untranslatedProps : {}),
|
|
57
|
-
...(props.hasTranslation ? props.translatedProps : {})
|
|
58
|
-
}, props.id);
|
|
59
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widgets.js","sourceRoot":"","sources":["../../src/i18n/widgets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAmC,MAAM,mBAAmB,CAAC;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAM9C,MAAM,CAAC,MAAM,KAAK,GAAyC,UAAU,EAAE,IAAI,EAAE;IAC3E,MAAM,IAAI,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAExC,OAAO,kCAAO,UAAU,IAAI,YAAY,IAAI,iCAAiC,CAAQ,CAAC;AACxF,CAAC,CAAC;AAUF,MAAM,CAAC,MAAM,YAAY,GACzB,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE;IAC1E,MAAM,IAAI,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAE3C,OAAO,CACL,oBAAC,WAAW,OAAK,UAAU,IACxB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;QACxB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACrD,GAAG,CAAC,MAAM,CAAC,EAAE,CACf,oBAAC,kBAAkB,IACjB,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAC7B,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC,QAAQ,EACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EACnC,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,GACjF,CACH,CACW,CACf,CAAC;AACJ,CAAC,CAAC;AAYF,MAAM,kBAAkB,GAAsC,UAAU,KAAK;IAC3E,OAAO,CACL,oBAAC,MAAM,IACH,MAAM,EAAE,KAAK,CAAC,UAAU,EACxB,OAAO,EAAE,KAAK,CAAC,QAAQ,KACnB,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,KACtD,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,IACxD,KAAK,CAAC,EAAE,CACF,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useContext } from 'react';\nimport { Button, ButtonGroup, IButtonGroupProps, IButtonProps } from '@blueprintjs/core';\nimport { Translatable } from './types';\nimport { I18nConfigContext } from './context';\n\n\ninterface TranslatableComponentProps {\n what: Translatable<string>\n}\nexport const Trans: React.FC<TranslatableComponentProps> = function ({ what }) {\n const i18n = useContext(I18nConfigContext);\n const translated = what[i18n.selected];\n const untranslated = what[i18n.default];\n\n return <span>{translated || untranslated || '(malformed translatable string)'}</span>;\n};\n\n\ninterface LangSelectorProps {\n value?: Translatable<any>\n groupProps?: IButtonGroupProps\n exclude?: string[]\n untranslatedProps?: IButtonProps\n translatedProps?: IButtonProps\n}\nexport const LangSelector: React.FC<LangSelectorProps> =\nfunction ({ exclude, value, untranslatedProps, translatedProps, groupProps }) {\n const i18n = useContext(I18nConfigContext);\n\n return (\n <ButtonGroup {...groupProps}>\n {Object.keys(i18n.available).\n filter(langID => (exclude || []).indexOf(langID) < 0).\n map(langId =>\n <LangSelectorButton\n key={langId}\n id={langId}\n title={i18n.available[langId]}\n isSelected={langId === i18n.selected}\n onSelect={() => i18n.select(langId)}\n untranslatedProps={untranslatedProps}\n translatedProps={translatedProps}\n hasTranslation={(value !== undefined) ? (value[langId] !== undefined) : undefined}\n />\n )}\n </ButtonGroup>\n );\n};\n\n\ninterface LangSelectorButtonProps {\n id: string\n title: string\n isSelected: boolean\n onSelect: () => void\n hasTranslation?: boolean\n untranslatedProps?: IButtonProps\n translatedProps?: IButtonProps\n}\nconst LangSelectorButton: React.FC<LangSelectorButtonProps> = function (props) {\n return (\n <Button\n active={props.isSelected}\n onClick={props.onSelect}\n {...(!props.hasTranslation ? props.untranslatedProps : {})}\n {...(props.hasTranslation ? props.translatedProps : {})}>\n {props.id}\n </Button>\n );\n};\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ExtensionMaker } from './types/extension-maker';
|
|
2
|
-
/**
|
|
3
|
-
* The default export of Paneron extension’s extension.ts entry file
|
|
4
|
-
* should be the result of calling this function.
|
|
5
|
-
*/
|
|
6
|
-
export declare const makeExtension: ExtensionMaker;
|
|
7
|
-
import { DatasetContext } from './context';
|
|
8
|
-
import HelpTooltip from './widgets/HelpTooltip';
|
|
9
|
-
import PropertyView, { Select, TextInput } from './widgets/Sidebar/PropertyView';
|
|
10
|
-
import makeSearchResultList from './widgets/SearchResultList';
|
|
11
|
-
import ErrorBoundary from './widgets/ErrorBoundary';
|
|
12
|
-
import { isObject } from './util';
|
|
13
|
-
import useDebounce from './useDebounce';
|
|
14
|
-
import { TabbedWorkspaceContext } from './widgets/TabbedWorkspace/context';
|
|
15
|
-
import TabbedWorkspace, { type TabbedWorkspaceProps } from './widgets/TabbedWorkspace';
|
|
16
|
-
export { DatasetContext, HelpTooltip, ErrorBoundary, makeSearchResultList, isObject, useDebounce, PropertyView, Select, TextInput, TabbedWorkspace, TabbedWorkspaceContext, TabbedWorkspaceProps, };
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "DatasetContext", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _context.DatasetContext;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "HelpTooltip", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _HelpTooltip.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "PropertyView", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _PropertyView.default;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "Select", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _PropertyView.Select;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "TextInput", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _PropertyView.TextInput;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "makeSearchResultList", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _SearchResultList.default;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "ErrorBoundary", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _ErrorBoundary.default;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "isObject", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _util.isObject;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "useDebounce", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _useDebounce.default;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "TabbedWorkspaceContext", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _context2.TabbedWorkspaceContext;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "TabbedWorkspace", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _TabbedWorkspace.default;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
exports.makeExtension = void 0;
|
|
73
|
-
|
|
74
|
-
var _semver = _interopRequireDefault(require("semver"));
|
|
75
|
-
|
|
76
|
-
var _context = require("./context");
|
|
77
|
-
|
|
78
|
-
var _HelpTooltip = _interopRequireDefault(require("./widgets/HelpTooltip"));
|
|
79
|
-
|
|
80
|
-
var _PropertyView = _interopRequireWildcard(require("./widgets/Sidebar/PropertyView"));
|
|
81
|
-
|
|
82
|
-
var _SearchResultList = _interopRequireDefault(require("./widgets/SearchResultList"));
|
|
83
|
-
|
|
84
|
-
var _ErrorBoundary = _interopRequireDefault(require("./widgets/ErrorBoundary"));
|
|
85
|
-
|
|
86
|
-
var _util = require("./util");
|
|
87
|
-
|
|
88
|
-
var _useDebounce = _interopRequireDefault(require("./useDebounce"));
|
|
89
|
-
|
|
90
|
-
var _context2 = require("./widgets/TabbedWorkspace/context");
|
|
91
|
-
|
|
92
|
-
var _TabbedWorkspace = _interopRequireDefault(require("./widgets/TabbedWorkspace"));
|
|
93
|
-
|
|
94
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
95
|
-
|
|
96
|
-
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; }
|
|
97
|
-
|
|
98
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* The default export of Paneron extension’s extension.ts entry file
|
|
102
|
-
* should be the result of calling this function.
|
|
103
|
-
*/
|
|
104
|
-
const makeExtension = async options => {
|
|
105
|
-
//const objectSpecs = options.objects ?? [];
|
|
106
|
-
var _a, _b;
|
|
107
|
-
|
|
108
|
-
const exportFormats = (_a = options.exportFormats) !== null && _a !== void 0 ? _a : {};
|
|
109
|
-
const migration = (_b = options.datasetInitializer) !== null && _b !== void 0 ? _b : {
|
|
110
|
-
versionAfter: '1.0.0',
|
|
111
|
-
migrator: async function* defaultDatasetInitializer() {
|
|
112
|
-
yield {};
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
const mainView = options.mainView; //const objectSpecsWithCachedViews = (await Promise.all(objectSpecs.
|
|
116
|
-
// filter(spec => spec.views !== undefined).
|
|
117
|
-
// map(async (spec) => ({ ...spec, _viewCache: (await spec.views!()).default }))));
|
|
118
|
-
|
|
119
|
-
return {
|
|
120
|
-
mainView: (0, _context.withDatasetContext)(mainView),
|
|
121
|
-
requiredHostAppVersionSpec: options.requiredHostAppVersion,
|
|
122
|
-
getObjectView: ({
|
|
123
|
-
objectPath,
|
|
124
|
-
viewID
|
|
125
|
-
}) => {
|
|
126
|
-
return undefined; // const spec = Object.values(objectSpecsWithCachedViews).
|
|
127
|
-
// find(c => matchesPath(objectPath, c.matches));
|
|
128
|
-
// if (spec) {
|
|
129
|
-
// const view = spec._viewCache[viewID];
|
|
130
|
-
// return view;
|
|
131
|
-
// } else {
|
|
132
|
-
// console.error("Unable to find object view for object path", objectPath, viewID);
|
|
133
|
-
// throw new Error("Cannot find object view");
|
|
134
|
-
// }
|
|
135
|
-
},
|
|
136
|
-
exportFormats,
|
|
137
|
-
isCompatible: hostAppVersion => options.requiredHostAppVersion !== undefined && _semver.default.satisfies(hostAppVersion, options.requiredHostAppVersion),
|
|
138
|
-
getObjectSpecs: () => {
|
|
139
|
-
return []; //return objectSpecs;
|
|
140
|
-
},
|
|
141
|
-
getMigration: datasetVersion => Object.entries(options.datasetMigrations || {}).filter(([migrationVersionSpec, _]) => _semver.default.satisfies(datasetVersion, migrationVersionSpec)).map(([versionSpec, migration]) => ({
|
|
142
|
-
versionSpec,
|
|
143
|
-
migration
|
|
144
|
-
}))[0],
|
|
145
|
-
initialMigration: migration
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
exports.makeExtension = makeExtension;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAG/C;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IAC7D,4CAA4C;;IAE5C,MAAM,aAAa,GAAG,MAAA,OAAO,CAAC,aAAa,mCAAI,EAAE,CAAC;IAElD,MAAM,SAAS,GAAkB,MAAA,OAAO,CAAC,kBAAkB,mCAAI;QAC7D,YAAY,EAAE,OAAO;QACrB,QAAQ,EAAE,KAAK,SAAS,CAAC,CAAC,yBAAyB,KAAK,MAAM,EAAE,CAAA,CAAC,CAAC;KACnE,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAElC,oEAAoE;IACpE,6CAA6C;IAC7C,oFAAoF;IAEpF,OAAO;QACL,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,CAAC;QAEtC,0BAA0B,EAAE,OAAO,CAAC,sBAAsB;QAE1D,aAAa,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;YACxC,OAAO,SAAS,CAAC;YACjB,0DAA0D;YAC1D,mDAAmD;YACnD,cAAc;YACd,0CAA0C;YAC1C,iBAAiB;YACjB,WAAW;YACX,qFAAqF;YACrF,gDAAgD;YAChD,IAAI;QACN,CAAC;QAED,aAAa;QAEb,YAAY,EAAE,CAAC,cAAsB,EAAE,EAAE,CAAC,CACxC,OAAO,CAAC,sBAAsB,KAAK,SAAS;YAC5C,MAAM,CAAC,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,sBAAsB,CAAC,CACjE;QAED,cAAc,EAAE,GAAG,EAAE;YACnB,OAAO,EAAE,CAAA;YACT,qBAAqB;QACvB,CAAC;QAED,YAAY,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,CAChC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC;YAC/C,MAAM,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC,CAAC,EAAE,EAAE,CACnC,MAAM,CAAC,SAAS,CAAC,cAAc,EAAE,oBAAoB,CAAC,CACvD;YACD,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,EAAE,CAC/B,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAC7B,CAAC,CAAC,CAAC,CACL;QAED,gBAAgB,EAAE,SAAS;KACnB,CAAC;AACb,CAAC,CAAA;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,oBAAoB,MAAM,4BAA4B,CAAC;AAC9D,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,eAA8C,MAAM,2BAA2B,CAAC;AAEvF,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,QAAQ,EACR,WAAW,EAEX,YAAY,EACZ,MAAM,EACN,SAAS,EAET,eAAe,EACf,sBAAsB,GAEvB,CAAC","sourcesContent":["import semver from 'semver';\nimport type { ExtensionMaker } from './types/extension-maker';\nimport type { MigrationInfo } from './types/migrations';\nimport { withDatasetContext } from './context';\n\n\n/**\n * The default export of Paneron extension’s extension.ts entry file\n * should be the result of calling this function.\n */\nexport const makeExtension: ExtensionMaker = async (options) => {\n //const objectSpecs = options.objects ?? [];\n\n const exportFormats = options.exportFormats ?? {};\n\n const migration: MigrationInfo = options.datasetInitializer ?? {\n versionAfter: '1.0.0',\n migrator: async function* defaultDatasetInitializer() { yield {} },\n };\n\n const mainView = options.mainView;\n\n //const objectSpecsWithCachedViews = (await Promise.all(objectSpecs.\n // filter(spec => spec.views !== undefined).\n // map(async (spec) => ({ ...spec, _viewCache: (await spec.views!()).default }))));\n\n return {\n mainView: withDatasetContext(mainView),\n\n requiredHostAppVersionSpec: options.requiredHostAppVersion,\n\n getObjectView: ({ objectPath, viewID }) => {\n return undefined;\n // const spec = Object.values(objectSpecsWithCachedViews).\n // find(c => matchesPath(objectPath, c.matches));\n // if (spec) {\n // const view = spec._viewCache[viewID];\n // return view;\n // } else {\n // console.error(\"Unable to find object view for object path\", objectPath, viewID);\n // throw new Error(\"Cannot find object view\");\n // }\n },\n\n exportFormats,\n\n isCompatible: (hostAppVersion: string) => (\n options.requiredHostAppVersion !== undefined &&\n semver.satisfies(hostAppVersion, options.requiredHostAppVersion)\n ),\n\n getObjectSpecs: () => {\n return []\n //return objectSpecs;\n },\n\n getMigration: (datasetVersion) => (\n Object.entries(options.datasetMigrations || {}).\n filter(([migrationVersionSpec, _]) =>\n semver.satisfies(datasetVersion, migrationVersionSpec)\n ).\n map(([versionSpec, migration]) =>\n ({ versionSpec, migration })\n )[0]\n ),\n\n initialMigration: migration,\n } as const;\n}\n\n\nimport { DatasetContext } from './context';\nimport HelpTooltip from './widgets/HelpTooltip';\nimport PropertyView, { Select, TextInput } from './widgets/Sidebar/PropertyView';\nimport makeSearchResultList from './widgets/SearchResultList';\nimport ErrorBoundary from './widgets/ErrorBoundary';\nimport { isObject } from './util';\nimport useDebounce from './useDebounce';\nimport { TabbedWorkspaceContext } from './widgets/TabbedWorkspace/context';\nimport TabbedWorkspace, { type TabbedWorkspaceProps } from './widgets/TabbedWorkspace';\n\nexport {\n DatasetContext,\n HelpTooltip,\n ErrorBoundary,\n makeSearchResultList,\n isObject,\n useDebounce,\n\n PropertyView,\n Select,\n TextInput,\n\n TabbedWorkspace,\n TabbedWorkspaceContext,\n TabbedWorkspaceProps,\n};\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.matchesPath = matchesPath;
|
|
7
|
-
|
|
8
|
-
function matchesPath(p, rule) {
|
|
9
|
-
// Match by default
|
|
10
|
-
let matched = true; // Narrow by path prefix
|
|
11
|
-
|
|
12
|
-
if (rule.pathPrefix) {
|
|
13
|
-
matched = p.startsWith(rule.pathPrefix);
|
|
14
|
-
} // Narrow by path-matching function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (matched && rule.path) {
|
|
18
|
-
matched = matched && rule.path(p);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return matched;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/object-specs/index.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,WAAW,CAAC,CAAS,EAAE,IAAiB;IACtD,mBAAmB;IACnB,IAAI,OAAO,GAAY,IAAI,CAAC;IAE5B,wBAAwB;IACxB,IAAI,IAAI,CAAC,UAAU,EAAE;QACnB,OAAO,GAAG,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACzC;IAED,mCAAmC;IACnC,IAAI,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE;QACxB,OAAO,GAAG,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACnC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import type { PathMatcher } from '../types/object-spec';\n\n\nexport function matchesPath(p: string, rule: PathMatcher): boolean {\n // Match by default\n let matched: boolean = true;\n\n // Narrow by path prefix\n if (rule.pathPrefix) {\n matched = p.startsWith(rule.pathPrefix);\n }\n\n // Narrow by path-matching function\n if (matched && rule.path) {\n matched = matched && rule.path(p);\n }\n\n return matched;\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SerDesRule } from '../types/object-spec';
|
|
2
|
-
import { OnlyJSON } from '../util';
|
|
3
|
-
export declare const utf8Decoder: TextDecoder;
|
|
4
|
-
export declare const textEncoder: TextEncoder;
|
|
5
|
-
export declare function makePaneronObjectCompositeSerDesRule<T extends Record<string, any> & OnlyJSON<Record<string, any>> = any>(): SerDesRule<T>;
|
|
6
|
-
export declare function unflattenObject<T extends Record<string, any>>(parts: Record<string, any>): T;
|
|
7
|
-
export declare function flattenObject(obj: Record<string, any>, _prefix?: false | string, _result?: Record<string, any> | null): Record<string, any>;
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.makePaneronObjectCompositeSerDesRule = makePaneronObjectCompositeSerDesRule;
|
|
7
|
-
exports.unflattenObject = unflattenObject;
|
|
8
|
-
exports.flattenObject = flattenObject;
|
|
9
|
-
exports.textEncoder = exports.utf8Decoder = void 0;
|
|
10
|
-
const utf8Decoder = new TextDecoder('utf-8');
|
|
11
|
-
exports.utf8Decoder = utf8Decoder;
|
|
12
|
-
const textEncoder = new TextEncoder();
|
|
13
|
-
exports.textEncoder = textEncoder;
|
|
14
|
-
const stringSerDes = {
|
|
15
|
-
deserialize: buf => utf8Decoder.decode(buf),
|
|
16
|
-
serialize: val => textEncoder.encode(val)
|
|
17
|
-
};
|
|
18
|
-
const numberSerDes = {
|
|
19
|
-
deserialize: buf => parseInt(utf8Decoder.decode(buf), 10),
|
|
20
|
-
serialize: val => textEncoder.encode(val.toString())
|
|
21
|
-
};
|
|
22
|
-
const partSerDes = {
|
|
23
|
-
'text': stringSerDes,
|
|
24
|
-
'number': numberSerDes
|
|
25
|
-
}; //const EXT = '.pan';
|
|
26
|
-
|
|
27
|
-
/* Creates a spec for objects where a serialized object
|
|
28
|
-
is represented as a tree of buffers.
|
|
29
|
-
|
|
30
|
-
An object is represented as comprised from “parts”,
|
|
31
|
-
where each part corresponds to a buffer (e.g., file).
|
|
32
|
-
|
|
33
|
-
The default behavior is such that e.g.
|
|
34
|
-
|
|
35
|
-
{ title: "Hello world", foo: { bar: baz } }
|
|
36
|
-
|
|
37
|
-
after disassembly (basic flattening) would be represented as:
|
|
38
|
-
|
|
39
|
-
{ "/title": "Hello world", "/foo/bar": "baz" }
|
|
40
|
-
|
|
41
|
-
(On disk, title and foo/bar would be paths to files
|
|
42
|
-
relative to object root path.)
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
function makePaneronObjectCompositeSerDesRule() {
|
|
46
|
-
const assemble = unflattenObject;
|
|
47
|
-
const disassemble = flattenObject;
|
|
48
|
-
return {
|
|
49
|
-
deserialize: (rawData, opts) => {
|
|
50
|
-
function deserializePart(buf, partPath) {
|
|
51
|
-
var _a, _b;
|
|
52
|
-
|
|
53
|
-
return partSerDes[(_b = (_a = opts.parts[partPath]) === null || _a === void 0 ? void 0 : _a.dataType) !== null && _b !== void 0 ? _b : 'text'].deserialize(buf);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const parts = deserializeParts(rawData, deserializePart);
|
|
57
|
-
return assemble(parts);
|
|
58
|
-
},
|
|
59
|
-
serialize: (obj, opts) => {
|
|
60
|
-
function serializePart(data, partPath) {
|
|
61
|
-
var _a, _b;
|
|
62
|
-
|
|
63
|
-
return partSerDes[(_b = (_a = opts.parts[partPath]) === null || _a === void 0 ? void 0 : _a.dataType) !== null && _b !== void 0 ? _b : 'text'].serialize(data);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const parts = disassemble(obj);
|
|
67
|
-
return serializeParts(parts, serializePart);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
} // Object flattening and unflattening is based
|
|
71
|
-
// on original implementation from Tofandel’s answer: https://stackoverflow.com/a/59787588/247441
|
|
72
|
-
|
|
73
|
-
/* Aggregates parts (mapped to slash-separated paths) into a nested object.
|
|
74
|
-
|
|
75
|
-
E.g.:
|
|
76
|
-
|
|
77
|
-
{ /some/path: A, /foo: B, /some/other/path: C }
|
|
78
|
-
|
|
79
|
-
gets turned into:
|
|
80
|
-
|
|
81
|
-
{ foo: B, some: { path: A, other: { path: C } } }
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
function unflattenObject(parts) {
|
|
86
|
-
const result = {}; // Ideally should be typed as Partial<T>, but that causes problems down the line
|
|
87
|
-
|
|
88
|
-
for (const partPath of Object.keys(parts)) {
|
|
89
|
-
if (Object.prototype.hasOwnProperty.call(parts, partPath)) {
|
|
90
|
-
const keys = partPath.match(/^\/+[^\/]*|[^\/]*\/+$|(?:\/{2,}|[^\/])+(?:\/+$)?/g); // Matches a standalone slash in a key
|
|
91
|
-
//const keys = partPath.match(/^\.+[^.]*|[^.]*\.+$|(?:\.{2,}|[^.])+(?:\.+$)?/g);
|
|
92
|
-
|
|
93
|
-
if (keys) {
|
|
94
|
-
keys.reduce((accumulator, val, idx) => {
|
|
95
|
-
return accumulator[val] || (accumulator[val] = isNaN(Number(keys[idx + 1])) ? keys.length - 1 === idx ? parts[partPath] : {} : []);
|
|
96
|
-
}, result);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return result;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const POSIX_SEP = '/';
|
|
105
|
-
/* Recursively decomposes an arbitrarily nested object into a flat record
|
|
106
|
-
of slash-separated part paths mapped to respective structures.
|
|
107
|
-
|
|
108
|
-
E.g.:
|
|
109
|
-
|
|
110
|
-
{ foo: B, some: { path: A, other: { path: C } } }
|
|
111
|
-
|
|
112
|
-
gets turned into:
|
|
113
|
-
|
|
114
|
-
{ /some/path: A, /foo: B, /some/other/path: C }
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
function flattenObject(obj, _prefix = false, _result = null) {
|
|
118
|
-
const result = _result || {}; // Preserve empty objects and arrays, they are lost otherwise
|
|
119
|
-
|
|
120
|
-
if (_prefix !== false && typeof obj === 'object' && obj !== null && Object.keys(obj).length === 0) {
|
|
121
|
-
result[_prefix] = Array.isArray(obj) ? [] : {};
|
|
122
|
-
return result;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const prefix = _prefix !== false ? _prefix + POSIX_SEP : POSIX_SEP;
|
|
126
|
-
|
|
127
|
-
for (const i in obj) {
|
|
128
|
-
if (Object.prototype.hasOwnProperty.call(obj, i)) {
|
|
129
|
-
if (typeof obj[i] === 'object' && obj[i] !== null) {
|
|
130
|
-
// Recursion on deeper objects
|
|
131
|
-
flattenObject(obj[i], prefix + i, result);
|
|
132
|
-
} else {
|
|
133
|
-
result[prefix + i] = obj[i];
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return result;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function deserializeParts(buffers, partFromBuffer) {
|
|
142
|
-
const result = {};
|
|
143
|
-
|
|
144
|
-
for (const [p, buffer] of Object.entries(buffers)) {
|
|
145
|
-
result[p] = partFromBuffer(buffer, p);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return result;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function serializeParts(parts, partToBuffer) {
|
|
152
|
-
const result = {};
|
|
153
|
-
|
|
154
|
-
for (const [p, part] of Object.entries(parts)) {
|
|
155
|
-
result[p] = partToBuffer(part, p);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return result;
|
|
159
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paneron-object.js","sourceRoot":"","sources":["../../src/object-specs/paneron-object.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;AAS7C,MAAM,YAAY,GAAuB;IACvC,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC;IAC7C,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC;CAC5C,CAAC;AAEF,MAAM,YAAY,GAAuB;IACvC,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;IAC3D,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;CACvD,CAAC;AAEF,MAAM,UAAU,GAA2C;IACzD,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,YAAY;CACvB,CAAC;AAeF,qBAAqB;AAGrB;;;;;;;;;;;;;;;;EAgBE;AACF,MAAM,UAAU,oCAAoC;IAIlD,MAAM,QAAQ,GAAqB,eAAe,CAAC;IACnD,MAAM,WAAW,GAAoC,aAAa,CAAC;IAEnE,OAAO;QACL,WAAW,EAAE,CAAC,OAAO,EAAE,IAAmB,EAAE,EAAE;YAC5C,SAAS,eAAe,CAAC,GAAe,EAAE,QAAgB;;gBACxD,OAAO,UAAU,CAAC,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,0CAAE,QAAQ,mCAAI,MAAM,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YAC/E,CAAC;YACD,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;YACzD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;QACD,SAAS,EAAE,CAAC,GAAG,EAAE,IAAmB,EAAE,EAAE;YACtC,SAAS,aAAa,CAAC,IAAS,EAAE,QAAgB;;gBAChD,OAAO,UAAU,CAAC,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,0CAAE,QAAQ,mCAAI,MAAM,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAC9E,CAAC;YACD,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;YAC/B,OAAO,cAAc,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;QAC9C,CAAC;KACF,CAAC;AACJ,CAAC;AAGD,8CAA8C;AAC9C,iGAAiG;AAEjG;;;;;;;;;EASE;AAEF,MAAM,UAAU,eAAe,CAC9B,KAA0B;IACzB,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,gFAAgF;IAEhF,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QACzC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE;YAEzD,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;YACjF,sCAAsC;YACtC,gFAAgF;YAEhF,IAAI,IAAI,EAAE;gBACR,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;oBACpC,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CACzB,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;wBAC9C,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,GAAG;4BACxB,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;4BACjB,CAAC,CAAC,EAAE,CAAC;wBACP,CAAC,CAAC,EAAE,CAAC,CACR,CAAC;gBACJ,CAAC,EAAE,MAAM,CAAC,CAAC;aACZ;SACF;KACF;IAED,OAAO,MAAW,CAAC;AACrB,CAAC;AAGD,MAAM,SAAS,GAAG,GAAG,CAAA;AAGrB;;;;;;;;;;EAUE;AACF,MAAM,UAAU,aAAa,CAC3B,GAAwB,EACxB,UAA0B,KAAK,EAC/B,UAAsC,IAAI;IAE1C,MAAM,MAAM,GAAwB,OAAO,IAAI,EAAE,CAAC;IAElD,6DAA6D;IAC7D,IAAI,OAAO,KAAK,KAAK;QACjB,OAAO,GAAG,KAAK,QAAQ;QACvB,GAAG,KAAK,IAAI;QACZ,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACjC,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/C,OAAO,MAAM,CAAC;KACf;IAED,MAAM,MAAM,GAAG,OAAO,KAAK,KAAK;QAC9B,CAAC,CAAC,CAAC,OAAO,GAAG,SAAS,CAAC;QACvB,CAAC,CAAC,SAAS,CAAC;IAEd,KAAK,MAAM,CAAC,IAAI,GAAG,EAAE;QACnB,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE;YAChD,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;gBACjD,8BAA8B;gBAC9B,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;aAC3C;iBAAM;gBACL,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;aAC7B;SACF;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAGD,SAAS,gBAAgB,CACvB,OAAmC,EACnC,cAAyD;IAEzD,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,KAAK,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACjD,MAAM,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;KACvC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAGD,SAAS,cAAc,CACrB,KAA0B,EAC1B,YAAqD;IAErD,MAAM,MAAM,GAA+B,EAAE,CAAC;IAC9C,KAAK,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAC7C,MAAM,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KACnC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { SerDesRule } from '../types/object-spec';\nimport { OnlyJSON } from '../util';\n\n\nexport const utf8Decoder = new TextDecoder('utf-8');\nexport const textEncoder = new TextEncoder();\n\n\ninterface PartSerDes<T> {\n deserialize: (buf: Uint8Array) => T\n serialize: (obj: T) => Uint8Array\n}\n\n\nconst stringSerDes: PartSerDes<string> = {\n deserialize: (buf) => utf8Decoder.decode(buf),\n serialize: (val) => textEncoder.encode(val),\n};\n\nconst numberSerDes: PartSerDes<number> = {\n deserialize: (buf) => parseInt(utf8Decoder.decode(buf), 10),\n serialize: (val) => textEncoder.encode(val.toString()),\n};\n\nconst partSerDes: { [key in DataType]: PartSerDes<any> } = {\n 'text': stringSerDes,\n 'number': numberSerDes,\n};\n\n\ninterface PartSerDesOptions {\n dataType: DataType\n}\n\ninterface SerDesOptions {\n parts: {\n [propertyPath: string]: PartSerDesOptions\n }\n}\n\ntype DataType = 'text' | 'number';\n\n//const EXT = '.pan';\n\n\n/* Creates a spec for objects where a serialized object\n is represented as a tree of buffers.\n\n An object is represented as comprised from “parts”,\n where each part corresponds to a buffer (e.g., file).\n\n The default behavior is such that e.g.\n\n { title: \"Hello world\", foo: { bar: baz } }\n\n after disassembly (basic flattening) would be represented as:\n\n { \"/title\": \"Hello world\", \"/foo/bar\": \"baz\" }\n\n (On disk, title and foo/bar would be paths to files\n relative to object root path.)\n*/\nexport function makePaneronObjectCompositeSerDesRule\n<T extends Record<string, any> & OnlyJSON<Record<string, any>> = any>\n():\nSerDesRule<T> {\n const assemble: (data: any) => T = unflattenObject;\n const disassemble: (obj: T) => Record<string, any> = flattenObject;\n\n return {\n deserialize: (rawData, opts: SerDesOptions) => {\n function deserializePart(buf: Uint8Array, partPath: string): any {\n return partSerDes[opts.parts[partPath]?.dataType ?? 'text'].deserialize(buf);\n }\n const parts = deserializeParts(rawData, deserializePart);\n return assemble(parts);\n },\n serialize: (obj, opts: SerDesOptions) => {\n function serializePart(data: any, partPath: string): Uint8Array {\n return partSerDes[opts.parts[partPath]?.dataType ?? 'text'].serialize(data);\n }\n const parts = disassemble(obj);\n return serializeParts(parts, serializePart);\n },\n };\n}\n\n\n// Object flattening and unflattening is based\n// on original implementation from Tofandel’s answer: https://stackoverflow.com/a/59787588/247441\n\n/* Aggregates parts (mapped to slash-separated paths) into a nested object.\n\n E.g.:\n\n { /some/path: A, /foo: B, /some/other/path: C }\n \n gets turned into:\n\n { foo: B, some: { path: A, other: { path: C } } }\n*/\n\nexport function unflattenObject<T extends Record<string, any>>\n(parts: Record<string, any>): T {\n const result: Record<string, any> = {};\n // Ideally should be typed as Partial<T>, but that causes problems down the line\n\n for (const partPath of Object.keys(parts)) {\n if (Object.prototype.hasOwnProperty.call(parts, partPath)) {\n\n const keys = partPath.match(/^\\/+[^\\/]*|[^\\/]*\\/+$|(?:\\/{2,}|[^\\/])+(?:\\/+$)?/g);\n // Matches a standalone slash in a key\n //const keys = partPath.match(/^\\.+[^.]*|[^.]*\\.+$|(?:\\.{2,}|[^.])+(?:\\.+$)?/g);\n\n if (keys) {\n keys.reduce((accumulator, val, idx) => {\n return accumulator[val] || (\n (accumulator[val] = isNaN(Number(keys[idx + 1]))\n ? (keys.length - 1 === idx\n ? parts[partPath]\n : {})\n : [])\n );\n }, result);\n }\n }\n }\n\n return result as T;\n}\n\n\nconst POSIX_SEP = '/'\n\n\n/* Recursively decomposes an arbitrarily nested object into a flat record\n of slash-separated part paths mapped to respective structures.\n\n E.g.:\n\n { foo: B, some: { path: A, other: { path: C } } }\n \n gets turned into:\n\n { /some/path: A, /foo: B, /some/other/path: C }\n*/\nexport function flattenObject(\n obj: Record<string, any>,\n _prefix: false | string = false,\n _result: Record<string, any> | null = null,\n): Record<string, any> {\n const result: Record<string, any> = _result || {};\n\n // Preserve empty objects and arrays, they are lost otherwise\n if (_prefix !== false &&\n typeof obj === 'object' &&\n obj !== null &&\n Object.keys(obj).length === 0) {\n result[_prefix] = Array.isArray(obj) ? [] : {};\n return result;\n }\n\n const prefix = _prefix !== false\n ? (_prefix + POSIX_SEP)\n : POSIX_SEP;\n\n for (const i in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, i)) {\n if (typeof obj[i] === 'object' && obj[i] !== null) {\n // Recursion on deeper objects\n flattenObject(obj[i], prefix + i, result);\n } else {\n result[prefix + i] = obj[i];\n }\n }\n }\n return result;\n}\n\n\nfunction deserializeParts(\n buffers: Record<string, Uint8Array>,\n partFromBuffer: (buffer: Uint8Array, path: string) => any,\n): Record<string, any> {\n const result: Record<string, any> = {};\n for (const [p, buffer] of Object.entries(buffers)) {\n result[p] = partFromBuffer(buffer, p);\n }\n return result;\n}\n\n\nfunction serializeParts(\n parts: Record<string, any>,\n partToBuffer: (data: any, path: string) => Uint8Array,\n): Record<string, Uint8Array> {\n const result: Record<string, Uint8Array> = {};\n for (const [p, part] of Object.entries(parts)) {\n result[p] = partToBuffer(part, p);\n }\n return result;\n}\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Serialization/deserialization rules describe how physical buffers
|
|
3
|
-
* are represented as JS structures at runtime.
|
|
4
|
-
*
|
|
5
|
-
* This is Node-only code due to use of Buffer API.
|
|
6
|
-
*/
|
|
7
|
-
import { type PointerInfo as LFSPointerInfo } from '@riboseinc/isogit-lfs/pointers';
|
|
8
|
-
import type { SerDesRule, SerDesRuleName, SerDesRuleNameExtensionMap } from '../types/object-spec';
|
|
9
|
-
import type { OnlyJSON } from '../util';
|
|
10
|
-
import type { BufferDataset } from '../types/buffers';
|
|
11
|
-
/** Returns serialization/deserialization rule that works for given object. */
|
|
12
|
-
export declare function findSerDesRuleForObject(objPath: string, obj: Record<string, any>, overrides?: {
|
|
13
|
-
extensions?: SerDesRuleNameExtensionMap;
|
|
14
|
-
}): SerDesRule;
|
|
15
|
-
/** Returns serialization/deserialization rule that works for given buffer dataset. */
|
|
16
|
-
export declare function findSerDesRuleForBuffers(objPath: string, buffers: BufferDataset, overrides?: {
|
|
17
|
-
extensions?: SerDesRuleNameExtensionMap;
|
|
18
|
-
}): SerDesRule;
|
|
19
|
-
export declare function getSerDesRuleByName(ruleName: SerDesRuleName): SerDesRule;
|
|
20
|
-
export declare const lfsPointer: SerDesRule<{
|
|
21
|
-
lfsPointerInfo: LFSPointerInfo;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const textFile: SerDesRule<{
|
|
24
|
-
asText: string;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const jsonFile: SerDesRule<OnlyJSON<Record<string, any>>>;
|
|
27
|
-
export declare const yamlFile: SerDesRule<OnlyJSON<Record<string, any>>>;
|
|
28
|
-
export declare const mmelFile: SerDesRule<OnlyJSON<Record<string, any>>>;
|
|
29
|
-
export declare const binaryFile: SerDesRule<{
|
|
30
|
-
binaryData: Uint8Array;
|
|
31
|
-
asBase64: string;
|
|
32
|
-
}>;
|