@aglyn/besigner-ui 1.20.3 → 1.22.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/besigner-ui",
3
- "version": "1.20.3",
3
+ "version": "1.22.0",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,33 +25,33 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/aglyn": "1.20.3",
29
- "@aglyn/aglyn-markdown-editor": "1.20.3",
30
- "@aglyn/aglyn-node-renderer": "1.20.3",
31
- "@aglyn/besigner": "1.20.3",
32
- "@aglyn/shared-data-enums": "1.20.3",
33
- "@aglyn/shared-data-mdi": "1.20.3",
34
- "@aglyn/shared-data-types": "1.20.3",
35
- "@aglyn/shared-svg-icons": "1.20.3",
36
- "@aglyn/shared-ui-json-editor": "1.20.3",
37
- "@aglyn/shared-ui-jsx": "1.20.3",
38
- "@aglyn/shared-ui-jsx-forms": "1.20.3",
39
- "@aglyn/shared-ui-snackstack": "1.20.3",
40
- "@aglyn/shared-ui-theme": "1.20.3",
41
- "@aglyn/shared-util-dom": "1.20.3",
42
- "@aglyn/shared-util-tools": "1.20.3",
43
- "@aglyn/shared-util-vendor": "1.20.3",
28
+ "@aglyn/aglyn": "1.22.0",
29
+ "@aglyn/aglyn-markdown-editor": "1.22.0",
30
+ "@aglyn/aglyn-node-renderer": "1.22.0",
31
+ "@aglyn/besigner": "1.22.0",
32
+ "@aglyn/shared-data-enums": "1.22.0",
33
+ "@aglyn/shared-data-mdi": "1.22.0",
34
+ "@aglyn/shared-data-types": "1.22.0",
35
+ "@aglyn/shared-svg-icons": "1.22.0",
36
+ "@aglyn/shared-ui-json-editor": "1.22.0",
37
+ "@aglyn/shared-ui-jsx": "1.22.0",
38
+ "@aglyn/shared-ui-jsx-forms": "1.22.0",
39
+ "@aglyn/shared-ui-snackstack": "1.22.0",
40
+ "@aglyn/shared-ui-theme": "1.22.0",
41
+ "@aglyn/shared-util-dom": "1.22.0",
42
+ "@aglyn/shared-util-tools": "1.22.0",
43
+ "@aglyn/shared-util-vendor": "1.22.0",
44
44
  "@dnd-kit/core": "^6.3.1",
45
45
  "@dnd-kit/utilities": "^3.2.2",
46
46
  "@react-aria/utils": "^3.34.1",
47
- "@swc/helpers": "0.5.23",
47
+ "@swc/helpers": "0.5.24",
48
48
  "clsx": "^2.1.1",
49
49
  "dnd-core": "^16.0.1",
50
- "framer-motion": "^13.4.6",
50
+ "framer-motion": "^14.12.0",
51
51
  "fuse.js": "^7.5.0",
52
52
  "lodash-es": "^4.18.1",
53
- "mobx": "^7.0.5",
54
- "mobx-react-lite": "^5.1.0",
53
+ "mobx": "^7.1.6",
54
+ "mobx-react-lite": "^5.1.2",
55
55
  "react-dnd": "^16.0.1",
56
56
  "react-dnd-html5-backend": "^16.0.1",
57
57
  "react-if": "^4.1.6",
@@ -23,7 +23,7 @@ export interface ComponentPickerProps extends DialogProps {
23
23
  option: PickerOption;
24
24
  }) => void;
25
25
  }
