@arcgis/lumina-compiler 4.32.0-next.3 → 4.32.0-next.4
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
|
}`,si=e=>e.slice(ii.length,-oi.length);function bl(e,t,n,r){let o=si(e).replaceAll('\\"','"').replaceAll("`","\\`"),s=Te(vl(o)),a=r?`@layer{${n?"":`
|
|
22
22
|
`}${s}${n?"":`
|
|
23
23
|
`}}`:s;return`${xl}${a}${Cl}${t?Tl:""}`}var vl=e=>e.replaceAll("\\n",`
|
|
24
|
-
`),Sl=(e,t)=>e.endsWith(".mdx")||e.includes(".stories.")||e.includes(".story.")||e.startsWith(`${t.dir.root}stories/`);import{camelToKebab as Ol}from"@arcgis/components-utils";import{lazyMetaSubItemJoiner as Jl,lazyMetaItemJoiner as xn,lazyMetaGroupJoiner as Bl}from"@arcgis/lumina/config";import{create as El}from"@custom-elements-manifest/analyzer/src/browser-entrypoint.js";import wl from"typescript";import{path as ve}from"@arcgis/components-build-utils";import{isNotUndefined as Pl,kebabToPascal as Ml,uncapitalize as kl}from"@arcgis/components-utils";var Ne="@arcgis/lumina-compiler",li="4.32.0-next.
|
|
24
|
+
`),Sl=(e,t)=>e.endsWith(".mdx")||e.includes(".stories.")||e.includes(".story.")||e.startsWith(`${t.dir.root}stories/`);import{camelToKebab as Ol}from"@arcgis/components-utils";import{lazyMetaSubItemJoiner as Jl,lazyMetaItemJoiner as xn,lazyMetaGroupJoiner as Bl}from"@arcgis/lumina/config";import{create as El}from"@custom-elements-manifest/analyzer/src/browser-entrypoint.js";import wl from"typescript";import{path as ve}from"@arcgis/components-build-utils";import{isNotUndefined as Pl,kebabToPascal as Ml,uncapitalize as kl}from"@arcgis/components-utils";var Ne="@arcgis/lumina-compiler",li="4.32.0-next.4";function un(e,t,n){e.modules.sort((s,a)=>{let l=s.fileName.split("/"),p=l.pop(),d=l.join("/"),c=a.fileName.split("/"),u=c.pop(),m=c.join("/");return d===m?p<u?-1:1:d.startsWith(m)?1:m.startsWith(d)||d<m?-1:1});let r=El(e);r.modules.forEach(s=>{s.path=ve.relative(t.dir.root,s.path),s.exports?.forEach(a=>{typeof a.declaration.module=="string"&&(a.declaration.module=ve.relative(t.dir.root,a.declaration.module))})});let i={timestamp:new Date().toISOString().split(".")[0],compiler:{name:Ne,version:li,typescriptVersion:wl.version},...r};n||(t.componentPathMapping={});let o=i.modules.flatMap(s=>U(s,!0).map(a=>{a.sourcePath=s.path;let l=hr(a,t);return a.importPath=["components",l].join(ve.sep),a.typeName=`HTML${Ml(a.tagName)}Element`,a}));return n?r:(t.manifest=i,t.manifestComponents=o,t.viteCommand==="build"?t.manifestComponents.forEach(s=>{Fl(s,t)}):t.manifestComponents.forEach(s=>s.members?.forEach(a=>{a.kind==="field"&&a.readonly&&(a.readonly=void 0)})),t.options.manifests?.afterManifestCreate?.(i),i)}var yn=new Set(["componentOnReady"]);function Fl(e,t){let n=new Map(t.manifestComponents.map(r=>[r.name,r.typeName]));e.attributes=e.attributes?.map(r=>{let i=r.fieldName,o=e.members?.find(p=>p.kind==="field"&&p.name===i);if(o===void 0)throw new Error(`Unable to find the "${i}" property for the "${r.name}" attribute in ${e.name}`);if(r.type=o.type,r.inheritedFrom=o.inheritedFrom,r.default=o.default,r.description=o.description,o.readonly&&o.reflects!==!0){o.attribute=void 0;return}if(!o.isAttributeEligible){o.attribute=void 0;return}return r}).filter(Pl),e.members?.forEach(r=>{if(r.kind==="field"){let s=r;s.isAttributeEligible=void 0}if(pi(r.type,n,t),!r.inheritedFrom)return;let o=r.kind==="method"&&r.name==="componentOnReady";if(o&&(r.inheritedFrom.module=void 0,r.inheritedFrom.package="@arcgis/lumina"),o){let s=kl(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.32.0-next.
|
|
3
|
+
"version": "4.32.0-next.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"clean": "rimraf ./dist ./build ./turbo ./node_modules"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcgis/components-build-utils": "4.32.0-next.
|
|
42
|
-
"@arcgis/components-utils": "4.32.0-next.
|
|
41
|
+
"@arcgis/components-build-utils": "4.32.0-next.4",
|
|
42
|
+
"@arcgis/components-utils": "4.32.0-next.4",
|
|
43
43
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
44
44
|
"custom-elements-manifest": "^2.1.0",
|
|
45
45
|
"esbuild": "^0.24.0",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"vitest-fail-on-console": "^0.7.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@arcgis/lumina": "4.32.0-next.
|
|
60
|
-
"@arcgis/typescript-config": "4.32.0-next.
|
|
59
|
+
"@arcgis/lumina": "4.32.0-next.4",
|
|
60
|
+
"@arcgis/typescript-config": "4.32.0-next.4",
|
|
61
61
|
"@stencil/core": "4.20.0",
|
|
62
62
|
"@types/js-beautify": "^1",
|
|
63
63
|
"@types/mime-types": "^2",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"vitest": "^2.1.2"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@arcgis/components-controllers": "4.32.0-next.
|
|
76
|
-
"@arcgis/lumina": "4.32.0-next.
|
|
75
|
+
"@arcgis/components-controllers": "4.32.0-next.4",
|
|
76
|
+
"@arcgis/lumina": "4.32.0-next.4"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "57612a8bfbd9ba14535ca2b0d3ff66ab1d6a57f5"
|
|
79
79
|
}
|