Skip to content

Commit bc45896

Browse files
artifacts
1 parent 2e0c935 commit bc45896

File tree

3 files changed

+171
-12
lines changed

3 files changed

+171
-12
lines changed

src/resources/editor/tools/vs-code.mjs

+73-4
Original file line numberDiff line numberDiff line change
@@ -15621,6 +15621,22 @@ var require_yaml_intelligence_resources = __commonJS({
1562115621
},
1562215622
description: "The paper size for the document.\n"
1562315623
},
15624+
{
15625+
name: "brand-mode",
15626+
schema: {
15627+
enum: [
15628+
"light",
15629+
"dark"
15630+
]
15631+
},
15632+
default: "light",
15633+
tags: {
15634+
formats: [
15635+
"typst"
15636+
]
15637+
},
15638+
description: "The brand mode to use for rendering the Typst document, `light` or `dark`.\n"
15639+
},
1562415640
{
1562515641
name: "layout",
1562615642
schema: {
@@ -20935,6 +20951,7 @@ var require_yaml_intelligence_resources = __commonJS({
2093520951
"Number of matches to display (defaults to 20)",
2093620952
"Matches after which to collapse additional results",
2093720953
"Provide button for copying search link",
20954+
"When false, do not merge navbar crumbs into the crumbs in\n<code>search.json</code>.",
2093820955
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
2093920956
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
2094020957
"Whether to include search result parents when displaying items in\nsearch results (when possible).",
@@ -21095,6 +21112,7 @@ var require_yaml_intelligence_resources = __commonJS({
2109521112
"Number of matches to display (defaults to 20)",
2109621113
"Matches after which to collapse additional results",
2109721114
"Provide button for copying search link",
21115+
"When false, do not merge navbar crumbs into the crumbs in\n<code>search.json</code>.",
2109821116
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
2109921117
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
2110021118
"Whether to include search result parents when displaying items in\nsearch results (when possible).",
@@ -23419,6 +23437,7 @@ var require_yaml_intelligence_resources = __commonJS({
2341923437
"Number of matches to display (defaults to 20)",
2342023438
"Matches after which to collapse additional results",
2342123439
"Provide button for copying search link",
23440+
"When false, do not merge navbar crumbs into the crumbs in\n<code>search.json</code>.",
2342223441
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
2342323442
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
2342423443
"Whether to include search result parents when displaying items in\nsearch results (when possible).",
@@ -23772,6 +23791,7 @@ var require_yaml_intelligence_resources = __commonJS({
2377223791
"Number of matches to display (defaults to 20)",
2377323792
"Matches after which to collapse additional results",
2377423793
"Provide button for copying search link",
23794+
"When false, do not merge navbar crumbs into the crumbs in\n<code>search.json</code>.",
2377523795
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
2377623796
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
2377723797
"Whether to include search result parents when displaying items in\nsearch results (when possible).",
@@ -24022,7 +24042,8 @@ var require_yaml_intelligence_resources = __commonJS({
2402224042
"Disambiguating year suffix in author-date styles (e.g.&nbsp;\u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
2402324043
"Manuscript configuration",
2402424044
"internal-schema-hack",
24025-
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019."
24045+
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019.",
24046+
"The brand mode to use for rendering the Typst document,\n<code>light</code> or <code>dark</code>."
2402624047
],
2402724048
"schema/external-schemas.yml": [
2402824049
{
@@ -24251,12 +24272,12 @@ var require_yaml_intelligence_resources = __commonJS({
2425124272
mermaid: "%%"
2425224273
},
2425324274
"handlers/mermaid/schema.yml": {
24254-
_internalId: 194252,
24275+
_internalId: 194259,
2425524276
type: "object",
2425624277
description: "be an object",
2425724278
properties: {
2425824279
"mermaid-format": {
24259-
_internalId: 194244,
24280+
_internalId: 194251,
2426024281
type: "enum",
2426124282
enum: [
2426224283
"png",
@@ -24272,7 +24293,7 @@ var require_yaml_intelligence_resources = __commonJS({
2427224293
exhaustiveCompletions: true
2427324294
},
2427424295
theme: {
24275-
_internalId: 194251,
24296+
_internalId: 194258,
2427624297
type: "anyOf",
2427724298
anyOf: [
2427824299
{
@@ -31402,6 +31423,51 @@ function guessChunkOptionsFormat(options) {
3140231423
}
3140331424

3140431425
// ../yaml-validation/validator.ts
31426+
function createNiceError(obj) {
31427+
const {
31428+
violatingObject,
31429+
source,
31430+
message
31431+
} = obj;
31432+
const locF = mappedIndexToLineCol(source);
31433+
let location;
31434+
try {
31435+
location = {
31436+
start: locF(violatingObject.start),
31437+
end: locF(violatingObject.end)
31438+
};
31439+
} catch (_e) {
31440+
location = {
31441+
start: { line: 0, column: 0 },
31442+
end: { line: 0, column: 0 }
31443+
};
31444+
}
31445+
const mapResult = source.map(violatingObject.start);
31446+
const fileName = mapResult ? mapResult.originalString.fileName : void 0;
31447+
return {
31448+
heading: message,
31449+
error: [],
31450+
info: {},
31451+
fileName,
31452+
location,
31453+
sourceContext: createSourceContext(violatingObject.source, {
31454+
start: violatingObject.start,
31455+
end: violatingObject.end
31456+
})
31457+
};
31458+
}
31459+
var NoExprTag = class extends Error {
31460+
constructor(violatingObject, source) {
31461+
super(`Unexpected !expr tag`);
31462+
this.name = "NoExprTag";
31463+
this.niceError = createNiceError({
31464+
violatingObject,
31465+
source,
31466+
message: "!expr tags are not allowed in Quarto outside of knitr code cells."
31467+
});
31468+
}
31469+
niceError;
31470+
};
3140531471
var ValidationContext = class {
3140631472
instancePath;
3140731473
root;
@@ -31793,6 +31859,9 @@ function validateObject(value, schema2, context) {
3179331859
}
3179431860
}
3179531861
}
31862+
if (value.result && typeof value.result === "object" && !Array.isArray(value.result) && value.result.tag === "!expr") {
31863+
throw new NoExprTag(value, value.source);
31864+
}
3179631865
throw new InternalError(`Couldn't locate key ${key}`);
3179731866
};
3179831867
const inspectedProps = /* @__PURE__ */ new Set();

src/resources/editor/tools/yaml/web-worker.js

+73-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/editor/tools/yaml/yaml-intelligence-resources.json

+25-4
Original file line numberDiff line numberDiff line change
@@ -8593,6 +8593,22 @@
85938593
},
85948594
"description": "The paper size for the document.\n"
85958595
},
8596+
{
8597+
"name": "brand-mode",
8598+
"schema": {
8599+
"enum": [
8600+
"light",
8601+
"dark"
8602+
]
8603+
},
8604+
"default": "light",
8605+
"tags": {
8606+
"formats": [
8607+
"typst"
8608+
]
8609+
},
8610+
"description": "The brand mode to use for rendering the Typst document, `light` or `dark`.\n"
8611+
},
85968612
{
85978613
"name": "layout",
85988614
"schema": {
@@ -13907,6 +13923,7 @@
1390713923
"Number of matches to display (defaults to 20)",
1390813924
"Matches after which to collapse additional results",
1390913925
"Provide button for copying search link",
13926+
"When false, do not merge navbar crumbs into the crumbs in\n<code>search.json</code>.",
1391013927
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
1391113928
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
1391213929
"Whether to include search result parents when displaying items in\nsearch results (when possible).",
@@ -14067,6 +14084,7 @@
1406714084
"Number of matches to display (defaults to 20)",
1406814085
"Matches after which to collapse additional results",
1406914086
"Provide button for copying search link",
14087+
"When false, do not merge navbar crumbs into the crumbs in\n<code>search.json</code>.",
1407014088
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
1407114089
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
1407214090
"Whether to include search result parents when displaying items in\nsearch results (when possible).",
@@ -16391,6 +16409,7 @@
1639116409
"Number of matches to display (defaults to 20)",
1639216410
"Matches after which to collapse additional results",
1639316411
"Provide button for copying search link",
16412+
"When false, do not merge navbar crumbs into the crumbs in\n<code>search.json</code>.",
1639416413
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
1639516414
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
1639616415
"Whether to include search result parents when displaying items in\nsearch results (when possible).",
@@ -16744,6 +16763,7 @@
1674416763
"Number of matches to display (defaults to 20)",
1674516764
"Matches after which to collapse additional results",
1674616765
"Provide button for copying search link",
16766+
"When false, do not merge navbar crumbs into the crumbs in\n<code>search.json</code>.",
1674716767
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
1674816768
"One or more keys that will act as a shortcut to launch search (single\ncharacters)",
1674916769
"Whether to include search result parents when displaying items in\nsearch results (when possible).",
@@ -16994,7 +17014,8 @@
1699417014
"Disambiguating year suffix in author-date styles (e.g.&nbsp;“a” in “Doe,\n1999a”).",
1699517015
"Manuscript configuration",
1699617016
"internal-schema-hack",
16997-
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto’s default order\nis ‘knitr’, ‘jupyter’, ‘markdown’, ‘julia’."
17017+
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto’s default order\nis ‘knitr’, ‘jupyter’, ‘markdown’, ‘julia’.",
17018+
"The brand mode to use for rendering the Typst document,\n<code>light</code> or <code>dark</code>."
1699817019
],
1699917020
"schema/external-schemas.yml": [
1700017021
{
@@ -17223,12 +17244,12 @@
1722317244
"mermaid": "%%"
1722417245
},
1722517246
"handlers/mermaid/schema.yml": {
17226-
"_internalId": 194252,
17247+
"_internalId": 194259,
1722717248
"type": "object",
1722817249
"description": "be an object",
1722917250
"properties": {
1723017251
"mermaid-format": {
17231-
"_internalId": 194244,
17252+
"_internalId": 194251,
1723217253
"type": "enum",
1723317254
"enum": [
1723417255
"png",
@@ -17244,7 +17265,7 @@
1724417265
"exhaustiveCompletions": true
1724517266
},
1724617267
"theme": {
17247-
"_internalId": 194251,
17268+
"_internalId": 194258,
1724817269
"type": "anyOf",
1724917270
"anyOf": [
1725017271
{

0 commit comments

Comments
 (0)