26
- export declare const ComponentPicker: import("react").ForwardRefExoticComponent<Omit<ComponentPickerProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<ComponentPickerProps, "ref"> & import("react").RefAttributes<any>> & {
27
- readonly type: import("react").ForwardRefExoticComponent<Omit<ComponentPickerProps, "ref"> & import("react").RefAttributes<any>>;
26
+ export declare const ComponentPicker: import("react").FunctionComponent<Omit<ComponentPickerProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<ComponentPickerProps, "ref"> & import("react").RefAttributes<any>> & {
27
+ readonly type: import("react").FunctionComponent<Omit<ComponentPickerProps, "ref"> & import("react").RefAttributes<any>>;
28
28
  };
29
29
  export default ComponentPicker;
@@ -36,12 +36,12 @@ export interface DraggableProps<T extends {
36
36
  disabled?: boolean;
37
37
  idSuffix?: string;
38
38
  }
39
- declare const Draggable: import("react").ForwardRefExoticComponent<DraggableProps<{
39
+ declare const Draggable: import("react").FunctionComponent<DraggableProps<{
40
40
  $id?: string;
41
41
  }> & import("react").RefAttributes<unknown>> & import("react").NamedExoticComponent<DraggableProps<{
42
42
  $id?: string;
43
43
  }> & import("react").RefAttributes<unknown>> & {
44
- readonly type: import("react").ForwardRefExoticComponent<DraggableProps<{
44
+ readonly type: import("react").FunctionComponent<DraggableProps<{
45
45
  $id?: string;
46
46
  }> & import("react").RefAttributes<unknown>>;
47
47
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../libs/besigner/feature/designer/src/lib/components/dnd/drop-surface.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { DropAxis, DroppableClientRect } from '@aglyn/besigner'\n\n/**\n * The places a drop target can live. Each is one element in the designer,\n * marked with {@link DROP_SURFACE_ATTRIBUTE}, and a drop only ever resolves\n * against targets on the surface the pointer is actually over.\n *\n * That last part is the reason this exists. dnd-kit hit-tests rectangles, and\n * a rectangle knows nothing about what is painted on top of it: a canvas\n * element scrolled under the hierarchy panel, or under the app bar, still\n * \"contains\" the pointer. So a row being dragged through the hierarchy could\n * resolve against a canvas element nobody could see, and the marker jumped to\n * wherever that element's edge was.\n */\nexport enum DropSurface {\n CANVAS = 'canvas',\n TREE = 'tree',\n BREADCRUMBS = 'breadcrumbs',\n}\n\nexport const DROP_SURFACE_ATTRIBUTE = 'data-aglyn-drop-surface'\n\nconst SURFACE_SELECTOR = `[${DROP_SURFACE_ATTRIBUTE}]`\n\n/** Props that mark an element as a drop surface. */\nexport function dropSurfaceProps(surface: DropSurface) {\n return { [DROP_SURFACE_ATTRIBUTE]: surface }\n}\n\n/**\n * The surface an element sits on, climbing out of shadow roots: every canvas\n * element lives inside the canvas's closed shadow root, and `closest` stops at\n * a shadow boundary.\n */\nexport function closestDropSurface(\n node: Node | null | undefined,\n): Element | null {\n let current: Node | null = node ?? null\n while (current) {\n if (current instanceof Element) {\n const surface = current.closest(SURFACE_SELECTOR)\n if (surface) return surface\n }\n const root = current.getRootNode?.()\n current =\n typeof ShadowRoot !== 'undefined' && root instanceof ShadowRoot\n ? root.host\n : null\n }\n return null\n}\n\n/**\n * The surface painted at a viewport point: `null` when the pointer is over\n * something that is not one (the app bar, the attributes panel), `undefined`\n * when this document cannot hit-test at all, in which case nothing is ruled\n * out on these grounds.\n */\nexport function dropSurfaceAtPoint(\n x: number,\n y: number,\n doc: Document | undefined = typeof document === 'undefined'\n ? undefined\n : document,\n): Element | null | undefined {\n if (typeof doc?.elementFromPoint !== 'function') return undefined\n return closestDropSurface(doc.elementFromPoint(x, y))\n}\n\nconst CLIPPING_OVERFLOW = /hidden|clip|auto|scroll/\n\n/**\n * The part of an element that is actually on screen: its rectangle cut down\n * by every ancestor that clips its overflow. The marker is drawn in a portal\n * above everything, so without this a line along a canvas element that runs\n * under a side panel is drawn across the panel.\n */\nexport function visibleRectOf(element: Element | null | undefined) {\n if (!element) return null\n const own = element.getBoundingClientRect()\n let left = own.left\n let top = own.top\n let right = own.right\n let bottom = own.bottom\n let current: Node | null = element.parentNode\n while (current) {\n if (current instanceof Element) {\n const style = getComputedStyle(current)\n if (\n [style.overflow, style.overflowX, style.overflowY].some((value) =>\n CLIPPING_OVERFLOW.test(value),\n )\n ) {\n const clip = current.getBoundingClientRect()\n left = Math.max(left, clip.left)\n top = Math.max(top, clip.top)\n right = Math.min(right, clip.right)\n bottom = Math.min(bottom, clip.bottom)\n }\n current = current.parentNode\n } else if (\n typeof ShadowRoot !== 'undefined' &&\n current instanceof ShadowRoot\n ) {\n current = current.host\n } else {\n current = null\n }\n }\n return {\n left,\n top,\n right,\n bottom,\n width: Math.max(0, right - left),\n height: Math.max(0, bottom - top),\n }\n}\n\n/**\n * The visible rectangle of the named surface that holds `rect`. There is one\n * of each per designer today, but a second hierarchy would be picked by where\n * the target is rather than by document order.\n */\nexport function visibleSurfaceRect(\n surface: DropSurface | undefined,\n rect: DroppableClientRect,\n) {\n if (!surface || typeof document === 'undefined') return null\n const candidates = Array.from(\n document.querySelectorAll(`[${DROP_SURFACE_ATTRIBUTE}=\"${surface}\"]`),\n )\n const cx = rect.left + rect.width / 2\n const cy = rect.top + rect.height / 2\n const holding =\n candidates.find((element) => {\n const box = element.getBoundingClientRect()\n return (\n cx >= box.left && cx <= box.right && cy >= box.top && cy <= box.bottom\n )\n }) ?? candidates[0]\n return visibleRectOf(holding)\n}\n\n/** Box of an element worth comparing against, or null when it takes no space. */\nfunction boxOf(element: Element | null) {\n if (!element) return null\n const box = element.getBoundingClientRect()\n return box.width > 0 || box.height > 0 ? box : null\n}\n\n/**\n * Which way the siblings of a canvas element run, read off the page rather\n * than the schema: a Stack can be a row or a column, a Grid wraps, and a\n * component can lay its children out any way it likes.\n *\n * The neighbours answer first. A sibling BESIDE this element (sharing some of\n * its height, none of its width) means a row; one above or below means a\n * column. Wrapped rows put the previous item on the line above, which is why\n * beside wins whenever either neighbour says so. With no neighbour to ask —\n * an only child — the parent's declared layout decides.\n */\nexport function flowAxisOf(element: Element | null | undefined): DropAxis {\n if (!element) return 'vertical'\n const own = boxOf(element)\n let stacked = false\n if (own) {\n for (const sibling of [\n element.previousElementSibling,\n element.nextElementSibling,\n ]) {\n const other = boxOf(sibling)\n if (!other) continue\n const sharedHeight =\n Math.min(own.bottom, other.bottom) - Math.max(own.top, other.top)\n const sharedWidth =\n Math.min(own.right, other.right) - Math.max(own.left, other.left)\n if (sharedHeight > 0 && sharedWidth <= 0) return 'horizontal'\n if (sharedWidth > 0 && sharedHeight <= 0) stacked = true\n }\n }\n if (stacked) return 'vertical'\n\n const parent = element.parentElement\n if (parent) {\n const layout = getComputedStyle(parent)\n if (layout.display.includes('flex')) {\n return layout.flexDirection.startsWith('row') ? 'horizontal' : 'vertical'\n }\n if (layout.display.includes('grid')) {\n const columns = layout.gridTemplateColumns\n .split(' ')\n .filter((track) => track && track !== 'none')\n return columns.length > 1 ? 'horizontal' : 'vertical'\n }\n }\n return getComputedStyle(element).display.startsWith('inline')\n ? 'horizontal'\n : 'vertical'\n}\n"],"names":["DropSurface","DROP_SURFACE_ATTRIBUTE","SURFACE_SELECTOR","dropSurfaceProps","surface","closestDropSurface","node","current","Element","closest","root","getRootNode","ShadowRoot","host","dropSurfaceAtPoint","x","y","doc","document","undefined","elementFromPoint","CLIPPING_OVERFLOW","visibleRectOf","element","own","getBoundingClientRect","left","top","right","bottom","parentNode","style","getComputedStyle","overflow","overflowX","overflowY","some","value","test","clip","Math","max","min","width","height","visibleSurfaceRect","rect","candidates","Array","from","querySelectorAll","cx","cy","holding","find","box","boxOf","flowAxisOf","stacked","sibling","previousElementSibling","nextElementSibling","other","sharedHeight","sharedWidth","parent","parentElement","layout","display","includes","flexDirection","startsWith","columns","gridTemplateColumns","split","filter","track","length"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAID;;;;;;;;;;;CAWC,GACD,OAAO,IAAA,AAAKA,qCAAAA;;;;WAAAA;MAIX;AAED,OAAO,MAAMC,yBAAyB,0BAAyB;AAE/D,MAAMC,mBAAmB,CAAC,CAAC,EAAED,uBAAuB,CAAC,CAAC;AAEtD,kDAAkD,GAClD,OAAO,SAASE,iBAAiBC,OAAoB;IACnD,OAAO;QAAE,CAACH,uBAAuB,EAAEG;IAAQ;AAC7C;AAEA;;;;CAIC,GACD,OAAO,SAASC,mBACdC,IAA6B;IAE7B,IAAIC,UAAuBD,eAAAA,OAAQ;IACnC,MAAOC,QAAS;QACd,IAAIA,mBAAmBC,SAAS;YAC9B,M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D,IAAI,CAACA,SAAS,OAAO;IACrB,MAAMC,MAAMgC,MAAMjC;IAClB,IAAImC,UAAU;IACd,IAAIlC,KAAK;QACP,KAAK,MAAMmC,WAAW;YACpBpC,QAAQqC,sBAAsB;YAC9BrC,QAAQsC,kBAAkB;SAC3B,CAAE;YACD,MAAMC,QAAQN,MAAMG;YACpB,IAAI,CAACG,OAAO;YACZ,MAAMC,eACJvB,KAAKE,GAAG,CAAClB,IAAIK,MAAM,EAAEiC,MAAMjC,MAAM,IAAIW,KAAKC,GAAG,CAACjB,IAAIG,GAAG,EAAEmC,MAAMnC,GAAG;YAClE,MAAMqC,cACJxB,KAAKE,GAAG,CAAClB,IAAII,KAAK,EAAEkC,MAAMlC,KAAK,IAAIY,KAAKC,GAAG,CAACjB,IAAIE,IAAI,EAAEoC,MAAMpC,IAAI;YAClE,IAAIqC,eAAe,KAAKC,eAAe,GAAG,OAAO;YACjD,IAAIA,cAAc,KAAKD,gBAAgB,GAAGL,UAAU;QACtD;IACF;IACA,IAAIA,SAAS,OAAO;IAEpB,MAAMO,SAAS1C,QAAQ2C,aAAa;IACpC,IAAID,QAAQ;QACV,MAAME,SAASnC,iBAAiBiC;QAChC,IAAIE,OAAOC,OAAO,CAACC,QAAQ,CAAC,SAAS;YACnC,OAAOF,OAAOG,aAAa,CAACC,UAAU,CAAC,SAAS,eAAe;QACjE;QACA,IAAIJ,OAAOC,OAAO,CAACC,QAAQ,CAAC,SAAS;YACnC,MAAMG,UAAUL,OAAOM,mBAAmB,CACvCC,KAAK,CAAC,KACNC,MAAM,CAAC,CAACC,QAAUA,SAASA,UAAU;YACxC,OAAOJ,QAAQK,MAAM,GAAG,IAAI,eAAe;QAC7C;IACF;IACA,OAAO7C,iBAAiBT,SAAS6C,OAAO,CAACG,UAAU,CAAC,YAChD,eACA;AACN"}
1
+ {"version":3,"sources":["../../../../../../../../../libs/besigner/feature/designer/src/lib/components/dnd/drop-surface.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { DropAxis, DroppableClientRect } from '@aglyn/besigner'\n\n/**\n * The places a drop target can live. Each is one element in the designer,\n * marked with {@link DROP_SURFACE_ATTRIBUTE}, and a drop only ever resolves\n * against targets on the surface the pointer is actually over.\n *\n * That last part is the reason this exists. dnd-kit hit-tests rectangles, and\n * a rectangle knows nothing about what is painted on top of it: a canvas\n * element scrolled under the hierarchy panel, or under the app bar, still\n * \"contains\" the pointer. So a row being dragged through the hierarchy could\n * resolve against a canvas element nobody could see, and the marker jumped to\n * wherever that element's edge was.\n */\nexport enum DropSurface {\n CANVAS = 'canvas',\n TREE = 'tree',\n BREADCRUMBS = 'breadcrumbs',\n}\n\nexport const DROP_SURFACE_ATTRIBUTE = 'data-aglyn-drop-surface'\n\nconst SURFACE_SELECTOR = `[${DROP_SURFACE_ATTRIBUTE}]`\n\n/** Props that mark an element as a drop surface. */\nexport function dropSurfaceProps(surface: DropSurface) {\n return { [DROP_SURFACE_ATTRIBUTE]: surface }\n}\n\n/**\n * The surface an element sits on, climbing out of shadow roots: every canvas\n * element lives inside the canvas's closed shadow root, and `closest` stops at\n * a shadow boundary.\n */\nexport function closestDropSurface(\n node: Node | null | undefined,\n): Element | null {\n let current: Node | null = node ?? null\n while (current) {\n if (current instanceof Element) {\n const surface = current.closest(SURFACE_SELECTOR)\n if (surface) return surface\n }\n const root = current.getRootNode?.()\n current =\n typeof ShadowRoot !== 'undefined' && root instanceof ShadowRoot\n ? root.host\n : null\n }\n return null\n}\n\n/**\n * The surface painted at a viewport point: `null` when the pointer is over\n * something that is not one (the app bar, the attributes panel), `undefined`\n * when this document cannot hit-test at all, in which case nothing is ruled\n * out on these grounds.\n */\nexport function dropSurfaceAtPoint(\n x: number,\n y: number,\n doc: Document | undefined = typeof document === 'undefined'\n ? undefined\n : document,\n): Element | null | undefined {\n if (typeof doc?.elementFromPoint !== 'function') return undefined\n return closestDropSurface(doc.elementFromPoint(x, y))\n}\n\nconst CLIPPING_OVERFLOW = /hidden|clip|auto|scroll/\n\n/**\n * The part of an element that is actually on screen: its rectangle cut down\n * by every ancestor that clips its overflow. The marker is drawn in a portal\n * above everything, so without this a line along a canvas element that runs\n * under a side panel is drawn across the panel.\n */\nexport function visibleRectOf(element: Element | null | undefined) {\n if (!element) return null\n const own = element.getBoundingClientRect()\n let left = own.left\n let top = own.top\n let right = own.right\n let bottom = own.bottom\n let current: Node | null = element.parentNode\n while (current) {\n if (current instanceof Element) {\n const style = getComputedStyle(current)\n if (\n [style.overflow, style.overflowX, style.overflowY].some((value) =>\n CLIPPING_OVERFLOW.test(value),\n )\n ) {\n const clip = current.getBoundingClientRect()\n left = Math.max(left, clip.left)\n top = Math.max(top, clip.top)\n right = Math.min(right, clip.right)\n bottom = Math.min(bottom, clip.bottom)\n }\n current = current.parentNode\n } else if (\n typeof ShadowRoot !== 'undefined' &&\n current instanceof ShadowRoot\n ) {\n current = current.host\n } else {\n current = null\n }\n }\n return {\n left,\n top,\n right,\n bottom,\n width: Math.max(0, right - left),\n height: Math.max(0, bottom - top),\n }\n}\n\n/**\n * The visible rectangle of the named surface that holds `rect`. There is one\n * of each per designer today, but a second hierarchy would be picked by where\n * the target is rather than by document order.\n */\nexport function visibleSurfaceRect(\n surface: DropSurface | undefined,\n rect: DroppableClientRect,\n) {\n if (!surface || typeof document === 'undefined') return null\n const candidates = Array.from(\n document.querySelectorAll(`[${DROP_SURFACE_ATTRIBUTE}=\"${surface}\"]`),\n )\n const cx = rect.left + rect.width / 2\n const cy = rect.top + rect.height / 2\n const holding =\n candidates.find((element) => {\n const box = element.getBoundingClientRect()\n return (\n cx >= box.left && cx <= box.right && cy >= box.top && cy <= box.bottom\n )\n }) ?? candidates[0]\n return visibleRectOf(holding)\n}\n\n/** Box of an element worth comparing against, or null when it takes no space. */\nfunction boxOf(element: Element | null) {\n if (!element) return null\n const box = element.getBoundingClientRect()\n return box.width > 0 || box.height > 0 ? box : null\n}\n\n/**\n * Which way the siblings of a canvas element run, read off the page rather\n * than the schema: a Stack can be a row or a column, a Grid wraps, and a\n * component can lay its children out any way it likes.\n *\n * The neighbours answer first. A sibling BESIDE this element (sharing some of\n * its height, none of its width) means a row; one above or below means a\n * column. Wrapped rows put the previous item on the line above, which is why\n * beside wins whenever either neighbour says so. With no neighbour to ask —\n * an only child — the parent's declared layout decides.\n */\nexport function flowAxisOf(element: Element | null | undefined): DropAxis {\n if (!element) return 'vertical'\n const own = boxOf(element)\n let stacked = false\n if (own) {\n for (const sibling of [\n element.previousElementSibling,\n element.nextElementSibling,\n ]) {\n const other = boxOf(sibling)\n if (!other) continue\n const sharedHeight =\n Math.min(own.bottom, other.bottom) - Math.max(own.top, other.top)\n const sharedWidth =\n Math.min(own.right, other.right) - Math.max(own.left, other.left)\n if (sharedHeight > 0 && sharedWidth <= 0) return 'horizontal'\n if (sharedWidth > 0 && sharedHeight <= 0) stacked = true\n }\n }\n if (stacked) return 'vertical'\n\n const parent = element.parentElement\n if (parent) {\n const layout = getComputedStyle(parent)\n if (layout.display.includes('flex')) {\n return layout.flexDirection.startsWith('row') ? 'horizontal' : 'vertical'\n }\n if (layout.display.includes('grid')) {\n const columns = layout.gridTemplateColumns\n .split(' ')\n .filter((track) => track && track !== 'none')\n return columns.length > 1 ? 'horizontal' : 'vertical'\n }\n }\n return getComputedStyle(element).display.startsWith('inline')\n ? 'horizontal'\n : 'vertical'\n}\n"],"names":["DropSurface","DROP_SURFACE_ATTRIBUTE","SURFACE_SELECTOR","dropSurfaceProps","surface","closestDropSurface","node","current","Element","closest","root","getRootNode","ShadowRoot","host","dropSurfaceAtPoint","x","y","doc","document","undefined","elementFromPoint","CLIPPING_OVERFLOW","visibleRectOf","element","own","getBoundingClientRect","left","top","right","bottom","parentNode","style","getComputedStyle","overflow","overflowX","overflowY","some","value","test","clip","Math","max","min","width","height","visibleSurfaceRect","rect","candidates","Array","from","querySelectorAll","cx","cy","holding","find","box","boxOf","flowAxisOf","stacked","sibling","previousElementSibling","nextElementSibling","other","sharedHeight","sharedWidth","parent","parentElement","layout","display","includes","flexDirection","startsWith","columns","gridTemplateColumns","split","filter","track","length"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAID;;;;;;;;;;;CAWC,GACD,OAAO,IAAA,AAAKA;;;;;MAIX;AAED,OAAO,MAAMC,yBAAyB,0BAAyB;AAE/D,MAAMC,mBAAmB,CAAC,CAAC,EAAED,uBAAuB,CAAC,CAAC;AAEtD,kDAAkD,GAClD,OAAO,SAASE,iBAAiBC,OAAoB;IACnD,OAAO;QAAE,CAACH,uBAAuB,EAAEG;IAAQ;AAC7C;AAEA;;;;CAIC,GACD,OAAO,SAASC,mBACdC,IAA6B;IAE7B,IAAIC,UAAuBD,eAAAA,OAAQ;IACnC,MAAOC,QAAS;QACd,IAAIA,mBAAmBC,SAAS;YAC9B,MAAMJ,UAAUG,QAAQE,OAAO,CAACP;YAChC,IAAIE,SAAS,OAAOA;QACtB;QACA,MAAMM,OAAOH,QAAQI,WAAW,oBAAnBJ,QAAQI,WAAW,MAAnBJ;QACbA,UACE,OAAOK,eAAe,eAAeF,gBAAgBE,aACjDF,KAAKG,IAAI,GACT;IACR;IACA,OAAO;AACT;AAEA;;;;;CAKC,GACD,OAAO,SAASC,mBACdC,CAAS,EACTC,CAAS,EACTC,MAA4B,OAAOC,aAAa,cAC5CC,YACAD,QAAQ;IAEZ,IAAI,QAAOD,uBAAAA,IAAKG,gBAAgB,MAAK,YAAY,OAAOD;IACxD,OAAOd,mBAAmBY,IAAIG,gBAAgB,CAACL,GAAGC;AACpD;AAEA,MAAMK,oBAAoB;AAE1B;;;;;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IAAIE,IAAI,EAAEoC,MAAMpC,IAAI;YAClE,IAAIqC,eAAe,KAAKC,eAAe,GAAG,OAAO;YACjD,IAAIA,cAAc,KAAKD,gBAAgB,GAAGL,UAAU;QACtD;IACF;IACA,IAAIA,SAAS,OAAO;IAEpB,MAAMO,SAAS1C,QAAQ2C,aAAa;IACpC,IAAID,QAAQ;QACV,MAAME,SAASnC,iBAAiBiC;QAChC,IAAIE,OAAOC,OAAO,CAACC,QAAQ,CAAC,SAAS;YACnC,OAAOF,OAAOG,aAAa,CAACC,UAAU,CAAC,SAAS,eAAe;QACjE;QACA,IAAIJ,OAAOC,OAAO,CAACC,QAAQ,CAAC,SAAS;YACnC,MAAMG,UAAUL,OAAOM,mBAAmB,CACvCC,KAAK,CAAC,KACNC,MAAM,CAAC,CAACC,QAAUA,SAASA,UAAU;YACxC,OAAOJ,QAAQK,MAAM,GAAG,IAAI,eAAe;QAC7C;IACF;IACA,OAAO7C,iBAAiBT,SAAS6C,OAAO,CAACG,UAAU,CAAC,YAChD,eACA;AACN"}
@@ -37,12 +37,12 @@ export interface DroppableProps<T extends {
37
37
  disabled?: boolean;
38
38
  idSuffix?: string;
39
39
  }
40
- export declare const Droppable: import("react").ForwardRefExoticComponent<DroppableProps<{
40
+ export declare const Droppable: import("react").FunctionComponent<DroppableProps<{
41
41
  $id: string;
42
42
  }> & import("react").RefAttributes<unknown>> & import("react").NamedExoticComponent<DroppableProps<{
43
43
  $id: string;
44
44
  }> & import("react").RefAttributes<unknown>> & {
45
- readonly type: import("react").ForwardRefExoticComponent<DroppableProps<{
45
+ readonly type: import("react").FunctionComponent<DroppableProps<{
46
46
  $id: string;
47
47
  }> & import("react").RefAttributes<unknown>>;
48
48
  };
@@ -602,7 +602,7 @@ export declare function buildEntityPickerField<T extends Aglyn.AglynAttributeSch
602
602
  * exactly like a site with no products.
603
603
  */
604
604
  export declare function entityKindsForAttributes(attributes: readonly Aglyn.AglynAttributeSchema[] | undefined): Aglyn.EntityPickerKind[];
605
- export declare const ElementPropsForm: import("react").ForwardRefExoticComponent<ElementPropsFormProps & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<ElementPropsFormProps & import("react").RefAttributes<any>> & {
606
- readonly type: import("react").ForwardRefExoticComponent<ElementPropsFormProps & import("react").RefAttributes<any>>;
605
+ export declare const ElementPropsForm: import("react").FunctionComponent<ElementPropsFormProps & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<ElementPropsFormProps & import("react").RefAttributes<any>> & {
606
+ readonly type: import("react").FunctionComponent<ElementPropsFormProps & import("react").RefAttributes<any>>;
607
607
  };
608
608
  export default ElementPropsForm;
@@ -33,7 +33,7 @@ export interface ElementStylesFormProps extends Partial<FormRendererProps> {
33
33
  */
34
34
  layoutTarget?: LayoutElementSelection | null;
35
35
  }
36
- declare const ElementStylesForm: import("react").ForwardRefExoticComponent<ElementStylesFormProps & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<ElementStylesFormProps & import("react").RefAttributes<any>> & {
37
- readonly type: import("react").ForwardRefExoticComponent<ElementStylesFormProps & import("react").RefAttributes<any>>;
36
+ declare const ElementStylesForm: import("react").FunctionComponent<ElementStylesFormProps & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<ElementStylesFormProps & import("react").RefAttributes<any>> & {
37
+ readonly type: import("react").FunctionComponent<ElementStylesFormProps & import("react").RefAttributes<any>>;
38
38
  };
39
39
  export default ElementStylesForm;
@@ -17,7 +17,7 @@
17
17
  import { type StackProps } from '@mui/material';
18
18
  export interface HistoryControlsProps extends StackProps {
19
19
  }
20
- export declare const HistoryControlsComponent: import("react").ForwardRefExoticComponent<Omit<HistoryControlsProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<HistoryControlsProps, "ref"> & import("react").RefAttributes<any>> & {
21
- readonly type: import("react").ForwardRefExoticComponent<Omit<HistoryControlsProps, "ref"> & import("react").RefAttributes<any>>;
20
+ export declare const HistoryControlsComponent: import("react").FunctionComponent<Omit<HistoryControlsProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<HistoryControlsProps, "ref"> & import("react").RefAttributes<any>> & {
21
+ readonly type: import("react").FunctionComponent<Omit<HistoryControlsProps, "ref"> & import("react").RefAttributes<any>>;
22
22
  };
23
23
  export default HistoryControlsComponent;
@@ -20,7 +20,7 @@ export type NodeCardItemData = Aglyn.PresetSchema<any> | Aglyn.ComponentSchema<a
20
20
  export interface NodeCardProps extends CardProps {
21
21
  node: NodeCardItemData;
22
22
  }
23
- export declare const NodeCard: import("react").ForwardRefExoticComponent<Omit<NodeCardProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeCardProps, "ref"> & import("react").RefAttributes<any>> & {
24
- readonly type: import("react").ForwardRefExoticComponent<Omit<NodeCardProps, "ref"> & import("react").RefAttributes<any>>;
23
+ export declare const NodeCard: import("react").FunctionComponent<Omit<NodeCardProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeCardProps, "ref"> & import("react").RefAttributes<any>> & {
24
+ readonly type: import("react").FunctionComponent<Omit<NodeCardProps, "ref"> & import("react").RefAttributes<any>>;
25
25
  };
26
26
  export default NodeCard;
@@ -21,7 +21,7 @@ export interface NodeContextMenuProps extends PaperProps {
21
21
  /** Invoked when a menu action should dismiss the hosting menu/tooltip. */
22
22
  onAction?: () => void;
23
23
  }
24
- export declare const NodeContextMenu: import("react").ForwardRefExoticComponent<Omit<NodeContextMenuProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeContextMenuProps, "ref"> & import("react").RefAttributes<any>> & {
25
- readonly type: import("react").ForwardRefExoticComponent<Omit<NodeContextMenuProps, "ref"> & import("react").RefAttributes<any>>;
24
+ export declare const NodeContextMenu: import("react").FunctionComponent<Omit<NodeContextMenuProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeContextMenuProps, "ref"> & import("react").RefAttributes<any>> & {
25
+ readonly type: import("react").FunctionComponent<Omit<NodeContextMenuProps, "ref"> & import("react").RefAttributes<any>>;
26
26
  };
27
27
  export default NodeContextMenu;
@@ -55,7 +55,7 @@ export declare function repeatBadgeText({ label, count, missing, }: {
55
55
  text: string;
56
56
  explanation: string;
57
57
  };
58
- export declare const NodeLeaf: import("react").ForwardRefExoticComponent<NodeLeafProps & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<NodeLeafProps & import("react").RefAttributes<any>> & {
59
- readonly type: import("react").ForwardRefExoticComponent<NodeLeafProps & import("react").RefAttributes<any>>;
58
+ export declare const NodeLeaf: import("react").FunctionComponent<NodeLeafProps & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<NodeLeafProps & import("react").RefAttributes<any>> & {
59
+ readonly type: import("react").FunctionComponent<NodeLeafProps & import("react").RefAttributes<any>>;
60
60
  };
61
61
  export default NodeLeaf;
@@ -22,7 +22,7 @@ export interface NodeOutlineProps extends ComponentProps<typeof NodeOutlineRoot>
22
22
  /** The node's text is open in the in-place editor. */
23
23
  editing?: boolean;
24
24
  }
25
- export declare const NodeOutline: import("react").ForwardRefExoticComponent<Omit<NodeOutlineProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & import("react").NamedExoticComponent<Omit<NodeOutlineProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
26
- readonly type: import("react").ForwardRefExoticComponent<Omit<NodeOutlineProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
25
+ export declare const NodeOutline: import("react").FunctionComponent<Omit<NodeOutlineProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & import("react").NamedExoticComponent<Omit<NodeOutlineProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
26
+ readonly type: import("react").FunctionComponent<Omit<NodeOutlineProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
27
27
  };
28
28
  export default NodeOutline;
@@ -19,7 +19,7 @@ export declare function serializeRect(rect: DOMRect): any;
19
19
  export interface NodeOverlayProps extends Partial<MuiPopperProps> {
20
20
  variant: 'hovered' | 'selected';
21
21
  }
22
- declare const NodeOverlay: import("react").ForwardRefExoticComponent<Omit<NodeOverlayProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeOverlayProps, "ref"> & import("react").RefAttributes<any>> & {
23
- readonly type: import("react").ForwardRefExoticComponent<Omit<NodeOverlayProps, "ref"> & import("react").RefAttributes<any>>;
22
+ declare const NodeOverlay: import("react").FunctionComponent<Omit<NodeOverlayProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeOverlayProps, "ref"> & import("react").RefAttributes<any>> & {
23
+ readonly type: import("react").FunctionComponent<Omit<NodeOverlayProps, "ref"> & import("react").RefAttributes<any>>;
24
24
  };
25
25
  export default NodeOverlay;
@@ -20,7 +20,7 @@ export interface NodeQuickActionsProps extends StackProps {
20
20
  node: Aglyn.NodeSchema;
21
21
  variant?: 'label' | 'actions';
22
22
  }
23
- export declare const NodeQuickActions: import("react").ForwardRefExoticComponent<Omit<NodeQuickActionsProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeQuickActionsProps, "ref"> & import("react").RefAttributes<any>> & {
24
- readonly type: import("react").ForwardRefExoticComponent<Omit<NodeQuickActionsProps, "ref"> & import("react").RefAttributes<any>>;
23
+ export declare const NodeQuickActions: import("react").FunctionComponent<Omit<NodeQuickActionsProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeQuickActionsProps, "ref"> & import("react").RefAttributes<any>> & {
24
+ readonly type: import("react").FunctionComponent<Omit<NodeQuickActionsProps, "ref"> & import("react").RefAttributes<any>>;
25
25
  };
26
26
  export default NodeQuickActions;
@@ -104,7 +104,7 @@ export declare function hierarchyDepthStyles(depth: number, colors: {
104
104
  export interface NodeTreeViewProps extends BoxProps {
105
105
  TreeViewProps?: Partial<Omit<ComponentProps<typeof TreeView>, 'children'>>;
106
106
  }
107
- export declare const NodeTreeView: import("react").ForwardRefExoticComponent<Omit<NodeTreeViewProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeTreeViewProps, "ref"> & import("react").RefAttributes<any>> & {
108
- readonly type: import("react").ForwardRefExoticComponent<Omit<NodeTreeViewProps, "ref"> & import("react").RefAttributes<any>>;
107
+ export declare const NodeTreeView: import("react").FunctionComponent<Omit<NodeTreeViewProps, "ref"> & import("react").RefAttributes<any>> & import("react").NamedExoticComponent<Omit<NodeTreeViewProps, "ref"> & import("react").RefAttributes<any>> & {
108
+ readonly type: import("react").FunctionComponent<Omit<NodeTreeViewProps, "ref"> & import("react").RefAttributes<any>>;
109
109
  };
110
110
  export default NodeTreeView;
@@ -2,7 +2,7 @@ import { type ListProps } from '@mui/material';
2
2
  export interface TreeListProps<T> extends ListProps {
3
3
  items: T[];
4
4
  }
5
- export declare const TreeList: import("react").ForwardRefExoticComponent<Omit<TreeListProps<unknown>, "ref"> & import("react").RefAttributes<HTMLUListElement>> & import("react").NamedExoticComponent<Omit<TreeListProps<unknown>, "ref"> & import("react").RefAttributes<HTMLUListElement>> & {
6
- readonly type: import("react").ForwardRefExoticComponent<Omit<TreeListProps<unknown>, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
5
+ export declare const TreeList: import("react").FunctionComponent<Omit<TreeListProps<unknown>, "ref"> & import("react").RefAttributes<HTMLUListElement>> & import("react").NamedExoticComponent<Omit<TreeListProps<unknown>, "ref"> & import("react").RefAttributes<HTMLUListElement>> & {
6
+ readonly type: import("react").FunctionComponent<Omit<TreeListProps<unknown>, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
7
7
  };
8
8
  export default TreeList;