alinea 2.0.0-preview.1 → 2.0.0-preview.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.init/content/pages/welcome.json +1 -1
- package/dist/LICENSES.md +61 -34
- package/dist/adapter/next/DevRemote.d.ts +3 -0
- package/dist/adapter/next/DevRemote.js +37 -0
- package/dist/adapter/next/ForwardCredentials.d.ts +1 -0
- package/dist/adapter/next/ForwardCredentials.js +17 -0
- package/dist/adapter/next/cms.js +86 -38
- package/dist/adapter/next/context.d.ts +1 -1
- package/dist/adapter/next/context.js +11 -3
- package/dist/adapter/next/handler.d.ts +2 -0
- package/dist/adapter/next/handler.js +23 -16
- package/dist/adapter/next/with-alinea.js +18 -16
- package/dist/backend/Handler.d.ts +14 -13
- package/dist/backend/Handler.js +53 -22
- package/dist/backend/resolver/ParsePreview.d.ts +8 -4
- package/dist/backend/resolver/ParsePreview.js +40 -43
- package/dist/bundled.d.ts +255 -60
- package/dist/chunks/{chunk-LUBOGJCG.js → chunk-6V4TAD2N.js} +1 -1
- package/dist/chunks/{chunk-TL7ZW6BX.js → chunk-A3XXZBOQ.js} +2535 -2999
- package/dist/chunks/chunk-AC5ATYI3.js +1434 -0
- package/dist/chunks/{chunk-7ORQ7BYK.js → chunk-KMLLLZ6X.js} +202 -269
- package/dist/chunks/{chunk-IWN3T3FL.js → chunk-O7XWTMCB.js} +1 -1
- package/dist/chunks/{chunk-53DZYORR.js → chunk-PAYSVIYI.js} +76 -176
- package/dist/chunks/{chunk-YK3OSMDM.js → chunk-S4AU6SRS.js} +188 -158
- package/dist/chunks/{chunk-FRYHNUEK.js → chunk-UVOEM4AH.js} +6 -3
- package/dist/chunks/{chunk-I7X64JTZ.js → chunk-VXZM6V4P.js} +4 -4
- package/dist/cli/Generate.js +3 -13
- package/dist/cli/Serve.js +7 -3
- package/dist/cli/bin.js +8 -5
- package/dist/cli/generate/CopyStaticFiles.js +2 -3
- package/dist/cli/generate/DevDB.d.ts +1 -1
- package/dist/cli/generate/DevDB.js +3 -5
- package/dist/cli/serve/CreateLocalServer.d.ts +1 -1
- package/dist/cli/serve/CreateLocalServer.js +3 -2
- package/dist/cli/serve/DevServer.d.ts +3 -2
- package/dist/cli/serve/DevServer.js +60 -3
- package/dist/cli/serve/ServeContext.d.ts +1 -0
- package/dist/cli/serve/StartServer.d.ts +1 -0
- package/dist/cli/serve/StartServer.js +6 -1
- package/dist/cli/util/EnsureLibs.js +2 -2
- package/dist/cli/util/EnsureNode.js +2 -2
- package/dist/cloud/CloudRemote.js +1 -1
- package/dist/components/Breadcrumbs.js +8 -8
- package/dist/components/Button.js +6 -6
- package/dist/components/Calendar.js +9 -9
- package/dist/components/Checkbox.js +9 -9
- package/dist/components/CheckboxGroup.js +6 -6
- package/dist/components/ColorSwatch.js +6 -6
- package/dist/components/ColorSwatchPicker.js +6 -6
- package/dist/components/ComboBox.js +16 -16
- package/dist/components/DateField.js +9 -9
- package/dist/components/DatePicker.js +11 -11
- package/dist/components/DateRangePicker.js +14 -14
- package/dist/components/Dialog.js +6 -6
- package/dist/components/Disclosure.js +14 -14
- package/dist/components/DropZone.js +6 -6
- package/dist/components/Label.js +14 -14
- package/dist/components/Link.js +6 -6
- package/dist/components/List.js +32 -32
- package/dist/components/Menu.js +10 -10
- package/dist/components/Modal.js +8 -8
- package/dist/components/MultipleSelect.js +25 -25
- package/dist/components/NumberField.d.ts +2 -1
- package/dist/components/NumberField.js +25 -15
- package/dist/components/Popover.js +6 -6
- package/dist/components/ProgressCircle.js +9 -9
- package/dist/components/RadioGroup.js +8 -8
- package/dist/components/SearchField.js +15 -15
- package/dist/components/Select.js +14 -14
- package/dist/components/Surface.js +2 -2
- package/dist/components/Switch.js +8 -8
- package/dist/components/Table.js +14 -14
- package/dist/components/Tabs.js +7 -7
- package/dist/components/TagGroup.js +8 -8
- package/dist/components/TextField.js +10 -10
- package/dist/components/TimeField.js +8 -8
- package/dist/components/Toggle.js +8 -8
- package/dist/components/Toolbar.js +9 -9
- package/dist/components/Tooltip.js +7 -7
- package/dist/components/Tree.js +10 -10
- package/dist/core/Client.js +3 -2
- package/dist/core/Config.d.ts +4 -0
- package/dist/core/Config.js +6 -0
- package/dist/core/Connection.d.ts +2 -2
- package/dist/core/Connection.js +7 -0
- package/dist/core/Graph.d.ts +3 -4
- package/dist/core/ListRow.d.ts +2 -0
- package/dist/core/OrderBy.d.ts +7 -3
- package/dist/core/TextDoc.d.ts +11 -0
- package/dist/core/Trace.d.ts +8 -0
- package/dist/core/Trace.js +32 -0
- package/dist/core/db/CommitRequest.d.ts +0 -3
- package/dist/core/db/CommitRequest.js +0 -9
- package/dist/core/db/EntryDB.js +1 -1
- package/dist/core/db/EntryIndex.d.ts +10 -0
- package/dist/core/db/EntryIndex.js +117 -9
- package/dist/core/db/EntryResolver.js +104 -29
- package/dist/core/db/EntryTransaction.d.ts +1 -2
- package/dist/core/db/EntryTransaction.js +25 -13
- package/dist/core/db/LocalDB.d.ts +2 -3
- package/dist/core/db/LocalDB.js +24 -19
- package/dist/core/field/RichTextField.d.ts +30 -3
- package/dist/core/field/RichTextField.js +125 -41
- package/dist/core/media/MediaAltField.d.ts +1 -0
- package/dist/core/media/MediaAltField.js +9 -1
- package/dist/core/source/OverlaySource.d.ts +12 -0
- package/dist/core/source/OverlaySource.js +50 -0
- package/dist/core/source/Source.d.ts +1 -1
- package/dist/core/source/Source.js +3 -3
- package/dist/dashboard/App.css +158 -0
- package/dist/dashboard/App.js +3 -3
- package/dist/dashboard/app/AccessDenied.js +1 -1
- package/dist/dashboard/app/ActivityStatus.js +14 -14
- package/dist/dashboard/app/AppShell.js +2 -2
- package/dist/dashboard/app/AuthView.js +12 -12
- package/dist/dashboard/app/Badge.js +2 -2
- package/dist/dashboard/app/CompactField.js +13 -13
- package/dist/dashboard/app/DashboardErrorBoundary.js +6 -6
- package/dist/dashboard/app/DashboardLayout.js +22 -19
- package/dist/dashboard/app/EntryHeader.js +10 -10
- package/dist/dashboard/app/EntryReferences.js +9 -9
- package/dist/dashboard/app/EntrySidebar.d.ts +1 -1
- package/dist/dashboard/app/EntrySidebar.js +19 -18
- package/dist/dashboard/app/EntrySidebarPreview.d.ts +1 -1
- package/dist/dashboard/app/EntrySidebarPreview.js +20 -15
- package/dist/dashboard/app/EntryTranslationBanner.js +6 -6
- package/dist/dashboard/app/Explorer.js +46 -46
- package/dist/dashboard/app/ExplorerCards.js +42 -42
- package/dist/dashboard/app/ExplorerFileCard.js +16 -16
- package/dist/dashboard/app/ExplorerList.js +15 -15
- package/dist/dashboard/app/ExplorerModal.js +5 -5
- package/dist/dashboard/app/ExplorerTable.js +54 -54
- package/dist/dashboard/app/ExternalLinkPicker.js +15 -4
- package/dist/dashboard/app/LinkPicker.js +6 -6
- package/dist/dashboard/app/LocaleMenu.js +11 -11
- package/dist/dashboard/app/SidebarLayout.d.ts +8 -0
- package/dist/dashboard/app/SidebarLayout.js +1169 -0
- package/dist/dashboard/app/SidebarTree.js +44 -44
- package/dist/dashboard/app/WorkspaceMenu.js +17 -17
- package/dist/dashboard/app/WorkspaceRoots.js +26 -26
- package/dist/dashboard/app/editor/FileEditor.js +28 -29
- package/dist/dashboard/app/editor/FilePreview.js +2 -2
- package/dist/dashboard/app/editor/MediaAltField.view.d.ts +1 -1
- package/dist/dashboard/app/editor/MediaAltField.view.js +6 -9
- package/dist/dashboard/app/modals/CreateEntry.js +4 -4
- package/dist/dashboard/app/pages/EntryPage.js +49 -25
- package/dist/dashboard/app/pages/UsersPage.js +38 -38
- package/dist/dashboard/app/ui/DashboardModal.js +22 -22
- package/dist/dashboard/app/ui/Rail.js +2 -2
- package/dist/dashboard/app/ui/Sidebar.js +2 -2
- package/dist/dashboard/atoms/auth.js +2 -0
- package/dist/dashboard/atoms/dashboard.d.ts +9 -0
- package/dist/dashboard/atoms/dashboard.js +17 -0
- package/dist/dashboard/atoms/editor.d.ts +7 -1
- package/dist/dashboard/atoms/editor.js +4 -1
- package/dist/dashboard/atoms/entry.d.ts +3 -1
- package/dist/dashboard/atoms/entry.js +55 -15
- package/dist/dashboard/atoms/explorer.js +3 -8
- package/dist/dashboard/atoms/preview.d.ts +3 -0
- package/dist/dashboard/atoms/preview.js +18 -1
- package/dist/dashboard/hooks.d.ts +4 -2
- package/dist/dashboard/hooks.js +9 -5
- package/dist/dashboard/icons.d.ts +1 -0
- package/dist/dashboard/icons.js +10 -0
- package/dist/field/check/CheckField.view.js +2 -2
- package/dist/field/code/CodeField.view.js +13 -13
- package/dist/field/date/DateField.view.js +12 -2
- package/dist/field/link/Link.js +2 -2
- package/dist/field/link/LinkField.view.js +88 -77
- package/dist/field/list/ListField.view.js +22 -33
- package/dist/field/metadata/MetadataField.view.js +20 -20
- package/dist/field/number/NumberField.d.ts +2 -0
- package/dist/field/number/NumberField.view.js +4 -2
- package/dist/field/richtext/PickTextLink.d.ts +7 -0
- package/dist/field/richtext/PickTextLink.js +104 -2
- package/dist/field/richtext/ReferenceLink.d.ts +4 -1
- package/dist/field/richtext/ReferenceLink.js +18 -4
- package/dist/field/richtext/RichTextDocument.d.ts +7 -2
- package/dist/field/richtext/RichTextDocument.js +34 -5
- package/dist/field/richtext/RichTextExtensions.d.ts +3 -1
- package/dist/field/richtext/RichTextExtensions.js +2704 -7467
- package/dist/field/richtext/RichTextField.d.ts +4 -0
- package/dist/field/richtext/RichTextField.story.d.ts +4 -0
- package/dist/field/richtext/RichTextField.view.js +44 -21
- package/dist/field/richtext/RichTextInsertMenu.js +281 -495
- package/dist/field/richtext/RichTextToolbar.d.ts +5 -2
- package/dist/field/richtext/RichTextToolbar.js +38 -3
- package/dist/field/richtext/Toolbar.d.ts +19 -1
- package/dist/field/richtext/Toolbar.js +18 -13
- package/dist/field/richtext/extensions/Anchor.js +1 -1
- package/dist/field/richtext/extensions/Link.js +1 -1
- package/dist/field/richtext/extensions/Small.js +1 -1
- package/dist/field/select/SelectField.view.js +8 -6
- package/dist/index.css +219 -14
- package/dist/next.cjs +18 -16
- package/dist/next.d.ts +2 -1
- package/dist/next.edge.d.ts +2 -1
- package/dist/ui/RichText.d.ts +1 -0
- package/dist/ui/RichText.js +29 -2
- package/package.json +6 -3
- package/dist/chunks/{chunk-JFROOUG6.js → chunk-NIVGVRDS.js} +17 -17
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$24585aa46d6ffdff$export$b5d5cf8927ab7262
|
|
3
|
-
} from "../chunks/chunk-
|
|
4
|
-
import "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
4
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
5
5
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
6
|
-
import "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
6
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
8
7
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
9
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
10
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
11
11
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
12
12
|
import {
|
|
13
13
|
dist_default
|
|
@@ -16,9 +16,9 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
16
16
|
|
|
17
17
|
// src/components/Switch.module.css
|
|
18
18
|
var Switch_default = {
|
|
19
|
+
"Switch": "alinea-Switch",
|
|
19
20
|
"Switch-track": "alinea-Switch-track",
|
|
20
|
-
"SwitchTrack": "alinea-Switch-track"
|
|
21
|
-
"Switch": "alinea-Switch"
|
|
21
|
+
"SwitchTrack": "alinea-Switch-track"
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// src/components/Switch.tsx
|
package/dist/components/Table.js
CHANGED
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
$76d00c5a4edb230a$export$f6f0c3fe4ec306ea,
|
|
7
7
|
$76d00c5a4edb230a$export$f850895b287ef28e,
|
|
8
8
|
$76d00c5a4edb230a$export$fddc468cd8cb4db9
|
|
9
|
-
} from "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
10
10
|
import {
|
|
11
11
|
$42ceafc619f9c3ba$export$fb8073518f34e6ec
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-O7XWTMCB.js";
|
|
13
13
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
14
|
-
import "../chunks/chunk-
|
|
15
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
14
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
16
15
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
17
|
-
import "../chunks/chunk-
|
|
18
|
-
import "../chunks/chunk-
|
|
16
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
17
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
18
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
19
19
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
20
20
|
import {
|
|
21
21
|
dist_default
|
|
@@ -32,18 +32,18 @@ import { Surface } from "./Surface.js";
|
|
|
32
32
|
|
|
33
33
|
// src/components/Table.module.css
|
|
34
34
|
var Table_default = {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"Table-table": "alinea-Table-table",
|
|
38
|
-
"TableTable": "alinea-Table-table",
|
|
35
|
+
"TableBody": "alinea-TableBody",
|
|
36
|
+
"Column": "alinea-Column",
|
|
39
37
|
"Column-label": "alinea-Column-label",
|
|
40
38
|
"ColumnLabel": "alinea-Column-label",
|
|
39
|
+
"TableHeader": "alinea-TableHeader",
|
|
40
|
+
"Table-table": "alinea-Table-table",
|
|
41
|
+
"TableTable": "alinea-Table-table",
|
|
41
42
|
"Column-sortIndicator": "alinea-Column-sortIndicator",
|
|
42
43
|
"ColumnSortIndicator": "alinea-Column-sortIndicator",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"Table": "alinea-Table"
|
|
44
|
+
"Table": "alinea-Table",
|
|
45
|
+
"Row": "alinea-Row",
|
|
46
|
+
"Cell": "alinea-Cell"
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
// src/components/Table.tsx
|
package/dist/components/Tabs.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
$b4f18e3395fe64d7$export$3e41faf802a29e71,
|
|
4
4
|
$b4f18e3395fe64d7$export$b2539bed5023c21c,
|
|
5
5
|
$b4f18e3395fe64d7$export$e51a686c67fdaa2d
|
|
6
|
-
} from "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
7
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
8
8
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
9
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
11
10
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
12
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
13
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
14
14
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
15
15
|
import {
|
|
16
16
|
dist_default
|
|
@@ -19,9 +19,9 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
19
19
|
|
|
20
20
|
// src/components/Tabs.module.css
|
|
21
21
|
var Tabs_default = {
|
|
22
|
-
"Tab": "alinea-Tab",
|
|
23
22
|
"TabList-list": "alinea-TabList-list",
|
|
24
23
|
"TabListList": "alinea-TabList-list",
|
|
24
|
+
"Tab": "alinea-Tab",
|
|
25
25
|
"TabList": "alinea-TabList",
|
|
26
26
|
"Tabs": "alinea-Tabs",
|
|
27
27
|
"TabPanel": "alinea-TabPanel"
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
$3df3ddf5bafbc7b1$export$67ea30858aaf75e3,
|
|
4
4
|
$3df3ddf5bafbc7b1$export$f9fef0f55402315b,
|
|
5
5
|
$7705c033048f6da7$export$353f5b6fc5456de1
|
|
6
|
-
} from "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
7
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
8
8
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
9
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
11
10
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
12
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
13
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
14
14
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
15
15
|
import {
|
|
16
16
|
dist_default
|
|
@@ -24,10 +24,10 @@ import { Label, labelProps } from "./Label.js";
|
|
|
24
24
|
|
|
25
25
|
// src/components/TagGroup.module.css
|
|
26
26
|
var TagGroup_default = {
|
|
27
|
-
"
|
|
27
|
+
"Tag": "alinea-Tag",
|
|
28
28
|
"TagGroup-list": "alinea-TagGroup-list",
|
|
29
29
|
"TagGroupList": "alinea-TagGroup-list",
|
|
30
|
-
"
|
|
30
|
+
"TagGroup": "alinea-TagGroup"
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// src/components/TagGroup.tsx
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
$41fb335299a4a39e$export$f5b8910cec6cf069,
|
|
3
3
|
$b8dcdc58eeae0d40$export$2c73285ae9390cec,
|
|
4
4
|
$bd263d78e9bf3c56$export$f5c9f3c2c4054eec
|
|
5
|
-
} from "../chunks/chunk-
|
|
6
|
-
import "../chunks/chunk-
|
|
5
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
6
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
7
7
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
8
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
10
9
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
11
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
12
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
13
13
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
14
14
|
import {
|
|
15
15
|
dist_default
|
|
@@ -21,15 +21,15 @@ import { Label, labelProps } from "../components/Label.js";
|
|
|
21
21
|
|
|
22
22
|
// src/components/TextField.module.css
|
|
23
23
|
var TextField_default = {
|
|
24
|
-
"TextField-multiline-shadow": "alinea-TextField-multiline-shadow",
|
|
25
|
-
"TextFieldMultilineShadow": "alinea-TextField-multiline-shadow",
|
|
26
24
|
"TextField-input": "alinea-TextField-input",
|
|
27
25
|
"TextFieldInput": "alinea-TextField-input",
|
|
28
26
|
"TextField-multiline-area": "alinea-TextField-multiline-area",
|
|
29
27
|
"TextFieldMultilineArea": "alinea-TextField-multiline-area",
|
|
28
|
+
"TextField": "alinea-TextField",
|
|
29
|
+
"TextField-multiline-shadow": "alinea-TextField-multiline-shadow",
|
|
30
|
+
"TextFieldMultilineShadow": "alinea-TextField-multiline-shadow",
|
|
30
31
|
"TextField-multiline": "alinea-TextField-multiline",
|
|
31
|
-
"TextFieldMultiline": "alinea-TextField-multiline"
|
|
32
|
-
"TextField": "alinea-TextField"
|
|
32
|
+
"TextFieldMultiline": "alinea-TextField-multiline"
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
// src/components/TextField.tsx
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
$5400c097f4765e59$export$336ab7fa954c4b5f,
|
|
3
3
|
$5400c097f4765e59$export$5eaee2322dd727eb,
|
|
4
4
|
$5400c097f4765e59$export$7edc06cf1783b30f
|
|
5
|
-
} from "../chunks/chunk-
|
|
6
|
-
import "../chunks/chunk-
|
|
5
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
6
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
7
7
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
8
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
10
9
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
11
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
12
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
13
13
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
14
14
|
import {
|
|
15
15
|
dist_default
|
|
@@ -21,10 +21,10 @@ import { Label, labelProps } from "./Label.js";
|
|
|
21
21
|
|
|
22
22
|
// src/components/TimeField.module.css
|
|
23
23
|
var TimeField_default = {
|
|
24
|
-
"TimeField-input": "alinea-TimeField-input",
|
|
25
|
-
"TimeFieldInput": "alinea-TimeField-input",
|
|
26
24
|
"TimeField-segment": "alinea-TimeField-segment",
|
|
27
25
|
"TimeFieldSegment": "alinea-TimeField-segment",
|
|
26
|
+
"TimeField-input": "alinea-TimeField-input",
|
|
27
|
+
"TimeFieldInput": "alinea-TimeField-input",
|
|
28
28
|
"TimeField": "alinea-TimeField"
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$75afe627ae0cc0fa$export$d2b052e7b4be1756,
|
|
3
3
|
$bc25b811ec97a172$export$40258cc1d95ff477
|
|
4
|
-
} from "../chunks/chunk-
|
|
5
|
-
import "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
5
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
6
6
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
8
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
7
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
9
8
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
10
|
-
import "../chunks/chunk-
|
|
11
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
10
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
11
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
12
12
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
13
13
|
import {
|
|
14
14
|
dist_default
|
|
@@ -17,8 +17,8 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
17
17
|
|
|
18
18
|
// src/components/Toggle.module.css
|
|
19
19
|
var Toggle_default = {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"ToggleButtonGroup": "alinea-ToggleButtonGroup",
|
|
21
|
+
"ToggleButton": "alinea-ToggleButton"
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// src/components/Toggle.tsx
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
$75afe627ae0cc0fa$export$d2b052e7b4be1756,
|
|
4
4
|
$db7105decd081705$export$4c260019440d418f,
|
|
5
5
|
$e28ab3efe3e87743$export$1ff3c3f08ae963c0
|
|
6
|
-
} from "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
7
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
8
8
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
9
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
11
10
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
12
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
13
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
14
14
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
15
15
|
import {
|
|
16
16
|
dist_default
|
|
@@ -19,10 +19,10 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
19
19
|
|
|
20
20
|
// src/components/Toolbar.module.css
|
|
21
21
|
var Toolbar_default = {
|
|
22
|
-
"
|
|
22
|
+
"Toolbar": "alinea-Toolbar",
|
|
23
23
|
"ToolbarGroup": "alinea-ToolbarGroup",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"ToolbarButton": "alinea-ToolbarButton",
|
|
25
|
+
"ToolbarSeparator": "alinea-ToolbarSeparator"
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// src/components/Toolbar.tsx
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
$05a50f7d78b03ad9$export$28c660c63b792dea,
|
|
3
3
|
$05a50f7d78b03ad9$export$8c610744efcf8a1d,
|
|
4
4
|
$4fcfe18fac72dabd$export$746d02f47f4d381
|
|
5
|
-
} from "../chunks/chunk-
|
|
6
|
-
import "../chunks/chunk-
|
|
5
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
6
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
7
7
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
8
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
10
9
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
11
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
12
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
13
13
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
14
14
|
import {
|
|
15
15
|
dist_default
|
|
@@ -18,9 +18,9 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
18
18
|
|
|
19
19
|
// src/components/Tooltip.module.css
|
|
20
20
|
var Tooltip_default = {
|
|
21
|
-
"Tooltip": "alinea-Tooltip",
|
|
22
21
|
"slide-in": "alinea-slide-in",
|
|
23
22
|
"slideIn": "alinea-slide-in",
|
|
23
|
+
"Tooltip": "alinea-Tooltip",
|
|
24
24
|
"Tooltip-arrow": "alinea-Tooltip-arrow",
|
|
25
25
|
"TooltipArrow": "alinea-Tooltip-arrow"
|
|
26
26
|
};
|
package/dist/components/Tree.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
$89d060d8eb451127$export$4b687e3f663d618c,
|
|
4
4
|
$89d060d8eb451127$export$53d36ab85dc89436,
|
|
5
5
|
$89d060d8eb451127$export$7fbedc92909ed28e
|
|
6
|
-
} from "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-VXZM6V4P.js";
|
|
7
|
+
import "../chunks/chunk-O7XWTMCB.js";
|
|
8
8
|
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
9
|
+
import "../chunks/chunk-NIVGVRDS.js";
|
|
11
10
|
import "../chunks/chunk-IYAQC63Y.js";
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-SJBZFMQ2.js";
|
|
12
|
+
import "../chunks/chunk-6V4TAD2N.js";
|
|
13
|
+
import "../chunks/chunk-S4AU6SRS.js";
|
|
14
14
|
import "../chunks/chunk-AC4U3IMS.js";
|
|
15
15
|
import {
|
|
16
16
|
dist_default
|
|
@@ -27,14 +27,14 @@ import { Icon } from "./Icon.js";
|
|
|
27
27
|
var Tree_default = {
|
|
28
28
|
"TreeItem-controls": "alinea-TreeItem-controls",
|
|
29
29
|
"TreeItemControls": "alinea-TreeItem-controls",
|
|
30
|
-
"TreeItem-foldIcon": "alinea-TreeItem-foldIcon",
|
|
31
|
-
"TreeItemFoldIcon": "alinea-TreeItem-foldIcon",
|
|
32
30
|
"TreeItem-dragHandle": "alinea-TreeItem-dragHandle",
|
|
33
31
|
"TreeItemDragHandle": "alinea-TreeItem-dragHandle",
|
|
32
|
+
"Tree": "alinea-Tree",
|
|
33
|
+
"TreeItem": "alinea-TreeItem",
|
|
34
34
|
"TreeItem-chevron": "alinea-TreeItem-chevron",
|
|
35
35
|
"TreeItemChevron": "alinea-TreeItem-chevron",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"TreeItem-foldIcon": "alinea-TreeItem-foldIcon",
|
|
37
|
+
"TreeItemFoldIcon": "alinea-TreeItem-foldIcon"
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
// src/components/Tree.tsx
|
package/dist/core/Client.js
CHANGED
|
@@ -12,6 +12,7 @@ import { HttpError } from "./HttpError.js";
|
|
|
12
12
|
import { getScope } from "./Scope.js";
|
|
13
13
|
import { ReadonlyTree } from "./source/Tree.js";
|
|
14
14
|
import { base64 } from "./util/Encoding.js";
|
|
15
|
+
import { isRecord } from "./util/Objects.js";
|
|
15
16
|
var Client = class _Client {
|
|
16
17
|
#options;
|
|
17
18
|
constructor(options) {
|
|
@@ -195,10 +196,10 @@ var Client = class _Client {
|
|
|
195
196
|
let errorMessage;
|
|
196
197
|
if (isJson) {
|
|
197
198
|
const body = await res.json();
|
|
198
|
-
if (res.status === 401 && body.type === AuthResultType.NeedsRefresh) {
|
|
199
|
+
if (res.status === 401 && isRecord(body) && body.type === AuthResultType.NeedsRefresh) {
|
|
199
200
|
if (!retry) return this.#request(params, init, true);
|
|
200
201
|
}
|
|
201
|
-
if (
|
|
202
|
+
if (isRecord(body) && typeof body.error === "string")
|
|
202
203
|
errorMessage = body.error;
|
|
203
204
|
else errorMessage = JSON.stringify(body, null, 2);
|
|
204
205
|
} else {
|
package/dist/core/Config.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { Auth } from './Auth.js';
|
|
|
3
3
|
import { type Role } from './Role.js';
|
|
4
4
|
import { Root } from './Root.js';
|
|
5
5
|
import { Schema } from './Schema.js';
|
|
6
|
+
import type { Tracer } from './Trace.js';
|
|
6
7
|
import { Type } from './Type.js';
|
|
7
8
|
import { Workspace, type WorkspaceInternal } from './Workspace.js';
|
|
8
9
|
/** Configuration options */
|
|
@@ -32,10 +33,13 @@ export interface Config {
|
|
|
32
33
|
publicDir?: string;
|
|
33
34
|
/** Filename of the generated dashboard, defaults to admin.html */
|
|
34
35
|
dashboardFile?: string;
|
|
36
|
+
/** Optional application-owned instrumentation for Alinea operations. */
|
|
37
|
+
tracer?: Tracer;
|
|
35
38
|
auth?: Auth.View;
|
|
36
39
|
}
|
|
37
40
|
export declare namespace Config {
|
|
38
41
|
function baseUrl(config: Config, env?: string): string | undefined;
|
|
42
|
+
function handlerUrl(config: Config): string;
|
|
39
43
|
function adminPath(config: Config): string;
|
|
40
44
|
function mainWorkspace(config: Config): WorkspaceInternal;
|
|
41
45
|
function type(config: Config, name: string): Type | undefined;
|
package/dist/core/Config.js
CHANGED
|
@@ -21,6 +21,12 @@ var Config;
|
|
|
21
21
|
return `https://${result}`;
|
|
22
22
|
}
|
|
23
23
|
Config2.baseUrl = baseUrl;
|
|
24
|
+
function handlerUrl(config) {
|
|
25
|
+
if (typeof config.handlerUrl !== "string" || config.handlerUrl.trim().length === 0)
|
|
26
|
+
throw new Error("Missing handlerUrl in Alinea config");
|
|
27
|
+
return config.handlerUrl;
|
|
28
|
+
}
|
|
29
|
+
Config2.handlerUrl = handlerUrl;
|
|
24
30
|
function adminPath(config) {
|
|
25
31
|
const file = config.dashboardFile ?? "admin.html";
|
|
26
32
|
return paths.basename(file, ".html");
|
|
@@ -69,9 +69,9 @@ export interface RequestContext {
|
|
|
69
69
|
isDev: boolean;
|
|
70
70
|
handlerUrl: URL;
|
|
71
71
|
apiKey: string;
|
|
72
|
-
|
|
73
|
-
token?: string;
|
|
72
|
+
applyAuth?(init?: RequestInit): RequestInit;
|
|
74
73
|
}
|
|
74
|
+
export declare const developmentKeyHeader = "x-alinea-dev-key";
|
|
75
75
|
export interface AuthedContext extends RequestContext {
|
|
76
76
|
user: User;
|
|
77
77
|
token: string;
|
package/dist/core/Connection.js
CHANGED
package/dist/core/Graph.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { Expr } from './Expr.js';
|
|
|
5
5
|
import type { Condition, Filter } from './Filter.js';
|
|
6
6
|
import type { Infer, StoredRow } from './Infer.js';
|
|
7
7
|
import type { HasField } from './Internal.js';
|
|
8
|
+
import type { OrderBy } from './OrderBy.js';
|
|
8
9
|
import type { Page } from './Page.js';
|
|
9
10
|
import type { PreviewRequest } from './Preview.js';
|
|
10
11
|
import type { Type } from './Type.js';
|
|
@@ -52,11 +53,9 @@ interface SelectObject {
|
|
|
52
53
|
}
|
|
53
54
|
export type Projection = SelectContent | SelectObject;
|
|
54
55
|
export type InferProjection<Selection> = InferSelection<Selection>;
|
|
55
|
-
export
|
|
56
|
-
asc?: Expr<any>;
|
|
57
|
-
desc?: Expr<any>;
|
|
56
|
+
export type Order = OrderBy & {
|
|
58
57
|
caseSensitive?: boolean;
|
|
59
|
-
}
|
|
58
|
+
};
|
|
60
59
|
type InferSelection<Selection> = Selection extends GraphQuery & Edge ? Expand<AnyQueryResult<Selection>> : Selection extends Expr<infer V> ? V : {
|
|
61
60
|
[K in keyof Selection]: Selection[K] extends Type<infer V> ? Type.Infer<V> : InferSelection<Selection[K]>;
|
|
62
61
|
};
|
package/dist/core/ListRow.d.ts
CHANGED
package/dist/core/OrderBy.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { Expr } from './Expr.js';
|
|
2
|
-
export
|
|
2
|
+
export interface AscendingOrder {
|
|
3
3
|
asc: Expr<any>;
|
|
4
|
-
|
|
4
|
+
desc?: never;
|
|
5
|
+
}
|
|
6
|
+
export interface DescendingOrder {
|
|
7
|
+
asc?: never;
|
|
5
8
|
desc: Expr<any>;
|
|
6
|
-
}
|
|
9
|
+
}
|
|
10
|
+
export type OrderBy = AscendingOrder | DescendingOrder;
|
package/dist/core/TextDoc.d.ts
CHANGED
|
@@ -45,6 +45,17 @@ export interface ElementNode {
|
|
|
45
45
|
export declare namespace ElementNode {
|
|
46
46
|
const content = "content";
|
|
47
47
|
}
|
|
48
|
+
export interface ImageNode extends ElementNode {
|
|
49
|
+
_type: 'image';
|
|
50
|
+
_id?: string;
|
|
51
|
+
_link?: 'image';
|
|
52
|
+
_entry?: string;
|
|
53
|
+
src?: string;
|
|
54
|
+
alt?: string;
|
|
55
|
+
title?: string;
|
|
56
|
+
width?: number | string;
|
|
57
|
+
height?: number | string;
|
|
58
|
+
}
|
|
48
59
|
export interface BlockNode {
|
|
49
60
|
_id: string;
|
|
50
61
|
_type: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Config } from './Config.js';
|
|
2
|
+
export interface Tracer {
|
|
3
|
+
<Result>(name: string, run: () => Promise<Result>): Promise<Result>;
|
|
4
|
+
}
|
|
5
|
+
export interface TraceSpan {
|
|
6
|
+
<Result>(operation: () => Promise<Result>): Promise<Result>;
|
|
7
|
+
}
|
|
8
|
+
export declare function trace(config: Config, name: string): TraceSpan;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "../chunks/chunk-CQ52GEHY.js";
|
|
2
|
+
|
|
3
|
+
// src/core/Trace.ts
|
|
4
|
+
function trace(config, name) {
|
|
5
|
+
const tracer = config?.tracer;
|
|
6
|
+
if (!tracer) return runDirect;
|
|
7
|
+
return async function runSpan(operation) {
|
|
8
|
+
let result;
|
|
9
|
+
let called = false;
|
|
10
|
+
function run() {
|
|
11
|
+
if (called) return result;
|
|
12
|
+
called = true;
|
|
13
|
+
try {
|
|
14
|
+
result = operation();
|
|
15
|
+
} catch (error) {
|
|
16
|
+
result = Promise.reject(error);
|
|
17
|
+
}
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
await tracer(name, run);
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
return run();
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function runDirect(operation) {
|
|
28
|
+
return operation();
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
trace
|
|
32
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Change, ChangeFile, ChangesBatch } from '../source/Change.js';
|
|
2
|
-
import type { ReadonlyTree } from '../source/Tree.js';
|
|
3
2
|
import type { User } from '../User.js';
|
|
4
3
|
import type { RemoveFileMutation, UploadFileMutation } from './Mutation.js';
|
|
5
4
|
export interface AddContent extends ChangeFile {
|
|
@@ -17,7 +16,5 @@ export interface CommitRequest {
|
|
|
17
16
|
user?: User;
|
|
18
17
|
fromSha: string;
|
|
19
18
|
intoSha: string;
|
|
20
|
-
checks: Array<[path: string, sha: string]>;
|
|
21
19
|
changes: Array<CommitChange>;
|
|
22
20
|
}
|
|
23
|
-
export declare function checkCommit(tree: ReadonlyTree, request: CommitRequest): void;
|
|
@@ -40,16 +40,7 @@ function sourceChanges(request) {
|
|
|
40
40
|
})
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function checkCommit(tree, request) {
|
|
44
|
-
if (tree.sha === request.fromSha) return;
|
|
45
|
-
for (const [path, sha] of request.checks) {
|
|
46
|
-
const entry = tree.get(path);
|
|
47
|
-
if (!entry) throw new Error(`Missing entry for ${path}`);
|
|
48
|
-
if (entry.sha !== sha) throw new Error(`Entry ${path} has changed`);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
43
|
export {
|
|
52
|
-
checkCommit,
|
|
53
44
|
commitChanges,
|
|
54
45
|
sourceChanges
|
|
55
46
|
};
|
package/dist/core/db/EntryDB.js
CHANGED
|
@@ -13,7 +13,7 @@ var EntryDB = class extends LocalDB {
|
|
|
13
13
|
async mutate(mutations) {
|
|
14
14
|
const from = await this.source.getTree();
|
|
15
15
|
const tx = new EntryTransaction(this.config, this.index, this.source, from);
|
|
16
|
-
tx.apply(mutations);
|
|
16
|
+
await tx.apply(mutations);
|
|
17
17
|
const request = await tx.toRequest();
|
|
18
18
|
const contentChanges = sourceChanges(request);
|
|
19
19
|
const sha = this.indexChanges(contentChanges);
|
|
@@ -19,6 +19,14 @@ export interface EntryCondition {
|
|
|
19
19
|
language?(language: EntryLanguageNode): boolean;
|
|
20
20
|
entry?(entry: Entry): boolean;
|
|
21
21
|
}
|
|
22
|
+
interface EntryNodeQuery {
|
|
23
|
+
ids?: ReadonlyArray<string>;
|
|
24
|
+
parentIds?: ReadonlyArray<string | null>;
|
|
25
|
+
urls?: ReadonlyArray<string>;
|
|
26
|
+
workspaces?: ReadonlyArray<string>;
|
|
27
|
+
roots?: ReadonlyArray<string>;
|
|
28
|
+
types?: ReadonlyArray<string>;
|
|
29
|
+
}
|
|
22
30
|
export declare function combineConditions(a: EntryCondition, b: EntryCondition): EntryCondition;
|
|
23
31
|
interface EntryVersionData {
|
|
24
32
|
id: string;
|
|
@@ -92,6 +100,7 @@ export declare class EntryGraph {
|
|
|
92
100
|
nodes: Array<EntryNode>;
|
|
93
101
|
constructor(config: Config, versionData: Map<string, EntryVersionData>, seeds: Map<string, Seed>);
|
|
94
102
|
byId(id: string): EntryNode | undefined;
|
|
103
|
+
candidateNodes(query: EntryNodeQuery): Array<EntryNode> | undefined;
|
|
95
104
|
get config(): Config;
|
|
96
105
|
byDir(dir: string): EntryNode | undefined;
|
|
97
106
|
entryByFilePath(filePath: string): Entry | undefined;
|
|
@@ -104,6 +113,7 @@ export declare class EntryIndex extends EventTarget {
|
|
|
104
113
|
initialSync: ReadonlyTree | undefined;
|
|
105
114
|
graph: EntryGraph;
|
|
106
115
|
constructor(config: Config);
|
|
116
|
+
clone(): EntryIndex;
|
|
107
117
|
get sha(): string;
|
|
108
118
|
filter(filter: EntryCondition): Iterable<Entry>;
|
|
109
119
|
findFirst<T extends Record<string, unknown>>(filter: (entry: Entry) => boolean): Entry<T> | undefined;
|