@scaleflex/uploader 0.2.6 → 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.
@@ -5,8 +5,10 @@
5
5
  * the dialog is promoted to the browser's top layer. Any element appended to
6
6
  * `document.body` would render *behind* the dialog regardless of z-index.
7
7
  *
8
- * This helper walks up the composed tree from the given element and returns
9
- * the nearest open `<dialog>` if one exists, otherwise `document.body`.
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>`).
10
12
  */
11
13
  export declare function getPortalTarget(from: Element): HTMLElement;
12
14
  //# sourceMappingURL=portal-target.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"portal-target.d.ts","sourceRoot":"","sources":["../../src/utils/portal-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,CAgB1D"}
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.6",
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",