@nubisco/ui 5.27.1 → 5.27.2
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/plugins/vite/glyphs.d.ts +2 -1
- package/dist/plugins/vite/glyphs.d.ts.map +1 -1
- package/dist/plugins/vite/glyphs.js +7 -2
- package/dist/plugins/vite/imports.d.ts +2 -1
- package/dist/plugins/vite/imports.d.ts.map +1 -1
- package/dist/plugins/vite/imports.js +7 -2
- package/dist/plugins/vite/index.js +1 -1
- package/dist/plugins/vite/vendor.d.ts +3 -0
- package/dist/plugins/vite/vendor.js +16340 -0
- package/package.json +4 -6
- package/src/plugins/vite/glyphs.ts +8 -2
- package/src/plugins/vite/imports.ts +8 -2
- package/src/plugins/vite/index.ts +1 -1
- package/src/plugins/vite/vendor.ts +16 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Rollup } from 'vite';
|
|
1
2
|
export type TGlyphCatalogMode = 'auto' | 'off';
|
|
2
3
|
export interface IGlyphOptions {
|
|
3
4
|
/**
|
|
@@ -36,6 +37,6 @@ export declare function nubiscoGlyphs(options?: IGlyphOptions): {
|
|
|
36
37
|
buildStart(): Promise<void>;
|
|
37
38
|
transform(code: string, id: string): Promise<{
|
|
38
39
|
code: string;
|
|
39
|
-
map:
|
|
40
|
+
map: Rollup.SourceMapInput;
|
|
40
41
|
} | undefined>;
|
|
41
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glyphs.d.ts","sourceRoot":"","sources":["../../../src/plugins/vite/glyphs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"glyphs.d.ts","sourceRoot":"","sources":["../../../src/plugins/vite/glyphs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAuClC,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAA;AAE9C,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAoLD,wBAAgB,aAAa,CAAC,OAAO,GAAE,aAAkB;;;;oBAyB/B,MAAM,MAAM,MAAM;;aA8L9B,MAAM,CAAC,cAAc;;EAIlC"}
|
|
@@ -2,7 +2,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
|
-
import MagicString from '
|
|
5
|
+
import { MagicString } from './vendor.js';
|
|
6
6
|
import { parse, babelParse } from 'vue/compiler-sfc';
|
|
7
7
|
/**
|
|
8
8
|
* Resolves icon and flag artwork at compile time.
|
|
@@ -352,7 +352,12 @@ export function nubiscoGlyphs(options = {}) {
|
|
|
352
352
|
}
|
|
353
353
|
return {
|
|
354
354
|
code: magic.toString(),
|
|
355
|
-
|
|
355
|
+
// Typed as Vite's own source map input, so the published declarations
|
|
356
|
+
// do not name magic-string, which is bundled and not installed.
|
|
357
|
+
map: magic.generateMap({
|
|
358
|
+
hires: true,
|
|
359
|
+
source: file,
|
|
360
|
+
}),
|
|
356
361
|
};
|
|
357
362
|
},
|
|
358
363
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Rollup } from 'vite';
|
|
1
2
|
/**
|
|
2
3
|
* Makes a hand-written component import behave like an auto-imported one.
|
|
3
4
|
*
|
|
@@ -45,7 +46,7 @@ export declare function nubiscoImports(options: INubiscoImportOptions): {
|
|
|
45
46
|
enforce: "pre";
|
|
46
47
|
transform(code: string, id: string): {
|
|
47
48
|
code: string;
|
|
48
|
-
map:
|
|
49
|
+
map: Rollup.SourceMapInput;
|
|
49
50
|
} | undefined;
|
|
50
51
|
};
|
|
51
52
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../../src/plugins/vite/imports.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../../src/plugins/vite/imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAIlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,UAAU,qBAAqB;IAC7B,6DAA6D;IAC7D,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,oDAAoD;IACpD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACvC,wEAAwE;IACxE,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,+DAA+D;IAC/D,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC;AAyBD,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB;;;oBAQzC,MAAM,MAAM,MAAM;;aAkHxB,MAAM,CAAC,cAAc;;EAIlC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import MagicString from '
|
|
1
|
+
import { MagicString } from './vendor.js';
|
|
2
2
|
import { parse, babelParse } from 'vue/compiler-sfc';
|
|
3
3
|
/** The script of a `.vue` file, or the whole module for a plain script. */
|
|
4
4
|
function scriptBlocks(code, file) {
|
|
@@ -118,7 +118,12 @@ export function nubiscoImports(options) {
|
|
|
118
118
|
return;
|
|
119
119
|
return {
|
|
120
120
|
code: magic.toString(),
|
|
121
|
-
|
|
121
|
+
// Typed as Vite's own source map input, so the published declarations
|
|
122
|
+
// do not name magic-string, which is bundled and not installed.
|
|
123
|
+
map: magic.generateMap({
|
|
124
|
+
hires: true,
|
|
125
|
+
source: file,
|
|
126
|
+
}),
|
|
122
127
|
};
|
|
123
128
|
},
|
|
124
129
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import Components from '
|
|
4
|
+
import { Components } from './vendor.js';
|
|
5
5
|
import { COMPONENT_MANIFEST } from '../../components/manifest.js';
|
|
6
6
|
import { nubiscoGlyphs } from './glyphs.js';
|
|
7
7
|
import { nubiscoImports } from './imports.js';
|