@nectary/components 4.7.0 → 4.7.1
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/package.json +2 -2
- package/utils/element.d.ts +1 -0
- package/utils/element.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nectary/components",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"**/*/*.css",
|
|
6
6
|
"**/*/*.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.22.15",
|
|
23
|
-
"@nectary/assets": "2.2.
|
|
23
|
+
"@nectary/assets": "2.2.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/cli": "^7.22.15",
|
package/utils/element.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const defineCustomElement: (name: string, constructor: CustomElementConstructor) => void;
|
|
2
2
|
export declare const setNectaryRegistry: (registry: CustomElementRegistry) => void;
|
|
3
|
+
export declare const resetNectaryRegistry: () => void;
|
|
3
4
|
declare global {
|
|
4
5
|
interface ShadowRootInit {
|
|
5
6
|
customElements?: CustomElementRegistry;
|
package/utils/element.js
CHANGED
|
@@ -22,6 +22,9 @@ export const setNectaryRegistry = registry => {
|
|
|
22
22
|
}
|
|
23
23
|
nectaryDefinitions.clear();
|
|
24
24
|
};
|
|
25
|
+
export const resetNectaryRegistry = () => {
|
|
26
|
+
nectaryRegistry = null;
|
|
27
|
+
};
|
|
25
28
|
export class NectaryElement extends HTMLElement {
|
|
26
29
|
attachShadow(options) {
|
|
27
30
|
return super.attachShadow({
|