@nubisco/ui 1.56.0 → 1.57.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.
- package/dist/components/BlueprintBackground.vue.d.ts +1 -1
- package/dist/components/CheckboxGroup.vue.d.ts +1 -1
- package/dist/components/ColorStrip.vue.d.ts +2 -2
- package/dist/components/DatePicker.vue.d.ts +2 -2
- package/dist/components/Field.vue.d.ts +1 -1
- package/dist/components/Grid.vue.d.ts +8 -8
- package/dist/components/Message.d.ts +1 -0
- package/dist/components/Message.vue.d.ts.map +1 -1
- package/dist/components/NumberInput.vue.d.ts +1 -1
- package/dist/components/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar.vue.d.ts +1 -1
- package/dist/components/Radio.vue.d.ts +1 -1
- package/dist/components/Select.vue.d.ts +1 -1
- package/dist/components/Switch.vue.d.ts +1 -1
- package/dist/components/TextInput.vue.d.ts +2 -2
- package/dist/components/TextInput.vue.d.ts.map +1 -1
- package/dist/global.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/globalTypes.d.ts.map +1 -1
- package/dist/plugins/globalTypes.js +6 -1
- package/dist/ui.css +1 -1
- package/package.json +3 -2
- package/src/plugins/globalTypes.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nubisco/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0",
|
|
4
4
|
"description": "Vue 3 UI component library",
|
|
5
5
|
"packageManager": "pnpm@11.0.8",
|
|
6
6
|
"repository": {
|
|
@@ -81,9 +81,10 @@
|
|
|
81
81
|
"build:lib": "vite build",
|
|
82
82
|
"build:types": "vue-tsc --noEmit false --declaration --emitDeclarationOnly --outDir dist && node scripts/copy-type-modules.mjs && node scripts/rewrite-dist-aliases.mjs dist",
|
|
83
83
|
"build:plugins": "tsc --project tsconfig.plugins.json",
|
|
84
|
-
"verify:types": "pnpm run verify:dist-types && pnpm run verify:consumer-types",
|
|
84
|
+
"verify:types": "pnpm run verify:dist-types && pnpm run verify:consumer-types && pnpm run verify:consumer-globals",
|
|
85
85
|
"verify:dist-types": "node scripts/verify-dist-types.mjs dist",
|
|
86
86
|
"verify:consumer-types": "node scripts/verify-consumer-types.mjs",
|
|
87
|
+
"verify:consumer-globals": "node scripts/verify-consumer-globals.mjs",
|
|
87
88
|
"dev": "vite build --watch",
|
|
88
89
|
"prepublishOnly": "pnpm run build",
|
|
89
90
|
"test": "vitest run",
|
|
@@ -49,12 +49,17 @@ export function globalTypes(basePath: string): Plugin {
|
|
|
49
49
|
.map((f) => ` Nb${f.name}: typeof ${f.name}`)
|
|
50
50
|
.join('\n')
|
|
51
51
|
|
|
52
|
+
// The interface MUST be named `GlobalComponents`: that is the exact name
|
|
53
|
+
// Vue's template type-checker reads when resolving a tag that was never
|
|
54
|
+
// imported (i.e. everything registered by our plugin). Any other name is
|
|
55
|
+
// a valid module augmentation that nothing ever looks at, so consumers
|
|
56
|
+
// keep getting `any` for every <Nb*> tag and no prop is ever checked.
|
|
52
57
|
const content = `// AUTO-GENERATED: do not edit by hand
|
|
53
58
|
// Re-run the build to update this file when components change
|
|
54
59
|
${imports}
|
|
55
60
|
|
|
56
61
|
declare module 'vue' {
|
|
57
|
-
interface
|
|
62
|
+
interface GlobalComponents {
|
|
58
63
|
${entries}
|
|
59
64
|
}
|
|
60
65
|
}
|