@runtypelabs/persona 4.17.1 → 4.18.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 (158) hide show
  1. package/dist/chunk-3I2S3I5P.js +1 -0
  2. package/dist/chunk-76IELU7F.js +1 -0
  3. package/dist/chunk-EFJBUH5F.js +1 -0
  4. package/dist/chunk-PDPVORUF.js +1 -0
  5. package/dist/chunk-Q735PSZL.js +1 -0
  6. package/dist/chunk-VK6JOIYJ.js +1 -0
  7. package/dist/codegen.cjs +4 -4
  8. package/dist/codegen.js +4 -4
  9. package/dist/{context-mentions-BTSTIBFC.js → context-mentions-MJL6S6P2.js} +1 -1
  10. package/dist/context-mentions.cjs +9 -8
  11. package/dist/context-mentions.d.cts +1212 -14
  12. package/dist/context-mentions.d.ts +1212 -14
  13. package/dist/context-mentions.js +9 -8
  14. package/dist/event-stream-view-4EZ7BGFK.js +1 -0
  15. package/dist/event-stream-view.cjs +129 -0
  16. package/dist/event-stream-view.d.cts +8384 -0
  17. package/dist/event-stream-view.d.ts +8384 -0
  18. package/dist/event-stream-view.js +129 -0
  19. package/dist/history-view-BD6OXLNA.js +898 -0
  20. package/dist/history-view.cjs +898 -0
  21. package/dist/history-view.d.cts +1461 -0
  22. package/dist/history-view.d.ts +1461 -0
  23. package/dist/history-view.js +898 -0
  24. package/dist/index.cjs +77 -77
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +1987 -17
  27. package/dist/index.d.ts +1987 -17
  28. package/dist/index.global.js +67 -66
  29. package/dist/index.global.js.map +1 -1
  30. package/dist/index.js +77 -77
  31. package/dist/index.js.map +1 -1
  32. package/dist/launcher.global.js +5 -4
  33. package/dist/launcher.global.js.map +1 -1
  34. package/dist/plugin-kit.cjs +1 -1
  35. package/dist/plugin-kit.d.cts +0 -8
  36. package/dist/plugin-kit.d.ts +0 -8
  37. package/dist/plugin-kit.js +1 -1
  38. package/dist/smart-dom-reader.d.cts +1212 -14
  39. package/dist/smart-dom-reader.d.ts +1212 -14
  40. package/dist/theme-editor-preview.cjs +970 -73
  41. package/dist/theme-editor-preview.d.cts +1331 -15
  42. package/dist/theme-editor-preview.d.ts +1331 -15
  43. package/dist/theme-editor-preview.js +81 -81
  44. package/dist/theme-editor.cjs +7 -7
  45. package/dist/theme-editor.d.cts +1215 -15
  46. package/dist/theme-editor.d.ts +1215 -15
  47. package/dist/theme-editor.js +9 -9
  48. package/dist/theme-reference.cjs +1 -1
  49. package/dist/theme-reference.d.cts +226 -7
  50. package/dist/theme-reference.d.ts +226 -7
  51. package/dist/theme-reference.js +1 -1
  52. package/dist/widget.css +1 -1
  53. package/package.json +16 -4
  54. package/src/client-history-rest.test.ts +1034 -0
  55. package/src/client-visitor-history.test.ts +596 -0
  56. package/src/client.ts +1040 -24
  57. package/src/components/artifact-inline.ts +8 -1
  58. package/src/components/artifact-pane.test.ts +278 -1
  59. package/src/components/artifact-pane.ts +135 -67
  60. package/src/components/artifact-preview.test.ts +14 -1
  61. package/src/components/artifact-preview.ts +9 -0
  62. package/src/components/header-builder.ts +3 -0
  63. package/src/components/header-layouts.test.ts +171 -7
  64. package/src/components/header-layouts.ts +83 -53
  65. package/src/components/header-parts.test.ts +154 -1
  66. package/src/components/header-parts.ts +266 -138
  67. package/src/components/history-confirm-dialog.ts +177 -0
  68. package/src/components/history-shell-copy.ts +99 -0
  69. package/src/components/history-view/announcer.ts +40 -0
  70. package/src/components/history-view/copy.ts +105 -0
  71. package/src/components/history-view/css.ts +1078 -0
  72. package/src/components/history-view/grouping.test.ts +142 -0
  73. package/src/components/history-view/grouping.ts +142 -0
  74. package/src/components/history-view/icons.ts +73 -0
  75. package/src/components/history-view/rows.ts +341 -0
  76. package/src/components/history-view/state.ts +309 -0
  77. package/src/components/history-view.test.ts +2660 -0
  78. package/src/components/history-view.ts +1891 -0
  79. package/src/components/launcher-surface.test.ts +133 -0
  80. package/src/components/launcher.test.ts +18 -0
  81. package/src/components/launcher.ts +7 -7
  82. package/src/components/panel.ts +17 -7
  83. package/src/components/welcome.ts +72 -2
  84. package/src/defaults.ts +36 -3
  85. package/src/event-stream-view-bundle.test.ts +69 -0
  86. package/src/event-stream-view-entry.ts +19 -0
  87. package/src/event-stream-view-loader.ts +31 -0
  88. package/src/event-stream-view.ts +19 -0
  89. package/src/generated/runtype-openapi-contract.ts +1 -0
  90. package/src/history-render.ts +325 -0
  91. package/src/history-view-bundle.test.ts +78 -0
  92. package/src/history-view-entry.ts +41 -0
  93. package/src/history-view-loader.test.ts +30 -0
  94. package/src/history-view-loader.ts +32 -0
  95. package/src/history-view.ts +28 -0
  96. package/src/index-core.ts +50 -2
  97. package/src/index-global.ts +55 -0
  98. package/src/internal/demo-history-provider.test.ts +402 -0
  99. package/src/internal/demo-history-provider.ts +689 -0
  100. package/src/internal/history-provider-registry.ts +25 -0
  101. package/src/internal/history-provider.ts +150 -0
  102. package/src/internal/runtype-history-provider.test.ts +313 -0
  103. package/src/internal/runtype-history-provider.ts +240 -0
  104. package/src/plugin-kit.test.ts +16 -0
  105. package/src/plugin-kit.ts +13 -5
  106. package/src/plugins/types.ts +177 -1
  107. package/src/session-history.test.ts +1397 -0
  108. package/src/session.ts +1200 -26
  109. package/src/styles/widget-styles.test.ts +133 -0
  110. package/src/styles/widget.css +227 -8
  111. package/src/theme-editor/preview-utils.test.ts +19 -0
  112. package/src/theme-editor/preview-utils.ts +15 -1
  113. package/src/theme-editor/preview.ts +7 -1
  114. package/src/theme-editor/role-mappings.ts +4 -1
  115. package/src/theme-editor/sections.test.ts +168 -1
  116. package/src/theme-editor/sections.ts +136 -7
  117. package/src/theme-editor/webmcp/summary.ts +16 -2
  118. package/src/theme-reference.ts +20 -6
  119. package/src/types/theme.ts +213 -7
  120. package/src/types.ts +927 -7
  121. package/src/ui.artifact-rail-resize.test.ts +235 -0
  122. package/src/ui.attachments-drop.test.ts +1 -0
  123. package/src/ui.header-update-stability.test.ts +2 -2
  124. package/src/ui.history-chunk.test.ts +72 -0
  125. package/src/ui.history-config-provider.test.ts +318 -0
  126. package/src/ui.history-controller.test.ts +711 -0
  127. package/src/ui.history-lifecycle.test.ts +456 -0
  128. package/src/ui.history-render-hooks.test.ts +904 -0
  129. package/src/ui.history-shell.test.ts +1887 -0
  130. package/src/ui.rail-overlay.test.ts +573 -0
  131. package/src/ui.rail-resize.test.ts +284 -0
  132. package/src/ui.rebuild-composer.test.ts +21 -0
  133. package/src/ui.render-welcome.test.ts +42 -0
  134. package/src/ui.shortcuts.test.ts +166 -0
  135. package/src/ui.ts +3071 -240
  136. package/src/utils/__fixtures__/client-conversation-history-wire.json +108 -0
  137. package/src/utils/artifact-file.ts +15 -0
  138. package/src/utils/artifact-gate.test.ts +4 -0
  139. package/src/utils/artifact-gate.ts +13 -17
  140. package/src/utils/artifact-resize.test.ts +28 -0
  141. package/src/utils/artifact-resize.ts +9 -2
  142. package/src/utils/buttons.ts +188 -1
  143. package/src/utils/config-merge.test.ts +91 -0
  144. package/src/utils/dropdown.ts +10 -1
  145. package/src/utils/history-messages.test.ts +284 -0
  146. package/src/utils/history-messages.ts +284 -0
  147. package/src/utils/icons.ts +3 -0
  148. package/src/utils/shortcuts.test.ts +288 -0
  149. package/src/utils/shortcuts.ts +221 -0
  150. package/src/utils/theme.test.ts +501 -4
  151. package/src/utils/theme.ts +42 -3
  152. package/src/utils/tokens.ts +153 -15
  153. package/src/utils/tooltip-timing.ts +4 -0
  154. package/src/utils/tooltip.test.ts +249 -7
  155. package/src/utils/tooltip.ts +146 -4
  156. package/src/utils/visitor-store.test.ts +425 -0
  157. package/src/utils/visitor-store.ts +337 -0
  158. package/dist/chunk-QJ4LV2KW.js +0 -1
