@scaleflex/uploader 0.2.5 → 0.2.7

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.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Find the best DOM node to append portal dropdowns to.
3
+ *
4
+ * When the uploader is rendered inside a `<dialog>` opened with `showModal()`,
5
+ * the dialog is promoted to the browser's top layer. Any element appended to
6
+ * `document.body` would render *behind* the dialog regardless of z-index.
7
+ *
8
+ * This helper walks up the composed ancestor chain. At each element, if it has
9
+ * a shadow root, we check that shadow root for an open `<dialog>`. This covers
10
+ * the case where the component is slotted into a host whose shadow DOM contains
11
+ * the dialog (e.g. `<ap-modal>` slots content next to its `<dialog>`).
12
+ */
13
+ export declare function getPortalTarget(from: Element): HTMLElement;
14
+ //# sourceMappingURL=portal-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portal-target.d.ts","sourceRoot":"","sources":["../../src/utils/portal-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,CA0B1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/uploader",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Framework-agnostic file upload widget for Scaleflex VXP",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",