@hitachivantara/app-shell-vite-plugin 1.0.2 → 1.1.0

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.
@@ -1,5 +1,6 @@
1
1
  export default function getVirtualEntrypoints(inlineConfig: boolean): {
2
2
  "/virtual/main.tsx": string;
3
3
  "virtual:App.tsx": string;
4
+ "virtual:appshell-uikit-uno.css": string;
4
5
  };
5
6
  //# sourceMappingURL=virtual-entrypoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-entrypoints.d.ts","sourceRoot":"","sources":["../src/virtual-entrypoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,YAAY,EAAE,OAAO;;;EAoClE"}
1
+ {"version":3,"file":"virtual-entrypoints.d.ts","sourceRoot":"","sources":["../src/virtual-entrypoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,YAAY,EAAE,OAAO;;;;EAqClE"}
@@ -31,7 +31,8 @@ const App = () => {
31
31
  });
32
32
  };
33
33
 
34
- export default App;`
34
+ export default App;`,
35
+ "virtual:appshell-uikit-uno.css": `import "virtual:uno.css";`
35
36
  };
36
37
  }
37
38
  //# sourceMappingURL=virtual-entrypoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-entrypoints.js","sourceRoot":"","sources":["../src/virtual-entrypoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,YAAqB;IACjE,OAAO;QACL,mBAAmB,EAAE;;;;;;;;;;IAUrB;QAEA,iBAAiB,EAAE,YAAY;YAC7B,CAAC,CAAC;;;;;;;;;oBASY;YACd,CAAC,CAAC;;;;;;;;;oBASY;KACjB,CAAC;AACJ,CAAC","sourcesContent":["export default function getVirtualEntrypoints(inlineConfig: boolean) {\n return {\n \"/virtual/main.tsx\": `import React, { Suspense } from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport App from \"virtual:App.tsx\";\n\nconst root = ReactDOM.createRoot(document.getElementById(\"hv-root\"));\n\nroot.render(React.createElement(\n Suspense,\n { fallback: true },\n React.createElement(App, null)\n));`,\n\n \"virtual:App.tsx\": inlineConfig\n ? `import React from \"react\";\nimport HvAppShell from \"@hitachivantara/app-shell-ui\";\n\nconst App = () => {\n return React.createElement(HvAppShell, {\n config: globalThis.__appshell_config__\n });\n};\n\nexport default App;`\n : `import React from \"react\";\nimport HvAppShell from \"@hitachivantara/app-shell-ui\";\n\nconst App = () => {\n return React.createElement(HvAppShell, {\n configUrl: document.baseURI + \"app-shell.config.json\"\n });\n};\n\nexport default App;`\n };\n}\n"]}
1
+ {"version":3,"file":"virtual-entrypoints.js","sourceRoot":"","sources":["../src/virtual-entrypoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,YAAqB;IACjE,OAAO;QACL,mBAAmB,EAAE;;;;;;;;;;IAUrB;QAEA,iBAAiB,EAAE,YAAY;YAC7B,CAAC,CAAC;;;;;;;;;oBASY;YACd,CAAC,CAAC;;;;;;;;;oBASY;QAChB,gCAAgC,EAAE,2BAA2B;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["export default function getVirtualEntrypoints(inlineConfig: boolean) {\n return {\n \"/virtual/main.tsx\": `import React, { Suspense } from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport App from \"virtual:App.tsx\";\n\nconst root = ReactDOM.createRoot(document.getElementById(\"hv-root\"));\n\nroot.render(React.createElement(\n Suspense,\n { fallback: true },\n React.createElement(App, null)\n));`,\n\n \"virtual:App.tsx\": inlineConfig\n ? `import React from \"react\";\nimport HvAppShell from \"@hitachivantara/app-shell-ui\";\n\nconst App = () => {\n return React.createElement(HvAppShell, {\n config: globalThis.__appshell_config__\n });\n};\n\nexport default App;`\n : `import React from \"react\";\nimport HvAppShell from \"@hitachivantara/app-shell-ui\";\n\nconst App = () => {\n return React.createElement(HvAppShell, {\n configUrl: document.baseURI + \"app-shell.config.json\"\n });\n};\n\nexport default App;`,\n \"virtual:appshell-uikit-uno.css\": `import \"virtual:uno.css\";`\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/app-shell-vite-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "AppShell Vite Plugin",
5
5
  "author": "Hitachi Vantara - Boba Fett Team",
6
6
  "license": "Apache-2.0",
@@ -64,5 +64,5 @@
64
64
  "peerDependencies": {
65
65
  "vite": "^4.1.4 || ^5.0.4"
66
66
  },
67
- "gitHead": "dd45ab80c936795769735b2c4577164a262ec183"
67
+ "gitHead": "59d1c68f1627bd95c40cf7df41c88753ebba0403"
68
68
  }