@wcstack/router 4.10.1 → 4.11.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/README.ja.md +2 -1
- package/README.md +2 -1
- package/dist/auto.min.js +1 -1
- package/dist/auto.min.js.map +1 -1
- package/dist/index.esm.js +130 -43
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -77,6 +77,12 @@ function setConfig(partialConfig) {
|
|
|
77
77
|
frozenConfig = null;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
var name = "@wcstack/router";
|
|
81
|
+
var version = "4.11.2";
|
|
82
|
+
var pkg = {
|
|
83
|
+
name: name,
|
|
84
|
+
version: version};
|
|
85
|
+
|
|
80
86
|
function getUUID() {
|
|
81
87
|
if (typeof crypto !== 'undefined' && crypto.randomUUID) {
|
|
82
88
|
return crypto.randomUUID();
|
|
@@ -1395,7 +1401,7 @@ function moveInto(target, nodes) {
|
|
|
1395
1401
|
* レイアウトのテンプレートが持ち込んだ outlet(スロットの代わりに置いた形)は、router が outlet を
|
|
1396
1402
|
* 作った後で文書に入るので、レイアウトを置いたところでも同じ判定をする(docs/seam-apps.md、router-admin)。
|
|
1397
1403
|
*/
|
|
1398
|
-
const warned$
|
|
1404
|
+
const warned$2 = new WeakSet();
|
|
1399
1405
|
/**
|
|
1400
1406
|
* 直後に outlet を持たない router が outlet を作る直前に呼ぶ。同じ root(document か
|
|
1401
1407
|
* shadow root)に、どの router にも使われない `<wcs-outlet>` があれば 1 回だけ警告する。
|
|
@@ -1413,10 +1419,10 @@ function warnStrayOutlets(scope) {
|
|
|
1413
1419
|
const routerTag = config.tagNames.router;
|
|
1414
1420
|
const outletTag = config.tagNames.outlet;
|
|
1415
1421
|
for (const outlet of scope.querySelectorAll(outletTag)) {
|
|
1416
|
-
if (warned$
|
|
1422
|
+
if (warned$2.has(outlet) || outlet.previousElementSibling?.matches(routerTag)) {
|
|
1417
1423
|
continue;
|
|
1418
1424
|
}
|
|
1419
|
-
warned$
|
|
1425
|
+
warned$2.add(outlet);
|
|
1420
1426
|
console.warn(`[@wcstack/router] [wcs/router-outlet-misplaced] A <${routerTag}> uses only the element right after it ` +
|
|
1421
1427
|
`as its outlet, and this page has a <${outletTag}> that no router uses. The router makes an outlet of ` +
|
|
1422
1428
|
`its own right after itself, so the routes render there and the <${outletTag}> you placed stays empty. ` +
|
|
@@ -2306,7 +2312,7 @@ function runTransition(source, mutate, types) {
|
|
|
2306
2312
|
*
|
|
2307
2313
|
* 警告は要素ごとに 1 回。壊れている場合にのみ走るので、正常系のコストはゼロ。
|
|
2308
2314
|
*/
|
|
2309
|
-
const warned = new WeakSet();
|
|
2315
|
+
const warned$1 = new WeakSet();
|
|
2310
2316
|
/** `data-wcs`。router は state の config を読めないので既定名を直接持つ */
|
|
2311
2317
|
const BIND_ATTRIBUTE = "data-wcs";
|
|
2312
2318
|
function hasBinding(element) {
|
|
@@ -2318,10 +2324,10 @@ function hasBinding(element) {
|
|
|
2318
2324
|
* @param remedy その位置に固有の回避策
|
|
2319
2325
|
*/
|
|
2320
2326
|
function warnUnboundMarkup(element, where, remedy) {
|
|
2321
|
-
if (warned.has(element) || !hasBinding(element)) {
|
|
2327
|
+
if (warned$1.has(element) || !hasBinding(element)) {
|
|
2322
2328
|
return;
|
|
2323
2329
|
}
|
|
2324
|
-
warned.add(element);
|
|
2330
|
+
warned$1.add(element);
|
|
2325
2331
|
// 判定は **DOMContentLoaded まで**遅らせる。router の auto バンドルは state の
|
|
2326
2332
|
// ものより先に走るので、`<wcs-head>` が差し出す時点では binder がまだ居ない。
|
|
2327
2333
|
// そこで即断すると、この直後に正しく束ねられるノードを「壊れている」と報告する。
|
|
@@ -2412,8 +2418,11 @@ function bindRouteContent(route) {
|
|
|
2412
2418
|
* showRouteContent の相 1 であると同時に、SSR ハイドレーション
|
|
2413
2419
|
* (docs/ssr-router-design.md §4 — 採用はレンダリング最適化であって認可の
|
|
2414
2420
|
* スキップではない)からも同じ規則で呼ばれるため抽出した。
|
|
2421
|
+
*
|
|
2422
|
+
* `superseded` が真なら(ガードを待つ間に次のナビゲーションが始まった)、結果が通過でも
|
|
2423
|
+
* 拒否でも false を返し、リダイレクトもしない — 利用者はもう別の場所へ向かっている。
|
|
2415
2424
|
*/
|
|
2416
|
-
async function runGuardPhase(routerNode, matchResult) {
|
|
2425
|
+
async function runGuardPhase(routerNode, matchResult, superseded = () => false) {
|
|
2417
2426
|
try {
|
|
2418
2427
|
// guard がオブジェクトを返したルートのデータを親→子の順で浅くマージし、
|
|
2419
2428
|
// matchResult.data に載せる(applyRoute / SSR 採用が commit へ運ぶ)。
|
|
@@ -2425,11 +2434,15 @@ async function runGuardPhase(routerNode, matchResult) {
|
|
|
2425
2434
|
data = data === null ? routeData : Object.assign({}, data, routeData);
|
|
2426
2435
|
}
|
|
2427
2436
|
}
|
|
2437
|
+
if (superseded())
|
|
2438
|
+
return false;
|
|
2428
2439
|
matchResult.data = data;
|
|
2429
2440
|
redirectCounts.delete(routerNode);
|
|
2430
2441
|
}
|
|
2431
2442
|
catch (e) {
|
|
2432
2443
|
if (e instanceof GuardCancel) {
|
|
2444
|
+
if (superseded())
|
|
2445
|
+
return false;
|
|
2433
2446
|
const count = (redirectCounts.get(routerNode) ?? 0) + 1;
|
|
2434
2447
|
if (count > MAX_GUARD_REDIRECTS) {
|
|
2435
2448
|
redirectCounts.delete(routerNode);
|
|
@@ -2469,24 +2482,36 @@ async function runGuardPhase(routerNode, matchResult) {
|
|
|
2469
2482
|
*
|
|
2470
2483
|
* `beforeChange` はガード相を通った後、変更相の前に呼ぶ(applyRoute はここで commit する)。
|
|
2471
2484
|
*
|
|
2485
|
+
* `displayed` は画面に出ているルートの持ち主(applyRoute は outlet を渡す)。変更相はこれと
|
|
2486
|
+
* **当てる時点で**比べ、当てたらこれを書き換える。遷移に渡した変更は後で当たるので、
|
|
2487
|
+
* `lastRoutes`(呼んだ時点のルート)と比べると、前の遷移が当たる前に始まった次の
|
|
2488
|
+
* ナビゲーションは前の遷移の前のルートと比べてしまう — 戻るの 1 フレーム以内の進むは
|
|
2489
|
+
* 自分のルートを「もう出ている」と読んで何も置かず、URL と画面が食い違った
|
|
2490
|
+
* (docs/seam-apps.md、homeroom の取り込み)。裁定者は変更を渡された順に当てる。
|
|
2491
|
+
*
|
|
2492
|
+
* `superseded` はこのナビゲーションが後のナビゲーションに追い越されたか(runGuardPhase)。
|
|
2493
|
+
*
|
|
2472
2494
|
* @returns ガードチェックを通過してコンテンツ表示が成立した場合 true、
|
|
2473
|
-
* GuardCancel
|
|
2495
|
+
* GuardCancel により中断(フォールバックへ再ナビゲート)した場合と、ガードを待つ間に
|
|
2496
|
+
* 追い越された場合は false。
|
|
2474
2497
|
* 呼び出し側(applyRoute)は false の場合、router.path / outlet.lastRoutes を
|
|
2475
2498
|
* 更新しないことで「拒否されたパスでの path-changed 発火」を防ぐ。
|
|
2476
2499
|
*/
|
|
2477
|
-
async function showRouteContent(routerNode, matchResult, lastRoutes, beforeChange) {
|
|
2500
|
+
async function showRouteContent(routerNode, matchResult, lastRoutes, beforeChange, displayed = { lastRoutes }, superseded) {
|
|
2478
2501
|
// --- ガード相 ---
|
|
2479
|
-
if (!(await runGuardPhase(routerNode, matchResult))) {
|
|
2502
|
+
if (!(await runGuardPhase(routerNode, matchResult, superseded))) {
|
|
2480
2503
|
return false;
|
|
2481
2504
|
}
|
|
2482
2505
|
// 中身を描く前(applyRoute の commit — 中身のバインディングがこの遷移の出力を読めるように)
|
|
2483
2506
|
beforeChange?.();
|
|
2484
2507
|
// --- 変更相 ---
|
|
2485
2508
|
const routesSet = new Set(matchResult.routes);
|
|
2486
|
-
const lastRouteSet = new Set(lastRoutes);
|
|
2487
2509
|
const mutate = () => {
|
|
2510
|
+
// 当てる時点で出ているルートと比べる(上の `displayed`)
|
|
2511
|
+
const previous = displayed.lastRoutes;
|
|
2512
|
+
const lastRouteSet = new Set(previous);
|
|
2488
2513
|
// Hide previous routes
|
|
2489
|
-
for (const route of
|
|
2514
|
+
for (const route of previous) {
|
|
2490
2515
|
if (!routesSet.has(route)) {
|
|
2491
2516
|
hideRoute(route);
|
|
2492
2517
|
}
|
|
@@ -2512,10 +2537,11 @@ async function showRouteContent(routerNode, matchResult, lastRoutes, beforeChang
|
|
|
2512
2537
|
// 挿入の後。初回描画(lastRoutes が空)の内容は state のバインド構築時に
|
|
2513
2538
|
// document に居るので、そこは binder に渡す必要も報告する必要も無い。
|
|
2514
2539
|
// `bind()` 自体は冪等なので渡しても壊れないが、渡さないほうが安い。
|
|
2515
|
-
if (
|
|
2540
|
+
if (previous.length > 0 && !again) {
|
|
2516
2541
|
bindRouteContent(route);
|
|
2517
2542
|
}
|
|
2518
2543
|
}
|
|
2544
|
+
displayed.lastRoutes = matchResult.routes;
|
|
2519
2545
|
};
|
|
2520
2546
|
// 初回描画(=置き換える旧ルートが無い)は遷移に渡さない。state 側の
|
|
2521
2547
|
// 「初期レンダリングは決して包まない、包むのは drain だけ」と同じ規則で、
|
|
@@ -2542,6 +2568,8 @@ async function showRouteContent(routerNode, matchResult, lastRoutes, beforeChang
|
|
|
2542
2568
|
return true;
|
|
2543
2569
|
}
|
|
2544
2570
|
|
|
2571
|
+
/** router ごとの、最後に始まったナビゲーションの番号(追い越されたナビゲーションを見分ける) */
|
|
2572
|
+
const latestNavigation = new WeakMap();
|
|
2545
2573
|
/**
|
|
2546
2574
|
* ルートを適用する。返り値は committed — guard 拒否(GuardCancel)で中断された
|
|
2547
2575
|
* 場合のみ false。呼び出し側はこれで commit 後の処理(フォールバック経路の
|
|
@@ -2553,6 +2581,13 @@ async function showRouteContent(routerNode, matchResult, lastRoutes, beforeChang
|
|
|
2553
2581
|
*/
|
|
2554
2582
|
async function applyRoute(routerNode, outlet, fullPath, lastPath, search = "") {
|
|
2555
2583
|
const path = sliceBasename(fullPath, routerNode.basename);
|
|
2584
|
+
// このナビゲーションの番号。ガードを待つ間に次のナビゲーションが始まったら(読み込み中に別のリンク)、
|
|
2585
|
+
// ガード相の後で何もせずに降りる — 当てると、URL は後のナビゲーションのまま前のルートが画面に出た
|
|
2586
|
+
// (4.11 までは両方のルートが出た。docs/seam-apps.md、homeroom の取り込み)。クエリだけの
|
|
2587
|
+
// ナビゲーションも追い越す
|
|
2588
|
+
const navigation = (latestNavigation.get(routerNode) ?? 0) + 1;
|
|
2589
|
+
latestNavigation.set(routerNode, navigation);
|
|
2590
|
+
const superseded = () => latestNavigation.get(routerNode) !== navigation;
|
|
2556
2591
|
// same-match 高速パス(docs/router-state-contract-design.md §4.4)。
|
|
2557
2592
|
// guard はルートへの進入を守るものであり、クエリ変化は進入ではない —
|
|
2558
2593
|
// matchRoutes / guard 相 / showRouteContent をスキップし、transition-runner にも
|
|
@@ -2592,7 +2627,9 @@ async function applyRoute(routerNode, outlet, fullPath, lastPath, search = "") {
|
|
|
2592
2627
|
const lastRoutes = outlet.lastRoutes;
|
|
2593
2628
|
// guard 相を通ったら、中身を描く前に commit する(path-changed だけ描いた後)。中身の
|
|
2594
2629
|
// バインディングが最初からこの遷移の params / data を読めるように(Router.commitNavigation)。
|
|
2595
|
-
// GuardCancel で中断された場合は commit
|
|
2630
|
+
// GuardCancel で中断された場合は commit しない(拒否されたパスでの発火を防ぐため)。
|
|
2631
|
+
// outlet.lastRoutes は変更相が当てたときに書き換える(遷移を待った後のここではない — 遷移の中で
|
|
2632
|
+
// 待つ間に次のナビゲーションが当てたルートを、前のナビゲーションが古い値で上書きする)
|
|
2596
2633
|
const committed = await showRouteContent(routerNode, matchResult, lastRoutes, () => {
|
|
2597
2634
|
// routeName は最深マッチの name。fallback 時は fallback ルートの name(D8)。
|
|
2598
2635
|
routerNode.commitNavigation({
|
|
@@ -2604,11 +2641,14 @@ async function applyRoute(routerNode, outlet, fullPath, lastPath, search = "") {
|
|
|
2604
2641
|
search,
|
|
2605
2642
|
path,
|
|
2606
2643
|
}, true);
|
|
2607
|
-
});
|
|
2644
|
+
}, outlet, superseded);
|
|
2608
2645
|
if (!committed)
|
|
2609
2646
|
return false;
|
|
2610
2647
|
routerNode.releasePath();
|
|
2611
|
-
|
|
2648
|
+
// 遷移を待つ間に追い越された(戻るの直後の進む): 変更は当たっているが、フォーカスとアナウンスは
|
|
2649
|
+
// 後のナビゲーションのもの
|
|
2650
|
+
if (superseded())
|
|
2651
|
+
return true;
|
|
2612
2652
|
// オプトインの focus/announce は commit 直後・mutate() の外で適用する(D3)。
|
|
2613
2653
|
// 初回描画(lastRoutes が空)では動かない — ページロードはブラウザの担当で、
|
|
2614
2654
|
// view-transition の「初回は包まない」と同じ判定・同じ理由(§3-5)。
|
|
@@ -4333,13 +4373,16 @@ class Link extends HTMLElement {
|
|
|
4333
4373
|
// pathname だけ)。そのページ(aria-current="page")は今のページのクエリが `to` のクエリと等しいとき、
|
|
4334
4374
|
// match="prefix" なら含むときも("true"、パスの「下」と同じ)。`/search?q=a` の「次のページ」
|
|
4335
4375
|
// (`?q=a&page=2`)が「現在のページ」と読み上げられ(docs/seam-apps.md、city-library)、含む規則では
|
|
4336
|
-
// `page` を省いた 1 ページ目へのリンクがどのページでもそうだった(city-library
|
|
4376
|
+
// `page` を省いた 1 ページ目へのリンクがどのページでもそうだった(city-library の取り込み)。
|
|
4377
|
+
// `?` で終わる `to`(`to="/notices?"`、`to="?"` — 明示した空のクエリ)もクエリのある `to` で、そのページは
|
|
4378
|
+
// クエリの無いページだけ(href からは `?` を落とす)。クエリの無い `to` と同じに pathname だけで比べていたので、
|
|
4379
|
+
// 「すべて」のタブが `/notices?cat=event` でも現在のページで、現在のリンクが 2 つになった(docs/seam-apps.md、homeroom)
|
|
4337
4380
|
const current = new URL(window.location.href);
|
|
4338
4381
|
const currentPath = this._normalizePathname(current.pathname);
|
|
4339
4382
|
const { pathname, search } = splitUrlTarget(this._path);
|
|
4340
4383
|
const wanted = effectiveSearch(search);
|
|
4341
4384
|
const queryIncluded = queryIncludes(current.search, wanted);
|
|
4342
|
-
const queryEqual =
|
|
4385
|
+
const queryEqual = search === '' || queryEquals(current.search, wanted);
|
|
4343
4386
|
const linkPath = this._normalizePathname(this._isInternalTarget(this._path)
|
|
4344
4387
|
? (pathname === ""
|
|
4345
4388
|
? window.location.pathname
|
|
@@ -4646,6 +4689,66 @@ class Head extends HTMLElement {
|
|
|
4646
4689
|
}
|
|
4647
4690
|
}
|
|
4648
4691
|
|
|
4692
|
+
// ===========================================================================
|
|
4693
|
+
// AUTO-GENERATED FILE - DO NOT EDIT.
|
|
4694
|
+
// Generated from /protocol/define-element.ts by scripts/sync-protocol-types.mjs.
|
|
4695
|
+
// Run `node scripts/sync-protocol-types.mjs` after editing the source.
|
|
4696
|
+
// ===========================================================================
|
|
4697
|
+
/**
|
|
4698
|
+
* One copy of each package on a page (docs/timing-and-firing-contract.md §24). The first copy the
|
|
4699
|
+
* page evaluates defines the tags and a second one does nothing, so a copy that finds its tag defined
|
|
4700
|
+
* by another copy of the package — not its class, not a subclass of it, not the same version — warns
|
|
4701
|
+
* `[wcs/package-twice]` once per registry, naming both versions. The classes it defines carry
|
|
4702
|
+
* `"<package>@<version>"` under `Symbol.for("wcstack.package")`; a class without it is named
|
|
4703
|
+
* "another copy of <package> that does not name its version" (an older copy, or one loaded through
|
|
4704
|
+
* an entry that does not stamp).
|
|
4705
|
+
*/
|
|
4706
|
+
/** The static a class defined through this helper carries: `"@wcstack/fetch@<version>"`. */
|
|
4707
|
+
const PACKAGE_STAMP = Symbol.for("wcstack.package");
|
|
4708
|
+
/** The registries this copy warned about: one warning per package per registry. */
|
|
4709
|
+
const warned = new WeakSet();
|
|
4710
|
+
/**
|
|
4711
|
+
* Marks `cls` as defined by `pkg` (`"@wcstack/fetch@<version>"`). A subclass inherits the mark, and
|
|
4712
|
+
* `defineProperty` writes it even where a parent's mark is read-only.
|
|
4713
|
+
*/
|
|
4714
|
+
function stampPackage(cls, pkg) {
|
|
4715
|
+
Object.defineProperty(cls, PACKAGE_STAMP, { value: pkg, configurable: true });
|
|
4716
|
+
}
|
|
4717
|
+
/**
|
|
4718
|
+
* Warns when `tag` is defined as `existing` by another copy of the package `pkg` names: `existing`
|
|
4719
|
+
* is neither `own` nor a subclass of it (omit `own` when the copy has no class to compare with), and
|
|
4720
|
+
* carries another version or none. Once per registry.
|
|
4721
|
+
*/
|
|
4722
|
+
function warnIfAnotherCopy(registry, tag, existing, own, pkg) {
|
|
4723
|
+
if (own !== undefined && (existing === own || existing.prototype instanceof own))
|
|
4724
|
+
return;
|
|
4725
|
+
const theirs = existing[PACKAGE_STAMP];
|
|
4726
|
+
if (theirs === pkg || warned.has(registry))
|
|
4727
|
+
return;
|
|
4728
|
+
warned.add(registry);
|
|
4729
|
+
const name = pkg.slice(0, pkg.lastIndexOf("@"));
|
|
4730
|
+
console.warn(`[${name}] [wcs/package-twice] <${tag}> is already defined by ` +
|
|
4731
|
+
`${theirs ?? `another copy of ${name} that does not name its version`}; ` +
|
|
4732
|
+
`this copy, ${pkg}, does nothing. Load each package once.`);
|
|
4733
|
+
}
|
|
4734
|
+
/**
|
|
4735
|
+
* Defines each `[tag, class]` in `registry` unless the tag is already defined, stamping the class
|
|
4736
|
+
* with `pkg` (`"@wcstack/fetch@<version>"`). A tag another copy of the package defined first is left
|
|
4737
|
+
* as it is, with the warning above.
|
|
4738
|
+
*/
|
|
4739
|
+
function defineElements(registry, pkg, definitions) {
|
|
4740
|
+
for (const [tag, cls] of definitions) {
|
|
4741
|
+
const existing = registry.get(tag);
|
|
4742
|
+
if (existing === undefined) {
|
|
4743
|
+
stampPackage(cls, pkg);
|
|
4744
|
+
registry.define(tag, cls);
|
|
4745
|
+
}
|
|
4746
|
+
else {
|
|
4747
|
+
warnIfAnotherCopy(registry, tag, existing, cls, pkg);
|
|
4748
|
+
}
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4649
4752
|
/**
|
|
4650
4753
|
* Register this package's tags. Pass a scoped `CustomElementRegistry` to define
|
|
4651
4754
|
* them for a single shadow tree -- scoped registries do not inherit the global
|
|
@@ -4653,27 +4756,15 @@ class Head extends HTMLElement {
|
|
|
4653
4756
|
*/
|
|
4654
4757
|
function registerComponents(registry = customElements) {
|
|
4655
4758
|
// Register custom element
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
if (!registry.get(config.tagNames.route)) {
|
|
4666
|
-
registry.define(config.tagNames.route, Route);
|
|
4667
|
-
}
|
|
4668
|
-
if (!registry.get(config.tagNames.router)) {
|
|
4669
|
-
registry.define(config.tagNames.router, Router);
|
|
4670
|
-
}
|
|
4671
|
-
if (!registry.get(config.tagNames.link)) {
|
|
4672
|
-
registry.define(config.tagNames.link, Link);
|
|
4673
|
-
}
|
|
4674
|
-
if (!registry.get(config.tagNames.head)) {
|
|
4675
|
-
registry.define(config.tagNames.head, Head);
|
|
4676
|
-
}
|
|
4759
|
+
defineElements(registry, `${pkg.name}@${pkg.version}`, [
|
|
4760
|
+
[config.tagNames.layout, Layout],
|
|
4761
|
+
[config.tagNames.layoutOutlet, LayoutOutlet],
|
|
4762
|
+
[config.tagNames.outlet, Outlet],
|
|
4763
|
+
[config.tagNames.route, Route],
|
|
4764
|
+
[config.tagNames.router, Router],
|
|
4765
|
+
[config.tagNames.link, Link],
|
|
4766
|
+
[config.tagNames.head, Head],
|
|
4767
|
+
]);
|
|
4677
4768
|
}
|
|
4678
4769
|
|
|
4679
4770
|
/**
|
|
@@ -4688,10 +4779,6 @@ function bootstrapRouter(config, registry) {
|
|
|
4688
4779
|
registerComponents(registry);
|
|
4689
4780
|
}
|
|
4690
4781
|
|
|
4691
|
-
var version = "4.10.1";
|
|
4692
|
-
var pkg = {
|
|
4693
|
-
version: version};
|
|
4694
|
-
|
|
4695
4782
|
const VERSION = pkg.version;
|
|
4696
4783
|
|
|
4697
4784
|
export { Route, RouteCore, Router, TRUSTED_TYPES_POLICY_SLOT, VERSION, bootstrapRouter, getConfig, getTrustedTypesPolicy, setTrustedTypesPolicy };
|