@trackunit/iris-app-sdk-vite 1.0.25 → 1.0.29
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/CHANGELOG.md +28 -0
- package/package.json +4 -4
- package/src/executors/utils/defaultViteConfig.js +2 -1
- package/src/index.js +4 -0
- package/src/svgSpriteInline.js +39 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## 1.0.29 (2026-06-18)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated iris-app-build-utilities to 2.0.26
|
|
6
|
+
- Updated iris-app-api to 2.0.25
|
|
7
|
+
- Updated iris-app to 2.0.28
|
|
8
|
+
|
|
9
|
+
## 1.0.28 (2026-06-17)
|
|
10
|
+
|
|
11
|
+
This was a version bump only for iris-app-sdk-vite to align it with other projects, there were no code changes.
|
|
12
|
+
|
|
13
|
+
## 1.0.27 (2026-06-17)
|
|
14
|
+
|
|
15
|
+
### 🧱 Updated Dependencies
|
|
16
|
+
|
|
17
|
+
- Updated iris-app-build-utilities to 2.0.25
|
|
18
|
+
- Updated iris-app-api to 2.0.24
|
|
19
|
+
- Updated iris-app to 2.0.27
|
|
20
|
+
|
|
21
|
+
## 1.0.26 (2026-06-17)
|
|
22
|
+
|
|
23
|
+
### 🧱 Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated iris-app-build-utilities to 2.0.24
|
|
26
|
+
- Updated iris-app-api to 2.0.23
|
|
27
|
+
- Updated iris-app to 2.0.26
|
|
28
|
+
|
|
1
29
|
## 1.0.25 (2026-06-16)
|
|
2
30
|
|
|
3
31
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-sdk-vite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"executors": "./executors.json",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"rxjs": "7.8.1",
|
|
12
12
|
"win-ca": "^3.5.1",
|
|
13
|
-
"@trackunit/iris-app-build-utilities": "2.0.
|
|
14
|
-
"@trackunit/iris-app-api": "2.0.
|
|
13
|
+
"@trackunit/iris-app-build-utilities": "2.0.26",
|
|
14
|
+
"@trackunit/iris-app-api": "2.0.25",
|
|
15
15
|
"tslib": "^2.6.2",
|
|
16
16
|
"vite": "7.3.1",
|
|
17
17
|
"@module-federation/vite": "1.11.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@tailwindcss/postcss": "^4.1.18",
|
|
23
23
|
"@vitejs/plugin-react-swc": "^4.2.3",
|
|
24
24
|
"@nx/devkit": "22.7.5",
|
|
25
|
-
"@trackunit/iris-app": "2.0.
|
|
25
|
+
"@trackunit/iris-app": "2.0.28",
|
|
26
26
|
"cross-keychain": "^1.1.0",
|
|
27
27
|
"jwt-decode": "^3.1.2"
|
|
28
28
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDefaultViteConfig = void 0;
|
|
4
|
+
const svgSpriteInline_1 = require("../../svgSpriteInline");
|
|
4
5
|
const getTrackunitIrisAppVitePlugins_1 = require("./getTrackunitIrisAppVitePlugins");
|
|
5
6
|
const VIRTUAL_ENTRY_ID = "virtual:iris-app-entry";
|
|
6
7
|
const RESOLVED_VIRTUAL_ENTRY_ID = `\0${VIRTUAL_ENTRY_ID}`;
|
|
@@ -48,7 +49,7 @@ const getDefaultViteConfig = async (mode, nxRootDir, appDir, _irisAppManifest, c
|
|
|
48
49
|
return {
|
|
49
50
|
root: appDir,
|
|
50
51
|
mode,
|
|
51
|
-
plugins: [...irisAppPlugins, virtualEntryPlugin],
|
|
52
|
+
plugins: [(0, svgSpriteInline_1.svgSpriteInline)(), ...irisAppPlugins, virtualEntryPlugin],
|
|
52
53
|
// Optimize dependency pre-bundling
|
|
53
54
|
optimizeDeps: {
|
|
54
55
|
// Force include common dependencies to speed up dev server startup
|
package/src/index.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.svgSpriteInline = void 0;
|
|
4
|
+
var svgSpriteInline_1 = require("./svgSpriteInline");
|
|
5
|
+
Object.defineProperty(exports, "svgSpriteInline", { enumerable: true, get: function () { return svgSpriteInline_1.svgSpriteInline; } });
|
|
2
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.svgSpriteInline = void 0;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const ICON_SPRITE_FILE_NAME_PATTERN = /^.*\/(icons-sprite-[^/]+)$/;
|
|
6
|
+
/**
|
|
7
|
+
* Inlines icon sprite imports into the document once and exports an empty URL.
|
|
8
|
+
*
|
|
9
|
+
* This turns Icon hrefs from `icons-sprite-*.svg#IconName` into `#IconName`,
|
|
10
|
+
* avoiding repeated browser resolution of external SVG sprite documents.
|
|
11
|
+
*/
|
|
12
|
+
const svgSpriteInline = () => ({
|
|
13
|
+
name: "svg-sprite-inline",
|
|
14
|
+
enforce: "pre",
|
|
15
|
+
load(id) {
|
|
16
|
+
if (!id.includes("icons-sprite-") || !id.endsWith(".svg")) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
const svg = (0, node_fs_1.readFileSync)(id, "utf-8");
|
|
20
|
+
const spriteId = id.replace(/\.svg$/, "").replace(ICON_SPRITE_FILE_NAME_PATTERN, "$1.svg");
|
|
21
|
+
return [
|
|
22
|
+
`const SPRITE_ID = ${JSON.stringify(spriteId)};`,
|
|
23
|
+
`if (typeof document !== "undefined" && !document.getElementById(SPRITE_ID)) {`,
|
|
24
|
+
` const c = document.createElement("div");`,
|
|
25
|
+
` c.id = SPRITE_ID;`,
|
|
26
|
+
` c.setAttribute("aria-hidden", "true");`,
|
|
27
|
+
` c.style.position = "absolute";`,
|
|
28
|
+
` c.style.width = "0";`,
|
|
29
|
+
` c.style.height = "0";`,
|
|
30
|
+
` c.style.overflow = "hidden";`,
|
|
31
|
+
` c.innerHTML = ${JSON.stringify(svg)};`,
|
|
32
|
+
` document.body.prepend(c);`,
|
|
33
|
+
`}`,
|
|
34
|
+
`export default "";`,
|
|
35
|
+
].join("\n");
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
exports.svgSpriteInline = svgSpriteInline;
|
|
39
|
+
//# sourceMappingURL=svgSpriteInline.js.map
|