@mistriwork/kit 1.0.0-rc.10 → 1.0.0-rc.12
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/dist/client/actionGrants.d.ts +21 -0
- package/dist/client/actionGrants.js +24 -0
- package/dist/client/addressMount.d.ts +67 -0
- package/dist/client/addressMount.js +136 -0
- package/dist/client/app.d.ts +10 -0
- package/dist/client/app.js +976 -0
- package/dist/client/boot.d.ts +1 -0
- package/dist/client/boot.js +37 -0
- package/dist/client/brandLook.css +125 -0
- package/dist/client/breakdownBatch.d.ts +34 -0
- package/dist/client/breakdownBatch.js +115 -0
- package/dist/client/bulkActions.d.ts +66 -0
- package/dist/client/bulkActions.js +171 -0
- package/dist/client/chart.d.ts +20 -0
- package/dist/client/chart.js +80 -0
- package/dist/client/clauses.d.ts +121 -0
- package/dist/client/clauses.js +276 -0
- package/dist/client/columns.d.ts +77 -0
- package/dist/client/columns.js +102 -0
- package/dist/client/components/Accordion.d.ts +26 -0
- package/dist/client/components/Accordion.js +44 -0
- package/dist/client/components/ApiOperations.d.ts +3 -0
- package/dist/client/components/ApiOperations.js +162 -0
- package/dist/client/components/AppColumnMenu.d.ts +66 -0
- package/dist/client/components/AppColumnMenu.js +59 -0
- package/dist/client/components/AppColumnMenuPopups.d.ts +21 -0
- package/dist/client/components/AppColumnMenuPopups.js +92 -0
- package/dist/client/components/AppFooter.css +17 -0
- package/dist/client/components/AppFooter.d.ts +23 -0
- package/dist/client/components/AppFooter.js +12 -0
- package/dist/client/components/AppIssues.d.ts +4 -0
- package/dist/client/components/AppIssues.js +18 -0
- package/dist/client/components/AppList.d.ts +20 -0
- package/dist/client/components/AppList.js +696 -0
- package/dist/client/components/AttachmentList.d.ts +45 -0
- package/dist/client/components/AttachmentList.js +178 -0
- package/dist/client/components/BoardList.css +9 -0
- package/dist/client/components/Breakdown.d.ts +11 -0
- package/dist/client/components/Breakdown.js +157 -0
- package/dist/client/components/BreakdownRoom.d.ts +4 -0
- package/dist/client/components/BreakdownRoom.js +48 -0
- package/dist/client/components/CardsList.d.ts +23 -0
- package/dist/client/components/CardsList.js +209 -0
- package/dist/client/components/Chart.css +165 -0
- package/dist/client/components/Chart.d.ts +194 -0
- package/dist/client/components/Chart.js +801 -0
- package/dist/client/components/ChartFigure.d.ts +82 -0
- package/dist/client/components/ChartFigure.js +102 -0
- package/dist/client/components/ChartShapes.css +213 -0
- package/dist/client/components/ChartShapes.d.ts +63 -0
- package/dist/client/components/ChartShapes.js +393 -0
- package/dist/client/components/Checklist.css +16 -0
- package/dist/client/components/Composer.d.ts +1 -0
- package/dist/client/components/Composer.js +331 -0
- package/dist/client/components/Content.d.ts +8 -0
- package/dist/client/components/Content.js +170 -0
- package/dist/client/components/CountedLabel.d.ts +10 -0
- package/dist/client/components/CountedLabel.js +26 -0
- package/dist/client/components/Crumbs.d.ts +11 -0
- package/dist/client/components/Crumbs.js +142 -0
- package/dist/client/components/DashboardList.css +7 -0
- package/dist/client/components/DashboardList.d.ts +9 -0
- package/dist/client/components/DashboardList.js +46 -0
- package/dist/client/components/DashboardNote.d.ts +21 -0
- package/dist/client/components/DashboardNote.js +22 -0
- package/dist/client/components/DateField.css +6 -0
- package/dist/client/components/DateField.d.ts +7 -0
- package/dist/client/components/DateField.js +27 -0
- package/dist/client/components/DefinedFields.d.ts +50 -0
- package/dist/client/components/DefinedFields.js +186 -0
- package/dist/client/components/DeleteButton.d.ts +30 -0
- package/dist/client/components/DeleteButton.js +198 -0
- package/dist/client/components/Diagram.d.ts +7 -0
- package/dist/client/components/Diagram.js +320 -0
- package/dist/client/components/Dressed.d.ts +31 -0
- package/dist/client/components/Dressed.js +138 -0
- package/dist/client/components/Dropdown.d.ts +14 -0
- package/dist/client/components/Dropdown.js +20 -0
- package/dist/client/components/EditLayoutButton.d.ts +13 -0
- package/dist/client/components/EditLayoutButton.js +7 -0
- package/dist/client/components/Editable.d.ts +47 -0
- package/dist/client/components/Editable.js +422 -0
- package/dist/client/components/ErrorBoundary.d.ts +40 -0
- package/dist/client/components/ErrorBoundary.js +41 -0
- package/dist/client/components/Export.d.ts +15 -0
- package/dist/client/components/Export.js +151 -0
- package/dist/client/components/ExportHold.d.ts +18 -0
- package/dist/client/components/ExportHold.js +30 -0
- package/dist/client/components/FavoriteStar.d.ts +5 -0
- package/dist/client/components/FavoriteStar.js +14 -0
- package/dist/client/components/FieldArranger.d.ts +28 -0
- package/dist/client/components/FieldArranger.js +82 -0
- package/dist/client/components/FilePreview.css +20 -0
- package/dist/client/components/FilePreview.d.ts +26 -0
- package/dist/client/components/FilePreview.js +170 -0
- package/dist/client/components/FilterBoxes.d.ts +76 -0
- package/dist/client/components/FilterBoxes.js +294 -0
- package/dist/client/components/FilterRail.css +100 -0
- package/dist/client/components/FilterRail.d.ts +61 -0
- package/dist/client/components/FilterRail.js +559 -0
- package/dist/client/components/Gallery.d.ts +11 -0
- package/dist/client/components/Gallery.js +53 -0
- package/dist/client/components/Grid.d.ts +122 -0
- package/dist/client/components/Grid.js +1115 -0
- package/dist/client/components/GridCellEditor.d.ts +35 -0
- package/dist/client/components/GridCellEditor.js +291 -0
- package/dist/client/components/GridSelection.d.ts +16 -0
- package/dist/client/components/GridSelection.js +28 -0
- package/dist/client/components/HelpPanel.d.ts +5 -0
- package/dist/client/components/HelpPanel.js +92 -0
- package/dist/client/components/History.d.ts +10 -0
- package/dist/client/components/History.js +22 -0
- package/dist/client/components/Icon.d.ts +31 -0
- package/dist/client/components/Icon.js +20 -0
- package/dist/client/components/JsonPreview.d.ts +5 -0
- package/dist/client/components/JsonPreview.js +25 -0
- package/dist/client/components/JsonValue.d.ts +4 -0
- package/dist/client/components/JsonValue.js +3 -0
- package/dist/client/components/JsonView.css +109 -0
- package/dist/client/components/JsonView.d.ts +3 -0
- package/dist/client/components/JsonView.js +118 -0
- package/dist/client/components/Landing.d.ts +19 -0
- package/dist/client/components/Landing.js +55 -0
- package/dist/client/components/LandingSurface.css +177 -0
- package/dist/client/components/LandingSurface.d.ts +42 -0
- package/dist/client/components/LandingSurface.js +108 -0
- package/dist/client/components/LayoutBuilder.d.ts +36 -0
- package/dist/client/components/LayoutBuilder.js +104 -0
- package/dist/client/components/Lightbox.d.ts +29 -0
- package/dist/client/components/Lightbox.js +62 -0
- package/dist/client/components/ListEmpty.css +13 -0
- package/dist/client/components/ListEmpty.d.ts +10 -0
- package/dist/client/components/ListEmpty.js +8 -0
- package/dist/client/components/ListFilterBar.css +76 -0
- package/dist/client/components/ListFilterBar.d.ts +52 -0
- package/dist/client/components/ListFilterBar.js +304 -0
- package/dist/client/components/LiveNotices.css +105 -0
- package/dist/client/components/LiveNotices.d.ts +26 -0
- package/dist/client/components/LiveNotices.js +211 -0
- package/dist/client/components/MinorMoneyInput.d.ts +26 -0
- package/dist/client/components/MinorMoneyInput.js +50 -0
- package/dist/client/components/Modal.css +3 -0
- package/dist/client/components/MultiStepForm.css +122 -0
- package/dist/client/components/MultiStepForm.d.ts +59 -0
- package/dist/client/components/MultiStepForm.js +216 -0
- package/dist/client/components/NavGlyph.d.ts +14 -0
- package/dist/client/components/NavGlyph.js +27 -0
- package/dist/client/components/Nested.d.ts +21 -0
- package/dist/client/components/Nested.js +86 -0
- package/dist/client/components/NewRecord.d.ts +89 -0
- package/dist/client/components/NewRecord.js +897 -0
- package/dist/client/components/NewRecordButton.d.ts +13 -0
- package/dist/client/components/NewRecordButton.js +28 -0
- package/dist/client/components/Notes.css +39 -0
- package/dist/client/components/Notes.d.ts +59 -0
- package/dist/client/components/Notes.js +96 -0
- package/dist/client/components/OverflowMenu.d.ts +3 -0
- package/dist/client/components/OverflowMenu.js +60 -0
- package/dist/client/components/Page.d.ts +52 -0
- package/dist/client/components/Page.js +237 -0
- package/dist/client/components/PageCurrent.d.ts +38 -0
- package/dist/client/components/PageCurrent.js +27 -0
- package/dist/client/components/PageEmptyRun.d.ts +18 -0
- package/dist/client/components/PageEmptyRun.js +118 -0
- package/dist/client/components/PageFields.d.ts +3 -0
- package/dist/client/components/PageFields.js +294 -0
- package/dist/client/components/PageFlowDiagram.css +193 -0
- package/dist/client/components/PageFlowDiagram.d.ts +95 -0
- package/dist/client/components/PageFlowDiagram.js +276 -0
- package/dist/client/components/PageFlows.css +27 -0
- package/dist/client/components/PageFlows.d.ts +54 -0
- package/dist/client/components/PageFlows.js +92 -0
- package/dist/client/components/PageGroups.d.ts +43 -0
- package/dist/client/components/PageGroups.js +123 -0
- package/dist/client/components/PageHead.d.ts +28 -0
- package/dist/client/components/PageHead.js +279 -0
- package/dist/client/components/PageHeadline.d.ts +23 -0
- package/dist/client/components/PageHeadline.js +101 -0
- package/dist/client/components/PageHistory.d.ts +62 -0
- package/dist/client/components/PageHistory.js +160 -0
- package/dist/client/components/PageLayout.d.ts +22 -0
- package/dist/client/components/PageLayout.js +13 -0
- package/dist/client/components/PageMetrics.d.ts +11 -0
- package/dist/client/components/PageMetrics.js +252 -0
- package/dist/client/components/PageRelated.d.ts +70 -0
- package/dist/client/components/PageRelated.js +667 -0
- package/dist/client/components/PageRoom.d.ts +37 -0
- package/dist/client/components/PageRoom.js +277 -0
- package/dist/client/components/PageSectionBox.d.ts +28 -0
- package/dist/client/components/PageSectionBox.js +65 -0
- package/dist/client/components/PageSections.d.ts +38 -0
- package/dist/client/components/PageSections.js +352 -0
- package/dist/client/components/PageSkeleton.css +17 -0
- package/dist/client/components/PageSkeleton.d.ts +11 -0
- package/dist/client/components/PageSkeleton.js +25 -0
- package/dist/client/components/PageTimeline.d.ts +2 -0
- package/dist/client/components/PageTimeline.js +273 -0
- package/dist/client/components/Palette.d.ts +4 -0
- package/dist/client/components/Palette.js +176 -0
- package/dist/client/components/Peek.d.ts +1 -0
- package/dist/client/components/Peek.js +158 -0
- package/dist/client/components/PeekPanel.d.ts +16 -0
- package/dist/client/components/PeekPanel.js +120 -0
- package/dist/client/components/Picker.d.ts +13 -0
- package/dist/client/components/Picker.js +33 -0
- package/dist/client/components/Prefs.d.ts +3 -0
- package/dist/client/components/Prefs.js +121 -0
- package/dist/client/components/PresentationSwitch.d.ts +13 -0
- package/dist/client/components/PresentationSwitch.js +10 -0
- package/dist/client/components/Prompt.d.ts +35 -0
- package/dist/client/components/Prompt.js +114 -0
- package/dist/client/components/QrCode.css +11 -0
- package/dist/client/components/QrCode.d.ts +4 -0
- package/dist/client/components/QrCode.js +57 -0
- package/dist/client/components/QueueList.css +122 -0
- package/dist/client/components/QuickAdd.css +18 -0
- package/dist/client/components/QuickAdd.d.ts +11 -0
- package/dist/client/components/QuickAdd.js +53 -0
- package/dist/client/components/QuickAddOnDemand.d.ts +4 -0
- package/dist/client/components/QuickAddOnDemand.js +10 -0
- package/dist/client/components/Record.d.ts +36 -0
- package/dist/client/components/Record.js +385 -0
- package/dist/client/components/RecordGone.d.ts +7 -0
- package/dist/client/components/RecordGone.js +22 -0
- package/dist/client/components/RecordPicker.d.ts +59 -0
- package/dist/client/components/RecordPicker.js +299 -0
- package/dist/client/components/RecordSummaries.d.ts +55 -0
- package/dist/client/components/RecordSummaries.js +151 -0
- package/dist/client/components/RecordTags.d.ts +6 -0
- package/dist/client/components/RecordTags.js +119 -0
- package/dist/client/components/RecordTrailNav.d.ts +25 -0
- package/dist/client/components/RecordTrailNav.js +110 -0
- package/dist/client/components/RichText.d.ts +7 -0
- package/dist/client/components/RichText.js +82 -0
- package/dist/client/components/RichTextEditor.css +202 -0
- package/dist/client/components/RichTextEditor.d.ts +33 -0
- package/dist/client/components/RichTextEditor.js +348 -0
- package/dist/client/components/RichTextField.d.ts +26 -0
- package/dist/client/components/RichTextField.js +71 -0
- package/dist/client/components/Rooms.d.ts +35 -0
- package/dist/client/components/Rooms.js +276 -0
- package/dist/client/components/RowActions.d.ts +8 -0
- package/dist/client/components/RowActions.js +49 -0
- package/dist/client/components/RowHost.d.ts +110 -0
- package/dist/client/components/RowHost.js +212 -0
- package/dist/client/components/SavedViews.d.ts +25 -0
- package/dist/client/components/SavedViews.js +35 -0
- package/dist/client/components/SchemaExport.d.ts +15 -0
- package/dist/client/components/SchemaExport.js +42 -0
- package/dist/client/components/SectionPeriod.css +14 -0
- package/dist/client/components/SectionPeriod.d.ts +7 -0
- package/dist/client/components/SectionPeriod.js +14 -0
- package/dist/client/components/SetFieldDialog.d.ts +12 -0
- package/dist/client/components/SetFieldDialog.js +51 -0
- package/dist/client/components/Sidebar.d.ts +34 -0
- package/dist/client/components/Sidebar.js +398 -0
- package/dist/client/components/Skeleton.d.ts +35 -0
- package/dist/client/components/Skeleton.js +49 -0
- package/dist/client/components/SortMenu.d.ts +20 -0
- package/dist/client/components/SortMenu.js +45 -0
- package/dist/client/components/SplitListDetail.css +119 -0
- package/dist/client/components/SuggestBox.d.ts +29 -0
- package/dist/client/components/SuggestBox.js +60 -0
- package/dist/client/components/Summary.d.ts +14 -0
- package/dist/client/components/Summary.js +93 -0
- package/dist/client/components/TableRoom.d.ts +88 -0
- package/dist/client/components/TableRoom.js +246 -0
- package/dist/client/components/TableView.d.ts +111 -0
- package/dist/client/components/TableView.js +324 -0
- package/dist/client/components/ThMenu.d.ts +40 -0
- package/dist/client/components/ThMenu.js +163 -0
- package/dist/client/components/ThemeLab.d.ts +4 -0
- package/dist/client/components/ThemeLab.js +67 -0
- package/dist/client/components/TimelineSides.css +23 -0
- package/dist/client/components/TimelineSides.d.ts +7 -0
- package/dist/client/components/TimelineSides.js +9 -0
- package/dist/client/components/Tour.d.ts +12 -0
- package/dist/client/components/Tour.js +131 -0
- package/dist/client/components/Value.d.ts +38 -0
- package/dist/client/components/Value.js +172 -0
- package/dist/client/components/WorkPanel.d.ts +9 -0
- package/dist/client/components/WorkPanel.js +43 -0
- package/dist/client/components/WorkflowStatus.d.ts +6 -0
- package/dist/client/components/WorkflowStatus.js +44 -0
- package/dist/client/components/WriteConfirm.d.ts +4 -0
- package/dist/client/components/WriteConfirm.js +27 -0
- package/dist/client/components/appColumnMenuModel.d.ts +46 -0
- package/dist/client/components/appColumnMenuModel.js +51 -0
- package/dist/client/components/appListModel.d.ts +179 -0
- package/dist/client/components/appListModel.js +421 -0
- package/dist/client/components/appRooms.d.ts +106 -0
- package/dist/client/components/appRooms.js +133 -0
- package/dist/client/components/autoChart.d.ts +33 -0
- package/dist/client/components/autoChart.js +107 -0
- package/dist/client/components/avatarPhotos.d.ts +45 -0
- package/dist/client/components/avatarPhotos.js +93 -0
- package/dist/client/components/besideDetail.d.ts +1 -0
- package/dist/client/components/besideDetail.js +10 -0
- package/dist/client/components/boardNew.d.ts +2 -0
- package/dist/client/components/boardNew.js +8 -0
- package/dist/client/components/cardsModel.d.ts +11 -0
- package/dist/client/components/cardsModel.js +24 -0
- package/dist/client/components/chromeIcons.d.ts +16 -0
- package/dist/client/components/chromeIcons.js +16 -0
- package/dist/client/components/columnPresentation.d.ts +8 -0
- package/dist/client/components/columnPresentation.js +47 -0
- package/dist/client/components/componentSlot.d.ts +31 -0
- package/dist/client/components/componentSlot.js +76 -0
- package/dist/client/components/composerDraft.d.ts +16 -0
- package/dist/client/components/composerDraft.js +16 -0
- package/dist/client/components/conditionText.d.ts +14 -0
- package/dist/client/components/conditionText.js +45 -0
- package/dist/client/components/conditionWords.d.ts +37 -0
- package/dist/client/components/conditionWords.js +382 -0
- package/dist/client/components/crumbSlot.d.ts +14 -0
- package/dist/client/components/crumbSlot.js +49 -0
- package/dist/client/components/dashboardModel.d.ts +283 -0
- package/dist/client/components/dashboardModel.js +415 -0
- package/dist/client/components/dashboardParts.d.ts +9 -0
- package/dist/client/components/dashboardParts.js +18 -0
- package/dist/client/components/diagramModel.d.ts +83 -0
- package/dist/client/components/diagramModel.js +211 -0
- package/dist/client/components/dueOpen.d.ts +1 -0
- package/dist/client/components/dueOpen.js +23 -0
- package/dist/client/components/editInteraction.d.ts +20 -0
- package/dist/client/components/editInteraction.js +178 -0
- package/dist/client/components/favoriteNav.d.ts +6 -0
- package/dist/client/components/favoriteNav.js +31 -0
- package/dist/client/components/favorites.d.ts +23 -0
- package/dist/client/components/favorites.js +86 -0
- package/dist/client/components/filePreviewModel.d.ts +18 -0
- package/dist/client/components/filePreviewModel.js +21 -0
- package/dist/client/components/filterRailModel.d.ts +93 -0
- package/dist/client/components/filterRailModel.js +302 -0
- package/dist/client/components/formControlsStyle.d.ts +1 -0
- package/dist/client/components/formControlsStyle.js +3 -0
- package/dist/client/components/formDefaults.d.ts +17 -0
- package/dist/client/components/formDefaults.js +128 -0
- package/dist/client/components/gridArrange.d.ts +33 -0
- package/dist/client/components/gridArrange.js +62 -0
- package/dist/client/components/gridCellModel.d.ts +32 -0
- package/dist/client/components/gridCellModel.js +42 -0
- package/dist/client/components/gridSizing.d.ts +89 -0
- package/dist/client/components/gridSizing.js +295 -0
- package/dist/client/components/groupMoves.d.ts +44 -0
- package/dist/client/components/groupMoves.js +295 -0
- package/dist/client/components/groupOrder.d.ts +43 -0
- package/dist/client/components/groupOrder.js +63 -0
- package/dist/client/components/inputRenderers.d.ts +48 -0
- package/dist/client/components/inputRenderers.js +37 -0
- package/dist/client/components/intakeStyle.d.ts +2 -0
- package/dist/client/components/intakeStyle.js +6 -0
- package/dist/client/components/jsonModel.d.ts +98 -0
- package/dist/client/components/jsonModel.js +264 -0
- package/dist/client/components/listColumn.d.ts +20 -0
- package/dist/client/components/listColumn.js +31 -0
- package/dist/client/components/listNavigation.d.ts +16 -0
- package/dist/client/components/listNavigation.js +14 -0
- package/dist/client/components/mentionRows.d.ts +5 -0
- package/dist/client/components/mentionRows.js +62 -0
- package/dist/client/components/mount.d.ts +55 -0
- package/dist/client/components/mount.js +155 -0
- package/dist/client/components/myViews.d.ts +54 -0
- package/dist/client/components/myViews.js +82 -0
- package/dist/client/components/navCounts.d.ts +84 -0
- package/dist/client/components/navCounts.js +194 -0
- package/dist/client/components/navigationTree.d.ts +52 -0
- package/dist/client/components/navigationTree.js +49 -0
- package/dist/client/components/newMenuModel.d.ts +27 -0
- package/dist/client/components/newMenuModel.js +58 -0
- package/dist/client/components/newRecordModel.d.ts +58 -0
- package/dist/client/components/newRecordModel.js +232 -0
- package/dist/client/components/onDemand.d.ts +30 -0
- package/dist/client/components/onDemand.js +121 -0
- package/dist/client/components/optimisticMoves.d.ts +21 -0
- package/dist/client/components/optimisticMoves.js +145 -0
- package/dist/client/components/pageContext.d.ts +154 -0
- package/dist/client/components/pageContext.js +47 -0
- package/dist/client/components/pageFieldsRead.d.ts +67 -0
- package/dist/client/components/pageFieldsRead.js +55 -0
- package/dist/client/components/pageModel.d.ts +203 -0
- package/dist/client/components/pageModel.js +67 -0
- package/dist/client/components/pageStep.d.ts +31 -0
- package/dist/client/components/pageStep.js +15 -0
- package/dist/client/components/paletteModel.d.ts +9 -0
- package/dist/client/components/paletteModel.js +46 -0
- package/dist/client/components/pickerStaleness.d.ts +32 -0
- package/dist/client/components/pickerStaleness.js +27 -0
- package/dist/client/components/placeOrder.d.ts +47 -0
- package/dist/client/components/placeOrder.js +71 -0
- package/dist/client/components/pointerDrag.d.ts +54 -0
- package/dist/client/components/pointerDrag.js +95 -0
- package/dist/client/components/presentationFit.d.ts +19 -0
- package/dist/client/components/presentationFit.js +32 -0
- package/dist/client/components/recordKeys.d.ts +2 -0
- package/dist/client/components/recordKeys.js +8 -0
- package/dist/client/components/recordSearch.d.ts +31 -0
- package/dist/client/components/recordSearch.js +80 -0
- package/dist/client/components/recordSurface.d.ts +86 -0
- package/dist/client/components/recordSurface.js +267 -0
- package/dist/client/components/rowOpens.d.ts +19 -0
- package/dist/client/components/rowOpens.js +25 -0
- package/dist/client/components/sidebarModel.d.ts +152 -0
- package/dist/client/components/sidebarModel.js +372 -0
- package/dist/client/components/suggestModel.d.ts +22 -0
- package/dist/client/components/suggestModel.js +49 -0
- package/dist/client/components/suggestPart.d.ts +4 -0
- package/dist/client/components/suggestPart.js +4 -0
- package/dist/client/components/textMeasure.d.ts +2 -0
- package/dist/client/components/textMeasure.js +35 -0
- package/dist/client/components/unknownIcon.d.ts +8 -0
- package/dist/client/components/unknownIcon.js +32 -0
- package/dist/client/components/useBulkSelection.d.ts +30 -0
- package/dist/client/components/useBulkSelection.js +360 -0
- package/dist/client/components/useConditionWords.d.ts +17 -0
- package/dist/client/components/useConditionWords.js +104 -0
- package/dist/client/components/useGridKeyboard.d.ts +32 -0
- package/dist/client/components/useGridKeyboard.js +223 -0
- package/dist/client/components/useListOrder.d.ts +94 -0
- package/dist/client/components/useListOrder.js +294 -0
- package/dist/client/components/useMediaQuery.d.ts +10 -0
- package/dist/client/components/useMediaQuery.js +45 -0
- package/dist/client/components/useMessageLanguage.d.ts +1 -0
- package/dist/client/components/useMessageLanguage.js +6 -0
- package/dist/client/components/usePins.d.ts +20 -0
- package/dist/client/components/usePins.js +66 -0
- package/dist/client/components/usePointerDrag.d.ts +72 -0
- package/dist/client/components/usePointerDrag.js +553 -0
- package/dist/client/components/useRecordInsert.d.ts +42 -0
- package/dist/client/components/useRecordInsert.js +145 -0
- package/dist/client/components/useRowWindow.d.ts +35 -0
- package/dist/client/components/useRowWindow.js +149 -0
- package/dist/client/components/useStickyHead.d.ts +17 -0
- package/dist/client/components/useStickyHead.js +65 -0
- package/dist/client/components/useTabFold.d.ts +32 -0
- package/dist/client/components/useTabFold.js +145 -0
- package/dist/client/components/valueModel.d.ts +300 -0
- package/dist/client/components/valueModel.js +560 -0
- package/dist/client/components/valueRenderers.d.ts +36 -0
- package/dist/client/components/valueRenderers.js +13 -0
- package/dist/client/components/viewLink.d.ts +27 -0
- package/dist/client/components/viewLink.js +79 -0
- package/dist/client/components/walk.d.ts +14 -0
- package/dist/client/components/walk.js +16 -0
- package/dist/client/compose.d.ts +8 -0
- package/dist/client/compose.js +163 -0
- package/dist/client/composedHook.d.ts +20 -0
- package/dist/client/composedHook.js +12 -0
- package/dist/client/composedReads.d.ts +26 -0
- package/dist/client/composedReads.js +183 -0
- package/dist/client/composer.css +499 -0
- package/dist/client/composer.d.ts +121 -0
- package/dist/client/composer.js +1079 -0
- package/dist/client/composerEntry.d.ts +1 -0
- package/dist/client/composerEntry.js +58 -0
- package/dist/client/composerTab.d.ts +6 -0
- package/dist/client/composerTab.js +20 -0
- package/dist/client/conditions.d.ts +46 -0
- package/dist/client/conditions.js +150 -0
- package/dist/client/connectionList.d.ts +11 -0
- package/dist/client/connectionList.js +146 -0
- package/dist/client/connectionScope.d.ts +6 -0
- package/dist/client/connectionScope.js +14 -0
- package/dist/client/connectionTransition.d.ts +12 -0
- package/dist/client/connectionTransition.js +41 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.js +6 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.js +6 -0
- package/dist/client/copy/columnMenu/components/ThMenu.d.ts +35 -0
- package/dist/client/copy/columnMenu/components/ThMenu.js +37 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.d.ts +10 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.js +12 -0
- package/dist/client/copy/dashboards/breakdownBatch.d.ts +3 -0
- package/dist/client/copy/dashboards/breakdownBatch.js +5 -0
- package/dist/client/copy/dashboards/components/Breakdown.d.ts +32 -0
- package/dist/client/copy/dashboards/components/Breakdown.js +25 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.d.ts +3 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.js +5 -0
- package/dist/client/copy/dashboards/components/Chart.d.ts +26 -0
- package/dist/client/copy/dashboards/components/Chart.js +19 -0
- package/dist/client/copy/dashboards/components/ChartShapes.d.ts +16 -0
- package/dist/client/copy/dashboards/components/ChartShapes.js +12 -0
- package/dist/client/copy/dashboards/components/PageMetrics.d.ts +21 -0
- package/dist/client/copy/dashboards/components/PageMetrics.js +20 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.d.ts +4 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.js +6 -0
- package/dist/client/copy/dashboards/components/dashboardModel.d.ts +3 -0
- package/dist/client/copy/dashboards/components/dashboardModel.js +5 -0
- package/dist/client/copy/es.d.ts +11 -0
- package/dist/client/copy/es.js +60 -0
- package/dist/client/copy/filters/components/FilterBoxes.d.ts +10 -0
- package/dist/client/copy/filters/components/FilterBoxes.js +12 -0
- package/dist/client/copy/filters/components/FilterRail.d.ts +16 -0
- package/dist/client/copy/filters/components/FilterRail.js +18 -0
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +9 -0
- package/dist/client/copy/filters/components/ListFilterBar.js +11 -0
- package/dist/client/copy/filters/components/conditionWords.d.ts +46 -0
- package/dist/client/copy/filters/components/conditionWords.js +95 -0
- package/dist/client/copy/filters/components/filterRailModel.d.ts +12 -0
- package/dist/client/copy/filters/components/filterRailModel.js +14 -0
- package/dist/client/copy/forms/components/DateField.d.ts +13 -0
- package/dist/client/copy/forms/components/DateField.js +15 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.d.ts +4 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.js +6 -0
- package/dist/client/copy/forms/components/MultiStepForm.d.ts +10 -0
- package/dist/client/copy/forms/components/MultiStepForm.js +12 -0
- package/dist/client/copy/forms/components/NewRecord.d.ts +29 -0
- package/dist/client/copy/forms/components/NewRecord.js +31 -0
- package/dist/client/copy/forms/components/NewRecordButton.d.ts +6 -0
- package/dist/client/copy/forms/components/NewRecordButton.js +8 -0
- package/dist/client/copy/forms/components/Picker.d.ts +4 -0
- package/dist/client/copy/forms/components/Picker.js +6 -0
- package/dist/client/copy/forms/components/QuickAdd.d.ts +3 -0
- package/dist/client/copy/forms/components/QuickAdd.js +5 -0
- package/dist/client/copy/forms/components/RecordPicker.d.ts +6 -0
- package/dist/client/copy/forms/components/RecordPicker.js +8 -0
- package/dist/client/copy/forms/components/RichTextEditor.d.ts +36 -0
- package/dist/client/copy/forms/components/RichTextEditor.js +40 -0
- package/dist/client/copy/forms/components/RichTextField.d.ts +3 -0
- package/dist/client/copy/forms/components/RichTextField.js +5 -0
- package/dist/client/copy/forms/components/SetFieldDialog.d.ts +10 -0
- package/dist/client/copy/forms/components/SetFieldDialog.js +9 -0
- package/dist/client/copy/forms/components/useRecordInsert.d.ts +7 -0
- package/dist/client/copy/forms/components/useRecordInsert.js +9 -0
- package/dist/client/copy/help/helpContent.d.ts +71 -0
- package/dist/client/copy/help/helpContent.js +73 -0
- package/dist/client/copy/lists/bulkActions.d.ts +12 -0
- package/dist/client/copy/lists/bulkActions.js +14 -0
- package/dist/client/copy/lists/components/AppList.d.ts +28 -0
- package/dist/client/copy/lists/components/AppList.js +30 -0
- package/dist/client/copy/lists/components/CardsList.d.ts +3 -0
- package/dist/client/copy/lists/components/CardsList.js +5 -0
- package/dist/client/copy/lists/components/Gallery.d.ts +7 -0
- package/dist/client/copy/lists/components/Gallery.js +9 -0
- package/dist/client/copy/lists/components/Grid.d.ts +30 -0
- package/dist/client/copy/lists/components/Grid.js +29 -0
- package/dist/client/copy/lists/components/GridCellEditor.d.ts +5 -0
- package/dist/client/copy/lists/components/GridCellEditor.js +7 -0
- package/dist/client/copy/lists/components/GridSelection.d.ts +4 -0
- package/dist/client/copy/lists/components/GridSelection.js +6 -0
- package/dist/client/copy/lists/components/Nested.d.ts +7 -0
- package/dist/client/copy/lists/components/Nested.js +9 -0
- package/dist/client/copy/lists/components/RowActions.d.ts +1 -0
- package/dist/client/copy/lists/components/RowActions.js +3 -0
- package/dist/client/copy/lists/components/SavedViews.d.ts +5 -0
- package/dist/client/copy/lists/components/SavedViews.js +7 -0
- package/dist/client/copy/lists/components/SortMenu.d.ts +5 -0
- package/dist/client/copy/lists/components/SortMenu.js +7 -0
- package/dist/client/copy/lists/components/TableRoom.d.ts +12 -0
- package/dist/client/copy/lists/components/TableRoom.js +14 -0
- package/dist/client/copy/lists/components/TableView.d.ts +37 -0
- package/dist/client/copy/lists/components/TableView.js +39 -0
- package/dist/client/copy/lists/components/appListModel.d.ts +6 -0
- package/dist/client/copy/lists/components/appListModel.js +5 -0
- package/dist/client/copy/lists/components/myViews.d.ts +4 -0
- package/dist/client/copy/lists/components/myViews.js +6 -0
- package/dist/client/copy/lists/components/placeOrder.d.ts +4 -0
- package/dist/client/copy/lists/components/placeOrder.js +6 -0
- package/dist/client/copy/lists/components/useBulkSelection.d.ts +20 -0
- package/dist/client/copy/lists/components/useBulkSelection.js +16 -0
- package/dist/client/copy/lists/components/useListOrder.d.ts +7 -0
- package/dist/client/copy/lists/components/useListOrder.js +9 -0
- package/dist/client/copy/public/components/appRooms.d.ts +3 -0
- package/dist/client/copy/public/components/appRooms.js +5 -0
- package/dist/client/copy/record/components/Actions.d.ts +13 -0
- package/dist/client/copy/record/components/Actions.js +15 -0
- package/dist/client/copy/record/components/AttachmentList.d.ts +23 -0
- package/dist/client/copy/record/components/AttachmentList.js +22 -0
- package/dist/client/copy/record/components/DeleteButton.d.ts +22 -0
- package/dist/client/copy/record/components/DeleteButton.js +24 -0
- package/dist/client/copy/record/components/Dressed.d.ts +5 -0
- package/dist/client/copy/record/components/Dressed.js +7 -0
- package/dist/client/copy/record/components/EditLayoutButton.d.ts +5 -0
- package/dist/client/copy/record/components/EditLayoutButton.js +7 -0
- package/dist/client/copy/record/components/Editable.d.ts +25 -0
- package/dist/client/copy/record/components/Editable.js +24 -0
- package/dist/client/copy/record/components/FieldArranger.d.ts +15 -0
- package/dist/client/copy/record/components/FieldArranger.js +17 -0
- package/dist/client/copy/record/components/FilePreview.d.ts +13 -0
- package/dist/client/copy/record/components/FilePreview.js +15 -0
- package/dist/client/copy/record/components/JsonPreview.d.ts +3 -0
- package/dist/client/copy/record/components/JsonPreview.js +5 -0
- package/dist/client/copy/record/components/JsonView.d.ts +12 -0
- package/dist/client/copy/record/components/JsonView.js +14 -0
- package/dist/client/copy/record/components/LayoutBuilder.d.ts +23 -0
- package/dist/client/copy/record/components/LayoutBuilder.js +25 -0
- package/dist/client/copy/record/components/Lightbox.d.ts +5 -0
- package/dist/client/copy/record/components/Lightbox.js +7 -0
- package/dist/client/copy/record/components/LiveNotices.d.ts +33 -0
- package/dist/client/copy/record/components/LiveNotices.js +29 -0
- package/dist/client/copy/record/components/PageCurrent.d.ts +1 -0
- package/dist/client/copy/record/components/PageCurrent.js +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.d.ts +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.js +5 -0
- package/dist/client/copy/record/components/PageFields.d.ts +5 -0
- package/dist/client/copy/record/components/PageFields.js +7 -0
- package/dist/client/copy/record/components/PageFlowDiagram.d.ts +33 -0
- package/dist/client/copy/record/components/PageFlowDiagram.js +37 -0
- package/dist/client/copy/record/components/PageFlows.d.ts +20 -0
- package/dist/client/copy/record/components/PageFlows.js +22 -0
- package/dist/client/copy/record/components/PageGroups.d.ts +12 -0
- package/dist/client/copy/record/components/PageGroups.js +14 -0
- package/dist/client/copy/record/components/PageHead.d.ts +8 -0
- package/dist/client/copy/record/components/PageHead.js +10 -0
- package/dist/client/copy/record/components/PageHistory.d.ts +18 -0
- package/dist/client/copy/record/components/PageHistory.js +20 -0
- package/dist/client/copy/record/components/PageLayout.d.ts +5 -0
- package/dist/client/copy/record/components/PageLayout.js +7 -0
- package/dist/client/copy/record/components/PageRelated.d.ts +24 -0
- package/dist/client/copy/record/components/PageRelated.js +26 -0
- package/dist/client/copy/record/components/PageRoom.d.ts +4 -0
- package/dist/client/copy/record/components/PageRoom.js +6 -0
- package/dist/client/copy/record/components/PageSectionBox.d.ts +6 -0
- package/dist/client/copy/record/components/PageSectionBox.js +10 -0
- package/dist/client/copy/record/components/PageTimeline.d.ts +9 -0
- package/dist/client/copy/record/components/PageTimeline.js +8 -0
- package/dist/client/copy/record/components/Peek.d.ts +3 -0
- package/dist/client/copy/record/components/Peek.js +5 -0
- package/dist/client/copy/record/components/PeekPanel.d.ts +5 -0
- package/dist/client/copy/record/components/PeekPanel.js +7 -0
- package/dist/client/copy/record/components/QrCode.d.ts +3 -0
- package/dist/client/copy/record/components/QrCode.js +5 -0
- package/dist/client/copy/record/components/Record.d.ts +19 -0
- package/dist/client/copy/record/components/Record.js +21 -0
- package/dist/client/copy/record/components/RecordGone.d.ts +4 -0
- package/dist/client/copy/record/components/RecordGone.js +6 -0
- package/dist/client/copy/record/components/RecordSummaries.d.ts +1 -0
- package/dist/client/copy/record/components/RecordSummaries.js +3 -0
- package/dist/client/copy/record/components/RecordTags.d.ts +9 -0
- package/dist/client/copy/record/components/RecordTags.js +11 -0
- package/dist/client/copy/record/components/RecordTrailNav.d.ts +8 -0
- package/dist/client/copy/record/components/RecordTrailNav.js +10 -0
- package/dist/client/copy/record/components/RichText.d.ts +4 -0
- package/dist/client/copy/record/components/RichText.js +6 -0
- package/dist/client/copy/record/components/Value.d.ts +4 -0
- package/dist/client/copy/record/components/Value.js +6 -0
- package/dist/client/copy/record/components/WorkflowStatus.d.ts +7 -0
- package/dist/client/copy/record/components/WorkflowStatus.js +9 -0
- package/dist/client/copy/record/components/WriteConfirm.d.ts +11 -0
- package/dist/client/copy/record/components/WriteConfirm.js +13 -0
- package/dist/client/copy/record/components/groupMoves.d.ts +7 -0
- package/dist/client/copy/record/components/groupMoves.js +9 -0
- package/dist/client/copy/record/components/jsonModel.d.ts +3 -0
- package/dist/client/copy/record/components/jsonModel.js +5 -0
- package/dist/client/copy/record/components/pageModel.d.ts +5 -0
- package/dist/client/copy/record/components/pageModel.js +7 -0
- package/dist/client/copy/record/components/recordSurface.d.ts +6 -0
- package/dist/client/copy/record/components/recordSurface.js +8 -0
- package/dist/client/copy/record/components/valueModel.d.ts +5 -0
- package/dist/client/copy/record/components/valueModel.js +7 -0
- package/dist/client/copy/record/fileSource.d.ts +3 -0
- package/dist/client/copy/record/fileSource.js +5 -0
- package/dist/client/copy/record/insert.d.ts +6 -0
- package/dist/client/copy/record/insert.js +8 -0
- package/dist/client/copy/record/page.d.ts +4 -0
- package/dist/client/copy/record/page.js +6 -0
- package/dist/client/copy/record/recordEditValidation.d.ts +4 -0
- package/dist/client/copy/record/recordEditValidation.js +6 -0
- package/dist/client/copy/record/savedPages.d.ts +4 -0
- package/dist/client/copy/record/savedPages.js +6 -0
- package/dist/client/copy/record/template.d.ts +9 -0
- package/dist/client/copy/record/template.js +11 -0
- package/dist/client/copy/record/write.d.ts +30 -0
- package/dist/client/copy/record/write.js +26 -0
- package/dist/client/copy/shell/app.d.ts +27 -0
- package/dist/client/copy/shell/app.js +43 -0
- package/dist/client/copy/shell/components/AppIssues.d.ts +10 -0
- package/dist/client/copy/shell/components/AppIssues.js +9 -0
- package/dist/client/copy/shell/components/Crumbs.d.ts +7 -0
- package/dist/client/copy/shell/components/Crumbs.js +17 -0
- package/dist/client/copy/shell/components/Dropdown.d.ts +3 -0
- package/dist/client/copy/shell/components/Dropdown.js +5 -0
- package/dist/client/copy/shell/components/ErrorBoundary.d.ts +4 -0
- package/dist/client/copy/shell/components/ErrorBoundary.js +6 -0
- package/dist/client/copy/shell/components/FavoriteStar.d.ts +4 -0
- package/dist/client/copy/shell/components/FavoriteStar.js +6 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +4 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.js +12 -0
- package/dist/client/copy/shell/components/OverflowMenu.d.ts +3 -0
- package/dist/client/copy/shell/components/OverflowMenu.js +10 -0
- package/dist/client/copy/shell/components/Palette.d.ts +15 -0
- package/dist/client/copy/shell/components/Palette.js +18 -0
- package/dist/client/copy/shell/components/Prefs.d.ts +4 -0
- package/dist/client/copy/shell/components/Prefs.js +11 -0
- package/dist/client/copy/shell/components/Prompt.d.ts +1 -0
- package/dist/client/copy/shell/components/Prompt.js +3 -0
- package/dist/client/copy/shell/components/Rooms.d.ts +6 -0
- package/dist/client/copy/shell/components/Rooms.js +8 -0
- package/dist/client/copy/shell/components/Sidebar.d.ts +7 -0
- package/dist/client/copy/shell/components/Sidebar.js +9 -0
- package/dist/client/copy/shell/components/Skeleton.d.ts +5 -0
- package/dist/client/copy/shell/components/Skeleton.js +7 -0
- package/dist/client/copy/shell/components/TopNav.d.ts +4 -0
- package/dist/client/copy/shell/components/TopNav.js +12 -0
- package/dist/client/copy/shell/components/Tour.d.ts +4 -0
- package/dist/client/copy/shell/components/Tour.js +6 -0
- package/dist/client/copy/shell/components/newMenuModel.d.ts +3 -0
- package/dist/client/copy/shell/components/newMenuModel.js +5 -0
- package/dist/client/copy/shell/components/onDemand.d.ts +3 -0
- package/dist/client/copy/shell/components/onDemand.js +5 -0
- package/dist/client/copy/shell/components/sidebarModel.d.ts +3 -0
- package/dist/client/copy/shell/components/sidebarModel.js +5 -0
- package/dist/client/copy/shell/connectionList.d.ts +6 -0
- package/dist/client/copy/shell/connectionList.js +8 -0
- package/dist/client/copy/shell/core.d.ts +16 -0
- package/dist/client/copy/shell/core.js +18 -0
- package/dist/client/copy/shell/palette.d.ts +6 -0
- package/dist/client/copy/shell/palette.js +8 -0
- package/dist/client/copy/shell/prompt.d.ts +1 -0
- package/dist/client/copy/shell/prompt.js +3 -0
- package/dist/client/copy/shell/requestIdentity.d.ts +9 -0
- package/dist/client/copy/shell/requestIdentity.js +11 -0
- package/dist/client/copy/shell/resourceRequests.d.ts +4 -0
- package/dist/client/copy/shell/resourceRequests.js +6 -0
- package/dist/client/copy/shell/sessionIdentity.d.ts +11 -0
- package/dist/client/copy/shell/sessionIdentity.js +13 -0
- package/dist/client/copy/shell/sessionLifecycle.d.ts +5 -0
- package/dist/client/copy/shell/sessionLifecycle.js +7 -0
- package/dist/client/copy/shell/startup.d.ts +5 -0
- package/dist/client/copy/shell/startup.js +7 -0
- package/dist/client/copy/shell/theme.d.ts +5 -0
- package/dist/client/copy/shell/theme.js +14 -0
- package/dist/client/copy/shell/toast.d.ts +3 -0
- package/dist/client/copy/shell/toast.js +5 -0
- package/dist/client/copy/shell/updateAttempts.d.ts +6 -0
- package/dist/client/copy/shell/updateAttempts.js +8 -0
- package/dist/client/copy/shell/visualTheme.d.ts +4 -0
- package/dist/client/copy/shell/visualTheme.js +6 -0
- package/dist/client/copy/workbench/clauses.d.ts +3 -0
- package/dist/client/copy/workbench/clauses.js +5 -0
- package/dist/client/copy/workbench/components/ApiOperations.d.ts +21 -0
- package/dist/client/copy/workbench/components/ApiOperations.js +23 -0
- package/dist/client/copy/workbench/components/Composer.d.ts +105 -0
- package/dist/client/copy/workbench/components/Composer.js +92 -0
- package/dist/client/copy/workbench/components/Diagram.d.ts +56 -0
- package/dist/client/copy/workbench/components/Diagram.js +46 -0
- package/dist/client/copy/workbench/components/Export.d.ts +26 -0
- package/dist/client/copy/workbench/components/Export.js +25 -0
- package/dist/client/copy/workbench/components/HelpPanel.d.ts +10 -0
- package/dist/client/copy/workbench/components/HelpPanel.js +12 -0
- package/dist/client/copy/workbench/components/History.d.ts +11 -0
- package/dist/client/copy/workbench/components/History.js +10 -0
- package/dist/client/copy/workbench/components/Landing.d.ts +5 -0
- package/dist/client/copy/workbench/components/Landing.js +7 -0
- package/dist/client/copy/workbench/components/SchemaExport.d.ts +24 -0
- package/dist/client/copy/workbench/components/SchemaExport.js +20 -0
- package/dist/client/copy/workbench/components/Summary.d.ts +28 -0
- package/dist/client/copy/workbench/components/Summary.js +24 -0
- package/dist/client/copy/workbench/components/ThemeLab.d.ts +25 -0
- package/dist/client/copy/workbench/components/ThemeLab.js +27 -0
- package/dist/client/copy/workbench/components/WorkPanel.d.ts +12 -0
- package/dist/client/copy/workbench/components/WorkPanel.js +14 -0
- package/dist/client/copy/workbench/composer.d.ts +36 -0
- package/dist/client/copy/workbench/composer.js +32 -0
- package/dist/client/copy/workbench/composerEntry.d.ts +4 -0
- package/dist/client/copy/workbench/composerEntry.js +6 -0
- package/dist/client/copy/workbench/export.d.ts +8 -0
- package/dist/client/copy/workbench/export.js +7 -0
- package/dist/client/copy/workbench/filterbar.d.ts +6 -0
- package/dist/client/copy/workbench/filterbar.js +8 -0
- package/dist/client/copy/workbench/handoff.d.ts +20 -0
- package/dist/client/copy/workbench/handoff.js +19 -0
- package/dist/client/copy/workbench/help.d.ts +6 -0
- package/dist/client/copy/workbench/help.js +8 -0
- package/dist/client/copy/workbench/history.d.ts +3 -0
- package/dist/client/copy/workbench/history.js +5 -0
- package/dist/client/copy/workbench/schemaexport.d.ts +5 -0
- package/dist/client/copy/workbench/schemaexport.js +7 -0
- package/dist/client/copy/workbench/tour.d.ts +22 -0
- package/dist/client/copy/workbench/tour.js +24 -0
- package/dist/client/copy/workbench/views.d.ts +6 -0
- package/dist/client/copy/workbench/views.js +8 -0
- package/dist/client/core.d.ts +312 -0
- package/dist/client/core.js +1067 -0
- package/dist/client/customThemes.css +43 -0
- package/dist/client/dashboard.d.ts +16 -0
- package/dist/client/dashboard.js +35 -0
- package/dist/client/deeplink.d.ts +64 -0
- package/dist/client/deeplink.js +384 -0
- package/dist/client/delete.d.ts +8 -0
- package/dist/client/delete.js +35 -0
- package/dist/client/density.d.ts +8 -0
- package/dist/client/density.js +102 -0
- package/dist/client/devtoolsEventClient.d.ts +27 -0
- package/dist/client/devtoolsEventClient.js +32 -0
- package/dist/client/documents.d.ts +9 -0
- package/dist/client/documents.js +23 -0
- package/dist/client/dom.d.ts +36 -0
- package/dist/client/dom.js +232 -0
- package/dist/client/draftRecovery.d.ts +16 -0
- package/dist/client/draftRecovery.js +56 -0
- package/dist/client/export.d.ts +59 -0
- package/dist/client/export.js +217 -0
- package/dist/client/features.css +2187 -0
- package/dist/client/fieldErrors.d.ts +27 -0
- package/dist/client/fieldErrors.js +20 -0
- package/dist/client/fileSource.d.ts +10 -0
- package/dist/client/fileSource.js +115 -0
- package/dist/client/filterbar.d.ts +87 -0
- package/dist/client/filterbar.js +168 -0
- package/dist/client/firstPaint.d.ts +26 -0
- package/dist/client/firstPaint.js +102 -0
- package/dist/client/fonts/Barlow-OFL.txt +125 -0
- package/dist/client/fonts/IBMPlexMono-OFL.txt +104 -0
- package/dist/client/fonts/Inter-OFL.txt +92 -0
- package/dist/client/fonts/barlow-400.woff2 +0 -0
- package/dist/client/fonts/barlow-600.woff2 +0 -0
- package/dist/client/fonts/barlow-semi-condensed-700.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-500.woff2 +0 -0
- package/dist/client/fonts/inter-latin.woff2 +0 -0
- package/dist/client/formControls.css +5 -0
- package/dist/client/handoff.d.ts +47 -0
- package/dist/client/handoff.js +138 -0
- package/dist/client/help.css +151 -0
- package/dist/client/help.d.ts +20 -0
- package/dist/client/help.js +103 -0
- package/dist/client/helpContent.d.ts +95 -0
- package/dist/client/helpContent.js +661 -0
- package/dist/client/history.d.ts +10 -0
- package/dist/client/history.js +181 -0
- package/dist/client/historyToken.d.ts +18 -0
- package/dist/client/historyToken.js +27 -0
- package/dist/client/iconWeight.d.ts +16 -0
- package/dist/client/iconWeight.js +44 -0
- package/dist/client/index.html +244 -0
- package/dist/client/insert.d.ts +50 -0
- package/dist/client/insert.js +269 -0
- package/dist/client/kit.d.ts +7 -0
- package/dist/client/kit.js +1 -0
- package/dist/client/layoutDraftRecovery.d.ts +8 -0
- package/dist/client/layoutDraftRecovery.js +33 -0
- package/dist/client/ledgerLook.css +32 -0
- package/dist/client/liveReads.d.ts +23 -0
- package/dist/client/liveReads.js +38 -0
- package/dist/client/liveState.d.ts +94 -0
- package/dist/client/liveState.js +212 -0
- package/dist/client/locale.d.ts +141 -0
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +1867 -0
- package/dist/client/menu.d.ts +49 -0
- package/dist/client/menu.js +131 -0
- package/dist/client/menuScope.d.ts +6 -0
- package/dist/client/menuScope.js +4 -0
- package/dist/client/messages.d.ts +240 -0
- package/dist/client/messages.js +370 -0
- package/dist/client/motionStill.d.ts +1 -0
- package/dist/client/motionStill.js +17 -0
- package/dist/client/navigationHold.d.ts +37 -0
- package/dist/client/navigationHold.js +503 -0
- package/dist/client/nested.d.ts +8 -0
- package/dist/client/nested.js +26 -0
- package/dist/client/ownWrites.d.ts +33 -0
- package/dist/client/ownWrites.js +76 -0
- package/dist/client/page.css +4052 -0
- package/dist/client/page.d.ts +21 -0
- package/dist/client/page.js +187 -0
- package/dist/client/pagemarks.d.ts +32 -0
- package/dist/client/pagemarks.js +98 -0
- package/dist/client/palette.d.ts +35 -0
- package/dist/client/palette.js +357 -0
- package/dist/client/partsLook.css +1047 -0
- package/dist/client/peek.d.ts +11 -0
- package/dist/client/peek.js +51 -0
- package/dist/client/peekpanel.d.ts +26 -0
- package/dist/client/peekpanel.js +121 -0
- package/dist/client/pendingWork.d.ts +19 -0
- package/dist/client/pendingWork.js +36 -0
- package/dist/client/pins.d.ts +24 -0
- package/dist/client/pins.js +97 -0
- package/dist/client/prefs.d.ts +3 -0
- package/dist/client/prefs.js +32 -0
- package/dist/client/prompt.d.ts +27 -0
- package/dist/client/prompt.js +61 -0
- package/dist/client/readGathering.d.ts +4 -0
- package/dist/client/readGathering.js +23 -0
- package/dist/client/recordCompose.d.ts +11 -0
- package/dist/client/recordCompose.js +69 -0
- package/dist/client/recordDrafts.d.ts +40 -0
- package/dist/client/recordDrafts.js +57 -0
- package/dist/client/recordEditValidation.d.ts +12 -0
- package/dist/client/recordEditValidation.js +52 -0
- package/dist/client/recordIntent.d.ts +6 -0
- package/dist/client/recordIntent.js +15 -0
- package/dist/client/recordPress.d.ts +12 -0
- package/dist/client/recordPress.js +84 -0
- package/dist/client/recordSource.d.ts +6 -0
- package/dist/client/recordSource.js +15 -0
- package/dist/client/recordTrail.d.ts +77 -0
- package/dist/client/recordTrail.js +101 -0
- package/dist/client/recordWriteRefresh.d.ts +74 -0
- package/dist/client/recordWriteRefresh.js +284 -0
- package/dist/client/relatedRows.d.ts +4 -0
- package/dist/client/relatedRows.js +24 -0
- package/dist/client/requestIdentity.d.ts +36 -0
- package/dist/client/requestIdentity.js +97 -0
- package/dist/client/resourceRequests.d.ts +7 -0
- package/dist/client/resourceRequests.js +32 -0
- package/dist/client/roleLabels.d.ts +7 -0
- package/dist/client/roleLabels.js +24 -0
- package/dist/client/rowEditing.d.ts +15 -0
- package/dist/client/rowEditing.js +36 -0
- package/dist/client/sageLook.css +242 -0
- package/dist/client/savedPages.d.ts +15 -0
- package/dist/client/savedPages.js +123 -0
- package/dist/client/schemaexport.d.ts +14 -0
- package/dist/client/schemaexport.js +182 -0
- package/dist/client/sessionIdentity.d.ts +39 -0
- package/dist/client/sessionIdentity.js +255 -0
- package/dist/client/sessionLifecycle.d.ts +33 -0
- package/dist/client/sessionLifecycle.js +276 -0
- package/dist/client/shellHost.d.ts +70 -0
- package/dist/client/shellHost.js +92 -0
- package/dist/client/shellMain.d.ts +8 -0
- package/dist/client/shellMode.d.ts +433 -0
- package/dist/client/shellMode.js +68 -0
- package/dist/client/shellStart.d.ts +5 -0
- package/dist/client/shellStart.js +54 -0
- package/dist/client/shells.d.ts +123 -0
- package/dist/client/shells.js +1 -0
- package/dist/client/sql.css +139 -0
- package/dist/client/startup.d.ts +8 -0
- package/dist/client/startup.js +85 -0
- package/dist/client/startupHold.d.ts +10 -0
- package/dist/client/startupHold.js +73 -0
- package/dist/client/structure.css +1296 -0
- package/dist/client/style.css +3526 -0
- package/dist/client/styleImports.d.ts +3 -0
- package/dist/client/surfaces.d.ts +18 -0
- package/dist/client/surfaces.js +27 -0
- package/dist/client/surfacesLook.css +88 -0
- package/dist/client/template.d.ts +75 -0
- package/dist/client/template.js +403 -0
- package/dist/client/theme.d.ts +14 -0
- package/dist/client/theme.js +112 -0
- package/dist/client/themeFamilies.css +788 -0
- package/dist/client/thmenu.d.ts +12 -0
- package/dist/client/thmenu.js +94 -0
- package/dist/client/toast.d.ts +7 -0
- package/dist/client/toast.js +117 -0
- package/dist/client/tour.d.ts +8 -0
- package/dist/client/tour.js +176 -0
- package/dist/client/transport.d.ts +2 -0
- package/dist/client/transport.js +13 -0
- package/dist/client/typography.d.ts +4 -0
- package/dist/client/typography.js +51 -0
- package/dist/client/uiBridge.d.ts +57 -0
- package/dist/client/uiBridge.js +30 -0
- package/dist/client/updateAttempts.d.ts +46 -0
- package/dist/client/updateAttempts.js +131 -0
- package/dist/client/url.d.ts +74 -0
- package/dist/client/url.js +388 -0
- package/dist/client/views.d.ts +19 -0
- package/dist/client/views.js +133 -0
- package/dist/client/visualTheme.d.ts +62 -0
- package/dist/client/visualTheme.js +502 -0
- package/dist/client/visualThemes.css +421 -0
- package/dist/client/workshopLook.css +126 -0
- package/dist/client/write.d.ts +100 -0
- package/dist/client/write.js +882 -0
- package/dist/client/writePaths.d.ts +16 -0
- package/dist/client/writePaths.js +35 -0
- package/dist/client/yesNoRule.d.ts +12 -0
- package/dist/client/yesNoRule.js +39 -0
- package/dist/clientFiles.d.ts +11 -4
- package/dist/clientFiles.js +16 -12
- package/dist/vite.d.ts +136 -0
- package/dist/vite.js +571 -0
- package/package.json +130 -3
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { PLATFORM_TENANT_ID } from '@mistriwork/engine/shared/sessionLease.js';
|
|
2
|
+
import { say } from './copy/shell/sessionIdentity.js';
|
|
3
|
+
class SessionIdentityError extends Error {
|
|
4
|
+
code;
|
|
5
|
+
constructor(message, code) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.code = code;
|
|
8
|
+
this.name = 'SessionIdentityError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const PREFERENCES = new Set([
|
|
12
|
+
'mistri.theme',
|
|
13
|
+
'mistri.visual-theme',
|
|
14
|
+
'mistri.density',
|
|
15
|
+
'mistri.typography',
|
|
16
|
+
'mistri.page-size',
|
|
17
|
+
'mistri.related-rows',
|
|
18
|
+
'mistri.sidebar-hidden',
|
|
19
|
+
'mistri.tour.v1',
|
|
20
|
+
'mistri.startup.v1',
|
|
21
|
+
]);
|
|
22
|
+
let identity = Object.freeze({ mode: 'unknown', epoch: 0, accountId: null, appId: null });
|
|
23
|
+
// Business selections replace the data owner, not the native login. Account-only
|
|
24
|
+
// operations keep this root until actual sign-out/lock/account replacement.
|
|
25
|
+
const accountOwners = new WeakMap();
|
|
26
|
+
export const captureAccountIdentity = (snapshot = identity) => accountOwners.get(snapshot) ?? snapshot;
|
|
27
|
+
export function assertAccountCurrent(snapshot) {
|
|
28
|
+
if (captureAccountIdentity(snapshot) !== captureAccountIdentity() || identity.mode !== 'authenticated')
|
|
29
|
+
throw new SessionIdentityError(say('thisOperationBelongsToAPrevious'), 'changed');
|
|
30
|
+
}
|
|
31
|
+
const listeners = new Set();
|
|
32
|
+
export function subscribeSessionIdentity(listener) {
|
|
33
|
+
listeners.add(listener);
|
|
34
|
+
return () => {
|
|
35
|
+
listeners.delete(listener);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/** Browser isolation only; the server remains responsible for authorization. */
|
|
39
|
+
export const sessionIdentity = () => identity;
|
|
40
|
+
export const captureSessionIdentity = () => identity;
|
|
41
|
+
const leases = new WeakMap();
|
|
42
|
+
const leaseListeners = new Set();
|
|
43
|
+
function leaseChanged() {
|
|
44
|
+
for (const listener of [...leaseListeners]) {
|
|
45
|
+
try {
|
|
46
|
+
listener();
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
/* Observers cannot veto lease adoption or suspension. */
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export function subscribeTenantLease(listener) {
|
|
54
|
+
leaseListeners.add(listener);
|
|
55
|
+
return () => {
|
|
56
|
+
leaseListeners.delete(listener);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/** Includes expired receipts for exact renewal recovery, never data admission. */
|
|
60
|
+
export function captureTenantLease(owner = captureSessionIdentity()) {
|
|
61
|
+
return owner === identity ? leases.get(owner)?.reply : undefined;
|
|
62
|
+
}
|
|
63
|
+
export function tenantLeaseActive(owner = captureSessionIdentity()) {
|
|
64
|
+
const state = owner === identity ? leases.get(owner) : undefined;
|
|
65
|
+
if (!state || state.suspended)
|
|
66
|
+
return false;
|
|
67
|
+
const now = Date.now();
|
|
68
|
+
if (owner !== identity)
|
|
69
|
+
return false;
|
|
70
|
+
if (!Number.isFinite(now) || now < state.observedAt || now >= state.reply.expiresAt) {
|
|
71
|
+
suspendTenantLease(owner);
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
state.observedAt = now;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
export function suspendTenantLease(owner = captureSessionIdentity()) {
|
|
78
|
+
const state = owner === identity ? leases.get(owner) : undefined;
|
|
79
|
+
if (!state || state.suspended)
|
|
80
|
+
return;
|
|
81
|
+
state.suspended = true;
|
|
82
|
+
leaseChanged();
|
|
83
|
+
}
|
|
84
|
+
const ownerFields = ['appId', 'accountId', 'tenantId', 'tabId', 'context'];
|
|
85
|
+
// A platform realm's lease carries `realm` exactly when it names the reserved id.
|
|
86
|
+
function validLease(value) {
|
|
87
|
+
return (!!value &&
|
|
88
|
+
typeof value === 'object' &&
|
|
89
|
+
!Array.isArray(value) &&
|
|
90
|
+
Object.keys(value).every((key) => [...ownerFields, 'revision', 'expiresAt', 'realm'].includes(key)) &&
|
|
91
|
+
(value.realm === 'platform') === (value.tenantId === PLATFORM_TENANT_ID) &&
|
|
92
|
+
(!('realm' in value) || value.realm === 'platform') &&
|
|
93
|
+
ownerFields.every((key) => identifier(value[key]) && value[key].length <= 1024 && !/\p{Cc}/u.test(value[key])) &&
|
|
94
|
+
Number.isSafeInteger(value.revision) &&
|
|
95
|
+
value.revision > 0 &&
|
|
96
|
+
Number.isFinite(value.expiresAt) &&
|
|
97
|
+
value.expiresAt > 0);
|
|
98
|
+
}
|
|
99
|
+
export function acceptTenantRenewal(owner, expectedRevision, reply) {
|
|
100
|
+
const state = owner === identity ? leases.get(owner) : undefined;
|
|
101
|
+
const now = Date.now();
|
|
102
|
+
if (!state ||
|
|
103
|
+
owner !== identity ||
|
|
104
|
+
!Number.isSafeInteger(expectedRevision) ||
|
|
105
|
+
expectedRevision < 1 ||
|
|
106
|
+
state.reply.revision !== expectedRevision ||
|
|
107
|
+
!validLease(reply) ||
|
|
108
|
+
reply.revision !== expectedRevision + 1 ||
|
|
109
|
+
!ownerFields.every((key) => reply[key] === state.reply[key]) ||
|
|
110
|
+
!Number.isFinite(now) ||
|
|
111
|
+
now < state.observedAt)
|
|
112
|
+
throw new SessionIdentityError(say('theTenantRenewalCould'), 'invalid-identity');
|
|
113
|
+
leases.set(owner, { reply: Object.freeze({ ...reply }), suspended: reply.expiresAt <= now, observedAt: now });
|
|
114
|
+
leaseChanged();
|
|
115
|
+
}
|
|
116
|
+
function transition(mode, accountId, appId) {
|
|
117
|
+
if (identity.mode !== mode || identity.accountId !== accountId || identity.appId !== appId) {
|
|
118
|
+
identity = Object.freeze({ mode, accountId, appId, epoch: identity.epoch + 1 });
|
|
119
|
+
for (const listener of listeners)
|
|
120
|
+
listener();
|
|
121
|
+
}
|
|
122
|
+
return identity;
|
|
123
|
+
}
|
|
124
|
+
/** Lock once, including callbacks that captured an otherwise identical account. */
|
|
125
|
+
export function lockSessionIdentity() {
|
|
126
|
+
return transition('locked', null, null);
|
|
127
|
+
}
|
|
128
|
+
const identifier = (value) => typeof value === 'string' && value.length > 0 && value === value.trim();
|
|
129
|
+
/** Retire every captured operation/storage owner before requesting a selection.
|
|
130
|
+
* This is browser isolation, never server authorization or a tenant credential. */
|
|
131
|
+
export function requireTenantSelection() {
|
|
132
|
+
if (identity.mode !== 'authenticated')
|
|
133
|
+
throw new SessionIdentityError(say('signInBeforeChoosing'), 'unavailable');
|
|
134
|
+
const accountOwner = captureAccountIdentity();
|
|
135
|
+
identity = Object.freeze({
|
|
136
|
+
mode: identity.mode,
|
|
137
|
+
accountId: identity.accountId,
|
|
138
|
+
appId: identity.appId,
|
|
139
|
+
epoch: identity.epoch + 1,
|
|
140
|
+
tenantRequired: true,
|
|
141
|
+
});
|
|
142
|
+
accountOwners.set(identity, accountOwner);
|
|
143
|
+
for (const listener of listeners)
|
|
144
|
+
listener();
|
|
145
|
+
return identity;
|
|
146
|
+
}
|
|
147
|
+
export function establishTenantSelection(value, expected = captureSessionIdentity()) {
|
|
148
|
+
assertSessionCurrent(expected);
|
|
149
|
+
const now = Date.now();
|
|
150
|
+
if (!identity.tenantRequired ||
|
|
151
|
+
!validLease(value) ||
|
|
152
|
+
value.appId !== identity.appId ||
|
|
153
|
+
value.accountId !== identity.accountId ||
|
|
154
|
+
!Number.isFinite(now) ||
|
|
155
|
+
value.expiresAt <= now)
|
|
156
|
+
throw new SessionIdentityError(say('theTenantSelectionCould'), 'invalid-identity');
|
|
157
|
+
const tenant = Object.freeze({
|
|
158
|
+
appId: value.appId,
|
|
159
|
+
accountId: value.accountId,
|
|
160
|
+
tenantId: value.tenantId,
|
|
161
|
+
tabId: value.tabId,
|
|
162
|
+
context: value.context,
|
|
163
|
+
...(value.realm === 'platform' ? { realm: 'platform' } : {}),
|
|
164
|
+
});
|
|
165
|
+
const accountOwner = captureAccountIdentity();
|
|
166
|
+
identity = Object.freeze({ ...identity, epoch: identity.epoch + 1, tenant });
|
|
167
|
+
accountOwners.set(identity, accountOwner);
|
|
168
|
+
leases.set(identity, { reply: Object.freeze({ ...value }), suspended: false, observedAt: now });
|
|
169
|
+
for (const listener of listeners)
|
|
170
|
+
listener();
|
|
171
|
+
leaseChanged();
|
|
172
|
+
return identity;
|
|
173
|
+
}
|
|
174
|
+
/** Accept only the server's stable account identifier, never its display name. */
|
|
175
|
+
export function establishSessionIdentity(whoami) {
|
|
176
|
+
const invalid = () => {
|
|
177
|
+
lockSessionIdentity();
|
|
178
|
+
throw new SessionIdentityError(say('theServerDidNotProvide'), 'invalid-identity');
|
|
179
|
+
};
|
|
180
|
+
if (!whoami || typeof whoami !== 'object' || Array.isArray(whoami))
|
|
181
|
+
return invalid();
|
|
182
|
+
const value = whoami;
|
|
183
|
+
if (value.signedIn === true) {
|
|
184
|
+
if (!identifier(value.accountId) || !identifier(value.appId))
|
|
185
|
+
return invalid();
|
|
186
|
+
return transition('authenticated', value.accountId, value.appId);
|
|
187
|
+
}
|
|
188
|
+
if (value.signedIn !== false || value.accountId != null || (value.appId != null && !identifier(value.appId)))
|
|
189
|
+
return invalid();
|
|
190
|
+
return transition('anonymous', null, typeof value.appId === 'string' ? value.appId : null);
|
|
191
|
+
}
|
|
192
|
+
function assertEpoch(snapshot) {
|
|
193
|
+
if (snapshot.epoch !== identity.epoch ||
|
|
194
|
+
snapshot.mode !== identity.mode ||
|
|
195
|
+
snapshot.accountId !== identity.accountId ||
|
|
196
|
+
snapshot.appId !== identity.appId) {
|
|
197
|
+
throw new SessionIdentityError(say('thisOperationBelongsToA'), 'changed');
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/** Omit the second argument before dispatch; supply the response header after it. */
|
|
201
|
+
export function assertSessionCurrent(snapshot, responseAccountId) {
|
|
202
|
+
assertEpoch(snapshot);
|
|
203
|
+
if (identity.mode === 'unknown' || identity.mode === 'locked') {
|
|
204
|
+
throw new SessionIdentityError(say('theSessionIsUnavailable'), 'unavailable');
|
|
205
|
+
}
|
|
206
|
+
if (identity.mode === 'authenticated' && arguments.length > 1 && responseAccountId !== identity.accountId) {
|
|
207
|
+
throw new SessionIdentityError(say('theResponseBelongsToADifferent'), 'response-owner');
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/** No authenticated fallback to unscoped keys, whose account ownership is unknown. */
|
|
211
|
+
export function sessionStorageKey(key) {
|
|
212
|
+
if (PREFERENCES.has(key))
|
|
213
|
+
return key;
|
|
214
|
+
if (identity.mode === 'unknown' || identity.mode === 'locked')
|
|
215
|
+
return null;
|
|
216
|
+
if (identity.mode === 'anonymous')
|
|
217
|
+
return key;
|
|
218
|
+
if (identity.tenantRequired) {
|
|
219
|
+
if (!identity.tenant || !tenantLeaseActive())
|
|
220
|
+
return null;
|
|
221
|
+
// No fallback to account-wide state. Context generations also isolate
|
|
222
|
+
// separate tabs and same-account new logins from old retained private data.
|
|
223
|
+
const owner = identity.tenant;
|
|
224
|
+
return `mistri.tenant.v1:${encodeURIComponent(JSON.stringify([owner.appId, owner.accountId, owner.tenantId, owner.tabId, owner.context]))}:${key}`;
|
|
225
|
+
}
|
|
226
|
+
return `mistri.account.v1:${encodeURIComponent(JSON.stringify([identity.appId, identity.accountId]))}:${key}`;
|
|
227
|
+
}
|
|
228
|
+
/** A delayed editor cannot resolve its storage namespace using a newer account. */
|
|
229
|
+
export function captureScopedStorage(storage) {
|
|
230
|
+
const captured = captureSessionIdentity();
|
|
231
|
+
const keyFor = (key) => {
|
|
232
|
+
assertEpoch(captured);
|
|
233
|
+
return sessionStorageKey(key);
|
|
234
|
+
};
|
|
235
|
+
const writableKey = (key) => {
|
|
236
|
+
const mapped = keyFor(key);
|
|
237
|
+
if (mapped === null)
|
|
238
|
+
throw new SessionIdentityError(say('sessionStorageIsUnavailable'), 'unavailable');
|
|
239
|
+
return mapped;
|
|
240
|
+
};
|
|
241
|
+
return {
|
|
242
|
+
getItem(key) {
|
|
243
|
+
const mapped = keyFor(key);
|
|
244
|
+
return mapped === null ? null : storage().getItem(mapped);
|
|
245
|
+
},
|
|
246
|
+
setItem(key, value) {
|
|
247
|
+
const mapped = writableKey(key);
|
|
248
|
+
storage().setItem(mapped, value);
|
|
249
|
+
},
|
|
250
|
+
removeItem(key) {
|
|
251
|
+
const mapped = writableKey(key);
|
|
252
|
+
storage().removeItem(mapped);
|
|
253
|
+
},
|
|
254
|
+
};
|
|
255
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type SessionIdentitySnapshot } from './sessionIdentity.js';
|
|
2
|
+
type SessionLockReason = 'expired' | 'signed-out' | 'account-changed' | 'other-tab' | 'unavailable';
|
|
3
|
+
interface SessionLifecycleOptions {
|
|
4
|
+
onLock: (reason: SessionLockReason) => void;
|
|
5
|
+
onCheck?: (snapshot: SessionIdentitySnapshot, signal: AbortSignal) => Promise<Response>;
|
|
6
|
+
/** Tenant hosts also revalidate the captured selection, not just the account. */
|
|
7
|
+
onContextCheck?: (snapshot: SessionIdentitySnapshot, signal: AbortSignal) => Promise<void>;
|
|
8
|
+
/** Unavailable verification is recoverable for selected tenants. Confirmed
|
|
9
|
+
* sign-out, account changes and context denial still retire private state. */
|
|
10
|
+
onTenantSuspend?: (snapshot: SessionIdentitySnapshot) => void;
|
|
11
|
+
/** Retire denied business data without destroying independently admitted
|
|
12
|
+
* account administration. Must synchronously retire the selected data owner. */
|
|
13
|
+
onTenantDenied?: (snapshot: SessionIdentitySnapshot) => void;
|
|
14
|
+
onReload?: () => void;
|
|
15
|
+
intervalMs?: number;
|
|
16
|
+
/** Each try's deadline, and the deadline of what follows the answer. */
|
|
17
|
+
timeoutMs?: number;
|
|
18
|
+
/** The pause before the one retry of a check that got no answer (a timeout, a network error, a 502/503/504). */
|
|
19
|
+
retryDelayMs?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const SESSION_CHANGE_KEY = "mistri.session-change.v1";
|
|
22
|
+
export declare function configureSessionLifecycle(next: SessionLifecycleOptions): void;
|
|
23
|
+
/** This notice carries no account information and is never an authorization signal. */
|
|
24
|
+
export declare function announceSessionChange(): void;
|
|
25
|
+
export declare function invalidateSession(reason: SessionLockReason, broadcast?: boolean): void;
|
|
26
|
+
export declare function beginSessionSignOut(): void;
|
|
27
|
+
export declare function invalidateTenantContext(snapshot: SessionIdentitySnapshot): void;
|
|
28
|
+
/** Call only after sign-in/sign-out cookie updates have completed. */
|
|
29
|
+
export declare function reloadSession(): void;
|
|
30
|
+
/** A stale check may neither replace identity nor lock a newer account. */
|
|
31
|
+
export declare function checkSessionIdentity(): Promise<void>;
|
|
32
|
+
export declare function startSessionMonitoring(): () => void;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { captureSessionIdentity, lockSessionIdentity, sessionIdentity } from './sessionIdentity.js';
|
|
2
|
+
import { say } from './copy/shell/sessionLifecycle.js';
|
|
3
|
+
import { addHostListener, removeHostListener } from './shellHost.js';
|
|
4
|
+
import { fetchServer } from './transport.js';
|
|
5
|
+
export const SESSION_CHANGE_KEY = 'mistri.session-change.v1';
|
|
6
|
+
let options = { onLock: () => { } };
|
|
7
|
+
let stopMonitoring;
|
|
8
|
+
let generation = 0;
|
|
9
|
+
let pending;
|
|
10
|
+
export function configureSessionLifecycle(next) {
|
|
11
|
+
stopMonitoring?.();
|
|
12
|
+
generation++;
|
|
13
|
+
pending?.controller.abort();
|
|
14
|
+
pending = undefined;
|
|
15
|
+
options = next;
|
|
16
|
+
}
|
|
17
|
+
/** This notice carries no account information and is never an authorization signal. */
|
|
18
|
+
export function announceSessionChange() {
|
|
19
|
+
try {
|
|
20
|
+
window.localStorage.setItem(SESSION_CHANGE_KEY, crypto.randomUUID());
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
/* Storage can be disabled. */
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function invalidateSession(reason, broadcast = true) {
|
|
27
|
+
const previous = sessionIdentity();
|
|
28
|
+
if (previous.mode === 'locked')
|
|
29
|
+
return;
|
|
30
|
+
lockSessionIdentity();
|
|
31
|
+
pending?.controller.abort();
|
|
32
|
+
pending = undefined;
|
|
33
|
+
try {
|
|
34
|
+
options.onLock(reason);
|
|
35
|
+
}
|
|
36
|
+
finally {
|
|
37
|
+
if (broadcast && previous.mode === 'authenticated')
|
|
38
|
+
announceSessionChange();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export function beginSessionSignOut() {
|
|
42
|
+
invalidateSession('signed-out');
|
|
43
|
+
}
|
|
44
|
+
export function invalidateTenantContext(snapshot) {
|
|
45
|
+
if (sessionIdentity() !== snapshot)
|
|
46
|
+
return;
|
|
47
|
+
if (snapshot.tenant && options.onTenantDenied) {
|
|
48
|
+
try {
|
|
49
|
+
options.onTenantDenied(snapshot);
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
/* Failed retirement still locks below. */
|
|
53
|
+
}
|
|
54
|
+
// A hook cannot leave denied data authority active, even if it throws away
|
|
55
|
+
// the UI alone. The default remains a complete fail-closed session lock.
|
|
56
|
+
if (sessionIdentity() !== snapshot)
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
invalidateSession('unavailable', false);
|
|
60
|
+
}
|
|
61
|
+
/** Call only after sign-in/sign-out cookie updates have completed. */
|
|
62
|
+
export function reloadSession() {
|
|
63
|
+
options.onReload?.();
|
|
64
|
+
}
|
|
65
|
+
const isCurrent = (snapshot, capturedGeneration) => generation === capturedGeneration && sessionIdentity() === snapshot;
|
|
66
|
+
/** A gateway's answers that say the server did not get to the question: worth one more try. */
|
|
67
|
+
const TRANSIENT_STATUS = new Set([502, 503, 504]);
|
|
68
|
+
/** The pause before the one retry, and the spread added to it so a server's many tabs do not all ask again at once. */
|
|
69
|
+
const RETRY_DELAY_MS = 750;
|
|
70
|
+
const RETRY_JITTER_MS = 500;
|
|
71
|
+
/* A wait that a superseding check ends early; the caller asks isCurrent after it. */
|
|
72
|
+
const pause = (ms, signal) => new Promise((resolve) => {
|
|
73
|
+
if (signal.aborted)
|
|
74
|
+
return resolve();
|
|
75
|
+
const done = () => {
|
|
76
|
+
clearTimeout(timer);
|
|
77
|
+
signal.removeEventListener('abort', done);
|
|
78
|
+
resolve();
|
|
79
|
+
};
|
|
80
|
+
const timer = setTimeout(done, ms);
|
|
81
|
+
signal.addEventListener('abort', done, { once: true });
|
|
82
|
+
});
|
|
83
|
+
/** A stale check may neither replace identity nor lock a newer account. */
|
|
84
|
+
export function checkSessionIdentity() {
|
|
85
|
+
const snapshot = captureSessionIdentity();
|
|
86
|
+
if (snapshot.mode !== 'authenticated')
|
|
87
|
+
return Promise.resolve();
|
|
88
|
+
if (pending?.snapshot === snapshot)
|
|
89
|
+
return pending.promise;
|
|
90
|
+
pending?.controller.abort();
|
|
91
|
+
const controller = new AbortController();
|
|
92
|
+
const capturedGeneration = generation;
|
|
93
|
+
const config = options;
|
|
94
|
+
const work = { snapshot, controller, promise: Promise.resolve() };
|
|
95
|
+
pending = work;
|
|
96
|
+
work.promise = (async () => {
|
|
97
|
+
let timer;
|
|
98
|
+
let onAbort;
|
|
99
|
+
const timeoutMs = config.timeoutMs ?? 10_000;
|
|
100
|
+
try {
|
|
101
|
+
/* One try at the account check, under its own deadline. A try that ran out of time, or never got an answer, is
|
|
102
|
+
transient; so is a gateway's 502, 503 or 504. Everything else is the server's answer. */
|
|
103
|
+
const ask = async () => {
|
|
104
|
+
const attempt = new AbortController();
|
|
105
|
+
const relay = () => attempt.abort();
|
|
106
|
+
controller.signal.addEventListener('abort', relay, { once: true });
|
|
107
|
+
let late;
|
|
108
|
+
let stopped;
|
|
109
|
+
try {
|
|
110
|
+
const cut = new Promise((_, reject) => {
|
|
111
|
+
stopped = () => reject(new Error(say('sessionCheckInterrupted')));
|
|
112
|
+
attempt.signal.addEventListener('abort', stopped, { once: true });
|
|
113
|
+
late = setTimeout(() => attempt.abort(), timeoutMs);
|
|
114
|
+
});
|
|
115
|
+
const request = config.onCheck
|
|
116
|
+
? config.onCheck(snapshot, attempt.signal)
|
|
117
|
+
: fetchServer(`/api/whoami?${new URLSearchParams({ app: snapshot.appId })}`, {
|
|
118
|
+
credentials: 'same-origin',
|
|
119
|
+
cache: 'no-store',
|
|
120
|
+
signal: attempt.signal,
|
|
121
|
+
});
|
|
122
|
+
const response = await Promise.race([request, cut]);
|
|
123
|
+
return TRANSIENT_STATUS.has(response.status) ? { transient: true } : { response };
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
/* Superseded, or a refusal that says who: never retried. A missing answer is. */
|
|
127
|
+
if (controller.signal.aborted || error?.status !== undefined)
|
|
128
|
+
throw error;
|
|
129
|
+
return { transient: true };
|
|
130
|
+
}
|
|
131
|
+
finally {
|
|
132
|
+
clearTimeout(late);
|
|
133
|
+
controller.signal.removeEventListener('abort', relay);
|
|
134
|
+
if (stopped)
|
|
135
|
+
attempt.signal.removeEventListener('abort', stopped);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
/* Under load the server is slow, not wrong: a check that got no answer is asked once more after a short, jittered
|
|
139
|
+
pause before the session is called unavailable. A definite answer — 401, 403, another person — locks at once. */
|
|
140
|
+
let asked = await ask();
|
|
141
|
+
if ('transient' in asked && isCurrent(snapshot, capturedGeneration)) {
|
|
142
|
+
await pause(config.retryDelayMs ?? RETRY_DELAY_MS + Math.random() * RETRY_JITTER_MS, controller.signal);
|
|
143
|
+
if (!isCurrent(snapshot, capturedGeneration))
|
|
144
|
+
return;
|
|
145
|
+
asked = await ask();
|
|
146
|
+
}
|
|
147
|
+
if (!isCurrent(snapshot, capturedGeneration))
|
|
148
|
+
return;
|
|
149
|
+
if ('transient' in asked)
|
|
150
|
+
throw new Error(say('sessionVerificationIsUnavailable'));
|
|
151
|
+
const { response } = asked;
|
|
152
|
+
/* What follows the answer — its body, a tenant's context check — has a deadline of its own. */
|
|
153
|
+
const interrupted = new Promise((_, reject) => {
|
|
154
|
+
onAbort = () => reject(new Error(say('sessionCheckInterrupted')));
|
|
155
|
+
controller.signal.addEventListener('abort', onAbort, { once: true });
|
|
156
|
+
timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
157
|
+
});
|
|
158
|
+
/* A lock below aborts the check: the deadline's rejection then has no reader, and is not an error. */
|
|
159
|
+
interrupted.catch(() => { });
|
|
160
|
+
if (response.status === 401) {
|
|
161
|
+
invalidateSession('expired');
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (!response.ok) {
|
|
165
|
+
if (response.status === 403) {
|
|
166
|
+
invalidateSession('unavailable', false);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
throw new Error(say('sessionVerificationIsUnavailable'));
|
|
170
|
+
}
|
|
171
|
+
const value = await Promise.race([response.json(), interrupted]);
|
|
172
|
+
if (!isCurrent(snapshot, capturedGeneration))
|
|
173
|
+
return;
|
|
174
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
175
|
+
invalidateSession('unavailable', false);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const whoami = value;
|
|
179
|
+
if (whoami.signedIn === false) {
|
|
180
|
+
invalidateSession('expired');
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (whoami.signedIn !== true ||
|
|
184
|
+
typeof whoami.accountId !== 'string' ||
|
|
185
|
+
!whoami.accountId ||
|
|
186
|
+
typeof whoami.appId !== 'string' ||
|
|
187
|
+
!whoami.appId) {
|
|
188
|
+
invalidateSession('unavailable', false);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
if (whoami.accountId !== snapshot.accountId || whoami.appId !== snapshot.appId) {
|
|
192
|
+
invalidateSession('account-changed');
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (snapshot.tenant) {
|
|
196
|
+
if (!config.onContextCheck)
|
|
197
|
+
throw new Error(say('tenantContextVerificationIsUnavailable'));
|
|
198
|
+
await Promise.race([config.onContextCheck(snapshot, controller.signal), interrupted]);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
if (isCurrent(snapshot, capturedGeneration)) {
|
|
203
|
+
const denial = error;
|
|
204
|
+
if (denial?.status === 401)
|
|
205
|
+
invalidateSession('expired');
|
|
206
|
+
else if (denial?.status === 403 || denial?.code === 'tenant_context_unavailable')
|
|
207
|
+
invalidateTenantContext(snapshot);
|
|
208
|
+
else if (snapshot.tenant && config.onTenantSuspend)
|
|
209
|
+
config.onTenantSuspend(snapshot);
|
|
210
|
+
else
|
|
211
|
+
invalidateSession('unavailable', false);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
finally {
|
|
215
|
+
clearTimeout(timer);
|
|
216
|
+
if (onAbort)
|
|
217
|
+
controller.signal.removeEventListener('abort', onAbort);
|
|
218
|
+
if (pending === work)
|
|
219
|
+
pending = undefined;
|
|
220
|
+
}
|
|
221
|
+
})();
|
|
222
|
+
return work.promise;
|
|
223
|
+
}
|
|
224
|
+
export function startSessionMonitoring() {
|
|
225
|
+
if (stopMonitoring)
|
|
226
|
+
return stopMonitoring;
|
|
227
|
+
const foreground = () => {
|
|
228
|
+
if (document.visibilityState !== 'hidden')
|
|
229
|
+
void checkSessionIdentity();
|
|
230
|
+
};
|
|
231
|
+
const parking = (event) => {
|
|
232
|
+
// A selected tenant can park its mounted forms behind the recovery cover.
|
|
233
|
+
const snapshot = sessionIdentity();
|
|
234
|
+
if (event.persisted && snapshot.mode === 'authenticated') {
|
|
235
|
+
if (snapshot.tenant && options.onTenantSuspend)
|
|
236
|
+
options.onTenantSuspend(snapshot);
|
|
237
|
+
else
|
|
238
|
+
invalidateSession('unavailable', false);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
const noticed = (event) => {
|
|
242
|
+
if (event.key === SESSION_CHANGE_KEY && event.newValue && sessionIdentity().mode === 'authenticated') {
|
|
243
|
+
// A sessionStorage event must not masquerade as the shared localStorage notice.
|
|
244
|
+
try {
|
|
245
|
+
if (event.storageArea && event.storageArea !== window.localStorage)
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
catch {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
invalidateSession('other-tab', false);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
addHostListener(window, 'focus', foreground);
|
|
255
|
+
addHostListener(window, 'pageshow', foreground);
|
|
256
|
+
addHostListener(window, 'pagehide', parking);
|
|
257
|
+
addHostListener(document, 'visibilitychange', foreground);
|
|
258
|
+
addHostListener(window, 'storage', noticed);
|
|
259
|
+
const timer = setInterval(foreground, options.intervalMs ?? 60_000);
|
|
260
|
+
const stop = () => {
|
|
261
|
+
if (stopMonitoring !== stop)
|
|
262
|
+
return;
|
|
263
|
+
stopMonitoring = undefined;
|
|
264
|
+
generation++;
|
|
265
|
+
pending?.controller.abort();
|
|
266
|
+
pending = undefined;
|
|
267
|
+
clearInterval(timer);
|
|
268
|
+
removeHostListener(window, 'focus', foreground);
|
|
269
|
+
removeHostListener(window, 'pageshow', foreground);
|
|
270
|
+
removeHostListener(window, 'pagehide', parking);
|
|
271
|
+
removeHostListener(document, 'visibilitychange', foreground);
|
|
272
|
+
removeHostListener(window, 'storage', noticed);
|
|
273
|
+
};
|
|
274
|
+
stopMonitoring = stop;
|
|
275
|
+
return stop;
|
|
276
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every place the shell touches the page around it: the address bar and its
|
|
3
|
+
* history, the tab's title, the root element that carries the look, the
|
|
4
|
+
* density zoom and the tokens, the body its chrome hangs classes on, where
|
|
5
|
+
* popups are drawn, which document its ids are looked up in, and the
|
|
6
|
+
* listeners it puts on the window and the document.
|
|
7
|
+
*
|
|
8
|
+
* Served, the page is the shell's own, and each of these is exactly the
|
|
9
|
+
* global it names. They are gathered here so that the shell can one day run
|
|
10
|
+
* inside a page that is not its own — a React host's route, with the host's
|
|
11
|
+
* router owning the history, the host's `<title>`, a `.tw-root` element in
|
|
12
|
+
* place of `<html>` — by changing this module rather than four hundred call
|
|
13
|
+
* sites. test/check-client-host.mjs keeps it the only place: a new
|
|
14
|
+
* `window.history`, `document.title`, `document.documentElement`, `document.body`,
|
|
15
|
+
* document-wide lookup or window/document listener elsewhere fails the check.
|
|
16
|
+
*
|
|
17
|
+
* Kept tiny on purpose: it is on every first page, and the budget there is
|
|
18
|
+
* counted in hundreds of bytes (scripts/bundle-budget.mjs).
|
|
19
|
+
*/
|
|
20
|
+
/** The element the look, the color scheme, the density zoom and the tokens are written on. */
|
|
21
|
+
export declare const shellRoot: () => HTMLElement;
|
|
22
|
+
/** The element the shell's chrome hangs its state classes on (`app-mode`, `sidebar-hidden`, …). */
|
|
23
|
+
export declare const shellBody: () => HTMLElement;
|
|
24
|
+
/** Where a floating panel, a dialog or a measuring mirror is appended. */
|
|
25
|
+
export declare const portalRoot: () => HTMLElement;
|
|
26
|
+
/**
|
|
27
|
+
* The container handed to Base UI's portals. Undefined lets Base UI choose,
|
|
28
|
+
* which is the body — or the enclosing portal for a popup inside a popup,
|
|
29
|
+
* which an explicit body would not keep.
|
|
30
|
+
*/
|
|
31
|
+
export declare const popupContainer: () => HTMLElement | undefined;
|
|
32
|
+
/** The shell's element with this id. */
|
|
33
|
+
export declare const shellById: (id: string) => HTMLElement | null;
|
|
34
|
+
/** The shell's first element matching a selector. */
|
|
35
|
+
export declare const shellQuery: <E extends Element = HTMLElement>(selector: string) => E | null;
|
|
36
|
+
/** Every shell element matching a selector. */
|
|
37
|
+
export declare const shellQueryAll: <E extends Element = HTMLElement>(selector: string) => NodeListOf<E>;
|
|
38
|
+
/** The brand's words: the App's name, and its short name where it gives one, which a phone's bar says instead
|
|
39
|
+
(style.css). The full name stays in the button, read, so it is what the button is called. */
|
|
40
|
+
export declare function sayBrandName(brand: Element | null, name: string, short?: string): void;
|
|
41
|
+
/** Say what the tab shows. */
|
|
42
|
+
export declare function setTabTitle(title: string): void;
|
|
43
|
+
/** Keep a choice the server reads with every request (a reader's language, messages.ts) for a year, on every path of this origin. */
|
|
44
|
+
export declare function setHostCookie(name: string, value: string): void;
|
|
45
|
+
/** The tab's icon, which an App's mark is drawn into; none where the page around the shell keeps its own. */
|
|
46
|
+
export declare const tabIcon: () => HTMLLinkElement | null;
|
|
47
|
+
type Options = boolean | AddEventListenerOptions;
|
|
48
|
+
/**
|
|
49
|
+
* A listener on the window or the document, with the remover it needs.
|
|
50
|
+
* Overloaded as the DOM's own `addEventListener` is, so a key handler still
|
|
51
|
+
* receives a KeyboardEvent.
|
|
52
|
+
*/
|
|
53
|
+
export declare function addHostListener<K extends keyof WindowEventMap>(target: Window, type: K, fn: (event: WindowEventMap[K]) => unknown, options?: Options): () => void;
|
|
54
|
+
export declare function addHostListener<K extends keyof DocumentEventMap>(target: Document, type: K, fn: (event: DocumentEventMap[K]) => unknown, options?: Options): () => void;
|
|
55
|
+
export declare function addHostListener(target: EventTarget, type: string, fn: EventListenerOrEventListenerObject, options?: Options): () => void;
|
|
56
|
+
/** Take back a listener `addHostListener` put on, where the remover it returned is not to hand. */
|
|
57
|
+
export declare function removeHostListener<K extends keyof WindowEventMap>(target: Window, type: K, fn: (event: WindowEventMap[K]) => unknown, options?: Options): void;
|
|
58
|
+
export declare function removeHostListener<K extends keyof DocumentEventMap>(target: Document, type: K, fn: (event: DocumentEventMap[K]) => unknown, options?: Options): void;
|
|
59
|
+
export declare function removeHostListener(target: EventTarget, type: string, fn: EventListenerOrEventListenerObject, options?: Options): void;
|
|
60
|
+
/** The walk the current history entry carries. */
|
|
61
|
+
export declare const navState: () => any;
|
|
62
|
+
/** A new history entry. */
|
|
63
|
+
export declare const navPush: (href: string, walk?: unknown) => void;
|
|
64
|
+
/** The current history entry, rewritten. */
|
|
65
|
+
export declare const navReplace: (href: string, walk?: unknown) => void;
|
|
66
|
+
/** Back, Forward, or an address followed by `navFollow`: the shell reads the address again. */
|
|
67
|
+
export declare const onNavigate: (fn: () => void, options?: Options) => (() => void);
|
|
68
|
+
/** Follow an address inside the shell without a reload: a new entry, painted by the `onNavigate` listener. */
|
|
69
|
+
export declare function navFollow(href: string): void;
|
|
70
|
+
export {};
|