@morlay/dsh-client-modules 0.2.11-alpha.2 → 0.2.11
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/client.cjs +115 -93
- package/dist/index.cjs +376 -57
- package/dist/index.mjs +377 -58
- package/package.json +8 -8
- package/src/__tests__/bundle.spec.ts +373 -3
- package/src/__tests__/client-meta.spec.ts +114 -0
- package/src/__tests__/resolve.spec.ts +20 -2
- package/src/bundle.ts +330 -73
- package/src/client-meta.ts +128 -0
- package/src/index.ts +13 -3
- package/src/resolve.ts +2 -1
- package/src/serve-vite.ts +14 -16
package/dist/client.cjs
CHANGED
|
@@ -1460,25 +1460,25 @@ window.__ModuleLoader__.load({
|
|
|
1460
1460
|
document.head.appendChild(tag);
|
|
1461
1461
|
}
|
|
1462
1462
|
var schema_form_module_css_default = {
|
|
1463
|
-
"
|
|
1463
|
+
"lineKey": "oZhWGq_lineKey",
|
|
1464
|
+
"lineInvalid": "oZhWGq_lineInvalid",
|
|
1465
|
+
"compactInput": "oZhWGq_compactInput",
|
|
1464
1466
|
"hoverActions": "oZhWGq_hoverActions",
|
|
1467
|
+
"lineFoldSpacer": "oZhWGq_lineFoldSpacer",
|
|
1465
1468
|
"hint": "oZhWGq_hint",
|
|
1466
|
-
"lineRow": "oZhWGq_lineRow",
|
|
1467
|
-
"lineNumber": "oZhWGq_lineNumber",
|
|
1468
1469
|
"valueSlot": "oZhWGq_valueSlot",
|
|
1469
|
-
"editorRoot": "oZhWGq_editorRoot",
|
|
1470
|
-
"lineToken": "oZhWGq_lineToken",
|
|
1471
|
-
"lineValue": "oZhWGq_lineValue",
|
|
1472
|
-
"valueTrigger": "oZhWGq_valueTrigger",
|
|
1473
1470
|
"lineBody": "oZhWGq_lineBody",
|
|
1474
|
-
"
|
|
1475
|
-
"compactInput": "oZhWGq_compactInput",
|
|
1476
|
-
"compactTextField": "oZhWGq_compactTextField",
|
|
1471
|
+
"lineValue": "oZhWGq_lineValue",
|
|
1477
1472
|
"addWrap": "oZhWGq_addWrap",
|
|
1478
|
-
"
|
|
1479
|
-
"
|
|
1480
|
-
"
|
|
1481
|
-
"
|
|
1473
|
+
"compactTextField": "oZhWGq_compactTextField",
|
|
1474
|
+
"lineComment": "oZhWGq_lineComment",
|
|
1475
|
+
"lineToken": "oZhWGq_lineToken",
|
|
1476
|
+
"lineFold": "oZhWGq_lineFold",
|
|
1477
|
+
"lineNumber": "oZhWGq_lineNumber",
|
|
1478
|
+
"valueTrigger": "oZhWGq_valueTrigger",
|
|
1479
|
+
"lineActions": "oZhWGq_lineActions",
|
|
1480
|
+
"lineRow": "oZhWGq_lineRow",
|
|
1481
|
+
"editorRoot": "oZhWGq_editorRoot"
|
|
1482
1482
|
};
|
|
1483
1483
|
// ../dsh-client-ui-primitives/src/client/schema-form/TruncatedTooltip.tsx
|
|
1484
1484
|
function TruncatedTooltip({ label, children }) {
|
|
@@ -2425,55 +2425,55 @@ window.__ModuleLoader__.load({
|
|
|
2425
2425
|
document.head.appendChild(tag);
|
|
2426
2426
|
}
|
|
2427
2427
|
var layout_module_css_default = {
|
|
2428
|
-
"narrow": "uxI0LG_narrow",
|
|
2429
2428
|
"toneSecondary": "uxI0LG_toneSecondary",
|
|
2430
|
-
"gap2": "uxI0LG_gap2",
|
|
2431
|
-
"toneDanger": "uxI0LG_toneDanger",
|
|
2432
|
-
"gap10": "uxI0LG_gap10",
|
|
2433
|
-
"mono": "uxI0LG_mono",
|
|
2434
|
-
"padBody": "uxI0LG_padBody",
|
|
2435
|
-
"sizeBase": "uxI0LG_sizeBase",
|
|
2436
|
-
"gap16": "uxI0LG_gap16",
|
|
2437
|
-
"wrap": "uxI0LG_wrap",
|
|
2438
|
-
"justifyBetween": "uxI0LG_justifyBetween",
|
|
2439
|
-
"padNone": "uxI0LG_padNone",
|
|
2440
|
-
"padRow": "uxI0LG_padRow",
|
|
2441
|
-
"gap12": "uxI0LG_gap12",
|
|
2442
2429
|
"alignStart": "uxI0LG_alignStart",
|
|
2443
|
-
"
|
|
2444
|
-
"padPage": "uxI0LG_padPage",
|
|
2445
|
-
"sizeLg": "uxI0LG_sizeLg",
|
|
2446
|
-
"padCard": "uxI0LG_padCard",
|
|
2447
|
-
"fill": "uxI0LG_fill",
|
|
2448
|
-
"tonePrimary": "uxI0LG_tonePrimary",
|
|
2449
|
-
"strong": "uxI0LG_strong",
|
|
2450
|
-
"tabular": "uxI0LG_tabular",
|
|
2430
|
+
"gap0": "uxI0LG_gap0",
|
|
2451
2431
|
"boxed": "uxI0LG_boxed",
|
|
2452
|
-
"gap6": "uxI0LG_gap6",
|
|
2453
|
-
"sizeXs": "uxI0LG_sizeXs",
|
|
2454
|
-
"gapWide": "uxI0LG_gapWide",
|
|
2455
|
-
"sizeSm": "uxI0LG_sizeSm",
|
|
2456
2432
|
"row": "uxI0LG_row",
|
|
2457
|
-
"gap14": "uxI0LG_gap14",
|
|
2458
|
-
"justifyEnd": "uxI0LG_justifyEnd",
|
|
2459
|
-
"alignCenter": "uxI0LG_alignCenter",
|
|
2460
|
-
"gap0": "uxI0LG_gap0",
|
|
2461
|
-
"alignEnd": "uxI0LG_alignEnd",
|
|
2462
|
-
"justifyCenter": "uxI0LG_justifyCenter",
|
|
2463
2433
|
"grow": "uxI0LG_grow",
|
|
2464
|
-
"scroll": "uxI0LG_scroll",
|
|
2465
|
-
"plain": "uxI0LG_plain",
|
|
2466
|
-
"padBlocking": "uxI0LG_padBlocking",
|
|
2467
2434
|
"text": "uxI0LG_text",
|
|
2468
|
-
"
|
|
2435
|
+
"sizeXs": "uxI0LG_sizeXs",
|
|
2436
|
+
"tabular": "uxI0LG_tabular",
|
|
2437
|
+
"gap2": "uxI0LG_gap2",
|
|
2438
|
+
"gap12": "uxI0LG_gap12",
|
|
2439
|
+
"gap14": "uxI0LG_gap14",
|
|
2440
|
+
"padPage": "uxI0LG_padPage",
|
|
2441
|
+
"sizeMd": "uxI0LG_sizeMd",
|
|
2442
|
+
"mono": "uxI0LG_mono",
|
|
2469
2443
|
"truncate": "uxI0LG_truncate",
|
|
2470
|
-
"
|
|
2471
|
-
"
|
|
2472
|
-
"gap8": "uxI0LG_gap8",
|
|
2444
|
+
"alignEnd": "uxI0LG_alignEnd",
|
|
2445
|
+
"sizeSm": "uxI0LG_sizeSm",
|
|
2473
2446
|
"toneTertiary": "uxI0LG_toneTertiary",
|
|
2447
|
+
"gap8": "uxI0LG_gap8",
|
|
2448
|
+
"gap10": "uxI0LG_gap10",
|
|
2449
|
+
"sizeBase": "uxI0LG_sizeBase",
|
|
2450
|
+
"sizeLg": "uxI0LG_sizeLg",
|
|
2451
|
+
"stack": "uxI0LG_stack",
|
|
2452
|
+
"justifyEnd": "uxI0LG_justifyEnd",
|
|
2453
|
+
"toneDanger": "uxI0LG_toneDanger",
|
|
2454
|
+
"gap4": "uxI0LG_gap4",
|
|
2455
|
+
"weightMedium": "uxI0LG_weightMedium",
|
|
2474
2456
|
"fixed": "uxI0LG_fixed",
|
|
2475
|
-
"
|
|
2476
|
-
"
|
|
2457
|
+
"fill": "uxI0LG_fill",
|
|
2458
|
+
"padNone": "uxI0LG_padNone",
|
|
2459
|
+
"justifyBetween": "uxI0LG_justifyBetween",
|
|
2460
|
+
"padBlocking": "uxI0LG_padBlocking",
|
|
2461
|
+
"wrap": "uxI0LG_wrap",
|
|
2462
|
+
"padBody": "uxI0LG_padBody",
|
|
2463
|
+
"gapWide": "uxI0LG_gapWide",
|
|
2464
|
+
"padCard": "uxI0LG_padCard",
|
|
2465
|
+
"wSearch": "uxI0LG_wSearch",
|
|
2466
|
+
"gap6": "uxI0LG_gap6",
|
|
2467
|
+
"scroll": "uxI0LG_scroll",
|
|
2468
|
+
"alignCenter": "uxI0LG_alignCenter",
|
|
2469
|
+
"justifyCenter": "uxI0LG_justifyCenter",
|
|
2470
|
+
"strong": "uxI0LG_strong",
|
|
2471
|
+
"gap16": "uxI0LG_gap16",
|
|
2472
|
+
"tonePrimary": "uxI0LG_tonePrimary",
|
|
2473
|
+
"push": "uxI0LG_push",
|
|
2474
|
+
"padRow": "uxI0LG_padRow",
|
|
2475
|
+
"narrow": "uxI0LG_narrow",
|
|
2476
|
+
"plain": "uxI0LG_plain"
|
|
2477
2477
|
};
|
|
2478
2478
|
// ../dsh-client-ui-primitives/src/client/layout/scales.ts
|
|
2479
2479
|
function gapClass(css, gap) {
|
|
@@ -2545,8 +2545,8 @@ window.__ModuleLoader__.load({
|
|
|
2545
2545
|
document.head.appendChild(tag);
|
|
2546
2546
|
}
|
|
2547
2547
|
var Button_module_css_default = {
|
|
2548
|
-
"
|
|
2549
|
-
"
|
|
2548
|
+
"danger": "SBA8ka_danger",
|
|
2549
|
+
"label": "SBA8ka_label"
|
|
2550
2550
|
};
|
|
2551
2551
|
(0, react.forwardRef)(function Button({ className, tone, ...rest }, ref) {
|
|
2552
2552
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
@@ -12531,7 +12531,7 @@ window.__ModuleLoader__.load({
|
|
|
12531
12531
|
]);
|
|
12532
12532
|
({}).hasOwnProperty;
|
|
12533
12533
|
({}).hasOwnProperty;
|
|
12534
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
12534
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.js
|
|
12535
12535
|
/**
|
|
12536
12536
|
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
12537
12537
|
*/
|
|
@@ -12548,7 +12548,7 @@ window.__ModuleLoader__.load({
|
|
|
12548
12548
|
if (marker !== "\"" && marker !== "'") throw new Error("Cannot serialize title with `" + marker + "` for `options.quote`, expected `\"`, or `'`");
|
|
12549
12549
|
return marker;
|
|
12550
12550
|
}
|
|
12551
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
12551
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
|
|
12552
12552
|
/**
|
|
12553
12553
|
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
12554
12554
|
*/
|
|
@@ -12565,7 +12565,7 @@ window.__ModuleLoader__.load({
|
|
|
12565
12565
|
if (marker !== "*" && marker !== "_") throw new Error("Cannot serialize emphasis with `" + marker + "` for `options.emphasis`, expected `*`, or `_`");
|
|
12566
12566
|
return marker;
|
|
12567
12567
|
}
|
|
12568
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
12568
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/character.js
|
|
12569
12569
|
/**
|
|
12570
12570
|
* Get the first character of a value.
|
|
12571
12571
|
*
|
|
@@ -12594,7 +12594,7 @@ window.__ModuleLoader__.load({
|
|
|
12594
12594
|
const code = value.codePointAt(value.length - 2);
|
|
12595
12595
|
return code !== void 0 && code > 65535 ? value.slice(-2) : value.slice(-1);
|
|
12596
12596
|
}
|
|
12597
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
12597
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
|
|
12598
12598
|
/**
|
|
12599
12599
|
* Encode a code point as a character reference.
|
|
12600
12600
|
*
|
|
@@ -12606,7 +12606,7 @@ window.__ModuleLoader__.load({
|
|
|
12606
12606
|
function encodeCharacterReference(code) {
|
|
12607
12607
|
return "&#x" + code.toString(16).toUpperCase() + ";";
|
|
12608
12608
|
}
|
|
12609
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
12609
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js
|
|
12610
12610
|
/**
|
|
12611
12611
|
* @import {EncodeSides} from '../types.js'
|
|
12612
12612
|
*/
|
|
@@ -12677,7 +12677,7 @@ window.__ModuleLoader__.load({
|
|
|
12677
12677
|
outside: false
|
|
12678
12678
|
};
|
|
12679
12679
|
}
|
|
12680
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
12680
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/html-kind.js
|
|
12681
12681
|
/**
|
|
12682
12682
|
* @typedef {1 | 2 | 3 | 4 | 5 | 6 | 7} Kind
|
|
12683
12683
|
* Kind of HTML (flow) element.
|
|
@@ -12724,7 +12724,7 @@ window.__ModuleLoader__.load({
|
|
|
12724
12724
|
if (!closing && code !== 47 && htmlRawNames.includes(name)) return 1;
|
|
12725
12725
|
return htmlBlockNames.includes(name) ? 6 : 7;
|
|
12726
12726
|
}
|
|
12727
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
12727
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
|
|
12728
12728
|
/**
|
|
12729
12729
|
* @import {Attention, Handle, Info, State, Tracker} from 'mdast-util-to-markdown'
|
|
12730
12730
|
* @import {PhrasingParents} from '../types.js'
|
|
@@ -13232,7 +13232,7 @@ window.__ModuleLoader__.load({
|
|
|
13232
13232
|
for (const token of tokens) result += token.value;
|
|
13233
13233
|
return result;
|
|
13234
13234
|
}
|
|
13235
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13235
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
|
|
13236
13236
|
/**
|
|
13237
13237
|
* @import {AttentionInfo, Info, State} from 'mdast-util-to-markdown'
|
|
13238
13238
|
* @import {Emphasis, Parents} from 'mdast'
|
|
@@ -13293,7 +13293,7 @@ window.__ModuleLoader__.load({
|
|
|
13293
13293
|
function peek$1(_, _1, state) {
|
|
13294
13294
|
return state.options.emphasis || "*";
|
|
13295
13295
|
}
|
|
13296
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13296
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/handle/html.js
|
|
13297
13297
|
/**
|
|
13298
13298
|
* @import {Html} from 'mdast'
|
|
13299
13299
|
*/
|
|
@@ -13318,7 +13318,7 @@ window.__ModuleLoader__.load({
|
|
|
13318
13318
|
function htmlPeek() {
|
|
13319
13319
|
return "<";
|
|
13320
13320
|
}
|
|
13321
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13321
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/handle/image.js
|
|
13322
13322
|
/**
|
|
13323
13323
|
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
13324
13324
|
* @import {Image, Parents} from 'mdast'
|
|
@@ -13394,7 +13394,7 @@ window.__ModuleLoader__.load({
|
|
|
13394
13394
|
function imagePeek() {
|
|
13395
13395
|
return "!";
|
|
13396
13396
|
}
|
|
13397
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13397
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
|
|
13398
13398
|
/**
|
|
13399
13399
|
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
13400
13400
|
* @import {ImageReference, Parents} from 'mdast'
|
|
@@ -13454,7 +13454,7 @@ window.__ModuleLoader__.load({
|
|
|
13454
13454
|
function imageReferencePeek() {
|
|
13455
13455
|
return "!";
|
|
13456
13456
|
}
|
|
13457
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13457
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
|
|
13458
13458
|
/**
|
|
13459
13459
|
* @import {State} from 'mdast-util-to-markdown'
|
|
13460
13460
|
* @import {InlineCode, Parents} from 'mdast'
|
|
@@ -13501,7 +13501,7 @@ window.__ModuleLoader__.load({
|
|
|
13501
13501
|
function inlineCodePeek() {
|
|
13502
13502
|
return "`";
|
|
13503
13503
|
}
|
|
13504
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13504
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
13505
13505
|
/**
|
|
13506
13506
|
* @import {State} from 'mdast-util-to-markdown'
|
|
13507
13507
|
* @import {Link} from 'mdast'
|
|
@@ -13520,7 +13520,7 @@ window.__ModuleLoader__.load({
|
|
|
13520
13520
|
const raw = toString(node);
|
|
13521
13521
|
return Boolean(!state.options.resourceLink && node.url && !node.title && node.children && node.children.length === 1 && node.children[0].type === "text" && (raw === node.url || "mailto:" + raw === node.url) && /^[a-z][+\-.a-z]+:/i.test(node.url) && !/[\0- <>\u007F]/.test(node.url));
|
|
13522
13522
|
}
|
|
13523
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13523
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/handle/link.js
|
|
13524
13524
|
/**
|
|
13525
13525
|
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
13526
13526
|
* @import {Link, Parents} from 'mdast'
|
|
@@ -13629,7 +13629,7 @@ window.__ModuleLoader__.load({
|
|
|
13629
13629
|
function linkPeek(node, _, state) {
|
|
13630
13630
|
return formatLinkAsAutolink(node, state) ? "<" : "[";
|
|
13631
13631
|
}
|
|
13632
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13632
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
|
|
13633
13633
|
/**
|
|
13634
13634
|
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
13635
13635
|
* @import {LinkReference, Parents} from 'mdast'
|
|
@@ -13689,7 +13689,7 @@ window.__ModuleLoader__.load({
|
|
|
13689
13689
|
function linkReferencePeek() {
|
|
13690
13690
|
return "[";
|
|
13691
13691
|
}
|
|
13692
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13692
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.js
|
|
13693
13693
|
/**
|
|
13694
13694
|
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
13695
13695
|
*/
|
|
@@ -13706,7 +13706,7 @@ window.__ModuleLoader__.load({
|
|
|
13706
13706
|
if (marker !== "*" && marker !== "_") throw new Error("Cannot serialize strong with `" + marker + "` for `options.strong`, expected `*`, or `_`");
|
|
13707
13707
|
return marker;
|
|
13708
13708
|
}
|
|
13709
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13709
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js
|
|
13710
13710
|
/**
|
|
13711
13711
|
* @import {AttentionInfo, Info, State} from 'mdast-util-to-markdown'
|
|
13712
13712
|
* @import {Parents, Strong} from 'mdast'
|
|
@@ -13767,7 +13767,7 @@ window.__ModuleLoader__.load({
|
|
|
13767
13767
|
function peek(_, _1, state) {
|
|
13768
13768
|
return state.options.strong || "*";
|
|
13769
13769
|
}
|
|
13770
|
-
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.
|
|
13770
|
+
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.2.2/node_modules/mdast-util-to-markdown/lib/unsafe.js
|
|
13771
13771
|
/**
|
|
13772
13772
|
* @import {ConstructName, Unsafe} from 'mdast-util-to-markdown'
|
|
13773
13773
|
*/
|
|
@@ -14036,23 +14036,22 @@ window.__ModuleLoader__.load({
|
|
|
14036
14036
|
inConstruct: "autolink"
|
|
14037
14037
|
});
|
|
14038
14038
|
({}).hasOwnProperty;
|
|
14039
|
-
// ../../../node_modules/.pnpm/mdast-util-gfm-table@2.0.
|
|
14039
|
+
// ../../../node_modules/.pnpm/mdast-util-gfm-table@2.0.1_supports-color@9.4.0/node_modules/mdast-util-gfm-table/lib/index.js
|
|
14040
14040
|
/**
|
|
14041
|
-
* @
|
|
14042
|
-
* @
|
|
14043
|
-
* @
|
|
14044
|
-
*
|
|
14045
|
-
*
|
|
14046
|
-
*
|
|
14047
|
-
*
|
|
14048
|
-
* @
|
|
14049
|
-
*
|
|
14050
|
-
*
|
|
14051
|
-
*
|
|
14052
|
-
*
|
|
14053
|
-
*
|
|
14054
|
-
*
|
|
14055
|
-
* @typedef {import('mdast-util-to-markdown').Info} Info
|
|
14041
|
+
* @import {Heading, InlineCode, Table, TableCell, TableRow} from 'mdast'
|
|
14042
|
+
* @import {Options as MarkdownTableOptions} from 'markdown-table'
|
|
14043
|
+
* @import {
|
|
14044
|
+
* CompileContext,
|
|
14045
|
+
* Extension as FromMarkdownExtension,
|
|
14046
|
+
* Handle as FromMarkdownHandle,
|
|
14047
|
+
* } from 'mdast-util-from-markdown'
|
|
14048
|
+
* @import {
|
|
14049
|
+
* Options as ToMarkdownExtension,
|
|
14050
|
+
* Handle as ToMarkdownHandle,
|
|
14051
|
+
* Info,
|
|
14052
|
+
* Join,
|
|
14053
|
+
* State
|
|
14054
|
+
* } from 'mdast-util-to-markdown'
|
|
14056
14055
|
*/
|
|
14057
14056
|
/**
|
|
14058
14057
|
* @typedef Options
|
|
@@ -14091,6 +14090,8 @@ window.__ModuleLoader__.load({
|
|
|
14091
14090
|
};
|
|
14092
14091
|
}
|
|
14093
14092
|
/**
|
|
14093
|
+
* Enter a table.
|
|
14094
|
+
*
|
|
14094
14095
|
* @this {CompileContext}
|
|
14095
14096
|
* @type {FromMarkdownHandle}
|
|
14096
14097
|
*/
|
|
@@ -14101,11 +14102,14 @@ window.__ModuleLoader__.load({
|
|
|
14101
14102
|
align: align.map(function(d) {
|
|
14102
14103
|
return d === "none" ? null : d;
|
|
14103
14104
|
}),
|
|
14104
|
-
children: []
|
|
14105
|
+
children: [],
|
|
14106
|
+
position: void 0
|
|
14105
14107
|
}, token);
|
|
14106
14108
|
this.data.inTable = true;
|
|
14107
14109
|
}
|
|
14108
14110
|
/**
|
|
14111
|
+
* Exit a table.
|
|
14112
|
+
*
|
|
14109
14113
|
* @this {CompileContext}
|
|
14110
14114
|
* @type {FromMarkdownHandle}
|
|
14111
14115
|
*/
|
|
@@ -14114,16 +14118,21 @@ window.__ModuleLoader__.load({
|
|
|
14114
14118
|
this.data.inTable = void 0;
|
|
14115
14119
|
}
|
|
14116
14120
|
/**
|
|
14121
|
+
* Enter a row.
|
|
14122
|
+
*
|
|
14117
14123
|
* @this {CompileContext}
|
|
14118
14124
|
* @type {FromMarkdownHandle}
|
|
14119
14125
|
*/
|
|
14120
14126
|
function enterRow(token) {
|
|
14121
14127
|
this.enter({
|
|
14122
14128
|
type: "tableRow",
|
|
14123
|
-
children: []
|
|
14129
|
+
children: [],
|
|
14130
|
+
position: void 0
|
|
14124
14131
|
}, token);
|
|
14125
14132
|
}
|
|
14126
14133
|
/**
|
|
14134
|
+
* Exit a row or cell.
|
|
14135
|
+
*
|
|
14127
14136
|
* @this {CompileContext}
|
|
14128
14137
|
* @type {FromMarkdownHandle}
|
|
14129
14138
|
*/
|
|
@@ -14131,16 +14140,24 @@ window.__ModuleLoader__.load({
|
|
|
14131
14140
|
this.exit(token);
|
|
14132
14141
|
}
|
|
14133
14142
|
/**
|
|
14143
|
+
* Enter a cell.
|
|
14144
|
+
*
|
|
14134
14145
|
* @this {CompileContext}
|
|
14135
14146
|
* @type {FromMarkdownHandle}
|
|
14136
14147
|
*/
|
|
14137
14148
|
function enterCell(token) {
|
|
14138
14149
|
this.enter({
|
|
14139
14150
|
type: "tableCell",
|
|
14140
|
-
children: []
|
|
14151
|
+
children: [],
|
|
14152
|
+
position: void 0
|
|
14141
14153
|
}, token);
|
|
14142
14154
|
}
|
|
14143
14155
|
/**
|
|
14156
|
+
* Exit code (text).
|
|
14157
|
+
*
|
|
14158
|
+
* Overwrites the default code text data handler to unescape escaped pipes
|
|
14159
|
+
* when they are in tables.
|
|
14160
|
+
*
|
|
14144
14161
|
* @this {CompileContext}
|
|
14145
14162
|
* @type {FromMarkdownHandle}
|
|
14146
14163
|
*/
|
|
@@ -14153,9 +14170,14 @@ window.__ModuleLoader__.load({
|
|
|
14153
14170
|
this.exit(token);
|
|
14154
14171
|
}
|
|
14155
14172
|
/**
|
|
14173
|
+
* Unescape an escaped pipe.
|
|
14174
|
+
*
|
|
14156
14175
|
* @param {string} $0
|
|
14176
|
+
* Whole match.
|
|
14157
14177
|
* @param {string} $1
|
|
14178
|
+
* Escaped character.
|
|
14158
14179
|
* @returns {string}
|
|
14180
|
+
* Replacement.
|
|
14159
14181
|
*/
|
|
14160
14182
|
function replace($0, $1) {
|
|
14161
14183
|
return $1 === "|" ? $1 : $0;
|