strapi-plugin-comments 3.0.0-beta.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -122
- package/dist/_chunks/{index-CY_AVWS-.js → index-B-ygLKrb.js} +417 -242
- package/dist/_chunks/{index-D3iNqWZT.mjs → index-BgN4aUMA.mjs} +5 -5
- package/dist/_chunks/{index-BBcsmSTs.mjs → index-Bx2boY6h.mjs} +420 -245
- package/dist/_chunks/{index-DJ32APz-.mjs → index-CIqMAf50.mjs} +1277 -1152
- package/dist/_chunks/{index-BXEk5PWx.js → index-CWfr5ejx.js} +20 -26
- package/dist/_chunks/{index-BFPteXuP.js → index-D8uskGzQ.js} +5 -5
- package/dist/_chunks/{index-Bcck91A8.js → index-DFAPx7Bl.js} +1290 -1144
- package/dist/_chunks/{index-D9MOkoQ2.mjs → index-Db2zwbpe.mjs} +20 -26
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +30 -50
- package/dist/admin/src/api/schemas.d.ts +432 -756
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +30 -50
- package/dist/admin/src/hooks/useCommentsAll.d.ts +6 -10
- package/dist/admin/src/hooks/useReports.d.ts +6 -10
- package/dist/server/index.js +198 -144
- package/dist/server/index.mjs +198 -144
- package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
- package/dist/server/src/bootstrap.d.ts +1 -1
- package/dist/server/src/config/index.d.ts +30 -0
- package/dist/server/src/content-types/index.d.ts +1 -1
- package/dist/server/src/controllers/admin.controller.d.ts +108 -29
- package/dist/server/src/controllers/client.controller.d.ts +117 -23
- package/dist/server/src/controllers/index.d.ts +297 -88
- package/dist/server/src/controllers/settings.controller.d.ts +33 -1
- package/dist/server/src/graphql/index.d.ts +1 -1
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/index.d.ts +2 -2
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +18 -6
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +10 -4
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +18 -6
- package/dist/server/src/graphql/queries/index.d.ts +2 -2
- package/dist/server/src/graphql/types/getComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentNested.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateReport.d.ts +1 -1
- package/dist/server/src/graphql/types/getId.d.ts +1 -1
- package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getRemoveComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getReport.d.ts +1 -1
- package/dist/server/src/graphql/types/getReportReason.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseFindAll.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseMeta.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponsePagination.d.ts +1 -1
- package/dist/server/src/graphql/types/getUpdateComment.d.ts +1 -1
- package/dist/server/src/graphql/types/index.d.ts +1 -1
- package/dist/server/src/index.d.ts +921 -314
- package/dist/server/src/register/custom-fields/index.d.ts +1 -1
- package/dist/server/src/register/index.d.ts +1 -1
- package/dist/server/src/repositories/comment.repository.d.ts +10 -1
- package/dist/server/src/repositories/index.d.ts +0 -2
- package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
- package/dist/server/src/repositories/store.repository.d.ts +159 -3
- package/dist/server/src/repositories/utils.d.ts +1 -3
- package/dist/server/src/routes/admin.routes.d.ts +1 -1
- package/dist/server/src/routes/client.routes.d.ts +1 -1
- package/dist/server/src/routes/index.d.ts +2 -2
- package/dist/server/src/services/admin/admin.service.d.ts +232 -78
- package/dist/server/src/services/admin/utils.d.ts +1 -1
- package/dist/server/src/services/client.service.d.ts +177 -66
- package/dist/server/src/services/common.service.d.ts +60 -19
- package/dist/server/src/services/gql.service.d.ts +1 -1
- package/dist/server/src/services/index.d.ts +608 -222
- package/dist/server/src/services/settings.service.d.ts +25 -1
- package/dist/server/src/services/utils/functions.d.ts +1 -3
- package/dist/server/src/test/utils.d.ts +1 -0
- package/dist/server/src/utils/constants.d.ts +1 -1
- package/dist/server/src/utils/getConfig.d.ts +2 -2
- package/dist/server/src/utils/getPluginService.d.ts +2 -2
- package/dist/server/src/utils/throwError.d.ts +1 -1
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +10 -9
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
- package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -72
- package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
- package/dist/server/src/validators/utils.d.ts +1 -1
- package/package.json +18 -12
- /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
|
@@ -4193,9 +4193,9 @@ var handleScroll$2 = function(axis, endTarget, event, sourceDelta, noOverscroll)
|
|
|
4193
4193
|
!targetInLock && target !== document.body || // self content
|
|
4194
4194
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
4195
4195
|
);
|
|
4196
|
-
if (isDeltaPositive && (Math.abs(availableScroll) < 1 ||
|
|
4196
|
+
if (isDeltaPositive && (Math.abs(availableScroll) < 1 || false)) {
|
|
4197
4197
|
shouldCancelScroll = true;
|
|
4198
|
-
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 ||
|
|
4198
|
+
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || false)) {
|
|
4199
4199
|
shouldCancelScroll = true;
|
|
4200
4200
|
}
|
|
4201
4201
|
return shouldCancelScroll;
|
|
@@ -4277,7 +4277,7 @@ function RemoveScrollSideCar$2(props) {
|
|
|
4277
4277
|
return true;
|
|
4278
4278
|
}
|
|
4279
4279
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
4280
|
-
return handleScroll$2(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY
|
|
4280
|
+
return handleScroll$2(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
4281
4281
|
}, []);
|
|
4282
4282
|
var shouldPrevent = React.useCallback(function(_event) {
|
|
4283
4283
|
var event = _event;
|
|
@@ -4539,7 +4539,7 @@ function createCollection(name2) {
|
|
|
4539
4539
|
}
|
|
4540
4540
|
const cache = /* @__PURE__ */ new Map();
|
|
4541
4541
|
function useCollator(locale, options) {
|
|
4542
|
-
const cacheKey = locale +
|
|
4542
|
+
const cacheKey = locale + Object.entries(options).sort((a2, b2) => a2[0] < b2[0] ? -1 : 1).join();
|
|
4543
4543
|
if (cache.has(cacheKey)) {
|
|
4544
4544
|
return cache.get(cacheKey);
|
|
4545
4545
|
}
|
|
@@ -5306,6 +5306,8 @@ const ComboboxNoValueFound = React.forwardRef((props, ref) => {
|
|
|
5306
5306
|
unsub();
|
|
5307
5307
|
};
|
|
5308
5308
|
}, [subscribe]);
|
|
5309
|
+
if (autocomplete.type === "none" && items.length > 0)
|
|
5310
|
+
return null;
|
|
5309
5311
|
if (autocomplete.type === "list" && autocomplete.filter === "startsWith" && items.some((item) => startsWith(item.textValue, textValue))) {
|
|
5310
5312
|
return null;
|
|
5311
5313
|
}
|
|
@@ -7050,8 +7052,8 @@ const SvgArrowClockwise = ({
|
|
|
7050
7052
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7051
7053
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M30.5 7v6a1.5 1.5 0 0 1-1.5 1.5h-6a1.5 1.5 0 0 1 0-3h2.137l-2.375-2.173-.047-.046a9.5 9.5 0 1 0-6.84 16.219H16a9.44 9.44 0 0 0 6.519-2.59 1.5 1.5 0 1 1 2.061 2.181A12.43 12.43 0 0 1 16 28.5h-.171a12.5 12.5 0 1 1 8.985-21.368L27.5 9.59V7a1.5 1.5 0 0 1 3 0" }) });
|
|
7052
7054
|
};
|
|
7053
|
-
const ForwardRef$
|
|
7054
|
-
const ForwardRef$
|
|
7055
|
+
const ForwardRef$58 = forwardRef$1(SvgArrowClockwise);
|
|
7056
|
+
const ForwardRef$59 = ForwardRef$58;
|
|
7055
7057
|
const SvgArrowDown = ({
|
|
7056
7058
|
fill: fillProp = "currentColor",
|
|
7057
7059
|
stroke: strokeProp,
|
|
@@ -7103,8 +7105,8 @@ const SvgArrowUp = ({
|
|
|
7103
7105
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7104
7106
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M26.061 15.061a1.5 1.5 0 0 1-2.125 0L17.5 8.625V27a1.5 1.5 0 1 1-3 0V8.625l-6.439 6.436a1.503 1.503 0 1 1-2.125-2.125l9-9a1.5 1.5 0 0 1 2.125 0l9 9a1.5 1.5 0 0 1 0 2.125" }) });
|
|
7105
7107
|
};
|
|
7106
|
-
const ForwardRef$
|
|
7107
|
-
const ForwardRef$
|
|
7108
|
+
const ForwardRef$50 = forwardRef$1(SvgArrowUp);
|
|
7109
|
+
const ForwardRef$51 = ForwardRef$50;
|
|
7108
7110
|
const SvgArrowsCounterClockwise = ({
|
|
7109
7111
|
fill: fillProp = "currentColor",
|
|
7110
7112
|
stroke: strokeProp,
|
|
@@ -7143,8 +7145,8 @@ const SvgBold = ({
|
|
|
7143
7145
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7144
7146
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M22.135 14.308A6.001 6.001 0 0 0 17.5 4.5H9A1.5 1.5 0 0 0 7.5 6v19A1.5 1.5 0 0 0 9 26.5h10a6.5 6.5 0 0 0 3.135-12.192M10.5 7.5h7a3 3 0 0 1 0 6h-7zm8.5 16h-8.5v-7H19a3.5 3.5 0 1 1 0 7" }) });
|
|
7145
7147
|
};
|
|
7146
|
-
const ForwardRef$
|
|
7147
|
-
const ForwardRef$
|
|
7148
|
+
const ForwardRef$4W = forwardRef$1(SvgBold);
|
|
7149
|
+
const ForwardRef$4X = ForwardRef$4W;
|
|
7148
7150
|
const SvgBook = ({
|
|
7149
7151
|
fill: fillProp = "currentColor",
|
|
7150
7152
|
stroke: strokeProp,
|
|
@@ -7183,8 +7185,8 @@ const SvgBulletList = ({
|
|
|
7183
7185
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7184
7186
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M9.5 8A1.5 1.5 0 0 1 11 6.5h16a1.5 1.5 0 0 1 0 3H11A1.5 1.5 0 0 1 9.5 8M27 14.5H11a1.5 1.5 0 1 0 0 3h16a1.5 1.5 0 1 0 0-3m0 8H11a1.5 1.5 0 1 0 0 3h16a1.5 1.5 0 1 0 0-3M5.5 14a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0-8a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 16a2 2 0 1 0 0 4 2 2 0 0 0 0-4" }) });
|
|
7185
7187
|
};
|
|
7186
|
-
const ForwardRef$
|
|
7187
|
-
const ForwardRef$
|
|
7188
|
+
const ForwardRef$4Q = forwardRef$1(SvgBulletList);
|
|
7189
|
+
const ForwardRef$4R = ForwardRef$4Q;
|
|
7188
7190
|
const SvgCalendar = ({
|
|
7189
7191
|
fill: fillProp = "currentColor",
|
|
7190
7192
|
stroke: strokeProp,
|
|
@@ -7197,8 +7199,8 @@ const SvgCalendar = ({
|
|
|
7197
7199
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7198
7200
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M26 4h-3V3a1 1 0 0 0-2 0v1H11V3a1 1 0 0 0-2 0v1H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 6H6V6h3v1a1 1 0 0 0 2 0V6h10v1a1 1 0 0 0 2 0V6h3z" }) });
|
|
7199
7201
|
};
|
|
7200
|
-
const ForwardRef$
|
|
7201
|
-
const ForwardRef$
|
|
7202
|
+
const ForwardRef$4O = forwardRef$1(SvgCalendar);
|
|
7203
|
+
const ForwardRef$4P = ForwardRef$4O;
|
|
7202
7204
|
const SvgCar = ({
|
|
7203
7205
|
fill: fillProp = "currentColor",
|
|
7204
7206
|
stroke: strokeProp,
|
|
@@ -7224,8 +7226,8 @@ const SvgCaretDown = ({
|
|
|
7224
7226
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7225
7227
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m26.708 12.708-10 10a1 1 0 0 1-1.415 0l-10-10A1 1 0 0 1 6 11h20a1 1 0 0 1 .707 1.707" }) });
|
|
7226
7228
|
};
|
|
7227
|
-
const ForwardRef$
|
|
7228
|
-
const ForwardRef$
|
|
7229
|
+
const ForwardRef$4K = forwardRef$1(SvgCaretDown);
|
|
7230
|
+
const ForwardRef$4L = ForwardRef$4K;
|
|
7229
7231
|
const SvgCaretUp = ({
|
|
7230
7232
|
fill: fillProp = "currentColor",
|
|
7231
7233
|
stroke: strokeProp,
|
|
@@ -7316,8 +7318,8 @@ const SvgCheck = ({
|
|
|
7316
7318
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7317
7319
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m29.061 10.061-16 16a1.5 1.5 0 0 1-2.125 0l-7-7a1.504 1.504 0 0 1 2.125-2.125L12 22.875 26.939 7.939a1.502 1.502 0 1 1 2.125 2.125z" }) });
|
|
7318
7320
|
};
|
|
7319
|
-
const ForwardRef$
|
|
7320
|
-
const ForwardRef$
|
|
7321
|
+
const ForwardRef$4w = forwardRef$1(SvgCheck);
|
|
7322
|
+
const ForwardRef$4x = ForwardRef$4w;
|
|
7321
7323
|
const SvgCheckCircle = ({
|
|
7322
7324
|
fill: fillProp = "currentColor",
|
|
7323
7325
|
stroke: strokeProp,
|
|
@@ -7330,8 +7332,8 @@ const SvgCheckCircle = ({
|
|
|
7330
7332
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7331
7333
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M16 3a13 13 0 1 0 13 13A13.013 13.013 0 0 0 16 3m5.708 10.708-7 7a1 1 0 0 1-1.415 0l-3-3a1 1 0 0 1 1.415-1.415L14 18.586l6.293-6.293a1 1 0 0 1 1.415 1.415" }) });
|
|
7332
7334
|
};
|
|
7333
|
-
const ForwardRef$
|
|
7334
|
-
const ForwardRef$
|
|
7335
|
+
const ForwardRef$4u = forwardRef$1(SvgCheckCircle);
|
|
7336
|
+
const ForwardRef$4v = ForwardRef$4u;
|
|
7335
7337
|
const SvgChevronDown = ({
|
|
7336
7338
|
fill: fillProp = "currentColor",
|
|
7337
7339
|
stroke: strokeProp,
|
|
@@ -7357,8 +7359,8 @@ const SvgChevronLeft = ({
|
|
|
7357
7359
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7358
7360
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M21.061 24.939a1.503 1.503 0 0 1-2.125 2.125l-10-10a1.5 1.5 0 0 1 0-2.125l10-10a1.503 1.503 0 0 1 2.125 2.125L12.125 16z" }) });
|
|
7359
7361
|
};
|
|
7360
|
-
const ForwardRef$
|
|
7361
|
-
const ForwardRef$
|
|
7362
|
+
const ForwardRef$4q = forwardRef$1(SvgChevronLeft);
|
|
7363
|
+
const ForwardRef$4r = ForwardRef$4q;
|
|
7362
7364
|
const SvgChevronRight = ({
|
|
7363
7365
|
fill: fillProp = "currentColor",
|
|
7364
7366
|
stroke: strokeProp,
|
|
@@ -7371,8 +7373,8 @@ const SvgChevronRight = ({
|
|
|
7371
7373
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7372
7374
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m23.061 17.061-10 10a1.503 1.503 0 0 1-2.125-2.125L19.875 16l-8.936-8.939a1.502 1.502 0 1 1 2.125-2.125l10 10a1.5 1.5 0 0 1-.003 2.125" }) });
|
|
7373
7375
|
};
|
|
7374
|
-
const ForwardRef$
|
|
7375
|
-
const ForwardRef$
|
|
7376
|
+
const ForwardRef$4o = forwardRef$1(SvgChevronRight);
|
|
7377
|
+
const ForwardRef$4p = ForwardRef$4o;
|
|
7376
7378
|
const SvgChevronUp = ({
|
|
7377
7379
|
fill: fillProp = "currentColor",
|
|
7378
7380
|
stroke: strokeProp,
|
|
@@ -7398,8 +7400,8 @@ const SvgClock = ({
|
|
|
7398
7400
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7399
7401
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M16 3a13 13 0 1 0 13 13A13.013 13.013 0 0 0 16 3m7 14h-7a1 1 0 0 1-1-1V9a1 1 0 0 1 2 0v6h6a1 1 0 0 1 0 2" }) });
|
|
7400
7402
|
};
|
|
7401
|
-
const ForwardRef$
|
|
7402
|
-
const ForwardRef$
|
|
7403
|
+
const ForwardRef$4k = forwardRef$1(SvgClock);
|
|
7404
|
+
const ForwardRef$4l = ForwardRef$4k;
|
|
7403
7405
|
const SvgClockCounterClockwise = ({
|
|
7404
7406
|
fill: fillProp = "currentColor",
|
|
7405
7407
|
stroke: strokeProp,
|
|
@@ -7451,8 +7453,21 @@ const SvgCode = ({
|
|
|
7451
7453
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7452
7454
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M8.96 12.153 4.342 16l4.618 3.848a1.5 1.5 0 1 1-1.92 2.305l-6-5a1.5 1.5 0 0 1 0-2.305l6-5a1.5 1.5 0 0 1 1.92 2.304m22 2.694-6-5a1.5 1.5 0 1 0-1.92 2.306L27.658 16l-4.618 3.848a1.5 1.5 0 1 0 1.92 2.305l6-5a1.5 1.5 0 0 0 0-2.305M20.512 3.59a1.5 1.5 0 0 0-1.922.898l-8 22a1.5 1.5 0 0 0 2.82 1.024l8-22a1.5 1.5 0 0 0-.898-1.922" }) });
|
|
7453
7455
|
};
|
|
7454
|
-
const ForwardRef$
|
|
7455
|
-
const ForwardRef$
|
|
7456
|
+
const ForwardRef$4c = forwardRef$1(SvgCode);
|
|
7457
|
+
const ForwardRef$4d = ForwardRef$4c;
|
|
7458
|
+
const SvgCodeBlock = ({
|
|
7459
|
+
fill: fillProp = "currentColor",
|
|
7460
|
+
stroke: strokeProp,
|
|
7461
|
+
...props
|
|
7462
|
+
}, ref) => {
|
|
7463
|
+
const {
|
|
7464
|
+
colors
|
|
7465
|
+
} = useTheme();
|
|
7466
|
+
const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
|
|
7467
|
+
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7468
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M200 40h-32a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v80a16 16 0 0 0 16 16h8v64a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m-93.66 21.66a8 8 0 0 1 11.32-11.32l24 24a8 8 0 0 1 0 11.32l-24 24a8 8 0 0 1-11.32-11.32L124.69 80Zm-64 24a8 8 0 0 1 0-11.32l24-24a8 8 0 0 1 11.32 11.32L59.31 80l18.35 18.34a8 8 0 0 1-11.32 11.32ZM200 200H56v-64h96a16 16 0 0 0 16-16V56h32Z" }) });
|
|
7469
|
+
};
|
|
7470
|
+
forwardRef$1(SvgCodeBlock);
|
|
7456
7471
|
const SvgCoffee = ({
|
|
7457
7472
|
fill: fillProp = "currentColor",
|
|
7458
7473
|
stroke: strokeProp,
|
|
@@ -7491,8 +7506,8 @@ const SvgCollapse = ({
|
|
|
7491
7506
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7492
7507
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M18.5 12V6a1.5 1.5 0 1 1 3 0v4.5H26a1.5 1.5 0 1 1 0 3h-6a1.5 1.5 0 0 1-1.5-1.5M12 18.5H6a1.5 1.5 0 1 0 0 3h4.5V26a1.5 1.5 0 1 0 3 0v-6a1.5 1.5 0 0 0-1.5-1.5m14 0h-6a1.5 1.5 0 0 0-1.5 1.5v6a1.5 1.5 0 1 0 3 0v-4.5H26a1.5 1.5 0 1 0 0-3m-14-14A1.5 1.5 0 0 0 10.5 6v4.5H6a1.5 1.5 0 1 0 0 3h6a1.5 1.5 0 0 0 1.5-1.5V6A1.5 1.5 0 0 0 12 4.5" }) });
|
|
7493
7508
|
};
|
|
7494
|
-
const ForwardRef$
|
|
7495
|
-
const ForwardRef$
|
|
7509
|
+
const ForwardRef$44 = forwardRef$1(SvgCollapse);
|
|
7510
|
+
const ForwardRef$45 = ForwardRef$44;
|
|
7496
7511
|
const SvgCommand = ({
|
|
7497
7512
|
fill: fillProp = "currentColor",
|
|
7498
7513
|
stroke: strokeProp,
|
|
@@ -7531,8 +7546,8 @@ const SvgCross = ({
|
|
|
7531
7546
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7532
7547
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M26.061 23.939a1.503 1.503 0 0 1-2.125 2.125L16 18.125l-7.939 7.936a1.503 1.503 0 1 1-2.125-2.125L13.875 16 5.939 8.061a1.503 1.503 0 1 1 2.125-2.125L16 13.875l7.939-7.94a1.502 1.502 0 1 1 2.125 2.125L18.125 16z" }) });
|
|
7533
7548
|
};
|
|
7534
|
-
const ForwardRef$
|
|
7535
|
-
const ForwardRef$
|
|
7549
|
+
const ForwardRef$3_ = forwardRef$1(SvgCross);
|
|
7550
|
+
const ForwardRef$3$ = ForwardRef$3_;
|
|
7536
7551
|
const SvgCrossCircle = ({
|
|
7537
7552
|
fill: fillProp = "currentColor",
|
|
7538
7553
|
stroke: strokeProp,
|
|
@@ -7704,8 +7719,8 @@ const SvgExpand = ({
|
|
|
7704
7719
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7705
7720
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M27.5 6v5a1.5 1.5 0 1 1-3 0V7.5H21a1.5 1.5 0 0 1 0-3h5A1.5 1.5 0 0 1 27.5 6M11 24.5H7.5V21a1.5 1.5 0 0 0-3 0v5A1.5 1.5 0 0 0 6 27.5h5a1.5 1.5 0 1 0 0-3m15-5a1.5 1.5 0 0 0-1.5 1.5v3.5H21a1.5 1.5 0 1 0 0 3h5a1.5 1.5 0 0 0 1.5-1.5v-5a1.5 1.5 0 0 0-1.5-1.5m-15-15H6A1.5 1.5 0 0 0 4.5 6v5a1.5 1.5 0 0 0 3 0V7.5H11a1.5 1.5 0 0 0 0-3" }) });
|
|
7706
7721
|
};
|
|
7707
|
-
const ForwardRef$
|
|
7708
|
-
const ForwardRef$
|
|
7722
|
+
const ForwardRef$3A = forwardRef$1(SvgExpand);
|
|
7723
|
+
const ForwardRef$3B = ForwardRef$3A;
|
|
7709
7724
|
const SvgExternalLink = ({
|
|
7710
7725
|
fill: fillProp = "currentColor",
|
|
7711
7726
|
stroke: strokeProp,
|
|
@@ -7718,8 +7733,8 @@ const SvgExternalLink = ({
|
|
|
7718
7733
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7719
7734
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M28.5 13a1.5 1.5 0 1 1-3 0V8.625l-7.439 7.439a1.503 1.503 0 1 1-2.125-2.125L23.375 6.5H19a1.5 1.5 0 0 1 0-3h8A1.5 1.5 0 0 1 28.5 5zM23 16a1.5 1.5 0 0 0-1.5 1.5v8h-15v-15h8a1.5 1.5 0 1 0 0-3H6A2.5 2.5 0 0 0 3.5 10v16A2.5 2.5 0 0 0 6 28.5h16a2.5 2.5 0 0 0 2.5-2.5v-8.5A1.5 1.5 0 0 0 23 16" }) });
|
|
7720
7735
|
};
|
|
7721
|
-
const ForwardRef$
|
|
7722
|
-
const ForwardRef$
|
|
7736
|
+
const ForwardRef$3y = forwardRef$1(SvgExternalLink);
|
|
7737
|
+
const ForwardRef$3z = ForwardRef$3y;
|
|
7723
7738
|
const SvgEye = ({
|
|
7724
7739
|
fill: fillProp = "currentColor",
|
|
7725
7740
|
stroke: strokeProp,
|
|
@@ -7732,8 +7747,8 @@ const SvgEye = ({
|
|
|
7732
7747
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7733
7748
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M30.914 15.595c-.044-.099-1.103-2.447-3.457-4.801C24.322 7.657 20.36 6 16 6S7.679 7.657 4.542 10.794C2.19 13.148 1.125 15.5 1.086 15.595a1 1 0 0 0 0 .812c.044.1 1.103 2.447 3.456 4.8C7.68 24.344 11.64 26 16 26s8.321-1.657 11.458-4.792c2.353-2.354 3.412-4.702 3.456-4.8a1 1 0 0 0 0-.813M16 21a5 5 0 1 1 0-10 5 5 0 0 1 0 10" }) });
|
|
7734
7749
|
};
|
|
7735
|
-
const ForwardRef$
|
|
7736
|
-
const ForwardRef$
|
|
7750
|
+
const ForwardRef$3w = forwardRef$1(SvgEye);
|
|
7751
|
+
const ForwardRef$3x = ForwardRef$3w;
|
|
7737
7752
|
const SvgEyeStriked = ({
|
|
7738
7753
|
fill: fillProp = "currentColor",
|
|
7739
7754
|
stroke: strokeProp,
|
|
@@ -7786,6 +7801,19 @@ const SvgFile = ({
|
|
|
7786
7801
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m26.708 10.293-7-7A1 1 0 0 0 19 3H7a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V11a1 1 0 0 0-.293-.707M19 11V5.5l5.5 5.5z" }) });
|
|
7787
7802
|
};
|
|
7788
7803
|
forwardRef$1(SvgFile);
|
|
7804
|
+
const SvgFileCsv = ({
|
|
7805
|
+
fill: fillProp = "currentColor",
|
|
7806
|
+
stroke: strokeProp,
|
|
7807
|
+
...props
|
|
7808
|
+
}, ref) => {
|
|
7809
|
+
const {
|
|
7810
|
+
colors
|
|
7811
|
+
} = useTheme();
|
|
7812
|
+
const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
|
|
7813
|
+
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7814
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m213.66 82.34-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v76a4 4 0 0 0 4 4h168a4 4 0 0 0 4-4V88a8 8 0 0 0-2.34-5.66M152 88V44l44 44ZM48 180c0 11 7.18 20 16 20a14.18 14.18 0 0 0 10.06-4.5 8.21 8.21 0 0 1 10.9-.91 8 8 0 0 1 .82 11.81A30.06 30.06 0 0 1 64 216c-17.64 0-32-16.15-32-36s14.36-36 32-36a30 30 0 0 1 21.39 9.19 8.26 8.26 0 0 1 .73 11.09 8 8 0 0 1-11.9.38A14.17 14.17 0 0 0 64 160c-8.82 0-16 9-16 20m103.81 16.31a20.82 20.82 0 0 1-9.19 15.23C137.43 215 131 216 125.13 216a61.1 61.1 0 0 1-15.13-2 8 8 0 1 1 4.3-15.41c4.38 1.2 14.95 2.7 19.55-.36.88-.59 1.83-1.52 2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56 20.56 0 0 1 9-14.95c11.84-8 30.71-3.31 32.83-2.76a8 8 0 0 1-4.07 15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54 4.54 0 0 0-2 3.67c-.12.9-.14 1.09 1.11 1.9 2.31 1.49 6.45 2.68 10.45 3.84 9.79 2.83 26.35 7.66 24.11 24.97M215.42 155l-19.89 55.68a8 8 0 0 1-15.06 0L160.58 155a8.21 8.21 0 0 1 4.5-10.45 8 8 0 0 1 10.45 4.76l12.47 34.9 12.47-34.9a8 8 0 0 1 10.45-4.76 8.23 8.23 0 0 1 4.5 10.45" }) });
|
|
7815
|
+
};
|
|
7816
|
+
forwardRef$1(SvgFileCsv);
|
|
7789
7817
|
const SvgFileError = ({
|
|
7790
7818
|
fill: fillProp = "currentColor",
|
|
7791
7819
|
stroke: strokeProp,
|
|
@@ -7812,6 +7840,32 @@ const SvgFilePdf = ({
|
|
|
7812
7840
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M6 15h20a1 1 0 0 0 1-1v-3a1 1 0 0 0-.293-.707l-7-7A1 1 0 0 0 19 3H7a2 2 0 0 0-2 2v9a1 1 0 0 0 1 1m13-9.5 5.5 5.5H19zM28 19a1 1 0 0 1-1 1h-3v2h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0v-7a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1M8 18H6a1 1 0 0 0-1 1v7a1 1 0 1 0 2 0v-1h1a3.5 3.5 0 1 0 0-7m0 5H7v-3h1a1.5 1.5 0 1 1 0 3m8-5h-2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h2a4.5 4.5 0 1 0 0-9m0 7h-1v-5h1a2.5 2.5 0 0 1 0 5" }) });
|
|
7813
7841
|
};
|
|
7814
7842
|
forwardRef$1(SvgFilePdf);
|
|
7843
|
+
const SvgFileXls = ({
|
|
7844
|
+
fill: fillProp = "currentColor",
|
|
7845
|
+
stroke: strokeProp,
|
|
7846
|
+
...props
|
|
7847
|
+
}, ref) => {
|
|
7848
|
+
const {
|
|
7849
|
+
colors
|
|
7850
|
+
} = useTheme();
|
|
7851
|
+
const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
|
|
7852
|
+
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7853
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M44 120h168a4 4 0 0 0 4-4V88a8 8 0 0 0-2.34-5.66l-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v76a4 4 0 0 0 4 4m108-76 44 44h-44Zm4 164.53a8.18 8.18 0 0 1-8.25 7.47H120a8 8 0 0 1-8-8v-55.73a8.18 8.18 0 0 1 7.47-8.25 8 8 0 0 1 8.53 8v48h20a8 8 0 0 1 8 8.51m-61.49-51.88L77.83 180l16.68 23.35a8 8 0 0 1-13 9.3L68 193.76l-13.49 18.89a8 8 0 1 1-13-9.3L58.17 180l-16.68-23.35a8 8 0 0 1 2.3-11.46 8.19 8.19 0 0 1 10.88 2.38L68 166.24l13.49-18.89a8 8 0 0 1 13 9.3Zm121.28 39.66a20.81 20.81 0 0 1-9.18 15.23c-5.19 3.46-11.67 4.46-17.49 4.46a60.6 60.6 0 0 1-15.19-2 8 8 0 0 1 4.31-15.41c4.38 1.21 14.94 2.71 19.54-.35.89-.6 1.84-1.52 2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58 20.58 0 0 1 8.95-14.94c11.84-8 30.72-3.31 32.83-2.76a8 8 0 0 1-4.07 15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54 4.54 0 0 0-2 3.67c-.11.9-.13 1.08 1.12 1.9 2.31 1.49 6.45 2.68 10.45 3.84 9.87 2.82 26.39 7.65 24.18 24.96" }) });
|
|
7854
|
+
};
|
|
7855
|
+
forwardRef$1(SvgFileXls);
|
|
7856
|
+
const SvgFileZip = ({
|
|
7857
|
+
fill: fillProp = "currentColor",
|
|
7858
|
+
stroke: strokeProp,
|
|
7859
|
+
...props
|
|
7860
|
+
}, ref) => {
|
|
7861
|
+
const {
|
|
7862
|
+
colors
|
|
7863
|
+
} = useTheme();
|
|
7864
|
+
const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
|
|
7865
|
+
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7866
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M184 144h-16a8 8 0 0 0-8 8v55.73a8.17 8.17 0 0 0 7.47 8.25 8 8 0 0 0 8.53-8v-8h7.4c15.24 0 28.14-11.92 28.59-27.15A28 28 0 0 0 184 144m-.35 40H176v-24h8a12 12 0 0 1 12 13.16A12.25 12.25 0 0 1 183.65 184M136 152v55.73a8.17 8.17 0 0 1-7.47 8.25 8 8 0 0 1-8.53-8v-55.71a8.17 8.17 0 0 1 7.47-8.25A8 8 0 0 1 136 152m-40 56.53a8.17 8.17 0 0 1-8.27 7.47h-31.5a8.27 8.27 0 0 1-6-2.5 8 8 0 0 1-1.18-9.5l25.16-44H56.27a8.17 8.17 0 0 1-8.27-7.47 8 8 0 0 1 8-8.53h31.77a8.27 8.27 0 0 1 6 2.5A8 8 0 0 1 95 156l-25.21 44H88a8 8 0 0 1 8 8.53M213.66 82.34l-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v76a4 4 0 0 0 4 4h168a4 4 0 0 0 4-4V88a8 8 0 0 0-2.34-5.66M152 88V44l44 44Z" }) });
|
|
7867
|
+
};
|
|
7868
|
+
forwardRef$1(SvgFileZip);
|
|
7815
7869
|
const SvgFilter = ({
|
|
7816
7870
|
fill: fillProp = "currentColor",
|
|
7817
7871
|
stroke: strokeProp,
|
|
@@ -9609,9 +9663,9 @@ var handleScroll$1 = function(axis, endTarget, event, sourceDelta, noOverscroll)
|
|
|
9609
9663
|
!targetInLock && target !== document.body || // self content
|
|
9610
9664
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
9611
9665
|
);
|
|
9612
|
-
if (isDeltaPositive && (availableScroll === 0 ||
|
|
9666
|
+
if (isDeltaPositive && (availableScroll === 0 || false)) {
|
|
9613
9667
|
shouldCancelScroll = true;
|
|
9614
|
-
} else if (!isDeltaPositive && (availableScrollTop === 0 ||
|
|
9668
|
+
} else if (!isDeltaPositive && (availableScrollTop === 0 || false)) {
|
|
9615
9669
|
shouldCancelScroll = true;
|
|
9616
9670
|
}
|
|
9617
9671
|
return shouldCancelScroll;
|
|
@@ -9695,7 +9749,7 @@ function RemoveScrollSideCar$1(props) {
|
|
|
9695
9749
|
return true;
|
|
9696
9750
|
}
|
|
9697
9751
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
9698
|
-
return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY
|
|
9752
|
+
return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
9699
9753
|
}, []);
|
|
9700
9754
|
var shouldPrevent = React.useCallback(function(_event) {
|
|
9701
9755
|
var event = _event;
|
|
@@ -12785,9 +12839,9 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
12785
12839
|
!targetInLock && target !== document.body || // self content
|
|
12786
12840
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
12787
12841
|
);
|
|
12788
|
-
if (isDeltaPositive && (Math.abs(availableScroll) < 1 ||
|
|
12842
|
+
if (isDeltaPositive && (Math.abs(availableScroll) < 1 || false)) {
|
|
12789
12843
|
shouldCancelScroll = true;
|
|
12790
|
-
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 ||
|
|
12844
|
+
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || false)) {
|
|
12791
12845
|
shouldCancelScroll = true;
|
|
12792
12846
|
}
|
|
12793
12847
|
return shouldCancelScroll;
|
|
@@ -12869,7 +12923,7 @@ function RemoveScrollSideCar(props) {
|
|
|
12869
12923
|
return true;
|
|
12870
12924
|
}
|
|
12871
12925
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
12872
|
-
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY
|
|
12926
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
12873
12927
|
}, []);
|
|
12874
12928
|
var shouldPrevent = React.useCallback(function(_event) {
|
|
12875
12929
|
var event = _event;
|
|
@@ -16512,11 +16566,11 @@ class HighlightBuilder {
|
|
|
16512
16566
|
for (let i = 0, pos = start; ; i++) {
|
|
16513
16567
|
let next = i < mounted.overlay.length ? mounted.overlay[i] : null;
|
|
16514
16568
|
let nextPos = next ? next.from + start : end;
|
|
16515
|
-
let
|
|
16516
|
-
if (
|
|
16517
|
-
while (cursor2.from <
|
|
16518
|
-
this.highlightRange(cursor2,
|
|
16519
|
-
this.startSpan(Math.min(
|
|
16569
|
+
let rangeFrom2 = Math.max(from, pos), rangeTo2 = Math.min(to, nextPos);
|
|
16570
|
+
if (rangeFrom2 < rangeTo2 && hasChild2) {
|
|
16571
|
+
while (cursor2.from < rangeTo2) {
|
|
16572
|
+
this.highlightRange(cursor2, rangeFrom2, rangeTo2, inheritedClass, highlighters);
|
|
16573
|
+
this.startSpan(Math.min(rangeTo2, cursor2.to), cls);
|
|
16520
16574
|
if (cursor2.to >= nextPos || !cursor2.nextSibling())
|
|
16521
16575
|
break;
|
|
16522
16576
|
}
|
|
@@ -16963,30 +17017,101 @@ const jsonHighlighting = styleTags({
|
|
|
16963
17017
|
"True False": tags.bool,
|
|
16964
17018
|
PropertyName: tags.propertyName,
|
|
16965
17019
|
Null: tags.null,
|
|
16966
|
-
",": tags.separator,
|
|
17020
|
+
", :": tags.separator,
|
|
16967
17021
|
"[ ]": tags.squareBracket,
|
|
16968
17022
|
"{ }": tags.brace
|
|
16969
17023
|
});
|
|
16970
17024
|
const parser = LRParser.deserialize({
|
|
16971
17025
|
version: 14,
|
|
16972
|
-
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#
|
|
16973
|
-
stateData: "#O~
|
|
16974
|
-
goto: "!
|
|
16975
|
-
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
|
|
17026
|
+
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
|
|
17027
|
+
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
|
|
17028
|
+
goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
|
17029
|
+
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
|
|
16976
17030
|
maxTerm: 25,
|
|
16977
17031
|
nodeProps: [
|
|
16978
17032
|
["isolate", -2, 6, 11, ""],
|
|
16979
|
-
["openedBy", 7, "{",
|
|
16980
|
-
["closedBy", 8, "}",
|
|
17033
|
+
["openedBy", 7, "{", 14, "["],
|
|
17034
|
+
["closedBy", 8, "}", 15, "]"]
|
|
16981
17035
|
],
|
|
16982
17036
|
propSources: [jsonHighlighting],
|
|
16983
17037
|
skippedNodes: [0],
|
|
16984
17038
|
repeatNodeCount: 2,
|
|
16985
|
-
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]
|
|
17039
|
+
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
|
|
16986
17040
|
tokenizers: [0],
|
|
16987
17041
|
topRules: { "JsonText": [0, 1] },
|
|
16988
17042
|
tokenPrec: 0
|
|
16989
17043
|
});
|
|
17044
|
+
let rangeFrom = [], rangeTo = [];
|
|
17045
|
+
(() => {
|
|
17046
|
+
let numbers = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((s2) => s2 ? parseInt(s2, 36) : 1);
|
|
17047
|
+
for (let i = 0, n2 = 0; i < numbers.length; i++)
|
|
17048
|
+
(i % 2 ? rangeTo : rangeFrom).push(n2 = n2 + numbers[i]);
|
|
17049
|
+
})();
|
|
17050
|
+
function isExtendingChar(code) {
|
|
17051
|
+
if (code < 768) return false;
|
|
17052
|
+
for (let from = 0, to = rangeFrom.length; ; ) {
|
|
17053
|
+
let mid = from + to >> 1;
|
|
17054
|
+
if (code < rangeFrom[mid]) to = mid;
|
|
17055
|
+
else if (code >= rangeTo[mid]) from = mid + 1;
|
|
17056
|
+
else return true;
|
|
17057
|
+
if (from == to) return false;
|
|
17058
|
+
}
|
|
17059
|
+
}
|
|
17060
|
+
function isRegionalIndicator(code) {
|
|
17061
|
+
return code >= 127462 && code <= 127487;
|
|
17062
|
+
}
|
|
17063
|
+
const ZWJ = 8205;
|
|
17064
|
+
function findClusterBreak$1(str, pos, forward = true, includeExtending = true) {
|
|
17065
|
+
return (forward ? nextClusterBreak : prevClusterBreak)(str, pos, includeExtending);
|
|
17066
|
+
}
|
|
17067
|
+
function nextClusterBreak(str, pos, includeExtending) {
|
|
17068
|
+
if (pos == str.length) return pos;
|
|
17069
|
+
if (pos && surrogateLow$1(str.charCodeAt(pos)) && surrogateHigh$1(str.charCodeAt(pos - 1))) pos--;
|
|
17070
|
+
let prev = codePointAt$1(str, pos);
|
|
17071
|
+
pos += codePointSize$1(prev);
|
|
17072
|
+
while (pos < str.length) {
|
|
17073
|
+
let next = codePointAt$1(str, pos);
|
|
17074
|
+
if (prev == ZWJ || next == ZWJ || includeExtending && isExtendingChar(next)) {
|
|
17075
|
+
pos += codePointSize$1(next);
|
|
17076
|
+
prev = next;
|
|
17077
|
+
} else if (isRegionalIndicator(next)) {
|
|
17078
|
+
let countBefore = 0, i = pos - 2;
|
|
17079
|
+
while (i >= 0 && isRegionalIndicator(codePointAt$1(str, i))) {
|
|
17080
|
+
countBefore++;
|
|
17081
|
+
i -= 2;
|
|
17082
|
+
}
|
|
17083
|
+
if (countBefore % 2 == 0) break;
|
|
17084
|
+
else pos += 2;
|
|
17085
|
+
} else {
|
|
17086
|
+
break;
|
|
17087
|
+
}
|
|
17088
|
+
}
|
|
17089
|
+
return pos;
|
|
17090
|
+
}
|
|
17091
|
+
function prevClusterBreak(str, pos, includeExtending) {
|
|
17092
|
+
while (pos > 0) {
|
|
17093
|
+
let found = nextClusterBreak(str, pos - 2, includeExtending);
|
|
17094
|
+
if (found < pos) return found;
|
|
17095
|
+
pos--;
|
|
17096
|
+
}
|
|
17097
|
+
return 0;
|
|
17098
|
+
}
|
|
17099
|
+
function codePointAt$1(str, pos) {
|
|
17100
|
+
let code0 = str.charCodeAt(pos);
|
|
17101
|
+
if (!surrogateHigh$1(code0) || pos + 1 == str.length) return code0;
|
|
17102
|
+
let code1 = str.charCodeAt(pos + 1);
|
|
17103
|
+
if (!surrogateLow$1(code1)) return code0;
|
|
17104
|
+
return (code0 - 55296 << 10) + (code1 - 56320) + 65536;
|
|
17105
|
+
}
|
|
17106
|
+
function surrogateLow$1(ch) {
|
|
17107
|
+
return ch >= 56320 && ch < 57344;
|
|
17108
|
+
}
|
|
17109
|
+
function surrogateHigh$1(ch) {
|
|
17110
|
+
return ch >= 55296 && ch < 56320;
|
|
17111
|
+
}
|
|
17112
|
+
function codePointSize$1(code) {
|
|
17113
|
+
return code < 65536 ? 1 : 2;
|
|
17114
|
+
}
|
|
16990
17115
|
class Text {
|
|
16991
17116
|
/**
|
|
16992
17117
|
Get the line description around the given position.
|
|
@@ -17537,58 +17662,8 @@ function clip(text, from, to) {
|
|
|
17537
17662
|
from = Math.max(0, Math.min(text.length, from));
|
|
17538
17663
|
return [from, Math.max(from, Math.min(text.length, to))];
|
|
17539
17664
|
}
|
|
17540
|
-
let extend = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((s2) => s2 ? parseInt(s2, 36) : 1);
|
|
17541
|
-
for (let i = 1; i < extend.length; i++)
|
|
17542
|
-
extend[i] += extend[i - 1];
|
|
17543
|
-
function isExtendingChar(code) {
|
|
17544
|
-
for (let i = 1; i < extend.length; i += 2)
|
|
17545
|
-
if (extend[i] > code)
|
|
17546
|
-
return extend[i - 1] <= code;
|
|
17547
|
-
return false;
|
|
17548
|
-
}
|
|
17549
|
-
function isRegionalIndicator(code) {
|
|
17550
|
-
return code >= 127462 && code <= 127487;
|
|
17551
|
-
}
|
|
17552
|
-
const ZWJ = 8205;
|
|
17553
17665
|
function findClusterBreak(str, pos, forward = true, includeExtending = true) {
|
|
17554
|
-
return (
|
|
17555
|
-
}
|
|
17556
|
-
function nextClusterBreak(str, pos, includeExtending) {
|
|
17557
|
-
if (pos == str.length)
|
|
17558
|
-
return pos;
|
|
17559
|
-
if (pos && surrogateLow(str.charCodeAt(pos)) && surrogateHigh(str.charCodeAt(pos - 1)))
|
|
17560
|
-
pos--;
|
|
17561
|
-
let prev = codePointAt(str, pos);
|
|
17562
|
-
pos += codePointSize(prev);
|
|
17563
|
-
while (pos < str.length) {
|
|
17564
|
-
let next = codePointAt(str, pos);
|
|
17565
|
-
if (prev == ZWJ || next == ZWJ || includeExtending && isExtendingChar(next)) {
|
|
17566
|
-
pos += codePointSize(next);
|
|
17567
|
-
prev = next;
|
|
17568
|
-
} else if (isRegionalIndicator(next)) {
|
|
17569
|
-
let countBefore = 0, i = pos - 2;
|
|
17570
|
-
while (i >= 0 && isRegionalIndicator(codePointAt(str, i))) {
|
|
17571
|
-
countBefore++;
|
|
17572
|
-
i -= 2;
|
|
17573
|
-
}
|
|
17574
|
-
if (countBefore % 2 == 0)
|
|
17575
|
-
break;
|
|
17576
|
-
else
|
|
17577
|
-
pos += 2;
|
|
17578
|
-
} else {
|
|
17579
|
-
break;
|
|
17580
|
-
}
|
|
17581
|
-
}
|
|
17582
|
-
return pos;
|
|
17583
|
-
}
|
|
17584
|
-
function prevClusterBreak(str, pos, includeExtending) {
|
|
17585
|
-
while (pos > 0) {
|
|
17586
|
-
let found = nextClusterBreak(str, pos - 2, includeExtending);
|
|
17587
|
-
if (found < pos)
|
|
17588
|
-
return found;
|
|
17589
|
-
pos--;
|
|
17590
|
-
}
|
|
17591
|
-
return 0;
|
|
17666
|
+
return findClusterBreak$1(str, pos, forward, includeExtending);
|
|
17592
17667
|
}
|
|
17593
17668
|
function surrogateLow(ch) {
|
|
17594
17669
|
return ch >= 56320 && ch < 57344;
|
|
@@ -17718,7 +17793,7 @@ class ChangeDesc {
|
|
|
17718
17793
|
Map this description, which should start with the same document
|
|
17719
17794
|
as `other`, over another set of changes, so that it can be
|
|
17720
17795
|
applied after it. When `before` is true, map as if the changes
|
|
17721
|
-
in `
|
|
17796
|
+
in `this` happened before the ones in `other`.
|
|
17722
17797
|
*/
|
|
17723
17798
|
mapDesc(other, before = false) {
|
|
17724
17799
|
return other.empty ? this : mapSet(this, other, before);
|
|
@@ -18019,7 +18094,7 @@ function addSection(sections, len, ins, forceJoin = false) {
|
|
|
18019
18094
|
let last = sections.length - 2;
|
|
18020
18095
|
if (last >= 0 && ins <= 0 && ins == sections[last + 1])
|
|
18021
18096
|
sections[last] += len;
|
|
18022
|
-
else if (len == 0 && sections[last] == 0)
|
|
18097
|
+
else if (last >= 0 && len == 0 && sections[last] == 0)
|
|
18023
18098
|
sections[last + 1] += ins;
|
|
18024
18099
|
else if (forceJoin) {
|
|
18025
18100
|
sections[last] += len;
|
|
@@ -18068,7 +18143,9 @@ function mapSet(setA, setB, before, mkSet = false) {
|
|
|
18068
18143
|
let sections = [], insert2 = mkSet ? [] : null;
|
|
18069
18144
|
let a2 = new SectionIter(setA), b2 = new SectionIter(setB);
|
|
18070
18145
|
for (let inserted = -1; ; ) {
|
|
18071
|
-
if (a2.
|
|
18146
|
+
if (a2.done && b2.len || b2.done && a2.len) {
|
|
18147
|
+
throw new Error("Mismatched change set lengths");
|
|
18148
|
+
} else if (a2.ins == -1 && b2.ins == -1) {
|
|
18072
18149
|
let len = Math.min(a2.len, b2.len);
|
|
18073
18150
|
addSection(sections, len, -1);
|
|
18074
18151
|
a2.forward(len);
|
|
@@ -20299,7 +20376,7 @@ function compare(a2, startA, b2, startB, length, comparator) {
|
|
|
20299
20376
|
let endB = startB + length;
|
|
20300
20377
|
let pos = startB, dPos = startB - startA;
|
|
20301
20378
|
for (; ; ) {
|
|
20302
|
-
let
|
|
20379
|
+
let dEnd = a2.to + dPos - b2.to, diff = dEnd || a2.endSide - b2.endSide;
|
|
20303
20380
|
let end = diff < 0 ? a2.to + dPos : b2.to, clipEnd = Math.min(end, endB);
|
|
20304
20381
|
if (a2.point || b2.point) {
|
|
20305
20382
|
if (!(a2.point && b2.point && (a2.point == b2.point || a2.point.eq(b2.point)) && sameValues(a2.activeForPoint(a2.to), b2.activeForPoint(b2.to))))
|
|
@@ -20310,6 +20387,8 @@ function compare(a2, startA, b2, startB, length, comparator) {
|
|
|
20310
20387
|
}
|
|
20311
20388
|
if (end > endB)
|
|
20312
20389
|
break;
|
|
20390
|
+
if ((dEnd || a2.openEnd != b2.openEnd) && comparator.boundChange)
|
|
20391
|
+
comparator.boundChange(end);
|
|
20313
20392
|
pos = end;
|
|
20314
20393
|
if (diff <= 0)
|
|
20315
20394
|
a2.next();
|
|
@@ -20998,7 +21077,7 @@ class ContentView {
|
|
|
20998
21077
|
child.reuseDOM(next);
|
|
20999
21078
|
}
|
|
21000
21079
|
child.sync(view, track);
|
|
21001
|
-
child.flags &=
|
|
21080
|
+
child.flags &= -8;
|
|
21002
21081
|
}
|
|
21003
21082
|
next = prev ? prev.nextSibling : parent.firstChild;
|
|
21004
21083
|
if (track && !track.written && track.node == parent && next != child.dom)
|
|
@@ -21020,7 +21099,7 @@ class ContentView {
|
|
|
21020
21099
|
for (let child of this.children)
|
|
21021
21100
|
if (child.flags & 7) {
|
|
21022
21101
|
child.sync(view, track);
|
|
21023
|
-
child.flags &=
|
|
21102
|
+
child.flags &= -8;
|
|
21024
21103
|
}
|
|
21025
21104
|
}
|
|
21026
21105
|
}
|
|
@@ -23044,6 +23123,15 @@ class ViewUpdate {
|
|
|
23044
23123
|
return (this.flags & 4) > 0;
|
|
23045
23124
|
}
|
|
23046
23125
|
/**
|
|
23126
|
+
Returns true when
|
|
23127
|
+
[`viewportChanged`](https://codemirror.net/6/docs/ref/#view.ViewUpdate.viewportChanged) is true
|
|
23128
|
+
and the viewport change is not just the result of mapping it in
|
|
23129
|
+
response to document changes.
|
|
23130
|
+
*/
|
|
23131
|
+
get viewportMoved() {
|
|
23132
|
+
return (this.flags & 8) > 0;
|
|
23133
|
+
}
|
|
23134
|
+
/**
|
|
23047
23135
|
Indicates whether the height of a block element in the editor
|
|
23048
23136
|
changed in this update.
|
|
23049
23137
|
*/
|
|
@@ -23055,7 +23143,7 @@ class ViewUpdate {
|
|
|
23055
23143
|
editor, or elements within the editor, changed.
|
|
23056
23144
|
*/
|
|
23057
23145
|
get geometryChanged() {
|
|
23058
|
-
return this.docChanged || (this.flags & (
|
|
23146
|
+
return this.docChanged || (this.flags & (16 | 2)) > 0;
|
|
23059
23147
|
}
|
|
23060
23148
|
/**
|
|
23061
23149
|
True when this update indicates a focus change.
|
|
@@ -23162,13 +23250,13 @@ class DocView extends ContentView {
|
|
|
23162
23250
|
this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
|
|
23163
23251
|
let track = browser.chrome || browser.ios ? { node: observer.selectionRange.focusNode, written: false } : void 0;
|
|
23164
23252
|
this.sync(this.view, track);
|
|
23165
|
-
this.flags &=
|
|
23253
|
+
this.flags &= -8;
|
|
23166
23254
|
if (track && (track.written || observer.selectionRange.focusNode != track.node))
|
|
23167
23255
|
this.forceSelection = true;
|
|
23168
23256
|
this.dom.style.height = "";
|
|
23169
23257
|
});
|
|
23170
23258
|
this.markedForComposition.forEach(
|
|
23171
|
-
(cView) => cView.flags &=
|
|
23259
|
+
(cView) => cView.flags &= -9
|
|
23172
23260
|
/* ViewFlag.Composition */
|
|
23173
23261
|
);
|
|
23174
23262
|
let gaps = [];
|
|
@@ -23257,7 +23345,7 @@ class DocView extends ContentView {
|
|
|
23257
23345
|
if (mustRead || !this.view.observer.selectionRange.focusNode)
|
|
23258
23346
|
this.view.observer.readSelectionRange();
|
|
23259
23347
|
let activeElt = this.view.root.activeElement, focused = activeElt == this.dom;
|
|
23260
|
-
let selectionNotFocus = !focused && hasSelection(this.dom, this.view.observer.selectionRange) && !(activeElt && this.dom.contains(activeElt));
|
|
23348
|
+
let selectionNotFocus = !focused && !(this.view.state.facet(editable) || this.dom.tabIndex > -1) && hasSelection(this.dom, this.view.observer.selectionRange) && !(activeElt && this.dom.contains(activeElt));
|
|
23261
23349
|
if (!(focused || fromPointer || selectionNotFocus))
|
|
23262
23350
|
return;
|
|
23263
23351
|
let force = this.forceSelection;
|
|
@@ -23655,6 +23743,9 @@ let DecorationComparator$1 = class DecorationComparator {
|
|
|
23655
23743
|
comparePoint(from, to) {
|
|
23656
23744
|
addRange(from, to, this.changes);
|
|
23657
23745
|
}
|
|
23746
|
+
boundChange(pos) {
|
|
23747
|
+
addRange(pos, pos, this.changes);
|
|
23748
|
+
}
|
|
23658
23749
|
};
|
|
23659
23750
|
function findChangedDeco(a2, b2, diff) {
|
|
23660
23751
|
let comp = new DecorationComparator$1();
|
|
@@ -24825,15 +24916,15 @@ function basicMouseSelection(view, event) {
|
|
|
24825
24916
|
startSel = startSel.map(update.changes);
|
|
24826
24917
|
}
|
|
24827
24918
|
},
|
|
24828
|
-
get(event2,
|
|
24919
|
+
get(event2, extend, multiple) {
|
|
24829
24920
|
let cur2 = queryPos(view, event2), removed;
|
|
24830
24921
|
let range = rangeForClick(view, cur2.pos, cur2.bias, type);
|
|
24831
|
-
if (start.pos != cur2.pos && !
|
|
24922
|
+
if (start.pos != cur2.pos && !extend) {
|
|
24832
24923
|
let startRange = rangeForClick(view, start.pos, start.bias, type);
|
|
24833
24924
|
let from = Math.min(startRange.from, range.from), to = Math.max(startRange.to, range.to);
|
|
24834
24925
|
range = from < range.from ? EditorSelection.range(from, to) : EditorSelection.range(to, from);
|
|
24835
24926
|
}
|
|
24836
|
-
if (
|
|
24927
|
+
if (extend)
|
|
24837
24928
|
return startSel.replaceRange(startSel.main.extend(range.from, range.to));
|
|
24838
24929
|
else if (multiple && type == 1 && startSel.ranges.length > 1 && (removed = removeRangeAround(startSel, cur2.pos)))
|
|
24839
24930
|
return removed;
|
|
@@ -25251,7 +25342,7 @@ class HeightMap {
|
|
|
25251
25342
|
return (this.flags & 2) > 0;
|
|
25252
25343
|
}
|
|
25253
25344
|
set outdated(value) {
|
|
25254
|
-
this.flags = (value ? 2 : 0) | this.flags &
|
|
25345
|
+
this.flags = (value ? 2 : 0) | this.flags & -3;
|
|
25255
25346
|
}
|
|
25256
25347
|
setHeight(height) {
|
|
25257
25348
|
if (this.height != height) {
|
|
@@ -25973,7 +26064,7 @@ class ViewState {
|
|
|
25973
26064
|
this.updateViewportLines();
|
|
25974
26065
|
if (this.lineGaps.length || this.viewport.to - this.viewport.from > 2e3 << 1)
|
|
25975
26066
|
this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, update.changes)));
|
|
25976
|
-
update.flags |= this.computeVisibleRanges();
|
|
26067
|
+
update.flags |= this.computeVisibleRanges(update.changes);
|
|
25977
26068
|
if (scrollTarget)
|
|
25978
26069
|
this.scrollTarget = scrollTarget;
|
|
25979
26070
|
if (!this.mustEnforceCursorAssoc && update.selectionSet && update.view.lineWrapping && update.state.selection.main.empty && update.state.selection.main.assoc && !update.state.facet(nativeSelectionHidden))
|
|
@@ -25995,7 +26086,7 @@ class ViewState {
|
|
|
25995
26086
|
if (scaleX > 5e-3 && Math.abs(this.scaleX - scaleX) > 5e-3 || scaleY > 5e-3 && Math.abs(this.scaleY - scaleY) > 5e-3) {
|
|
25996
26087
|
this.scaleX = scaleX;
|
|
25997
26088
|
this.scaleY = scaleY;
|
|
25998
|
-
result |=
|
|
26089
|
+
result |= 16;
|
|
25999
26090
|
refresh = measureContent = true;
|
|
26000
26091
|
}
|
|
26001
26092
|
}
|
|
@@ -26004,13 +26095,13 @@ class ViewState {
|
|
|
26004
26095
|
if (this.paddingTop != paddingTop || this.paddingBottom != paddingBottom) {
|
|
26005
26096
|
this.paddingTop = paddingTop;
|
|
26006
26097
|
this.paddingBottom = paddingBottom;
|
|
26007
|
-
result |=
|
|
26098
|
+
result |= 16 | 2;
|
|
26008
26099
|
}
|
|
26009
26100
|
if (this.editorWidth != view.scrollDOM.clientWidth) {
|
|
26010
26101
|
if (oracle.lineWrapping)
|
|
26011
26102
|
measureContent = true;
|
|
26012
26103
|
this.editorWidth = view.scrollDOM.clientWidth;
|
|
26013
|
-
result |=
|
|
26104
|
+
result |= 16;
|
|
26014
26105
|
}
|
|
26015
26106
|
let scrollTop = view.scrollDOM.scrollTop * this.scaleY;
|
|
26016
26107
|
if (this.scrollTop != scrollTop) {
|
|
@@ -26033,7 +26124,7 @@ class ViewState {
|
|
|
26033
26124
|
if (this.contentDOMWidth != contentWidth || this.editorHeight != view.scrollDOM.clientHeight) {
|
|
26034
26125
|
this.contentDOMWidth = domRect.width;
|
|
26035
26126
|
this.editorHeight = view.scrollDOM.clientHeight;
|
|
26036
|
-
result |=
|
|
26127
|
+
result |= 16;
|
|
26037
26128
|
}
|
|
26038
26129
|
if (measureContent) {
|
|
26039
26130
|
let lineHeights = view.docView.measureVisibleLineHeights(this.viewport);
|
|
@@ -26044,7 +26135,7 @@ class ViewState {
|
|
|
26044
26135
|
refresh = lineHeight > 0 && oracle.refresh(whiteSpace, lineHeight, charWidth, textHeight, contentWidth / charWidth, lineHeights);
|
|
26045
26136
|
if (refresh) {
|
|
26046
26137
|
view.docView.minWidth = 0;
|
|
26047
|
-
result |=
|
|
26138
|
+
result |= 16;
|
|
26048
26139
|
}
|
|
26049
26140
|
}
|
|
26050
26141
|
if (dTop > 0 && dBottom > 0)
|
|
@@ -26246,7 +26337,7 @@ class ViewState {
|
|
|
26246
26337
|
this.lineGapDeco = Decoration.set(gaps.map((gap) => gap.draw(this, this.heightOracle.lineWrapping)));
|
|
26247
26338
|
}
|
|
26248
26339
|
}
|
|
26249
|
-
computeVisibleRanges() {
|
|
26340
|
+
computeVisibleRanges(changes) {
|
|
26250
26341
|
let deco = this.stateDeco;
|
|
26251
26342
|
if (this.lineGaps.length)
|
|
26252
26343
|
deco = deco.concat(this.lineGapDeco);
|
|
@@ -26258,9 +26349,21 @@ class ViewState {
|
|
|
26258
26349
|
point() {
|
|
26259
26350
|
}
|
|
26260
26351
|
}, 20);
|
|
26261
|
-
let changed =
|
|
26352
|
+
let changed = 0;
|
|
26353
|
+
if (ranges.length != this.visibleRanges.length) {
|
|
26354
|
+
changed = 8 | 4;
|
|
26355
|
+
} else {
|
|
26356
|
+
for (let i = 0; i < ranges.length && !(changed & 8); i++) {
|
|
26357
|
+
let old = this.visibleRanges[i], nw = ranges[i];
|
|
26358
|
+
if (old.from != nw.from || old.to != nw.to) {
|
|
26359
|
+
changed |= 4;
|
|
26360
|
+
if (!(changes && changes.mapPos(old.from, -1) == nw.from && changes.mapPos(old.to, 1) == nw.to))
|
|
26361
|
+
changed |= 8;
|
|
26362
|
+
}
|
|
26363
|
+
}
|
|
26364
|
+
}
|
|
26262
26365
|
this.visibleRanges = ranges;
|
|
26263
|
-
return changed
|
|
26366
|
+
return changed;
|
|
26264
26367
|
}
|
|
26265
26368
|
lineBlockAt(pos) {
|
|
26266
26369
|
return pos >= this.viewport.from && pos <= this.viewport.to && this.viewportLines.find((b2) => b2.from <= pos && b2.to >= pos) || scaleBlock(this.heightMap.lineAt(pos, QueryType$1.ByPos, this.heightOracle, 0, 0), this.scaler);
|
|
@@ -27144,8 +27247,10 @@ class EditContextManager {
|
|
|
27144
27247
|
if (change.from == change.to && !change.insert.length)
|
|
27145
27248
|
return;
|
|
27146
27249
|
this.pendingContextChange = change;
|
|
27147
|
-
if (!view.state.readOnly)
|
|
27148
|
-
|
|
27250
|
+
if (!view.state.readOnly) {
|
|
27251
|
+
let newLen = this.to - this.from + (change.to - change.from + change.insert.length);
|
|
27252
|
+
applyDOMChangeInner(view, change, EditorSelection.single(this.toEditorPos(e2.selectionStart, newLen), this.toEditorPos(e2.selectionEnd, newLen)));
|
|
27253
|
+
}
|
|
27149
27254
|
if (this.pendingContextChange) {
|
|
27150
27255
|
this.revertPending(view.state);
|
|
27151
27256
|
this.setSelection(view.state);
|
|
@@ -27165,8 +27270,11 @@ class EditContextManager {
|
|
|
27165
27270
|
for (let format of e2.getTextFormats()) {
|
|
27166
27271
|
let lineStyle = format.underlineStyle, thickness = format.underlineThickness;
|
|
27167
27272
|
if (lineStyle != "None" && thickness != "None") {
|
|
27168
|
-
let
|
|
27169
|
-
|
|
27273
|
+
let from = this.toEditorPos(format.rangeStart), to = this.toEditorPos(format.rangeEnd);
|
|
27274
|
+
if (from < to) {
|
|
27275
|
+
let style = `text-decoration: underline ${lineStyle == "Dashed" ? "dashed " : lineStyle == "Squiggle" ? "wavy " : ""}${thickness == "Thin" ? 1 : 2}px`;
|
|
27276
|
+
deco.push(Decoration.mark({ attributes: { style } }).range(from, to));
|
|
27277
|
+
}
|
|
27170
27278
|
}
|
|
27171
27279
|
}
|
|
27172
27280
|
view.dispatch({ effects: setEditContextFormatting.of(Decoration.set(deco)) });
|
|
@@ -27280,7 +27388,8 @@ class EditContextManager {
|
|
|
27280
27388
|
let { head } = state.selection.main;
|
|
27281
27389
|
return !(this.from > 0 && head - this.from < 500 || this.to < state.doc.length && this.to - head < 500 || this.to - this.from > 1e4 * 3);
|
|
27282
27390
|
}
|
|
27283
|
-
toEditorPos(contextPos) {
|
|
27391
|
+
toEditorPos(contextPos, clipLen = this.to - this.from) {
|
|
27392
|
+
contextPos = Math.min(contextPos, clipLen);
|
|
27284
27393
|
let c2 = this.composing;
|
|
27285
27394
|
return c2 && c2.drifted ? c2.editorBase + (contextPos - c2.contextBase) : contextPos + this.from;
|
|
27286
27395
|
}
|
|
@@ -27709,6 +27818,7 @@ class EditorView {
|
|
|
27709
27818
|
spellcheck: "false",
|
|
27710
27819
|
autocorrect: "off",
|
|
27711
27820
|
autocapitalize: "off",
|
|
27821
|
+
writingsuggestions: "false",
|
|
27712
27822
|
translate: "no",
|
|
27713
27823
|
contenteditable: !this.state.facet(editable) ? "false" : "true",
|
|
27714
27824
|
class: "cm-content",
|
|
@@ -28552,14 +28662,7 @@ function rectanglesForRange(view, className, range) {
|
|
|
28552
28662
|
return pieces(top2).concat(between).concat(pieces(bottom));
|
|
28553
28663
|
}
|
|
28554
28664
|
function piece(left, top2, right, bottom) {
|
|
28555
|
-
return new RectangleMarker(
|
|
28556
|
-
className,
|
|
28557
|
-
left - base2.left,
|
|
28558
|
-
top2 - base2.top - 0.01,
|
|
28559
|
-
right - left,
|
|
28560
|
-
bottom - top2 + 0.01
|
|
28561
|
-
/* C.Epsilon */
|
|
28562
|
-
);
|
|
28665
|
+
return new RectangleMarker(className, left - base2.left, top2 - base2.top, right - left, bottom - top2);
|
|
28563
28666
|
}
|
|
28564
28667
|
function pieces({ top: top2, bottom, horizontal }) {
|
|
28565
28668
|
let pieces2 = [];
|
|
@@ -28692,7 +28795,7 @@ function layer(config2) {
|
|
|
28692
28795
|
layerOrder.of(config2)
|
|
28693
28796
|
];
|
|
28694
28797
|
}
|
|
28695
|
-
const CanHidePrimary = !browser.ios;
|
|
28798
|
+
const CanHidePrimary = !(browser.ios && browser.webkit && browser.webkit_version < 534);
|
|
28696
28799
|
const selectionConfig = /* @__PURE__ */ Facet.define({
|
|
28697
28800
|
combine(configs) {
|
|
28698
28801
|
return combineConfig(configs, {
|
|
@@ -28933,12 +29036,12 @@ class MatchDecorator {
|
|
|
28933
29036
|
let changeFrom = 1e9, changeTo = -1;
|
|
28934
29037
|
if (update.docChanged)
|
|
28935
29038
|
update.changes.iterChanges((_f, _t, from, to) => {
|
|
28936
|
-
if (to
|
|
29039
|
+
if (to >= update.view.viewport.from && from <= update.view.viewport.to) {
|
|
28937
29040
|
changeFrom = Math.min(from, changeFrom);
|
|
28938
29041
|
changeTo = Math.max(to, changeTo);
|
|
28939
29042
|
}
|
|
28940
29043
|
});
|
|
28941
|
-
if (update.
|
|
29044
|
+
if (update.viewportMoved || changeTo - changeFrom > 1e3)
|
|
28942
29045
|
return this.createDeco(update.view);
|
|
28943
29046
|
if (changeTo > -1)
|
|
28944
29047
|
return this.updateRange(update.view, deco.map(update.changes), changeFrom, changeTo);
|
|
@@ -29572,10 +29675,10 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
|
|
|
29572
29675
|
}
|
|
29573
29676
|
if (this.position == "absolute") {
|
|
29574
29677
|
dom.style.top = (top2 - measured.parent.top) / scaleY + "px";
|
|
29575
|
-
dom
|
|
29678
|
+
setLeftStyle(dom, (left - measured.parent.left) / scaleX);
|
|
29576
29679
|
} else {
|
|
29577
29680
|
dom.style.top = top2 / scaleY + "px";
|
|
29578
|
-
dom
|
|
29681
|
+
setLeftStyle(dom, left / scaleX);
|
|
29579
29682
|
}
|
|
29580
29683
|
if (arrow2) {
|
|
29581
29684
|
let arrowLeft = pos.left + (ltr ? offset2.x : -offset2.x) - (left + 14 - 7);
|
|
@@ -29608,6 +29711,11 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
|
|
|
29608
29711
|
}
|
|
29609
29712
|
}
|
|
29610
29713
|
});
|
|
29714
|
+
function setLeftStyle(elt, value) {
|
|
29715
|
+
let current = parseInt(elt.style.left, 10);
|
|
29716
|
+
if (isNaN(current) || Math.abs(value - current) > 1)
|
|
29717
|
+
elt.style.left = value + "px";
|
|
29718
|
+
}
|
|
29611
29719
|
const baseTheme$4 = /* @__PURE__ */ EditorView.baseTheme({
|
|
29612
29720
|
".cm-tooltip": {
|
|
29613
29721
|
zIndex: 500,
|
|
@@ -31196,10 +31304,10 @@ class IndentContext {
|
|
|
31196
31304
|
const indentNodeProp = /* @__PURE__ */ new NodeProp();
|
|
31197
31305
|
function syntaxIndentation(cx, ast, pos) {
|
|
31198
31306
|
let stack = ast.resolveStack(pos);
|
|
31199
|
-
let inner =
|
|
31307
|
+
let inner = ast.resolveInner(pos, -1).resolve(pos, 0).enterUnfinishedNodesBefore(pos);
|
|
31200
31308
|
if (inner != stack.node) {
|
|
31201
31309
|
let add2 = [];
|
|
31202
|
-
for (let cur2 = inner; cur2
|
|
31310
|
+
for (let cur2 = inner; cur2 && !(cur2.from == stack.node.from && cur2.type == stack.node.type); cur2 = cur2.parent)
|
|
31203
31311
|
add2.push(cur2);
|
|
31204
31312
|
for (let i = add2.length - 1; i >= 0; i--)
|
|
31205
31313
|
stack = { node: add2[i], next: stack };
|
|
@@ -32676,7 +32784,7 @@ const cursorLineBoundaryLeft = (view) => moveSel(view, (range) => moveByLineBoun
|
|
|
32676
32784
|
const cursorLineBoundaryRight = (view) => moveSel(view, (range) => moveByLineBoundary(view, range, ltrAtCursor(view)));
|
|
32677
32785
|
const cursorLineStart = (view) => moveSel(view, (range) => EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));
|
|
32678
32786
|
const cursorLineEnd = (view) => moveSel(view, (range) => EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));
|
|
32679
|
-
function toMatchingBracket(state, dispatch,
|
|
32787
|
+
function toMatchingBracket(state, dispatch, extend) {
|
|
32680
32788
|
let found = false, selection2 = updateSel(state.selection, (range) => {
|
|
32681
32789
|
let matching = matchBrackets(state, range.head, -1) || matchBrackets(state, range.head, 1) || range.head > 0 && matchBrackets(state, range.head - 1, 1) || range.head < state.doc.length && matchBrackets(state, range.head + 1, -1);
|
|
32682
32790
|
if (!matching || !matching.end)
|
|
@@ -35853,25 +35961,67 @@ class LintState {
|
|
|
35853
35961
|
let diagnosticFilter = state.facet(lintConfig).markerFilter;
|
|
35854
35962
|
if (diagnosticFilter)
|
|
35855
35963
|
markedDiagnostics = diagnosticFilter(markedDiagnostics, state);
|
|
35856
|
-
let
|
|
35857
|
-
|
|
35858
|
-
|
|
35859
|
-
|
|
35860
|
-
|
|
35861
|
-
|
|
35862
|
-
|
|
35863
|
-
|
|
35864
|
-
|
|
35865
|
-
|
|
35964
|
+
let sorted = diagnostics.slice().sort((a2, b2) => a2.from - b2.from || a2.to - b2.to);
|
|
35965
|
+
let deco = new RangeSetBuilder(), active = [], pos = 0;
|
|
35966
|
+
for (let i = 0; ; ) {
|
|
35967
|
+
let next = i == sorted.length ? null : sorted[i];
|
|
35968
|
+
if (!next && !active.length)
|
|
35969
|
+
break;
|
|
35970
|
+
let from, to;
|
|
35971
|
+
if (active.length) {
|
|
35972
|
+
from = pos;
|
|
35973
|
+
to = active.reduce((p2, d2) => Math.min(p2, d2.to), next && next.from > from ? next.from : 1e8);
|
|
35974
|
+
} else {
|
|
35975
|
+
from = next.from;
|
|
35976
|
+
to = next.to;
|
|
35977
|
+
active.push(next);
|
|
35978
|
+
i++;
|
|
35979
|
+
}
|
|
35980
|
+
while (i < sorted.length) {
|
|
35981
|
+
let next2 = sorted[i];
|
|
35982
|
+
if (next2.from == from && (next2.to > next2.from || next2.to == from)) {
|
|
35983
|
+
active.push(next2);
|
|
35984
|
+
i++;
|
|
35985
|
+
to = Math.min(next2.to, to);
|
|
35986
|
+
} else {
|
|
35987
|
+
to = Math.min(next2.from, to);
|
|
35988
|
+
break;
|
|
35989
|
+
}
|
|
35990
|
+
}
|
|
35991
|
+
let sev = maxSeverity(active);
|
|
35992
|
+
if (active.some((d2) => d2.from == d2.to || d2.from == d2.to - 1 && state.doc.lineAt(d2.from).to == d2.from)) {
|
|
35993
|
+
deco.add(from, from, Decoration.widget({
|
|
35994
|
+
widget: new DiagnosticWidget(sev),
|
|
35995
|
+
diagnostics: active.slice()
|
|
35996
|
+
}));
|
|
35997
|
+
} else {
|
|
35998
|
+
let markClass = active.reduce((c2, d2) => d2.markClass ? c2 + " " + d2.markClass : c2, "");
|
|
35999
|
+
deco.add(from, to, Decoration.mark({
|
|
36000
|
+
class: "cm-lintRange cm-lintRange-" + sev + markClass,
|
|
36001
|
+
diagnostics: active.slice(),
|
|
36002
|
+
inclusiveEnd: active.some((a2) => a2.to > to)
|
|
36003
|
+
}));
|
|
36004
|
+
}
|
|
36005
|
+
pos = to;
|
|
36006
|
+
for (let i2 = 0; i2 < active.length; i2++)
|
|
36007
|
+
if (active[i2].to <= pos)
|
|
36008
|
+
active.splice(i2--, 1);
|
|
36009
|
+
}
|
|
36010
|
+
let set = deco.finish();
|
|
36011
|
+
return new LintState(set, panel, findDiagnostic(set));
|
|
35866
36012
|
}
|
|
35867
36013
|
}
|
|
35868
36014
|
function findDiagnostic(diagnostics, diagnostic = null, after = 0) {
|
|
35869
36015
|
let found = null;
|
|
35870
36016
|
diagnostics.between(after, 1e9, (from, to, { spec }) => {
|
|
35871
|
-
if (diagnostic && spec.diagnostic
|
|
36017
|
+
if (diagnostic && spec.diagnostics.indexOf(diagnostic) < 0)
|
|
35872
36018
|
return;
|
|
35873
|
-
|
|
35874
|
-
|
|
36019
|
+
if (!found)
|
|
36020
|
+
found = new SelectedDiagnostic(from, to, diagnostic || spec.diagnostics[0]);
|
|
36021
|
+
else if (spec.diagnostics.indexOf(found.diagnostic) < 0)
|
|
36022
|
+
return false;
|
|
36023
|
+
else
|
|
36024
|
+
found = new SelectedDiagnostic(found.from, to, found.diagnostic);
|
|
35875
36025
|
});
|
|
35876
36026
|
return found;
|
|
35877
36027
|
}
|
|
@@ -35924,23 +36074,24 @@ const lintState = /* @__PURE__ */ StateField.define({
|
|
|
35924
36074
|
const activeMark = /* @__PURE__ */ Decoration.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
35925
36075
|
function lintTooltip(view, pos, side) {
|
|
35926
36076
|
let { diagnostics } = view.state.field(lintState);
|
|
35927
|
-
let found
|
|
36077
|
+
let found, start = -1, end = -1;
|
|
35928
36078
|
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, { spec }) => {
|
|
35929
36079
|
if (pos >= from && pos <= to && (from == to || (pos > from || side > 0) && (pos < to || side < 0))) {
|
|
35930
|
-
found
|
|
35931
|
-
|
|
35932
|
-
|
|
36080
|
+
found = spec.diagnostics;
|
|
36081
|
+
start = from;
|
|
36082
|
+
end = to;
|
|
36083
|
+
return false;
|
|
35933
36084
|
}
|
|
35934
36085
|
});
|
|
35935
36086
|
let diagnosticFilter = view.state.facet(lintConfig).tooltipFilter;
|
|
35936
|
-
if (diagnosticFilter)
|
|
36087
|
+
if (found && diagnosticFilter)
|
|
35937
36088
|
found = diagnosticFilter(found, view.state);
|
|
35938
|
-
if (!found
|
|
36089
|
+
if (!found)
|
|
35939
36090
|
return null;
|
|
35940
36091
|
return {
|
|
35941
|
-
pos:
|
|
35942
|
-
end
|
|
35943
|
-
above: view.state.doc.lineAt(
|
|
36092
|
+
pos: start,
|
|
36093
|
+
end,
|
|
36094
|
+
above: view.state.doc.lineAt(start).to < end,
|
|
35944
36095
|
create() {
|
|
35945
36096
|
return { dom: diagnosticsTooltip(view, found) };
|
|
35946
36097
|
}
|
|
@@ -36039,15 +36190,15 @@ function renderDiagnostic(view, diagnostic, inPanel) {
|
|
|
36039
36190
|
}), diagnostic.source && crelt("div", { class: "cm-diagnosticSource" }, diagnostic.source));
|
|
36040
36191
|
}
|
|
36041
36192
|
class DiagnosticWidget extends WidgetType {
|
|
36042
|
-
constructor(
|
|
36193
|
+
constructor(sev) {
|
|
36043
36194
|
super();
|
|
36044
|
-
this.
|
|
36195
|
+
this.sev = sev;
|
|
36045
36196
|
}
|
|
36046
36197
|
eq(other) {
|
|
36047
|
-
return other.
|
|
36198
|
+
return other.sev == this.sev;
|
|
36048
36199
|
}
|
|
36049
36200
|
toDOM() {
|
|
36050
|
-
return crelt("span", { class: "cm-lintPoint cm-lintPoint-" + this.
|
|
36201
|
+
return crelt("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
|
|
36051
36202
|
}
|
|
36052
36203
|
}
|
|
36053
36204
|
class PanelItem {
|
|
@@ -36123,33 +36274,39 @@ class LintPanel {
|
|
|
36123
36274
|
update() {
|
|
36124
36275
|
let { diagnostics, selected } = this.view.state.field(lintState);
|
|
36125
36276
|
let i = 0, needsSync = false, newSelectedItem = null;
|
|
36277
|
+
let seen = /* @__PURE__ */ new Set();
|
|
36126
36278
|
diagnostics.between(0, this.view.state.doc.length, (_start, _end, { spec }) => {
|
|
36127
|
-
let
|
|
36128
|
-
|
|
36129
|
-
|
|
36130
|
-
|
|
36131
|
-
|
|
36132
|
-
|
|
36133
|
-
|
|
36134
|
-
|
|
36135
|
-
|
|
36136
|
-
|
|
36137
|
-
|
|
36138
|
-
|
|
36139
|
-
|
|
36140
|
-
this.items.splice(i, found - i);
|
|
36279
|
+
for (let diagnostic of spec.diagnostics) {
|
|
36280
|
+
if (seen.has(diagnostic))
|
|
36281
|
+
continue;
|
|
36282
|
+
seen.add(diagnostic);
|
|
36283
|
+
let found = -1, item;
|
|
36284
|
+
for (let j = i; j < this.items.length; j++)
|
|
36285
|
+
if (this.items[j].diagnostic == diagnostic) {
|
|
36286
|
+
found = j;
|
|
36287
|
+
break;
|
|
36288
|
+
}
|
|
36289
|
+
if (found < 0) {
|
|
36290
|
+
item = new PanelItem(this.view, diagnostic);
|
|
36291
|
+
this.items.splice(i, 0, item);
|
|
36141
36292
|
needsSync = true;
|
|
36293
|
+
} else {
|
|
36294
|
+
item = this.items[found];
|
|
36295
|
+
if (found > i) {
|
|
36296
|
+
this.items.splice(i, found - i);
|
|
36297
|
+
needsSync = true;
|
|
36298
|
+
}
|
|
36142
36299
|
}
|
|
36143
|
-
|
|
36144
|
-
|
|
36145
|
-
|
|
36146
|
-
|
|
36147
|
-
|
|
36300
|
+
if (selected && item.diagnostic == selected.diagnostic) {
|
|
36301
|
+
if (!item.dom.hasAttribute("aria-selected")) {
|
|
36302
|
+
item.dom.setAttribute("aria-selected", "true");
|
|
36303
|
+
newSelectedItem = item;
|
|
36304
|
+
}
|
|
36305
|
+
} else if (item.dom.hasAttribute("aria-selected")) {
|
|
36306
|
+
item.dom.removeAttribute("aria-selected");
|
|
36148
36307
|
}
|
|
36149
|
-
|
|
36150
|
-
item.dom.removeAttribute("aria-selected");
|
|
36308
|
+
i++;
|
|
36151
36309
|
}
|
|
36152
|
-
i++;
|
|
36153
36310
|
});
|
|
36154
36311
|
while (i < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0)) {
|
|
36155
36312
|
needsSync = true;
|
|
@@ -36316,6 +36473,20 @@ const baseTheme = /* @__PURE__ */ EditorView.baseTheme({
|
|
|
36316
36473
|
}
|
|
36317
36474
|
}
|
|
36318
36475
|
});
|
|
36476
|
+
function severityWeight(sev) {
|
|
36477
|
+
return sev == "error" ? 4 : sev == "warning" ? 3 : sev == "info" ? 2 : 1;
|
|
36478
|
+
}
|
|
36479
|
+
function maxSeverity(diagnostics) {
|
|
36480
|
+
let sev = "hint", weight = 1;
|
|
36481
|
+
for (let d2 of diagnostics) {
|
|
36482
|
+
let w2 = severityWeight(d2.severity);
|
|
36483
|
+
if (w2 > weight) {
|
|
36484
|
+
weight = w2;
|
|
36485
|
+
sev = d2.severity;
|
|
36486
|
+
}
|
|
36487
|
+
}
|
|
36488
|
+
return sev;
|
|
36489
|
+
}
|
|
36319
36490
|
const lintExtensions = [
|
|
36320
36491
|
lintState,
|
|
36321
36492
|
/* @__PURE__ */ EditorView.decorations.compute([lintState], (state) => {
|
|
@@ -39101,7 +39272,7 @@ const Trigger$7 = React.forwardRef(
|
|
|
39101
39272
|
({ caretPosition = "left", description, icon: Icon2, iconProps, children, ...restProps }, forwardedRef) => {
|
|
39102
39273
|
const { size: size2 } = useAccordion("Trigger");
|
|
39103
39274
|
return /* @__PURE__ */ jsxs(AccordionTrigger, { $caretPosition: caretPosition, $size: size2, ref: forwardedRef, ...restProps, children: [
|
|
39104
|
-
caretPosition === "left" ? /* @__PURE__ */ jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsx(ForwardRef$
|
|
39275
|
+
caretPosition === "left" ? /* @__PURE__ */ jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsx(ForwardRef$4L, { width: size2 === "S" ? "1.2rem" : "1.6rem", height: size2 === "S" ? "1.2rem" : "1.6rem" }) }) : null,
|
|
39105
39276
|
/* @__PURE__ */ jsxs(Flex, { tag: "span", gap: 2, children: [
|
|
39106
39277
|
Icon2 && size2 === "S" ? /* @__PURE__ */ jsx(IconBox$4, { children: /* @__PURE__ */ jsx(Icon2, { ...iconProps }) }) : null,
|
|
39107
39278
|
/* @__PURE__ */ jsxs(Flex, { alignItems: "flex-start", direction: "column", tag: "span", ref: forwardedRef, children: [
|
|
@@ -39118,7 +39289,7 @@ const Trigger$7 = React.forwardRef(
|
|
|
39118
39289
|
description && size2 === "M" ? /* @__PURE__ */ jsx(Typography, { textAlign: "left", children: description }) : null
|
|
39119
39290
|
] })
|
|
39120
39291
|
] }),
|
|
39121
|
-
caretPosition === "right" ? /* @__PURE__ */ jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsx(ForwardRef$
|
|
39292
|
+
caretPosition === "right" ? /* @__PURE__ */ jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsx(ForwardRef$4L, { width: size2 === "S" ? "1.2rem" : "1.6rem", height: size2 === "S" ? "1.2rem" : "1.6rem" }) }) : null
|
|
39122
39293
|
] });
|
|
39123
39294
|
}
|
|
39124
39295
|
);
|
|
@@ -39381,7 +39552,7 @@ const AlertIconWrapper = styled(Flex)`
|
|
|
39381
39552
|
`;
|
|
39382
39553
|
const AlertIcon = ({ variant: variant2, ...props }) => {
|
|
39383
39554
|
if (variant2 === "success") {
|
|
39384
|
-
return /* @__PURE__ */ jsx(ForwardRef$
|
|
39555
|
+
return /* @__PURE__ */ jsx(ForwardRef$4v, { ...props });
|
|
39385
39556
|
}
|
|
39386
39557
|
if (variant2 === "danger" || variant2 === "warning") {
|
|
39387
39558
|
return /* @__PURE__ */ jsx(ForwardRef$3, { ...props });
|
|
@@ -39447,7 +39618,7 @@ const Alert = ({
|
|
|
39447
39618
|
marginTop: 1,
|
|
39448
39619
|
onClick: onClose,
|
|
39449
39620
|
color: "neutral700",
|
|
39450
|
-
children: /* @__PURE__ */ jsx(AccessibleIcon, { label: closeLabel, children: /* @__PURE__ */ jsx(ForwardRef$
|
|
39621
|
+
children: /* @__PURE__ */ jsx(AccessibleIcon, { label: closeLabel, children: /* @__PURE__ */ jsx(ForwardRef$3$, {}) })
|
|
39451
39622
|
}
|
|
39452
39623
|
)
|
|
39453
39624
|
]
|
|
@@ -40278,7 +40449,7 @@ const Link = forwardRef(
|
|
|
40278
40449
|
startIcon,
|
|
40279
40450
|
/* @__PURE__ */ jsx(Typography, { textColor: disabled ? "neutral600" : "primary600", children }),
|
|
40280
40451
|
endIcon,
|
|
40281
|
-
href && !endIcon && isExternal && /* @__PURE__ */ jsx(ForwardRef$
|
|
40452
|
+
href && !endIcon && isExternal && /* @__PURE__ */ jsx(ForwardRef$3z, {})
|
|
40282
40453
|
] });
|
|
40283
40454
|
}
|
|
40284
40455
|
);
|
|
@@ -40301,6 +40472,10 @@ const LinkWrapper$1 = styled(BaseLinkImpl)`
|
|
|
40301
40472
|
& > span {
|
|
40302
40473
|
color: ${({ theme: theme2 }) => theme2.colors.primary500};
|
|
40303
40474
|
}
|
|
40475
|
+
|
|
40476
|
+
svg path {
|
|
40477
|
+
fill: ${({ theme: theme2 }) => theme2.colors.primary500};
|
|
40478
|
+
}
|
|
40304
40479
|
}
|
|
40305
40480
|
|
|
40306
40481
|
&:active {
|
|
@@ -40311,13 +40486,13 @@ const LinkWrapper$1 = styled(BaseLinkImpl)`
|
|
|
40311
40486
|
`;
|
|
40312
40487
|
const MenuRoot = $d08ef79370b62062$export$be92b6f5f03c0fe9;
|
|
40313
40488
|
const MenuTrigger = React.forwardRef(
|
|
40314
|
-
({ label, endIcon = /* @__PURE__ */ jsx(ForwardRef$
|
|
40489
|
+
({ label, endIcon = /* @__PURE__ */ jsx(ForwardRef$4L, { width: "1.2rem", height: "1.2rem", "aria-hidden": true }), tag = Button, icon, ...rest }, ref) => {
|
|
40315
40490
|
const props = {
|
|
40316
40491
|
...rest,
|
|
40317
40492
|
ref,
|
|
40318
40493
|
type: "button"
|
|
40319
40494
|
};
|
|
40320
|
-
return /* @__PURE__ */ jsx($d08ef79370b62062$export$41fb9f06171c75f4, { asChild: true, children: tag === IconButton ? /* @__PURE__ */ jsx(IconButton, { label, variant: "tertiary", ...props, children: icon }) : /* @__PURE__ */ jsx(Button, { endIcon, variant: "ghost", ...props }) });
|
|
40495
|
+
return /* @__PURE__ */ jsx($d08ef79370b62062$export$41fb9f06171c75f4, { asChild: true, disabled: props.disabled, children: tag === IconButton ? /* @__PURE__ */ jsx(IconButton, { label, variant: "tertiary", ...props, children: icon }) : /* @__PURE__ */ jsx(Button, { endIcon, variant: "ghost", ...props }) });
|
|
40321
40496
|
}
|
|
40322
40497
|
);
|
|
40323
40498
|
const MenuContent = React.forwardRef(
|
|
@@ -40438,7 +40613,7 @@ React.forwardRef(({ disabled = false, ...props }, ref) => {
|
|
|
40438
40613
|
...props,
|
|
40439
40614
|
children: [
|
|
40440
40615
|
/* @__PURE__ */ jsx(Typography, { children: props.children }),
|
|
40441
|
-
/* @__PURE__ */ jsx(ForwardRef$
|
|
40616
|
+
/* @__PURE__ */ jsx(ForwardRef$4p, { fill: "neutral500", height: "1.2rem", width: "1.2rem" })
|
|
40442
40617
|
]
|
|
40443
40618
|
}
|
|
40444
40619
|
) });
|
|
@@ -40757,8 +40932,8 @@ const Carousel = React.forwardRef(
|
|
|
40757
40932
|
position: "relative",
|
|
40758
40933
|
children: [
|
|
40759
40934
|
childrenArray && childrenArray.length > 1 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
40760
|
-
/* @__PURE__ */ jsx(CarouselAction, { tag: "button", onClick: onPrevious, $area: "startAction", ref: prevActionRef, type: "button", children: /* @__PURE__ */ jsx(AccessibleIcon, { label: previousLabel, children: /* @__PURE__ */ jsx(ForwardRef$
|
|
40761
|
-
/* @__PURE__ */ jsx(CarouselAction, { tag: "button", onClick: onNext, $area: "endAction", ref: nextActionRef, type: "button", children: /* @__PURE__ */ jsx(AccessibleIcon, { label: nextLabel, children: /* @__PURE__ */ jsx(ForwardRef$
|
|
40935
|
+
/* @__PURE__ */ jsx(CarouselAction, { tag: "button", onClick: onPrevious, $area: "startAction", ref: prevActionRef, type: "button", children: /* @__PURE__ */ jsx(AccessibleIcon, { label: previousLabel, children: /* @__PURE__ */ jsx(ForwardRef$4r, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) }),
|
|
40936
|
+
/* @__PURE__ */ jsx(CarouselAction, { tag: "button", onClick: onNext, $area: "endAction", ref: nextActionRef, type: "button", children: /* @__PURE__ */ jsx(AccessibleIcon, { label: nextLabel, children: /* @__PURE__ */ jsx(ForwardRef$4p, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) })
|
|
40762
40937
|
] }),
|
|
40763
40938
|
/* @__PURE__ */ jsx(CarouselSlides, { "aria-live": "polite", paddingLeft: 2, paddingRight: 2, width: "100%", overflow: "hidden", children: childrenArray }),
|
|
40764
40939
|
actions
|
|
@@ -42836,7 +43011,7 @@ lodash.exports;
|
|
|
42836
43011
|
return symbolToString ? symbolToString.call(value) : "";
|
|
42837
43012
|
}
|
|
42838
43013
|
var result2 = value + "";
|
|
42839
|
-
return result2 == "0" && 1 / value == -
|
|
43014
|
+
return result2 == "0" && 1 / value == -Infinity ? "-0" : result2;
|
|
42840
43015
|
}
|
|
42841
43016
|
function baseUniq(array, iteratee2, comparator) {
|
|
42842
43017
|
var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
|
@@ -43388,7 +43563,7 @@ lodash.exports;
|
|
|
43388
43563
|
bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
|
|
43389
43564
|
bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
|
|
43390
43565
|
if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
|
|
43391
|
-
bitmask &=
|
|
43566
|
+
bitmask &= -4;
|
|
43392
43567
|
}
|
|
43393
43568
|
var newData = [
|
|
43394
43569
|
func,
|
|
@@ -43444,7 +43619,7 @@ lodash.exports;
|
|
|
43444
43619
|
}
|
|
43445
43620
|
var length = partials ? partials.length : 0;
|
|
43446
43621
|
if (!length) {
|
|
43447
|
-
bitmask &=
|
|
43622
|
+
bitmask &= -97;
|
|
43448
43623
|
partials = holders = undefined$1;
|
|
43449
43624
|
}
|
|
43450
43625
|
ary2 = ary2 === undefined$1 ? ary2 : nativeMax(toInteger(ary2), 0);
|
|
@@ -43477,7 +43652,7 @@ lodash.exports;
|
|
|
43477
43652
|
holders = newData[4];
|
|
43478
43653
|
arity = newData[9] = newData[9] === undefined$1 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
|
|
43479
43654
|
if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
|
|
43480
|
-
bitmask &=
|
|
43655
|
+
bitmask &= -25;
|
|
43481
43656
|
}
|
|
43482
43657
|
if (!bitmask || bitmask == WRAP_BIND_FLAG) {
|
|
43483
43658
|
var result2 = createBind(func, bitmask, thisArg);
|
|
@@ -44043,7 +44218,7 @@ lodash.exports;
|
|
|
44043
44218
|
return value;
|
|
44044
44219
|
}
|
|
44045
44220
|
var result2 = value + "";
|
|
44046
|
-
return result2 == "0" && 1 / value == -
|
|
44221
|
+
return result2 == "0" && 1 / value == -Infinity ? "-0" : result2;
|
|
44047
44222
|
}
|
|
44048
44223
|
function toSource(func) {
|
|
44049
44224
|
if (func != null) {
|
|
@@ -45107,7 +45282,7 @@ lodash.exports;
|
|
|
45107
45282
|
}
|
|
45108
45283
|
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
45109
45284
|
function isSafeInteger(value) {
|
|
45110
|
-
return isInteger(value) && value >= -
|
|
45285
|
+
return isInteger(value) && value >= -9007199254740991 && value <= MAX_SAFE_INTEGER;
|
|
45111
45286
|
}
|
|
45112
45287
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
45113
45288
|
function isString(value) {
|
|
@@ -45148,7 +45323,7 @@ lodash.exports;
|
|
|
45148
45323
|
return value === 0 ? value : 0;
|
|
45149
45324
|
}
|
|
45150
45325
|
value = toNumber(value);
|
|
45151
|
-
if (value === INFINITY || value === -
|
|
45326
|
+
if (value === INFINITY || value === -Infinity) {
|
|
45152
45327
|
var sign = value < 0 ? -1 : 1;
|
|
45153
45328
|
return sign * MAX_INTEGER;
|
|
45154
45329
|
}
|
|
@@ -45183,7 +45358,7 @@ lodash.exports;
|
|
|
45183
45358
|
return copyObject(value, keysIn(value));
|
|
45184
45359
|
}
|
|
45185
45360
|
function toSafeInteger(value) {
|
|
45186
|
-
return value ? baseClamp(toInteger(value), -
|
|
45361
|
+
return value ? baseClamp(toInteger(value), -9007199254740991, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
|
|
45187
45362
|
}
|
|
45188
45363
|
function toString(value) {
|
|
45189
45364
|
return value == null ? "" : baseToString(value);
|
|
@@ -46898,10 +47073,10 @@ const Combobox = React.forwardRef(
|
|
|
46898
47073
|
"aria-label": clearLabel,
|
|
46899
47074
|
title: clearLabel,
|
|
46900
47075
|
ref: clearRef,
|
|
46901
|
-
children: /* @__PURE__ */ jsx(ForwardRef$
|
|
47076
|
+
children: /* @__PURE__ */ jsx(ForwardRef$3$, {})
|
|
46902
47077
|
}
|
|
46903
47078
|
) : null,
|
|
46904
|
-
/* @__PURE__ */ jsx(DownIcon$1, { children: /* @__PURE__ */ jsx(ForwardRef$
|
|
47079
|
+
/* @__PURE__ */ jsx(DownIcon$1, { children: /* @__PURE__ */ jsx(ForwardRef$4L, { fill: "neutral500" }) })
|
|
46905
47080
|
] })
|
|
46906
47081
|
] }),
|
|
46907
47082
|
/* @__PURE__ */ jsx(Combobox$1$1.Portal, { children: /* @__PURE__ */ jsx(Content$5, { sideOffset: 4, children: /* @__PURE__ */ jsxs(Viewport$1, { ref: viewportRef, children: [
|
|
@@ -47422,10 +47597,10 @@ const SelectTrigger = React.forwardRef(
|
|
|
47422
47597
|
"aria-label": clearLabel,
|
|
47423
47598
|
title: clearLabel,
|
|
47424
47599
|
cursor: "pointer",
|
|
47425
|
-
children: /* @__PURE__ */ jsx(ForwardRef$
|
|
47600
|
+
children: /* @__PURE__ */ jsx(ForwardRef$3$, {})
|
|
47426
47601
|
}
|
|
47427
47602
|
) : null,
|
|
47428
|
-
/* @__PURE__ */ jsx(DownIcon, { children: /* @__PURE__ */ jsx(ForwardRef$
|
|
47603
|
+
/* @__PURE__ */ jsx(DownIcon, { children: /* @__PURE__ */ jsx(ForwardRef$4L, {}) })
|
|
47429
47604
|
] })
|
|
47430
47605
|
]
|
|
47431
47606
|
}
|
|
@@ -47821,7 +47996,7 @@ const DatePicker$1 = React.forwardRef(
|
|
|
47821
47996
|
value,
|
|
47822
47997
|
children: [
|
|
47823
47998
|
/* @__PURE__ */ jsxs(DatePickerTrigger, { className, hasError, size: size2, children: [
|
|
47824
|
-
/* @__PURE__ */ jsx(ForwardRef$
|
|
47999
|
+
/* @__PURE__ */ jsx(ForwardRef$4P, { fill: "neutral500", "aria-hidden": true }),
|
|
47825
48000
|
/* @__PURE__ */ jsx(DatePickerTextInput, { ref, "aria-describedby": ariaDescription, id, name: name2, ...restProps }),
|
|
47826
48001
|
textValue && onClear ? /* @__PURE__ */ jsx(
|
|
47827
48002
|
IconBox$1,
|
|
@@ -47835,7 +48010,7 @@ const DatePicker$1 = React.forwardRef(
|
|
|
47835
48010
|
"aria-label": clearLabel,
|
|
47836
48011
|
title: clearLabel,
|
|
47837
48012
|
ref: clearRef,
|
|
47838
|
-
children: /* @__PURE__ */ jsx(ForwardRef$
|
|
48013
|
+
children: /* @__PURE__ */ jsx(ForwardRef$3$, {})
|
|
47839
48014
|
}
|
|
47840
48015
|
) : null
|
|
47841
48016
|
] }),
|
|
@@ -48537,7 +48712,7 @@ const TimePicker$1 = React.forwardRef(
|
|
|
48537
48712
|
allowCustomValue: true,
|
|
48538
48713
|
placeholder: `--${separator}--`,
|
|
48539
48714
|
autocomplete: "none",
|
|
48540
|
-
startIcon: /* @__PURE__ */ jsx(ForwardRef$
|
|
48715
|
+
startIcon: /* @__PURE__ */ jsx(ForwardRef$4l, { fill: "neutral500" }),
|
|
48541
48716
|
inputMode: "numeric",
|
|
48542
48717
|
pattern: `\\d{2}\\${separator}\\d{2}`,
|
|
48543
48718
|
textValue,
|
|
@@ -49040,7 +49215,7 @@ const Header = React.forwardRef(
|
|
|
49040
49215
|
tag: "header",
|
|
49041
49216
|
children: [
|
|
49042
49217
|
children,
|
|
49043
|
-
/* @__PURE__ */ jsx(Close, { children: /* @__PURE__ */ jsx(IconButton, { withTooltip: false, label: closeLabel, children: /* @__PURE__ */ jsx(ForwardRef$
|
|
49218
|
+
/* @__PURE__ */ jsx(Close, { children: /* @__PURE__ */ jsx(IconButton, { withTooltip: false, label: closeLabel, children: /* @__PURE__ */ jsx(ForwardRef$3$, {}) }) })
|
|
49044
49219
|
]
|
|
49045
49220
|
}
|
|
49046
49221
|
);
|
|
@@ -49196,7 +49371,7 @@ React.forwardRef(
|
|
|
49196
49371
|
tabIndex: -1,
|
|
49197
49372
|
type: "button",
|
|
49198
49373
|
"data-testid": "ArrowUp",
|
|
49199
|
-
children: /* @__PURE__ */ jsx(ForwardRef$
|
|
49374
|
+
children: /* @__PURE__ */ jsx(ForwardRef$4L, { fill: "neutral500" })
|
|
49200
49375
|
}
|
|
49201
49376
|
),
|
|
49202
49377
|
/* @__PURE__ */ jsx(
|
|
@@ -49208,7 +49383,7 @@ React.forwardRef(
|
|
|
49208
49383
|
tabIndex: -1,
|
|
49209
49384
|
type: "button",
|
|
49210
49385
|
"data-testid": "ArrowDown",
|
|
49211
|
-
children: /* @__PURE__ */ jsx(ForwardRef$
|
|
49386
|
+
children: /* @__PURE__ */ jsx(ForwardRef$4L, { fill: "neutral500" })
|
|
49212
49387
|
}
|
|
49213
49388
|
)
|
|
49214
49389
|
] }),
|
|
@@ -49269,7 +49444,7 @@ forwardRef(
|
|
|
49269
49444
|
const disabled = activePage === 1;
|
|
49270
49445
|
return /* @__PURE__ */ jsxs(ActionLinkWrapper, { ref, "aria-disabled": disabled, tabIndex: disabled ? -1 : void 0, ...props, children: [
|
|
49271
49446
|
/* @__PURE__ */ jsx(VisuallyHidden, { children }),
|
|
49272
|
-
/* @__PURE__ */ jsx(ForwardRef$
|
|
49447
|
+
/* @__PURE__ */ jsx(ForwardRef$4r, { "aria-hidden": true })
|
|
49273
49448
|
] });
|
|
49274
49449
|
}
|
|
49275
49450
|
);
|
|
@@ -49279,7 +49454,7 @@ forwardRef(
|
|
|
49279
49454
|
const disabled = activePage === pageCount;
|
|
49280
49455
|
return /* @__PURE__ */ jsxs(ActionLinkWrapper, { ref, "aria-disabled": disabled, tabIndex: disabled ? -1 : void 0, ...props, children: [
|
|
49281
49456
|
/* @__PURE__ */ jsx(VisuallyHidden, { children }),
|
|
49282
|
-
/* @__PURE__ */ jsx(ForwardRef$
|
|
49457
|
+
/* @__PURE__ */ jsx(ForwardRef$4p, { "aria-hidden": true })
|
|
49283
49458
|
] });
|
|
49284
49459
|
}
|
|
49285
49460
|
);
|
|
@@ -49731,7 +49906,7 @@ const RawTr = ({ children, ...props }) => {
|
|
|
49731
49906
|
});
|
|
49732
49907
|
return /* @__PURE__ */ jsx(Box, { tag: "tr", ...props, children: childrenClone });
|
|
49733
49908
|
};
|
|
49734
|
-
const CloseIcon = styled(ForwardRef$
|
|
49909
|
+
const CloseIcon = styled(ForwardRef$3$)`
|
|
49735
49910
|
font-size: 0.5rem;
|
|
49736
49911
|
path {
|
|
49737
49912
|
fill: ${({ theme: theme2 }) => theme2.colors.neutral400};
|
|
@@ -49923,7 +50098,7 @@ const MultiSelect = React.forwardRef(
|
|
|
49923
50098
|
{
|
|
49924
50099
|
tabIndex: -1,
|
|
49925
50100
|
disabled,
|
|
49926
|
-
icon: /* @__PURE__ */ jsx(ForwardRef$
|
|
50101
|
+
icon: /* @__PURE__ */ jsx(ForwardRef$3$, { width: `${14 / 16}rem`, height: `${14 / 16}rem` }),
|
|
49927
50102
|
onClick: handleTagClick(arg.value),
|
|
49928
50103
|
children: arg.textValue
|
|
49929
50104
|
},
|
|
@@ -50188,7 +50363,7 @@ const SubNavSectionLabel = ({
|
|
|
50188
50363
|
children: [
|
|
50189
50364
|
/* @__PURE__ */ jsx(Box, { paddingRight: 1, children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: label }) }),
|
|
50190
50365
|
collapsable && /* @__PURE__ */ jsx(
|
|
50191
|
-
ForwardRef$
|
|
50366
|
+
ForwardRef$4L,
|
|
50192
50367
|
{
|
|
50193
50368
|
width: "1.2rem",
|
|
50194
50369
|
"aria-hidden": true,
|
|
@@ -50996,7 +51171,7 @@ const index = {
|
|
|
50996
51171
|
id: `${pluginId}.plugin.name`,
|
|
50997
51172
|
defaultMessage: displayName
|
|
50998
51173
|
},
|
|
50999
|
-
Component: () => import("./index-
|
|
51174
|
+
Component: () => import("./index-Db2zwbpe.mjs"),
|
|
51000
51175
|
permissions: pluginPermissions.access
|
|
51001
51176
|
});
|
|
51002
51177
|
app.createSettingSection(
|
|
@@ -51015,7 +51190,7 @@ const index = {
|
|
|
51015
51190
|
},
|
|
51016
51191
|
id: "comments",
|
|
51017
51192
|
to: `/settings/${pluginId}`,
|
|
51018
|
-
Component: () => import("./index-
|
|
51193
|
+
Component: () => import("./index-BgN4aUMA.mjs"),
|
|
51019
51194
|
permissions: pluginPermissions.settings
|
|
51020
51195
|
}
|
|
51021
51196
|
]
|
|
@@ -51057,7 +51232,7 @@ export {
|
|
|
51057
51232
|
ForwardRef$1r as L,
|
|
51058
51233
|
Modal as M,
|
|
51059
51234
|
ForwardRef$j as N,
|
|
51060
|
-
ForwardRef$
|
|
51235
|
+
ForwardRef$3x as O,
|
|
51061
51236
|
Portal$1 as P,
|
|
51062
51237
|
ForwardRef$1d as Q,
|
|
51063
51238
|
ForwardRef$R as R,
|
|
@@ -51066,7 +51241,7 @@ export {
|
|
|
51066
51241
|
Avatar as U,
|
|
51067
51242
|
Loader as V,
|
|
51068
51243
|
Link as W,
|
|
51069
|
-
ForwardRef$
|
|
51244
|
+
ForwardRef$51 as X,
|
|
51070
51245
|
Grid as Y,
|
|
51071
51246
|
Td as Z,
|
|
51072
51247
|
SimpleMenu as _,
|
|
@@ -51078,7 +51253,7 @@ export {
|
|
|
51078
51253
|
Accordion as a4,
|
|
51079
51254
|
SwitchImpl as a5,
|
|
51080
51255
|
Toggle as a6,
|
|
51081
|
-
ForwardRef$
|
|
51256
|
+
ForwardRef$59 as a7,
|
|
51082
51257
|
darkTheme as a8,
|
|
51083
51258
|
lightTheme as a9,
|
|
51084
51259
|
DesignSystemProvider as aa,
|
|
@@ -51092,25 +51267,25 @@ export {
|
|
|
51092
51267
|
SubNavSection as c,
|
|
51093
51268
|
SubNavLink as d,
|
|
51094
51269
|
Button as e,
|
|
51095
|
-
ForwardRef$
|
|
51096
|
-
ForwardRef$
|
|
51270
|
+
ForwardRef$4x as f,
|
|
51271
|
+
ForwardRef$3$ as g,
|
|
51097
51272
|
Badge as h,
|
|
51098
51273
|
IconButtonGroup as i,
|
|
51099
51274
|
FocusTrap as j,
|
|
51100
|
-
ForwardRef$
|
|
51101
|
-
ForwardRef$
|
|
51275
|
+
ForwardRef$45 as k,
|
|
51276
|
+
ForwardRef$3B as l,
|
|
51102
51277
|
Field as m,
|
|
51103
51278
|
SingleSelect as n,
|
|
51104
51279
|
SingleSelectOption as o,
|
|
51105
51280
|
pluginId as p,
|
|
51106
|
-
ForwardRef$
|
|
51281
|
+
ForwardRef$4X as q,
|
|
51107
51282
|
ForwardRef$2v as r,
|
|
51108
51283
|
ForwardRef$f as s,
|
|
51109
51284
|
ForwardRef$1R as t,
|
|
51110
51285
|
Popover as u,
|
|
51111
51286
|
ForwardRef$v as v,
|
|
51112
|
-
ForwardRef$
|
|
51287
|
+
ForwardRef$4R as w,
|
|
51113
51288
|
ForwardRef$1L as x,
|
|
51114
|
-
ForwardRef$
|
|
51289
|
+
ForwardRef$4d as y,
|
|
51115
51290
|
ForwardRef$2l as z
|
|
51116
51291
|
};
|