@typespec/html-program-viewer 0.81.0-dev.3 → 0.82.0-dev.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.10.0",
4
- "commit": "866aecfd375728a8b201304f4145d949302a1e48"
3
+ "version": "1.11.0",
4
+ "commit": "478dfed5a5e1ac566a16e163984a02fba3fc8751"
5
5
  };
6
6
  //#endregion
7
7
  export { manifest_default as default };
@@ -1178,7 +1178,10 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
1178
1178
  },
1179
1179
  "duplicate-property": {
1180
1180
  severity: "error",
1181
- messages: { default: paramMessage`Model already has a property named ${"propName"}` }
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-CSwBU5mz.js")).default;
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-dev.3",
3
+ "version": "0.82.0-dev.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.10.0 || >= 1.11.0-dev.6"
39
+ "@typespec/compiler": "^1.11.0 || >= 1.12.0-dev.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "@fluentui/react-components": "~9.73.3",
43
- "@fluentui/react-icons": "^2.0.321",
44
- "@fluentui/react-list": "^9.6.11",
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,7 @@
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",
57
+ "@typespec/compiler": "^1.11.0 || >= 1.12.0-dev.0",
58
58
  "@vitejs/plugin-react": "~6.0.1",
59
59
  "@vitest/coverage-v8": "^4.1.0",
60
60
  "@vitest/ui": "^4.1.0",