@typespec/html-program-viewer 0.81.0-dev.3 → 0.81.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,7 +1,7 @@
|
|
|
1
1
|
//#region ../compiler/dist/manifest.js
|
|
2
2
|
var manifest_default = {
|
|
3
|
-
"version": "1.
|
|
4
|
-
"commit": "
|
|
3
|
+
"version": "1.11.0",
|
|
4
|
+
"commit": "478dfed5a5e1ac566a16e163984a02fba3fc8751"
|
|
5
5
|
};
|
|
6
6
|
//#endregion
|
|
7
7
|
export { manifest_default as default };
|
package/dist/react/index.js
CHANGED
|
@@ -1178,7 +1178,10 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1178
1178
|
},
|
|
1179
1179
|
"duplicate-property": {
|
|
1180
1180
|
severity: "error",
|
|
1181
|
-
messages: {
|
|
1181
|
+
messages: {
|
|
1182
|
+
default: paramMessage`Model already has a property named ${"propName"}`,
|
|
1183
|
+
withModel: paramMessage`Model ${"modelName"} already has a property named ${"propName"}`
|
|
1184
|
+
}
|
|
1182
1185
|
},
|
|
1183
1186
|
"override-property-mismatch": {
|
|
1184
1187
|
severity: "error",
|
|
@@ -1550,7 +1553,7 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1550
1553
|
default: paramMessage`Union variant "${"name"}" must be a model type.`,
|
|
1551
1554
|
noEnvelopeModel: paramMessage`Union variant "${"name"}" must be a model type when the union has envelope: none.`,
|
|
1552
1555
|
discriminantMismatch: paramMessage`Variant "${"name"}" explicitly defines the discriminator property "${"discriminant"}" but the value "${"propertyValue"}" do not match the variant name "${"variantName"}".`,
|
|
1553
|
-
duplicateDefaultVariant: `Discriminated union only allow a single default variant(Without a variant name).`,
|
|
1556
|
+
duplicateDefaultVariant: paramMessage`Discriminated union ${"unionName"} only allow a single default variant(Without a variant name).`,
|
|
1554
1557
|
noDiscriminant: paramMessage`Variant "${"name"}" type is missing the discriminant property "${"discriminant"}".`,
|
|
1555
1558
|
wrongDiscriminantType: paramMessage`Variant "${"name"}" type's discriminant property "${"discriminant"}" must be a string literal or string enum member.`
|
|
1556
1559
|
}
|
|
@@ -10989,6 +10992,7 @@ function getDiscriminatedUnionForUnion(program, type) {
|
|
|
10989
10992
|
if (defaultVariant) diagnostics.push(createDiagnostic({
|
|
10990
10993
|
code: "invalid-discriminated-union-variant",
|
|
10991
10994
|
messageId: "duplicateDefaultVariant",
|
|
10995
|
+
format: { unionName: type.name ?? "(anonymous)" },
|
|
10992
10996
|
target: variant
|
|
10993
10997
|
}));
|
|
10994
10998
|
else defaultVariant = variant.type;
|
|
@@ -20829,7 +20833,7 @@ globalThis[globalLibraryUrlsLoadedSym];
|
|
|
20829
20833
|
//#region ../compiler/dist/src/manifest.js
|
|
20830
20834
|
var manifest;
|
|
20831
20835
|
try {
|
|
20832
|
-
manifest = (await import("../manifest-
|
|
20836
|
+
manifest = (await import("../manifest-B-rZ_Ion.js")).default;
|
|
20833
20837
|
} catch {
|
|
20834
20838
|
manifest = (await import(["../dist", "manifest.js"].join("/"))).default;
|
|
20835
20839
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/html-program-viewer",
|
|
3
|
-
"version": "0.81.0
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting an html view of the program.",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"!dist/test/**"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@typespec/compiler": "^1.
|
|
39
|
+
"@typespec/compiler": "^1.11.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@fluentui/react-components": "~9.73.3",
|
|
43
|
-
"@fluentui/react-icons": "^2.0.
|
|
44
|
-
"@fluentui/react-list": "^9.6.
|
|
43
|
+
"@fluentui/react-icons": "^2.0.323",
|
|
44
|
+
"@fluentui/react-list": "^9.6.12",
|
|
45
45
|
"react": "~19.2.4",
|
|
46
46
|
"react-dom": "~19.2.4",
|
|
47
47
|
"react-hotkeys-hook": "^5.2.4"
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"@types/node": "~25.5.0",
|
|
55
55
|
"@types/react": "~19.2.14",
|
|
56
56
|
"@types/react-dom": "~19.2.3",
|
|
57
|
-
"@typespec/compiler": "^1.10.0 || >= 1.11.0-dev.6",
|
|
58
57
|
"@vitejs/plugin-react": "~6.0.1",
|
|
59
58
|
"@vitest/coverage-v8": "^4.1.0",
|
|
60
59
|
"@vitest/ui": "^4.1.0",
|
|
@@ -65,7 +64,8 @@
|
|
|
65
64
|
"vite-plugin-checker": "^0.12.0",
|
|
66
65
|
"vite-plugin-dts": "4.5.4",
|
|
67
66
|
"vitest": "^4.1.0",
|
|
68
|
-
"@typespec/react-components": "^0.57.0"
|
|
67
|
+
"@typespec/react-components": "^0.57.0",
|
|
68
|
+
"@typespec/compiler": "^1.11.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"clean": "rimraf ./dist ./temp",
|