@webreflection/elements 0.1.5 → 0.1.6
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/auto.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=new Map,t=document.createElement.bind(document),n=new Proxy(new Map,{get(n,s){let o=s.toLowerCase();return n.get(o)||((n,s)=>{let o=e.get(s);o||e.set(s,o=t(s).constructor);class l extends o{static tag=s}return n.set(s,l),l})(n,o)}}),s=new Proxy(new Map,{get(){throw new DOMException("SVG extends not natively supported")}}),o={define:(e,t)=>{const n=[e,t];return"element"!==t.tag&&n.push({extends:t.tag}),customElements.define(...n)},get:e=>customElements.get(e),whenDefined:e=>customElements.whenDefined(e)};var l=Object.freeze({__proto__:null,HTML:n,SVG:s,elements:o});let{HTML:r,SVG:c,elements:a}=l;try{const e=class extends HTMLLIElement{};customElements.define("li-"+Date.now(),e,{extends:"li"}),new e}catch{({HTML:r,elements:a}=await import("./index-ZeOAFWQQ.js"))}export{r as HTML,c as SVG,a as elements};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webreflection/elements",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "HTML & SVG Custom Elements",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "rollup -c rollup.js && npm run types",
|
|
9
|
+
"build": "rm -rf dist && rollup -c rollup.js && npm run types",
|
|
10
10
|
"types": "rm -rf types && tsc --allowJs --checkJs --lib esnext,dom --moduleResolution nodenext --module NodeNext --target esnext -d --emitDeclarationOnly --outDir ./types ./index.js ./auto.js ./native.js"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
@@ -15,21 +15,20 @@
|
|
|
15
15
|
"types": "./types/index.d.ts"
|
|
16
16
|
},
|
|
17
17
|
"./auto": {
|
|
18
|
-
"import": "./auto.js",
|
|
18
|
+
"import": "./dist/auto.js",
|
|
19
19
|
"types": "./types/auto.d.ts"
|
|
20
20
|
},
|
|
21
21
|
"./native": {
|
|
22
22
|
"import": "./native.js",
|
|
23
23
|
"types": "./types/native.d.ts"
|
|
24
24
|
},
|
|
25
|
-
"./min": "./min.js",
|
|
26
25
|
"./package.json": "./package.json"
|
|
27
26
|
},
|
|
28
27
|
"files": [
|
|
28
|
+
"dist/*",
|
|
29
29
|
"types/*",
|
|
30
30
|
"auto.js",
|
|
31
31
|
"index.js",
|
|
32
|
-
"min.js",
|
|
33
32
|
"native.js",
|
|
34
33
|
"README.md",
|
|
35
34
|
"LICENSE"
|
|
File without changes
|