@arcgis/lumina-compiler 4.31.0-next.102 → 4.31.0-next.103
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/index.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ if(import.meta.hot) {
|
|
|
21
21
|
}`,Hr=e=>e.slice(Jr.length,-Br.length);function Ja(e,t,n,r){let i=Hr(e).replaceAll('\\"','"').replaceAll("`","\\`"),s=be(Ba(i)),a=r?`@layer{${n?"":`
|
|
22
22
|
`}${s}${n?"":`
|
|
23
23
|
`}}`:s;return`${ja}${a}${Ra}${t?Oa:""}`}var Ba=e=>e.replaceAll("\\n",`
|
|
24
|
-
`),Ha=(e,t)=>e.endsWith(".mdx")||e.includes(".stories.")||e.includes(".story.")||e.startsWith(`${t.dir.root}stories/`);import{camelToKebab as np}from"@arcgis/components-utils";import{lazyMetaSubItemJoiner as rp,lazyMetaItemJoiner as on,lazyMetaGroupJoiner as op}from"@arcgis/lumina/config";import{create as Wa}from"@custom-elements-manifest/analyzer/src/browser-entrypoint.js";import Ka from"typescript";import{isNotUndefined as Ua,kebabToPascal as za,uncapitalize as Va}from"@arcgis/components-utils";var Ae="@arcgis/lumina-compiler",Kr="4.31.0-next.
|
|
24
|
+
`),Ha=(e,t)=>e.endsWith(".mdx")||e.includes(".stories.")||e.includes(".story.")||e.startsWith(`${t.dir.root}stories/`);import{camelToKebab as np}from"@arcgis/components-utils";import{lazyMetaSubItemJoiner as rp,lazyMetaItemJoiner as on,lazyMetaGroupJoiner as op}from"@arcgis/lumina/config";import{create as Wa}from"@custom-elements-manifest/analyzer/src/browser-entrypoint.js";import Ka from"typescript";import{isNotUndefined as Ua,kebabToPascal as za,uncapitalize as Va}from"@arcgis/components-utils";var Ae="@arcgis/lumina-compiler",Kr="4.31.0-next.103";function en(e,t,n){e.modules.sort((s,a)=>{let l=s.fileName.split("/"),p=l.pop(),d=l.join("/"),m=a.fileName.split("/"),y=m.pop(),u=m.join("/");return d===u?p<y?-1:1:d.startsWith(u)?1:u.startsWith(d)||d<u?-1:1});let r=Wa(e);r.modules.forEach(s=>{s.path=c.relative(t.dir.root,s.path),s.exports?.forEach(a=>{typeof a.declaration.module=="string"&&(a.declaration.module=c.relative(t.dir.root,a.declaration.module))})});let o={timestamp:new Date().toISOString().split(".")[0],compiler:{name:Ae,version:Kr,typescriptVersion:Ka.version},...r};n||(t.componentPathMapping={});let i=o.modules.flatMap(s=>U(s,!0).map(a=>{a.sourcePath=s.path;let l=Gn(a,t);return a.importPath=["components",l].join(c.sep),a.typeName=`HTML${za(a.tagName)}Element`,a}));return n?r:(t.manifest=o,t.manifestComponents=i,t.viteCommand==="build"?t.manifestComponents.forEach(s=>{qa(s,t)}):t.manifestComponents.forEach(s=>s.members?.forEach(a=>{a.kind==="field"&&a.readonly&&(a.readonly=void 0)})),t.options.manifests?.afterManifestCreate?.(o),o)}var tn=new Set(["componentOnReady"]);function qa(e,t){let n=new Map(t.manifestComponents.map(r=>[r.name,r.typeName]));e.attributes=e.attributes?.map(r=>{let o=r.fieldName,i=e.members?.find(p=>p.kind==="field"&&p.name===o);if(i===void 0)throw new Error(`Unable to find the "${o}" property for the "${r.name}" attribute in ${e.name}`);if(r.type=i.type,r.inheritedFrom=i.inheritedFrom,r.default=i.default,r.description=i.description,i.readonly&&i.reflects!==!0){i.attribute=void 0;return}if(!i.isAttributeEligible){i.attribute=void 0;return}return r}).filter(Ua),e.members?.forEach(r=>{if(r.kind==="field"){let s=r;s.isAttributeEligible=void 0}if(Ur(r.type,n,t),!r.inheritedFrom)return;let i=r.kind==="method"&&r.name==="componentOnReady";if(i&&(r.inheritedFrom.module=void 0,r.inheritedFrom.package="@arcgis/lumina"),i){let s=Va(e.name);r.docsTags=[{name:"example",text:`const ${s} = document.createElement("${e.tagName}");
|
|
25
25
|
document.body.append(${s});
|
|
26
26
|
${s}.componentOnReady().then(() => {
|
|
27
27
|
console.log("${e.tagName} is ready to go!");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina-compiler",
|
|
3
|
-
"version": "4.31.0-next.
|
|
3
|
+
"version": "4.31.0-next.103",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"clean": "rimraf ./dist ./build ./turbo ./node_modules"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcgis/components-utils": "4.31.0-next.
|
|
41
|
+
"@arcgis/components-utils": "4.31.0-next.103",
|
|
42
42
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
43
43
|
"custom-element-jet-brains-integration": "^1.6.2",
|
|
44
44
|
"custom-element-vs-code-integration": "^1.4.1",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"vitest-fail-on-console": "^0.7.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@arcgis/components-build-utils": "4.31.0-next.
|
|
61
|
-
"@arcgis/lumina": "4.31.0-next.
|
|
62
|
-
"@arcgis/typescript-config": "4.31.0-next.
|
|
60
|
+
"@arcgis/components-build-utils": "4.31.0-next.103",
|
|
61
|
+
"@arcgis/lumina": "4.31.0-next.103",
|
|
62
|
+
"@arcgis/typescript-config": "4.31.0-next.103",
|
|
63
63
|
"@stencil/core": "4.20.0",
|
|
64
64
|
"@types/js-beautify": "^1",
|
|
65
65
|
"@types/mime-types": "^2",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"vitest": "^2.1.1"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@arcgis/components-controllers": "4.31.0-next.
|
|
78
|
-
"@arcgis/lumina": "4.31.0-next.
|
|
77
|
+
"@arcgis/components-controllers": "4.31.0-next.103",
|
|
78
|
+
"@arcgis/lumina": "4.31.0-next.103"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "1d82adde8aeff6f3fbcf515b737148594607f598"
|
|
81
81
|
}
|