@authhero/widget 0.32.27 → 0.32.29
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/dist/authhero-widget/authhero-widget.esm.js +1 -1
- package/dist/authhero-widget/index.esm.js +1 -1
- package/dist/authhero-widget/p-FUW5zvoZ.js +2 -0
- package/dist/authhero-widget/{p-e91b632f.entry.js → p-aa120307.entry.js} +1 -1
- package/dist/authhero-widget/{p-f63fd386.entry.js → p-f0f9eca3.entry.js} +1 -1
- package/dist/cjs/authhero-node.cjs.entry.js +2 -2
- package/dist/cjs/authhero-widget.cjs.entry.js +1 -1
- package/dist/cjs/authhero-widget.cjs.js +2 -2
- package/dist/cjs/{index-CUBT14z-.js → index-4OcMRinY.js} +378 -1944
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/authhero-node/authhero-node.js +4 -2
- package/dist/collection/components/authhero-widget/authhero-widget.js +8 -4
- package/dist/components/authhero-node.js +1 -1
- package/dist/components/authhero-widget.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DqexL9yF.js → p-Bwng5l4l.js} +1 -1
- package/dist/components/p-cKZ5hFj1.js +1 -0
- package/dist/esm/authhero-node.entry.js +2 -2
- package/dist/esm/authhero-widget.entry.js +1 -1
- package/dist/esm/authhero-widget.js +3 -3
- package/dist/esm/{index-BFP_5sHV.js → index-FUW5zvoZ.js} +378 -1944
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/types/components.d.ts +27 -6
- package/dist/types/stencil-public-runtime.d.ts +52 -2
- package/hydrate/index.js +11730 -11056
- package/hydrate/index.mjs +11730 -11056
- package/package.json +5 -5
- package/dist/authhero-widget/p-BFP_5sHV.js +0 -2
- package/dist/components/p-DpfoRsj0.js +0 -1
|
@@ -125,8 +125,27 @@ export interface EventOptions {
|
|
|
125
125
|
*/
|
|
126
126
|
composed?: boolean;
|
|
127
127
|
}
|
|
128
|
+
export interface AttachInternalsOptions {
|
|
129
|
+
/**
|
|
130
|
+
* Initial custom states to set on the ElementInternals.states CustomStateSet.
|
|
131
|
+
* Each key is the state name and the value is the initial boolean state.
|
|
132
|
+
*
|
|
133
|
+
* These states can be targeted with the CSS `:state()` pseudo-class.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```tsx
|
|
137
|
+
* @AttachInternals({ states: { open: true, active: false } })
|
|
138
|
+
* internals: ElementInternals;
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet
|
|
142
|
+
*/
|
|
143
|
+
states?: {
|
|
144
|
+
[stateName: string]: boolean;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
128
147
|
export interface AttachInternalsDecorator {
|
|
129
|
-
(): PropertyDecorator;
|
|
148
|
+
(opts?: AttachInternalsOptions): PropertyDecorator;
|
|
130
149
|
}
|
|
131
150
|
export interface ListenDecorator {
|
|
132
151
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
@@ -618,7 +637,7 @@ export interface FunctionalUtilities {
|
|
|
618
637
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
619
638
|
}
|
|
620
639
|
export interface FunctionalComponent<T = {}> {
|
|
621
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
|
|
640
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
|
|
622
641
|
}
|
|
623
642
|
/**
|
|
624
643
|
* A Child VDOM node
|
|
@@ -660,6 +679,7 @@ export declare namespace h {
|
|
|
660
679
|
function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
661
680
|
function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
662
681
|
function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
682
|
+
function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
663
683
|
namespace JSX {
|
|
664
684
|
interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
|
|
665
685
|
[tagName: string]: any;
|
|
@@ -674,6 +694,36 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
|
|
|
674
694
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
675
695
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
676
696
|
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
697
|
+
export declare function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
698
|
+
/**
|
|
699
|
+
* Automatic JSX runtime functions for TypeScript's react-jsx mode.
|
|
700
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsx".
|
|
701
|
+
* @param type type of node
|
|
702
|
+
* @param props properties of node
|
|
703
|
+
* @param key optional key for the node
|
|
704
|
+
* @returns a jsx vnode
|
|
705
|
+
*/
|
|
706
|
+
export declare function jsx(type: any, props: any, key?: string): VNode;
|
|
707
|
+
/**
|
|
708
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxmode with multiple children.
|
|
709
|
+
* @param type type of node
|
|
710
|
+
* @param props properties of node
|
|
711
|
+
* @param key optional key for the node
|
|
712
|
+
* @returns a jsx vnode
|
|
713
|
+
*/
|
|
714
|
+
export declare function jsxs(type: any, props: any, key?: string): VNode;
|
|
715
|
+
/**
|
|
716
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxdev mode.
|
|
717
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsxdev".
|
|
718
|
+
* @param type type of node
|
|
719
|
+
* @param props properties of node
|
|
720
|
+
* @param key optional key for the node
|
|
721
|
+
* @param isStaticChildren indicates if the children are static
|
|
722
|
+
* @param source source information
|
|
723
|
+
* @param self reference to the component instance
|
|
724
|
+
* @returns a jsx vnode
|
|
725
|
+
*/
|
|
726
|
+
export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
|
|
677
727
|
/**
|
|
678
728
|
* A virtual DOM node
|
|
679
729
|
*/
|