@typespec/html-program-viewer 0.61.0-dev.0 → 0.61.0-dev.1
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/emitter.d.ts +0 -1
- package/dist/manifest-DcmzKkMs.js +6 -0
- package/dist/react/common.d.ts +0 -1
- package/dist/react/index.js +21 -7
- package/dist/react/inspect-type/inspect-type.d.ts +0 -1
- package/dist/react/inspect-type/type-data-table.d.ts +0 -1
- package/dist/react/js-inspector/js-value/js-value.d.ts +0 -1
- package/dist/react/js-inspector/object-inspector.d.ts +0 -1
- package/dist/react/js-inspector/object-label.d.ts +0 -1
- package/dist/react/js-inspector/object-name.d.ts +0 -1
- package/dist/react/js-inspector/object-preview.d.ts +0 -1
- package/dist/react/js-inspector/object-root-label.d.ts +0 -1
- package/dist/react/list-type-view/list-type-view.d.ts +0 -1
- package/dist/react/program-context.d.ts +0 -1
- package/dist/react/tree-navigation.d.ts +0 -1
- package/dist/react/type-config.d.ts +0 -1
- package/dist/react/type-graph.d.ts +0 -1
- package/dist/react/type-view/type-view.d.ts +0 -1
- package/dist/react/use-tree-navigation.d.ts +0 -1
- package/dist/testing/index.d.ts +0 -1
- package/dist/utils.d.ts +0 -1
- package/package.json +19 -19
- package/dist/manifest-CGbgVYyS.js +0 -6
package/dist/emitter.d.ts
CHANGED
package/dist/react/common.d.ts
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -25445,6 +25445,7 @@ function applyReviver(reviver, obj, key, val) {
|
|
|
25445
25445
|
for (let i = 0, len = val.length; i < len; ++i) {
|
|
25446
25446
|
const v0 = val[i];
|
|
25447
25447
|
const v1 = applyReviver(reviver, val, String(i), v0);
|
|
25448
|
+
// eslint-disable-next-line @typescript-eslint/no-array-delete
|
|
25448
25449
|
if (v1 === undefined)
|
|
25449
25450
|
delete val[i];
|
|
25450
25451
|
else if (v1 !== v0)
|
|
@@ -25878,7 +25879,6 @@ class Collection extends NodeBase {
|
|
|
25878
25879
|
}
|
|
25879
25880
|
}
|
|
25880
25881
|
}
|
|
25881
|
-
Collection.maxFlowStringSingleLineLength = 60;
|
|
25882
25882
|
|
|
25883
25883
|
/**
|
|
25884
25884
|
* Stringifies a comment.
|
|
@@ -25910,6 +25910,8 @@ const FOLD_QUOTED = 'quoted';
|
|
|
25910
25910
|
function foldFlowLines(text, indent, mode = 'flow', { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) {
|
|
25911
25911
|
if (!lineWidth || lineWidth < 0)
|
|
25912
25912
|
return text;
|
|
25913
|
+
if (lineWidth < minContentWidth)
|
|
25914
|
+
minContentWidth = 0;
|
|
25913
25915
|
const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length);
|
|
25914
25916
|
if (text.length <= endStep)
|
|
25915
25917
|
return text;
|
|
@@ -26630,8 +26632,6 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
|
26630
26632
|
|
|
26631
26633
|
function warn(logLevel, warning) {
|
|
26632
26634
|
if (logLevel === 'debug' || logLevel === 'warn') {
|
|
26633
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/7478
|
|
26634
|
-
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
26635
26635
|
if (typeof process !== 'undefined' && process.emitWarning)
|
|
26636
26636
|
process.emitWarning(warning);
|
|
26637
26637
|
else
|
|
@@ -27604,7 +27604,7 @@ let manifest;
|
|
|
27604
27604
|
try {
|
|
27605
27605
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
27606
27606
|
// @ts-ignore
|
|
27607
|
-
manifest = (await import('../manifest-
|
|
27607
|
+
manifest = (await import('../manifest-DcmzKkMs.js')).default;
|
|
27608
27608
|
}
|
|
27609
27609
|
catch {
|
|
27610
27610
|
const name = "../dist/manifest.js";
|
|
@@ -29242,7 +29242,7 @@ function parse$1(original) {
|
|
|
29242
29242
|
let sign = 1;
|
|
29243
29243
|
let n;
|
|
29244
29244
|
let exp;
|
|
29245
|
-
let decimal;
|
|
29245
|
+
let decimal = undefined;
|
|
29246
29246
|
if (stringValue[0] === "-") {
|
|
29247
29247
|
start = 1;
|
|
29248
29248
|
sign = -1;
|
|
@@ -29278,6 +29278,7 @@ function parse$1(original) {
|
|
|
29278
29278
|
}
|
|
29279
29279
|
exp += Number(stringValue.slice(i + 1));
|
|
29280
29280
|
stringValue = stringValue.slice(start, i);
|
|
29281
|
+
decimal = Math.max(stringValue.length - exp, 0);
|
|
29281
29282
|
}
|
|
29282
29283
|
else if (exp === undefined) {
|
|
29283
29284
|
// Integer.
|
|
@@ -29291,11 +29292,24 @@ function parse$1(original) {
|
|
|
29291
29292
|
while (stringValue[end - 1] === "0" && end > adjustedPointIndex) {
|
|
29292
29293
|
end--;
|
|
29293
29294
|
}
|
|
29295
|
+
// Only if there is 0 before the decimal point, keeps checking how many 0 there is after it and update the exponent accordingly.
|
|
29296
|
+
if (start === adjustedPointIndex + 1) {
|
|
29297
|
+
let cur = adjustedPointIndex;
|
|
29298
|
+
while (stringValue[cur] === "0" && cur < end) {
|
|
29299
|
+
cur++;
|
|
29300
|
+
exp--;
|
|
29301
|
+
}
|
|
29302
|
+
}
|
|
29294
29303
|
try {
|
|
29295
29304
|
stringValue = stringValue.slice(0, end);
|
|
29296
29305
|
stringValue = stringValue + "0".repeat(Math.max(exp - stringValue.length, 0)); // add remaining zeros for cases like 3e30
|
|
29297
29306
|
n = BigInt(stringValue);
|
|
29298
|
-
|
|
29307
|
+
if (n === 0n) {
|
|
29308
|
+
decimal = 0;
|
|
29309
|
+
}
|
|
29310
|
+
else if (decimal === undefined) {
|
|
29311
|
+
decimal = Math.max(stringValue.length - Math.max(exp, 0), 0);
|
|
29312
|
+
}
|
|
29299
29313
|
}
|
|
29300
29314
|
catch {
|
|
29301
29315
|
throw new InvalidNumericError(`Invalid numeric value: ${original}`);
|
|
@@ -29308,7 +29322,7 @@ function stringify(value) {
|
|
|
29308
29322
|
return "0";
|
|
29309
29323
|
const n = value.n.toString();
|
|
29310
29324
|
const sign = value.s === -1 ? "-" : "";
|
|
29311
|
-
const int = value.e
|
|
29325
|
+
const int = value.e <= 0 ? "0" : n.slice(0, value.e);
|
|
29312
29326
|
const decimal = value.e < n.length ? "." + n.slice(value.e).padStart(value.d, "0") : "";
|
|
29313
29327
|
return sign + int + decimal;
|
|
29314
29328
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Type } from '@typespec/compiler';
|
|
2
|
-
|
|
3
2
|
export type EntityPropertyConfig = "parent" | "nested" | "ref" | "value" | "skip";
|
|
4
3
|
export declare const TypeConfig: TypeGraphConfig;
|
|
5
4
|
type PropsToDefine<T extends Type> = Exclude<keyof T, HiddenPropsType | keyof typeof CommonPropsConfig>;
|
package/dist/testing/index.d.ts
CHANGED
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/html-program-viewer",
|
|
3
|
-
"version": "0.61.0-dev.
|
|
3
|
+
"version": "0.61.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting an html view of the program.",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -37,35 +37,35 @@
|
|
|
37
37
|
"!dist/test/**"
|
|
38
38
|
],
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@typespec/compiler": "~0.60.
|
|
40
|
+
"@typespec/compiler": "~0.60.1 || >=0.61.0-dev <0.61.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@fluentui/react-components": "~9.54.
|
|
44
|
-
"@fluentui/react-icons": "^2.0.
|
|
45
|
-
"@fluentui/react-list-preview": "^0.3.
|
|
43
|
+
"@fluentui/react-components": "~9.54.15",
|
|
44
|
+
"@fluentui/react-icons": "^2.0.258",
|
|
45
|
+
"@fluentui/react-list-preview": "^0.3.6",
|
|
46
46
|
"react": "~18.3.1",
|
|
47
47
|
"react-dom": "~18.3.1",
|
|
48
|
-
"react-hotkeys-hook": "^4.5.
|
|
48
|
+
"react-hotkeys-hook": "^4.5.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@babel/core": "^7.
|
|
51
|
+
"@babel/core": "^7.25.2",
|
|
52
52
|
"@testing-library/dom": "^10.4.0",
|
|
53
|
-
"@testing-library/jest-dom": "^6.
|
|
54
|
-
"@testing-library/react": "^16.0.
|
|
55
|
-
"@types/node": "~
|
|
56
|
-
"@types/react": "~18.3.
|
|
53
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
54
|
+
"@testing-library/react": "^16.0.1",
|
|
55
|
+
"@types/node": "~22.5.4",
|
|
56
|
+
"@types/react": "~18.3.5",
|
|
57
57
|
"@types/react-dom": "~18.3.0",
|
|
58
|
-
"@typespec/compiler": "~0.60.
|
|
58
|
+
"@typespec/compiler": "~0.60.1 || >=0.61.0-dev <0.61.0",
|
|
59
59
|
"@vitejs/plugin-react": "~4.3.1",
|
|
60
|
-
"@vitest/coverage-v8": "^2.0
|
|
61
|
-
"@vitest/ui": "^2.0
|
|
60
|
+
"@vitest/coverage-v8": "^2.1.0",
|
|
61
|
+
"@vitest/ui": "^2.1.0",
|
|
62
62
|
"c8": "^10.1.2",
|
|
63
63
|
"rimraf": "~6.0.1",
|
|
64
|
-
"typescript": "~5.
|
|
65
|
-
"vite": "^5.
|
|
66
|
-
"vite-plugin-checker": "^0.
|
|
67
|
-
"vite-plugin-dts": "4.
|
|
68
|
-
"vitest": "^2.0
|
|
64
|
+
"typescript": "~5.6.2",
|
|
65
|
+
"vite": "^5.4.4",
|
|
66
|
+
"vite-plugin-checker": "^0.8.0",
|
|
67
|
+
"vite-plugin-dts": "4.2.1",
|
|
68
|
+
"vitest": "^2.1.0",
|
|
69
69
|
"@typespec/react-components": "~0.57.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|