@riboseinc/anafero-cli 0.0.35 → 0.0.37
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/bootstrap.js +433 -422
- package/bootstrap.js.map +4 -4
- package/build-site.mjs +7 -1
- package/package.json +1 -1
- package/riboseinc-anafero-cli-0.0.37.tgz +0 -0
- package/riboseinc-anafero-cli-0.0.35.tgz +0 -0
package/bootstrap.js
CHANGED
|
@@ -95056,14 +95056,14 @@ schema (${ast._tag}): ${ast}`;
|
|
|
95056
95056
|
}
|
|
95057
95057
|
});
|
|
95058
95058
|
|
|
95059
|
-
// ../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/
|
|
95060
|
-
var
|
|
95061
|
-
"../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/
|
|
95059
|
+
// ../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/Delete.js
|
|
95060
|
+
var require_Delete = __commonJS({
|
|
95061
|
+
"../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/Delete.js"(exports) {
|
|
95062
95062
|
"use strict";
|
|
95063
95063
|
Object.defineProperty(exports, "__esModule", {
|
|
95064
95064
|
value: true
|
|
95065
95065
|
});
|
|
95066
|
-
exports.
|
|
95066
|
+
exports.A4uDelete = A4uDelete;
|
|
95067
95067
|
var _react = _interopRequireDefault(require_react());
|
|
95068
95068
|
function _interopRequireDefault(obj) {
|
|
95069
95069
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -95082,71 +95082,26 @@ schema (${ast._tag}): ${ast}`;
|
|
|
95082
95082
|
};
|
|
95083
95083
|
return _extends7.apply(this, arguments);
|
|
95084
95084
|
}
|
|
95085
|
-
function
|
|
95085
|
+
function A4uDelete(_ref) {
|
|
95086
95086
|
var props = _extends7({}, _ref);
|
|
95087
95087
|
return /* @__PURE__ */ _react["default"].createElement("svg", _extends7({
|
|
95088
95088
|
viewBox: "0 0 36 36"
|
|
95089
|
-
}, props, props), /* @__PURE__ */ _react["default"].createElement("
|
|
95090
|
-
fillRule: "evenodd",
|
|
95091
|
-
height: "6",
|
|
95092
|
-
rx: "2.8",
|
|
95093
|
-
ry: "2.8",
|
|
95094
|
-
width: "6",
|
|
95095
|
-
x: "4",
|
|
95096
|
-
y: "2"
|
|
95097
|
-
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95098
|
-
fillRule: "evenodd",
|
|
95099
|
-
height: "6",
|
|
95100
|
-
rx: "2.8",
|
|
95101
|
-
ry: "2.8",
|
|
95102
|
-
width: "6",
|
|
95103
|
-
x: "12",
|
|
95104
|
-
y: "14"
|
|
95105
|
-
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95106
|
-
fillRule: "evenodd",
|
|
95107
|
-
height: "6",
|
|
95108
|
-
rx: "2.8",
|
|
95109
|
-
ry: "2.8",
|
|
95110
|
-
width: "6",
|
|
95111
|
-
x: "12",
|
|
95112
|
-
y: "26"
|
|
95113
|
-
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95114
|
-
fillRule: "evenodd",
|
|
95115
|
-
height: "4",
|
|
95116
|
-
rx: "1",
|
|
95117
|
-
ry: "1",
|
|
95118
|
-
width: "14",
|
|
95119
|
-
x: "20",
|
|
95120
|
-
y: "28"
|
|
95121
|
-
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95122
|
-
fillRule: "evenodd",
|
|
95123
|
-
height: "4",
|
|
95124
|
-
rx: "1",
|
|
95125
|
-
ry: "1",
|
|
95126
|
-
width: "14",
|
|
95127
|
-
x: "20",
|
|
95128
|
-
y: "16"
|
|
95129
|
-
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95089
|
+
}, props, props), /* @__PURE__ */ _react["default"].createElement("path", {
|
|
95130
95090
|
fillRule: "evenodd",
|
|
95131
|
-
|
|
95132
|
-
rx: "1",
|
|
95133
|
-
ry: "1",
|
|
95134
|
-
width: "22",
|
|
95135
|
-
x: "12",
|
|
95136
|
-
y: "4"
|
|
95091
|
+
d: "M31.5,6H24V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V6H2.5a.5.5,0,0,0-.5.5v1a.5.5,0,0,0,.5.5h2L6.913,33.1a1,1,0,0,0,1,.9H26.092a1,1,0,0,0,1-.9L29.5,8h2a.5.5,0,0,0,.5-.5v-1A.5.5,0,0,0,31.5,6ZM11.065,29A1,1,0,0,1,10,28.068l-1.071-16a1,1,0,1,1,2-.134l1.071,16A1,1,0,0,1,11.065,29ZM18,28a1,1,0,0,1-2,0V12a1,1,0,0,1,2,0ZM22,6H12V4H22Zm2,22.068A1,1,0,1,1,22,27.934l1.071-16a1,1,0,1,1,2,.134Z"
|
|
95137
95092
|
}));
|
|
95138
95093
|
}
|
|
95139
95094
|
}
|
|
95140
95095
|
});
|
|
95141
95096
|
|
|
95142
|
-
// ../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/
|
|
95143
|
-
var
|
|
95144
|
-
"../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/
|
|
95097
|
+
// ../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/ChevronDown.js
|
|
95098
|
+
var require_ChevronDown = __commonJS({
|
|
95099
|
+
"../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/ChevronDown.js"(exports) {
|
|
95145
95100
|
"use strict";
|
|
95146
95101
|
Object.defineProperty(exports, "__esModule", {
|
|
95147
95102
|
value: true
|
|
95148
95103
|
});
|
|
95149
|
-
exports.
|
|
95104
|
+
exports.A4uChevronDown = A4uChevronDown;
|
|
95150
95105
|
var _react = _interopRequireDefault(require_react());
|
|
95151
95106
|
function _interopRequireDefault(obj) {
|
|
95152
95107
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -95165,26 +95120,26 @@ schema (${ast._tag}): ${ast}`;
|
|
|
95165
95120
|
};
|
|
95166
95121
|
return _extends7.apply(this, arguments);
|
|
95167
95122
|
}
|
|
95168
|
-
function
|
|
95123
|
+
function A4uChevronDown(_ref) {
|
|
95169
95124
|
var props = _extends7({}, _ref);
|
|
95170
95125
|
return /* @__PURE__ */ _react["default"].createElement("svg", _extends7({
|
|
95171
95126
|
viewBox: "0 0 36 36"
|
|
95172
95127
|
}, props, props), /* @__PURE__ */ _react["default"].createElement("path", {
|
|
95173
95128
|
fillRule: "evenodd",
|
|
95174
|
-
d: "
|
|
95129
|
+
d: "M8,14.02a2,2,0,0,1,3.411-1.411l6.578,6.572,6.578-6.572a2,2,0,0,1,2.874,2.773l-.049.049L19.4,23.415a2,2,0,0,1-2.825,0h0L8.586,15.432A1.989,1.989,0,0,1,8,14.02Z"
|
|
95175
95130
|
}));
|
|
95176
95131
|
}
|
|
95177
95132
|
}
|
|
95178
95133
|
});
|
|
95179
95134
|
|
|
95180
|
-
// ../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/
|
|
95181
|
-
var
|
|
95182
|
-
"../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/
|
|
95135
|
+
// ../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/TextBulletedHierarchy.js
|
|
95136
|
+
var require_TextBulletedHierarchy = __commonJS({
|
|
95137
|
+
"../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/TextBulletedHierarchy.js"(exports) {
|
|
95183
95138
|
"use strict";
|
|
95184
95139
|
Object.defineProperty(exports, "__esModule", {
|
|
95185
95140
|
value: true
|
|
95186
95141
|
});
|
|
95187
|
-
exports.
|
|
95142
|
+
exports.A4uTextBulletedHierarchy = A4uTextBulletedHierarchy;
|
|
95188
95143
|
var _react = _interopRequireDefault(require_react());
|
|
95189
95144
|
function _interopRequireDefault(obj) {
|
|
95190
95145
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -95203,26 +95158,71 @@ schema (${ast._tag}): ${ast}`;
|
|
|
95203
95158
|
};
|
|
95204
95159
|
return _extends7.apply(this, arguments);
|
|
95205
95160
|
}
|
|
95206
|
-
function
|
|
95161
|
+
function A4uTextBulletedHierarchy(_ref) {
|
|
95207
95162
|
var props = _extends7({}, _ref);
|
|
95208
95163
|
return /* @__PURE__ */ _react["default"].createElement("svg", _extends7({
|
|
95209
95164
|
viewBox: "0 0 36 36"
|
|
95210
|
-
}, props, props), /* @__PURE__ */ _react["default"].createElement("
|
|
95165
|
+
}, props, props), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95211
95166
|
fillRule: "evenodd",
|
|
95212
|
-
|
|
95167
|
+
height: "6",
|
|
95168
|
+
rx: "2.8",
|
|
95169
|
+
ry: "2.8",
|
|
95170
|
+
width: "6",
|
|
95171
|
+
x: "4",
|
|
95172
|
+
y: "2"
|
|
95173
|
+
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95174
|
+
fillRule: "evenodd",
|
|
95175
|
+
height: "6",
|
|
95176
|
+
rx: "2.8",
|
|
95177
|
+
ry: "2.8",
|
|
95178
|
+
width: "6",
|
|
95179
|
+
x: "12",
|
|
95180
|
+
y: "14"
|
|
95181
|
+
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95182
|
+
fillRule: "evenodd",
|
|
95183
|
+
height: "6",
|
|
95184
|
+
rx: "2.8",
|
|
95185
|
+
ry: "2.8",
|
|
95186
|
+
width: "6",
|
|
95187
|
+
x: "12",
|
|
95188
|
+
y: "26"
|
|
95189
|
+
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95190
|
+
fillRule: "evenodd",
|
|
95191
|
+
height: "4",
|
|
95192
|
+
rx: "1",
|
|
95193
|
+
ry: "1",
|
|
95194
|
+
width: "14",
|
|
95195
|
+
x: "20",
|
|
95196
|
+
y: "28"
|
|
95197
|
+
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95198
|
+
fillRule: "evenodd",
|
|
95199
|
+
height: "4",
|
|
95200
|
+
rx: "1",
|
|
95201
|
+
ry: "1",
|
|
95202
|
+
width: "14",
|
|
95203
|
+
x: "20",
|
|
95204
|
+
y: "16"
|
|
95205
|
+
}), /* @__PURE__ */ _react["default"].createElement("rect", {
|
|
95206
|
+
fillRule: "evenodd",
|
|
95207
|
+
height: "4",
|
|
95208
|
+
rx: "1",
|
|
95209
|
+
ry: "1",
|
|
95210
|
+
width: "22",
|
|
95211
|
+
x: "12",
|
|
95212
|
+
y: "4"
|
|
95213
95213
|
}));
|
|
95214
95214
|
}
|
|
95215
95215
|
}
|
|
95216
95216
|
});
|
|
95217
95217
|
|
|
95218
|
-
// ../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/
|
|
95219
|
-
var
|
|
95220
|
-
"../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/
|
|
95218
|
+
// ../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/Search.js
|
|
95219
|
+
var require_Search = __commonJS({
|
|
95220
|
+
"../../.yarn/__virtual__/@adobe-react-spectrum-workflow-virtual-ede09a57cf/0/cache/@adobe-react-spectrum-workflow-npm-2.3.5-8898bfab3a-65de62192c.zip/node_modules/@adobe/react-spectrum-workflow/dist/Search.js"(exports) {
|
|
95221
95221
|
"use strict";
|
|
95222
95222
|
Object.defineProperty(exports, "__esModule", {
|
|
95223
95223
|
value: true
|
|
95224
95224
|
});
|
|
95225
|
-
exports.
|
|
95225
|
+
exports.A4uSearch = A4uSearch;
|
|
95226
95226
|
var _react = _interopRequireDefault(require_react());
|
|
95227
95227
|
function _interopRequireDefault(obj) {
|
|
95228
95228
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -95241,13 +95241,13 @@ schema (${ast._tag}): ${ast}`;
|
|
|
95241
95241
|
};
|
|
95242
95242
|
return _extends7.apply(this, arguments);
|
|
95243
95243
|
}
|
|
95244
|
-
function
|
|
95244
|
+
function A4uSearch(_ref) {
|
|
95245
95245
|
var props = _extends7({}, _ref);
|
|
95246
95246
|
return /* @__PURE__ */ _react["default"].createElement("svg", _extends7({
|
|
95247
95247
|
viewBox: "0 0 36 36"
|
|
95248
95248
|
}, props, props), /* @__PURE__ */ _react["default"].createElement("path", {
|
|
95249
95249
|
fillRule: "evenodd",
|
|
95250
|
-
d: "
|
|
95250
|
+
d: "M33.173,30.215,25.4,22.443A12.826,12.826,0,1,0,22.443,25.4l7.772,7.772a2.1,2.1,0,0,0,2.958-2.958ZM6,15a9,9,0,1,1,9,9A9,9,0,0,1,6,15Z"
|
|
95251
95251
|
}));
|
|
95252
95252
|
}
|
|
95253
95253
|
}
|
|
@@ -129554,6 +129554,17 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129554
129554
|
init_anafero();
|
|
129555
129555
|
init_anafero();
|
|
129556
129556
|
|
|
129557
|
+
// Nav.tsx
|
|
129558
|
+
var import_lunr = __toESM(require_lunr(), 1);
|
|
129559
|
+
var import_react202 = __toESM(require_react(), 1);
|
|
129560
|
+
|
|
129561
|
+
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/Delete.module.mjs
|
|
129562
|
+
var import_Delete = __toESM(require_Delete(), 1);
|
|
129563
|
+
var import_react201 = __toESM(require_react(), 1);
|
|
129564
|
+
function Delete(props) {
|
|
129565
|
+
return /* @__PURE__ */ import_react201.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react201.default.createElement(import_Delete.A4uDelete, null));
|
|
129566
|
+
}
|
|
129567
|
+
|
|
129557
129568
|
// model.mts
|
|
129558
129569
|
init_Schema();
|
|
129559
129570
|
var BrowsingModeSchema = Literal2("hierarchy", "search", "bookmarks");
|
|
@@ -129730,21 +129741,287 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129730
129741
|
}
|
|
129731
129742
|
}
|
|
129732
129743
|
|
|
129733
|
-
//
|
|
129744
|
+
// style.module.css
|
|
129745
|
+
var style_default = {
|
|
129746
|
+
floatingSubresourceLink: "style_floatingSubresourceLink",
|
|
129747
|
+
floatingSubresourceLinkAnchor: "style_floatingSubresourceLinkAnchor",
|
|
129748
|
+
lastVisibleResourceMarkerIntersection: "style_lastVisibleResourceMarkerIntersection",
|
|
129749
|
+
resourceLoadingOrMissingPlaceholder: "style_resourceLoadingOrMissingPlaceholder",
|
|
129750
|
+
withNav: "style_withNav",
|
|
129751
|
+
resource: "style_resource",
|
|
129752
|
+
active: "style_active",
|
|
129753
|
+
"is-disabled": "style_is-disabled",
|
|
129754
|
+
resourceBreadcrumbsNav: "style_resourceBreadcrumbsNav",
|
|
129755
|
+
navListView: "style_navListView",
|
|
129756
|
+
browserBar: "style_browserBar",
|
|
129757
|
+
browserBarTitle: "style_browserBarTitle",
|
|
129758
|
+
browserBarToolbar: "style_browserBarToolbar",
|
|
129759
|
+
browserBarToolbarGroup: "style_browserBarToolbarGroup",
|
|
129760
|
+
progressWrapper: "style_progressWrapper",
|
|
129761
|
+
progressIdle: "style_progressIdle",
|
|
129762
|
+
nav: "style_nav",
|
|
129763
|
+
navStickyHeader: "style_navStickyHeader"
|
|
129764
|
+
};
|
|
129765
|
+
|
|
129766
|
+
// Nav.tsx
|
|
129767
|
+
var Bookmarks = function({ bookmarkedResources, locateResource, getPlainTitle, onRemoveBookmark }) {
|
|
129768
|
+
return /* @__PURE__ */ import_react202.default.createElement(
|
|
129769
|
+
$f85fb77f9d4cbc6c$export$84d0dd190d551cd1,
|
|
129770
|
+
{
|
|
129771
|
+
flexGrow: 1,
|
|
129772
|
+
UNSAFE_className: style_default.navListView,
|
|
129773
|
+
items: Array.from(bookmarkedResources).map((res) => ({ id: res })),
|
|
129774
|
+
renderEmptyState: () => /* @__PURE__ */ import_react202.default.createElement(import_react202.default.Fragment, null, "There are no bookmarks.")
|
|
129775
|
+
},
|
|
129776
|
+
(res) => /* @__PURE__ */ import_react202.default.createElement(
|
|
129777
|
+
$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,
|
|
129778
|
+
{
|
|
129779
|
+
key: res.id,
|
|
129780
|
+
textValue: "A bookmarked resource",
|
|
129781
|
+
href: locateResource(res.id)
|
|
129782
|
+
},
|
|
129783
|
+
/* @__PURE__ */ import_react202.default.createElement($cd449e8defa988f0$export$5f1af8db9871e1d6, null, getPlainTitle(res.id)),
|
|
129784
|
+
onRemoveBookmark ? /* @__PURE__ */ import_react202.default.createElement($a04ee251ffcc2690$export$c21a5597f732a168, { onAction: () => onRemoveBookmark?.(res.id) }, /* @__PURE__ */ import_react202.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: "delete", "aria-label": "Delete bookmark", textValue: "Delete bookmark" }, /* @__PURE__ */ import_react202.default.createElement(Delete, null))) : null
|
|
129785
|
+
)
|
|
129786
|
+
);
|
|
129787
|
+
};
|
|
129788
|
+
var MAX_SEARCH_RESULT_COUNT = 100;
|
|
129789
|
+
var Search = function({ index, selected, onSelect, query, getPlainTitle, locateResource, getContainingPageURI, onEditQueryText }) {
|
|
129790
|
+
const [debouncedQuery] = a(query.text, 200);
|
|
129791
|
+
const [showMore, setShowMore] = (0, import_react202.useState)(false);
|
|
129792
|
+
const [matches2, error] = (0, import_react202.useMemo)(() => {
|
|
129793
|
+
if (index && debouncedQuery.trim() !== "") {
|
|
129794
|
+
const tokens = import_lunr.default.tokenizer(debouncedQuery.replace(/:/g, " "));
|
|
129795
|
+
console.debug("Search: tokens", tokens);
|
|
129796
|
+
try {
|
|
129797
|
+
let exact;
|
|
129798
|
+
try {
|
|
129799
|
+
exact = (index.query((query2) => {
|
|
129800
|
+
query2.term(debouncedQuery, {
|
|
129801
|
+
presence: import_lunr.default.Query.presence.REQUIRED,
|
|
129802
|
+
wildcard: import_lunr.default.Query.wildcard.LEADING | import_lunr.default.Query.wildcard.TRAILING
|
|
129803
|
+
});
|
|
129804
|
+
}) ?? []).slice(0, MAX_SEARCH_RESULT_COUNT);
|
|
129805
|
+
} catch (e2) {
|
|
129806
|
+
exact = [];
|
|
129807
|
+
console.error("Failed exact search", e2);
|
|
129808
|
+
}
|
|
129809
|
+
const full = exact.length < 1 || showMore ? (index.query((query2) => {
|
|
129810
|
+
query2.term(tokens, {
|
|
129811
|
+
presence: import_lunr.default.Query.presence.REQUIRED
|
|
129812
|
+
});
|
|
129813
|
+
}) ?? []).slice(0, MAX_SEARCH_RESULT_COUNT) : [];
|
|
129814
|
+
const partial5 = exact.length < 1 && full.length < 1 || showMore ? (index.query((query2) => {
|
|
129815
|
+
query2.term(tokens, {
|
|
129816
|
+
presence: import_lunr.default.Query.presence.OPTIONAL,
|
|
129817
|
+
wildcard: import_lunr.default.Query.wildcard.LEADING | import_lunr.default.Query.wildcard.TRAILING
|
|
129818
|
+
});
|
|
129819
|
+
}) ?? []).slice(0, MAX_SEARCH_RESULT_COUNT) : [];
|
|
129820
|
+
return [{ exact, full, partial: partial5 }, null];
|
|
129821
|
+
} catch (e2) {
|
|
129822
|
+
console.error(e2);
|
|
129823
|
+
return [{ exact: [], full: [], partial: [] }, "Sorry, something went wrong"];
|
|
129824
|
+
}
|
|
129825
|
+
} else {
|
|
129826
|
+
return [{ exact: [], full: [], partial: [] }, null];
|
|
129827
|
+
}
|
|
129828
|
+
}, [index, debouncedQuery, showMore]);
|
|
129829
|
+
const results = (0, import_react202.useMemo)(() => {
|
|
129830
|
+
const allResults = (Object.entries(matches2).flatMap(([matchType, results2]) => {
|
|
129831
|
+
console.debug(matchType, results2.length);
|
|
129832
|
+
return results2.map((res) => ({ [res.ref]: res }));
|
|
129833
|
+
}) ?? []).reduce((prev, curr) => ({ ...prev, ...curr }), {});
|
|
129834
|
+
return Object.values(allResults).map((res) => ({ ...res, id: res.ref, name: res.ref }));
|
|
129835
|
+
}, [matches2]);
|
|
129836
|
+
(0, import_react202.useEffect)(() => {
|
|
129837
|
+
setShowMore(false);
|
|
129838
|
+
}, [debouncedQuery]);
|
|
129839
|
+
const renderItem = (0, import_react202.useCallback)((result) => {
|
|
129840
|
+
const title = getPlainTitle(result.ref);
|
|
129841
|
+
return /* @__PURE__ */ import_react202.default.createElement(
|
|
129842
|
+
$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,
|
|
129843
|
+
{
|
|
129844
|
+
href: locateResource(result.ref),
|
|
129845
|
+
key: result.ref,
|
|
129846
|
+
textValue: title
|
|
129847
|
+
},
|
|
129848
|
+
/* @__PURE__ */ import_react202.default.createElement($cd449e8defa988f0$export$5f1af8db9871e1d6, null, title, " "),
|
|
129849
|
+
/* @__PURE__ */ import_react202.default.createElement($cd449e8defa988f0$export$5f1af8db9871e1d6, { slot: "description" }, getPlainTitle(getContainingPageURI(result.ref)))
|
|
129850
|
+
);
|
|
129851
|
+
}, [showMore, getPlainTitle, getContainingPageURI]);
|
|
129852
|
+
const showMoreButton = matches2.exact.length > 0 || matches2.full.length > 0 ? /* @__PURE__ */ import_react202.default.createElement("a", { onClick: () => setShowMore(!showMore) }, "(", showMore ? "Show fewer" : "Check for more matches", ")") : null;
|
|
129853
|
+
return /* @__PURE__ */ import_react202.default.createElement(import_react202.default.Fragment, null, /* @__PURE__ */ import_react202.default.createElement(
|
|
129854
|
+
$f85fb77f9d4cbc6c$export$84d0dd190d551cd1,
|
|
129855
|
+
{
|
|
129856
|
+
flex: 1,
|
|
129857
|
+
items: results,
|
|
129858
|
+
UNSAFE_className: style_default.navListView,
|
|
129859
|
+
selectedKeys: new Set(selected ? [selected] : []),
|
|
129860
|
+
onSelectionChange: (selectedKeys) => {
|
|
129861
|
+
const key = selectedKeys !== "all" ? selectedKeys.keys().next().value : void 0;
|
|
129862
|
+
if (key) {
|
|
129863
|
+
onSelect(`${key}`);
|
|
129864
|
+
}
|
|
129865
|
+
},
|
|
129866
|
+
selectionMode: "single",
|
|
129867
|
+
selectionStyle: "highlight",
|
|
129868
|
+
"aria-label": "Matching resources found",
|
|
129869
|
+
renderEmptyState: () => /* @__PURE__ */ import_react202.default.createElement(import_react202.default.Fragment, null)
|
|
129870
|
+
},
|
|
129871
|
+
renderItem
|
|
129872
|
+
), /* @__PURE__ */ import_react202.default.createElement(
|
|
129873
|
+
$a6a4ace9217ce6df$export$b94867ecbd698f21,
|
|
129874
|
+
{
|
|
129875
|
+
width: "100%",
|
|
129876
|
+
autoFocus: true,
|
|
129877
|
+
alignSelf: "stretch",
|
|
129878
|
+
onChange: onEditQueryText ?? (() => {
|
|
129879
|
+
}),
|
|
129880
|
+
isReadOnly: !onEditQueryText,
|
|
129881
|
+
label: "Search resources",
|
|
129882
|
+
value: query.text,
|
|
129883
|
+
errorMessage: error,
|
|
129884
|
+
UNSAFE_className: style_default.navStickyHeader,
|
|
129885
|
+
validationState: error ? "invalid" : "valid",
|
|
129886
|
+
description: results.length > 0 ? /* @__PURE__ */ import_react202.default.createElement(import_react202.default.Fragment, null, results.length >= MAX_SEARCH_RESULT_COUNT ? "At least " : "", results.length, " resources matched. ", showMoreButton) : query.text.trim() === "" ? "Please enter a search query." : "No results to show."
|
|
129887
|
+
}
|
|
129888
|
+
));
|
|
129889
|
+
};
|
|
129890
|
+
|
|
129891
|
+
// NavHierarchy2.tsx
|
|
129892
|
+
var import_react204 = __toESM(require_react(), 1);
|
|
129893
|
+
|
|
129894
|
+
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/ChevronDown.module.mjs
|
|
129895
|
+
var import_ChevronDown = __toESM(require_ChevronDown(), 1);
|
|
129734
129896
|
var import_react203 = __toESM(require_react(), 1);
|
|
129897
|
+
function ChevronDown(props) {
|
|
129898
|
+
return /* @__PURE__ */ import_react203.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react203.default.createElement(import_ChevronDown.A4uChevronDown, null));
|
|
129899
|
+
}
|
|
129900
|
+
|
|
129901
|
+
// NavHierarchy2.tsx
|
|
129902
|
+
var Hierarchy = import_react204.default.memo(function({ pageMap, getResourceTitle, selected, onSelect, implicitlyExpanded, expanded, onExpand }) {
|
|
129903
|
+
const allPaths = (0, import_react204.useMemo)(() => Object.keys(pageMap), [pageMap]);
|
|
129904
|
+
const items = (0, import_react204.useMemo)(() => {
|
|
129905
|
+
return Object.entries(pageMap).filter(([path]) => {
|
|
129906
|
+
const parentPath = path.includes("/") ? `${path.slice(0, path.lastIndexOf("/"))}` : "";
|
|
129907
|
+
const parentURI = pageMap[parentPath];
|
|
129908
|
+
if (!parentURI) {
|
|
129909
|
+
console.warn("Unable to find URI for parent path", parentPath);
|
|
129910
|
+
}
|
|
129911
|
+
const shouldAppear = !![...expanded.values()].find((expandedURI) => expandedURI === parentURI);
|
|
129912
|
+
return shouldAppear;
|
|
129913
|
+
}).map(([path, id3]) => {
|
|
129914
|
+
const level = path === "" ? 0 : (path.match(/\//g) ?? []).length + 1;
|
|
129915
|
+
return {
|
|
129916
|
+
path,
|
|
129917
|
+
id: id3,
|
|
129918
|
+
title: getResourceTitle(id3),
|
|
129919
|
+
// Count slashes
|
|
129920
|
+
level,
|
|
129921
|
+
hasChildren: allPaths.find((p) => p.startsWith(`${path}/`)) !== void 0
|
|
129922
|
+
};
|
|
129923
|
+
});
|
|
129924
|
+
}, [expanded, allPaths, pageMap, getResourceTitle]);
|
|
129925
|
+
const [hasScrolled, setHasScrolled] = (0, import_react204.useState)(null);
|
|
129926
|
+
const scrollToMe = c((id3, el) => {
|
|
129927
|
+
if (hasScrolled !== id3) {
|
|
129928
|
+
el.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
129929
|
+
setHasScrolled(id3);
|
|
129930
|
+
}
|
|
129931
|
+
}, 200);
|
|
129932
|
+
const listElRef = (0, import_react204.useCallback)((elRef) => {
|
|
129933
|
+
const sel = selected.values().next().value;
|
|
129934
|
+
if (sel) {
|
|
129935
|
+
const el = elRef?.UNSAFE_getDOMNode()?.querySelector(`[data-resource-id="${sel}"]`);
|
|
129936
|
+
if (el) {
|
|
129937
|
+
scrollToMe(sel, el);
|
|
129938
|
+
}
|
|
129939
|
+
}
|
|
129940
|
+
}, [selected, hasScrolled]);
|
|
129941
|
+
const toggleExpanded = (0, import_react204.useCallback)(function toggleExpanded2(itemID) {
|
|
129942
|
+
if (expanded.has(itemID)) {
|
|
129943
|
+
onExpand?.(new Set([...expanded].filter((i2) => i2 !== itemID)));
|
|
129944
|
+
} else {
|
|
129945
|
+
onExpand?.(/* @__PURE__ */ new Set([...expanded, itemID]));
|
|
129946
|
+
}
|
|
129947
|
+
}, [expanded, onExpand]);
|
|
129948
|
+
const itemView = (0, import_react204.useCallback)((item) => {
|
|
129949
|
+
const isExpanded = expanded.has(item.id);
|
|
129950
|
+
const isForceExpanded = implicitlyExpanded.has(item.id);
|
|
129951
|
+
return /* @__PURE__ */ import_react204.default.createElement(
|
|
129952
|
+
$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,
|
|
129953
|
+
{
|
|
129954
|
+
key: item.id,
|
|
129955
|
+
href: `/${item.path}`,
|
|
129956
|
+
textValue: item.title
|
|
129957
|
+
},
|
|
129958
|
+
/* @__PURE__ */ import_react204.default.createElement($cd449e8defa988f0$export$5f1af8db9871e1d6, { UNSAFE_style: { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", marginLeft: `${item.level * 1}em` } }, item.title),
|
|
129959
|
+
item.hasChildren ? /* @__PURE__ */ import_react204.default.createElement(
|
|
129960
|
+
$042ad0b3a4a55b33$export$cfc7921d29ef7b80,
|
|
129961
|
+
{
|
|
129962
|
+
isDisabled: isForceExpanded,
|
|
129963
|
+
onPress: () => toggleExpanded(item.id)
|
|
129964
|
+
},
|
|
129965
|
+
isExpanded ? /* @__PURE__ */ import_react204.default.createElement(ChevronDown, null) : /* @__PURE__ */ import_react204.default.createElement(ChevronLeft, null)
|
|
129966
|
+
) : null,
|
|
129967
|
+
/* @__PURE__ */ import_react204.default.createElement("div", { role: "presentation", "data-resource-id": item.id })
|
|
129968
|
+
);
|
|
129969
|
+
}, [implicitlyExpanded, expanded, toggleExpanded, selected]);
|
|
129970
|
+
return /* @__PURE__ */ import_react204.default.createElement(
|
|
129971
|
+
$f85fb77f9d4cbc6c$export$84d0dd190d551cd1,
|
|
129972
|
+
{
|
|
129973
|
+
flexGrow: 1,
|
|
129974
|
+
UNSAFE_className: style_default.navListView,
|
|
129975
|
+
items,
|
|
129976
|
+
selectedKeys: selected,
|
|
129977
|
+
disallowEmptySelection: true,
|
|
129978
|
+
ref: listElRef,
|
|
129979
|
+
selectionMode: "single",
|
|
129980
|
+
selectionStyle: "highlight",
|
|
129981
|
+
onSelectionChange: (selectedKeys) => {
|
|
129982
|
+
const key = selectedKeys !== "all" ? `${selectedKeys.keys().next().value}` : void 0;
|
|
129983
|
+
if (key) {
|
|
129984
|
+
onSelect(key);
|
|
129985
|
+
}
|
|
129986
|
+
},
|
|
129987
|
+
"aria-label": "Resource hierarchy"
|
|
129988
|
+
},
|
|
129989
|
+
itemView
|
|
129990
|
+
);
|
|
129991
|
+
});
|
|
129992
|
+
function computeImplicitlyExpanded(pageMap, predicate, _parents) {
|
|
129993
|
+
const foundParents = [];
|
|
129994
|
+
const foundParentPaths = [""];
|
|
129995
|
+
for (const [pagePath, resourceID] of Object.entries(pageMap)) {
|
|
129996
|
+
if (foundParents.includes(pagePath)) {
|
|
129997
|
+
continue;
|
|
129998
|
+
}
|
|
129999
|
+
if (predicate(resourceID)) {
|
|
130000
|
+
let remainder2 = pagePath;
|
|
130001
|
+
while (remainder2) {
|
|
130002
|
+
foundParentPaths.push(remainder2);
|
|
130003
|
+
remainder2 = remainder2.includes("/") ? remainder2.slice(0, remainder2.lastIndexOf("/")) : "";
|
|
130004
|
+
}
|
|
130005
|
+
}
|
|
130006
|
+
}
|
|
130007
|
+
return foundParentPaths.map((p) => pageMap[p]).filter((uri) => uri !== void 0);
|
|
130008
|
+
}
|
|
130009
|
+
|
|
130010
|
+
// BrowseBar.tsx
|
|
130011
|
+
var import_react207 = __toESM(require_react(), 1);
|
|
129735
130012
|
|
|
129736
130013
|
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/TextBulletedHierarchy.module.mjs
|
|
129737
130014
|
var import_TextBulletedHierarchy = __toESM(require_TextBulletedHierarchy(), 1);
|
|
129738
|
-
var
|
|
130015
|
+
var import_react205 = __toESM(require_react(), 1);
|
|
129739
130016
|
function TextBulletedHierarchy(props) {
|
|
129740
|
-
return /* @__PURE__ */
|
|
130017
|
+
return /* @__PURE__ */ import_react205.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react205.default.createElement(import_TextBulletedHierarchy.A4uTextBulletedHierarchy, null));
|
|
129741
130018
|
}
|
|
129742
130019
|
|
|
129743
130020
|
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/Search.module.mjs
|
|
129744
130021
|
var import_Search = __toESM(require_Search(), 1);
|
|
129745
|
-
var
|
|
129746
|
-
function
|
|
129747
|
-
return /* @__PURE__ */
|
|
130022
|
+
var import_react206 = __toESM(require_react(), 1);
|
|
130023
|
+
function Search2(props) {
|
|
130024
|
+
return /* @__PURE__ */ import_react206.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react206.default.createElement(import_Search.A4uSearch, null));
|
|
129748
130025
|
}
|
|
129749
130026
|
|
|
129750
130027
|
// BrowseBar.tsx
|
|
@@ -129772,11 +130049,14 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129772
130049
|
xhr.responseType = reqOpts.responseType;
|
|
129773
130050
|
xhr.open("GET", assetSrc, true);
|
|
129774
130051
|
xhr.onload = function(e2) {
|
|
129775
|
-
if (xhr.readyState
|
|
129776
|
-
|
|
129777
|
-
|
|
129778
|
-
10
|
|
129779
|
-
|
|
130052
|
+
if (!LOAD_STATUS[assetSrc].total && xhr.readyState > 1) {
|
|
130053
|
+
const rawTotal = xhr.getResponseHeader("content-length");
|
|
130054
|
+
if (rawTotal) {
|
|
130055
|
+
const total = parseInt(rawTotal || "0", 10);
|
|
130056
|
+
if (total) {
|
|
130057
|
+
LOAD_STATUS[assetSrc].total = total;
|
|
130058
|
+
}
|
|
130059
|
+
}
|
|
129780
130060
|
}
|
|
129781
130061
|
if (xhr.readyState === 4) {
|
|
129782
130062
|
if (xhr.status === 200) {
|
|
@@ -129794,7 +130074,9 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129794
130074
|
throw new Error(`XHR reported progress on unknown asset ${assetSrc} (not being loaded)`);
|
|
129795
130075
|
}
|
|
129796
130076
|
LOAD_STATUS[assetSrc].done = e2.loaded;
|
|
129797
|
-
|
|
130077
|
+
if (e2.total) {
|
|
130078
|
+
LOAD_STATUS[assetSrc].total = e2.total;
|
|
130079
|
+
}
|
|
129798
130080
|
onProgress(
|
|
129799
130081
|
Object.values(LOAD_STATUS).map((e3) => e3["done"]),
|
|
129800
130082
|
Object.values(LOAD_STATUS).map((e3) => e3["total"])
|
|
@@ -129834,28 +130116,6 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129834
130116
|
}
|
|
129835
130117
|
}
|
|
129836
130118
|
|
|
129837
|
-
// style.module.css
|
|
129838
|
-
var style_default = {
|
|
129839
|
-
floatingSubresourceLink: "style_floatingSubresourceLink",
|
|
129840
|
-
floatingSubresourceLinkAnchor: "style_floatingSubresourceLinkAnchor",
|
|
129841
|
-
lastVisibleResourceMarkerIntersection: "style_lastVisibleResourceMarkerIntersection",
|
|
129842
|
-
resourceLoadingOrMissingPlaceholder: "style_resourceLoadingOrMissingPlaceholder",
|
|
129843
|
-
withNav: "style_withNav",
|
|
129844
|
-
resource: "style_resource",
|
|
129845
|
-
active: "style_active",
|
|
129846
|
-
"is-disabled": "style_is-disabled",
|
|
129847
|
-
resourceBreadcrumbsNav: "style_resourceBreadcrumbsNav",
|
|
129848
|
-
navListView: "style_navListView",
|
|
129849
|
-
browserBar: "style_browserBar",
|
|
129850
|
-
browserBarTitle: "style_browserBarTitle",
|
|
129851
|
-
browserBarToolbar: "style_browserBarToolbar",
|
|
129852
|
-
browserBarToolbarGroup: "style_browserBarToolbarGroup",
|
|
129853
|
-
progressWrapper: "style_progressWrapper",
|
|
129854
|
-
progressIdle: "style_progressIdle",
|
|
129855
|
-
nav: "style_nav",
|
|
129856
|
-
navStickyHeader: "style_navStickyHeader"
|
|
129857
|
-
};
|
|
129858
|
-
|
|
129859
130119
|
// BrowseBar.tsx
|
|
129860
130120
|
var BrowserBar = function({
|
|
129861
130121
|
providerProps,
|
|
@@ -129866,19 +130126,19 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129866
130126
|
onDeactivate,
|
|
129867
130127
|
versioning
|
|
129868
130128
|
}) {
|
|
129869
|
-
const [initialRender, setInitialRender] = (0,
|
|
129870
|
-
(0,
|
|
130129
|
+
const [initialRender, setInitialRender] = (0, import_react207.useState)(true);
|
|
130130
|
+
(0, import_react207.useEffect)(() => {
|
|
129871
130131
|
setInitialRender(false);
|
|
129872
130132
|
}, []);
|
|
129873
130133
|
const showToolbar = onActivateBrowsingMode || activeBrowsingMode;
|
|
129874
|
-
return /* @__PURE__ */
|
|
130134
|
+
return /* @__PURE__ */ import_react207.default.createElement($7167f8da3cce35e4$export$2881499e37b75b9a, { theme: $bf24a13e98395dd3$export$bca14c5b3b88a9c9, ...providerProps }, /* @__PURE__ */ import_react207.default.createElement("div", { className: style_default.browserBar }, /* @__PURE__ */ import_react207.default.createElement("header", { className: style_default.browserBarTitle }, /* @__PURE__ */ import_react207.default.createElement("h1", null, title)), showToolbar ? /* @__PURE__ */ import_react207.default.createElement(
|
|
129875
130135
|
$13c3c67164f4d5be$export$4c260019440d418f,
|
|
129876
130136
|
{
|
|
129877
130137
|
"aria-label": "Tools",
|
|
129878
130138
|
orientation: "vertical",
|
|
129879
130139
|
className: style_default.browserBarToolbar
|
|
129880
130140
|
},
|
|
129881
|
-
/* @__PURE__ */
|
|
130141
|
+
/* @__PURE__ */ import_react207.default.createElement($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { "aria-label": "Browsing mode", className: style_default.browserBarToolbarGroup }, /* @__PURE__ */ import_react207.default.createElement(
|
|
129882
130142
|
$3979c7c23b0bd270$export$d2b052e7b4be1756,
|
|
129883
130143
|
{
|
|
129884
130144
|
"aria-label": "Resource hierarchy",
|
|
@@ -129886,8 +130146,8 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129886
130146
|
onChange: (val) => val ? onActivateBrowsingMode?.("hierarchy") : onDeactivate?.(),
|
|
129887
130147
|
isDisabled: !onActivateBrowsingMode || activeBrowsingMode === "hierarchy" && !onDeactivate
|
|
129888
130148
|
},
|
|
129889
|
-
/* @__PURE__ */
|
|
129890
|
-
), /* @__PURE__ */
|
|
130149
|
+
/* @__PURE__ */ import_react207.default.createElement(TextBulletedHierarchy, { size: TB_SIZE })
|
|
130150
|
+
), /* @__PURE__ */ import_react207.default.createElement(
|
|
129891
130151
|
$3979c7c23b0bd270$export$d2b052e7b4be1756,
|
|
129892
130152
|
{
|
|
129893
130153
|
"aria-label": "Search by text",
|
|
@@ -129895,24 +130155,30 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129895
130155
|
onChange: (val) => val ? onActivateBrowsingMode?.("search") : onDeactivate?.(),
|
|
129896
130156
|
isDisabled: !onActivateBrowsingMode || activeBrowsingMode === "search" && !onDeactivate
|
|
129897
130157
|
},
|
|
129898
|
-
/* @__PURE__ */
|
|
130158
|
+
/* @__PURE__ */ import_react207.default.createElement(Search2, { size: TB_SIZE })
|
|
129899
130159
|
))
|
|
129900
|
-
) : null, !initialRender ? /* @__PURE__ */
|
|
130160
|
+
) : null, !initialRender ? /* @__PURE__ */ import_react207.default.createElement("div", { className: style_default.progressWrapper }, loadProgress ? loadProgress === true ? /* @__PURE__ */ import_react207.default.createElement(
|
|
129901
130161
|
$79c16f64960b6385$export$c79b9d6b4cc92af7,
|
|
129902
130162
|
{
|
|
129903
130163
|
"aria-label": "Loading\u2026",
|
|
129904
130164
|
isIndeterminate: true
|
|
129905
130165
|
}
|
|
129906
|
-
) : /* @__PURE__ */
|
|
130166
|
+
) : /* @__PURE__ */ import_react207.default.createElement(
|
|
129907
130167
|
$79c16f64960b6385$export$c79b9d6b4cc92af7,
|
|
129908
130168
|
{
|
|
129909
130169
|
"aria-label": "Loading\u2026",
|
|
129910
130170
|
minValue: 0,
|
|
129911
|
-
isIndeterminate:
|
|
130171
|
+
isIndeterminate: (
|
|
130172
|
+
// Set to indeterminate if:
|
|
130173
|
+
// No total:
|
|
130174
|
+
!loadProgress.total || // Stuck in almost ending:
|
|
130175
|
+
loadProgress.total - 0.1 < loadProgress.done || // Stuck in just beginning:
|
|
130176
|
+
loadProgress.total - loadProgress.done < 0.1
|
|
130177
|
+
),
|
|
129912
130178
|
maxValue: loadProgress.total,
|
|
129913
130179
|
value: loadProgress.done
|
|
129914
130180
|
}
|
|
129915
|
-
) : /* @__PURE__ */
|
|
130181
|
+
) : /* @__PURE__ */ import_react207.default.createElement(
|
|
129916
130182
|
$79c16f64960b6385$export$c79b9d6b4cc92af7,
|
|
129917
130183
|
{
|
|
129918
130184
|
"aria-role": "presentation",
|
|
@@ -129928,7 +130194,7 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129928
130194
|
var TB_SIZE = "S";
|
|
129929
130195
|
|
|
129930
130196
|
// Resource.tsx
|
|
129931
|
-
var
|
|
130197
|
+
var import_react209 = __toESM(require_react(), 1);
|
|
129932
130198
|
var import_react_dom12 = __toESM(require_react_dom(), 1);
|
|
129933
130199
|
init_dist2();
|
|
129934
130200
|
init_dist4();
|
|
@@ -129940,23 +130206,23 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129940
130206
|
init_ResourceNavigationContext();
|
|
129941
130207
|
|
|
129942
130208
|
// ResourceBreadcrumbs.tsx
|
|
129943
|
-
var
|
|
130209
|
+
var import_react208 = __toESM(require_react(), 1);
|
|
129944
130210
|
init_Layout();
|
|
129945
130211
|
var ResourceBreadcrumbs = function({ parents, className }) {
|
|
129946
|
-
const breadcrumbs = (0,
|
|
130212
|
+
const breadcrumbs = (0, import_react208.useMemo)(() => {
|
|
129947
130213
|
const b = [...parents];
|
|
129948
130214
|
b.reverse();
|
|
129949
130215
|
return b;
|
|
129950
130216
|
}, [parents.map((p) => p.path).join(" ")]);
|
|
129951
|
-
return /* @__PURE__ */
|
|
130217
|
+
return /* @__PURE__ */ import_react208.default.createElement("ul", { className: style_default.resourceBreadcrumbsNav }, breadcrumbs.map((link) => /* @__PURE__ */ import_react208.default.createElement("li", { key: link.path }, " ", /* @__PURE__ */ import_react208.default.createElement("a", { href: link.path }, link.plainTitle))));
|
|
129952
130218
|
};
|
|
129953
130219
|
|
|
129954
130220
|
// Resource.tsx
|
|
129955
130221
|
var ResourceHelmet = function(props) {
|
|
129956
|
-
return /* @__PURE__ */
|
|
130222
|
+
return /* @__PURE__ */ import_react209.default.createElement(HelmetExport, null, props.primaryLanguageID ? /* @__PURE__ */ import_react209.default.createElement("html", { lang: props.primaryLanguageID }) : null, /* @__PURE__ */ import_react209.default.createElement("title", null, props.labelInPlainText));
|
|
129957
130223
|
};
|
|
129958
130224
|
var reactKeysPlugin = reactKeys();
|
|
129959
|
-
var Resource =
|
|
130225
|
+
var Resource = import_react209.default.forwardRef(function({
|
|
129960
130226
|
className,
|
|
129961
130227
|
useDependency,
|
|
129962
130228
|
locateResource,
|
|
@@ -129973,7 +130239,7 @@ schema (${ast._tag}): ${ast}`;
|
|
|
129973
130239
|
content.content?.contentSchemaID ?? "",
|
|
129974
130240
|
adapter2
|
|
129975
130241
|
);
|
|
129976
|
-
const preRenderedHTML = (0,
|
|
130242
|
+
const preRenderedHTML = (0, import_react209.useMemo)(() => {
|
|
129977
130243
|
const preRenderingContent = content.content;
|
|
129978
130244
|
let doc4;
|
|
129979
130245
|
try {
|
|
@@ -130007,7 +130273,7 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130007
130273
|
return void 0;
|
|
130008
130274
|
}
|
|
130009
130275
|
}, [schema]);
|
|
130010
|
-
const adapterGeneratedContent = (0,
|
|
130276
|
+
const adapterGeneratedContent = (0, import_react209.useMemo)(() => {
|
|
130011
130277
|
if (!adapter2) {
|
|
130012
130278
|
console.debug("Won\u2019t render content (need to know adapter)");
|
|
130013
130279
|
return void 0;
|
|
@@ -130017,7 +130283,7 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130017
130283
|
content: adapter2.generateContent(graph)
|
|
130018
130284
|
};
|
|
130019
130285
|
}, [graph, adapter2, locateResource]);
|
|
130020
|
-
const initialState = (0,
|
|
130286
|
+
const initialState = (0, import_react209.useMemo)(
|
|
130021
130287
|
() => content.content?.contentDoc && schema ? EditorState.create({
|
|
130022
130288
|
schema,
|
|
130023
130289
|
doc: Node2.fromJSON(schema, content.content.contentDoc),
|
|
@@ -130027,10 +130293,10 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130027
130293
|
);
|
|
130028
130294
|
const somethingStillLoading = [adapter2, initialState].includes(void 0);
|
|
130029
130295
|
const Layout = layout2.layout.Component;
|
|
130030
|
-
const [contentElement, setContentElement] = (0,
|
|
130031
|
-
const [layoutElement, setLayoutElement] = (0,
|
|
130032
|
-
const [visibleResourceLinks, setVisibleResourceLinks] = (0,
|
|
130033
|
-
const describedResources = (0,
|
|
130296
|
+
const [contentElement, setContentElement] = (0, import_react209.useState)(null);
|
|
130297
|
+
const [layoutElement, setLayoutElement] = (0, import_react209.useState)(null);
|
|
130298
|
+
const [visibleResourceLinks, setVisibleResourceLinks] = (0, import_react209.useState)({});
|
|
130299
|
+
const describedResources = (0, import_react209.useMemo)(() => {
|
|
130034
130300
|
if (content.content?.contentDoc) {
|
|
130035
130301
|
const resources = Array.from(
|
|
130036
130302
|
gatherDescribedResourcesFromJsonifiedProseMirrorNode(content.content.contentDoc)
|
|
@@ -130041,15 +130307,15 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130041
130307
|
return [];
|
|
130042
130308
|
}
|
|
130043
130309
|
}, [content.content?.contentDoc]);
|
|
130044
|
-
const contentRef = (0,
|
|
130310
|
+
const contentRef = (0, import_react209.useCallback)(
|
|
130045
130311
|
(el) => setContentElement(el ?? null),
|
|
130046
130312
|
[]
|
|
130047
130313
|
);
|
|
130048
|
-
const layoutRef = (0,
|
|
130314
|
+
const layoutRef = (0, import_react209.useCallback)(
|
|
130049
130315
|
(el) => setLayoutElement(el ?? null),
|
|
130050
130316
|
[]
|
|
130051
130317
|
);
|
|
130052
|
-
(0,
|
|
130318
|
+
(0, import_react209.useEffect)(() => {
|
|
130053
130319
|
let timeout2 = void 0;
|
|
130054
130320
|
function handleMaybeSubresourceHover(evt) {
|
|
130055
130321
|
clearTimeout(timeout2);
|
|
@@ -130081,33 +130347,33 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130081
130347
|
contentElement?.removeEventListener("mouseover", handleMaybeSubresourceHover);
|
|
130082
130348
|
};
|
|
130083
130349
|
}, [layoutElement, contentElement, describedResources]);
|
|
130084
|
-
const fallback = preRenderedHTML !== void 0 ? /* @__PURE__ */
|
|
130350
|
+
const fallback = preRenderedHTML !== void 0 ? /* @__PURE__ */ import_react209.default.createElement(
|
|
130085
130351
|
"article",
|
|
130086
130352
|
{
|
|
130087
130353
|
id: "content",
|
|
130088
130354
|
ref: contentRef,
|
|
130089
130355
|
dangerouslySetInnerHTML: { __html: preRenderedHTML }
|
|
130090
130356
|
}
|
|
130091
|
-
) : /* @__PURE__ */
|
|
130092
|
-
const mainView = somethingStillLoading || typeof window?.document?.createElement === "undefined" ? fallback : /* @__PURE__ */
|
|
130357
|
+
) : /* @__PURE__ */ import_react209.default.createElement(import_react209.default.Fragment, null, "\u2026");
|
|
130358
|
+
const mainView = somethingStillLoading || typeof window?.document?.createElement === "undefined" ? fallback : /* @__PURE__ */ import_react209.default.createElement(ResourceNavigationContext.Provider, { value: { locateResource, resolvePlainTitle } }, /* @__PURE__ */ import_react209.default.createElement(ErrorBoundaryWithCustomView_default, { fallback }, /* @__PURE__ */ import_react209.default.createElement(
|
|
130093
130359
|
ProseMirror,
|
|
130094
130360
|
{
|
|
130095
130361
|
defaultState: initialState,
|
|
130096
130362
|
editable: () => false,
|
|
130097
130363
|
nodeViews: adapter2.resourceContentProseMirrorOptions.nodeViews
|
|
130098
130364
|
},
|
|
130099
|
-
/* @__PURE__ */
|
|
130365
|
+
/* @__PURE__ */ import_react209.default.createElement(ForwardedProseMirrorDoc, { ref: contentRef, as: /* @__PURE__ */ import_react209.default.createElement("article", null) })
|
|
130100
130366
|
)));
|
|
130101
|
-
return /* @__PURE__ */
|
|
130367
|
+
return /* @__PURE__ */ import_react209.default.createElement(
|
|
130102
130368
|
"div",
|
|
130103
130369
|
{
|
|
130104
130370
|
ref,
|
|
130105
130371
|
className: `${style_default.resource} ${className ?? ""}`,
|
|
130106
130372
|
"aria-selected": ariaSelected
|
|
130107
130373
|
},
|
|
130108
|
-
/* @__PURE__ */
|
|
130109
|
-
content.content ? /* @__PURE__ */
|
|
130110
|
-
/* @__PURE__ */
|
|
130374
|
+
/* @__PURE__ */ import_react209.default.createElement(ResourceBreadcrumbs, { parents: resourceNav.breadcrumbs }),
|
|
130375
|
+
content.content ? /* @__PURE__ */ import_react209.default.createElement(ResourceHelmet, { ...content.content }) : null,
|
|
130376
|
+
/* @__PURE__ */ import_react209.default.createElement(
|
|
130111
130377
|
Layout,
|
|
130112
130378
|
{
|
|
130113
130379
|
ref: layoutRef,
|
|
@@ -130120,13 +130386,13 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130120
130386
|
),
|
|
130121
130387
|
Object.entries(visibleResourceLinks).map(
|
|
130122
130388
|
([elID, [left3, top, url2]]) => (0, import_react_dom12.createPortal)(
|
|
130123
|
-
/* @__PURE__ */
|
|
130389
|
+
/* @__PURE__ */ import_react209.default.createElement(
|
|
130124
130390
|
"div",
|
|
130125
130391
|
{
|
|
130126
130392
|
className: style_default.floatingSubresourceLink,
|
|
130127
130393
|
style: { position: "absolute", top, left: left3 }
|
|
130128
130394
|
},
|
|
130129
|
-
/* @__PURE__ */
|
|
130395
|
+
/* @__PURE__ */ import_react209.default.createElement("a", { className: style_default.floatingSubresourceLinkAnchor, href: url2 }, "\xB6")
|
|
130130
130396
|
),
|
|
130131
130397
|
document2.body
|
|
130132
130398
|
)
|
|
@@ -130134,7 +130400,7 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130134
130400
|
);
|
|
130135
130401
|
});
|
|
130136
130402
|
function useProseMirrorSchema(schemaID, adapter2) {
|
|
130137
|
-
return (0,
|
|
130403
|
+
return (0, import_react209.useMemo)(() => {
|
|
130138
130404
|
if (!adapter2) {
|
|
130139
130405
|
return void 0;
|
|
130140
130406
|
}
|
|
@@ -130277,261 +130543,6 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130277
130543
|
};
|
|
130278
130544
|
var intercept_nav_default = Interceptor;
|
|
130279
130545
|
|
|
130280
|
-
// Nav.tsx
|
|
130281
|
-
var import_lunr = __toESM(require_lunr(), 1);
|
|
130282
|
-
var import_react207 = __toESM(require_react(), 1);
|
|
130283
|
-
|
|
130284
|
-
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/Delete.module.mjs
|
|
130285
|
-
var import_Delete = __toESM(require_Delete(), 1);
|
|
130286
|
-
var import_react206 = __toESM(require_react(), 1);
|
|
130287
|
-
function Delete(props) {
|
|
130288
|
-
return /* @__PURE__ */ import_react206.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react206.default.createElement(import_Delete.A4uDelete, null));
|
|
130289
|
-
}
|
|
130290
|
-
|
|
130291
|
-
// Nav.tsx
|
|
130292
|
-
var Bookmarks = function({ bookmarkedResources, locateResource, getPlainTitle, onRemoveBookmark }) {
|
|
130293
|
-
return /* @__PURE__ */ import_react207.default.createElement(
|
|
130294
|
-
$f85fb77f9d4cbc6c$export$84d0dd190d551cd1,
|
|
130295
|
-
{
|
|
130296
|
-
flexGrow: 1,
|
|
130297
|
-
UNSAFE_className: style_default.navListView,
|
|
130298
|
-
items: Array.from(bookmarkedResources).map((res) => ({ id: res })),
|
|
130299
|
-
renderEmptyState: () => /* @__PURE__ */ import_react207.default.createElement(import_react207.default.Fragment, null, "There are no bookmarks.")
|
|
130300
|
-
},
|
|
130301
|
-
(res) => /* @__PURE__ */ import_react207.default.createElement(
|
|
130302
|
-
$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,
|
|
130303
|
-
{
|
|
130304
|
-
key: res.id,
|
|
130305
|
-
textValue: "A bookmarked resource",
|
|
130306
|
-
href: locateResource(res.id)
|
|
130307
|
-
},
|
|
130308
|
-
/* @__PURE__ */ import_react207.default.createElement($cd449e8defa988f0$export$5f1af8db9871e1d6, null, getPlainTitle(res.id)),
|
|
130309
|
-
onRemoveBookmark ? /* @__PURE__ */ import_react207.default.createElement($a04ee251ffcc2690$export$c21a5597f732a168, { onAction: () => onRemoveBookmark?.(res.id) }, /* @__PURE__ */ import_react207.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: "delete", "aria-label": "Delete bookmark", textValue: "Delete bookmark" }, /* @__PURE__ */ import_react207.default.createElement(Delete, null))) : null
|
|
130310
|
-
)
|
|
130311
|
-
);
|
|
130312
|
-
};
|
|
130313
|
-
var MAX_SEARCH_RESULT_COUNT = 100;
|
|
130314
|
-
var Search2 = function({ index, selected, onSelect, query, getPlainTitle, locateResource, getContainingPageURI, onEditQueryText }) {
|
|
130315
|
-
const [debouncedQuery] = a(query.text, 200);
|
|
130316
|
-
const [showMore, setShowMore] = (0, import_react207.useState)(false);
|
|
130317
|
-
const [matches2, error] = (0, import_react207.useMemo)(() => {
|
|
130318
|
-
if (index && debouncedQuery.trim() !== "") {
|
|
130319
|
-
const tokens = import_lunr.default.tokenizer(debouncedQuery.replace(/:/g, " "));
|
|
130320
|
-
console.debug("Search: tokens", tokens);
|
|
130321
|
-
try {
|
|
130322
|
-
let exact;
|
|
130323
|
-
try {
|
|
130324
|
-
exact = (index.query((query2) => {
|
|
130325
|
-
query2.term(debouncedQuery, {
|
|
130326
|
-
presence: import_lunr.default.Query.presence.REQUIRED,
|
|
130327
|
-
wildcard: import_lunr.default.Query.wildcard.LEADING | import_lunr.default.Query.wildcard.TRAILING
|
|
130328
|
-
});
|
|
130329
|
-
}) ?? []).slice(0, MAX_SEARCH_RESULT_COUNT);
|
|
130330
|
-
} catch (e2) {
|
|
130331
|
-
exact = [];
|
|
130332
|
-
console.error("Failed exact search", e2);
|
|
130333
|
-
}
|
|
130334
|
-
const full = exact.length < 1 || showMore ? (index.query((query2) => {
|
|
130335
|
-
query2.term(tokens, {
|
|
130336
|
-
presence: import_lunr.default.Query.presence.REQUIRED
|
|
130337
|
-
});
|
|
130338
|
-
}) ?? []).slice(0, MAX_SEARCH_RESULT_COUNT) : [];
|
|
130339
|
-
const partial5 = exact.length < 1 && full.length < 1 || showMore ? (index.query((query2) => {
|
|
130340
|
-
query2.term(tokens, {
|
|
130341
|
-
presence: import_lunr.default.Query.presence.OPTIONAL,
|
|
130342
|
-
wildcard: import_lunr.default.Query.wildcard.LEADING | import_lunr.default.Query.wildcard.TRAILING
|
|
130343
|
-
});
|
|
130344
|
-
}) ?? []).slice(0, MAX_SEARCH_RESULT_COUNT) : [];
|
|
130345
|
-
return [{ exact, full, partial: partial5 }, null];
|
|
130346
|
-
} catch (e2) {
|
|
130347
|
-
console.error(e2);
|
|
130348
|
-
return [{ exact: [], full: [], partial: [] }, "Sorry, something went wrong"];
|
|
130349
|
-
}
|
|
130350
|
-
} else {
|
|
130351
|
-
return [{ exact: [], full: [], partial: [] }, null];
|
|
130352
|
-
}
|
|
130353
|
-
}, [index, debouncedQuery, showMore]);
|
|
130354
|
-
const results = (0, import_react207.useMemo)(() => {
|
|
130355
|
-
const allResults = (Object.entries(matches2).flatMap(([matchType, results2]) => {
|
|
130356
|
-
console.debug(matchType, results2.length);
|
|
130357
|
-
return results2.map((res) => ({ [res.ref]: res }));
|
|
130358
|
-
}) ?? []).reduce((prev, curr) => ({ ...prev, ...curr }), {});
|
|
130359
|
-
return Object.values(allResults).map((res) => ({ ...res, id: res.ref, name: res.ref }));
|
|
130360
|
-
}, [matches2]);
|
|
130361
|
-
(0, import_react207.useEffect)(() => {
|
|
130362
|
-
setShowMore(false);
|
|
130363
|
-
}, [debouncedQuery]);
|
|
130364
|
-
const renderItem = (0, import_react207.useCallback)((result) => {
|
|
130365
|
-
const title = getPlainTitle(result.ref);
|
|
130366
|
-
return /* @__PURE__ */ import_react207.default.createElement(
|
|
130367
|
-
$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,
|
|
130368
|
-
{
|
|
130369
|
-
href: locateResource(result.ref),
|
|
130370
|
-
key: result.ref,
|
|
130371
|
-
textValue: title
|
|
130372
|
-
},
|
|
130373
|
-
/* @__PURE__ */ import_react207.default.createElement($cd449e8defa988f0$export$5f1af8db9871e1d6, null, title, " "),
|
|
130374
|
-
/* @__PURE__ */ import_react207.default.createElement($cd449e8defa988f0$export$5f1af8db9871e1d6, { slot: "description" }, getPlainTitle(getContainingPageURI(result.ref)))
|
|
130375
|
-
);
|
|
130376
|
-
}, [showMore, getPlainTitle, getContainingPageURI]);
|
|
130377
|
-
const showMoreButton = matches2.exact.length > 0 || matches2.full.length > 0 ? /* @__PURE__ */ import_react207.default.createElement("a", { onClick: () => setShowMore(!showMore) }, "(", showMore ? "Show fewer" : "Check for more matches", ")") : null;
|
|
130378
|
-
return /* @__PURE__ */ import_react207.default.createElement(import_react207.default.Fragment, null, /* @__PURE__ */ import_react207.default.createElement(
|
|
130379
|
-
$f85fb77f9d4cbc6c$export$84d0dd190d551cd1,
|
|
130380
|
-
{
|
|
130381
|
-
flex: 1,
|
|
130382
|
-
items: results,
|
|
130383
|
-
UNSAFE_className: style_default.navListView,
|
|
130384
|
-
selectedKeys: new Set(selected ? [selected] : []),
|
|
130385
|
-
onSelectionChange: (selectedKeys) => {
|
|
130386
|
-
const key = selectedKeys !== "all" ? selectedKeys.keys().next().value : void 0;
|
|
130387
|
-
if (key) {
|
|
130388
|
-
onSelect(`${key}`);
|
|
130389
|
-
}
|
|
130390
|
-
},
|
|
130391
|
-
selectionMode: "single",
|
|
130392
|
-
selectionStyle: "highlight",
|
|
130393
|
-
"aria-label": "Matching resources found",
|
|
130394
|
-
renderEmptyState: () => /* @__PURE__ */ import_react207.default.createElement(import_react207.default.Fragment, null)
|
|
130395
|
-
},
|
|
130396
|
-
renderItem
|
|
130397
|
-
), /* @__PURE__ */ import_react207.default.createElement(
|
|
130398
|
-
$a6a4ace9217ce6df$export$b94867ecbd698f21,
|
|
130399
|
-
{
|
|
130400
|
-
width: "100%",
|
|
130401
|
-
autoFocus: true,
|
|
130402
|
-
alignSelf: "stretch",
|
|
130403
|
-
onChange: onEditQueryText ?? (() => {
|
|
130404
|
-
}),
|
|
130405
|
-
isReadOnly: !onEditQueryText,
|
|
130406
|
-
label: "Search resources",
|
|
130407
|
-
value: query.text,
|
|
130408
|
-
errorMessage: error,
|
|
130409
|
-
UNSAFE_className: style_default.navStickyHeader,
|
|
130410
|
-
validationState: error ? "invalid" : "valid",
|
|
130411
|
-
description: results.length > 0 ? /* @__PURE__ */ import_react207.default.createElement(import_react207.default.Fragment, null, results.length >= MAX_SEARCH_RESULT_COUNT ? "At least " : "", results.length, " resources matched. ", showMoreButton) : query.text.trim() === "" ? "Please enter a search query." : "No results to show."
|
|
130412
|
-
}
|
|
130413
|
-
));
|
|
130414
|
-
};
|
|
130415
|
-
|
|
130416
|
-
// NavHierarchy2.tsx
|
|
130417
|
-
var import_react209 = __toESM(require_react(), 1);
|
|
130418
|
-
|
|
130419
|
-
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/ChevronDown.module.mjs
|
|
130420
|
-
var import_ChevronDown = __toESM(require_ChevronDown(), 1);
|
|
130421
|
-
var import_react208 = __toESM(require_react(), 1);
|
|
130422
|
-
function ChevronDown(props) {
|
|
130423
|
-
return /* @__PURE__ */ import_react208.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react208.default.createElement(import_ChevronDown.A4uChevronDown, null));
|
|
130424
|
-
}
|
|
130425
|
-
|
|
130426
|
-
// NavHierarchy2.tsx
|
|
130427
|
-
var Hierarchy = import_react209.default.memo(function({ pageMap, getResourceTitle, selected, onSelect, implicitlyExpanded, expanded, onExpand }) {
|
|
130428
|
-
const allPaths = (0, import_react209.useMemo)(() => Object.keys(pageMap), [pageMap]);
|
|
130429
|
-
const items = (0, import_react209.useMemo)(() => {
|
|
130430
|
-
return Object.entries(pageMap).filter(([path]) => {
|
|
130431
|
-
const parentPath = path.includes("/") ? `${path.slice(0, path.lastIndexOf("/"))}` : "";
|
|
130432
|
-
const parentURI = pageMap[parentPath];
|
|
130433
|
-
if (!parentURI) {
|
|
130434
|
-
console.warn("Unable to find URI for parent path", parentPath);
|
|
130435
|
-
}
|
|
130436
|
-
const shouldAppear = !!expanded.values().find((expandedURI) => expandedURI === parentURI);
|
|
130437
|
-
return shouldAppear;
|
|
130438
|
-
}).map(([path, id3]) => {
|
|
130439
|
-
const level = path === "" ? 0 : (path.match(/\//g) ?? []).length + 1;
|
|
130440
|
-
return {
|
|
130441
|
-
path,
|
|
130442
|
-
id: id3,
|
|
130443
|
-
title: getResourceTitle(id3),
|
|
130444
|
-
// Count slashes
|
|
130445
|
-
level,
|
|
130446
|
-
hasChildren: allPaths.find((p) => p.startsWith(`${path}/`)) !== void 0
|
|
130447
|
-
};
|
|
130448
|
-
});
|
|
130449
|
-
}, [expanded, allPaths, pageMap, getResourceTitle]);
|
|
130450
|
-
const [hasScrolled, setHasScrolled] = (0, import_react209.useState)(null);
|
|
130451
|
-
const scrollToMe = c((id3, el) => {
|
|
130452
|
-
if (hasScrolled !== id3) {
|
|
130453
|
-
el.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
130454
|
-
setHasScrolled(id3);
|
|
130455
|
-
}
|
|
130456
|
-
}, 200);
|
|
130457
|
-
const listElRef = (0, import_react209.useCallback)((elRef) => {
|
|
130458
|
-
const sel = selected.values().next().value;
|
|
130459
|
-
if (sel) {
|
|
130460
|
-
const el = elRef?.UNSAFE_getDOMNode()?.querySelector(`[data-resource-id="${sel}"]`);
|
|
130461
|
-
if (el) {
|
|
130462
|
-
scrollToMe(sel, el);
|
|
130463
|
-
}
|
|
130464
|
-
}
|
|
130465
|
-
}, [selected, hasScrolled]);
|
|
130466
|
-
const toggleExpanded = (0, import_react209.useCallback)(function toggleExpanded2(itemID) {
|
|
130467
|
-
if (expanded.has(itemID)) {
|
|
130468
|
-
onExpand?.(new Set([...expanded].filter((i2) => i2 !== itemID)));
|
|
130469
|
-
} else {
|
|
130470
|
-
onExpand?.(/* @__PURE__ */ new Set([...expanded, itemID]));
|
|
130471
|
-
}
|
|
130472
|
-
}, [expanded, onExpand]);
|
|
130473
|
-
const itemView = (0, import_react209.useCallback)((item) => {
|
|
130474
|
-
const isExpanded = expanded.has(item.id);
|
|
130475
|
-
const isForceExpanded = implicitlyExpanded.has(item.id);
|
|
130476
|
-
return /* @__PURE__ */ import_react209.default.createElement(
|
|
130477
|
-
$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,
|
|
130478
|
-
{
|
|
130479
|
-
key: item.id,
|
|
130480
|
-
href: `/${item.path}`,
|
|
130481
|
-
textValue: item.title
|
|
130482
|
-
},
|
|
130483
|
-
/* @__PURE__ */ import_react209.default.createElement($cd449e8defa988f0$export$5f1af8db9871e1d6, { UNSAFE_style: { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", marginLeft: `${item.level * 1}em` } }, item.title),
|
|
130484
|
-
item.hasChildren ? /* @__PURE__ */ import_react209.default.createElement(
|
|
130485
|
-
$042ad0b3a4a55b33$export$cfc7921d29ef7b80,
|
|
130486
|
-
{
|
|
130487
|
-
isDisabled: isForceExpanded,
|
|
130488
|
-
onPress: () => toggleExpanded(item.id)
|
|
130489
|
-
},
|
|
130490
|
-
isExpanded ? /* @__PURE__ */ import_react209.default.createElement(ChevronDown, null) : /* @__PURE__ */ import_react209.default.createElement(ChevronLeft, null)
|
|
130491
|
-
) : null,
|
|
130492
|
-
/* @__PURE__ */ import_react209.default.createElement("div", { role: "presentation", "data-resource-id": item.id })
|
|
130493
|
-
);
|
|
130494
|
-
}, [implicitlyExpanded, expanded, toggleExpanded, selected]);
|
|
130495
|
-
return /* @__PURE__ */ import_react209.default.createElement(
|
|
130496
|
-
$f85fb77f9d4cbc6c$export$84d0dd190d551cd1,
|
|
130497
|
-
{
|
|
130498
|
-
flexGrow: 1,
|
|
130499
|
-
UNSAFE_className: style_default.navListView,
|
|
130500
|
-
items,
|
|
130501
|
-
selectedKeys: selected,
|
|
130502
|
-
disallowEmptySelection: true,
|
|
130503
|
-
ref: listElRef,
|
|
130504
|
-
selectionMode: "single",
|
|
130505
|
-
selectionStyle: "highlight",
|
|
130506
|
-
onSelectionChange: (selectedKeys) => {
|
|
130507
|
-
const key = selectedKeys !== "all" ? `${selectedKeys.keys().next().value}` : void 0;
|
|
130508
|
-
if (key) {
|
|
130509
|
-
onSelect(key);
|
|
130510
|
-
}
|
|
130511
|
-
},
|
|
130512
|
-
"aria-label": "Resource hierarchy"
|
|
130513
|
-
},
|
|
130514
|
-
itemView
|
|
130515
|
-
);
|
|
130516
|
-
});
|
|
130517
|
-
function computeImplicitlyExpanded(pageMap, predicate, _parents) {
|
|
130518
|
-
const foundParents = [];
|
|
130519
|
-
const foundParentPaths = [""];
|
|
130520
|
-
for (const [pagePath, resourceID] of Object.entries(pageMap)) {
|
|
130521
|
-
if (foundParents.includes(pagePath)) {
|
|
130522
|
-
continue;
|
|
130523
|
-
}
|
|
130524
|
-
if (predicate(resourceID)) {
|
|
130525
|
-
let remainder2 = pagePath;
|
|
130526
|
-
while (remainder2) {
|
|
130527
|
-
foundParentPaths.push(remainder2);
|
|
130528
|
-
remainder2 = remainder2.includes("/") ? remainder2.slice(0, remainder2.lastIndexOf("/")) : "";
|
|
130529
|
-
}
|
|
130530
|
-
}
|
|
130531
|
-
}
|
|
130532
|
-
return foundParentPaths.map((p) => pageMap[p]).filter((uri) => uri !== void 0);
|
|
130533
|
-
}
|
|
130534
|
-
|
|
130535
130546
|
// App.tsx
|
|
130536
130547
|
var import_lunr_stemmer = __toESM(require_lunr_stemmer_support(), 1);
|
|
130537
130548
|
var import_tinyseg = __toESM(require_tinyseg(), 1);
|
|
@@ -130710,7 +130721,7 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130710
130721
|
));
|
|
130711
130722
|
}
|
|
130712
130723
|
);
|
|
130713
|
-
}, [fetchJSON, getDomainRelativePath]);
|
|
130724
|
+
}, [fetchJSON, getSiteRootRelativePath, getDomainRelativePath]);
|
|
130714
130725
|
(0, import_react210.useEffect)(() => {
|
|
130715
130726
|
if (!getVersionedPath || !getUnversionedPath) {
|
|
130716
130727
|
return;
|
|
@@ -130743,7 +130754,9 @@ schema (${ast._tag}): ${ast}`;
|
|
|
130743
130754
|
console.debug(`Lunr: enabling language \u201C${primaryLanguage}\u201D`);
|
|
130744
130755
|
enableLanguageSupport(import_lunr2.default);
|
|
130745
130756
|
}
|
|
130757
|
+
console.time("Lunr: load index");
|
|
130746
130758
|
const index = import_lunr2.default.Index.load(serializedIndex);
|
|
130759
|
+
console.timeEnd("Lunr: load index");
|
|
130747
130760
|
if (enableLanguageSupport) {
|
|
130748
130761
|
console.debug(`Lunr: enabling multi-language support for \u201C${primaryLanguage}\u201D`);
|
|
130749
130762
|
(0, import_lunr5.default)(import_lunr2.default);
|
|
@@ -131293,7 +131306,7 @@ schema (${ast._tag}): ${ast}`;
|
|
|
131293
131306
|
onSelect: jumpTo
|
|
131294
131307
|
}
|
|
131295
131308
|
) : state.browsingMode === "search" ? /* @__PURE__ */ import_react210.default.createElement(
|
|
131296
|
-
|
|
131309
|
+
Search,
|
|
131297
131310
|
{
|
|
131298
131311
|
query: state.searchQuery,
|
|
131299
131312
|
index: searchIndex,
|
|
@@ -131358,29 +131371,33 @@ schema (${ast._tag}): ${ast}`;
|
|
|
131358
131371
|
return aPath.replace(/\/$/, "");
|
|
131359
131372
|
}
|
|
131360
131373
|
|
|
131361
|
-
//
|
|
131374
|
+
// lunrPatch.mts
|
|
131362
131375
|
var import_lunr6 = __toESM(require_lunr(), 1);
|
|
131363
|
-
|
|
131364
|
-
|
|
131365
|
-
|
|
131366
|
-
|
|
131367
|
-
}
|
|
131368
|
-
let str = this.final ? "1" : "0", labels = Object.keys(this.edges).sort(), len = labels.length;
|
|
131369
|
-
for (var i2 = 0; i2 < len; i2++) {
|
|
131370
|
-
let label = labels[i2], node = label ? this.edges[label] : void 0;
|
|
131371
|
-
if (node) {
|
|
131372
|
-
str = str + ", L(" + label + ")I(" + node.id + ")";
|
|
131376
|
+
function patchLunr() {
|
|
131377
|
+
import_lunr6.default.TokenSet.prototype.toString = function() {
|
|
131378
|
+
if (this._str) {
|
|
131379
|
+
return this._str;
|
|
131373
131380
|
}
|
|
131374
|
-
|
|
131375
|
-
|
|
131376
|
-
|
|
131381
|
+
let str = this.final ? "1" : "0", labels = Object.keys(this.edges).sort(), len = labels.length;
|
|
131382
|
+
for (var i2 = 0; i2 < len; i2++) {
|
|
131383
|
+
let label = labels[i2], node = label ? this.edges[label] : void 0;
|
|
131384
|
+
if (node) {
|
|
131385
|
+
str = str + ", L(" + label + ")I(" + node.id + ")";
|
|
131386
|
+
}
|
|
131387
|
+
}
|
|
131388
|
+
return str;
|
|
131389
|
+
};
|
|
131390
|
+
}
|
|
131391
|
+
|
|
131392
|
+
// bootstrap.tsx
|
|
131393
|
+
patchLunr();
|
|
131394
|
+
getExtensionImports().then(setUpExtensionImportMap).then(initApp);
|
|
131377
131395
|
function initApp() {
|
|
131378
131396
|
const appRoot = document.getElementById("app");
|
|
131379
131397
|
if (!appRoot) {
|
|
131380
131398
|
console.error("Can\u2019t initialize the app: missing root");
|
|
131381
131399
|
return;
|
|
131382
131400
|
}
|
|
131383
|
-
setUpExtensionImportMap();
|
|
131384
131401
|
const useStrictMode2 = document.documentElement.dataset.useReactStrict === "true";
|
|
131385
131402
|
const originalHTML = appRoot.innerHTML;
|
|
131386
131403
|
document.body.style.height = `${appRoot.clientHeight}px`;
|
|
@@ -131421,12 +131438,7 @@ schema (${ast._tag}): ${ast}`;
|
|
|
131421
131438
|
"anafero/index.mjs": await Promise.resolve().then(() => (init_anafero(), anafero_exports))
|
|
131422
131439
|
};
|
|
131423
131440
|
}
|
|
131424
|
-
|
|
131425
|
-
async function setUpExtensionImportMap() {
|
|
131426
|
-
const deps = await getExtensionImports();
|
|
131427
|
-
if (registered) {
|
|
131428
|
-
return deps;
|
|
131429
|
-
}
|
|
131441
|
+
async function setUpExtensionImportMap(deps) {
|
|
131430
131442
|
const imports = {};
|
|
131431
131443
|
for (const [moduleID, moduleData] of Object.entries(deps)) {
|
|
131432
131444
|
const m = moduleData;
|
|
@@ -131437,7 +131449,6 @@ schema (${ast._tag}): ${ast}`;
|
|
|
131437
131449
|
}
|
|
131438
131450
|
const mapper = new import_import_mapper.ImportMapper(imports);
|
|
131439
131451
|
mapper.register();
|
|
131440
|
-
registered = true;
|
|
131441
131452
|
return deps;
|
|
131442
131453
|
}
|
|
131443
131454
|
})();
|