@weasel-js/prefs-editor 1.19.1 → 2.0.0

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.
Files changed (135) hide show
  1. package/README.md +26 -2
  2. package/dist/PrefConditionEditor/ConditionClipboard.d.ts +12 -0
  3. package/dist/PrefConditionEditor/ConditionClipboard.d.ts.map +1 -0
  4. package/dist/PrefConditionEditor/ConditionGroupRows.d.ts +20 -0
  5. package/dist/PrefConditionEditor/ConditionGroupRows.d.ts.map +1 -0
  6. package/dist/PrefConditionEditor/ConditionRow.d.ts +37 -0
  7. package/dist/PrefConditionEditor/ConditionRow.d.ts.map +1 -0
  8. package/dist/PrefConditionEditor/PrefConditionEditor.d.ts +52 -0
  9. package/dist/PrefConditionEditor/PrefConditionEditor.d.ts.map +1 -0
  10. package/dist/PrefSchemaEditor/ActionList.d.ts +19 -0
  11. package/dist/PrefSchemaEditor/ActionList.d.ts.map +1 -0
  12. package/dist/PrefSchemaEditor/AddNodeDialog.d.ts +23 -0
  13. package/dist/PrefSchemaEditor/AddNodeDialog.d.ts.map +1 -0
  14. package/dist/PrefSchemaEditor/AssetEditor.d.ts +49 -0
  15. package/dist/PrefSchemaEditor/AssetEditor.d.ts.map +1 -0
  16. package/dist/PrefSchemaEditor/AssetList.d.ts +20 -0
  17. package/dist/PrefSchemaEditor/AssetList.d.ts.map +1 -0
  18. package/dist/PrefSchemaEditor/AttributesPane.d.ts +34 -0
  19. package/dist/PrefSchemaEditor/AttributesPane.d.ts.map +1 -0
  20. package/dist/PrefSchemaEditor/BundlePreview.d.ts +7 -0
  21. package/dist/PrefSchemaEditor/BundlePreview.d.ts.map +1 -0
  22. package/dist/PrefSchemaEditor/EditorBar.d.ts +20 -0
  23. package/dist/PrefSchemaEditor/EditorBar.d.ts.map +1 -0
  24. package/dist/PrefSchemaEditor/EditorNotice.d.ts +12 -0
  25. package/dist/PrefSchemaEditor/EditorNotice.d.ts.map +1 -0
  26. package/dist/PrefSchemaEditor/ExportPanel.d.ts +17 -0
  27. package/dist/PrefSchemaEditor/ExportPanel.d.ts.map +1 -0
  28. package/dist/PrefSchemaEditor/IconAttrField.d.ts +11 -0
  29. package/dist/PrefSchemaEditor/IconAttrField.d.ts.map +1 -0
  30. package/dist/PrefSchemaEditor/IconPicker.d.ts +8 -0
  31. package/dist/PrefSchemaEditor/IconPicker.d.ts.map +1 -0
  32. package/dist/PrefSchemaEditor/IdentityForm.d.ts +10 -0
  33. package/dist/PrefSchemaEditor/IdentityForm.d.ts.map +1 -0
  34. package/dist/PrefSchemaEditor/NodeGhost.d.ts +30 -0
  35. package/dist/PrefSchemaEditor/NodeGhost.d.ts.map +1 -0
  36. package/dist/PrefSchemaEditor/NumberText.d.ts +12 -0
  37. package/dist/PrefSchemaEditor/NumberText.d.ts.map +1 -0
  38. package/dist/PrefSchemaEditor/Palette.d.ts +49 -0
  39. package/dist/PrefSchemaEditor/Palette.d.ts.map +1 -0
  40. package/dist/PrefSchemaEditor/PaneHeader.d.ts +18 -0
  41. package/dist/PrefSchemaEditor/PaneHeader.d.ts.map +1 -0
  42. package/dist/PrefSchemaEditor/PartsList.d.ts +25 -0
  43. package/dist/PrefSchemaEditor/PartsList.d.ts.map +1 -0
  44. package/dist/PrefSchemaEditor/PrefSchemaEditor.d.ts +81 -0
  45. package/dist/PrefSchemaEditor/PrefSchemaEditor.d.ts.map +1 -0
  46. package/dist/PrefSchemaEditor/PreviewPane.d.ts +35 -0
  47. package/dist/PrefSchemaEditor/PreviewPane.d.ts.map +1 -0
  48. package/dist/PrefSchemaEditor/SettingsTree.d.ts +20 -0
  49. package/dist/PrefSchemaEditor/SettingsTree.d.ts.map +1 -0
  50. package/dist/PrefSchemaEditor/Shelf.d.ts +26 -0
  51. package/dist/PrefSchemaEditor/Shelf.d.ts.map +1 -0
  52. package/dist/PrefSchemaEditor/StoredArea.d.ts +13 -0
  53. package/dist/PrefSchemaEditor/StoredArea.d.ts.map +1 -0
  54. package/dist/PrefSchemaEditor/StructurePane.d.ts +85 -0
  55. package/dist/PrefSchemaEditor/StructurePane.d.ts.map +1 -0
  56. package/dist/PrefSchemaEditor/StructureTools.d.ts +19 -0
  57. package/dist/PrefSchemaEditor/StructureTools.d.ts.map +1 -0
  58. package/dist/PrefSchemaEditor/UnitAttr.d.ts +10 -0
  59. package/dist/PrefSchemaEditor/UnitAttr.d.ts.map +1 -0
  60. package/dist/PrefSchemaEditor/UnplacedTree.d.ts +29 -0
  61. package/dist/PrefSchemaEditor/UnplacedTree.d.ts.map +1 -0
  62. package/dist/PrefSchemaEditor/aliasChoices.d.ts +6 -0
  63. package/dist/PrefSchemaEditor/aliasChoices.d.ts.map +1 -0
  64. package/dist/PrefSchemaEditor/assetEdits.d.ts +37 -0
  65. package/dist/PrefSchemaEditor/assetEdits.d.ts.map +1 -0
  66. package/dist/PrefSchemaEditor/attrRenderers.d.ts +3 -0
  67. package/dist/PrefSchemaEditor/attrRenderers.d.ts.map +1 -0
  68. package/dist/PrefSchemaEditor/attributeForm.d.ts +39 -0
  69. package/dist/PrefSchemaEditor/attributeForm.d.ts.map +1 -0
  70. package/dist/PrefSchemaEditor/attributeKey.d.ts +13 -0
  71. package/dist/PrefSchemaEditor/attributeKey.d.ts.map +1 -0
  72. package/dist/PrefSchemaEditor/attributeRenderers.d.ts +20 -0
  73. package/dist/PrefSchemaEditor/attributeRenderers.d.ts.map +1 -0
  74. package/dist/PrefSchemaEditor/autoValueRenderer.d.ts +6 -0
  75. package/dist/PrefSchemaEditor/autoValueRenderer.d.ts.map +1 -0
  76. package/dist/PrefSchemaEditor/defaults.d.ts +7 -0
  77. package/dist/PrefSchemaEditor/defaults.d.ts.map +1 -0
  78. package/dist/PrefSchemaEditor/editorActions.d.ts +13 -0
  79. package/dist/PrefSchemaEditor/editorActions.d.ts.map +1 -0
  80. package/dist/PrefSchemaEditor/editorPrefs.d.ts +108 -0
  81. package/dist/PrefSchemaEditor/editorPrefs.d.ts.map +1 -0
  82. package/dist/PrefSchemaEditor/heirAfter.d.ts +6 -0
  83. package/dist/PrefSchemaEditor/heirAfter.d.ts.map +1 -0
  84. package/dist/PrefSchemaEditor/iconPickerModel.d.ts +20 -0
  85. package/dist/PrefSchemaEditor/iconPickerModel.d.ts.map +1 -0
  86. package/dist/PrefSchemaEditor/nodeIcon.d.ts +14 -0
  87. package/dist/PrefSchemaEditor/nodeIcon.d.ts.map +1 -0
  88. package/dist/PrefSchemaEditor/paneWidths.d.ts +37 -0
  89. package/dist/PrefSchemaEditor/paneWidths.d.ts.map +1 -0
  90. package/dist/PrefSchemaEditor/panelPaths.d.ts +13 -0
  91. package/dist/PrefSchemaEditor/panelPaths.d.ts.map +1 -0
  92. package/dist/PrefSchemaEditor/previewDrop.d.ts +32 -0
  93. package/dist/PrefSchemaEditor/previewDrop.d.ts.map +1 -0
  94. package/dist/PrefSchemaEditor/rowSearch.d.ts +12 -0
  95. package/dist/PrefSchemaEditor/rowSearch.d.ts.map +1 -0
  96. package/dist/PrefSchemaEditor/structureRows.d.ts +11 -0
  97. package/dist/PrefSchemaEditor/structureRows.d.ts.map +1 -0
  98. package/dist/PrefSchemaEditor/treeDropRules.d.ts +11 -0
  99. package/dist/PrefSchemaEditor/treeDropRules.d.ts.map +1 -0
  100. package/dist/PrefSchemaEditor/useActionCatalog.d.ts +40 -0
  101. package/dist/PrefSchemaEditor/useActionCatalog.d.ts.map +1 -0
  102. package/dist/PrefSchemaEditor/useAssetChanges.d.ts +37 -0
  103. package/dist/PrefSchemaEditor/useAssetChanges.d.ts.map +1 -0
  104. package/dist/PrefSchemaEditor/useAssetView.d.ts +25 -0
  105. package/dist/PrefSchemaEditor/useAssetView.d.ts.map +1 -0
  106. package/dist/PrefSchemaEditor/useBundleView.d.ts +22 -0
  107. package/dist/PrefSchemaEditor/useBundleView.d.ts.map +1 -0
  108. package/dist/PrefSchemaEditor/useDocument.d.ts +40 -0
  109. package/dist/PrefSchemaEditor/useDocument.d.ts.map +1 -0
  110. package/dist/PrefSchemaEditor/useEditorSelection.d.ts +27 -0
  111. package/dist/PrefSchemaEditor/useEditorSelection.d.ts.map +1 -0
  112. package/dist/PrefSchemaEditor/useHeldPlace.d.ts +11 -0
  113. package/dist/PrefSchemaEditor/useHeldPlace.d.ts.map +1 -0
  114. package/dist/PrefSchemaEditor/useNodeAdder.d.ts +29 -0
  115. package/dist/PrefSchemaEditor/useNodeAdder.d.ts.map +1 -0
  116. package/dist/PrefSchemaEditor/usePaletteDrop.d.ts +25 -0
  117. package/dist/PrefSchemaEditor/usePaletteDrop.d.ts.map +1 -0
  118. package/dist/PrefSchemaEditor/usePreviewDrag.d.ts +35 -0
  119. package/dist/PrefSchemaEditor/usePreviewDrag.d.ts.map +1 -0
  120. package/dist/PrefSchemaEditor/usePreviewDropZone.d.ts +29 -0
  121. package/dist/PrefSchemaEditor/usePreviewDropZone.d.ts.map +1 -0
  122. package/dist/PrefSchemaEditor/useRowMarks.d.ts +23 -0
  123. package/dist/PrefSchemaEditor/useRowMarks.d.ts.map +1 -0
  124. package/dist/PrefSchemaEditor/useSelectedNodes.d.ts +8 -0
  125. package/dist/PrefSchemaEditor/useSelectedNodes.d.ts.map +1 -0
  126. package/dist/PrefSchemaEditor/useTreeDragOut.d.ts +25 -0
  127. package/dist/PrefSchemaEditor/useTreeDragOut.d.ts.map +1 -0
  128. package/dist/icons.gen.d.ts +3 -0
  129. package/dist/icons.gen.d.ts.map +1 -0
  130. package/dist/index.d.ts +16 -2
  131. package/dist/index.d.ts.map +1 -0
  132. package/dist/index.js +5443 -1
  133. package/dist/index.js.map +1 -1
  134. package/dist/style.css +615 -0
  135. package/package.json +31 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editorActions.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/editorActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1D,6GAA6G;AAC7G,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,GAAG,SAAS,YAAY,EAAE,GAAG,IAAI,CAmB3G"}
