@riboseinc/anafero-cli 0.0.22 → 0.0.24
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.css +52 -145
- package/bootstrap.css.map +3 -3
- package/bootstrap.js +590 -751
- package/bootstrap.js.map +4 -4
- package/build-site.css +52 -145
- package/build-site.mjs +280 -757
- package/generate-to-filesystem.tsx +18 -3
- package/package.json +1 -1
- package/riboseinc-anafero-cli-0.0.24.tgz +0 -0
- package/riboseinc-anafero-cli-0.0.22.tgz +0 -0
package/build-site.mjs
CHANGED
|
@@ -43924,9 +43924,9 @@ var require_react_reconciler_development = __commonJS({
|
|
|
43924
43924
|
module.exports = function $$$reconciler($$$hostConfig) {
|
|
43925
43925
|
var exports2 = {};
|
|
43926
43926
|
"use strict";
|
|
43927
|
-
var
|
|
43927
|
+
var React50 = require_react();
|
|
43928
43928
|
var Scheduler = require_scheduler();
|
|
43929
|
-
var ReactSharedInternals =
|
|
43929
|
+
var ReactSharedInternals = React50.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
43930
43930
|
var suppressWarning = false;
|
|
43931
43931
|
function setSuppressWarning(newSuppressWarning) {
|
|
43932
43932
|
{
|
|
@@ -197337,10 +197337,10 @@ var require_react_dom_server_legacy_node_development = __commonJS({
|
|
|
197337
197337
|
if (process.env.NODE_ENV !== "production") {
|
|
197338
197338
|
(function() {
|
|
197339
197339
|
"use strict";
|
|
197340
|
-
var
|
|
197340
|
+
var React50 = require_react();
|
|
197341
197341
|
var stream4 = __require("stream");
|
|
197342
197342
|
var ReactVersion = "18.3.1";
|
|
197343
|
-
var ReactSharedInternals =
|
|
197343
|
+
var ReactSharedInternals = React50.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
197344
197344
|
function warn3(format6) {
|
|
197345
197345
|
{
|
|
197346
197346
|
{
|
|
@@ -199246,7 +199246,7 @@ var require_react_dom_server_legacy_node_development = __commonJS({
|
|
|
199246
199246
|
}
|
|
199247
199247
|
function flattenOptionChildren(children2) {
|
|
199248
199248
|
var content = "";
|
|
199249
|
-
|
|
199249
|
+
React50.Children.forEach(children2, function(child) {
|
|
199250
199250
|
if (child == null) {
|
|
199251
199251
|
return;
|
|
199252
199252
|
}
|
|
@@ -202784,10 +202784,10 @@ var require_react_dom_server_node_development = __commonJS({
|
|
|
202784
202784
|
if (process.env.NODE_ENV !== "production") {
|
|
202785
202785
|
(function() {
|
|
202786
202786
|
"use strict";
|
|
202787
|
-
var
|
|
202787
|
+
var React50 = require_react();
|
|
202788
202788
|
var util = __require("util");
|
|
202789
202789
|
var ReactVersion = "18.3.1";
|
|
202790
|
-
var ReactSharedInternals =
|
|
202790
|
+
var ReactSharedInternals = React50.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
202791
202791
|
function warn3(format6) {
|
|
202792
202792
|
{
|
|
202793
202793
|
{
|
|
@@ -204790,7 +204790,7 @@ var require_react_dom_server_node_development = __commonJS({
|
|
|
204790
204790
|
}
|
|
204791
204791
|
function flattenOptionChildren(children2) {
|
|
204792
204792
|
var content = "";
|
|
204793
|
-
|
|
204793
|
+
React50.Children.forEach(children2, function(child) {
|
|
204794
204794
|
if (child == null) {
|
|
204795
204795
|
return;
|
|
204796
204796
|
}
|
|
@@ -209194,8 +209194,8 @@ var require_lib7 = __commonJS({
|
|
|
209194
209194
|
function _interopDefault(ex) {
|
|
209195
209195
|
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
209196
209196
|
}
|
|
209197
|
-
var
|
|
209198
|
-
var React__default = _interopDefault(
|
|
209197
|
+
var React50 = require_react();
|
|
209198
|
+
var React__default = _interopDefault(React50);
|
|
209199
209199
|
function _defineProperty(obj, key, value5) {
|
|
209200
209200
|
if (key in obj) {
|
|
209201
209201
|
Object.defineProperty(obj, key, {
|
|
@@ -209278,7 +209278,7 @@ var require_lib7 = __commonJS({
|
|
|
209278
209278
|
return React__default.createElement(WrappedComponent, this.props);
|
|
209279
209279
|
};
|
|
209280
209280
|
return SideEffect2;
|
|
209281
|
-
}(
|
|
209281
|
+
}(React50.PureComponent);
|
|
209282
209282
|
_defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")");
|
|
209283
209283
|
_defineProperty(SideEffect, "canUseDOM", canUseDOM);
|
|
209284
209284
|
return SideEffect;
|
|
@@ -209378,7 +209378,7 @@ var require_Helmet = __commonJS({
|
|
|
209378
209378
|
var PropTypes = _interopDefault(require_prop_types());
|
|
209379
209379
|
var withSideEffect = _interopDefault(require_lib7());
|
|
209380
209380
|
var isEqual2 = _interopDefault(require_react_fast_compare());
|
|
209381
|
-
var
|
|
209381
|
+
var React50 = _interopDefault(require_react());
|
|
209382
209382
|
var objectAssign = _interopDefault(require_object_assign());
|
|
209383
209383
|
var ATTRIBUTE_NAMES = {
|
|
209384
209384
|
BODY: "bodyAttributes",
|
|
@@ -209829,7 +209829,7 @@ var require_Helmet = __commonJS({
|
|
|
209829
209829
|
key: title
|
|
209830
209830
|
}, _initProps[HELMET_ATTRIBUTE] = true, _initProps);
|
|
209831
209831
|
var props = convertElementAttributestoReactProps(attributes, initProps);
|
|
209832
|
-
return [
|
|
209832
|
+
return [React50.createElement(TAG_NAMES.TITLE, props, title)];
|
|
209833
209833
|
};
|
|
209834
209834
|
var generateTagsAsReactComponent = function generateTagsAsReactComponent2(type2, tags2) {
|
|
209835
209835
|
return tags2.map(function(tag4, i2) {
|
|
@@ -209846,7 +209846,7 @@ var require_Helmet = __commonJS({
|
|
|
209846
209846
|
mappedTag[mappedAttribute] = tag4[attribute];
|
|
209847
209847
|
}
|
|
209848
209848
|
});
|
|
209849
|
-
return
|
|
209849
|
+
return React50.createElement(type2, mappedTag);
|
|
209850
209850
|
});
|
|
209851
209851
|
};
|
|
209852
209852
|
var getMethodsForTag = function getMethodsForTag2(type2, tags2, encode) {
|
|
@@ -209974,7 +209974,7 @@ var require_Helmet = __commonJS({
|
|
|
209974
209974
|
HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children2, newProps) {
|
|
209975
209975
|
var _this2 = this;
|
|
209976
209976
|
var arrayTypeChildren = {};
|
|
209977
|
-
|
|
209977
|
+
React50.Children.forEach(children2, function(child) {
|
|
209978
209978
|
if (!child || !child.props) {
|
|
209979
209979
|
return;
|
|
209980
209980
|
}
|
|
@@ -210013,7 +210013,7 @@ var require_Helmet = __commonJS({
|
|
|
210013
210013
|
if (children2) {
|
|
210014
210014
|
newProps = this.mapChildrenToProps(children2, newProps);
|
|
210015
210015
|
}
|
|
210016
|
-
return
|
|
210016
|
+
return React50.createElement(Component2, newProps);
|
|
210017
210017
|
};
|
|
210018
210018
|
createClass(HelmetWrapper, null, [{
|
|
210019
210019
|
key: "canUseDOM",
|
|
@@ -210043,7 +210043,7 @@ var require_Helmet = __commonJS({
|
|
|
210043
210043
|
}
|
|
210044
210044
|
}]);
|
|
210045
210045
|
return HelmetWrapper;
|
|
210046
|
-
}(
|
|
210046
|
+
}(React50.Component), _class.propTypes = {
|
|
210047
210047
|
base: PropTypes.object,
|
|
210048
210048
|
bodyAttributes: PropTypes.object,
|
|
210049
210049
|
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
|
@@ -210094,190 +210094,6 @@ var require_Helmet = __commonJS({
|
|
|
210094
210094
|
}
|
|
210095
210095
|
});
|
|
210096
210096
|
|
|
210097
|
-
// ../../.yarn/__virtual__/use-sync-external-store-virtual-f448977d0a/0/cache/use-sync-external-store-npm-1.2.2-7923c915e1-23b1597c10.zip/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js
|
|
210098
|
-
var require_use_sync_external_store_shim_production_min = __commonJS({
|
|
210099
|
-
"../../.yarn/__virtual__/use-sync-external-store-virtual-f448977d0a/0/cache/use-sync-external-store-npm-1.2.2-7923c915e1-23b1597c10.zip/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js"(exports) {
|
|
210100
|
-
"use strict";
|
|
210101
|
-
init_cjs_shim();
|
|
210102
|
-
var e2 = require_react();
|
|
210103
|
-
function h4(a, b) {
|
|
210104
|
-
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
210105
|
-
}
|
|
210106
|
-
var k = "function" === typeof Object.is ? Object.is : h4;
|
|
210107
|
-
var l = e2.useState;
|
|
210108
|
-
var m2 = e2.useEffect;
|
|
210109
|
-
var n = e2.useLayoutEffect;
|
|
210110
|
-
var p3 = e2.useDebugValue;
|
|
210111
|
-
function q(a, b) {
|
|
210112
|
-
var d = b(), f3 = l({ inst: { value: d, getSnapshot: b } }), c = f3[0].inst, g = f3[1];
|
|
210113
|
-
n(function() {
|
|
210114
|
-
c.value = d;
|
|
210115
|
-
c.getSnapshot = b;
|
|
210116
|
-
r3(c) && g({ inst: c });
|
|
210117
|
-
}, [a, d, b]);
|
|
210118
|
-
m2(function() {
|
|
210119
|
-
r3(c) && g({ inst: c });
|
|
210120
|
-
return a(function() {
|
|
210121
|
-
r3(c) && g({ inst: c });
|
|
210122
|
-
});
|
|
210123
|
-
}, [a]);
|
|
210124
|
-
p3(d);
|
|
210125
|
-
return d;
|
|
210126
|
-
}
|
|
210127
|
-
function r3(a) {
|
|
210128
|
-
var b = a.getSnapshot;
|
|
210129
|
-
a = a.value;
|
|
210130
|
-
try {
|
|
210131
|
-
var d = b();
|
|
210132
|
-
return !k(a, d);
|
|
210133
|
-
} catch (f3) {
|
|
210134
|
-
return true;
|
|
210135
|
-
}
|
|
210136
|
-
}
|
|
210137
|
-
function t2(a, b) {
|
|
210138
|
-
return b();
|
|
210139
|
-
}
|
|
210140
|
-
var u = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t2 : q;
|
|
210141
|
-
exports.useSyncExternalStore = void 0 !== e2.useSyncExternalStore ? e2.useSyncExternalStore : u;
|
|
210142
|
-
}
|
|
210143
|
-
});
|
|
210144
|
-
|
|
210145
|
-
// ../../.yarn/__virtual__/use-sync-external-store-virtual-f448977d0a/0/cache/use-sync-external-store-npm-1.2.2-7923c915e1-23b1597c10.zip/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
210146
|
-
var require_use_sync_external_store_shim_development = __commonJS({
|
|
210147
|
-
"../../.yarn/__virtual__/use-sync-external-store-virtual-f448977d0a/0/cache/use-sync-external-store-npm-1.2.2-7923c915e1-23b1597c10.zip/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
|
|
210148
|
-
"use strict";
|
|
210149
|
-
init_cjs_shim();
|
|
210150
|
-
if (process.env.NODE_ENV !== "production") {
|
|
210151
|
-
(function() {
|
|
210152
|
-
"use strict";
|
|
210153
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
210154
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
210155
|
-
}
|
|
210156
|
-
var React53 = require_react();
|
|
210157
|
-
var ReactSharedInternals = React53.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
210158
|
-
function error4(format6) {
|
|
210159
|
-
{
|
|
210160
|
-
{
|
|
210161
|
-
for (var _len2 = arguments.length, args2 = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
210162
|
-
args2[_key2 - 1] = arguments[_key2];
|
|
210163
|
-
}
|
|
210164
|
-
printWarning("error", format6, args2);
|
|
210165
|
-
}
|
|
210166
|
-
}
|
|
210167
|
-
}
|
|
210168
|
-
function printWarning(level, format6, args2) {
|
|
210169
|
-
{
|
|
210170
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
210171
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
210172
|
-
if (stack !== "") {
|
|
210173
|
-
format6 += "%s";
|
|
210174
|
-
args2 = args2.concat([stack]);
|
|
210175
|
-
}
|
|
210176
|
-
var argsWithFormat = args2.map(function(item) {
|
|
210177
|
-
return String(item);
|
|
210178
|
-
});
|
|
210179
|
-
argsWithFormat.unshift("Warning: " + format6);
|
|
210180
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
210181
|
-
}
|
|
210182
|
-
}
|
|
210183
|
-
function is6(x2, y) {
|
|
210184
|
-
return x2 === y && (x2 !== 0 || 1 / x2 === 1 / y) || x2 !== x2 && y !== y;
|
|
210185
|
-
}
|
|
210186
|
-
var objectIs = typeof Object.is === "function" ? Object.is : is6;
|
|
210187
|
-
var useState14 = React53.useState, useEffect12 = React53.useEffect, useLayoutEffect12 = React53.useLayoutEffect, useDebugValue = React53.useDebugValue;
|
|
210188
|
-
var didWarnOld18Alpha = false;
|
|
210189
|
-
var didWarnUncachedGetSnapshot = false;
|
|
210190
|
-
function useSyncExternalStore(subscribe4, getSnapshot, getServerSnapshot) {
|
|
210191
|
-
{
|
|
210192
|
-
if (!didWarnOld18Alpha) {
|
|
210193
|
-
if (React53.startTransition !== void 0) {
|
|
210194
|
-
didWarnOld18Alpha = true;
|
|
210195
|
-
error4("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
210196
|
-
}
|
|
210197
|
-
}
|
|
210198
|
-
}
|
|
210199
|
-
var value5 = getSnapshot();
|
|
210200
|
-
{
|
|
210201
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
210202
|
-
var cachedValue = getSnapshot();
|
|
210203
|
-
if (!objectIs(value5, cachedValue)) {
|
|
210204
|
-
error4("The result of getSnapshot should be cached to avoid an infinite loop");
|
|
210205
|
-
didWarnUncachedGetSnapshot = true;
|
|
210206
|
-
}
|
|
210207
|
-
}
|
|
210208
|
-
}
|
|
210209
|
-
var _useState = useState14({
|
|
210210
|
-
inst: {
|
|
210211
|
-
value: value5,
|
|
210212
|
-
getSnapshot
|
|
210213
|
-
}
|
|
210214
|
-
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
210215
|
-
useLayoutEffect12(function() {
|
|
210216
|
-
inst.value = value5;
|
|
210217
|
-
inst.getSnapshot = getSnapshot;
|
|
210218
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
210219
|
-
forceUpdate({
|
|
210220
|
-
inst
|
|
210221
|
-
});
|
|
210222
|
-
}
|
|
210223
|
-
}, [subscribe4, value5, getSnapshot]);
|
|
210224
|
-
useEffect12(function() {
|
|
210225
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
210226
|
-
forceUpdate({
|
|
210227
|
-
inst
|
|
210228
|
-
});
|
|
210229
|
-
}
|
|
210230
|
-
var handleStoreChange = function() {
|
|
210231
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
210232
|
-
forceUpdate({
|
|
210233
|
-
inst
|
|
210234
|
-
});
|
|
210235
|
-
}
|
|
210236
|
-
};
|
|
210237
|
-
return subscribe4(handleStoreChange);
|
|
210238
|
-
}, [subscribe4]);
|
|
210239
|
-
useDebugValue(value5);
|
|
210240
|
-
return value5;
|
|
210241
|
-
}
|
|
210242
|
-
function checkIfSnapshotChanged(inst) {
|
|
210243
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
210244
|
-
var prevValue = inst.value;
|
|
210245
|
-
try {
|
|
210246
|
-
var nextValue = latestGetSnapshot();
|
|
210247
|
-
return !objectIs(prevValue, nextValue);
|
|
210248
|
-
} catch (error5) {
|
|
210249
|
-
return true;
|
|
210250
|
-
}
|
|
210251
|
-
}
|
|
210252
|
-
function useSyncExternalStore$1(subscribe4, getSnapshot, getServerSnapshot) {
|
|
210253
|
-
return getSnapshot();
|
|
210254
|
-
}
|
|
210255
|
-
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
210256
|
-
var isServerEnvironment = !canUseDOM;
|
|
210257
|
-
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
210258
|
-
var useSyncExternalStore$2 = React53.useSyncExternalStore !== void 0 ? React53.useSyncExternalStore : shim;
|
|
210259
|
-
exports.useSyncExternalStore = useSyncExternalStore$2;
|
|
210260
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
210261
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
210262
|
-
}
|
|
210263
|
-
})();
|
|
210264
|
-
}
|
|
210265
|
-
}
|
|
210266
|
-
});
|
|
210267
|
-
|
|
210268
|
-
// ../../.yarn/__virtual__/use-sync-external-store-virtual-f448977d0a/0/cache/use-sync-external-store-npm-1.2.2-7923c915e1-23b1597c10.zip/node_modules/use-sync-external-store/shim/index.js
|
|
210269
|
-
var require_shim = __commonJS({
|
|
210270
|
-
"../../.yarn/__virtual__/use-sync-external-store-virtual-f448977d0a/0/cache/use-sync-external-store-npm-1.2.2-7923c915e1-23b1597c10.zip/node_modules/use-sync-external-store/shim/index.js"(exports, module) {
|
|
210271
|
-
"use strict";
|
|
210272
|
-
init_cjs_shim();
|
|
210273
|
-
if (process.env.NODE_ENV === "production") {
|
|
210274
|
-
module.exports = require_use_sync_external_store_shim_production_min();
|
|
210275
|
-
} else {
|
|
210276
|
-
module.exports = require_use_sync_external_store_shim_development();
|
|
210277
|
-
}
|
|
210278
|
-
}
|
|
210279
|
-
});
|
|
210280
|
-
|
|
210281
210097
|
// ../../.yarn/__virtual__/react-dom-virtual-9e1c81d6d0/0/cache/react-dom-npm-18.3.1-a805663f38-a752496c19.zip/node_modules/react-dom/cjs/react-dom.production.min.js
|
|
210282
210098
|
var require_react_dom_production_min = __commonJS({
|
|
210283
210099
|
"../../.yarn/__virtual__/react-dom-virtual-9e1c81d6d0/0/cache/react-dom-npm-18.3.1-a805663f38-a752496c19.zip/node_modules/react-dom/cjs/react-dom.production.min.js"(exports) {
|
|
@@ -216900,9 +216716,9 @@ var require_react_dom_development = __commonJS({
|
|
|
216900
216716
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
216901
216717
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
216902
216718
|
}
|
|
216903
|
-
var
|
|
216719
|
+
var React50 = require_react();
|
|
216904
216720
|
var Scheduler = require_scheduler();
|
|
216905
|
-
var ReactSharedInternals =
|
|
216721
|
+
var ReactSharedInternals = React50.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
216906
216722
|
var suppressWarning = false;
|
|
216907
216723
|
function setSuppressWarning(newSuppressWarning) {
|
|
216908
216724
|
{
|
|
@@ -218509,7 +218325,7 @@ var require_react_dom_development = __commonJS({
|
|
|
218509
218325
|
{
|
|
218510
218326
|
if (props.value == null) {
|
|
218511
218327
|
if (typeof props.children === "object" && props.children !== null) {
|
|
218512
|
-
|
|
218328
|
+
React50.Children.forEach(props.children, function(child) {
|
|
218513
218329
|
if (child == null) {
|
|
218514
218330
|
return;
|
|
218515
218331
|
}
|
|
@@ -241323,51 +241139,6 @@ var require_TextBulletedHierarchy = __commonJS({
|
|
|
241323
241139
|
}
|
|
241324
241140
|
});
|
|
241325
241141
|
|
|
241326
|
-
// ../../.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/Bookmark.js
|
|
241327
|
-
var require_Bookmark = __commonJS({
|
|
241328
|
-
"../../.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/Bookmark.js"(exports) {
|
|
241329
|
-
"use strict";
|
|
241330
|
-
init_cjs_shim();
|
|
241331
|
-
Object.defineProperty(exports, "__esModule", {
|
|
241332
|
-
value: true
|
|
241333
|
-
});
|
|
241334
|
-
exports.A4uBookmark = A4uBookmark;
|
|
241335
|
-
var _react = _interopRequireDefault(require_react());
|
|
241336
|
-
function _interopRequireDefault(obj) {
|
|
241337
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
241338
|
-
}
|
|
241339
|
-
function _extends5() {
|
|
241340
|
-
_extends5 = Object.assign ? Object.assign.bind() : function(target) {
|
|
241341
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
241342
|
-
var source = arguments[i2];
|
|
241343
|
-
for (var key in source) {
|
|
241344
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
241345
|
-
target[key] = source[key];
|
|
241346
|
-
}
|
|
241347
|
-
}
|
|
241348
|
-
}
|
|
241349
|
-
return target;
|
|
241350
|
-
};
|
|
241351
|
-
return _extends5.apply(this, arguments);
|
|
241352
|
-
}
|
|
241353
|
-
function A4uBookmark(_ref) {
|
|
241354
|
-
var props = _extends5({}, _ref);
|
|
241355
|
-
return /* @__PURE__ */ _react["default"].createElement("svg", _extends5({
|
|
241356
|
-
viewBox: "0 0 36 36"
|
|
241357
|
-
}, props, props), /* @__PURE__ */ _react["default"].createElement("path", {
|
|
241358
|
-
fillRule: "evenodd",
|
|
241359
|
-
d: "M15.071,34.724,13,31.373l-2.071,3.351A.5.5,0,0,1,10,34.467V24h6V34.467A.5.5,0,0,1,15.071,34.724Z"
|
|
241360
|
-
}), /* @__PURE__ */ _react["default"].createElement("path", {
|
|
241361
|
-
fillRule: "evenodd",
|
|
241362
|
-
d: "M8,27.443A3.987,3.987,0,0,1,9.995,20H20.518a1,1,0,0,0,.8-.4l11.1-14.8a.5.5,0,0,0-.4-.8H16.025a1,1,0,0,0-.8.4L3.522,19.328H3.53A7.942,7.942,0,0,0,8,31.716Z"
|
|
241363
|
-
}), /* @__PURE__ */ _react["default"].createElement("path", {
|
|
241364
|
-
fillRule: "evenodd",
|
|
241365
|
-
d: "M32.018,16H28.782l-9,12H18v4h2.518a1,1,0,0,0,.8-.4l11.1-14.8A.5.5,0,0,0,32.018,16Z"
|
|
241366
|
-
}));
|
|
241367
|
-
}
|
|
241368
|
-
}
|
|
241369
|
-
});
|
|
241370
|
-
|
|
241371
241142
|
// ../../.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
|
|
241372
241143
|
var require_Search = __commonJS({
|
|
241373
241144
|
"../../.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) {
|
|
@@ -241407,84 +241178,6 @@ var require_Search = __commonJS({
|
|
|
241407
241178
|
}
|
|
241408
241179
|
});
|
|
241409
241180
|
|
|
241410
|
-
// ../../.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/Settings.js
|
|
241411
|
-
var require_Settings = __commonJS({
|
|
241412
|
-
"../../.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/Settings.js"(exports) {
|
|
241413
|
-
"use strict";
|
|
241414
|
-
init_cjs_shim();
|
|
241415
|
-
Object.defineProperty(exports, "__esModule", {
|
|
241416
|
-
value: true
|
|
241417
|
-
});
|
|
241418
|
-
exports.A4uSettings = A4uSettings;
|
|
241419
|
-
var _react = _interopRequireDefault(require_react());
|
|
241420
|
-
function _interopRequireDefault(obj) {
|
|
241421
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
241422
|
-
}
|
|
241423
|
-
function _extends5() {
|
|
241424
|
-
_extends5 = Object.assign ? Object.assign.bind() : function(target) {
|
|
241425
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
241426
|
-
var source = arguments[i2];
|
|
241427
|
-
for (var key in source) {
|
|
241428
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
241429
|
-
target[key] = source[key];
|
|
241430
|
-
}
|
|
241431
|
-
}
|
|
241432
|
-
}
|
|
241433
|
-
return target;
|
|
241434
|
-
};
|
|
241435
|
-
return _extends5.apply(this, arguments);
|
|
241436
|
-
}
|
|
241437
|
-
function A4uSettings(_ref) {
|
|
241438
|
-
var props = _extends5({}, _ref);
|
|
241439
|
-
return /* @__PURE__ */ _react["default"].createElement("svg", _extends5({
|
|
241440
|
-
viewBox: "0 0 36 36"
|
|
241441
|
-
}, props, props), /* @__PURE__ */ _react["default"].createElement("path", {
|
|
241442
|
-
fillRule: "evenodd",
|
|
241443
|
-
d: "M32.9,15.793H29.789a11.953,11.953,0,0,0-1.842-4.507L30.152,9.08a1.1,1.1,0,0,0,0-1.56L28.479,5.848a1.1,1.1,0,0,0-1.56,0L24.714,8.053a11.925,11.925,0,0,0-4.507-1.841V3.1A1.1,1.1,0,0,0,19.1,2H16.9a1.1,1.1,0,0,0-1.1,1.1V6.212a11.925,11.925,0,0,0-4.507,1.841l-2.2-2.205a1.1,1.1,0,0,0-1.56,0L5.848,7.52a1.1,1.1,0,0,0,0,1.56l2.205,2.206a11.953,11.953,0,0,0-1.842,4.507H3.1A1.1,1.1,0,0,0,2,16.9V19.1a1.1,1.1,0,0,0,1.1,1.1H6.211a11.934,11.934,0,0,0,1.842,4.507L5.848,26.919a1.1,1.1,0,0,0,0,1.56l1.673,1.673a1.1,1.1,0,0,0,1.56,0l2.205-2.205a11.925,11.925,0,0,0,4.507,1.841V32.9A1.1,1.1,0,0,0,16.9,34H19.1a1.1,1.1,0,0,0,1.1-1.1V29.788a11.925,11.925,0,0,0,4.507-1.841l2.205,2.205a1.1,1.1,0,0,0,1.56,0l1.673-1.673a1.1,1.1,0,0,0,0-1.56l-2.205-2.205a11.934,11.934,0,0,0,1.842-4.507H32.9A1.1,1.1,0,0,0,34,19.1V16.9A1.1,1.1,0,0,0,32.9,15.793ZM22.414,18A4.414,4.414,0,1,1,18,13.586,4.414,4.414,0,0,1,22.414,18Z"
|
|
241444
|
-
}));
|
|
241445
|
-
}
|
|
241446
|
-
}
|
|
241447
|
-
});
|
|
241448
|
-
|
|
241449
|
-
// ../../.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/Branch1.js
|
|
241450
|
-
var require_Branch1 = __commonJS({
|
|
241451
|
-
"../../.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/Branch1.js"(exports) {
|
|
241452
|
-
"use strict";
|
|
241453
|
-
init_cjs_shim();
|
|
241454
|
-
Object.defineProperty(exports, "__esModule", {
|
|
241455
|
-
value: true
|
|
241456
|
-
});
|
|
241457
|
-
exports.A4uBranch1 = A4uBranch1;
|
|
241458
|
-
var _react = _interopRequireDefault(require_react());
|
|
241459
|
-
function _interopRequireDefault(obj) {
|
|
241460
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
241461
|
-
}
|
|
241462
|
-
function _extends5() {
|
|
241463
|
-
_extends5 = Object.assign ? Object.assign.bind() : function(target) {
|
|
241464
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
241465
|
-
var source = arguments[i2];
|
|
241466
|
-
for (var key in source) {
|
|
241467
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
241468
|
-
target[key] = source[key];
|
|
241469
|
-
}
|
|
241470
|
-
}
|
|
241471
|
-
}
|
|
241472
|
-
return target;
|
|
241473
|
-
};
|
|
241474
|
-
return _extends5.apply(this, arguments);
|
|
241475
|
-
}
|
|
241476
|
-
function A4uBranch1(_ref) {
|
|
241477
|
-
var props = _extends5({}, _ref);
|
|
241478
|
-
return /* @__PURE__ */ _react["default"].createElement("svg", _extends5({
|
|
241479
|
-
viewBox: "0 0 36 36"
|
|
241480
|
-
}, props, props), /* @__PURE__ */ _react["default"].createElement("path", {
|
|
241481
|
-
fillRule: "evenodd",
|
|
241482
|
-
d: "M28,18a5.962,5.962,0,0,0-4.608,2.2L13.84,15.333a6.067,6.067,0,1,0-1.346,2.6l9.622,4.9A6,6,0,1,0,28,18Zm0,9a3,3,0,1,1,3-3A3,3,0,0,1,28,27Z"
|
|
241483
|
-
}));
|
|
241484
|
-
}
|
|
241485
|
-
}
|
|
241486
|
-
});
|
|
241487
|
-
|
|
241488
241181
|
// ../../.yarn/cache/web-streams-polyfill-npm-3.3.3-f24b9f8c34-64e855c47f.zip/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js
|
|
241489
241182
|
var require_ponyfill_es2018 = __commonJS({
|
|
241490
241183
|
"../../.yarn/cache/web-streams-polyfill-npm-3.3.3-f24b9f8c34-64e855c47f.zip/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports, module) {
|
|
@@ -287401,7 +287094,7 @@ var wizard7 = wizard6;
|
|
|
287401
287094
|
var run8 = run7;
|
|
287402
287095
|
|
|
287403
287096
|
// generate-to-filesystem.tsx
|
|
287404
|
-
var
|
|
287097
|
+
var import_react128 = __toESM(require_react(), 1);
|
|
287405
287098
|
|
|
287406
287099
|
// ../../.yarn/__virtual__/ink-virtual-eb6ab36a88/0/cache/ink-npm-5.0.1-25988da7ed-3cb2eabe7a.zip/node_modules/ink/build/index.js
|
|
287407
287100
|
init_cjs_shim();
|
|
@@ -294678,7 +294371,7 @@ var import_xpath2 = __toESM(require_xpath2(), 1);
|
|
|
294678
294371
|
// ../anafero/process.mts
|
|
294679
294372
|
init_cjs_shim();
|
|
294680
294373
|
var import_server = __toESM(require_server_node(), 1);
|
|
294681
|
-
var
|
|
294374
|
+
var import_react127 = __toESM(require_react(), 1);
|
|
294682
294375
|
var import_react_helmet2 = __toESM(require_Helmet(), 1);
|
|
294683
294376
|
|
|
294684
294377
|
// ../../.yarn/__virtual__/@adobe-react-spectrum-virtual-80badd7df0/0/cache/@adobe-react-spectrum-npm-3.37.1-2e2887692f-0943de6e59.zip/node_modules/@adobe/react-spectrum/dist/import.mjs
|
|
@@ -298152,29 +297845,6 @@ function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
|
|
|
298152
297845
|
};
|
|
298153
297846
|
}
|
|
298154
297847
|
|
|
298155
|
-
// ../../.yarn/__virtual__/@react-aria-separator-virtual-2737067ef8/0/cache/@react-aria-separator-npm-3.4.3-5a3ce4faf6-322b713594.zip/node_modules/@react-aria/separator/dist/import.mjs
|
|
298156
|
-
init_cjs_shim();
|
|
298157
|
-
|
|
298158
|
-
// ../../.yarn/__virtual__/@react-aria-separator-virtual-2737067ef8/0/cache/@react-aria-separator-npm-3.4.3-5a3ce4faf6-322b713594.zip/node_modules/@react-aria/separator/dist/useSeparator.mjs
|
|
298159
|
-
init_cjs_shim();
|
|
298160
|
-
function $f4b273590fab9f93$export$52210f68a14655d0(props) {
|
|
298161
|
-
let domProps = (0, $65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
|
|
298162
|
-
labelable: true
|
|
298163
|
-
});
|
|
298164
|
-
let ariaOrientation;
|
|
298165
|
-
if (props.orientation === "vertical") ariaOrientation = "vertical";
|
|
298166
|
-
if (props.elementType !== "hr") return {
|
|
298167
|
-
separatorProps: {
|
|
298168
|
-
...domProps,
|
|
298169
|
-
role: "separator",
|
|
298170
|
-
"aria-orientation": ariaOrientation
|
|
298171
|
-
}
|
|
298172
|
-
};
|
|
298173
|
-
return {
|
|
298174
|
-
separatorProps: domProps
|
|
298175
|
-
};
|
|
298176
|
-
}
|
|
298177
|
-
|
|
298178
297848
|
// ../../.yarn/__virtual__/@react-aria-toolbar-virtual-b43e94ce37/0/cache/@react-aria-toolbar-npm-3.0.0-beta.10-a10451be3a-5e4e4b2855.zip/node_modules/@react-aria/toolbar/dist/import.mjs
|
|
298179
297849
|
init_cjs_shim();
|
|
298180
297850
|
|
|
@@ -298739,80 +298409,14 @@ var $3979c7c23b0bd270$export$d2b052e7b4be1756 = /* @__PURE__ */ (0, import_react
|
|
|
298739
298409
|
// ../../.yarn/__virtual__/react-aria-components-virtual-480bef1f39/0/cache/react-aria-components-npm-1.4.1-aa6ebdbc1e-67ef87ea1f.zip/node_modules/react-aria-components/dist/import.mjs
|
|
298740
298410
|
init_cjs_shim();
|
|
298741
298411
|
|
|
298742
|
-
// ../../.yarn/__virtual__/@react-aria-collections-virtual-16434edefe/0/cache/@react-aria-collections-npm-3.0.0-alpha.5-15253a8a8f-a9437ce549.zip/node_modules/@react-aria/collections/dist/import.mjs
|
|
298743
|
-
init_cjs_shim();
|
|
298744
|
-
|
|
298745
|
-
// ../../.yarn/__virtual__/@react-aria-collections-virtual-16434edefe/0/cache/@react-aria-collections-npm-3.0.0-alpha.5-15253a8a8f-a9437ce549.zip/node_modules/@react-aria/collections/dist/CollectionBuilder.mjs
|
|
298746
|
-
init_cjs_shim();
|
|
298747
|
-
var import_react_dom2 = __toESM(require_react_dom(), 1);
|
|
298748
|
-
var import_react88 = __toESM(require_react(), 1);
|
|
298749
|
-
var import_shim = __toESM(require_shim(), 1);
|
|
298750
|
-
var $e1995378a142960e$var$ShallowRenderContext = /* @__PURE__ */ (0, import_react88.createContext)(false);
|
|
298751
|
-
function $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe4, getSnapshot, getServerSnapshot) {
|
|
298752
|
-
let isSSR = (0, $b5e257d569688ac6$export$535bd6ca7f90a273)();
|
|
298753
|
-
let isSSRRef = (0, import_react88.useRef)(isSSR);
|
|
298754
|
-
isSSRRef.current = isSSR;
|
|
298755
|
-
let getSnapshotWrapper = (0, import_react88.useCallback)(() => {
|
|
298756
|
-
return isSSRRef.current ? getServerSnapshot() : getSnapshot();
|
|
298757
|
-
}, [
|
|
298758
|
-
getSnapshot,
|
|
298759
|
-
getServerSnapshot
|
|
298760
|
-
]);
|
|
298761
|
-
return (0, import_shim.useSyncExternalStore)(subscribe4, getSnapshotWrapper);
|
|
298762
|
-
}
|
|
298763
|
-
var $e1995378a142960e$var$useSyncExternalStore = typeof (0, import_react88.default)["useSyncExternalStore"] === "function" ? (0, import_react88.default)["useSyncExternalStore"] : $e1995378a142960e$var$useSyncExternalStoreFallback;
|
|
298764
|
-
var $e1995378a142960e$var$SSRContext = /* @__PURE__ */ (0, import_react88.createContext)(null);
|
|
298765
|
-
function $e1995378a142960e$var$useSSRCollectionNode(Type7, props, ref, rendered, children2, render7) {
|
|
298766
|
-
let itemRef = (0, import_react88.useCallback)((element2) => {
|
|
298767
|
-
element2 === null || element2 === void 0 ? void 0 : element2.setProps(props, ref, rendered, render7);
|
|
298768
|
-
}, [
|
|
298769
|
-
props,
|
|
298770
|
-
ref,
|
|
298771
|
-
rendered,
|
|
298772
|
-
render7
|
|
298773
|
-
]);
|
|
298774
|
-
let parentNode3 = (0, import_react88.useContext)($e1995378a142960e$var$SSRContext);
|
|
298775
|
-
if (parentNode3) {
|
|
298776
|
-
let element2 = parentNode3.ownerDocument.nodesByProps.get(props);
|
|
298777
|
-
if (!element2) {
|
|
298778
|
-
element2 = parentNode3.ownerDocument.createElement(Type7);
|
|
298779
|
-
element2.setProps(props, ref, rendered, render7);
|
|
298780
|
-
parentNode3.appendChild(element2);
|
|
298781
|
-
parentNode3.ownerDocument.updateCollection();
|
|
298782
|
-
parentNode3.ownerDocument.nodesByProps.set(props, element2);
|
|
298783
|
-
}
|
|
298784
|
-
return children2 ? /* @__PURE__ */ (0, import_react88.default).createElement($e1995378a142960e$var$SSRContext.Provider, {
|
|
298785
|
-
value: element2
|
|
298786
|
-
}, children2) : null;
|
|
298787
|
-
}
|
|
298788
|
-
return /* @__PURE__ */ (0, import_react88.default).createElement(Type7, {
|
|
298789
|
-
ref: itemRef
|
|
298790
|
-
}, children2);
|
|
298791
|
-
}
|
|
298792
|
-
function $e1995378a142960e$export$18af5c7a9e9b3664(type2, render7) {
|
|
298793
|
-
let Component2 = ({ node }) => render7(node.props, node.props.ref, node);
|
|
298794
|
-
let Result = (0, import_react88.forwardRef)((props, ref) => {
|
|
298795
|
-
let isShallow = (0, import_react88.useContext)($e1995378a142960e$var$ShallowRenderContext);
|
|
298796
|
-
if (!isShallow) {
|
|
298797
|
-
if (render7.length >= 3) throw new Error(render7.name + " cannot be rendered outside a collection.");
|
|
298798
|
-
return render7(props, ref);
|
|
298799
|
-
}
|
|
298800
|
-
return $e1995378a142960e$var$useSSRCollectionNode(type2, props, ref, "children" in props ? props.children : null, null, (node) => /* @__PURE__ */ (0, import_react88.default).createElement(Component2, {
|
|
298801
|
-
node
|
|
298802
|
-
}));
|
|
298803
|
-
});
|
|
298804
|
-
Result.displayName = render7.name;
|
|
298805
|
-
return Result;
|
|
298806
|
-
}
|
|
298807
|
-
|
|
298808
298412
|
// ../../.yarn/__virtual__/react-aria-components-virtual-480bef1f39/0/cache/react-aria-components-npm-1.4.1-aa6ebdbc1e-67ef87ea1f.zip/node_modules/react-aria-components/dist/utils.mjs
|
|
298809
298413
|
init_cjs_shim();
|
|
298810
|
-
var
|
|
298811
|
-
var
|
|
298414
|
+
var import_react88 = __toESM(require_react(), 1);
|
|
298415
|
+
var import_react_dom2 = __toESM(require_react_dom(), 1);
|
|
298812
298416
|
var $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol("default");
|
|
298813
298417
|
function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
298814
298418
|
let { className, style, children: children2, defaultClassName, defaultChildren, defaultStyle, values: values3 } = props;
|
|
298815
|
-
return (0,
|
|
298419
|
+
return (0, import_react88.useMemo)(() => {
|
|
298816
298420
|
let computedClassName;
|
|
298817
298421
|
let computedStyle;
|
|
298818
298422
|
let computedChildren;
|
|
@@ -298852,7 +298456,7 @@ function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
|
298852
298456
|
]);
|
|
298853
298457
|
}
|
|
298854
298458
|
function $64fa3d84918910a7$export$fabf2dc03a41866e(context9, slot) {
|
|
298855
|
-
let ctx = (0,
|
|
298459
|
+
let ctx = (0, import_react88.useContext)(context9);
|
|
298856
298460
|
if (slot === null)
|
|
298857
298461
|
return null;
|
|
298858
298462
|
if (ctx && typeof ctx === "object" && "slots" in ctx && ctx.slots) {
|
|
@@ -298868,7 +298472,7 @@ function $64fa3d84918910a7$export$fabf2dc03a41866e(context9, slot) {
|
|
|
298868
298472
|
function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context9) {
|
|
298869
298473
|
let ctx = $64fa3d84918910a7$export$fabf2dc03a41866e(context9, props.slot) || {};
|
|
298870
298474
|
let { ref: contextRef, ...contextProps } = ctx;
|
|
298871
|
-
let mergedRef = (0, $df56164dff5785e2$export$4338b53315abf666)((0,
|
|
298475
|
+
let mergedRef = (0, $df56164dff5785e2$export$4338b53315abf666)((0, import_react88.useMemo)(() => (0, $5dc95899b306f630$export$c9058316764c140e)(ref, contextRef), [
|
|
298872
298476
|
ref,
|
|
298873
298477
|
contextRef
|
|
298874
298478
|
]));
|
|
@@ -298905,33 +298509,10 @@ function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context9) {
|
|
|
298905
298509
|
// ../../.yarn/__virtual__/react-aria-virtual-2ceba27baf/0/cache/react-aria-npm-3.35.1-2baa7c2ac0-2211d5bf2b.zip/node_modules/react-aria/dist/import.mjs
|
|
298906
298510
|
init_cjs_shim();
|
|
298907
298511
|
|
|
298908
|
-
// ../../.yarn/__virtual__/react-aria-components-virtual-480bef1f39/0/cache/react-aria-components-npm-1.4.1-aa6ebdbc1e-67ef87ea1f.zip/node_modules/react-aria-components/dist/Separator.mjs
|
|
298909
|
-
init_cjs_shim();
|
|
298910
|
-
var import_react90 = __toESM(require_react(), 1);
|
|
298911
|
-
var $431f98aba6844401$export$6615d83f6de245ce = /* @__PURE__ */ (0, import_react90.createContext)({});
|
|
298912
|
-
var $431f98aba6844401$export$1ff3c3f08ae963c0 = /* @__PURE__ */ (0, $e1995378a142960e$export$18af5c7a9e9b3664)("separator", function Separator(props, ref) {
|
|
298913
|
-
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $431f98aba6844401$export$6615d83f6de245ce);
|
|
298914
|
-
let { elementType, orientation, style, className } = props;
|
|
298915
|
-
let Element2 = elementType || "hr";
|
|
298916
|
-
if (Element2 === "hr" && orientation === "vertical") Element2 = "div";
|
|
298917
|
-
let { separatorProps } = (0, $f4b273590fab9f93$export$52210f68a14655d0)({
|
|
298918
|
-
elementType,
|
|
298919
|
-
orientation
|
|
298920
|
-
});
|
|
298921
|
-
return /* @__PURE__ */ (0, import_react90.default).createElement(Element2, {
|
|
298922
|
-
...(0, $65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props),
|
|
298923
|
-
...separatorProps,
|
|
298924
|
-
style,
|
|
298925
|
-
className: className !== null && className !== void 0 ? className : "react-aria-Separator",
|
|
298926
|
-
ref,
|
|
298927
|
-
slot: props.slot || void 0
|
|
298928
|
-
});
|
|
298929
|
-
});
|
|
298930
|
-
|
|
298931
298512
|
// ../../.yarn/__virtual__/react-aria-components-virtual-480bef1f39/0/cache/react-aria-components-npm-1.4.1-aa6ebdbc1e-67ef87ea1f.zip/node_modules/react-aria-components/dist/Group.mjs
|
|
298932
298513
|
init_cjs_shim();
|
|
298933
|
-
var
|
|
298934
|
-
var $a049562f99e7db0e$export$f9c6924e160136d1 = /* @__PURE__ */ (0,
|
|
298514
|
+
var import_react89 = __toESM(require_react(), 1);
|
|
298515
|
+
var $a049562f99e7db0e$export$f9c6924e160136d1 = /* @__PURE__ */ (0, import_react89.createContext)({});
|
|
298935
298516
|
function $a049562f99e7db0e$var$Group(props, ref) {
|
|
298936
298517
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $a049562f99e7db0e$export$f9c6924e160136d1);
|
|
298937
298518
|
let { isDisabled: isDisabled2, isInvalid: isInvalid2, onHoverStart, onHoverChange, onHoverEnd, ...otherProps } = props;
|
|
@@ -298958,7 +298539,7 @@ function $a049562f99e7db0e$var$Group(props, ref) {
|
|
|
298958
298539
|
defaultClassName: "react-aria-Group"
|
|
298959
298540
|
});
|
|
298960
298541
|
var _props_role, _props_slot;
|
|
298961
|
-
return /* @__PURE__ */ (0,
|
|
298542
|
+
return /* @__PURE__ */ (0, import_react89.default).createElement("div", {
|
|
298962
298543
|
...(0, $3ef42575df84b30b$export$9d1611c77c2fe928)(otherProps, focusProps, hoverProps),
|
|
298963
298544
|
...renderProps,
|
|
298964
298545
|
ref,
|
|
@@ -298971,12 +298552,12 @@ function $a049562f99e7db0e$var$Group(props, ref) {
|
|
|
298971
298552
|
"data-invalid": isInvalid2 || void 0
|
|
298972
298553
|
}, renderProps.children);
|
|
298973
298554
|
}
|
|
298974
|
-
var $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /* @__PURE__ */ (0,
|
|
298555
|
+
var $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /* @__PURE__ */ (0, import_react89.forwardRef)($a049562f99e7db0e$var$Group);
|
|
298975
298556
|
|
|
298976
298557
|
// ../../.yarn/__virtual__/react-aria-components-virtual-480bef1f39/0/cache/react-aria-components-npm-1.4.1-aa6ebdbc1e-67ef87ea1f.zip/node_modules/react-aria-components/dist/Toolbar.mjs
|
|
298977
298558
|
init_cjs_shim();
|
|
298978
|
-
var
|
|
298979
|
-
var $13c3c67164f4d5be$export$6311e7ab80ef752f = /* @__PURE__ */ (0,
|
|
298559
|
+
var import_react90 = __toESM(require_react(), 1);
|
|
298560
|
+
var $13c3c67164f4d5be$export$6311e7ab80ef752f = /* @__PURE__ */ (0, import_react90.createContext)({});
|
|
298980
298561
|
function $13c3c67164f4d5be$var$Toolbar(props, ref) {
|
|
298981
298562
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $13c3c67164f4d5be$export$6311e7ab80ef752f);
|
|
298982
298563
|
let { toolbarProps } = (0, $2680b1829e803644$export$fa142eb1681c520)(props, ref);
|
|
@@ -298989,7 +298570,7 @@ function $13c3c67164f4d5be$var$Toolbar(props, ref) {
|
|
|
298989
298570
|
});
|
|
298990
298571
|
let DOMProps = (0, $65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props);
|
|
298991
298572
|
delete DOMProps.id;
|
|
298992
|
-
return /* @__PURE__ */ (0,
|
|
298573
|
+
return /* @__PURE__ */ (0, import_react90.default).createElement("div", {
|
|
298993
298574
|
...(0, $3ef42575df84b30b$export$9d1611c77c2fe928)(toolbarProps, DOMProps),
|
|
298994
298575
|
...renderProps,
|
|
298995
298576
|
ref,
|
|
@@ -298997,7 +298578,7 @@ function $13c3c67164f4d5be$var$Toolbar(props, ref) {
|
|
|
298997
298578
|
"data-orientation": props.orientation || "horizontal"
|
|
298998
298579
|
}, renderProps.children);
|
|
298999
298580
|
}
|
|
299000
|
-
var $13c3c67164f4d5be$export$4c260019440d418f = /* @__PURE__ */ (0,
|
|
298581
|
+
var $13c3c67164f4d5be$export$4c260019440d418f = /* @__PURE__ */ (0, import_react90.forwardRef)($13c3c67164f4d5be$var$Toolbar);
|
|
299001
298582
|
|
|
299002
298583
|
// ../../.yarn/__virtual__/@react-spectrum-theme-default-virtual-5c4a04a3ce/0/cache/@react-spectrum-theme-default-npm-3.5.13-d56ac1126a-3e1ed76412.zip/node_modules/@react-spectrum/theme-default/dist/import.mjs
|
|
299003
298584
|
init_cjs_shim();
|
|
@@ -310296,17 +309877,17 @@ function checkStateComponent(plugin) {
|
|
|
310296
309877
|
}
|
|
310297
309878
|
|
|
310298
309879
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/ProseMirror.js
|
|
310299
|
-
var
|
|
309880
|
+
var import_react116 = __toESM(require_react(), 1);
|
|
310300
309881
|
|
|
310301
309882
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/contexts/EditorContext.js
|
|
310302
309883
|
init_cjs_shim();
|
|
310303
|
-
var
|
|
310304
|
-
var EditorContext = (0,
|
|
309884
|
+
var import_react91 = __toESM(require_react(), 1);
|
|
309885
|
+
var EditorContext = (0, import_react91.createContext)(null);
|
|
310305
309886
|
|
|
310306
309887
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/contexts/NodeViewContext.js
|
|
310307
309888
|
init_cjs_shim();
|
|
310308
|
-
var
|
|
310309
|
-
var NodeViewContext = /* @__PURE__ */ (0,
|
|
309889
|
+
var import_react92 = __toESM(require_react(), 1);
|
|
309890
|
+
var NodeViewContext = /* @__PURE__ */ (0, import_react92.createContext)(null);
|
|
310310
309891
|
|
|
310311
309892
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/decorations/computeDocDeco.js
|
|
310312
309893
|
init_cjs_shim();
|
|
@@ -310442,15 +310023,15 @@ function viewDecorations2(view, cursorWrapper) {
|
|
|
310442
310023
|
|
|
310443
310024
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useEditor.js
|
|
310444
310025
|
init_cjs_shim();
|
|
310445
|
-
var
|
|
310446
|
-
var
|
|
310026
|
+
var import_react99 = __toESM(require_react(), 1);
|
|
310027
|
+
var import_react_dom4 = __toESM(require_react_dom(), 1);
|
|
310447
310028
|
|
|
310448
310029
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/plugins/beforeInputPlugin.js
|
|
310449
310030
|
init_cjs_shim();
|
|
310450
310031
|
|
|
310451
310032
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/CursorWrapper.js
|
|
310452
310033
|
init_cjs_shim();
|
|
310453
|
-
var
|
|
310034
|
+
var import_react96 = __toESM(require_react(), 1);
|
|
310454
310035
|
|
|
310455
310036
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/dom.js
|
|
310456
310037
|
init_cjs_shim();
|
|
@@ -310510,26 +310091,26 @@ var selectionCollapsed2 = function(domSel) {
|
|
|
310510
310091
|
|
|
310511
310092
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useEditorEffect.js
|
|
310512
310093
|
init_cjs_shim();
|
|
310513
|
-
var
|
|
310094
|
+
var import_react95 = __toESM(require_react(), 1);
|
|
310514
310095
|
|
|
310515
310096
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useLayoutGroupEffect.js
|
|
310516
310097
|
init_cjs_shim();
|
|
310517
|
-
var
|
|
310098
|
+
var import_react94 = __toESM(require_react(), 1);
|
|
310518
310099
|
|
|
310519
310100
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/contexts/LayoutGroupContext.js
|
|
310520
310101
|
init_cjs_shim();
|
|
310521
|
-
var
|
|
310522
|
-
var LayoutGroupContext = /* @__PURE__ */ (0,
|
|
310102
|
+
var import_react93 = __toESM(require_react(), 1);
|
|
310103
|
+
var LayoutGroupContext = /* @__PURE__ */ (0, import_react93.createContext)(null);
|
|
310523
310104
|
|
|
310524
310105
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useLayoutGroupEffect.js
|
|
310525
310106
|
function useLayoutGroupEffect(effect4, deps) {
|
|
310526
|
-
const register = (0,
|
|
310527
|
-
(0,
|
|
310107
|
+
const register = (0, import_react94.useContext)(LayoutGroupContext);
|
|
310108
|
+
(0, import_react94.useLayoutEffect)(() => register(effect4), deps);
|
|
310528
310109
|
}
|
|
310529
310110
|
|
|
310530
310111
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useEditorEffect.js
|
|
310531
310112
|
function useEditorEffect(effect4, dependencies) {
|
|
310532
|
-
const { view } = (0,
|
|
310113
|
+
const { view } = (0, import_react95.useContext)(EditorContext);
|
|
310533
310114
|
useLayoutGroupEffect(
|
|
310534
310115
|
() => {
|
|
310535
310116
|
if (view) {
|
|
@@ -310562,11 +310143,11 @@ function _extends() {
|
|
|
310562
310143
|
};
|
|
310563
310144
|
return _extends.apply(this, arguments);
|
|
310564
310145
|
}
|
|
310565
|
-
var CursorWrapper = /* @__PURE__ */ (0,
|
|
310146
|
+
var CursorWrapper = /* @__PURE__ */ (0, import_react96.forwardRef)(function CursorWrapper2(param, ref) {
|
|
310566
310147
|
let { widget: widget2, pos, ...props } = param;
|
|
310567
|
-
const [shouldRender, setShouldRender] = (0,
|
|
310568
|
-
const innerRef = (0,
|
|
310569
|
-
(0,
|
|
310148
|
+
const [shouldRender, setShouldRender] = (0, import_react96.useState)(true);
|
|
310149
|
+
const innerRef = (0, import_react96.useRef)(null);
|
|
310150
|
+
(0, import_react96.useImperativeHandle)(ref, () => {
|
|
310570
310151
|
return innerRef.current;
|
|
310571
310152
|
}, []);
|
|
310572
310153
|
useEditorEffect((view) => {
|
|
@@ -310587,7 +310168,7 @@ var CursorWrapper = /* @__PURE__ */ (0, import_react98.forwardRef)(function Curs
|
|
|
310587
310168
|
setShouldRender(false);
|
|
310588
310169
|
view.domObserver.connectSelection();
|
|
310589
310170
|
}, []);
|
|
310590
|
-
return shouldRender ? /* @__PURE__ */
|
|
310171
|
+
return shouldRender ? /* @__PURE__ */ import_react96.default.createElement("img", _extends({
|
|
310591
310172
|
ref: innerRef,
|
|
310592
310173
|
className: "ProseMirror-separator",
|
|
310593
310174
|
// eslint-disable-next-line react/no-unknown-property
|
|
@@ -311832,18 +311413,18 @@ function sameOuterDeco2(a, b) {
|
|
|
311832
311413
|
|
|
311833
311414
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useComponentEventListeners.js
|
|
311834
311415
|
init_cjs_shim();
|
|
311835
|
-
var
|
|
311416
|
+
var import_react97 = __toESM(require_react(), 1);
|
|
311836
311417
|
|
|
311837
311418
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/plugins/componentEventListeners.js
|
|
311838
311419
|
init_cjs_shim();
|
|
311839
|
-
var
|
|
311420
|
+
var import_react_dom3 = __toESM(require_react_dom(), 1);
|
|
311840
311421
|
function componentEventListeners(eventHandlerRegistry) {
|
|
311841
311422
|
const domEventHandlers = {};
|
|
311842
311423
|
for (const [eventType, handlers2] of eventHandlerRegistry.entries()) {
|
|
311843
311424
|
let handleEvent = function(view, event) {
|
|
311844
311425
|
for (const handler of handlers2) {
|
|
311845
311426
|
let handled = false;
|
|
311846
|
-
(0,
|
|
311427
|
+
(0, import_react_dom3.unstable_batchedUpdates)(() => {
|
|
311847
311428
|
handled = !!handler.call(this, view, event);
|
|
311848
311429
|
});
|
|
311849
311430
|
if (handled || event.defaultPrevented) return true;
|
|
@@ -311863,8 +311444,8 @@ function componentEventListeners(eventHandlerRegistry) {
|
|
|
311863
311444
|
|
|
311864
311445
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useComponentEventListeners.js
|
|
311865
311446
|
function useComponentEventListeners() {
|
|
311866
|
-
const [registry, setRegistry] = (0,
|
|
311867
|
-
const registerEventListener = (0,
|
|
311447
|
+
const [registry, setRegistry] = (0, import_react97.useState)(/* @__PURE__ */ new Map());
|
|
311448
|
+
const registerEventListener = (0, import_react97.useCallback)((eventType, handler) => {
|
|
311868
311449
|
const handlers2 = registry.get(eventType) ?? [];
|
|
311869
311450
|
handlers2.unshift(handler);
|
|
311870
311451
|
if (!registry.has(eventType)) {
|
|
@@ -311874,13 +311455,13 @@ function useComponentEventListeners() {
|
|
|
311874
311455
|
}, [
|
|
311875
311456
|
registry
|
|
311876
311457
|
]);
|
|
311877
|
-
const unregisterEventListener = (0,
|
|
311458
|
+
const unregisterEventListener = (0, import_react97.useCallback)((eventType, handler) => {
|
|
311878
311459
|
const handlers2 = registry.get(eventType);
|
|
311879
311460
|
handlers2?.splice(handlers2.indexOf(handler), 1);
|
|
311880
311461
|
}, [
|
|
311881
311462
|
registry
|
|
311882
311463
|
]);
|
|
311883
|
-
const componentEventListenersPlugin = (0,
|
|
311464
|
+
const componentEventListenersPlugin = (0, import_react97.useMemo)(() => componentEventListeners(registry), [
|
|
311884
311465
|
registry
|
|
311885
311466
|
]);
|
|
311886
311467
|
return {
|
|
@@ -311892,9 +311473,9 @@ function useComponentEventListeners() {
|
|
|
311892
311473
|
|
|
311893
311474
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useForceUpdate.js
|
|
311894
311475
|
init_cjs_shim();
|
|
311895
|
-
var
|
|
311476
|
+
var import_react98 = __toESM(require_react(), 1);
|
|
311896
311477
|
function useForceUpdate() {
|
|
311897
|
-
const [, forceUpdate] = (0,
|
|
311478
|
+
const [, forceUpdate] = (0, import_react98.useReducer)((x2) => x2 + 1, 0);
|
|
311898
311479
|
return forceUpdate;
|
|
311899
311480
|
}
|
|
311900
311481
|
|
|
@@ -312020,19 +311601,19 @@ function useEditor(mount, options3) {
|
|
|
312020
311601
|
didWarnValueDefaultValue = true;
|
|
312021
311602
|
}
|
|
312022
311603
|
}
|
|
312023
|
-
const [view, setView] = (0,
|
|
312024
|
-
const [cursorWrapper, _setCursorWrapper] = (0,
|
|
311604
|
+
const [view, setView] = (0, import_react99.useState)(null);
|
|
311605
|
+
const [cursorWrapper, _setCursorWrapper] = (0, import_react99.useState)(null);
|
|
312025
311606
|
const forceUpdate = useForceUpdate();
|
|
312026
311607
|
const defaultState = options3.defaultState ?? EMPTY_STATE;
|
|
312027
|
-
const [_state, setState] = (0,
|
|
311608
|
+
const [_state, setState] = (0, import_react99.useState)(defaultState);
|
|
312028
311609
|
const state = options3.state ?? _state;
|
|
312029
311610
|
const { componentEventListenersPlugin, registerEventListener, unregisterEventListener } = useComponentEventListeners();
|
|
312030
|
-
const setCursorWrapper = (0,
|
|
312031
|
-
(0,
|
|
311611
|
+
const setCursorWrapper = (0, import_react99.useCallback)((deco) => {
|
|
311612
|
+
(0, import_react_dom4.flushSync)(() => {
|
|
312032
311613
|
_setCursorWrapper(deco);
|
|
312033
311614
|
});
|
|
312034
311615
|
}, []);
|
|
312035
|
-
const plugins2 = (0,
|
|
311616
|
+
const plugins2 = (0, import_react99.useMemo)(() => [
|
|
312036
311617
|
...options3.plugins ?? [],
|
|
312037
311618
|
componentEventListenersPlugin,
|
|
312038
311619
|
beforeInputPlugin(setCursorWrapper)
|
|
@@ -312042,7 +311623,7 @@ function useEditor(mount, options3) {
|
|
|
312042
311623
|
setCursorWrapper
|
|
312043
311624
|
]);
|
|
312044
311625
|
function dispatchTransaction(tr) {
|
|
312045
|
-
(0,
|
|
311626
|
+
(0, import_react_dom4.flushSync)(() => {
|
|
312046
311627
|
if (!options3.state) {
|
|
312047
311628
|
setState((s2) => s2.apply(tr));
|
|
312048
311629
|
}
|
|
@@ -312052,7 +311633,7 @@ function useEditor(mount, options3) {
|
|
|
312052
311633
|
});
|
|
312053
311634
|
}
|
|
312054
311635
|
const tempDom = document.createElement("div");
|
|
312055
|
-
const docViewDescRef = (0,
|
|
311636
|
+
const docViewDescRef = (0, import_react99.useRef)(new NodeViewDesc2(void 0, [], state.doc, [], DecorationSet.empty, tempDom, null, tempDom, () => false));
|
|
312056
311637
|
const directEditorProps = {
|
|
312057
311638
|
...options3,
|
|
312058
311639
|
state,
|
|
@@ -312060,14 +311641,14 @@ function useEditor(mount, options3) {
|
|
|
312060
311641
|
dispatchTransaction,
|
|
312061
311642
|
docView: docViewDescRef.current
|
|
312062
311643
|
};
|
|
312063
|
-
(0,
|
|
311644
|
+
(0, import_react99.useLayoutEffect)(() => {
|
|
312064
311645
|
return () => {
|
|
312065
311646
|
view?.destroy();
|
|
312066
311647
|
};
|
|
312067
311648
|
}, [
|
|
312068
311649
|
view
|
|
312069
311650
|
]);
|
|
312070
|
-
(0,
|
|
311651
|
+
(0, import_react99.useLayoutEffect)(() => {
|
|
312071
311652
|
if (view && view.dom !== mount) {
|
|
312072
311653
|
setView(null);
|
|
312073
311654
|
}
|
|
@@ -312083,7 +311664,7 @@ function useEditor(mount, options3) {
|
|
|
312083
311664
|
return;
|
|
312084
311665
|
}
|
|
312085
311666
|
});
|
|
312086
|
-
(0,
|
|
311667
|
+
(0, import_react99.useLayoutEffect)(() => {
|
|
312087
311668
|
if (view?.needsRedraw) {
|
|
312088
311669
|
setView(null);
|
|
312089
311670
|
return;
|
|
@@ -312093,7 +311674,7 @@ function useEditor(mount, options3) {
|
|
|
312093
311674
|
}
|
|
312094
311675
|
});
|
|
312095
311676
|
view?.pureSetProps(directEditorProps);
|
|
312096
|
-
return (0,
|
|
311677
|
+
return (0, import_react99.useMemo)(() => ({
|
|
312097
311678
|
view,
|
|
312098
311679
|
state,
|
|
312099
311680
|
registerEventListener,
|
|
@@ -312111,15 +311692,15 @@ function useEditor(mount, options3) {
|
|
|
312111
311692
|
|
|
312112
311693
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/LayoutGroup.js
|
|
312113
311694
|
init_cjs_shim();
|
|
312114
|
-
var
|
|
311695
|
+
var import_react100 = __toESM(require_react(), 1);
|
|
312115
311696
|
function LayoutGroup(param) {
|
|
312116
311697
|
let { children: children2 } = param;
|
|
312117
|
-
const createQueue = (0,
|
|
312118
|
-
const destroyQueue = (0,
|
|
312119
|
-
const isMounted = (0,
|
|
311698
|
+
const createQueue = (0, import_react100.useRef)(/* @__PURE__ */ new Set()).current;
|
|
311699
|
+
const destroyQueue = (0, import_react100.useRef)(/* @__PURE__ */ new Set()).current;
|
|
311700
|
+
const isMounted = (0, import_react100.useRef)(false);
|
|
312120
311701
|
const forceUpdate = useForceUpdate();
|
|
312121
|
-
const isUpdatePending = (0,
|
|
312122
|
-
const ensureFlush = (0,
|
|
311702
|
+
const isUpdatePending = (0, import_react100.useRef)(true);
|
|
311703
|
+
const ensureFlush = (0, import_react100.useCallback)(() => {
|
|
312123
311704
|
if (!isUpdatePending.current) {
|
|
312124
311705
|
forceUpdate();
|
|
312125
311706
|
isUpdatePending.current = true;
|
|
@@ -312127,7 +311708,7 @@ function LayoutGroup(param) {
|
|
|
312127
311708
|
}, [
|
|
312128
311709
|
forceUpdate
|
|
312129
311710
|
]);
|
|
312130
|
-
const register = (0,
|
|
311711
|
+
const register = (0, import_react100.useCallback)((effect4) => {
|
|
312131
311712
|
let destroy;
|
|
312132
311713
|
const create2 = () => {
|
|
312133
311714
|
destroy = effect4();
|
|
@@ -312150,7 +311731,7 @@ function LayoutGroup(param) {
|
|
|
312150
311731
|
destroyQueue,
|
|
312151
311732
|
ensureFlush
|
|
312152
311733
|
]);
|
|
312153
|
-
(0,
|
|
311734
|
+
(0, import_react100.useLayoutEffect)(() => {
|
|
312154
311735
|
isUpdatePending.current = false;
|
|
312155
311736
|
createQueue.forEach((create2) => create2());
|
|
312156
311737
|
createQueue.clear();
|
|
@@ -312159,42 +311740,42 @@ function LayoutGroup(param) {
|
|
|
312159
311740
|
destroyQueue.clear();
|
|
312160
311741
|
};
|
|
312161
311742
|
});
|
|
312162
|
-
(0,
|
|
311743
|
+
(0, import_react100.useLayoutEffect)(() => {
|
|
312163
311744
|
isMounted.current = true;
|
|
312164
311745
|
return () => {
|
|
312165
311746
|
isMounted.current = false;
|
|
312166
311747
|
};
|
|
312167
311748
|
}, []);
|
|
312168
|
-
return /* @__PURE__ */
|
|
311749
|
+
return /* @__PURE__ */ import_react100.default.createElement(LayoutGroupContext.Provider, {
|
|
312169
311750
|
value: register
|
|
312170
311751
|
}, children2);
|
|
312171
311752
|
}
|
|
312172
311753
|
|
|
312173
311754
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/ProseMirrorDoc.js
|
|
312174
311755
|
init_cjs_shim();
|
|
312175
|
-
var
|
|
311756
|
+
var import_react115 = __toESM(require_react(), 1);
|
|
312176
311757
|
|
|
312177
311758
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/contexts/ChildDescriptorsContext.js
|
|
312178
311759
|
init_cjs_shim();
|
|
312179
|
-
var
|
|
312180
|
-
var ChildDescriptorsContext = (0,
|
|
311760
|
+
var import_react101 = __toESM(require_react(), 1);
|
|
311761
|
+
var ChildDescriptorsContext = (0, import_react101.createContext)([]);
|
|
312181
311762
|
|
|
312182
311763
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/DocNodeView.js
|
|
312183
311764
|
init_cjs_shim();
|
|
312184
|
-
var
|
|
311765
|
+
var import_react114 = __toESM(require_react(), 1);
|
|
312185
311766
|
|
|
312186
311767
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useNodeViewDescriptor.js
|
|
312187
311768
|
init_cjs_shim();
|
|
312188
|
-
var
|
|
311769
|
+
var import_react102 = __toESM(require_react(), 1);
|
|
312189
311770
|
function useNodeViewDescriptor(node, domRef, nodeDomRef, innerDecorations, outerDecorations, viewDesc, contentDOMRef) {
|
|
312190
|
-
const nodeViewDescRef = (0,
|
|
312191
|
-
const stopEvent = (0,
|
|
312192
|
-
const setStopEvent = (0,
|
|
311771
|
+
const nodeViewDescRef = (0, import_react102.useRef)(viewDesc);
|
|
311772
|
+
const stopEvent = (0, import_react102.useRef)(() => false);
|
|
311773
|
+
const setStopEvent = (0, import_react102.useCallback)((newStopEvent) => {
|
|
312193
311774
|
stopEvent.current = newStopEvent;
|
|
312194
311775
|
}, []);
|
|
312195
|
-
const siblingDescriptors = (0,
|
|
311776
|
+
const siblingDescriptors = (0, import_react102.useContext)(ChildDescriptorsContext);
|
|
312196
311777
|
const childDescriptors = [];
|
|
312197
|
-
(0,
|
|
311778
|
+
(0, import_react102.useLayoutEffect)(() => {
|
|
312198
311779
|
if (!node || !nodeDomRef.current) return;
|
|
312199
311780
|
const firstChildDesc = childDescriptors[0];
|
|
312200
311781
|
if (!nodeViewDescRef.current) {
|
|
@@ -312227,7 +311808,7 @@ function useNodeViewDescriptor(node, domRef, nodeDomRef, innerDecorations, outer
|
|
|
312227
311808
|
|
|
312228
311809
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/ChildNodeViews.js
|
|
312229
311810
|
init_cjs_shim();
|
|
312230
|
-
var
|
|
311811
|
+
var import_react113 = __toESM(require_react(), 1);
|
|
312231
311812
|
|
|
312232
311813
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/decorations/iterDeco.js
|
|
312233
311814
|
init_cjs_shim();
|
|
@@ -312309,9 +311890,9 @@ function iterDeco2(parent, deco, onWidget, onNode) {
|
|
|
312309
311890
|
|
|
312310
311891
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useEditorState.js
|
|
312311
311892
|
init_cjs_shim();
|
|
312312
|
-
var
|
|
311893
|
+
var import_react103 = __toESM(require_react(), 1);
|
|
312313
311894
|
function useEditorState() {
|
|
312314
|
-
const { state: editorState } = (0,
|
|
311895
|
+
const { state: editorState } = (0, import_react103.useContext)(EditorContext);
|
|
312315
311896
|
return editorState;
|
|
312316
311897
|
}
|
|
312317
311898
|
|
|
@@ -312536,15 +312117,15 @@ function htmlAttrsToReactProps(attrs) {
|
|
|
312536
312117
|
|
|
312537
312118
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/MarkView.js
|
|
312538
312119
|
init_cjs_shim();
|
|
312539
|
-
var
|
|
312120
|
+
var import_react105 = __toESM(require_react(), 1);
|
|
312540
312121
|
|
|
312541
312122
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/OutputSpec.js
|
|
312542
312123
|
init_cjs_shim();
|
|
312543
|
-
var
|
|
312544
|
-
var ForwardedOutputSpec = /* @__PURE__ */ (0,
|
|
312124
|
+
var import_react104 = __toESM(require_react(), 1);
|
|
312125
|
+
var ForwardedOutputSpec = /* @__PURE__ */ (0, import_react104.forwardRef)(function OutputSpec(param, ref) {
|
|
312545
312126
|
let { outputSpec, children: children2, ...propOverrides } = param;
|
|
312546
312127
|
if (typeof outputSpec === "string") {
|
|
312547
|
-
return /* @__PURE__ */
|
|
312128
|
+
return /* @__PURE__ */ import_react104.default.createElement(import_react104.default.Fragment, null, outputSpec);
|
|
312548
312129
|
}
|
|
312549
312130
|
if (!Array.isArray(outputSpec)) {
|
|
312550
312131
|
throw new Error("@nytimes/react-prosemirror only supports strings and arrays in toDOM");
|
|
@@ -312568,28 +312149,28 @@ var ForwardedOutputSpec = /* @__PURE__ */ (0, import_react106.forwardRef)(functi
|
|
|
312568
312149
|
if (i2 < outputSpec.length - 1 || i2 > start4) {
|
|
312569
312150
|
throw new RangeError("Content hole must be the only child of its parent node");
|
|
312570
312151
|
}
|
|
312571
|
-
return /* @__PURE__ */ (0,
|
|
312152
|
+
return /* @__PURE__ */ (0, import_react104.createElement)(tagName, props, children2);
|
|
312572
312153
|
}
|
|
312573
|
-
content.push(/* @__PURE__ */
|
|
312154
|
+
content.push(/* @__PURE__ */ import_react104.default.createElement(ForwardedOutputSpec, {
|
|
312574
312155
|
ref: void 0,
|
|
312575
312156
|
outputSpec: child
|
|
312576
312157
|
}, children2));
|
|
312577
312158
|
}
|
|
312578
|
-
return /* @__PURE__ */ (0,
|
|
312159
|
+
return /* @__PURE__ */ (0, import_react104.createElement)(tagName, props, ...content);
|
|
312579
312160
|
});
|
|
312580
312161
|
|
|
312581
312162
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/MarkView.js
|
|
312582
|
-
var MarkView = /* @__PURE__ */ (0,
|
|
312163
|
+
var MarkView = /* @__PURE__ */ (0, import_react105.forwardRef)(function MarkView2(param, ref) {
|
|
312583
312164
|
let { mark, children: children2 } = param;
|
|
312584
|
-
const siblingDescriptors = (0,
|
|
312165
|
+
const siblingDescriptors = (0, import_react105.useContext)(ChildDescriptorsContext);
|
|
312585
312166
|
const childDescriptors = [];
|
|
312586
|
-
const domRef = (0,
|
|
312587
|
-
(0,
|
|
312167
|
+
const domRef = (0, import_react105.useRef)(null);
|
|
312168
|
+
(0, import_react105.useImperativeHandle)(ref, () => {
|
|
312588
312169
|
return domRef.current;
|
|
312589
312170
|
}, []);
|
|
312590
312171
|
const outputSpec = mark.type.spec.toDOM?.(mark, true);
|
|
312591
312172
|
if (!outputSpec) throw new Error(`Mark spec for ${mark.type.name} is missing toDOM`);
|
|
312592
|
-
(0,
|
|
312173
|
+
(0, import_react105.useLayoutEffect)(() => {
|
|
312593
312174
|
if (!domRef.current) return;
|
|
312594
312175
|
const firstChildDesc = childDescriptors[0];
|
|
312595
312176
|
const desc = new MarkViewDesc2(void 0, childDescriptors, mark, domRef.current, firstChildDesc?.dom.parentElement ?? domRef.current);
|
|
@@ -312598,22 +312179,22 @@ var MarkView = /* @__PURE__ */ (0, import_react107.forwardRef)(function MarkView
|
|
|
312598
312179
|
childDesc.parent = desc;
|
|
312599
312180
|
}
|
|
312600
312181
|
});
|
|
312601
|
-
return /* @__PURE__ */
|
|
312182
|
+
return /* @__PURE__ */ import_react105.default.createElement(ForwardedOutputSpec, {
|
|
312602
312183
|
ref: domRef,
|
|
312603
312184
|
outputSpec
|
|
312604
|
-
}, /* @__PURE__ */
|
|
312185
|
+
}, /* @__PURE__ */ import_react105.default.createElement(ChildDescriptorsContext.Provider, {
|
|
312605
312186
|
value: childDescriptors
|
|
312606
312187
|
}, children2));
|
|
312607
312188
|
});
|
|
312608
312189
|
|
|
312609
312190
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/NativeWidgetView.js
|
|
312610
312191
|
init_cjs_shim();
|
|
312611
|
-
var
|
|
312192
|
+
var import_react106 = __toESM(require_react(), 1);
|
|
312612
312193
|
function NativeWidgetView(param) {
|
|
312613
312194
|
let { widget: widget2, pos } = param;
|
|
312614
|
-
const siblingDescriptors = (0,
|
|
312615
|
-
const rootDomRef = (0,
|
|
312616
|
-
const posRef = (0,
|
|
312195
|
+
const siblingDescriptors = (0, import_react106.useContext)(ChildDescriptorsContext);
|
|
312196
|
+
const rootDomRef = (0, import_react106.useRef)(null);
|
|
312197
|
+
const posRef = (0, import_react106.useRef)(pos);
|
|
312617
312198
|
posRef.current = pos;
|
|
312618
312199
|
useEditorEffect((view) => {
|
|
312619
312200
|
if (!rootDomRef.current) return;
|
|
@@ -312631,25 +312212,25 @@ function NativeWidgetView(param) {
|
|
|
312631
312212
|
if (rootDomRef.current.firstElementChild === dom) return;
|
|
312632
312213
|
rootDomRef.current.replaceChildren(dom);
|
|
312633
312214
|
});
|
|
312634
|
-
(0,
|
|
312215
|
+
(0, import_react106.useLayoutEffect)(() => {
|
|
312635
312216
|
if (!rootDomRef.current) return;
|
|
312636
312217
|
const desc = new WidgetViewDesc2(void 0, widget2, rootDomRef.current);
|
|
312637
312218
|
siblingDescriptors.push(desc);
|
|
312638
312219
|
});
|
|
312639
|
-
return /* @__PURE__ */
|
|
312220
|
+
return /* @__PURE__ */ import_react106.default.createElement("span", {
|
|
312640
312221
|
ref: rootDomRef
|
|
312641
312222
|
});
|
|
312642
312223
|
}
|
|
312643
312224
|
|
|
312644
312225
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/NodeView.js
|
|
312645
312226
|
init_cjs_shim();
|
|
312646
|
-
var
|
|
312647
|
-
var
|
|
312227
|
+
var import_react108 = __toESM(require_react(), 1);
|
|
312228
|
+
var import_react_dom5 = __toESM(require_react_dom(), 1);
|
|
312648
312229
|
|
|
312649
312230
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/contexts/StopEventContext.js
|
|
312650
312231
|
init_cjs_shim();
|
|
312651
|
-
var
|
|
312652
|
-
var StopEventContext = (0,
|
|
312232
|
+
var import_react107 = __toESM(require_react(), 1);
|
|
312233
|
+
var StopEventContext = (0, import_react107.createContext)(null);
|
|
312653
312234
|
|
|
312654
312235
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/NodeView.js
|
|
312655
312236
|
function _extends2() {
|
|
@@ -312668,23 +312249,23 @@ function _extends2() {
|
|
|
312668
312249
|
}
|
|
312669
312250
|
function NodeView(param) {
|
|
312670
312251
|
let { outerDeco, pos, node, innerDeco, ...props } = param;
|
|
312671
|
-
const domRef = (0,
|
|
312672
|
-
const nodeDomRef = (0,
|
|
312673
|
-
const contentDomRef = (0,
|
|
312674
|
-
const initialNode = (0,
|
|
312675
|
-
const initialOuterDeco = (0,
|
|
312676
|
-
const initialInnerDeco = (0,
|
|
312677
|
-
const posRef = (0,
|
|
312252
|
+
const domRef = (0, import_react108.useRef)(null);
|
|
312253
|
+
const nodeDomRef = (0, import_react108.useRef)(null);
|
|
312254
|
+
const contentDomRef = (0, import_react108.useRef)(null);
|
|
312255
|
+
const initialNode = (0, import_react108.useRef)(node);
|
|
312256
|
+
const initialOuterDeco = (0, import_react108.useRef)(outerDeco);
|
|
312257
|
+
const initialInnerDeco = (0, import_react108.useRef)(innerDeco);
|
|
312258
|
+
const posRef = (0, import_react108.useRef)(pos);
|
|
312678
312259
|
posRef.current = pos;
|
|
312679
|
-
const customNodeViewRootRef = (0,
|
|
312680
|
-
const customNodeViewRef = (0,
|
|
312260
|
+
const customNodeViewRootRef = (0, import_react108.useRef)(null);
|
|
312261
|
+
const customNodeViewRef = (0, import_react108.useRef)(null);
|
|
312681
312262
|
const state = useEditorState();
|
|
312682
|
-
const { nodeViews } = (0,
|
|
312683
|
-
const { view } = (0,
|
|
312263
|
+
const { nodeViews } = (0, import_react108.useContext)(NodeViewContext);
|
|
312264
|
+
const { view } = (0, import_react108.useContext)(EditorContext);
|
|
312684
312265
|
let element2 = null;
|
|
312685
312266
|
const Component2 = nodeViews[node.type.name];
|
|
312686
312267
|
const customNodeView = view?.someProp("nodeViews", (nodeViews2) => nodeViews2?.[node.type.name]);
|
|
312687
|
-
(0,
|
|
312268
|
+
(0, import_react108.useLayoutEffect)(() => {
|
|
312688
312269
|
if (!customNodeViewRef.current || !customNodeViewRootRef.current) return;
|
|
312689
312270
|
const { dom } = customNodeViewRef.current;
|
|
312690
312271
|
nodeDomRef.current = customNodeViewRootRef.current;
|
|
@@ -312693,7 +312274,7 @@ function NodeView(param) {
|
|
|
312693
312274
|
customNodeViewRef.current?.destroy?.();
|
|
312694
312275
|
};
|
|
312695
312276
|
}, []);
|
|
312696
|
-
(0,
|
|
312277
|
+
(0, import_react108.useLayoutEffect)(() => {
|
|
312697
312278
|
if (!customNodeView || !customNodeViewRef.current) return;
|
|
312698
312279
|
const { destroy, update: update5 } = customNodeViewRef.current;
|
|
312699
312280
|
const updated = update5?.call(customNodeViewRef.current, node, outerDeco, innerDeco) ?? true;
|
|
@@ -312725,7 +312306,7 @@ function NodeView(param) {
|
|
|
312725
312306
|
]);
|
|
312726
312307
|
const { childDescriptors, setStopEvent } = useNodeViewDescriptor(node, domRef, nodeDomRef, innerDeco, outerDeco, void 0, contentDomRef);
|
|
312727
312308
|
if (Component2) {
|
|
312728
|
-
element2 = /* @__PURE__ */
|
|
312309
|
+
element2 = /* @__PURE__ */ import_react108.default.createElement(Component2, _extends2({}, props, {
|
|
312729
312310
|
ref: nodeDomRef,
|
|
312730
312311
|
nodeProps: {
|
|
312731
312312
|
node,
|
|
@@ -312734,7 +312315,7 @@ function NodeView(param) {
|
|
|
312734
312315
|
innerDecorations: innerDeco,
|
|
312735
312316
|
isSelected: state.selection instanceof NodeSelection && state.selection.node === node
|
|
312736
312317
|
}
|
|
312737
|
-
}), /* @__PURE__ */
|
|
312318
|
+
}), /* @__PURE__ */ import_react108.default.createElement(ChildNodeViews, {
|
|
312738
312319
|
pos,
|
|
312739
312320
|
node,
|
|
312740
312321
|
innerDecorations: innerDeco
|
|
@@ -312754,11 +312335,11 @@ function NodeView(param) {
|
|
|
312754
312335
|
}
|
|
312755
312336
|
const { contentDOM } = customNodeViewRef.current;
|
|
312756
312337
|
contentDomRef.current = contentDOM ?? null;
|
|
312757
|
-
element2 = /* @__PURE__ */ (0,
|
|
312338
|
+
element2 = /* @__PURE__ */ (0, import_react108.createElement)(node.isInline ? "span" : "div", {
|
|
312758
312339
|
ref: customNodeViewRootRef,
|
|
312759
312340
|
contentEditable: !!contentDOM,
|
|
312760
312341
|
suppressContentEditableWarning: true
|
|
312761
|
-
}, contentDOM && /* @__PURE__ */ (0,
|
|
312342
|
+
}, contentDOM && /* @__PURE__ */ (0, import_react_dom5.createPortal)(/* @__PURE__ */ import_react108.default.createElement(ChildNodeViews, {
|
|
312762
312343
|
pos,
|
|
312763
312344
|
node,
|
|
312764
312345
|
innerDecorations: innerDeco
|
|
@@ -312766,10 +312347,10 @@ function NodeView(param) {
|
|
|
312766
312347
|
} else {
|
|
312767
312348
|
const outputSpec = node.type.spec.toDOM?.(node);
|
|
312768
312349
|
if (outputSpec) {
|
|
312769
|
-
element2 = /* @__PURE__ */
|
|
312350
|
+
element2 = /* @__PURE__ */ import_react108.default.createElement(ForwardedOutputSpec, _extends2({}, props, {
|
|
312770
312351
|
ref: nodeDomRef,
|
|
312771
312352
|
outputSpec
|
|
312772
|
-
}), /* @__PURE__ */
|
|
312353
|
+
}), /* @__PURE__ */ import_react108.default.createElement(ChildNodeViews, {
|
|
312773
312354
|
pos,
|
|
312774
312355
|
node,
|
|
312775
312356
|
innerDecorations: innerDeco
|
|
@@ -312779,7 +312360,7 @@ function NodeView(param) {
|
|
|
312779
312360
|
if (!element2) {
|
|
312780
312361
|
throw new Error(`Node spec for ${node.type.name} is missing toDOM`);
|
|
312781
312362
|
}
|
|
312782
|
-
const decoratedElement = /* @__PURE__ */ (0,
|
|
312363
|
+
const decoratedElement = /* @__PURE__ */ (0, import_react108.cloneElement)(
|
|
312783
312364
|
outerDeco.reduce(wrapInDeco, element2),
|
|
312784
312365
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
312785
312366
|
outerDeco.some((d) => d.type.attrs.nodeName) ? {
|
|
@@ -312790,14 +312371,14 @@ function NodeView(param) {
|
|
|
312790
312371
|
void 0
|
|
312791
312372
|
)
|
|
312792
312373
|
);
|
|
312793
|
-
const markedElement = node.marks.reduce((element3, mark) => /* @__PURE__ */
|
|
312374
|
+
const markedElement = node.marks.reduce((element3, mark) => /* @__PURE__ */ import_react108.default.createElement(MarkView, {
|
|
312794
312375
|
mark
|
|
312795
312376
|
}, element3), decoratedElement);
|
|
312796
|
-
return /* @__PURE__ */
|
|
312377
|
+
return /* @__PURE__ */ import_react108.default.createElement(StopEventContext.Provider, {
|
|
312797
312378
|
value: setStopEvent
|
|
312798
|
-
}, /* @__PURE__ */
|
|
312379
|
+
}, /* @__PURE__ */ import_react108.default.createElement(ChildDescriptorsContext.Provider, {
|
|
312799
312380
|
value: childDescriptors
|
|
312800
|
-
}, /* @__PURE__ */ (0,
|
|
312381
|
+
}, /* @__PURE__ */ (0, import_react108.cloneElement)(markedElement, node.marks.length || // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
312801
312382
|
outerDeco.some((d) => d.type.attrs.nodeName) ? {
|
|
312802
312383
|
ref: domRef
|
|
312803
312384
|
} : (
|
|
@@ -312809,12 +312390,12 @@ function NodeView(param) {
|
|
|
312809
312390
|
|
|
312810
312391
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/SeparatorHackView.js
|
|
312811
312392
|
init_cjs_shim();
|
|
312812
|
-
var
|
|
312393
|
+
var import_react109 = __toESM(require_react(), 1);
|
|
312813
312394
|
function SeparatorHackView() {
|
|
312814
|
-
const siblingDescriptors = (0,
|
|
312815
|
-
const ref = (0,
|
|
312816
|
-
const [shouldRender, setShouldRender] = (0,
|
|
312817
|
-
(0,
|
|
312395
|
+
const siblingDescriptors = (0, import_react109.useContext)(ChildDescriptorsContext);
|
|
312396
|
+
const ref = (0, import_react109.useRef)(null);
|
|
312397
|
+
const [shouldRender, setShouldRender] = (0, import_react109.useState)(false);
|
|
312398
|
+
(0, import_react109.useLayoutEffect)(() => {
|
|
312818
312399
|
const lastSibling = siblingDescriptors[siblingDescriptors.length - 1];
|
|
312819
312400
|
if ((browser.safari || browser.chrome) && lastSibling?.dom?.contentEditable == "false") {
|
|
312820
312401
|
setShouldRender(true);
|
|
@@ -312824,7 +312405,7 @@ function SeparatorHackView() {
|
|
|
312824
312405
|
const desc = new TrailingHackViewDesc2(void 0, [], ref.current, null);
|
|
312825
312406
|
siblingDescriptors.push(desc);
|
|
312826
312407
|
});
|
|
312827
|
-
return shouldRender ? /* @__PURE__ */
|
|
312408
|
+
return shouldRender ? /* @__PURE__ */ import_react109.default.createElement("img", {
|
|
312828
312409
|
ref,
|
|
312829
312410
|
className: "ProseMirror-separator"
|
|
312830
312411
|
}) : null;
|
|
@@ -312832,12 +312413,12 @@ function SeparatorHackView() {
|
|
|
312832
312413
|
|
|
312833
312414
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/TextNodeView.js
|
|
312834
312415
|
init_cjs_shim();
|
|
312835
|
-
var
|
|
312836
|
-
var
|
|
312837
|
-
var TextNodeView = class extends
|
|
312416
|
+
var import_react110 = __toESM(require_react(), 1);
|
|
312417
|
+
var import_react_dom6 = __toESM(require_react_dom(), 1);
|
|
312418
|
+
var TextNodeView = class extends import_react110.Component {
|
|
312838
312419
|
updateEffect() {
|
|
312839
312420
|
const { decorations, siblingDescriptors, node } = this.props;
|
|
312840
|
-
const dom = (0,
|
|
312421
|
+
const dom = (0, import_react_dom6.findDOMNode)(this);
|
|
312841
312422
|
if (!dom) {
|
|
312842
312423
|
return;
|
|
312843
312424
|
}
|
|
@@ -312877,16 +312458,16 @@ var TextNodeView = class extends import_react112.Component {
|
|
|
312877
312458
|
|
|
312878
312459
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/TrailingHackView.js
|
|
312879
312460
|
init_cjs_shim();
|
|
312880
|
-
var
|
|
312461
|
+
var import_react111 = __toESM(require_react(), 1);
|
|
312881
312462
|
function TrailingHackView() {
|
|
312882
|
-
const siblingDescriptors = (0,
|
|
312883
|
-
const ref = (0,
|
|
312884
|
-
(0,
|
|
312463
|
+
const siblingDescriptors = (0, import_react111.useContext)(ChildDescriptorsContext);
|
|
312464
|
+
const ref = (0, import_react111.useRef)(null);
|
|
312465
|
+
(0, import_react111.useLayoutEffect)(() => {
|
|
312885
312466
|
if (!ref.current) return;
|
|
312886
312467
|
const desc = new TrailingHackViewDesc2(void 0, [], ref.current, null);
|
|
312887
312468
|
siblingDescriptors.push(desc);
|
|
312888
312469
|
});
|
|
312889
|
-
return /* @__PURE__ */
|
|
312470
|
+
return /* @__PURE__ */ import_react111.default.createElement("br", {
|
|
312890
312471
|
ref,
|
|
312891
312472
|
className: "ProseMirror-trailingBreak"
|
|
312892
312473
|
});
|
|
@@ -312894,18 +312475,18 @@ function TrailingHackView() {
|
|
|
312894
312475
|
|
|
312895
312476
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/WidgetView.js
|
|
312896
312477
|
init_cjs_shim();
|
|
312897
|
-
var
|
|
312478
|
+
var import_react112 = __toESM(require_react(), 1);
|
|
312898
312479
|
function WidgetView(param) {
|
|
312899
312480
|
let { widget: widget2, pos } = param;
|
|
312900
|
-
const siblingDescriptors = (0,
|
|
312901
|
-
const domRef = (0,
|
|
312902
|
-
(0,
|
|
312481
|
+
const siblingDescriptors = (0, import_react112.useContext)(ChildDescriptorsContext);
|
|
312482
|
+
const domRef = (0, import_react112.useRef)(null);
|
|
312483
|
+
(0, import_react112.useLayoutEffect)(() => {
|
|
312903
312484
|
if (!domRef.current) return;
|
|
312904
312485
|
const desc = new WidgetViewDesc2(void 0, widget2, domRef.current);
|
|
312905
312486
|
siblingDescriptors.push(desc);
|
|
312906
312487
|
});
|
|
312907
312488
|
const { Component: Component2 } = widget2.type;
|
|
312908
|
-
return Component2 && /* @__PURE__ */
|
|
312489
|
+
return Component2 && /* @__PURE__ */ import_react112.default.createElement(Component2, {
|
|
312909
312490
|
ref: domRef,
|
|
312910
312491
|
widget: widget2,
|
|
312911
312492
|
pos,
|
|
@@ -312918,13 +312499,13 @@ function wrapInDeco(reactNode, deco) {
|
|
|
312918
312499
|
const { nodeName, ...attrs } = deco.type.attrs;
|
|
312919
312500
|
const props = htmlAttrsToReactProps(attrs);
|
|
312920
312501
|
if (nodeName || typeof reactNode === "string") {
|
|
312921
|
-
return /* @__PURE__ */ (0,
|
|
312502
|
+
return /* @__PURE__ */ (0, import_react113.createElement)(nodeName ?? "span", props, reactNode);
|
|
312922
312503
|
}
|
|
312923
|
-
return /* @__PURE__ */ (0,
|
|
312504
|
+
return /* @__PURE__ */ (0, import_react113.cloneElement)(reactNode, mergeReactProps(reactNode.props, props));
|
|
312924
312505
|
}
|
|
312925
312506
|
function InlineView(param) {
|
|
312926
312507
|
let { innerPos, childViews } = param;
|
|
312927
|
-
const { view } = (0,
|
|
312508
|
+
const { view } = (0, import_react113.useContext)(EditorContext);
|
|
312928
312509
|
const editorState = useEditorState();
|
|
312929
312510
|
const reactKeys2 = useReactKeys();
|
|
312930
312511
|
const partitioned = childViews.reduce((acc, child) => {
|
|
@@ -312962,40 +312543,40 @@ function InlineView(param) {
|
|
|
312962
312543
|
]
|
|
312963
312544
|
];
|
|
312964
312545
|
}, []);
|
|
312965
|
-
return /* @__PURE__ */
|
|
312546
|
+
return /* @__PURE__ */ import_react113.default.createElement(import_react113.default.Fragment, null, partitioned.map((childViews2) => {
|
|
312966
312547
|
const firstChild = childViews2[0];
|
|
312967
312548
|
if (!firstChild) return null;
|
|
312968
312549
|
const firstMark = firstChild.marks[0];
|
|
312969
312550
|
if (!firstMark) {
|
|
312970
312551
|
return childViews2.map((child) => {
|
|
312971
312552
|
const childPos = innerPos + child.offset;
|
|
312972
|
-
const childElement = child.type === "widget" ? /* @__PURE__ */
|
|
312553
|
+
const childElement = child.type === "widget" ? /* @__PURE__ */ import_react113.default.createElement(WidgetView, {
|
|
312973
312554
|
widget: child.widget,
|
|
312974
312555
|
pos: childPos
|
|
312975
|
-
}) : child.type === "native-widget" ? /* @__PURE__ */
|
|
312556
|
+
}) : child.type === "native-widget" ? /* @__PURE__ */ import_react113.default.createElement(NativeWidgetView, {
|
|
312976
312557
|
widget: child.widget,
|
|
312977
312558
|
pos: childPos
|
|
312978
|
-
}) : child.node.isText ? /* @__PURE__ */
|
|
312559
|
+
}) : child.node.isText ? /* @__PURE__ */ import_react113.default.createElement(ChildDescriptorsContext.Consumer, null, (siblingDescriptors) => /* @__PURE__ */ import_react113.default.createElement(TextNodeView, {
|
|
312979
312560
|
view,
|
|
312980
312561
|
node: child.node,
|
|
312981
312562
|
pos: childPos,
|
|
312982
312563
|
siblingDescriptors,
|
|
312983
312564
|
decorations: child.outerDeco
|
|
312984
|
-
})) : /* @__PURE__ */
|
|
312565
|
+
})) : /* @__PURE__ */ import_react113.default.createElement(NodeView, {
|
|
312985
312566
|
node: child.node,
|
|
312986
312567
|
pos: childPos,
|
|
312987
312568
|
outerDeco: child.outerDeco,
|
|
312988
312569
|
innerDeco: child.innerDeco
|
|
312989
312570
|
});
|
|
312990
|
-
return /* @__PURE__ */ (0,
|
|
312571
|
+
return /* @__PURE__ */ (0, import_react113.cloneElement)(childElement, {
|
|
312991
312572
|
key: createKey2(editorState.doc, innerPos, child, reactKeys2?.posToKey)
|
|
312992
312573
|
});
|
|
312993
312574
|
});
|
|
312994
312575
|
}
|
|
312995
|
-
return /* @__PURE__ */
|
|
312576
|
+
return /* @__PURE__ */ import_react113.default.createElement(MarkView, {
|
|
312996
312577
|
key: createKey2(editorState?.doc, innerPos, firstChild, reactKeys2?.posToKey),
|
|
312997
312578
|
mark: firstMark
|
|
312998
|
-
}, /* @__PURE__ */
|
|
312579
|
+
}, /* @__PURE__ */ import_react113.default.createElement(InlineView, {
|
|
312999
312580
|
key: createKey2(editorState?.doc, innerPos, firstChild, reactKeys2?.posToKey),
|
|
313000
312581
|
innerPos,
|
|
313001
312582
|
childViews: childViews2.map((child) => ({
|
|
@@ -313054,7 +312635,7 @@ function createChildElements(children2, innerPos, doc4, posToKey) {
|
|
|
313054
312635
|
if (!children2.length) return [];
|
|
313055
312636
|
if (children2.every((child) => child.type !== "node" || child.node.isInline)) {
|
|
313056
312637
|
return [
|
|
313057
|
-
/* @__PURE__ */
|
|
312638
|
+
/* @__PURE__ */ import_react113.default.createElement(InlineView, {
|
|
313058
312639
|
key: createKey2(
|
|
313059
312640
|
doc4,
|
|
313060
312641
|
innerPos,
|
|
@@ -313071,7 +312652,7 @@ function createChildElements(children2, innerPos, doc4, posToKey) {
|
|
|
313071
312652
|
if (child.type === "node") {
|
|
313072
312653
|
const pos = innerPos + child.offset;
|
|
313073
312654
|
const key = posToKey?.get(pos) ?? pos;
|
|
313074
|
-
return /* @__PURE__ */
|
|
312655
|
+
return /* @__PURE__ */ import_react113.default.createElement(NodeView, {
|
|
313075
312656
|
key,
|
|
313076
312657
|
outerDeco: child.outerDeco,
|
|
313077
312658
|
node: child.node,
|
|
@@ -313079,7 +312660,7 @@ function createChildElements(children2, innerPos, doc4, posToKey) {
|
|
|
313079
312660
|
pos
|
|
313080
312661
|
});
|
|
313081
312662
|
} else {
|
|
313082
|
-
return /* @__PURE__ */
|
|
312663
|
+
return /* @__PURE__ */ import_react113.default.createElement(InlineView, {
|
|
313083
312664
|
key: createKey2(
|
|
313084
312665
|
doc4,
|
|
313085
312666
|
innerPos,
|
|
@@ -313138,20 +312719,20 @@ function ChildNodeViews(param) {
|
|
|
313138
312719
|
if (!lastChild || lastChild.type !== "node" || lastChild.node.isInline && !lastChild.node.isText || // RegExp.test actually handles undefined just fine
|
|
313139
312720
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
313140
312721
|
/\n$/.test(lastChild.node.text)) {
|
|
313141
|
-
childElements.push(/* @__PURE__ */
|
|
312722
|
+
childElements.push(/* @__PURE__ */ import_react113.default.createElement(SeparatorHackView, {
|
|
313142
312723
|
key: "trailing-hack-img"
|
|
313143
|
-
}), /* @__PURE__ */
|
|
312724
|
+
}), /* @__PURE__ */ import_react113.default.createElement(TrailingHackView, {
|
|
313144
312725
|
key: "trailing-hack-br"
|
|
313145
312726
|
}));
|
|
313146
312727
|
}
|
|
313147
|
-
return /* @__PURE__ */
|
|
312728
|
+
return /* @__PURE__ */ import_react113.default.createElement(import_react113.default.Fragment, null, childElements);
|
|
313148
312729
|
}
|
|
313149
312730
|
|
|
313150
312731
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/DocNodeView.js
|
|
313151
|
-
var DocNodeView = /* @__PURE__ */ (0,
|
|
312732
|
+
var DocNodeView = /* @__PURE__ */ (0, import_react114.forwardRef)(function DocNodeView2(param, ref) {
|
|
313152
312733
|
let { className, node, innerDeco, outerDeco, as: as12, viewDesc, ...elementProps } = param;
|
|
313153
|
-
const innerRef = (0,
|
|
313154
|
-
(0,
|
|
312734
|
+
const innerRef = (0, import_react114.useRef)(null);
|
|
312735
|
+
(0, import_react114.useImperativeHandle)(ref, () => {
|
|
313155
312736
|
return innerRef.current;
|
|
313156
312737
|
}, []);
|
|
313157
312738
|
const { childDescriptors } = useNodeViewDescriptor(node, innerRef, innerRef, innerDeco, outerDeco, viewDesc);
|
|
@@ -313161,15 +312742,15 @@ var DocNodeView = /* @__PURE__ */ (0, import_react116.forwardRef)(function DocNo
|
|
|
313161
312742
|
className,
|
|
313162
312743
|
suppressContentEditableWarning: true
|
|
313163
312744
|
};
|
|
313164
|
-
const element2 = as12 ? /* @__PURE__ */ (0,
|
|
312745
|
+
const element2 = as12 ? /* @__PURE__ */ (0, import_react114.cloneElement)(as12, props, /* @__PURE__ */ import_react114.default.createElement(ChildDescriptorsContext.Provider, {
|
|
313165
312746
|
value: childDescriptors
|
|
313166
|
-
}, /* @__PURE__ */
|
|
312747
|
+
}, /* @__PURE__ */ import_react114.default.createElement(ChildNodeViews, {
|
|
313167
312748
|
pos: -1,
|
|
313168
312749
|
node,
|
|
313169
312750
|
innerDecorations: innerDeco
|
|
313170
|
-
}))) : /* @__PURE__ */ (0,
|
|
312751
|
+
}))) : /* @__PURE__ */ (0, import_react114.createElement)("div", props, /* @__PURE__ */ import_react114.default.createElement(ChildDescriptorsContext.Provider, {
|
|
313171
312752
|
value: childDescriptors
|
|
313172
|
-
}, /* @__PURE__ */
|
|
312753
|
+
}, /* @__PURE__ */ import_react114.default.createElement(ChildNodeViews, {
|
|
313173
312754
|
pos: -1,
|
|
313174
312755
|
node,
|
|
313175
312756
|
innerDecorations: innerDeco
|
|
@@ -313198,17 +312779,17 @@ function _extends3() {
|
|
|
313198
312779
|
};
|
|
313199
312780
|
return _extends3.apply(this, arguments);
|
|
313200
312781
|
}
|
|
313201
|
-
var DocNodeViewContext = /* @__PURE__ */ (0,
|
|
312782
|
+
var DocNodeViewContext = /* @__PURE__ */ (0, import_react115.createContext)(null);
|
|
313202
312783
|
function ProseMirrorDoc(param, ref) {
|
|
313203
312784
|
let { as: as12, ...props } = param;
|
|
313204
|
-
const innerRef = (0,
|
|
313205
|
-
const { setMount, ...docProps } = (0,
|
|
313206
|
-
(0,
|
|
312785
|
+
const innerRef = (0, import_react115.useRef)(null);
|
|
312786
|
+
const { setMount, ...docProps } = (0, import_react115.useContext)(DocNodeViewContext);
|
|
312787
|
+
(0, import_react115.useImperativeHandle)(ref, () => {
|
|
313207
312788
|
return innerRef.current;
|
|
313208
312789
|
}, []);
|
|
313209
|
-
return /* @__PURE__ */
|
|
312790
|
+
return /* @__PURE__ */ import_react115.default.createElement(ChildDescriptorsContext.Provider, {
|
|
313210
312791
|
value: []
|
|
313211
|
-
}, /* @__PURE__ */
|
|
312792
|
+
}, /* @__PURE__ */ import_react115.default.createElement(DocNodeView, _extends3({
|
|
313212
312793
|
ref: (el) => {
|
|
313213
312794
|
innerRef.current = el;
|
|
313214
312795
|
setMount(el);
|
|
@@ -313217,7 +312798,7 @@ function ProseMirrorDoc(param, ref) {
|
|
|
313217
312798
|
as: as12
|
|
313218
312799
|
})));
|
|
313219
312800
|
}
|
|
313220
|
-
var ForwardedProseMirrorDoc = /* @__PURE__ */ (0,
|
|
312801
|
+
var ForwardedProseMirrorDoc = /* @__PURE__ */ (0, import_react115.forwardRef)(ProseMirrorDoc);
|
|
313221
312802
|
|
|
313222
312803
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/components/ProseMirror.js
|
|
313223
312804
|
function _extends4() {
|
|
@@ -313236,20 +312817,20 @@ function _extends4() {
|
|
|
313236
312817
|
}
|
|
313237
312818
|
function ProseMirrorInner(param) {
|
|
313238
312819
|
let { className, children: children2, nodeViews = {}, customNodeViews, ...props } = param;
|
|
313239
|
-
const [mount, setMount] = (0,
|
|
312820
|
+
const [mount, setMount] = (0, import_react116.useState)(null);
|
|
313240
312821
|
const editor = useEditor(mount, {
|
|
313241
312822
|
...props,
|
|
313242
312823
|
nodeViews: customNodeViews
|
|
313243
312824
|
});
|
|
313244
312825
|
const innerDecos = editor.view ? viewDecorations2(editor.view, editor.cursorWrapper) : DecorationSet.empty;
|
|
313245
312826
|
const outerDecos = editor.view ? computeDocDeco2(editor.view) : [];
|
|
313246
|
-
return /* @__PURE__ */
|
|
312827
|
+
return /* @__PURE__ */ import_react116.default.createElement(EditorContext.Provider, {
|
|
313247
312828
|
value: editor
|
|
313248
|
-
}, /* @__PURE__ */
|
|
312829
|
+
}, /* @__PURE__ */ import_react116.default.createElement(NodeViewContext.Provider, {
|
|
313249
312830
|
value: {
|
|
313250
312831
|
nodeViews
|
|
313251
312832
|
}
|
|
313252
|
-
}, /* @__PURE__ */
|
|
312833
|
+
}, /* @__PURE__ */ import_react116.default.createElement(DocNodeViewContext.Provider, {
|
|
313253
312834
|
value: {
|
|
313254
312835
|
className,
|
|
313255
312836
|
setMount,
|
|
@@ -313261,20 +312842,20 @@ function ProseMirrorInner(param) {
|
|
|
313261
312842
|
}, children2)));
|
|
313262
312843
|
}
|
|
313263
312844
|
function ProseMirror(props) {
|
|
313264
|
-
return /* @__PURE__ */
|
|
312845
|
+
return /* @__PURE__ */ import_react116.default.createElement(LayoutGroup, null, /* @__PURE__ */ import_react116.default.createElement(ProseMirrorInner, _extends4({}, props)));
|
|
313265
312846
|
}
|
|
313266
312847
|
|
|
313267
312848
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useEditorEventCallback.js
|
|
313268
312849
|
init_cjs_shim();
|
|
313269
|
-
var
|
|
312850
|
+
var import_react117 = __toESM(require_react(), 1);
|
|
313270
312851
|
|
|
313271
312852
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useEditorEventListener.js
|
|
313272
312853
|
init_cjs_shim();
|
|
313273
|
-
var
|
|
312854
|
+
var import_react118 = __toESM(require_react(), 1);
|
|
313274
312855
|
|
|
313275
312856
|
// ../../.yarn/__virtual__/@nytimes-react-prosemirror-virtual-0f639ab06e/0/cache/@nytimes-react-prosemirror-npm-0.7.0-next.10-e58854b316-4116cbad1f.zip/node_modules/@nytimes/react-prosemirror/dist/esm/hooks/useStopEvent.js
|
|
313276
312857
|
init_cjs_shim();
|
|
313277
|
-
var
|
|
312858
|
+
var import_react119 = __toESM(require_react(), 1);
|
|
313278
312859
|
|
|
313279
312860
|
// ../anafero/ContentAdapter.mts
|
|
313280
312861
|
var ResourceMetadataSchema = mutable3(Struct({
|
|
@@ -313429,46 +313010,22 @@ var BuildConfigSchema = Struct({
|
|
|
313429
313010
|
|
|
313430
313011
|
// ../firelight-gui/BrowseBar.tsx
|
|
313431
313012
|
init_cjs_shim();
|
|
313432
|
-
var
|
|
313013
|
+
var import_react123 = __toESM(require_react(), 1);
|
|
313433
313014
|
|
|
313434
313015
|
// ../../.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
|
|
313435
313016
|
init_cjs_shim();
|
|
313436
313017
|
var import_TextBulletedHierarchy = __toESM(require_TextBulletedHierarchy(), 1);
|
|
313437
|
-
var
|
|
313018
|
+
var import_react120 = __toESM(require_react(), 1);
|
|
313438
313019
|
function TextBulletedHierarchy(props) {
|
|
313439
|
-
return /* @__PURE__ */
|
|
313440
|
-
}
|
|
313441
|
-
|
|
313442
|
-
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/Bookmark.module.mjs
|
|
313443
|
-
init_cjs_shim();
|
|
313444
|
-
var import_Bookmark = __toESM(require_Bookmark(), 1);
|
|
313445
|
-
var import_react123 = __toESM(require_react(), 1);
|
|
313446
|
-
function Bookmark(props) {
|
|
313447
|
-
return /* @__PURE__ */ import_react123.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react123.default.createElement(import_Bookmark.A4uBookmark, null));
|
|
313020
|
+
return /* @__PURE__ */ import_react120.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react120.default.createElement(import_TextBulletedHierarchy.A4uTextBulletedHierarchy, null));
|
|
313448
313021
|
}
|
|
313449
313022
|
|
|
313450
313023
|
// ../../.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
|
|
313451
313024
|
init_cjs_shim();
|
|
313452
313025
|
var import_Search = __toESM(require_Search(), 1);
|
|
313453
|
-
var
|
|
313026
|
+
var import_react121 = __toESM(require_react(), 1);
|
|
313454
313027
|
function Search(props) {
|
|
313455
|
-
return /* @__PURE__ */
|
|
313456
|
-
}
|
|
313457
|
-
|
|
313458
|
-
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/Settings.module.mjs
|
|
313459
|
-
init_cjs_shim();
|
|
313460
|
-
var import_Settings = __toESM(require_Settings(), 1);
|
|
313461
|
-
var import_react125 = __toESM(require_react(), 1);
|
|
313462
|
-
function Settings(props) {
|
|
313463
|
-
return /* @__PURE__ */ import_react125.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react125.default.createElement(import_Settings.A4uSettings, null));
|
|
313464
|
-
}
|
|
313465
|
-
|
|
313466
|
-
// ../../.yarn/__virtual__/@spectrum-icons-workflow-virtual-7f7848a0e5/0/cache/@spectrum-icons-workflow-npm-4.2.15-701d7d7c35-5e97e771eb.zip/node_modules/@spectrum-icons/workflow/Branch1.module.mjs
|
|
313467
|
-
init_cjs_shim();
|
|
313468
|
-
var import_Branch1 = __toESM(require_Branch1(), 1);
|
|
313469
|
-
var import_react126 = __toESM(require_react(), 1);
|
|
313470
|
-
function Branch1(props) {
|
|
313471
|
-
return /* @__PURE__ */ import_react126.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react126.default.createElement(import_Branch1.A4uBranch1, null));
|
|
313028
|
+
return /* @__PURE__ */ import_react121.default.createElement($6bfb67578ee6effd$export$f04a61298a47a40f, props, /* @__PURE__ */ import_react121.default.createElement(import_Search.A4uSearch, null));
|
|
313472
313029
|
}
|
|
313473
313030
|
|
|
313474
313031
|
// ../anafero/index.mts
|
|
@@ -313538,8 +313095,8 @@ var titleSchema = new Schema({
|
|
|
313538
313095
|
|
|
313539
313096
|
// ../anafero/ResourceNavigationContext.mts
|
|
313540
313097
|
init_cjs_shim();
|
|
313541
|
-
var
|
|
313542
|
-
var ResourceNavigationContext = (0,
|
|
313098
|
+
var import_react122 = __toESM(require_react(), 1);
|
|
313099
|
+
var ResourceNavigationContext = (0, import_react122.createContext)({
|
|
313543
313100
|
locateResource: (uri) => "",
|
|
313544
313101
|
resolvePlainTitle: async (uri, signal) => uri
|
|
313545
313102
|
});
|
|
@@ -316448,8 +316005,10 @@ var StoredAppStateSchema = Struct2({
|
|
|
316448
316005
|
var style_default = {
|
|
316449
316006
|
floatingSubresourceLink: "style_floatingSubresourceLink",
|
|
316450
316007
|
floatingSubresourceLinkAnchor: "style_floatingSubresourceLinkAnchor",
|
|
316451
|
-
|
|
316008
|
+
lastVisibleResourceMarkerIntersection: "style_lastVisibleResourceMarkerIntersection",
|
|
316009
|
+
resourceLoadingOrMissingPlaceholder: "style_resourceLoadingOrMissingPlaceholder",
|
|
316452
316010
|
withNav: "style_withNav",
|
|
316011
|
+
resource: "style_resource",
|
|
316453
316012
|
active: "style_active",
|
|
316454
316013
|
"is-disabled": "style_is-disabled",
|
|
316455
316014
|
resourceBreadcrumbsNav: "style_resourceBreadcrumbsNav",
|
|
@@ -316473,19 +316032,19 @@ var BrowserBar = function({
|
|
|
316473
316032
|
onDeactivate,
|
|
316474
316033
|
versioning
|
|
316475
316034
|
}) {
|
|
316476
|
-
const [initialRender, setInitialRender] = (0,
|
|
316477
|
-
(0,
|
|
316035
|
+
const [initialRender, setInitialRender] = (0, import_react123.useState)(true);
|
|
316036
|
+
(0, import_react123.useEffect)(() => {
|
|
316478
316037
|
setInitialRender(false);
|
|
316479
316038
|
}, []);
|
|
316480
316039
|
const showToolbar = onActivateBrowsingMode || activeBrowsingMode;
|
|
316481
|
-
return /* @__PURE__ */
|
|
316040
|
+
return /* @__PURE__ */ import_react123.default.createElement($7167f8da3cce35e4$export$2881499e37b75b9a, { theme: $bf24a13e98395dd3$export$bca14c5b3b88a9c9, ...providerProps }, /* @__PURE__ */ import_react123.default.createElement("div", { className: style_default.browserBar }, /* @__PURE__ */ import_react123.default.createElement("header", { className: style_default.browserBarTitle }, /* @__PURE__ */ import_react123.default.createElement("h1", null, title)), showToolbar ? /* @__PURE__ */ import_react123.default.createElement(
|
|
316482
316041
|
$13c3c67164f4d5be$export$4c260019440d418f,
|
|
316483
316042
|
{
|
|
316484
316043
|
"aria-label": "Tools",
|
|
316485
316044
|
orientation: "vertical",
|
|
316486
316045
|
className: style_default.browserBarToolbar
|
|
316487
316046
|
},
|
|
316488
|
-
/* @__PURE__ */
|
|
316047
|
+
/* @__PURE__ */ import_react123.default.createElement($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { "aria-label": "Browsing mode", className: style_default.browserBarToolbarGroup }, /* @__PURE__ */ import_react123.default.createElement(
|
|
316489
316048
|
$3979c7c23b0bd270$export$d2b052e7b4be1756,
|
|
316490
316049
|
{
|
|
316491
316050
|
"aria-label": "Resource hierarchy",
|
|
@@ -316493,8 +316052,8 @@ var BrowserBar = function({
|
|
|
316493
316052
|
onChange: (val) => val ? onActivateBrowsingMode?.("hierarchy") : onDeactivate?.(),
|
|
316494
316053
|
isDisabled: !onActivateBrowsingMode || activeBrowsingMode === "hierarchy" && !onDeactivate
|
|
316495
316054
|
},
|
|
316496
|
-
/* @__PURE__ */
|
|
316497
|
-
), /* @__PURE__ */
|
|
316055
|
+
/* @__PURE__ */ import_react123.default.createElement(TextBulletedHierarchy, { size: TB_SIZE })
|
|
316056
|
+
), /* @__PURE__ */ import_react123.default.createElement(
|
|
316498
316057
|
$3979c7c23b0bd270$export$d2b052e7b4be1756,
|
|
316499
316058
|
{
|
|
316500
316059
|
"aria-label": "Search by text",
|
|
@@ -316502,40 +316061,15 @@ var BrowserBar = function({
|
|
|
316502
316061
|
onChange: (val) => val ? onActivateBrowsingMode?.("search") : onDeactivate?.(),
|
|
316503
316062
|
isDisabled: !onActivateBrowsingMode || activeBrowsingMode === "search" && !onDeactivate
|
|
316504
316063
|
},
|
|
316505
|
-
/* @__PURE__ */
|
|
316506
|
-
), /* @__PURE__ */ import_react128.default.createElement(
|
|
316507
|
-
$3979c7c23b0bd270$export$d2b052e7b4be1756,
|
|
316508
|
-
{
|
|
316509
|
-
"aria-label": "Bookmarks",
|
|
316510
|
-
isSelected: activeBrowsingMode === "bookmarks",
|
|
316511
|
-
onChange: (val) => val ? onActivateBrowsingMode?.("bookmarks") : onDeactivate?.(),
|
|
316512
|
-
isDisabled: !onActivateBrowsingMode || activeBrowsingMode === "bookmarks" && !onDeactivate
|
|
316513
|
-
},
|
|
316514
|
-
/* @__PURE__ */ import_react128.default.createElement(Bookmark, { size: TB_SIZE })
|
|
316515
|
-
), Object.keys(versioning?.versions ?? {}).length > 1 ? /* @__PURE__ */ import_react128.default.createElement(
|
|
316516
|
-
$3979c7c23b0bd270$export$d2b052e7b4be1756,
|
|
316517
|
-
{
|
|
316518
|
-
isDisabled: true,
|
|
316519
|
-
"aria-label": "Other versions"
|
|
316520
|
-
},
|
|
316521
|
-
/* @__PURE__ */ import_react128.default.createElement(Branch1, { size: TB_SIZE })
|
|
316522
|
-
) : null),
|
|
316523
|
-
/* @__PURE__ */ import_react128.default.createElement($431f98aba6844401$export$1ff3c3f08ae963c0, { orientation: "horizontal" }),
|
|
316524
|
-
/* @__PURE__ */ import_react128.default.createElement($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { "aria-label": "Settings", className: style_default.browserBarToolbarGroup }, /* @__PURE__ */ import_react128.default.createElement(
|
|
316525
|
-
$3979c7c23b0bd270$export$d2b052e7b4be1756,
|
|
316526
|
-
{
|
|
316527
|
-
isDisabled: true,
|
|
316528
|
-
"aria-label": "Settings"
|
|
316529
|
-
},
|
|
316530
|
-
/* @__PURE__ */ import_react128.default.createElement(Settings, { size: TB_SIZE })
|
|
316064
|
+
/* @__PURE__ */ import_react123.default.createElement(Search, { size: TB_SIZE })
|
|
316531
316065
|
))
|
|
316532
|
-
) : null, !initialRender ? /* @__PURE__ */
|
|
316066
|
+
) : null, !initialRender ? /* @__PURE__ */ import_react123.default.createElement("div", { className: style_default.progressWrapper }, loadProgress ? loadProgress === true ? /* @__PURE__ */ import_react123.default.createElement(
|
|
316533
316067
|
$79c16f64960b6385$export$c79b9d6b4cc92af7,
|
|
316534
316068
|
{
|
|
316535
316069
|
"aria-label": "Loading\u2026",
|
|
316536
316070
|
isIndeterminate: true
|
|
316537
316071
|
}
|
|
316538
|
-
) : /* @__PURE__ */
|
|
316072
|
+
) : /* @__PURE__ */ import_react123.default.createElement(
|
|
316539
316073
|
$79c16f64960b6385$export$c79b9d6b4cc92af7,
|
|
316540
316074
|
{
|
|
316541
316075
|
"aria-label": "Loading\u2026",
|
|
@@ -316543,7 +316077,7 @@ var BrowserBar = function({
|
|
|
316543
316077
|
maxValue: loadProgress.total,
|
|
316544
316078
|
value: loadProgress.done
|
|
316545
316079
|
}
|
|
316546
|
-
) : /* @__PURE__ */
|
|
316080
|
+
) : /* @__PURE__ */ import_react123.default.createElement(
|
|
316547
316081
|
$79c16f64960b6385$export$c79b9d6b4cc92af7,
|
|
316548
316082
|
{
|
|
316549
316083
|
"aria-role": "presentation",
|
|
@@ -316560,14 +316094,14 @@ var TB_SIZE = "S";
|
|
|
316560
316094
|
|
|
316561
316095
|
// ../firelight-gui/Resource.tsx
|
|
316562
316096
|
init_cjs_shim();
|
|
316563
|
-
var
|
|
316564
|
-
var
|
|
316097
|
+
var import_react126 = __toESM(require_react(), 1);
|
|
316098
|
+
var import_react_dom7 = __toESM(require_react_dom(), 1);
|
|
316565
316099
|
var import_react_helmet = __toESM(require_Helmet(), 1);
|
|
316566
316100
|
|
|
316567
316101
|
// ../anafero/ErrorBoundaryWithCustomView.tsx
|
|
316568
316102
|
init_cjs_shim();
|
|
316569
|
-
var
|
|
316570
|
-
var ErrorBoundaryWithCustomFallback = class extends
|
|
316103
|
+
var import_react124 = __toESM(require_react(), 1);
|
|
316104
|
+
var ErrorBoundaryWithCustomFallback = class extends import_react124.default.Component {
|
|
316571
316105
|
constructor(props) {
|
|
316572
316106
|
super(props);
|
|
316573
316107
|
this.state = { error: void 0 };
|
|
@@ -316587,22 +316121,22 @@ var ErrorBoundaryWithCustomView_default = ErrorBoundaryWithCustomFallback;
|
|
|
316587
316121
|
|
|
316588
316122
|
// ../firelight-gui/ResourceBreadcrumbs.tsx
|
|
316589
316123
|
init_cjs_shim();
|
|
316590
|
-
var
|
|
316124
|
+
var import_react125 = __toESM(require_react(), 1);
|
|
316591
316125
|
var ResourceBreadcrumbs = function({ parents, className }) {
|
|
316592
|
-
const breadcrumbs = (0,
|
|
316126
|
+
const breadcrumbs = (0, import_react125.useMemo)(() => {
|
|
316593
316127
|
const b = [...parents];
|
|
316594
316128
|
b.reverse();
|
|
316595
316129
|
return b;
|
|
316596
316130
|
}, [parents.map((p3) => p3.path).join(" ")]);
|
|
316597
|
-
return /* @__PURE__ */
|
|
316131
|
+
return /* @__PURE__ */ import_react125.default.createElement("ul", { className: style_default.resourceBreadcrumbsNav }, breadcrumbs.map((link4) => /* @__PURE__ */ import_react125.default.createElement("li", { key: link4.path }, " ", /* @__PURE__ */ import_react125.default.createElement("a", { href: link4.path }, link4.plainTitle))));
|
|
316598
316132
|
};
|
|
316599
316133
|
|
|
316600
316134
|
// ../firelight-gui/Resource.tsx
|
|
316601
316135
|
var ResourceHelmet = function(props) {
|
|
316602
|
-
return /* @__PURE__ */
|
|
316136
|
+
return /* @__PURE__ */ import_react126.default.createElement(import_react_helmet.Helmet, null, props.primaryLanguageID ? /* @__PURE__ */ import_react126.default.createElement("html", { lang: props.primaryLanguageID }) : null, /* @__PURE__ */ import_react126.default.createElement("title", null, props.labelInPlainText));
|
|
316603
316137
|
};
|
|
316604
316138
|
var reactKeysPlugin = reactKeys();
|
|
316605
|
-
var Resource =
|
|
316139
|
+
var Resource = import_react126.default.forwardRef(function({
|
|
316606
316140
|
className,
|
|
316607
316141
|
useDependency,
|
|
316608
316142
|
locateResource,
|
|
@@ -316619,7 +316153,7 @@ var Resource = import_react131.default.forwardRef(function({
|
|
|
316619
316153
|
content.content?.contentSchemaID ?? "",
|
|
316620
316154
|
adapter3
|
|
316621
316155
|
);
|
|
316622
|
-
const preRenderedHTML = (0,
|
|
316156
|
+
const preRenderedHTML = (0, import_react126.useMemo)(() => {
|
|
316623
316157
|
const preRenderingContent = content.content;
|
|
316624
316158
|
let doc4;
|
|
316625
316159
|
try {
|
|
@@ -316653,7 +316187,7 @@ var Resource = import_react131.default.forwardRef(function({
|
|
|
316653
316187
|
return void 0;
|
|
316654
316188
|
}
|
|
316655
316189
|
}, [schema]);
|
|
316656
|
-
const adapterGeneratedContent = (0,
|
|
316190
|
+
const adapterGeneratedContent = (0, import_react126.useMemo)(() => {
|
|
316657
316191
|
if (!adapter3) {
|
|
316658
316192
|
console.debug("Won\u2019t render content (need to know adapter)");
|
|
316659
316193
|
return void 0;
|
|
@@ -316663,7 +316197,7 @@ var Resource = import_react131.default.forwardRef(function({
|
|
|
316663
316197
|
content: adapter3.generateContent(graph)
|
|
316664
316198
|
};
|
|
316665
316199
|
}, [graph, adapter3, locateResource]);
|
|
316666
|
-
const initialState3 = (0,
|
|
316200
|
+
const initialState3 = (0, import_react126.useMemo)(
|
|
316667
316201
|
() => content.content?.contentDoc && schema ? EditorState.create({
|
|
316668
316202
|
schema,
|
|
316669
316203
|
doc: Node.fromJSON(schema, content.content.contentDoc),
|
|
@@ -316673,10 +316207,10 @@ var Resource = import_react131.default.forwardRef(function({
|
|
|
316673
316207
|
);
|
|
316674
316208
|
const somethingStillLoading = [adapter3, initialState3].includes(void 0);
|
|
316675
316209
|
const Layout = layout.layout.Component;
|
|
316676
|
-
const [contentElement, setContentElement] = (0,
|
|
316677
|
-
const [layoutElement, setLayoutElement] = (0,
|
|
316678
|
-
const [visibleResourceLinks, setVisibleResourceLinks] = (0,
|
|
316679
|
-
const describedResources = (0,
|
|
316210
|
+
const [contentElement, setContentElement] = (0, import_react126.useState)(null);
|
|
316211
|
+
const [layoutElement, setLayoutElement] = (0, import_react126.useState)(null);
|
|
316212
|
+
const [visibleResourceLinks, setVisibleResourceLinks] = (0, import_react126.useState)({});
|
|
316213
|
+
const describedResources = (0, import_react126.useMemo)(() => {
|
|
316680
316214
|
if (content.content?.contentDoc) {
|
|
316681
316215
|
const resources = Array.from(
|
|
316682
316216
|
gatherDescribedResourcesFromJsonifiedProseMirrorNode(content.content.contentDoc)
|
|
@@ -316687,15 +316221,15 @@ var Resource = import_react131.default.forwardRef(function({
|
|
|
316687
316221
|
return [];
|
|
316688
316222
|
}
|
|
316689
316223
|
}, [content.content?.contentDoc]);
|
|
316690
|
-
const contentRef = (0,
|
|
316224
|
+
const contentRef = (0, import_react126.useCallback)(
|
|
316691
316225
|
(el) => setContentElement(el ?? null),
|
|
316692
316226
|
[]
|
|
316693
316227
|
);
|
|
316694
|
-
const layoutRef = (0,
|
|
316228
|
+
const layoutRef = (0, import_react126.useCallback)(
|
|
316695
316229
|
(el) => setLayoutElement(el ?? null),
|
|
316696
316230
|
[]
|
|
316697
316231
|
);
|
|
316698
|
-
(0,
|
|
316232
|
+
(0, import_react126.useEffect)(() => {
|
|
316699
316233
|
let timeout5 = void 0;
|
|
316700
316234
|
function handleMaybeSubresourceHover(evt) {
|
|
316701
316235
|
clearTimeout(timeout5);
|
|
@@ -316727,33 +316261,33 @@ var Resource = import_react131.default.forwardRef(function({
|
|
|
316727
316261
|
contentElement?.removeEventListener("mouseover", handleMaybeSubresourceHover);
|
|
316728
316262
|
};
|
|
316729
316263
|
}, [layoutElement, contentElement, describedResources]);
|
|
316730
|
-
const fallback = preRenderedHTML !== void 0 ? /* @__PURE__ */
|
|
316264
|
+
const fallback = preRenderedHTML !== void 0 ? /* @__PURE__ */ import_react126.default.createElement(
|
|
316731
316265
|
"article",
|
|
316732
316266
|
{
|
|
316733
316267
|
id: "content",
|
|
316734
316268
|
ref: contentRef,
|
|
316735
316269
|
dangerouslySetInnerHTML: { __html: preRenderedHTML }
|
|
316736
316270
|
}
|
|
316737
|
-
) : /* @__PURE__ */
|
|
316738
|
-
const mainView = somethingStillLoading || typeof window?.document?.createElement === "undefined" ? fallback : /* @__PURE__ */
|
|
316271
|
+
) : /* @__PURE__ */ import_react126.default.createElement(import_react126.default.Fragment, null, "\u2026");
|
|
316272
|
+
const mainView = somethingStillLoading || typeof window?.document?.createElement === "undefined" ? fallback : /* @__PURE__ */ import_react126.default.createElement(ResourceNavigationContext.Provider, { value: { locateResource, resolvePlainTitle } }, /* @__PURE__ */ import_react126.default.createElement(ErrorBoundaryWithCustomView_default, { fallback }, /* @__PURE__ */ import_react126.default.createElement(
|
|
316739
316273
|
ProseMirror,
|
|
316740
316274
|
{
|
|
316741
316275
|
defaultState: initialState3,
|
|
316742
316276
|
editable: () => false,
|
|
316743
316277
|
nodeViews: adapter3.resourceContentProseMirrorOptions.nodeViews
|
|
316744
316278
|
},
|
|
316745
|
-
/* @__PURE__ */
|
|
316279
|
+
/* @__PURE__ */ import_react126.default.createElement(ForwardedProseMirrorDoc, { ref: contentRef, as: /* @__PURE__ */ import_react126.default.createElement("article", null) })
|
|
316746
316280
|
)));
|
|
316747
|
-
return /* @__PURE__ */
|
|
316281
|
+
return /* @__PURE__ */ import_react126.default.createElement(
|
|
316748
316282
|
"div",
|
|
316749
316283
|
{
|
|
316750
316284
|
ref,
|
|
316751
316285
|
className: `${style_default.resource} ${className ?? ""}`,
|
|
316752
316286
|
"aria-selected": ariaSelected
|
|
316753
316287
|
},
|
|
316754
|
-
/* @__PURE__ */
|
|
316755
|
-
content.content ? /* @__PURE__ */
|
|
316756
|
-
/* @__PURE__ */
|
|
316288
|
+
/* @__PURE__ */ import_react126.default.createElement(ResourceBreadcrumbs, { parents: resourceNav.breadcrumbs }),
|
|
316289
|
+
content.content ? /* @__PURE__ */ import_react126.default.createElement(ResourceHelmet, { ...content.content }) : null,
|
|
316290
|
+
/* @__PURE__ */ import_react126.default.createElement(
|
|
316757
316291
|
Layout,
|
|
316758
316292
|
{
|
|
316759
316293
|
ref: layoutRef,
|
|
@@ -316765,14 +316299,14 @@ var Resource = import_react131.default.forwardRef(function({
|
|
|
316765
316299
|
mainView
|
|
316766
316300
|
),
|
|
316767
316301
|
Object.entries(visibleResourceLinks).map(
|
|
316768
|
-
([elID, [left3, top, url3]]) => (0,
|
|
316769
|
-
/* @__PURE__ */
|
|
316302
|
+
([elID, [left3, top, url3]]) => (0, import_react_dom7.createPortal)(
|
|
316303
|
+
/* @__PURE__ */ import_react126.default.createElement(
|
|
316770
316304
|
"div",
|
|
316771
316305
|
{
|
|
316772
316306
|
className: style_default.floatingSubresourceLink,
|
|
316773
316307
|
style: { position: "absolute", top, left: left3 }
|
|
316774
316308
|
},
|
|
316775
|
-
/* @__PURE__ */
|
|
316309
|
+
/* @__PURE__ */ import_react126.default.createElement("a", { className: style_default.floatingSubresourceLinkAnchor, href: url3 }, "\xB6")
|
|
316776
316310
|
),
|
|
316777
316311
|
document2.body
|
|
316778
316312
|
)
|
|
@@ -316780,7 +316314,7 @@ var Resource = import_react131.default.forwardRef(function({
|
|
|
316780
316314
|
);
|
|
316781
316315
|
});
|
|
316782
316316
|
function useProseMirrorSchema(schemaID, adapter3) {
|
|
316783
|
-
return (0,
|
|
316317
|
+
return (0, import_react126.useMemo)(() => {
|
|
316784
316318
|
if (!adapter3) {
|
|
316785
316319
|
return void 0;
|
|
316786
316320
|
}
|
|
@@ -317167,11 +316701,11 @@ function* generateResourceAssets(resourceURI, relations, parentChain, directDesc
|
|
|
317167
316701
|
"/resource-nav.json": encoder.encode(JSON.stringify(resourceNav, null, 4))
|
|
317168
316702
|
};
|
|
317169
316703
|
const resourceHTML = (0, import_server.renderToString)(
|
|
317170
|
-
|
|
316704
|
+
import_react127.default.createElement($7167f8da3cce35e4$export$2881499e37b75b9a, {
|
|
317171
316705
|
theme: $bf24a13e98395dd3$export$bca14c5b3b88a9c9,
|
|
317172
316706
|
locale: fillInLocale(primaryLanguageID),
|
|
317173
316707
|
children: [
|
|
317174
|
-
|
|
316708
|
+
import_react127.default.createElement(Resource, {
|
|
317175
316709
|
...resourceProps,
|
|
317176
316710
|
key: resourceURI,
|
|
317177
316711
|
document: getDOMStub(),
|
|
@@ -317182,7 +316716,7 @@ function* generateResourceAssets(resourceURI, relations, parentChain, directDesc
|
|
|
317182
316716
|
]
|
|
317183
316717
|
})
|
|
317184
316718
|
);
|
|
317185
|
-
const browseBarHTML = (0, import_server.renderToString)(
|
|
316719
|
+
const browseBarHTML = (0, import_server.renderToString)(import_react127.default.createElement(BrowserBar, {
|
|
317186
316720
|
title: workspaceTitle
|
|
317187
316721
|
}));
|
|
317188
316722
|
const helmet2 = import_react_helmet2.Helmet.renderStatic();
|
|
@@ -317194,8 +316728,6 @@ function* generateResourceAssets(resourceURI, relations, parentChain, directDesc
|
|
|
317194
316728
|
data-workspace-title="${workspaceTitle}">
|
|
317195
316729
|
<head>
|
|
317196
316730
|
<meta charset="utf-8">
|
|
317197
|
-
<!-- devtools
|
|
317198
|
-
<script src="http://localhost:8097"></script> -->
|
|
317199
316731
|
${helmet2.title.toString()}
|
|
317200
316732
|
${helmet2.meta.toString()}
|
|
317201
316733
|
${helmet2.link.toString()}
|
|
@@ -317513,12 +317045,17 @@ async function* generateStaticSiteAssets(versions, currentVersionID, opts) {
|
|
|
317513
317045
|
const expanded = path3.startsWith("/") ? `${opts.pathPrefix}${path3}` : `${prefixWithTrailing}${path3}`;
|
|
317514
317046
|
return expanded;
|
|
317515
317047
|
}
|
|
317516
|
-
const htmlAttrs =
|
|
317517
|
-
data-path-prefix="${opts.pathPrefix}"
|
|
317518
|
-
|
|
317048
|
+
const htmlAttrs = `
|
|
317049
|
+
${opts.pathPrefix ? `data-path-prefix="${opts.pathPrefix}"` : ""}
|
|
317050
|
+
${opts.debug?.reactStrictMode ? 'data-use-react-strict="true"' : ""}
|
|
317051
|
+
`;
|
|
317519
317052
|
const globalCSS = ["bootstrap.css"].map(
|
|
317520
317053
|
(url3) => `<link rel="stylesheet" href="${expandGlobalPath(url3)}" />`
|
|
317521
317054
|
).join("\n");
|
|
317055
|
+
const head6 = `
|
|
317056
|
+
${globalCSS}
|
|
317057
|
+
${opts.debug?.reactDevTools ? '<script src="http://localhost:8097"></script>' : ""}
|
|
317058
|
+
`;
|
|
317522
317059
|
const globalJS = ["bootstrap.js"].map(
|
|
317523
317060
|
(url3) => `<script src="${expandGlobalPath(url3)}"></script>`
|
|
317524
317061
|
).join("\n");
|
|
@@ -317552,7 +317089,7 @@ async function* generateStaticSiteAssets(versions, currentVersionID, opts) {
|
|
|
317552
317089
|
reportProgress: versionSubtask,
|
|
317553
317090
|
reportNotice: versionNotice
|
|
317554
317091
|
},
|
|
317555
|
-
{ htmlAttrs, head:
|
|
317092
|
+
{ htmlAttrs, head: head6, tail: globalJS },
|
|
317556
317093
|
function expandVersionedPath(versionRelativePath) {
|
|
317557
317094
|
const isNonSlashPrepended = !versionRelativePath.startsWith("/");
|
|
317558
317095
|
if (isNonSlashPrepended) {
|
|
@@ -321947,7 +321484,7 @@ var build2 = Command_exports2.make(
|
|
|
321947
321484
|
if (prefix && (!prefix.startsWith("/") || prefix.endsWith("/"))) {
|
|
321948
321485
|
throw new Error("Path prefix must have a leading slash and no trailing slash");
|
|
321949
321486
|
}
|
|
321950
|
-
render_default(/* @__PURE__ */
|
|
321487
|
+
render_default(/* @__PURE__ */ import_react128.default.createElement(Processor, { rootTaskName: "build site", onStart: async function({ onProgress }) {
|
|
321951
321488
|
try {
|
|
321952
321489
|
const generator = generateSite({
|
|
321953
321490
|
revision: unpackOption(revision),
|
|
@@ -321955,7 +321492,11 @@ var build2 = Command_exports2.make(
|
|
|
321955
321492
|
currentRevision: unpackOption(currentRevision)
|
|
321956
321493
|
}, (task, progress) => onProgress(`build site|${task}`, progress), {
|
|
321957
321494
|
pathPrefix: prefix,
|
|
321958
|
-
|
|
321495
|
+
debug: {
|
|
321496
|
+
dumpCache: debug3 || false,
|
|
321497
|
+
reactDevTools: debug3 || false,
|
|
321498
|
+
reactStrictMode: debug3 || false
|
|
321499
|
+
}
|
|
321959
321500
|
});
|
|
321960
321501
|
const [writeProgress, writingSubtask] = onProgress("build site|write files");
|
|
321961
321502
|
for await (const blobchunk of generator) {
|
|
@@ -322167,6 +321708,10 @@ async function* generateSite(revisionsToBuild, onProgress, opts) {
|
|
|
322167
321708
|
},
|
|
322168
321709
|
getDOMStub: () => new import_jsdom2.JSDOM("<html></html>").window.document,
|
|
322169
321710
|
cache: cache3,
|
|
321711
|
+
debug: {
|
|
321712
|
+
reactStrictMode: opts?.debug?.reactStrictMode || false,
|
|
321713
|
+
reactDevTools: opts?.debug?.reactDevTools || false
|
|
321714
|
+
},
|
|
322170
321715
|
pathPrefix: opts?.pathPrefix,
|
|
322171
321716
|
decodeXML: (blob) => new import_jsdom2.JSDOM(
|
|
322172
321717
|
decoder3.decode(blob).replace("xmlns", "wtf"),
|
|
@@ -322177,7 +321722,7 @@ async function* generateSite(revisionsToBuild, onProgress, opts) {
|
|
|
322177
321722
|
}
|
|
322178
321723
|
);
|
|
322179
321724
|
} finally {
|
|
322180
|
-
if (opts?.dumpCache) {
|
|
321725
|
+
if (opts?.debug?.dumpCache) {
|
|
322181
321726
|
try {
|
|
322182
321727
|
fs4.writeFileSync(
|
|
322183
321728
|
"cacheDump.json",
|
|
@@ -322717,28 +322262,6 @@ object-assign/index.js:
|
|
|
322717
322262
|
@license MIT
|
|
322718
322263
|
*)
|
|
322719
322264
|
|
|
322720
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js:
|
|
322721
|
-
(**
|
|
322722
|
-
* @license React
|
|
322723
|
-
* use-sync-external-store-shim.production.min.js
|
|
322724
|
-
*
|
|
322725
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
322726
|
-
*
|
|
322727
|
-
* This source code is licensed under the MIT license found in the
|
|
322728
|
-
* LICENSE file in the root directory of this source tree.
|
|
322729
|
-
*)
|
|
322730
|
-
|
|
322731
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
322732
|
-
(**
|
|
322733
|
-
* @license React
|
|
322734
|
-
* use-sync-external-store-shim.development.js
|
|
322735
|
-
*
|
|
322736
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
322737
|
-
*
|
|
322738
|
-
* This source code is licensed under the MIT license found in the
|
|
322739
|
-
* LICENSE file in the root directory of this source tree.
|
|
322740
|
-
*)
|
|
322741
|
-
|
|
322742
322265
|
react-dom/cjs/react-dom.production.min.js:
|
|
322743
322266
|
(**
|
|
322744
322267
|
* @license React
|