@typespec/html-program-viewer 0.73.0-dev.2 → 0.73.0-dev.4
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/index.js +2 -1
- package/dist/{manifest-BP_f_qo_.js → manifest-Bgm8G_Ff.js} +1 -1
- package/dist/react/index.js +41 -139
- package/dist/react/type-config.d.ts +1 -1
- package/dist/react/type-config.d.ts.map +1 -1
- package/dist/react/type-view/type-view.d.ts +5 -0
- package/dist/react/type-view/type-view.d.ts.map +1 -1
- package/dist/style.css +16 -6
- package/package.json +1 -1
package/dist/emitter/index.js
CHANGED
|
@@ -5441,7 +5441,8 @@ const HiddenProps = [
|
|
|
5441
5441
|
"templateMapper",
|
|
5442
5442
|
"instantiationParameters",
|
|
5443
5443
|
"decorators",
|
|
5444
|
-
"isFinished"
|
|
5444
|
+
"isFinished",
|
|
5445
|
+
"creating"
|
|
5445
5446
|
];
|
|
5446
5447
|
const HiddenPropsConfig = Object.fromEntries(HiddenProps.map((prop) => [prop, "skip"]));
|
|
5447
5448
|
const TypeConfig = buildConfig({
|
package/dist/react/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import require$$0, { useRef, useState, useMemo, useCallback, useEffect, useId, createContext, useContext } from 'react';
|
|
2
|
-
import { mergeClasses, Breadcrumb, BreadcrumbItem, BreadcrumbButton, BreadcrumbDivider, Combobox, Option, Caption1, Card, CardHeader, Text, Divider } from '@fluentui/react-components';
|
|
3
|
-
import { ChevronDownRegular, ChevronRightRegular, AppsListRegular, DatabaseRegular } from '@fluentui/react-icons';
|
|
2
|
+
import { mergeClasses, Breadcrumb, BreadcrumbItem, BreadcrumbButton, BreadcrumbDivider, Combobox, Option, Caption1, Card, CardHeader, Text, Tooltip, Button, tokens, Divider } from '@fluentui/react-components';
|
|
3
|
+
import { ChevronDownRegular, ChevronRightRegular, AppsListRegular, DatabaseRegular, BookmarkFilled, BookmarkRegular } from '@fluentui/react-icons';
|
|
4
4
|
import { useHotkeys } from 'react-hotkeys-hook';
|
|
5
5
|
import { List, ListItem } from '@fluentui/react-list';
|
|
6
6
|
|
|
@@ -28330,20 +28330,6 @@ function compilerAssert(condition, message, target) {
|
|
|
28330
28330
|
if (condition) {
|
|
28331
28331
|
return;
|
|
28332
28332
|
}
|
|
28333
|
-
if (target) {
|
|
28334
|
-
let location;
|
|
28335
|
-
try {
|
|
28336
|
-
location = getSourceLocation(target);
|
|
28337
|
-
}
|
|
28338
|
-
catch (err) { }
|
|
28339
|
-
if (location) {
|
|
28340
|
-
const pos = location.file.getLineAndCharacterOfPosition(location.pos);
|
|
28341
|
-
const file = location.file.path;
|
|
28342
|
-
const line = pos.line + 1;
|
|
28343
|
-
const col = pos.character + 1;
|
|
28344
|
-
message += `\nOccurred while compiling code in ${file} near line ${line}, column ${col}`;
|
|
28345
|
-
}
|
|
28346
|
-
}
|
|
28347
28333
|
throw new Error(message);
|
|
28348
28334
|
}
|
|
28349
28335
|
/**
|
|
@@ -29073,9 +29059,6 @@ function createDiagnosable(fn) {
|
|
|
29073
29059
|
return wrapper;
|
|
29074
29060
|
}
|
|
29075
29061
|
|
|
29076
|
-
function isErrorType(type) {
|
|
29077
|
-
return "kind" in type && type.kind === "Intrinsic" && type.name === "ErrorType";
|
|
29078
|
-
}
|
|
29079
29062
|
function isNeverType(type) {
|
|
29080
29063
|
return "kind" in type && type.kind === "Intrinsic" && type.name === "never";
|
|
29081
29064
|
}
|
|
@@ -29312,32 +29295,6 @@ function validateDecoratorUniqueOnNode(context, type, decorator) {
|
|
|
29312
29295
|
return true;
|
|
29313
29296
|
}
|
|
29314
29297
|
|
|
29315
|
-
const deprecatedKey = createStateSymbol("deprecated");
|
|
29316
|
-
/**
|
|
29317
|
-
* Returns complete deprecation details for the given type or node
|
|
29318
|
-
* @param program Program
|
|
29319
|
-
* @param typeOrNode A Type or Node to check for deprecation
|
|
29320
|
-
*/
|
|
29321
|
-
function getDeprecationDetails(program, typeOrNode) {
|
|
29322
|
-
function isType(maybeType) {
|
|
29323
|
-
return typeof maybeType.kind === "string";
|
|
29324
|
-
}
|
|
29325
|
-
// If we're looking at a type, pull the deprecation details from the state map
|
|
29326
|
-
if (isType(typeOrNode)) {
|
|
29327
|
-
return program.stateMap(deprecatedKey).get(typeOrNode);
|
|
29328
|
-
}
|
|
29329
|
-
else {
|
|
29330
|
-
// Look at the node for a deprecation directive
|
|
29331
|
-
const deprecatedDirective = (typeOrNode.directives ?? []).find((directive) => directive.target.sv === "deprecated");
|
|
29332
|
-
if (deprecatedDirective?.arguments[0].kind === SyntaxKind.StringLiteral) {
|
|
29333
|
-
return {
|
|
29334
|
-
message: deprecatedDirective.arguments[0].value,
|
|
29335
|
-
};
|
|
29336
|
-
}
|
|
29337
|
-
}
|
|
29338
|
-
return undefined;
|
|
29339
|
-
}
|
|
29340
|
-
|
|
29341
29298
|
/**
|
|
29342
29299
|
* Helper class to track duplicate instance
|
|
29343
29300
|
*/
|
|
@@ -30917,7 +30874,7 @@ function getModelName(model, options) {
|
|
|
30917
30874
|
}
|
|
30918
30875
|
}
|
|
30919
30876
|
function getUnionName(type, options) {
|
|
30920
|
-
const nsPrefix = getNamespacePrefix(type.namespace, options);
|
|
30877
|
+
const nsPrefix = type.expression ? "" : getNamespacePrefix(type.namespace, options);
|
|
30921
30878
|
const typeName = type.name
|
|
30922
30879
|
? getIdentifierName(type.name, options)
|
|
30923
30880
|
: [...type.variants.values()].map((x) => getTypeName(x.type, options)).join(" | ");
|
|
@@ -32769,7 +32726,7 @@ function filterModelProperties(program, model, filter) {
|
|
|
32769
32726
|
typekit.type.finishType(newProperty);
|
|
32770
32727
|
}
|
|
32771
32728
|
}
|
|
32772
|
-
return
|
|
32729
|
+
return program.checker.finishType(newModel);
|
|
32773
32730
|
}
|
|
32774
32731
|
/**
|
|
32775
32732
|
* Enumerates the properties declared by model or inherited from its base.
|
|
@@ -32801,88 +32758,6 @@ function countPropertiesInherited(model, filter) {
|
|
|
32801
32758
|
}
|
|
32802
32759
|
return count;
|
|
32803
32760
|
}
|
|
32804
|
-
function finishTypeForProgram(program, typeDef) {
|
|
32805
|
-
return finishTypeForProgramAndChecker(program, program.checker.typePrototype, typeDef);
|
|
32806
|
-
}
|
|
32807
|
-
function finishTypeForProgramAndChecker(program, typePrototype, typeDef) {
|
|
32808
|
-
if ("decorators" in typeDef) {
|
|
32809
|
-
for (const decApp of typeDef.decorators) {
|
|
32810
|
-
applyDecoratorToType(program, decApp, typeDef);
|
|
32811
|
-
}
|
|
32812
|
-
}
|
|
32813
|
-
Object.setPrototypeOf(typeDef, typePrototype);
|
|
32814
|
-
typeDef.isFinished = true;
|
|
32815
|
-
return typeDef;
|
|
32816
|
-
}
|
|
32817
|
-
function reportDeprecation(program, target, message, reportFunc) {
|
|
32818
|
-
if (program.compilerOptions.ignoreDeprecated !== true) {
|
|
32819
|
-
reportFunc(createDiagnostic({
|
|
32820
|
-
code: "deprecated",
|
|
32821
|
-
format: {
|
|
32822
|
-
message,
|
|
32823
|
-
},
|
|
32824
|
-
target,
|
|
32825
|
-
}));
|
|
32826
|
-
}
|
|
32827
|
-
}
|
|
32828
|
-
function applyDecoratorToType(program, decApp, target) {
|
|
32829
|
-
compilerAssert("decorators" in target, "Cannot apply decorator to non-decoratable type", target);
|
|
32830
|
-
for (const arg of decApp.args) {
|
|
32831
|
-
if (isType(arg.value) && isErrorType(arg.value)) {
|
|
32832
|
-
// If one of the decorator argument is an error don't run it.
|
|
32833
|
-
return;
|
|
32834
|
-
}
|
|
32835
|
-
}
|
|
32836
|
-
// Is the decorator definition deprecated?
|
|
32837
|
-
if (decApp.definition) {
|
|
32838
|
-
const deprecation = getDeprecationDetails(program, decApp.definition);
|
|
32839
|
-
if (deprecation !== undefined) {
|
|
32840
|
-
reportDeprecation(program, decApp.node ?? target, deprecation.message, program.reportDiagnostic);
|
|
32841
|
-
}
|
|
32842
|
-
}
|
|
32843
|
-
// peel `fn` off to avoid setting `this`.
|
|
32844
|
-
try {
|
|
32845
|
-
const args = decApp.args.map((x) => x.jsValue);
|
|
32846
|
-
const fn = decApp.decorator;
|
|
32847
|
-
const context = createDecoratorContext(program, decApp);
|
|
32848
|
-
fn(context, target, ...args);
|
|
32849
|
-
}
|
|
32850
|
-
catch (error) {
|
|
32851
|
-
// do not fail the language server for exceptions in decorators
|
|
32852
|
-
if (program.compilerOptions.designTimeBuild) {
|
|
32853
|
-
program.reportDiagnostic(createDiagnostic({
|
|
32854
|
-
code: "decorator-fail",
|
|
32855
|
-
format: { decoratorName: decApp.decorator.name, error: error.stack },
|
|
32856
|
-
target: decApp.node ?? target,
|
|
32857
|
-
}));
|
|
32858
|
-
}
|
|
32859
|
-
else {
|
|
32860
|
-
throw error;
|
|
32861
|
-
}
|
|
32862
|
-
}
|
|
32863
|
-
}
|
|
32864
|
-
function createDecoratorContext(program, decApp) {
|
|
32865
|
-
function createPassThruContext(program, decApp) {
|
|
32866
|
-
return {
|
|
32867
|
-
program,
|
|
32868
|
-
decoratorTarget: decApp.node,
|
|
32869
|
-
getArgumentTarget: () => decApp.node,
|
|
32870
|
-
call: (decorator, target, ...args) => {
|
|
32871
|
-
return decorator(createPassThruContext(program, decApp), target, ...args);
|
|
32872
|
-
},
|
|
32873
|
-
};
|
|
32874
|
-
}
|
|
32875
|
-
return {
|
|
32876
|
-
program,
|
|
32877
|
-
decoratorTarget: decApp.node,
|
|
32878
|
-
getArgumentTarget: (index) => {
|
|
32879
|
-
return decApp.args[index]?.node;
|
|
32880
|
-
},
|
|
32881
|
-
call: (decorator, target, ...args) => {
|
|
32882
|
-
return decorator(createPassThruContext(program, decApp), target, ...args);
|
|
32883
|
-
},
|
|
32884
|
-
};
|
|
32885
|
-
}
|
|
32886
32761
|
var ResolutionKind;
|
|
32887
32762
|
(function (ResolutionKind) {
|
|
32888
32763
|
ResolutionKind[ResolutionKind["Value"] = 0] = "Value";
|
|
@@ -34312,7 +34187,7 @@ let manifest;
|
|
|
34312
34187
|
try {
|
|
34313
34188
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34314
34189
|
// @ts-ignore
|
|
34315
|
-
manifest = (await import('../manifest-
|
|
34190
|
+
manifest = (await import('../manifest-Bgm8G_Ff.js')).default;
|
|
34316
34191
|
}
|
|
34317
34192
|
catch {
|
|
34318
34193
|
const name = "../dist/manifest.js";
|
|
@@ -45460,7 +45335,8 @@ const HiddenProps = [
|
|
|
45460
45335
|
"templateMapper",
|
|
45461
45336
|
"instantiationParameters",
|
|
45462
45337
|
"decorators",
|
|
45463
|
-
"isFinished"
|
|
45338
|
+
"isFinished",
|
|
45339
|
+
"creating"
|
|
45464
45340
|
];
|
|
45465
45341
|
const HiddenPropsConfig = Object.fromEntries(HiddenProps.map((prop) => [prop, "skip"]));
|
|
45466
45342
|
const TypeConfig = buildConfig({
|
|
@@ -46441,20 +46317,34 @@ function isTypeSpecType(data) {
|
|
|
46441
46317
|
return typeof data === "object" && data !== null && "entityKind" in data && data.entityKind === "Type" && "kind" in data;
|
|
46442
46318
|
}
|
|
46443
46319
|
|
|
46444
|
-
const main = "
|
|
46445
|
-
const header = "
|
|
46446
|
-
const doc = "
|
|
46320
|
+
const main = "_main_12y74_7";
|
|
46321
|
+
const header = "_header_12y74_11";
|
|
46322
|
+
const doc = "_doc_12y74_35";
|
|
46447
46323
|
const style = {
|
|
46448
|
-
"type-view": "_type-
|
|
46324
|
+
"type-view": "_type-view_12y74_1",
|
|
46449
46325
|
main: main,
|
|
46450
|
-
"header-section": "_header-
|
|
46451
|
-
"inspect-section": "_inspect-
|
|
46326
|
+
"header-section": "_header-section_12y74_11",
|
|
46327
|
+
"inspect-section": "_inspect-section_12y74_15",
|
|
46452
46328
|
header: header,
|
|
46329
|
+
"header-left": "_header-left_12y74_25",
|
|
46330
|
+
"header-spacer": "_header-spacer_12y74_31",
|
|
46453
46331
|
doc: doc
|
|
46454
46332
|
};
|
|
46455
46333
|
|
|
46456
46334
|
const TypeNodeView = ({ node }) => {
|
|
46457
46335
|
const program = useProgram();
|
|
46336
|
+
const [isVarSet, setIsVarSet] = useState(() => Boolean(window.vars?.[node.name]));
|
|
46337
|
+
const handleSaveType = () => setIsVarSet((x) => !x);
|
|
46338
|
+
useEffect(() => {
|
|
46339
|
+
if (isVarSet) {
|
|
46340
|
+
if (!window.vars) window.vars = {};
|
|
46341
|
+
window.vars[node.name] = node.type;
|
|
46342
|
+
} else {
|
|
46343
|
+
if (window.vars) {
|
|
46344
|
+
delete window.vars[node.name];
|
|
46345
|
+
}
|
|
46346
|
+
}
|
|
46347
|
+
}, [node.name, node.type, isVarSet]);
|
|
46458
46348
|
return /* @__PURE__ */ jsxRuntimeExports$1.jsxs("div", { className: style["type-view"], children: [
|
|
46459
46349
|
/* @__PURE__ */ jsxRuntimeExports$1.jsxs(Card, { className: style["main"], children: [
|
|
46460
46350
|
/* @__PURE__ */ jsxRuntimeExports$1.jsx(
|
|
@@ -46462,8 +46352,20 @@ const TypeNodeView = ({ node }) => {
|
|
|
46462
46352
|
{
|
|
46463
46353
|
className: style["header-section"],
|
|
46464
46354
|
header: /* @__PURE__ */ jsxRuntimeExports$1.jsxs("div", { className: style["header"], children: [
|
|
46465
|
-
/* @__PURE__ */ jsxRuntimeExports$1.
|
|
46466
|
-
|
|
46355
|
+
/* @__PURE__ */ jsxRuntimeExports$1.jsxs("div", { className: style["header-left"], children: [
|
|
46356
|
+
/* @__PURE__ */ jsxRuntimeExports$1.jsx(TypeKindTag, { type: node.type }),
|
|
46357
|
+
/* @__PURE__ */ jsxRuntimeExports$1.jsx(Text, { weight: "semibold", size: 500, children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(Mono, { children: node.name }) })
|
|
46358
|
+
] }),
|
|
46359
|
+
/* @__PURE__ */ jsxRuntimeExports$1.jsx("div", { className: style["header-spacer"] }),
|
|
46360
|
+
/* @__PURE__ */ jsxRuntimeExports$1.jsx(Tooltip, { content: `Save as vars.${node.name}`, relationship: "label", children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(
|
|
46361
|
+
Button,
|
|
46362
|
+
{
|
|
46363
|
+
icon: isVarSet ? /* @__PURE__ */ jsxRuntimeExports$1.jsx(BookmarkFilled, { style: { color: tokens.colorBrandBackground } }) : /* @__PURE__ */ jsxRuntimeExports$1.jsx(BookmarkRegular, {}),
|
|
46364
|
+
onClick: handleSaveType,
|
|
46365
|
+
size: "small",
|
|
46366
|
+
appearance: "subtle"
|
|
46367
|
+
}
|
|
46368
|
+
) })
|
|
46467
46369
|
] }),
|
|
46468
46370
|
description: /* @__PURE__ */ jsxRuntimeExports$1.jsx(Caption1, { className: style["doc"], children: getDoc(program, node.type) })
|
|
46469
46371
|
}
|
|
@@ -28,7 +28,7 @@ type TypeGraphConfig = {
|
|
|
28
28
|
kind: K;
|
|
29
29
|
}>>;
|
|
30
30
|
};
|
|
31
|
-
export declare const HiddenPropsSet: Set<"symbol" | "entityKind" | "kind" | "node" | "templateNode" | "templateArguments" | "templateMapper" | "instantiationParameters" | "decorators" | "isFinished">;
|
|
31
|
+
export declare const HiddenPropsSet: Set<"symbol" | "entityKind" | "kind" | "node" | "templateNode" | "templateArguments" | "templateMapper" | "instantiationParameters" | "decorators" | "isFinished" | "creating">;
|
|
32
32
|
export declare function getPropertyRendering<T extends Type, K extends keyof T>(type: T, key: K): PropertyRenderingRaw<T>;
|
|
33
33
|
export declare function getRenderingConfig<T extends Entity>(type: T): PropertiesRendering<T> | null;
|
|
34
34
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-config.d.ts","sourceRoot":"","sources":["../../src/react/type-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAC3B;IAAE,IAAI,EAAE,QAAQ,GAAG,cAAc,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;CAAE,GAC9D,uBAAuB,CAAC,CAAC,CAAC,CAAC;AAC/B,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Node } from '../use-tree-navigation.js';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
vars?: Record<string, unknown>;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
2
7
|
export interface TypeNodeViewProps {
|
|
3
8
|
readonly nav: TreeNavigator;
|
|
4
9
|
readonly node: TypeGraphTypeNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-view.d.ts","sourceRoot":"","sources":["../../../src/react/type-view/type-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"type-view.d.ts","sourceRoot":"","sources":["../../../src/react/type-view/type-view.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGlF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChC;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;CAClC;AAED,eAAO,MAAM,YAAY,GAAI,UAAU,iBAAiB,4CA+DvD,CAAC"}
|
package/dist/style.css
CHANGED
|
@@ -215,30 +215,40 @@
|
|
|
215
215
|
background-color: var(--colorPaletteBerryForeground2);
|
|
216
216
|
color: white;
|
|
217
217
|
}
|
|
218
|
-
._type-
|
|
218
|
+
._type-view_12y74_1 {
|
|
219
219
|
display: flex;
|
|
220
220
|
flex-direction: column;
|
|
221
221
|
gap: 20px;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.
|
|
224
|
+
._main_12y74_7 {
|
|
225
225
|
padding: var(--fui-Card--size) 0 !important;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
._header-
|
|
228
|
+
._header-section_12y74_11 {
|
|
229
229
|
padding: 0 var(--fui-Card--size);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
._inspect-
|
|
232
|
+
._inspect-section_12y74_15 {
|
|
233
233
|
padding: 0 var(--fui-Card--size);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
.
|
|
236
|
+
._header_12y74_11 {
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
width: 100%;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
._header-left_12y74_25 {
|
|
237
243
|
display: flex;
|
|
238
244
|
align-items: center;
|
|
239
245
|
gap: 10px;
|
|
240
246
|
}
|
|
241
247
|
|
|
242
|
-
.
|
|
248
|
+
._header-spacer_12y74_31 {
|
|
249
|
+
margin-left: auto;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
._doc_12y74_35 {
|
|
243
253
|
color: var(--colorNeutralForeground3);
|
|
244
254
|
}
|
package/package.json
CHANGED