@@ -0,0 +1,108 @@
1
+ import { type PrefsStore } from '@weasel-js/prefs';
2
+ /** The editor's own settings, as the schema a host opens a prefs store over to keep them. */
3
+ export declare const PREF_SCHEMA_EDITOR_PREFS: {
4
+ readonly name: "Schema editor preferences";
5
+ readonly children: {
6
+ readonly preview: {
7
+ readonly name: "Live preview";
8
+ readonly children: {
9
+ readonly selectDropped: {
10
+ readonly kind: "boolean";
11
+ readonly name: "Select what is dropped";
12
+ readonly description: "A node dropped into the live preview becomes the selection. Off, the selection stays where it was.";
13
+ readonly default: true;
14
+ };
15
+ };
16
+ };
17
+ readonly layout: {
18
+ readonly name: "Layout";
19
+ readonly children: {
20
+ readonly structureWidth: {
21
+ readonly kind: "number";
22
+ readonly name: "structureWidth";
23
+ readonly description: "";
24
+ readonly default: 300;
25
+ readonly hidden: true;
26
+ };
27
+ readonly attributesWidth: {
28
+ readonly kind: "number";
29
+ readonly name: "attributesWidth";
30
+ readonly description: "";
31
+ readonly default: 320;
32
+ readonly hidden: true;
33
+ };
34
+ readonly sidebarWidth: {
35
+ readonly kind: "number";
36
+ readonly name: "sidebarWidth";
37
+ readonly description: "";
38
+ readonly default: 240;
39
+ readonly hidden: true;
40
+ };
41
+ readonly previewWidth: {
42
+ readonly kind: "number";
43
+ readonly name: "previewWidth";
44
+ readonly description: "";
45
+ readonly default: 800;
46
+ readonly hidden: true;
47
+ };
48
+ readonly unplacedHeight: {
49
+ readonly kind: "number";
50
+ readonly name: "unplacedHeight";
51
+ readonly description: "";
52
+ readonly default: 180;
53
+ readonly hidden: true;
54
+ };
55
+ readonly shelfHeight: {
56
+ readonly kind: "number";
57
+ readonly name: "shelfHeight";
58
+ readonly description: "";
59
+ readonly default: 180;
60
+ readonly hidden: true;
61
+ };
62
+ readonly shelfSettingsWidth: {
63
+ readonly kind: "number";
64
+ readonly name: "shelfSettingsWidth";
65
+ readonly description: "";
66
+ readonly default: 240;
67
+ readonly hidden: true;
68
+ };
69
+ readonly shelfActionsWidth: {
70
+ readonly kind: "number";
71
+ readonly name: "shelfActionsWidth";
72
+ readonly description: "";
73
+ readonly default: 240;
74
+ readonly hidden: true;
75
+ };
76
+ };
77
+ };
78
+ };
79
+ };
80
+ /** A prefs store opened over {@link PREF_SCHEMA_EDITOR_PREFS}. */
81
+ export type PrefSchemaEditorPrefs = PrefsStore<typeof PREF_SCHEMA_EDITOR_PREFS>;
82
+ /** What the editor reads its settings through. */
83
+ export interface EditorPrefs {
84
+ values: Record<string, unknown>;
85
+ set(path: string, value: unknown): void;
86
+ selectDropped: boolean;
87
+ }
88
+ /** The editor's settings from the host's `store`, or held for as long as the editor is mounted when it gives none. */
89
+ export declare function useEditorPrefs(store: PrefSchemaEditorPrefs | undefined): EditorPrefs;
90
+ /** Gives the editor's panes its settings. */
91
+ export declare const EditorPrefsProvider: import("react").Provider<EditorPrefs | null>;
92
+ /** A pane size the editor keeps in its settings. */
93
+ export type EditorSize = keyof typeof PREF_SCHEMA_EDITOR_PREFS.children.layout.children;
94
+ /**
95
+ * One of the editor's sizes as a `ResizeHandle` takes it: it follows the drag, and is written to the settings once
96
+ * when the drag ends. The settings are `given`, or else the ones a provider above holds; with neither the size
97
+ * lasts as long as the pane is mounted.
98
+ */
99
+ export declare function useEditorSize(key: EditorSize, given?: EditorPrefs): {
100
+ value: number;
101
+ onInput(next: number): void;
102
+ onChange(next: number): void;
103
+ };
104
+ /** The bar's tool for the editor's own settings, and the dialog it opens. */
105
+ export declare function EditorPrefsButton({ prefs }: {
106
+ prefs: EditorPrefs;
107
+ }): import("react").JSX.Element;
108
+ //# sourceMappingURL=editorPrefs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editorPrefs.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/editorPrefs.tsx"],"names":[],"mappings":"AACA,OAAO,EAA8C,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI/F,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BP,CAAC;AAG/B,kEAAkE;AAClE,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACxC,aAAa,EAAE,OAAO,CAAC;CACxB;AAMD,sHAAsH;AACtH,wBAAgB,cAAc,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,GAAG,WAAW,CAYpF;AAID,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,8CAA8B,CAAC;AAE/D,oDAAoD;AACpD,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,wBAAwB,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;AAExF;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAiBhJ;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,+BAQlE"}
@@ -0,0 +1,6 @@
1
+ import { type SchemaRoot } from '@weasel-js/prefs/edit';
2
+ /** The row that takes over once `paths` are removed, as the tree hands focus on ({@link heirOf}) over the rows drawn
3
+ * with `expanded` open, so the selection lands where focus does; removed rows a fold hides hand on to the row folding
4
+ * them. `null` when nothing is left. */
5
+ export declare function heirAfter(root: SchemaRoot, expanded: ReadonlySet<string>, paths: readonly string[]): string | null;
6
+ //# sourceMappingURL=heirAfter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heirAfter.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/heirAfter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxG;;yCAEyC;AACzC,wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAmBlH"}
@@ -0,0 +1,20 @@
1
+ import type { IconEntry } from '@weasel-js/icons';
2
+ export interface IconGroup {
3
+ group: string;
4
+ entries: readonly IconEntry[];
5
+ }
6
+ /** The entries a query finds, by qualified name, group or tag, gathered under their group in first-seen order. */
7
+ export declare function groupIcons(entries: readonly IconEntry[], query: string): IconGroup[];
8
+ interface Box {
9
+ top: number;
10
+ left: number;
11
+ width: number;
12
+ }
13
+ /** The index reached by one arrow step from `from`: along the order for left and right (swapped under `'rtl'`), to
14
+ * the nearest center in the next row up or down otherwise. `null` where there is nowhere to go. */
15
+ export declare function stepIndex(boxes: readonly Box[], from: number, key: string, dir?: 'ltr' | 'rtl'): number | null;
16
+ /** The index reached by PageUp or PageDown from `from`: as many rows as `height` holds, and at least one, keeping
17
+ * to the nearest center. `null` where there is no row to move to, or for any other key. */
18
+ export declare function pageIndex(boxes: readonly Box[], from: number, key: string, height: number): number | null;
19
+ export {};
20
+ //# sourceMappingURL=iconPickerModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iconPickerModel.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/iconPickerModel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;CAC/B;AAED,kHAAkH;AAClH,wBAAgB,UAAU,CAAC,OAAO,EAAE,SAAS,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CASpF;AAED,UAAU,GAAG;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAI1D;oGACoG;AACpG,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,KAAK,GAAG,KAAa,GAAG,MAAM,GAAG,IAAI,CAerH;AAED;4FAC4F;AAC5F,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CASzG"}
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { IconRef } from '@weasel-js/icons';
3
+ import type { EditorAction } from './editorActions.js';
4
+ import type { SchemaNode } from '@weasel-js/prefs/edit';
5
+ /** The glyph of an `actions` leaf, which groups the actions it draws as a group does its own rows. */
6
+ export declare const ACTIONS_ICON: IconRef;
7
+ /** The glyph a leaf of `kind` is drawn with when it names none of its own. */
8
+ export declare const kindIcon: (kind: string) => IconRef;
9
+ /**
10
+ * The glyph a node is drawn with: a group's for how it is drawn, unset drawn by its depth (a page at the top, a
11
+ * section below that); a leaf's own `icon`; the icon of the action an action pref fires; and otherwise its kind's.
12
+ */
13
+ export declare function nodeIcon(node: SchemaNode, top: boolean, actions?: readonly EditorAction[]): ReactNode;
14
+ //# sourceMappingURL=nodeIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeIcon.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/nodeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,sGAAsG;AACtG,eAAO,MAAM,YAAY,EAAE,OAAgC,CAAC;AAyB5D,8EAA8E;AAC9E,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,OAAuF,CAAC;AAEhI;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAQrG"}
@@ -0,0 +1,37 @@
1
+ import type { CSSProperties } from 'react';
2
+ import { type EditorPrefs } from './editorPrefs.js';
3
+ /** How far a drag may size each pane. The narrowest is also as far as a pane gives way to a narrow window. */
4
+ export declare const PANE_RANGE: {
5
+ readonly structure: {
6
+ readonly min: 180;
7
+ readonly max: 640;
8
+ };
9
+ readonly attributes: {
10
+ readonly min: 220;
11
+ readonly max: 720;
12
+ };
13
+ readonly aside: {
14
+ readonly min: 120;
15
+ readonly max: 640;
16
+ };
17
+ };
18
+ /** The width of each of the asset editor's resizable panes, kept in `prefs`, and the style that lays them out. */
19
+ export declare function usePaneWidths(prefs: EditorPrefs | undefined): {
20
+ structure: {
21
+ value: number;
22
+ onInput(next: number): void;
23
+ onChange(next: number): void;
24
+ };
25
+ attributes: {
26
+ value: number;
27
+ onInput(next: number): void;
28
+ onChange(next: number): void;
29
+ };
30
+ aside: {
31
+ value: number;
32
+ onInput(next: number): void;
33
+ onChange(next: number): void;
34
+ };
35
+ style: CSSProperties;
36
+ };
37
+ //# sourceMappingURL=paneWidths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paneWidths.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/paneWidths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAEhE,8GAA8G;AAC9G,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAAoH,CAAC;AAG5I,kHAAkH;AAClH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS;;;;;;;;;;;;;;;;;EAM3D"}
@@ -0,0 +1,13 @@
1
+ import { type PrefSection } from '@weasel-js/prefs';
2
+ /**
3
+ * What a properties panel names the node at tree path `path`: a leaf by its own key, a field by its key under its
4
+ * leaf's, the sections on the way adding nothing, and a top-level section by its key. Null for any other section,
5
+ * which the panel draws no heading for, and for a path that names no node.
6
+ */
7
+ export declare function panelPathOf(root: PrefSection, path: string): string | null;
8
+ /**
9
+ * The tree path of what a panel names `panelPath`: the row it draws there or the nearest leaf that lies in, else
10
+ * the top-level section of that key. Null when there is none.
11
+ */
12
+ export declare function treePathOfPanel(root: PrefSection, panelPath: string): string | null;
13
+ //# sourceMappingURL=panelPaths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panelPaths.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/panelPaths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA6BhE;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE1E;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMnF"}
@@ -0,0 +1,32 @@
1
+ import type { PrefDrop, PrefDropMark } from '@weasel-js/ui';
2
+ import { type SchemaNode, type SchemaRoot, type SchemaTarget } from '@weasel-js/prefs/edit';
3
+ /**
4
+ * Where a drop on the live preview lands in the schema: `mark` is what the form says is under the pointer, `nodes`
5
+ * are what is being dropped, and `paths` are where those already sit, none for a node not in the schema yet. Null
6
+ * when the preview has nothing there to drop on, or the schema would not hold the nodes there, by kind or by `maxDepth`.
7
+ * `pageless` is `holdsPages`'s.
8
+ */
9
+ export declare function previewTarget(schema: SchemaRoot, mark: PrefDropMark | null, nodes: readonly SchemaNode[], paths: readonly string[], maxDepth?: number, pageless?: boolean): SchemaTarget | null;
10
+ /**
11
+ * The mark a drag of `nodes` makes of what the form found under the pointer. Only a group sits among the rail's
12
+ * entries, so a leaf held over the edge of one goes into its group like one held over its middle.
13
+ */
14
+ export declare function previewMark(mark: PrefDropMark | null, nodes: readonly SchemaNode[]): PrefDropMark | null;
15
+ /** What the form draws for a drag of `nodes`, sitting at tree `paths`, that would land at `mark`. */
16
+ export declare function previewDrop(mark: Pick<PrefDrop, 'path' | 'where' | 'rail'>, nodes: readonly SchemaNode[], paths: readonly string[]): PrefDrop;
17
+ /**
18
+ * What the form draws for a drag with nowhere to land: `nodes` as placeholders where they sit, at tree `paths`. Nodes
19
+ * not in the schema yet sit nowhere, so nothing is drawn for them, but the form still learns a drag is on. Null under a
20
+ * section root, whose preview draws no drop.
21
+ */
22
+ export declare function heldDrop(schema: SchemaRoot, nodes: readonly SchemaNode[], paths: readonly string[]): PrefDrop | null;
23
+ /**
24
+ * Whether the form shows the dragged node where it would land, so no ghost of it is wanted beside the pointer.
25
+ * A drop into a rail entry lands on a page that may not be the open one.
26
+ */
27
+ export declare function drawsNode(drop: PrefDrop | null | undefined): boolean;
28
+ /** Whether two drops draw the same form. */
29
+ export declare function sameDrop(a: PrefDrop | null, b: PrefDrop | null): boolean;
30
+ /** Whether a node not in the schema yet may be dropped under tree row `parentId`. */
31
+ export declare function treeTakesNew(schema: SchemaRoot, node: SchemaNode, parentId: string | null, maxDepth?: number, pageless?: boolean): boolean;
32
+ //# sourceMappingURL=previewDrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"previewDrop.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/previewDrop.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAC2F,KAAK,UAAU,EAC/G,KAAK,UAAU,EAAE,KAAK,YAAY,EACnC,MAAM,uBAAuB,CAAC;AAG/B;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,GAAG,IAAI,EAAE,KAAK,EAAE,SAAS,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,UAAQ,GACzI,YAAY,GAAG,IAAI,CAmBrB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,EAAE,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,YAAY,GAAG,IAAI,CAExG;AAED,qGAAqG;AACrG,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,QAAQ,CAQ7I;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,QAAQ,GAAG,IAAI,CAGpH;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEpE;AAED,4CAA4C;AAC5C,wBAAgB,QAAQ,CAAC,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,OAAO,CAKxE;AAED,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,OAAO,CAMxI"}
@@ -0,0 +1,12 @@
1
+ import { type Findable } from '@weasel-js/registry';
2
+ import { type TreeNode } from '@weasel-js/ui';
3
+ /** A row of one of the editor's trees, with what its filter finds it by. */
4
+ export interface SoughtRow extends TreeNode {
5
+ find: Findable;
6
+ }
7
+ /** `row` found by `find`, and typed ahead to by the same words. */
8
+ export declare function soughtRow<R extends TreeNode>(row: R, find: Findable): R & SoughtRow;
9
+ /** The rows answering `query` through the matcher every action and pref search shares, under the branches that
10
+ * hold them. A row made without {@link soughtRow} is found by its `textValue`. */
11
+ export declare function seekRows(rows: readonly TreeNode[], query: string): readonly TreeNode[];
12
+ //# sourceMappingURL=rowSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rowSearch.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/rowSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE1D,4EAA4E;AAC5E,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,mEAAmE;AACnE,wBAAgB,SAAS,CAAC,CAAC,SAAS,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,GAAG,CAAC,GAAG,SAAS,CAEnF;AAED;mFACmF;AACnF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,QAAQ,EAAE,CAGtF"}
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type TreeNode } from '@weasel-js/ui';
3
+ import type { EditorAction } from './editorActions.js';
4
+ import { type SchemaNode, type SchemaRoot } from '@weasel-js/prefs/edit';
5
+ /** A row's label for a node: its name before its key, and an unnamed node's key alone. */
6
+ export declare const nodeLabel: (name: string, key: string) => ReactNode;
7
+ /** A leaf's label, in the plain weight where a group's is bolder. */
8
+ export declare const leafLabel: (label: ReactNode) => ReactNode;
9
+ /** The structure tree's rows for what `node` holds: each child's name before its key, a group's glyph and count, a leaf's kind, and the host's mark. `over` is the dialog a layout's pointers name settings in. An `actions` leaf holds a row for each of `actions` it draws. */
10
+ export declare function toTreeNodes(node: SchemaNode, path: string | null, changed: ReadonlySet<string>, mark?: (path: string) => ReactNode, over?: SchemaRoot, actions?: readonly EditorAction[]): TreeNode[];
11
+ //# sourceMappingURL=structureRows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structureRows.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/structureRows.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAA8B,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAmC,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAmB1G,0FAA0F;AAC1F,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,KAAK,MAAM,KAAG,SAAgF,CAAC;AAEvI,qEAAqE;AACrE,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,KAAG,SAAwD,CAAC;AAkBtG,iRAAiR;AACjR,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,EAAE,IAAI,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,GAAG,QAAQ,EAAE,CAwBrM"}
@@ -0,0 +1,11 @@
1
+ /** What the structure tree takes where: the rules a drag into it is held to. */
2
+ import type { TreeDragEffect } from '@weasel-js/ui';
3
+ import { type LinkRule, type SchemaNode, type SchemaRoot } from '@weasel-js/prefs/edit';
4
+ import type { PaletteDrag } from './Palette.js';
5
+ /** The drop rules of a tree over `schema`: what a link sets down, how deep groups nest, and whether a group under the root is a page. */
6
+ export declare function treeDropRulesFor(schema: SchemaRoot, links: LinkRule, maxDepth: number | undefined, pageless: boolean): {
7
+ canLand: (ids: readonly string[], effect: TreeDragEffect) => boolean;
8
+ landing: (ids: readonly string[], effect: TreeDragEffect) => SchemaNode[];
9
+ takesDrag: (ids: readonly string[], parentId: string | null, effect: TreeDragEffect, held: PaletteDrag | null) => boolean;
10
+ };
11
+ //# sourceMappingURL=treeDropRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treeDropRules.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/treeDropRules.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACkB,KAAK,QAAQ,EAAU,KAAK,UAAU,EAAE,KAAK,UAAU,EAC/E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,yIAAyI;AACzI,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,OAAO;mBAG7F,SAAS,MAAM,EAAE,UAAU,cAAc,KAAG,OAAO;mBAGnD,SAAS,MAAM,EAAE,UAAU,cAAc,KAAG,UAAU,EAAE;qBAWtD,SAAS,MAAM,EAAE,YAAY,MAAM,GAAG,IAAI,UAAU,cAAc,QAAQ,WAAW,GAAG,IAAI,KAAG,OAAO;EAS/H"}
@@ -0,0 +1,40 @@
1
+ import type { PrefGroup } from '@weasel-js/prefs';
2
+ import { type SchemaRoot, type SchemaTarget, type AssetSet } from '@weasel-js/prefs/edit';
3
+ import type { EditorAction } from './editorActions.js';
4
+ /** The host's actions as the Actions pane lists them, and what the pane does to the list. */
5
+ export interface ActionCatalog {
6
+ actions: readonly EditorAction[];
7
+ /** The asset set's catalog with every action it does not hold yet filed into it, or one made of the actions
8
+ * alone where the asset set holds none. */
9
+ root: PrefGroup;
10
+ /** The asset set holds a catalog that takes edits. Without one the list is the registry's, and nothing sorts it. */
11
+ editable: boolean;
12
+ /** The rows selected, by tree path, the newest last. */
13
+ selected: readonly string[];
14
+ /** Take what the pane's tree reports as selected. */
15
+ pick(ids: Iterable<string>): void;
16
+ clear(): void;
17
+ /** The rows selected as an undo step records them, beside the shown asset's: none where the catalog is no asset. */
18
+ recorded(): string[];
19
+ /** Select the rows a step of the history restores, of what {@link ActionCatalog.recorded} gave. */
20
+ restore(recorded: readonly string[]): void;
21
+ /** Set `next` in place of `root`, as one step back; steps that share a `coalesceKey` close together are one. */
22
+ commit(next: SchemaRoot, coalesceKey?: string): void;
23
+ move(paths: readonly string[], target: SchemaTarget): void;
24
+ /** Add an empty group after the newest selected row, or at the end, and select it. */
25
+ addGroup(): void;
26
+ /** Take the selected rows out, as far as `dissolve` does. */
27
+ remove(): void;
28
+ }
29
+ /**
30
+ * The catalog of `actions` in `assetSet`; `null` with no way to know which actions exist. `current` is the
31
+ * asset set as of the event in hand, `write` commits an edited one, and `onPick` is told when a row is picked.
32
+ */
33
+ export declare function useActionCatalog({ assetSet, current, actions, write, onPick }: {
34
+ assetSet: AssetSet;
35
+ current(): AssetSet;
36
+ actions: readonly EditorAction[] | null;
37
+ write(next: AssetSet, coalesceKey?: string): void;
38
+ onPick(): void;
39
+ }): ActionCatalog | null;
40
+ //# sourceMappingURL=useActionCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useActionCatalog.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/useActionCatalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAEwB,KAAK,UAAU,EAAE,KAAK,YAAY,EAAyB,KAAK,QAAQ,EACtG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD,6FAA6F;AAC7F,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IACjC;gDAC4C;IAC5C,IAAI,EAAE,SAAS,CAAC;IAChB,oHAAoH;IACpH,QAAQ,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,qDAAqD;IACrD,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAClC,KAAK,IAAI,IAAI,CAAC;IACd,oHAAoH;IACpH,QAAQ,IAAI,MAAM,EAAE,CAAC;IACrB,mGAAmG;IACnG,OAAO,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAC3C,gHAAgH;IAChH,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrD,IAAI,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3D,sFAAsF;IACtF,QAAQ,IAAI,IAAI,CAAC;IACjB,6DAA6D;IAC7D,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAC9E,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,IAAI,QAAQ,CAAC;IACpB,OAAO,EAAE,SAAS,YAAY,EAAE,GAAG,IAAI,CAAC;IACxC,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClD,MAAM,IAAI,IAAI,CAAC;CAChB,GAAG,aAAa,GAAG,IAAI,CA2CvB"}
@@ -0,0 +1,37 @@
1
+ import { type Asset, type AssetExport, type PrefTypes, type SchemaChange, type AssetSet } from '@weasel-js/prefs/edit';
2
+ /** One asset's part of a submission: its changes since the baseline, and what it exports: its root as a TypeScript
3
+ * literal, or a Bundles asset's `weasel-bundles/1` JSON. */
4
+ export interface SentAsset {
5
+ id: string;
6
+ kind: Asset['kind'];
7
+ changes: readonly SchemaChange[];
8
+ literal: string;
9
+ }
10
+ /** Where an asset editor's changes go when the reader submits them: every changed asset, in the asset set's order. A promise it returns says whether they arrived. */
11
+ export type SubmitAssets = (assets: readonly SentAsset[]) => void | Promise<void>;
12
+ /** What an asset set has changed from its baseline, as the editor's panes ask for it. */
13
+ export interface AssetSetChanges {
14
+ /** The ids of the changed assets. */
15
+ ids: ReadonlySet<string>;
16
+ /** The changes of the asset `id`; none for one that stands at its baseline. */
17
+ of(id: string): readonly SchemaChange[];
18
+ /** Every sent asset's changes as one list, which is empty when nothing sent changed and another list when anything does. */
19
+ all: readonly SchemaChange[];
20
+ /** The sent assets' changes as text: one asset's alone as `formatChanges` writes them, and several each under its asset's label. */
21
+ text: string;
22
+ /** What a submission hands over: every changed asset that is sent. */
23
+ sent(types?: PrefTypes): SentAsset[];
24
+ /** What the asset `id` exports as it stands. */
25
+ exported(id: string, types?: PrefTypes): AssetExport;
26
+ /** Follow every node from `before` to what it became in `after`, an edit made in one step, so it stays paired with
27
+ * its baseline whatever the later steps make of its key and its name. */
28
+ follow(before: AssetSet, after: AssetSet): void;
29
+ }
30
+ /**
31
+ * The changes from `base` to `assetSet`. An asset set `same` as the last one is not looked at again, so what the
32
+ * panes are handed keeps its identity under a host that makes its asset set anew each time it draws. `report` is
33
+ * called with the changed assets' ids on mount, and again whenever the set is another one. `sends` picks the assets whose
34
+ * changes `all`, `text`, and `sent` carry; left out, every asset's.
35
+ */
36
+ export declare function useAssetChanges(base: AssetSet, assetSet: AssetSet, same: (a: AssetSet, b: AssetSet) => boolean, report?: (ids: ReadonlySet<string>) => void, sends?: (asset: Asset) => boolean): AssetSetChanges;
37
+ //# sourceMappingURL=useAssetChanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAssetChanges.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/useAssetChanges.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,KAAK,EAAqB,KAAK,WAAW,EAAoC,KAAK,SAAS,EACjG,KAAK,YAAY,EAA6B,KAAK,QAAQ,EAC5D,MAAM,uBAAuB,CAAC;AAI/B;6DAC6D;AAC7D,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,sKAAsK;AACtK,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAElF,yFAAyF;AACzF,MAAM,WAAW,eAAe;IAC9B,qCAAqC;IACrC,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzB,+EAA+E;IAC/E,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,YAAY,EAAE,CAAC;IACxC,4HAA4H;IAC5H,GAAG,EAAE,SAAS,YAAY,EAAE,CAAC;IAC7B,oIAAoI;IACpI,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IACrC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACrD;8EAC0E;IAC1E,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;CACjD;AASD;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,KAAK,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,EAC5H,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,GAChC,eAAe,CA+BjB"}
@@ -0,0 +1,25 @@
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import { type ShownAsset, type AssetSet } from '@weasel-js/prefs/edit';
3
+ import { type EditorSelection } from './useEditorSelection.js';
4
+ /** Which of an asset set's assets the editor shows, and the reader's view of it: the rows selected and the rows open. */
5
+ export interface AssetView {
6
+ asset: ShownAsset;
7
+ expanded: ReadonlySet<string>;
8
+ setExpanded: Dispatch<SetStateAction<Set<string>>>;
9
+ selection: EditorSelection;
10
+ /** Show the asset `id`, with nothing selected. */
11
+ show(id: string): void;
12
+ /** The selection as an undo step records it: `paths` of the asset shown, and what was selected in each other
13
+ * asset when it was last shown, so a step can restore the selection of whichever asset it changes. */
14
+ recorded(paths: readonly string[]): string[];
15
+ /** Take the selection a step of the history restores, for {@link AssetView.stepped} to apply. */
16
+ restore(recorded: readonly string[]): void;
17
+ /** After a step of the history from `before` to `after`: show the asset it changed, with the rows it restored. */
18
+ stepped(before: AssetSet, after: AssetSet): void;
19
+ }
20
+ /**
21
+ * The view of `assetSet`, starting on the asset `startOn` names, or on its first. `opened` is the draft the editor mounts on, when it found
22
+ * one, and `draftKey` the name each asset's folded rows are kept beside; with none they are kept while the editor is up.
23
+ */
24
+ export declare function useAssetView(assetSet: AssetSet, opened: AssetSet | undefined, draftKey: string | undefined, startOn?: string): AssetView;
25
+ //# sourceMappingURL=useAssetView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAssetView.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/useAssetView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACjG,OAAO,EAEL,KAAK,UAAU,EAAe,KAAK,QAAQ,EAC5C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAIhF,yHAAyH;AACzH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACnD,SAAS,EAAE,eAAe,CAAC;IAC3B,kDAAkD;IAClD,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;2GACuG;IACvG,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IAC7C,iGAAiG;IACjG,OAAO,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAC3C,kHAAkH;IAClH,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;CAClD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CA0DxI"}
@@ -0,0 +1,22 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type CustomKinds, type LinkRule, type ShownAsset } from '@weasel-js/prefs/edit';
3
+ import { type PaletteItem } from './Palette.js';
4
+ import type { PartsCatalog } from './PartsList.js';
5
+ /** What the editor does differently while it shows a Bundles asset. */
6
+ export interface BundleView {
7
+ /** The host's kinds, and the bundle tree's. */
8
+ kinds: CustomKinds;
9
+ structure: {
10
+ pageless: true;
11
+ palette: readonly PaletteItem[];
12
+ links: LinkRule;
13
+ parts: PartsCatalog;
14
+ };
15
+ /** Whether every node at `paths` is an atom, which takes no edit. */
16
+ locked(paths: readonly string[]): boolean;
17
+ /** What the preview shows: what a canvas loading the bundle around `lead` gets. */
18
+ preview(lead: string | null): ReactNode;
19
+ }
20
+ /** The view of `asset` where it is a Bundles asset, `null` for any other. */
21
+ export declare function useBundleView(asset: ShownAsset, kinds: CustomKinds): BundleView | null;
22
+ //# sourceMappingURL=useBundleView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBundleView.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/useBundleView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EACoC,KAAK,WAAW,EAAc,KAAK,QAAQ,EAC/C,KAAK,UAAU,EACrD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAUhD,uEAAuE;AACvE,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE;QAAE,QAAQ,EAAE,IAAI,CAAC;QAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;QAAC,KAAK,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IACrG,qEAAqE;IACrE,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC;IAC1C,mFAAmF;IACnF,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC;AAED,6EAA6E;AAC7E,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,GAAG,UAAU,GAAG,IAAI,CAmBtF"}
@@ -0,0 +1,40 @@
1
+ import { type DocumentCodec, type DraftStorage, type OpenedDocument } from '@weasel-js/prefs/edit';
2
+ export interface DocumentOptions<V> {
3
+ value: V;
4
+ onChange(next: V): void;
5
+ /** What the change list and the draft are measured against. */
6
+ base: V;
7
+ /** Whether two values are one: the hook's own from a host's, and the baseline from an edit. Default: `Object.is`. */
8
+ same?: (a: V, b: V) => boolean;
9
+ codec: DocumentCodec<V>;
10
+ /** The draft found under `draftKey` as the editor mounted, which the document hands to `onChange` once. */
11
+ opened: OpenedDocument<V> | null;
12
+ draftKey?: string;
13
+ draftStorage?: DraftStorage;
14
+ /** Nothing sent is still waiting: what was last sent is in `base` now. */
15
+ taken: boolean;
16
+ /** The selection a step records and restores. */
17
+ selection: {
18
+ get(): string[];
19
+ set(ids: readonly string[]): void;
20
+ };
21
+ /** Called with the value before and after each `commit`, ahead of handing it on: before is the value last handed
22
+ * to `onChange`, which a render may not have shown yet. Not called on undo or redo. */
23
+ onCommit?(before: V, after: V): void;
24
+ }
25
+ export interface EditorDocument<V> {
26
+ /** Replace the value as one step back; a value `same` reads as the current one is no step. Steps sharing a `coalesceKey` close together are one. */
27
+ commit(next: V, coalesceKey?: string): void;
28
+ step(to: 'undo' | 'redo'): void;
29
+ canUndo: boolean;
30
+ canRedo: boolean;
31
+ /** When the draft was last kept; `null` with none. */
32
+ draftSavedAt: number | null;
33
+ /** The value last handed to `onChange`, ahead of the render that shows it. */
34
+ current(): V;
35
+ /** Run a submission, and remember what it carried once it succeeds. */
36
+ send(run: () => Promise<void> | void): Promise<void>;
37
+ }
38
+ /** One controlled value's undo history, its draft in storage, and what of it was sent. */
39
+ export declare function useDocument<V>(options: DocumentOptions<V>): EditorDocument<V>;
40
+ //# sourceMappingURL=useDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocument.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/useDocument.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEjH,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACxB,+DAA+D;IAC/D,IAAI,EAAE,CAAC,CAAC;IACR,qHAAqH;IACrH,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;IAC/B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACxB,2GAA2G;IAC3G,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,0EAA0E;IAC1E,KAAK,EAAE,OAAO,CAAC;IACf,iDAAiD;IACjD,SAAS,EAAE;QAAE,GAAG,IAAI,MAAM,EAAE,CAAC;QAAC,GAAG,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAA;KAAE,CAAC;IAClE;4FACwF;IACxF,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,oJAAoJ;IACpJ,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,sDAAsD;IACtD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,8EAA8E;IAC9E,OAAO,IAAI,CAAC,CAAC;IACb,uEAAuE;IACvE,IAAI,CAAC,GAAG,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAID,0FAA0F;AAC1F,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAuF7E"}
@@ -0,0 +1,27 @@
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import { type SchemaRoot } from '@weasel-js/prefs/edit';
3
+ /**
4
+ * The selection after the tree reports `ids`, in the tree's order: what stayed keeps its order, and what is new
5
+ * goes last, ending on the row farthest from what stayed. A range taken upward is reported top to bottom, and the
6
+ * row it was taken to is its first.
7
+ */
8
+ export declare function nextSelection(prev: readonly string[], ids: Iterable<string>): string[];
9
+ export declare function toggled(prev: readonly string[], path: string): string[];
10
+ /** `paths` that still name a node; `paths` itself when all do. */
11
+ export declare function livePaths(schema: SchemaRoot, paths: readonly string[]): readonly string[];
12
+ export interface EditorSelection {
13
+ /** The selected paths, the newest last. Empty is the root. */
14
+ paths: readonly string[];
15
+ /** The path that stands for the selection where one node must: the newest. `null` is the root. */
16
+ lead: string | null;
17
+ set(paths: readonly string[]): void;
18
+ /** Take what the tree reports. */
19
+ pick(ids: Iterable<string>): void;
20
+ /** Add `path` or take it out, opening the branches above it. */
21
+ toggle(path: string): void;
22
+ rebase(moves: ReadonlyArray<readonly [from: string, to: string]>): void;
23
+ /** Select `paths`, opening the branches above each so the tree shows them. */
24
+ reveal(paths: readonly string[]): void;
25
+ }
26
+ export declare function useEditorSelection(schema: SchemaRoot, setExpanded: Dispatch<SetStateAction<Set<string>>>): EditorSelection;
27
+ //# sourceMappingURL=useEditorSelection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditorSelection.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/useEditorSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIzF;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAMtF;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAEvE;AAED,kEAAkE;AAClE,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAGzF;AAQD,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,kGAAkG;IAClG,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IACpC,kCAAkC;IAClC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAClC,gEAAgE;IAChE,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;IACxE,8EAA8E;IAC9E,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;CACxC;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,eAAe,CAmB1H"}
@@ -0,0 +1,11 @@
1
+ import { type CSSProperties, type RefObject } from 'react';
2
+ /**
3
+ * Holds what a centering `stage` shows where it last stood while `holding`. A drop drawn into a centered form
4
+ * grows it, centering moves it by half the growth, and the drop's hit test reads that move as the pointer's.
5
+ * Returns the stage's attributes: none while free, and while held the place to pin its first child at.
6
+ */
7
+ export declare function useHeldPlace(stage: RefObject<HTMLElement | null>, holding: boolean): {
8
+ 'data-held'?: '';
9
+ style?: CSSProperties;
10
+ };
11
+ //# sourceMappingURL=useHeldPlace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeldPlace.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/useHeldPlace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI/F;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG;IAAE,WAAW,CAAC,EAAE,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAAE,CAiBhI"}
@@ -0,0 +1,29 @@
1
+ import { type CustomKinds, type PrefTypes, type SchemaRoot } from '@weasel-js/prefs/edit';
2
+ import type { NewNode } from './AddNodeDialog.js';
3
+ import type { PaletteLanding } from './usePaletteDrop.js';
4
+ /** What a new node may be: the kinds and types a pref is made from, and what a custom kind starts with. */
5
+ export interface NodeMaking {
6
+ kinds: readonly string[];
7
+ types: PrefTypes;
8
+ custom?: CustomKinds;
9
+ }
10
+ /**
11
+ * The add of a pref or a branch at `lead`: `open` starts one, and `dialog` is the props of the `AddNodeDialog` that
12
+ * names it. The new node is selected, and its parent opened. `addsPref` is false where a new pref would sit under a
13
+ * root that holds pages, on none of them.
14
+ */
15
+ export declare function useNodeAdder(schema: SchemaRoot, lead: string | null, pageless: boolean, making: NodeMaking, landing: Omit<PaletteLanding, 'move'>): {
16
+ branch: "section" | "group";
17
+ parent: string | null;
18
+ addsPref: boolean;
19
+ open: import("react").Dispatch<import("react").SetStateAction<"pref" | "branch" | null>>;
20
+ dialog: {
21
+ what: "section" | "group" | "pref" | null;
22
+ kinds: import("@weasel-js/prefs/edit").KindChoice[];
23
+ onAdd: ({ key, name, kind }: NewNode) => void;
24
+ taken: import("@weasel-js/prefs/edit").ChildMap;
25
+ dottedKey: boolean;
26
+ onClose: () => void;
27
+ };
28
+ };
29
+ //# sourceMappingURL=useNodeAdder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNodeAdder.d.ts","sourceRoot":"","sources":["../../src/PrefSchemaEditor/useNodeAdder.ts"],"names":[],"mappings":"AAEA,OAAO,EACuD,KAAK,WAAW,EACnC,KAAK,SAAS,EAAmB,KAAK,UAAU,EAC1F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAYvD,2GAA2G;AAC3G,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;;;;;;;;qCAU9G,OAAO;;;;;EAsB1C"}