@seahax/elemental 0.5.20 → 0.5.21

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,9 @@
1
+ import { useInternalController as e } from "./useInternalController.js";
2
+ //#region src/hooks/useShadow.ts
3
+ function t() {
4
+ return e().shadow;
5
+ }
6
+ //#endregion
7
+ export { t as useShadow };
8
+
9
+ //# sourceMappingURL=useShadow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useShadow.js","names":[],"sources":["../../src/hooks/useShadow.ts"],"sourcesContent":["import { useInternalController } from './useInternalController.ts';\n\nexport function useShadow(): ShadowRoot {\n return useInternalController().shadow;\n}\n"],"mappings":";;AAEA,SAAgB,IAAwB;AACtC,QAAO,GAAuB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './hooks/useHost.ts';
14
14
  export * from './hooks/useParent.ts';
15
15
  export * from './hooks/useRef.ts';
16
16
  export * from './hooks/useRoute.ts';
17
+ export * from './hooks/useShadow.ts';
17
18
  export * from './hooks/useStore.ts';
18
19
  export * from './html.ts';
19
20
  export { html as h } from './html.ts';
package/dist/index.js CHANGED
@@ -15,5 +15,6 @@ import { useForm as p, useFormDisabled as m, useFormResetCallback as h, useFormR
15
15
  import { useParent as _ } from "./hooks/useParent.js";
16
16
  import { useStore as v } from "./hooks/useStore.js";
17
17
  import { useRoute as y } from "./hooks/useRoute.js";
18
- import { html as b } from "./html.js";
19
- export { e as classes, t as createStore, r as defineComponent, i as extendComponentDefinition, b as h, b as html, s as useAsync, l as useAttributes, u as useChildEffect, a as useDisconnectCallback, d as useDocument, o as useEffect, f as useElementInternals, p as useForm, m as useFormDisabled, h as useFormResetCallback, g as useFormRestoreCallback, c as useHost, _ as useParent, n as useRef, y as useRoute, v as useStore };
18
+ import { useShadow as b } from "./hooks/useShadow.js";
19
+ import { html as x } from "./html.js";
20
+ export { e as classes, t as createStore, r as defineComponent, i as extendComponentDefinition, x as h, x as html, s as useAsync, l as useAttributes, u as useChildEffect, a as useDisconnectCallback, d as useDocument, o as useEffect, f as useElementInternals, p as useForm, m as useFormDisabled, h as useFormResetCallback, g as useFormRestoreCallback, c as useHost, _ as useParent, n as useRef, y as useRoute, b as useShadow, v as useStore };
package/package.json CHANGED
@@ -21,5 +21,5 @@
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
- "version": "0.5.20"
24
+ "version": "0.5.21"
25
25
  }