@typespec/html-program-viewer 0.79.0-dev.1 → 0.79.0-dev.2
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/react/index.js
CHANGED
|
@@ -47779,17 +47779,12 @@ function isType(entity) {
|
|
|
47779
47779
|
function isValue(entity) {
|
|
47780
47780
|
return entity.entityKind === "Value";
|
|
47781
47781
|
}
|
|
47782
|
-
|
|
47783
|
-
|
|
47784
|
-
*/
|
|
47785
|
-
function isArrayModelType(program, type) {
|
|
47782
|
+
function isArrayModelType(programOrType, maybeType) {
|
|
47783
|
+
const type = programOrType;
|
|
47786
47784
|
return Boolean(type.indexer && type.indexer.key.name === "integer");
|
|
47787
47785
|
}
|
|
47788
|
-
|
|
47789
|
-
|
|
47790
|
-
* @param type Model type
|
|
47791
|
-
*/
|
|
47792
|
-
function isRecordModelType(program, type) {
|
|
47786
|
+
function isRecordModelType(programOrType, maybeType) {
|
|
47787
|
+
const type = programOrType;
|
|
47793
47788
|
return Boolean(type.indexer && type.indexer.key.name === "string");
|
|
47794
47789
|
}
|
|
47795
47790
|
/**
|
|
@@ -47817,7 +47812,7 @@ defineKit({
|
|
|
47817
47812
|
is(type) {
|
|
47818
47813
|
return (type.entityKind === "Type" &&
|
|
47819
47814
|
type.kind === "Model" &&
|
|
47820
|
-
isArrayModelType(
|
|
47815
|
+
isArrayModelType(type) &&
|
|
47821
47816
|
type.properties.size === 0);
|
|
47822
47817
|
},
|
|
47823
47818
|
getElementType(type) {
|
|
@@ -49749,7 +49744,7 @@ const [
|
|
|
49749
49744
|
isPageItemsProperty, markPageItemsProperty,
|
|
49750
49745
|
/** {@inheritdoc PageItemsDecorator} */
|
|
49751
49746
|
pageItemsDecorator,] = createMarkerDecorator("pageItems", (context, target) => {
|
|
49752
|
-
if (target.type.kind !== "Model" || !isArrayModelType(
|
|
49747
|
+
if (target.type.kind !== "Model" || !isArrayModelType(target.type)) {
|
|
49753
49748
|
reportDiagnostic(context.program, {
|
|
49754
49749
|
code: "decorator-wrong-target",
|
|
49755
49750
|
messageId: "withExpected",
|
|
@@ -49768,18 +49763,7 @@ const [
|
|
|
49768
49763
|
*/
|
|
49769
49764
|
isContinuationTokenProperty, markContinuationTokenProperty,
|
|
49770
49765
|
/** {@inheritdoc ContinuationTokenDecorator} */
|
|
49771
|
-
continuationTokenDecorator,] = createMarkerDecorator("continuationToken"
|
|
49772
|
-
if (!isStringType(context.program, target.type)) {
|
|
49773
|
-
reportDiagnostic(context.program, {
|
|
49774
|
-
code: "decorator-wrong-target",
|
|
49775
|
-
messageId: "withExpected",
|
|
49776
|
-
format: { decorator: "continuationToken", expected: "string", to: getTypeName(target.type) },
|
|
49777
|
-
target: context.decoratorTarget,
|
|
49778
|
-
});
|
|
49779
|
-
return false;
|
|
49780
|
-
}
|
|
49781
|
-
return true;
|
|
49782
|
-
});
|
|
49766
|
+
continuationTokenDecorator,] = createMarkerDecorator("continuationToken");
|
|
49783
49767
|
const [
|
|
49784
49768
|
/**
|
|
49785
49769
|
* Check if the given property is the `@nextLink` property for a paging operation.
|
|
@@ -50076,10 +50060,6 @@ const $doc = (context, target, text, sourceObject) => {
|
|
|
50076
50060
|
function getDoc(program, target) {
|
|
50077
50061
|
return getDocDataInternal(program, target, "self")?.value;
|
|
50078
50062
|
}
|
|
50079
|
-
function isStringType(program, target) {
|
|
50080
|
-
const stringType = program.checker.getStdType("string");
|
|
50081
|
-
return (target.kind === "Scalar" && program.checker.isTypeAssignableTo(target, stringType, target)[0]);
|
|
50082
|
-
}
|
|
50083
50063
|
function isNumericType(program, target) {
|
|
50084
50064
|
const numericType = program.checker.getStdType("numeric");
|
|
50085
50065
|
return (target.kind === "Scalar" && program.checker.isTypeAssignableTo(target, numericType, target)[0]);
|
|
@@ -50369,7 +50349,7 @@ defineKit({
|
|
|
50369
50349
|
is(type) {
|
|
50370
50350
|
return (type.entityKind === "Type" &&
|
|
50371
50351
|
type.kind === "Model" &&
|
|
50372
|
-
isRecordModelType(
|
|
50352
|
+
isRecordModelType(type) &&
|
|
50373
50353
|
type.properties.size === 0);
|
|
50374
50354
|
},
|
|
50375
50355
|
getElementType(type) {
|
|
@@ -51316,6 +51296,11 @@ var ResolutionKind;
|
|
|
51316
51296
|
ResolutionKind[ResolutionKind["Constraint"] = 3] = "Constraint";
|
|
51317
51297
|
})(ResolutionKind || (ResolutionKind = {}));
|
|
51318
51298
|
|
|
51299
|
+
const emittedFilesPerProgramKey = Symbol.for("TYPESPEC_EMITTED_FILES_PATHS");
|
|
51300
|
+
if (globalThis[emittedFilesPerProgramKey] === undefined) {
|
|
51301
|
+
globalThis[emittedFilesPerProgramKey] = new WeakMap();
|
|
51302
|
+
}
|
|
51303
|
+
|
|
51319
51304
|
var CommentCheckFlags;
|
|
51320
51305
|
(function (CommentCheckFlags) {
|
|
51321
51306
|
/** Check comment is a leading comment */
|
|
@@ -51355,7 +51340,7 @@ let manifest;
|
|
|
51355
51340
|
try {
|
|
51356
51341
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
51357
51342
|
// @ts-ignore
|
|
51358
|
-
manifest = (await import('../manifest-
|
|
51343
|
+
manifest = (await import('../manifest-DKDRH_XL.js')).default;
|
|
51359
51344
|
}
|
|
51360
51345
|
catch {
|
|
51361
51346
|
const name = "../dist/manifest.js";
|
package/package.json
CHANGED