strapi-plugin-firebase-authentication 1.2.1 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{App-CAgq2cOo.js → App-Dg_AxJhA.js} +114 -93
- package/dist/_chunks/{App-CyeC5fLT.mjs → App-J0Ks5XlI.mjs} +93 -114
- package/dist/_chunks/{api-BL-wXuSb.js → api-FVfrlu9T.js} +100 -184
- package/dist/_chunks/{api-Bjer83Qp.mjs → api-NexSh9zC.mjs} +100 -184
- package/dist/_chunks/{index-Bg-lGlji.mjs → index-B9spFspk.mjs} +2 -2
- package/dist/_chunks/{index-Kidqhaeq.mjs → index-Bdn3O-sg.mjs} +1 -1
- package/dist/_chunks/{index-CTenjpqN.js → index-D41v41O3.js} +1 -1
- package/dist/_chunks/{index-Rervtuh1.js → index-ROJyqJld.js} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +773 -169
- package/dist/server/index.mjs +774 -170
- package/dist/server/src/controllers/firebaseController.d.ts +1 -1
- package/dist/server/src/controllers/index.d.ts +1 -1
- package/dist/server/src/index.d.ts +1 -1
- package/dist/server/src/services/tokenService.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
|
5
5
|
import * as rt from "@radix-ui/react-tooltip";
|
|
6
6
|
import * as we$1 from "react-dom";
|
|
7
7
|
import we__default, { flushSync, createPortal } from "react-dom";
|
|
8
|
-
import { q as commonjsGlobal, J as J2, R as R3, C as C5, t as f5, v as a5, N as Nn$1, w as r3, x as f3, u as un$1, y as w5, z as h5, K as K2, A as o5, P as PLUGIN_ID } from "./index-
|
|
8
|
+
import { q as commonjsGlobal, J as J2, R as R3, C as C5, t as f5, v as a5, N as Nn$1, w as r3, x as f3, u as un$1, y as w5, z as h5, K as K2, A as o5, P as PLUGIN_ID } from "./index-B9spFspk.mjs";
|
|
9
9
|
import { getFetchClient } from "@strapi/strapi/admin";
|
|
10
10
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
11
11
|
const callbackRef = useRef(callback);
|
|
@@ -4061,26 +4061,26 @@ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp, onChange }) {
|
|
|
4061
4061
|
]);
|
|
4062
4062
|
return uncontrolledState;
|
|
4063
4063
|
}
|
|
4064
|
-
var getDefaultParent
|
|
4064
|
+
var getDefaultParent = function(originalTarget) {
|
|
4065
4065
|
if (typeof document === "undefined") {
|
|
4066
4066
|
return null;
|
|
4067
4067
|
}
|
|
4068
4068
|
var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
|
|
4069
4069
|
return sampleTarget.ownerDocument.body;
|
|
4070
4070
|
};
|
|
4071
|
-
var counterMap
|
|
4072
|
-
var uncontrolledNodes
|
|
4073
|
-
var markerMap
|
|
4074
|
-
var lockCount
|
|
4075
|
-
var unwrapHost
|
|
4076
|
-
return node && (node.host || unwrapHost
|
|
4071
|
+
var counterMap = /* @__PURE__ */ new WeakMap();
|
|
4072
|
+
var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
4073
|
+
var markerMap = {};
|
|
4074
|
+
var lockCount = 0;
|
|
4075
|
+
var unwrapHost = function(node) {
|
|
4076
|
+
return node && (node.host || unwrapHost(node.parentNode));
|
|
4077
4077
|
};
|
|
4078
|
-
var correctTargets
|
|
4078
|
+
var correctTargets = function(parent, targets) {
|
|
4079
4079
|
return targets.map(function(target) {
|
|
4080
4080
|
if (parent.contains(target)) {
|
|
4081
4081
|
return target;
|
|
4082
4082
|
}
|
|
4083
|
-
var correctedTarget = unwrapHost
|
|
4083
|
+
var correctedTarget = unwrapHost(target);
|
|
4084
4084
|
if (correctedTarget && parent.contains(correctedTarget)) {
|
|
4085
4085
|
return correctedTarget;
|
|
4086
4086
|
}
|
|
@@ -4090,12 +4090,12 @@ var correctTargets$1 = function(parent, targets) {
|
|
|
4090
4090
|
return Boolean(x);
|
|
4091
4091
|
});
|
|
4092
4092
|
};
|
|
4093
|
-
var applyAttributeToOthers
|
|
4094
|
-
var targets = correctTargets
|
|
4095
|
-
if (!markerMap
|
|
4096
|
-
markerMap
|
|
4093
|
+
var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
|
|
4094
|
+
var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
4095
|
+
if (!markerMap[markerName]) {
|
|
4096
|
+
markerMap[markerName] = /* @__PURE__ */ new WeakMap();
|
|
4097
4097
|
}
|
|
4098
|
-
var markerCounter = markerMap
|
|
4098
|
+
var markerCounter = markerMap[markerName];
|
|
4099
4099
|
var hiddenNodes = [];
|
|
4100
4100
|
var elementsToKeep = /* @__PURE__ */ new Set();
|
|
4101
4101
|
var elementsToStop = new Set(targets);
|
|
@@ -4118,13 +4118,13 @@ var applyAttributeToOthers$1 = function(originalTarget, parentNode, markerName,
|
|
|
4118
4118
|
try {
|
|
4119
4119
|
var attr = node.getAttribute(controlAttribute);
|
|
4120
4120
|
var alreadyHidden = attr !== null && attr !== "false";
|
|
4121
|
-
var counterValue = (counterMap
|
|
4121
|
+
var counterValue = (counterMap.get(node) || 0) + 1;
|
|
4122
4122
|
var markerValue = (markerCounter.get(node) || 0) + 1;
|
|
4123
|
-
counterMap
|
|
4123
|
+
counterMap.set(node, counterValue);
|
|
4124
4124
|
markerCounter.set(node, markerValue);
|
|
4125
4125
|
hiddenNodes.push(node);
|
|
4126
4126
|
if (counterValue === 1 && alreadyHidden) {
|
|
4127
|
-
uncontrolledNodes
|
|
4127
|
+
uncontrolledNodes.set(node, true);
|
|
4128
4128
|
}
|
|
4129
4129
|
if (markerValue === 1) {
|
|
4130
4130
|
node.setAttribute(markerName, "true");
|
|
@@ -4140,45 +4140,45 @@ var applyAttributeToOthers$1 = function(originalTarget, parentNode, markerName,
|
|
|
4140
4140
|
};
|
|
4141
4141
|
deep(parentNode);
|
|
4142
4142
|
elementsToKeep.clear();
|
|
4143
|
-
lockCount
|
|
4143
|
+
lockCount++;
|
|
4144
4144
|
return function() {
|
|
4145
4145
|
hiddenNodes.forEach(function(node) {
|
|
4146
|
-
var counterValue = counterMap
|
|
4146
|
+
var counterValue = counterMap.get(node) - 1;
|
|
4147
4147
|
var markerValue = markerCounter.get(node) - 1;
|
|
4148
|
-
counterMap
|
|
4148
|
+
counterMap.set(node, counterValue);
|
|
4149
4149
|
markerCounter.set(node, markerValue);
|
|
4150
4150
|
if (!counterValue) {
|
|
4151
|
-
if (!uncontrolledNodes
|
|
4151
|
+
if (!uncontrolledNodes.has(node)) {
|
|
4152
4152
|
node.removeAttribute(controlAttribute);
|
|
4153
4153
|
}
|
|
4154
|
-
uncontrolledNodes
|
|
4154
|
+
uncontrolledNodes.delete(node);
|
|
4155
4155
|
}
|
|
4156
4156
|
if (!markerValue) {
|
|
4157
4157
|
node.removeAttribute(markerName);
|
|
4158
4158
|
}
|
|
4159
4159
|
});
|
|
4160
|
-
lockCount
|
|
4161
|
-
if (!lockCount
|
|
4162
|
-
counterMap
|
|
4163
|
-
counterMap
|
|
4164
|
-
uncontrolledNodes
|
|
4165
|
-
markerMap
|
|
4160
|
+
lockCount--;
|
|
4161
|
+
if (!lockCount) {
|
|
4162
|
+
counterMap = /* @__PURE__ */ new WeakMap();
|
|
4163
|
+
counterMap = /* @__PURE__ */ new WeakMap();
|
|
4164
|
+
uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
4165
|
+
markerMap = {};
|
|
4166
4166
|
}
|
|
4167
4167
|
};
|
|
4168
4168
|
};
|
|
4169
|
-
var hideOthers
|
|
4169
|
+
var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
4170
4170
|
if (markerName === void 0) {
|
|
4171
4171
|
markerName = "data-aria-hidden";
|
|
4172
4172
|
}
|
|
4173
4173
|
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
4174
|
-
var activeParentNode = getDefaultParent
|
|
4174
|
+
var activeParentNode = getDefaultParent(originalTarget);
|
|
4175
4175
|
if (!activeParentNode) {
|
|
4176
4176
|
return function() {
|
|
4177
4177
|
return null;
|
|
4178
4178
|
};
|
|
4179
4179
|
}
|
|
4180
4180
|
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live]")));
|
|
4181
|
-
return applyAttributeToOthers
|
|
4181
|
+
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
4182
4182
|
};
|
|
4183
4183
|
var __assign = function() {
|
|
4184
4184
|
__assign = Object.assign || function __assign2(t2) {
|
|
@@ -6056,7 +6056,7 @@ const to$1 = [" ", "Enter", "ArrowUp", "ArrowDown"], oo$1 = ["Enter"], no = (o)
|
|
|
6056
6056
|
return m.useEffect(() => {
|
|
6057
6057
|
e !== "both" && W2(null);
|
|
6058
6058
|
}, [ce, e]), m.useEffect(() => {
|
|
6059
|
-
if (R2 && k) return hideOthers
|
|
6059
|
+
if (R2 && k) return hideOthers([R2, k]);
|
|
6060
6060
|
}, [R2, k]), /* @__PURE__ */ jsx(lo$1, { children: /* @__PURE__ */ jsx(
|
|
6061
6061
|
ro,
|
|
6062
6062
|
{
|
|
@@ -6804,7 +6804,7 @@ const q$1 = 10, [Ft$1, oe] = pe$1(le), Oo$1 = "SelectContentImpl", Lt$1 = m.forw
|
|
|
6804
6804
|
...x
|
|
6805
6805
|
} = o, p = X$1(le, e), [y, E2] = m.useState(null), [O2, F] = m.useState(null), _2 = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(i, (S) => E2(S)), [k, Z] = m.useState(null), [U, z] = m.useState(null), R2 = ve$1(e), [H, L] = m.useState(false), W2 = m.useRef(false);
|
|
6806
6806
|
m.useEffect(() => {
|
|
6807
|
-
if (y) return hideOthers
|
|
6807
|
+
if (y) return hideOthers(y);
|
|
6808
6808
|
}, [y]), $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();
|
|
6809
6809
|
const J = m.useCallback(
|
|
6810
6810
|
(S) => {
|
|
@@ -8243,125 +8243,6 @@ function $d7bdfb9eb0fdf311$var$wrapArray(array, startIndex) {
|
|
|
8243
8243
|
}
|
|
8244
8244
|
const $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 = $d7bdfb9eb0fdf311$export$8699f7c8af148338;
|
|
8245
8245
|
const $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 = $d7bdfb9eb0fdf311$export$ab9df7c53fe8454;
|
|
8246
|
-
var getDefaultParent = function(originalTarget) {
|
|
8247
|
-
if (typeof document === "undefined") {
|
|
8248
|
-
return null;
|
|
8249
|
-
}
|
|
8250
|
-
var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
|
|
8251
|
-
return sampleTarget.ownerDocument.body;
|
|
8252
|
-
};
|
|
8253
|
-
var counterMap = /* @__PURE__ */ new WeakMap();
|
|
8254
|
-
var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
8255
|
-
var markerMap = {};
|
|
8256
|
-
var lockCount = 0;
|
|
8257
|
-
var unwrapHost = function(node) {
|
|
8258
|
-
return node && (node.host || unwrapHost(node.parentNode));
|
|
8259
|
-
};
|
|
8260
|
-
var correctTargets = function(parent, targets) {
|
|
8261
|
-
return targets.map(function(target) {
|
|
8262
|
-
if (parent.contains(target)) {
|
|
8263
|
-
return target;
|
|
8264
|
-
}
|
|
8265
|
-
var correctedTarget = unwrapHost(target);
|
|
8266
|
-
if (correctedTarget && parent.contains(correctedTarget)) {
|
|
8267
|
-
return correctedTarget;
|
|
8268
|
-
}
|
|
8269
|
-
console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
|
|
8270
|
-
return null;
|
|
8271
|
-
}).filter(function(x) {
|
|
8272
|
-
return Boolean(x);
|
|
8273
|
-
});
|
|
8274
|
-
};
|
|
8275
|
-
var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
|
|
8276
|
-
var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
8277
|
-
if (!markerMap[markerName]) {
|
|
8278
|
-
markerMap[markerName] = /* @__PURE__ */ new WeakMap();
|
|
8279
|
-
}
|
|
8280
|
-
var markerCounter = markerMap[markerName];
|
|
8281
|
-
var hiddenNodes = [];
|
|
8282
|
-
var elementsToKeep = /* @__PURE__ */ new Set();
|
|
8283
|
-
var elementsToStop = new Set(targets);
|
|
8284
|
-
var keep = function(el2) {
|
|
8285
|
-
if (!el2 || elementsToKeep.has(el2)) {
|
|
8286
|
-
return;
|
|
8287
|
-
}
|
|
8288
|
-
elementsToKeep.add(el2);
|
|
8289
|
-
keep(el2.parentNode);
|
|
8290
|
-
};
|
|
8291
|
-
targets.forEach(keep);
|
|
8292
|
-
var deep = function(parent) {
|
|
8293
|
-
if (!parent || elementsToStop.has(parent)) {
|
|
8294
|
-
return;
|
|
8295
|
-
}
|
|
8296
|
-
Array.prototype.forEach.call(parent.children, function(node) {
|
|
8297
|
-
if (elementsToKeep.has(node)) {
|
|
8298
|
-
deep(node);
|
|
8299
|
-
} else {
|
|
8300
|
-
try {
|
|
8301
|
-
var attr = node.getAttribute(controlAttribute);
|
|
8302
|
-
var alreadyHidden = attr !== null && attr !== "false";
|
|
8303
|
-
var counterValue = (counterMap.get(node) || 0) + 1;
|
|
8304
|
-
var markerValue = (markerCounter.get(node) || 0) + 1;
|
|
8305
|
-
counterMap.set(node, counterValue);
|
|
8306
|
-
markerCounter.set(node, markerValue);
|
|
8307
|
-
hiddenNodes.push(node);
|
|
8308
|
-
if (counterValue === 1 && alreadyHidden) {
|
|
8309
|
-
uncontrolledNodes.set(node, true);
|
|
8310
|
-
}
|
|
8311
|
-
if (markerValue === 1) {
|
|
8312
|
-
node.setAttribute(markerName, "true");
|
|
8313
|
-
}
|
|
8314
|
-
if (!alreadyHidden) {
|
|
8315
|
-
node.setAttribute(controlAttribute, "true");
|
|
8316
|
-
}
|
|
8317
|
-
} catch (e) {
|
|
8318
|
-
console.error("aria-hidden: cannot operate on ", node, e);
|
|
8319
|
-
}
|
|
8320
|
-
}
|
|
8321
|
-
});
|
|
8322
|
-
};
|
|
8323
|
-
deep(parentNode);
|
|
8324
|
-
elementsToKeep.clear();
|
|
8325
|
-
lockCount++;
|
|
8326
|
-
return function() {
|
|
8327
|
-
hiddenNodes.forEach(function(node) {
|
|
8328
|
-
var counterValue = counterMap.get(node) - 1;
|
|
8329
|
-
var markerValue = markerCounter.get(node) - 1;
|
|
8330
|
-
counterMap.set(node, counterValue);
|
|
8331
|
-
markerCounter.set(node, markerValue);
|
|
8332
|
-
if (!counterValue) {
|
|
8333
|
-
if (!uncontrolledNodes.has(node)) {
|
|
8334
|
-
node.removeAttribute(controlAttribute);
|
|
8335
|
-
}
|
|
8336
|
-
uncontrolledNodes.delete(node);
|
|
8337
|
-
}
|
|
8338
|
-
if (!markerValue) {
|
|
8339
|
-
node.removeAttribute(markerName);
|
|
8340
|
-
}
|
|
8341
|
-
});
|
|
8342
|
-
lockCount--;
|
|
8343
|
-
if (!lockCount) {
|
|
8344
|
-
counterMap = /* @__PURE__ */ new WeakMap();
|
|
8345
|
-
counterMap = /* @__PURE__ */ new WeakMap();
|
|
8346
|
-
uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
8347
|
-
markerMap = {};
|
|
8348
|
-
}
|
|
8349
|
-
};
|
|
8350
|
-
};
|
|
8351
|
-
var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
8352
|
-
if (markerName === void 0) {
|
|
8353
|
-
markerName = "data-aria-hidden";
|
|
8354
|
-
}
|
|
8355
|
-
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
8356
|
-
var activeParentNode = getDefaultParent(originalTarget);
|
|
8357
|
-
if (!activeParentNode) {
|
|
8358
|
-
return function() {
|
|
8359
|
-
return null;
|
|
8360
|
-
};
|
|
8361
|
-
}
|
|
8362
|
-
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
|
|
8363
|
-
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
8364
|
-
};
|
|
8365
8246
|
var effectCar$2 = createSidecarMedium();
|
|
8366
8247
|
var nothing$2 = function() {
|
|
8367
8248
|
return;
|
|
@@ -11240,10 +11121,11 @@ NodeProp.contextHash = new NodeProp({ perNode: true });
|
|
|
11240
11121
|
NodeProp.lookAhead = new NodeProp({ perNode: true });
|
|
11241
11122
|
NodeProp.mounted = new NodeProp({ perNode: true });
|
|
11242
11123
|
class MountedTree {
|
|
11243
|
-
constructor(tree, overlay, parser2) {
|
|
11124
|
+
constructor(tree, overlay, parser2, bracketed = false) {
|
|
11244
11125
|
this.tree = tree;
|
|
11245
11126
|
this.overlay = overlay;
|
|
11246
11127
|
this.parser = parser2;
|
|
11128
|
+
this.bracketed = bracketed;
|
|
11247
11129
|
}
|
|
11248
11130
|
/**
|
|
11249
11131
|
@internal
|
|
@@ -11399,6 +11281,7 @@ var IterMode;
|
|
|
11399
11281
|
IterMode2[IterMode2["IncludeAnonymous"] = 2] = "IncludeAnonymous";
|
|
11400
11282
|
IterMode2[IterMode2["IgnoreMounts"] = 4] = "IgnoreMounts";
|
|
11401
11283
|
IterMode2[IterMode2["IgnoreOverlays"] = 8] = "IgnoreOverlays";
|
|
11284
|
+
IterMode2[IterMode2["EnterBracketed"] = 16] = "EnterBracketed";
|
|
11402
11285
|
})(IterMode || (IterMode = {}));
|
|
11403
11286
|
class Tree {
|
|
11404
11287
|
/**
|
|
@@ -11761,10 +11644,11 @@ class TreeNode extends BaseNode {
|
|
|
11761
11644
|
return this.from + this._tree.length;
|
|
11762
11645
|
}
|
|
11763
11646
|
nextChild(i, dir, pos, side, mode = 0) {
|
|
11647
|
+
var _a2;
|
|
11764
11648
|
for (let parent = this; ; ) {
|
|
11765
11649
|
for (let { children, positions } = parent._tree, e = dir > 0 ? children.length : -1; i != e; i += dir) {
|
|
11766
11650
|
let next = children[i], start = positions[i] + parent.from;
|
|
11767
|
-
if (!checkSide(side, pos, start, start + next.length))
|
|
11651
|
+
if (!(mode & IterMode.EnterBracketed && next instanceof Tree && ((_a2 = MountedTree.get(next)) === null || _a2 === void 0 ? void 0 : _a2.overlay) === null && (start >= pos || start + next.length <= pos)) && !checkSide(side, pos, start, start + next.length))
|
|
11768
11652
|
continue;
|
|
11769
11653
|
if (next instanceof TreeBuffer) {
|
|
11770
11654
|
if (mode & IterMode.ExcludeBuffers)
|
|
@@ -11777,7 +11661,7 @@ class TreeNode extends BaseNode {
|
|
|
11777
11661
|
if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay)
|
|
11778
11662
|
return new TreeNode(mounted.tree, start, i, parent);
|
|
11779
11663
|
let inner = new TreeNode(next, start, i, parent);
|
|
11780
|
-
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
|
|
11664
|
+
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side, mode);
|
|
11781
11665
|
}
|
|
11782
11666
|
}
|
|
11783
11667
|
if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous)
|
|
@@ -11833,9 +11717,9 @@ class TreeNode extends BaseNode {
|
|
|
11833
11717
|
enter(pos, side, mode = 0) {
|
|
11834
11718
|
let mounted;
|
|
11835
11719
|
if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
|
|
11836
|
-
let rPos = pos - this.from;
|
|
11720
|
+
let rPos = pos - this.from, enterBracketed = mode & IterMode.EnterBracketed && mounted.bracketed;
|
|
11837
11721
|
for (let { from, to: to2 } of mounted.overlay) {
|
|
11838
|
-
if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to2 >= rPos : to2 > rPos))
|
|
11722
|
+
if ((side > 0 || enterBracketed ? from <= rPos : from < rPos) && (side < 0 || enterBracketed ? to2 >= rPos : to2 > rPos))
|
|
11839
11723
|
return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
|
|
11840
11724
|
}
|
|
11841
11725
|
}
|
|
@@ -12094,11 +11978,11 @@ class TreeCursor {
|
|
|
12094
11978
|
@internal
|
|
12095
11979
|
*/
|
|
12096
11980
|
constructor(node, mode = 0) {
|
|
12097
|
-
this.mode = mode;
|
|
12098
11981
|
this.buffer = null;
|
|
12099
11982
|
this.stack = [];
|
|
12100
11983
|
this.index = 0;
|
|
12101
11984
|
this.bufferNode = null;
|
|
11985
|
+
this.mode = mode & ~IterMode.EnterBracketed;
|
|
12102
11986
|
if (node instanceof TreeNode) {
|
|
12103
11987
|
this.yieldNode(node);
|
|
12104
11988
|
} else {
|
|
@@ -17807,7 +17691,8 @@ class EditorState {
|
|
|
17807
17691
|
- Other (anything else)
|
|
17808
17692
|
*/
|
|
17809
17693
|
charCategorizer(at2) {
|
|
17810
|
-
|
|
17694
|
+
let chars = this.languageDataAt("wordChars", at2);
|
|
17695
|
+
return makeCategorizer(chars.length ? chars[0] : "");
|
|
17811
17696
|
}
|
|
17812
17697
|
/**
|
|
17813
17698
|
Find the word at the given position, meaning the range
|
|
@@ -17890,6 +17775,9 @@ class RangeValue {
|
|
|
17890
17775
|
RangeValue.prototype.startSide = RangeValue.prototype.endSide = 0;
|
|
17891
17776
|
RangeValue.prototype.point = false;
|
|
17892
17777
|
RangeValue.prototype.mapMode = MapMode.TrackDel;
|
|
17778
|
+
function cmpVal(a, b) {
|
|
17779
|
+
return a == b || a.constructor == b.constructor && a.eq(b);
|
|
17780
|
+
}
|
|
17893
17781
|
class Range2 {
|
|
17894
17782
|
constructor(from, to2, value) {
|
|
17895
17783
|
this.from = from;
|
|
@@ -18137,7 +18025,7 @@ class RangeSet {
|
|
|
18137
18025
|
let sharedChunks = findSharedChunks(a, b);
|
|
18138
18026
|
let sideA = new SpanCursor(a, sharedChunks, 0).goto(from), sideB = new SpanCursor(b, sharedChunks, 0).goto(from);
|
|
18139
18027
|
for (; ; ) {
|
|
18140
|
-
if (sideA.to != sideB.to || !sameValues(sideA.active, sideB.active) || sideA.point && (!sideB.point || !sideA.point
|
|
18028
|
+
if (sideA.to != sideB.to || !sameValues(sideA.active, sideB.active) || sideA.point && (!sideB.point || !cmpVal(sideA.point, sideB.point)))
|
|
18141
18029
|
return false;
|
|
18142
18030
|
if (sideA.to > to2)
|
|
18143
18031
|
return true;
|
|
@@ -18587,20 +18475,25 @@ function compare(a, startA, b, startB, length, comparator) {
|
|
|
18587
18475
|
b.goto(startB);
|
|
18588
18476
|
let endB = startB + length;
|
|
18589
18477
|
let pos = startB, dPos = startB - startA;
|
|
18590
|
-
|
|
18478
|
+
let bounds = !!comparator.boundChange;
|
|
18479
|
+
for (let boundChange = false; ; ) {
|
|
18591
18480
|
let dEnd = a.to + dPos - b.to, diff = dEnd || a.endSide - b.endSide;
|
|
18592
18481
|
let end = diff < 0 ? a.to + dPos : b.to, clipEnd = Math.min(end, endB);
|
|
18593
|
-
|
|
18594
|
-
|
|
18482
|
+
let point = a.point || b.point;
|
|
18483
|
+
if (point) {
|
|
18484
|
+
if (!(a.point && b.point && cmpVal(a.point, b.point) && sameValues(a.activeForPoint(a.to), b.activeForPoint(b.to))))
|
|
18595
18485
|
comparator.comparePoint(pos, clipEnd, a.point, b.point);
|
|
18486
|
+
boundChange = false;
|
|
18596
18487
|
} else {
|
|
18488
|
+
if (boundChange)
|
|
18489
|
+
comparator.boundChange(pos);
|
|
18597
18490
|
if (clipEnd > pos && !sameValues(a.active, b.active))
|
|
18598
18491
|
comparator.compareRange(pos, clipEnd, a.active, b.active);
|
|
18492
|
+
if (bounds && clipEnd < endB && (dEnd || a.openEnd(end) != b.openEnd(end)))
|
|
18493
|
+
boundChange = true;
|
|
18599
18494
|
}
|
|
18600
18495
|
if (end > endB)
|
|
18601
18496
|
break;
|
|
18602
|
-
if ((dEnd || a.openEnd != b.openEnd) && comparator.boundChange)
|
|
18603
|
-
comparator.boundChange(end);
|
|
18604
18497
|
pos = end;
|
|
18605
18498
|
if (diff <= 0)
|
|
18606
18499
|
a.next();
|
|
@@ -18612,7 +18505,7 @@ function sameValues(a, b) {
|
|
|
18612
18505
|
if (a.length != b.length)
|
|
18613
18506
|
return false;
|
|
18614
18507
|
for (let i = 0; i < a.length; i++)
|
|
18615
|
-
if (a[i] != b[i] && !a[i]
|
|
18508
|
+
if (a[i] != b[i] && !cmpVal(a[i], b[i]))
|
|
18616
18509
|
return false;
|
|
18617
18510
|
return true;
|
|
18618
18511
|
}
|
|
@@ -20978,6 +20871,13 @@ class TileBuilder {
|
|
|
20978
20871
|
/* Reused.DOM */
|
|
20979
20872
|
);
|
|
20980
20873
|
}
|
|
20874
|
+
let oldTile = Tile.get(composition.text);
|
|
20875
|
+
if (oldTile)
|
|
20876
|
+
this.cache.reused.set(
|
|
20877
|
+
oldTile,
|
|
20878
|
+
2
|
|
20879
|
+
/* Reused.DOM */
|
|
20880
|
+
);
|
|
20981
20881
|
let text = new TextTile(composition.text, composition.text.nodeValue);
|
|
20982
20882
|
text.flags |= 8;
|
|
20983
20883
|
head.append(text);
|
|
@@ -21255,6 +21155,18 @@ class TileUpdate {
|
|
|
21255
21155
|
/* Reused.DOM */
|
|
21256
21156
|
);
|
|
21257
21157
|
this.old = new TilePointer(old);
|
|
21158
|
+
this.reuseWalker = {
|
|
21159
|
+
skip: (tile, from, to2) => {
|
|
21160
|
+
this.cache.add(tile);
|
|
21161
|
+
if (tile.isComposite())
|
|
21162
|
+
return false;
|
|
21163
|
+
},
|
|
21164
|
+
enter: (tile) => this.cache.add(tile),
|
|
21165
|
+
leave: () => {
|
|
21166
|
+
},
|
|
21167
|
+
break: () => {
|
|
21168
|
+
}
|
|
21169
|
+
};
|
|
21258
21170
|
}
|
|
21259
21171
|
run(changes, composition) {
|
|
21260
21172
|
let compositionContext = composition && this.getCompositionContext(composition.text);
|
|
@@ -21273,6 +21185,7 @@ class TileUpdate {
|
|
|
21273
21185
|
if (composition && next.fromA <= composition.range.fromA && next.toA >= composition.range.toA) {
|
|
21274
21186
|
this.emit(posB, composition.range.fromB);
|
|
21275
21187
|
this.builder.addComposition(composition, compositionContext);
|
|
21188
|
+
this.text.skip(composition.range.toB - composition.range.fromB);
|
|
21276
21189
|
this.emit(composition.range.toB, next.toB);
|
|
21277
21190
|
} else {
|
|
21278
21191
|
this.emit(posB, next.toB);
|
|
@@ -21417,17 +21330,13 @@ class TileUpdate {
|
|
|
21417
21330
|
this.openMarks = openEnd;
|
|
21418
21331
|
}
|
|
21419
21332
|
forward(from, to2) {
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
},
|
|
21428
|
-
break: () => {
|
|
21429
|
-
}
|
|
21430
|
-
});
|
|
21333
|
+
if (to2 - from <= 10) {
|
|
21334
|
+
this.old.advance(to2 - from, 1, this.reuseWalker);
|
|
21335
|
+
} else {
|
|
21336
|
+
this.old.advance(5, -1, this.reuseWalker);
|
|
21337
|
+
this.old.advance(to2 - from - 10, -1);
|
|
21338
|
+
this.old.advance(5, 1, this.reuseWalker);
|
|
21339
|
+
}
|
|
21431
21340
|
}
|
|
21432
21341
|
getCompositionContext(text) {
|
|
21433
21342
|
let marks = [], line = null;
|
|
@@ -22443,10 +22352,11 @@ function dirAt(view, pos) {
|
|
|
22443
22352
|
}
|
|
22444
22353
|
const LineBreakPlaceholder = "";
|
|
22445
22354
|
class DOMReader {
|
|
22446
|
-
constructor(points,
|
|
22355
|
+
constructor(points, view) {
|
|
22447
22356
|
this.points = points;
|
|
22357
|
+
this.view = view;
|
|
22448
22358
|
this.text = "";
|
|
22449
|
-
this.lineSeparator = state.facet(EditorState.lineSeparator);
|
|
22359
|
+
this.lineSeparator = view.state.facet(EditorState.lineSeparator);
|
|
22450
22360
|
}
|
|
22451
22361
|
append(text) {
|
|
22452
22362
|
this.text += text;
|
|
@@ -22464,7 +22374,7 @@ class DOMReader {
|
|
|
22464
22374
|
this.readNode(cur2);
|
|
22465
22375
|
let tile = Tile.get(cur2), next = cur2.nextSibling;
|
|
22466
22376
|
if (next == end) {
|
|
22467
|
-
if ((tile === null || tile === void 0 ? void 0 : tile.breakAfter) && !next)
|
|
22377
|
+
if ((tile === null || tile === void 0 ? void 0 : tile.breakAfter) && !next && parent != this.view.contentDOM)
|
|
22468
22378
|
this.lineBreak();
|
|
22469
22379
|
break;
|
|
22470
22380
|
}
|
|
@@ -22580,7 +22490,7 @@ class DOMChange {
|
|
|
22580
22490
|
this.newSel = null;
|
|
22581
22491
|
} else if (start > -1 && (this.bounds = domBoundsAround(view.docView.tile, start, end, 0))) {
|
|
22582
22492
|
let selPoints = iHead || iAnchor ? [] : selectionPoints(view);
|
|
22583
|
-
let reader = new DOMReader(selPoints, view
|
|
22493
|
+
let reader = new DOMReader(selPoints, view);
|
|
22584
22494
|
reader.readRange(this.bounds.startDOM, this.bounds.endDOM);
|
|
22585
22495
|
this.text = reader.text;
|
|
22586
22496
|
this.newSel = selectionFromPoints(selPoints, this.bounds.from);
|
|
@@ -29231,7 +29141,7 @@ Language.setState = /* @__PURE__ */ StateEffect.define();
|
|
|
29231
29141
|
function topNodeAt(state, pos, side) {
|
|
29232
29142
|
let topLang = state.facet(language), tree = syntaxTree(state).topNode;
|
|
29233
29143
|
if (!topLang || topLang.allowsNesting) {
|
|
29234
|
-
for (let node = tree; node; node = node.enter(pos, side, IterMode.ExcludeBuffers))
|
|
29144
|
+
for (let node = tree; node; node = node.enter(pos, side, IterMode.ExcludeBuffers | IterMode.EnterBracketed))
|
|
29235
29145
|
if (node.type.isTop)
|
|
29236
29146
|
tree = node;
|
|
29237
29147
|
}
|
|
@@ -31585,7 +31495,13 @@ function copyLine(state, dispatch, forward) {
|
|
|
31585
31495
|
else
|
|
31586
31496
|
changes.push({ from: block.to, insert: state.lineBreak + state.doc.slice(block.from, block.to) });
|
|
31587
31497
|
}
|
|
31588
|
-
|
|
31498
|
+
let changeSet = state.changes(changes);
|
|
31499
|
+
dispatch(state.update({
|
|
31500
|
+
changes: changeSet,
|
|
31501
|
+
selection: state.selection.map(changeSet, forward ? 1 : -1),
|
|
31502
|
+
scrollIntoView: true,
|
|
31503
|
+
userEvent: "input.copyline"
|
|
31504
|
+
}));
|
|
31589
31505
|
return true;
|
|
31590
31506
|
}
|
|
31591
31507
|
const copyLineUp = ({ state, dispatch }) => copyLine(state, dispatch, false);
|
|
@@ -2662,7 +2662,7 @@ const index = {
|
|
|
2662
2662
|
id: `${PLUGIN_ID}.page.title`,
|
|
2663
2663
|
defaultMessage: PLUGIN_ID
|
|
2664
2664
|
},
|
|
2665
|
-
Component: () => import("./App-
|
|
2665
|
+
Component: () => import("./App-J0Ks5XlI.mjs").then((mod) => ({
|
|
2666
2666
|
default: mod.App
|
|
2667
2667
|
})),
|
|
2668
2668
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -2684,7 +2684,7 @@ const index = {
|
|
|
2684
2684
|
id: "settings",
|
|
2685
2685
|
to: `/settings/${PLUGIN_ID}`,
|
|
2686
2686
|
async Component() {
|
|
2687
|
-
const component = await import("./index-
|
|
2687
|
+
const component = await import("./index-Bdn3O-sg.mjs");
|
|
2688
2688
|
return component.default;
|
|
2689
2689
|
},
|
|
2690
2690
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { T, R, E, J as Jm, N as Nn, G as G0, I as Is, M as M1, D as D1, i as i1, t as t1, g as getFirebaseConfig, s as saveFirebaseConfig, f as delFirebaseConfig, j as savePasswordSettings } from "./api-
|
|
3
|
+
import { T, R, E, J as Jm, N as Nn, G as G0, I as Is, M as M1, D as D1, i as i1, t as t1, g as getFirebaseConfig, s as saveFirebaseConfig, f as delFirebaseConfig, j as savePasswordSettings } from "./api-NexSh9zC.mjs";
|
|
4
4
|
import { useNotification, Page } from "@strapi/strapi/admin";
|
|
5
5
|
import { useNavigate } from "react-router-dom";
|
|
6
6
|
function SettingsPage() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const m = require("react");
|
|
5
|
-
const api = require("./api-
|
|
5
|
+
const api = require("./api-FVfrlu9T.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const reactRouterDom = require("react-router-dom");
|
|
8
8
|
function SettingsPage() {
|
|
@@ -2663,7 +2663,7 @@ const index = {
|
|
|
2663
2663
|
id: `${PLUGIN_ID}.page.title`,
|
|
2664
2664
|
defaultMessage: PLUGIN_ID
|
|
2665
2665
|
},
|
|
2666
|
-
Component: () => Promise.resolve().then(() => require("./App-
|
|
2666
|
+
Component: () => Promise.resolve().then(() => require("./App-Dg_AxJhA.js")).then((mod) => ({
|
|
2667
2667
|
default: mod.App
|
|
2668
2668
|
})),
|
|
2669
2669
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -2685,7 +2685,7 @@ const index = {
|
|
|
2685
2685
|
id: "settings",
|
|
2686
2686
|
to: `/settings/${PLUGIN_ID}`,
|
|
2687
2687
|
async Component() {
|
|
2688
|
-
const component = await Promise.resolve().then(() => require("./index-
|
|
2688
|
+
const component = await Promise.resolve().then(() => require("./index-D41v41O3.js"));
|
|
2689
2689
|
return component.default;
|
|
2690
2690
|
},
|
|
2691
2691
|
permissions: PERMISSIONS["menu-link"]
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED