@arcgis/lumina-compiler 4.31.5 → 4.31.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/index.js +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ if(import.meta.hot) {
|
|
|
21
21
|
}`,zr=e=>e.slice(Kr.length,-Ur.length);function Xa(e,t,n,r){let i=zr(e).replaceAll('\\"','"').replaceAll("`","\\`"),s=xe(Qa(i)),a=r?`@layer{${n?"":`
|
|
22
22
|
`}${s}${n?"":`
|
|
23
23
|
`}}`:s;return`${qa}${a}${Ga}${t?_a:""}`}var Qa=e=>e.replaceAll("\\n",`
|
|
24
|
-
`),Ya=(e,t)=>e.endsWith(".mdx")||e.includes(".stories.")||e.includes(".story.")||e.startsWith(`${t.dir.root}stories/`);import{camelToKebab as up}from"@arcgis/components-utils";import{lazyMetaSubItemJoiner as fp,lazyMetaItemJoiner as pn,lazyMetaGroupJoiner as yp}from"@arcgis/lumina/config";import{create as Za}from"@custom-elements-manifest/analyzer/src/browser-entrypoint.js";import ep from"typescript";import{path as Te}from"@arcgis/components-build-utils";import{isNotUndefined as tp,kebabToPascal as np,uncapitalize as rp}from"@arcgis/components-utils";var ke="@arcgis/lumina-compiler",qr="4.31.
|
|
24
|
+
`),Ya=(e,t)=>e.endsWith(".mdx")||e.includes(".stories.")||e.includes(".story.")||e.startsWith(`${t.dir.root}stories/`);import{camelToKebab as up}from"@arcgis/components-utils";import{lazyMetaSubItemJoiner as fp,lazyMetaItemJoiner as pn,lazyMetaGroupJoiner as yp}from"@arcgis/lumina/config";import{create as Za}from"@custom-elements-manifest/analyzer/src/browser-entrypoint.js";import ep from"typescript";import{path as Te}from"@arcgis/components-build-utils";import{isNotUndefined as tp,kebabToPascal as np,uncapitalize as rp}from"@arcgis/components-utils";var ke="@arcgis/lumina-compiler",qr="4.31.6";function rn(e,t,n){e.modules.sort((s,a)=>{let l=s.fileName.split("/"),p=l.pop(),d=l.join("/"),m=a.fileName.split("/"),f=m.pop(),c=m.join("/");return d===c?p<f?-1:1:d.startsWith(c)?1:c.startsWith(d)||d<c?-1:1});let r=Za(e);r.modules.forEach(s=>{s.path=Te.relative(t.dir.root,s.path),s.exports?.forEach(a=>{typeof a.declaration.module=="string"&&(a.declaration.module=Te.relative(t.dir.root,a.declaration.module))})});let o={timestamp:new Date().toISOString().split(".")[0],compiler:{name:ke,version:qr,typescriptVersion:ep.version},...r};n||(t.componentPathMapping={});let i=o.modules.flatMap(s=>W(s,!0).map(a=>{a.sourcePath=s.path;let l=rr(a,t);return a.importPath=["components",l].join(Te.sep),a.typeName=`HTML${np(a.tagName)}Element`,a}));return n?r:(t.manifest=o,t.manifestComponents=i,t.viteCommand==="build"?t.manifestComponents.forEach(s=>{op(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 on=new Set(["componentOnReady"]);function op(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(tp),e.members?.forEach(r=>{if(r.kind==="field"){let s=r;s.isAttributeEligible=void 0}if(Gr(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=rp(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.
|
|
3
|
+
"version": "4.31.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcgis/components-build-utils": "4.31.
|
|
22
|
-
"@arcgis/components-utils": "4.31.
|
|
21
|
+
"@arcgis/components-build-utils": "4.31.6",
|
|
22
|
+
"@arcgis/components-utils": "4.31.6",
|
|
23
23
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
24
24
|
"custom-element-jet-brains-integration": "^1.6.2",
|
|
25
25
|
"custom-element-vs-code-integration": "^1.4.1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"vitest-fail-on-console": "^0.7.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@arcgis/components-controllers": "~4.31.
|
|
42
|
-
"@arcgis/lumina": "~4.31.
|
|
41
|
+
"@arcgis/components-controllers": "~4.31.6",
|
|
42
|
+
"@arcgis/lumina": "~4.31.6"
|
|
43
43
|
}
|
|
44
44
|
}
|