@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalTypes.d.ts","sourceRoot":"","sources":["../../src/plugins/globalTypes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAUlC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"globalTypes.d.ts","sourceRoot":"","sources":["../../src/plugins/globalTypes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAUlC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAqFpD"}
|
|
@@ -36,12 +36,17 @@ export function globalTypes(basePath) {
|
|
|
36
36
|
const entries = files
|
|
37
37
|
.map((f) => ` Nb${f.name}: typeof ${f.name}`)
|
|
38
38
|
.join('\n');
|
|
39
|
+
// The interface MUST be named `GlobalComponents`: that is the exact name
|
|
40
|
+
// Vue's template type-checker reads when resolving a tag that was never
|
|
41
|
+
// imported (i.e. everything registered by our plugin). Any other name is
|
|
42
|
+
// a valid module augmentation that nothing ever looks at, so consumers
|
|
43
|
+
// keep getting `any` for every <Nb*> tag and no prop is ever checked.
|
|
39
44
|
const content = `// AUTO-GENERATED: do not edit by hand
|
|
40
45
|
// Re-run the build to update this file when components change
|
|
41
46
|
${imports}
|
|
42
47
|
|
|
43
48
|
declare module 'vue' {
|
|
44
|
-
interface
|
|
49
|
+
interface GlobalComponents {
|
|
45
50
|
${entries}
|
|
46
51
|
}
|
|
47
52
|
}
|