@@ -1 +1 @@
1
- "use strict";var E=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var o in t)E(e,o,{get:t[o],enumerable:!0})},z=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of M(t))!H.call(e,r)&&r!==o&&E(e,r,{get:()=>t[r],enumerable:!(i=O(t,r))||i.enumerable});return e};var N=e=>z(E({},"__esModule",{value:!0}),e);var j={};C(j,{createPopover:()=>A,getStyleRoot:()=>y,injectStyles:()=>I,isEditableEventTarget:()=>W});module.exports=N(j);function y(e){let t=e.getRootNode?.();return t instanceof ShadowRoot||t instanceof Document?t:e.ownerDocument??document}function h(e,t,o){let i=e instanceof Document?e.head:e,r=t.replace(/["\\]/g,"\\$&");if(i.querySelector(`style[data-persona-plugin-style="${r}"]`))return;let d=(e instanceof Document?e:e.ownerDocument??document).createElement("style");d.setAttribute("data-persona-plugin-style",t),d.textContent=o,i.appendChild(d)}function I(e,t,o){if(e instanceof Document||e instanceof ShadowRoot){h(e,t,o);return}let i=e;if(i.isConnected){h(y(i),t,o);return}let r=i.ownerDocument??document;h(r,t,o),queueMicrotask(()=>{let l=y(i);l!==r&&h(l,t,o)})}function $(e){let t=e.getRootNode?.();return t instanceof ShadowRoot?t:(e.ownerDocument??document).body}function A(e){let{anchor:t,content:o,placement:i="bottom-start",offset:r=6,matchAnchorWidth:l=!1,horizontalOffset:d,verticalOffset:L,zIndex:x=2147483e3,onOpen:P,onDismiss:D}=e,T=e.container??$(t),c=!1,f=null,v=()=>{if(!c)return;let n=t.getBoundingClientRect();o.style.position="fixed",l&&(o.style.minWidth=`${n.width}px`),d&&(o.style.maxWidth=`${n.width}px`);let a=o.getBoundingClientRect(),s=L?.()??null,p=s!=null?n.top+s:n.top,w=i==="top-start"||i==="top-end"?p-r-a.height:n.bottom+r,m=i==="bottom-end"||i==="top-end"?n.right-a.width:n.left,b=d?.()??null;if(b!=null){let S=Math.max(n.left,n.right-a.width);m=Math.min(Math.max(n.left+b,n.left),S)}o.style.top=`${w}px`,o.style.left=`${m}px`},u=()=>{c&&(c=!1,f&&(f(),f=null),o.remove())},R=()=>{if(c)return;c=!0,x!=null&&(o.style.zIndex=String(x)),T.appendChild(o),v();let n=(t.ownerDocument??document).defaultView??window,a=t.ownerDocument??document,s=()=>{if(!t.isConnected){u(),D?.("anchor-removed");return}v()},p=g=>{let m=typeof g.composedPath=="function"?g.composedPath():[];m.includes(o)||m.includes(t)||(u(),D?.("outside"))},w=n.setTimeout(()=>{a.addEventListener("pointerdown",p,!0)},0);n.addEventListener("scroll",s,!0),n.addEventListener("resize",s),f=()=>{n.clearTimeout(w),a.removeEventListener("pointerdown",p,!0),n.removeEventListener("scroll",s,!0),n.removeEventListener("resize",s)},P?.()};return{get isOpen(){return c},open:R,close:u,toggle:()=>c?u():R(),reposition:v,destroy:u}}function W(e){return(typeof e.composedPath=="function"?e.composedPath():[]).some(o=>o instanceof HTMLElement&&(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable))}0&&(module.exports={createPopover,getStyleRoot,injectStyles,isEditableEventTarget});
1
+ "use strict";var y=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var z=(e,t)=>{for(var o in t)y(e,o,{get:t[o],enumerable:!0})},A=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of C(t))!H.call(e,r)&&r!==o&&y(e,r,{get:()=>t[r],enumerable:!(i=S(t,r))||i.enumerable});return e};var I=e=>A(y({},"__esModule",{value:!0}),e);var j={};z(j,{createPopover:()=>U,getStyleRoot:()=>x,injectStyles:()=>$,isEditableEventTarget:()=>_});module.exports=I(j);var v=e=>e.nodeType===Node.DOCUMENT_NODE,b=e=>e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host!==void 0;function x(e){let t=e.getRootNode?.();return t&&b(t)||t&&v(t)?t:e.ownerDocument??document}function h(e,t,o){let i=v(e)?e.head:e,r=t.replace(/["\\]/g,"\\$&");if(i.querySelector(`style[data-persona-plugin-style="${r}"]`))return;let c=(v(e)?e:e.ownerDocument??document).createElement("style");c.setAttribute("data-persona-plugin-style",t),c.textContent=o,i.appendChild(c)}function $(e,t,o){if(v(e)||b(e)){h(e,t,o);return}let i=e;if(i.isConnected){h(x(i),t,o);return}let r=i.ownerDocument??document;h(r,t,o),queueMicrotask(()=>{let l=x(i);l!==r&&h(l,t,o)})}function W(e){let t=e.getRootNode?.();return t instanceof ShadowRoot?t:(e.ownerDocument??document).body}function U(e){let{anchor:t,content:o,placement:i="bottom-start",offset:r=6,matchAnchorWidth:l=!1,horizontalOffset:c,verticalOffset:O,zIndex:D=2147483e3,onOpen:L,onDismiss:R}=e,M=e.container??W(t),s=!1,m=null,w=()=>{if(!s)return;let n=t.getBoundingClientRect();o.style.position="fixed",l&&(o.style.minWidth=`${n.width}px`),c&&(o.style.maxWidth=`${n.width}px`);let a=o.getBoundingClientRect(),d=O?.()??null,f=d!=null?n.top+d:n.top,E=i==="top-start"||i==="top-end"?f-r-a.height:n.bottom+r,p=i==="bottom-end"||i==="top-end"?n.right-a.width:n.left,N=c?.()??null;if(N!=null){let P=Math.max(n.left,n.right-a.width);p=Math.min(Math.max(n.left+N,n.left),P)}o.style.top=`${E}px`,o.style.left=`${p}px`},u=()=>{s&&(s=!1,m&&(m(),m=null),o.remove())},T=()=>{if(s)return;s=!0,D!=null&&(o.style.zIndex=String(D)),M.appendChild(o),w();let n=(t.ownerDocument??document).defaultView??window,a=t.ownerDocument??document,d=()=>{if(!t.isConnected){u(),R?.("anchor-removed");return}w()},f=g=>{let p=typeof g.composedPath=="function"?g.composedPath():[];p.includes(o)||p.includes(t)||(u(),R?.("outside"))},E=n.setTimeout(()=>{a.addEventListener("pointerdown",f,!0)},0);n.addEventListener("scroll",d,!0),n.addEventListener("resize",d),m=()=>{n.clearTimeout(E),a.removeEventListener("pointerdown",f,!0),n.removeEventListener("scroll",d,!0),n.removeEventListener("resize",d)},L?.()};return{get isOpen(){return s},open:T,close:u,toggle:()=>s?u():T(),reposition:w,destroy:u}}function _(e){return(typeof e.composedPath=="function"?e.composedPath():[]).some(o=>o instanceof HTMLElement&&(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable))}0&&(module.exports={createPopover,getStyleRoot,injectStyles,isEditableEventTarget});
@@ -1,11 +1,3 @@
1
- /**
2
- * Resolve the root a node's styles should live in.
3
- *
4
- * Returns the node's `ShadowRoot` when it (or an ancestor) is shadowed, the
5
- * owning `Document` otherwise. A `<style>` placed in this root reaches the node
6
- * regardless of whether the widget runs in light or shadow DOM. For a detached
7
- * node (one not yet mounted) this falls back to the owning document.
8
- */
9
1
  declare function getStyleRoot(node: Node): Document | ShadowRoot;
10
2
  /**
11
3
  * Inject a plugin's CSS once into the correct root: the widget's shadow root
@@ -1,11 +1,3 @@
1
- /**
2
- * Resolve the root a node's styles should live in.
3
- *
4
- * Returns the node's `ShadowRoot` when it (or an ancestor) is shadowed, the
5
- * owning `Document` otherwise. A `<style>` placed in this root reaches the node
6
- * regardless of whether the widget runs in light or shadow DOM. For a detached
7
- * node (one not yet mounted) this falls back to the owning document.
8
- */
9
1
  declare function getStyleRoot(node: Node): Document | ShadowRoot;
10
2
  /**
11
3
  * Inject a plugin's CSS once into the correct root: the widget's shadow root
@@ -1 +1 @@
1
- function R(t){let e=t.getRootNode?.();return e instanceof ShadowRoot||e instanceof Document?e:t.ownerDocument??document}function h(t,e,o){let i=t instanceof Document?t.head:t,r=e.replace(/["\\]/g,"\\$&");if(i.querySelector(`style[data-persona-plugin-style="${r}"]`))return;let d=(t instanceof Document?t:t.ownerDocument??document).createElement("style");d.setAttribute("data-persona-plugin-style",e),d.textContent=o,i.appendChild(d)}function O(t,e,o){if(t instanceof Document||t instanceof ShadowRoot){h(t,e,o);return}let i=t;if(i.isConnected){h(R(i),e,o);return}let r=i.ownerDocument??document;h(r,e,o),queueMicrotask(()=>{let l=R(i);l!==r&&h(l,e,o)})}function S(t){let e=t.getRootNode?.();return e instanceof ShadowRoot?e:(t.ownerDocument??document).body}function M(t){let{anchor:e,content:o,placement:i="bottom-start",offset:r=6,matchAnchorWidth:l=!1,horizontalOffset:d,verticalOffset:b,zIndex:E=2147483e3,onOpen:L,onDismiss:y}=t,P=t.container??S(e),c=!1,f=null,v=()=>{if(!c)return;let n=e.getBoundingClientRect();o.style.position="fixed",l&&(o.style.minWidth=`${n.width}px`),d&&(o.style.maxWidth=`${n.width}px`);let a=o.getBoundingClientRect(),s=b?.()??null,p=s!=null?n.top+s:n.top,w=i==="top-start"||i==="top-end"?p-r-a.height:n.bottom+r,m=i==="bottom-end"||i==="top-end"?n.right-a.width:n.left,D=d?.()??null;if(D!=null){let T=Math.max(n.left,n.right-a.width);m=Math.min(Math.max(n.left+D,n.left),T)}o.style.top=`${w}px`,o.style.left=`${m}px`},u=()=>{c&&(c=!1,f&&(f(),f=null),o.remove())},x=()=>{if(c)return;c=!0,E!=null&&(o.style.zIndex=String(E)),P.appendChild(o),v();let n=(e.ownerDocument??document).defaultView??window,a=e.ownerDocument??document,s=()=>{if(!e.isConnected){u(),y?.("anchor-removed");return}v()},p=g=>{let m=typeof g.composedPath=="function"?g.composedPath():[];m.includes(o)||m.includes(e)||(u(),y?.("outside"))},w=n.setTimeout(()=>{a.addEventListener("pointerdown",p,!0)},0);n.addEventListener("scroll",s,!0),n.addEventListener("resize",s),f=()=>{n.clearTimeout(w),a.removeEventListener("pointerdown",p,!0),n.removeEventListener("scroll",s,!0),n.removeEventListener("resize",s)},L?.()};return{get isOpen(){return c},open:x,close:u,toggle:()=>c?u():x(),reposition:v,destroy:u}}function H(t){return(typeof t.composedPath=="function"?t.composedPath():[]).some(o=>o instanceof HTMLElement&&(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable))}export{M as createPopover,R as getStyleRoot,O as injectStyles,H as isEditableEventTarget};
1
+ var v=e=>e.nodeType===Node.DOCUMENT_NODE,N=e=>e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host!==void 0;function T(e){let t=e.getRootNode?.();return t&&N(t)||t&&v(t)?t:e.ownerDocument??document}function h(e,t,o){let i=v(e)?e.head:e,r=t.replace(/["\\]/g,"\\$&");if(i.querySelector(`style[data-persona-plugin-style="${r}"]`))return;let c=(v(e)?e:e.ownerDocument??document).createElement("style");c.setAttribute("data-persona-plugin-style",t),c.textContent=o,i.appendChild(c)}function S(e,t,o){if(v(e)||N(e)){h(e,t,o);return}let i=e;if(i.isConnected){h(T(i),t,o);return}let r=i.ownerDocument??document;h(r,t,o),queueMicrotask(()=>{let l=T(i);l!==r&&h(l,t,o)})}function P(e){let t=e.getRootNode?.();return t instanceof ShadowRoot?t:(e.ownerDocument??document).body}function C(e){let{anchor:t,content:o,placement:i="bottom-start",offset:r=6,matchAnchorWidth:l=!1,horizontalOffset:c,verticalOffset:b,zIndex:y=2147483e3,onOpen:O,onDismiss:x}=e,L=e.container??P(t),s=!1,m=null,w=()=>{if(!s)return;let n=t.getBoundingClientRect();o.style.position="fixed",l&&(o.style.minWidth=`${n.width}px`),c&&(o.style.maxWidth=`${n.width}px`);let a=o.getBoundingClientRect(),d=b?.()??null,f=d!=null?n.top+d:n.top,E=i==="top-start"||i==="top-end"?f-r-a.height:n.bottom+r,p=i==="bottom-end"||i==="top-end"?n.right-a.width:n.left,R=c?.()??null;if(R!=null){let M=Math.max(n.left,n.right-a.width);p=Math.min(Math.max(n.left+R,n.left),M)}o.style.top=`${E}px`,o.style.left=`${p}px`},u=()=>{s&&(s=!1,m&&(m(),m=null),o.remove())},D=()=>{if(s)return;s=!0,y!=null&&(o.style.zIndex=String(y)),L.appendChild(o),w();let n=(t.ownerDocument??document).defaultView??window,a=t.ownerDocument??document,d=()=>{if(!t.isConnected){u(),x?.("anchor-removed");return}w()},f=g=>{let p=typeof g.composedPath=="function"?g.composedPath():[];p.includes(o)||p.includes(t)||(u(),x?.("outside"))},E=n.setTimeout(()=>{a.addEventListener("pointerdown",f,!0)},0);n.addEventListener("scroll",d,!0),n.addEventListener("resize",d),m=()=>{n.clearTimeout(E),a.removeEventListener("pointerdown",f,!0),n.removeEventListener("scroll",d,!0),n.removeEventListener("resize",d)},O?.()};return{get isOpen(){return s},open:D,close:u,toggle:()=>s?u():D(),reposition:w,destroy:u}}function H(e){return(typeof e.composedPath=="function"?e.composedPath():[]).some(o=>o instanceof HTMLElement&&(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable))}export{C as createPopover,T as getStyleRoot,S as injectStyles,H as isEditableEventTarget};