strapi-plugin-comments 3.0.0-beta.1 → 3.0.1
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-D3iNqWZT.mjs → index-BC5Odn17.mjs} +5 -5
- package/dist/_chunks/{index-BBcsmSTs.mjs → index-BIorFYba.mjs} +448 -256
- package/dist/_chunks/{index-Bcck91A8.js → index-COoWcAcA.js} +1290 -1144
- package/dist/_chunks/{index-CY_AVWS-.js → index-Ccb93U47.js} +445 -253
- package/dist/_chunks/{index-D9MOkoQ2.mjs → index-D1DAMkhj.mjs} +20 -26
- package/dist/_chunks/{index-BFPteXuP.js → index-R1krliyC.js} +5 -5
- package/dist/_chunks/{index-DJ32APz-.mjs → index-_exHAK6u.mjs} +1290 -1144
- package/dist/_chunks/{index-BXEk5PWx.js → index-k7z0V0lj.js} +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 +212 -157
- package/dist/server/index.mjs +212 -157
- 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 +121 -24
- package/dist/server/src/controllers/index.d.ts +300 -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 +931 -315
- 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 +178 -67
- 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 +615 -223
- 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 +16 -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
|
@@ -4211,9 +4211,9 @@ var handleScroll$2 = function(axis, endTarget, event, sourceDelta, noOverscroll)
|
|
|
4211
4211
|
!targetInLock && target !== document.body || // self content
|
|
4212
4212
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
4213
4213
|
);
|
|
4214
|
-
if (isDeltaPositive && (Math.abs(availableScroll) < 1 ||
|
|
4214
|
+
if (isDeltaPositive && (Math.abs(availableScroll) < 1 || false)) {
|
|
4215
4215
|
shouldCancelScroll = true;
|
|
4216
|
-
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 ||
|
|
4216
|
+
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || false)) {
|
|
4217
4217
|
shouldCancelScroll = true;
|
|
4218
4218
|
}
|
|
4219
4219
|
return shouldCancelScroll;
|
|
@@ -4295,7 +4295,7 @@ function RemoveScrollSideCar$2(props) {
|
|
|
4295
4295
|
return true;
|
|
4296
4296
|
}
|
|
4297
4297
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
4298
|
-
return handleScroll$2(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY
|
|
4298
|
+
return handleScroll$2(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
4299
4299
|
}, []);
|
|
4300
4300
|
var shouldPrevent = React__namespace.useCallback(function(_event) {
|
|
4301
4301
|
var event = _event;
|
|
@@ -4557,7 +4557,7 @@ function createCollection(name2) {
|
|
|
4557
4557
|
}
|
|
4558
4558
|
const cache = /* @__PURE__ */ new Map();
|
|
4559
4559
|
function useCollator(locale, options) {
|
|
4560
|
-
const cacheKey = locale +
|
|
4560
|
+
const cacheKey = locale + Object.entries(options).sort((a2, b2) => a2[0] < b2[0] ? -1 : 1).join();
|
|
4561
4561
|
if (cache.has(cacheKey)) {
|
|
4562
4562
|
return cache.get(cacheKey);
|
|
4563
4563
|
}
|
|
@@ -5324,6 +5324,8 @@ const ComboboxNoValueFound = React__namespace.forwardRef((props, ref) => {
|
|
|
5324
5324
|
unsub();
|
|
5325
5325
|
};
|
|
5326
5326
|
}, [subscribe]);
|
|
5327
|
+
if (autocomplete.type === "none" && items.length > 0)
|
|
5328
|
+
return null;
|
|
5327
5329
|
if (autocomplete.type === "list" && autocomplete.filter === "startsWith" && items.some((item) => startsWith(item.textValue, textValue))) {
|
|
5328
5330
|
return null;
|
|
5329
5331
|
}
|
|
@@ -7068,8 +7070,8 @@ const SvgArrowClockwise = ({
|
|
|
7068
7070
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7069
7071
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7070
7072
|
};
|
|
7071
|
-
const ForwardRef$
|
|
7072
|
-
const ForwardRef$
|
|
7073
|
+
const ForwardRef$58 = React.forwardRef(SvgArrowClockwise);
|
|
7074
|
+
const ForwardRef$59 = ForwardRef$58;
|
|
7073
7075
|
const SvgArrowDown = ({
|
|
7074
7076
|
fill: fillProp = "currentColor",
|
|
7075
7077
|
stroke: strokeProp,
|
|
@@ -7121,8 +7123,8 @@ const SvgArrowUp = ({
|
|
|
7121
7123
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7122
7124
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7123
7125
|
};
|
|
7124
|
-
const ForwardRef$
|
|
7125
|
-
const ForwardRef$
|
|
7126
|
+
const ForwardRef$50 = React.forwardRef(SvgArrowUp);
|
|
7127
|
+
const ForwardRef$51 = ForwardRef$50;
|
|
7126
7128
|
const SvgArrowsCounterClockwise = ({
|
|
7127
7129
|
fill: fillProp = "currentColor",
|
|
7128
7130
|
stroke: strokeProp,
|
|
@@ -7161,8 +7163,8 @@ const SvgBold = ({
|
|
|
7161
7163
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7162
7164
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7163
7165
|
};
|
|
7164
|
-
const ForwardRef$
|
|
7165
|
-
const ForwardRef$
|
|
7166
|
+
const ForwardRef$4W = React.forwardRef(SvgBold);
|
|
7167
|
+
const ForwardRef$4X = ForwardRef$4W;
|
|
7166
7168
|
const SvgBook = ({
|
|
7167
7169
|
fill: fillProp = "currentColor",
|
|
7168
7170
|
stroke: strokeProp,
|
|
@@ -7201,8 +7203,8 @@ const SvgBulletList = ({
|
|
|
7201
7203
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7202
7204
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7203
7205
|
};
|
|
7204
|
-
const ForwardRef$
|
|
7205
|
-
const ForwardRef$
|
|
7206
|
+
const ForwardRef$4Q = React.forwardRef(SvgBulletList);
|
|
7207
|
+
const ForwardRef$4R = ForwardRef$4Q;
|
|
7206
7208
|
const SvgCalendar = ({
|
|
7207
7209
|
fill: fillProp = "currentColor",
|
|
7208
7210
|
stroke: strokeProp,
|
|
@@ -7215,8 +7217,8 @@ const SvgCalendar = ({
|
|
|
7215
7217
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7216
7218
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7217
7219
|
};
|
|
7218
|
-
const ForwardRef$
|
|
7219
|
-
const ForwardRef$
|
|
7220
|
+
const ForwardRef$4O = React.forwardRef(SvgCalendar);
|
|
7221
|
+
const ForwardRef$4P = ForwardRef$4O;
|
|
7220
7222
|
const SvgCar = ({
|
|
7221
7223
|
fill: fillProp = "currentColor",
|
|
7222
7224
|
stroke: strokeProp,
|
|
@@ -7242,8 +7244,8 @@ const SvgCaretDown = ({
|
|
|
7242
7244
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7243
7245
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7244
7246
|
};
|
|
7245
|
-
const ForwardRef$
|
|
7246
|
-
const ForwardRef$
|
|
7247
|
+
const ForwardRef$4K = React.forwardRef(SvgCaretDown);
|
|
7248
|
+
const ForwardRef$4L = ForwardRef$4K;
|
|
7247
7249
|
const SvgCaretUp = ({
|
|
7248
7250
|
fill: fillProp = "currentColor",
|
|
7249
7251
|
stroke: strokeProp,
|
|
@@ -7334,8 +7336,8 @@ const SvgCheck = ({
|
|
|
7334
7336
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7335
7337
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7336
7338
|
};
|
|
7337
|
-
const ForwardRef$
|
|
7338
|
-
const ForwardRef$
|
|
7339
|
+
const ForwardRef$4w = React.forwardRef(SvgCheck);
|
|
7340
|
+
const ForwardRef$4x = ForwardRef$4w;
|
|
7339
7341
|
const SvgCheckCircle = ({
|
|
7340
7342
|
fill: fillProp = "currentColor",
|
|
7341
7343
|
stroke: strokeProp,
|
|
@@ -7348,8 +7350,8 @@ const SvgCheckCircle = ({
|
|
|
7348
7350
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7349
7351
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7350
7352
|
};
|
|
7351
|
-
const ForwardRef$
|
|
7352
|
-
const ForwardRef$
|
|
7353
|
+
const ForwardRef$4u = React.forwardRef(SvgCheckCircle);
|
|
7354
|
+
const ForwardRef$4v = ForwardRef$4u;
|
|
7353
7355
|
const SvgChevronDown = ({
|
|
7354
7356
|
fill: fillProp = "currentColor",
|
|
7355
7357
|
stroke: strokeProp,
|
|
@@ -7375,8 +7377,8 @@ const SvgChevronLeft = ({
|
|
|
7375
7377
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7376
7378
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7377
7379
|
};
|
|
7378
|
-
const ForwardRef$
|
|
7379
|
-
const ForwardRef$
|
|
7380
|
+
const ForwardRef$4q = React.forwardRef(SvgChevronLeft);
|
|
7381
|
+
const ForwardRef$4r = ForwardRef$4q;
|
|
7380
7382
|
const SvgChevronRight = ({
|
|
7381
7383
|
fill: fillProp = "currentColor",
|
|
7382
7384
|
stroke: strokeProp,
|
|
@@ -7389,8 +7391,8 @@ const SvgChevronRight = ({
|
|
|
7389
7391
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7390
7392
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7391
7393
|
};
|
|
7392
|
-
const ForwardRef$
|
|
7393
|
-
const ForwardRef$
|
|
7394
|
+
const ForwardRef$4o = React.forwardRef(SvgChevronRight);
|
|
7395
|
+
const ForwardRef$4p = ForwardRef$4o;
|
|
7394
7396
|
const SvgChevronUp = ({
|
|
7395
7397
|
fill: fillProp = "currentColor",
|
|
7396
7398
|
stroke: strokeProp,
|
|
@@ -7416,8 +7418,8 @@ const SvgClock = ({
|
|
|
7416
7418
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7417
7419
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7418
7420
|
};
|
|
7419
|
-
const ForwardRef$
|
|
7420
|
-
const ForwardRef$
|
|
7421
|
+
const ForwardRef$4k = React.forwardRef(SvgClock);
|
|
7422
|
+
const ForwardRef$4l = ForwardRef$4k;
|
|
7421
7423
|
const SvgClockCounterClockwise = ({
|
|
7422
7424
|
fill: fillProp = "currentColor",
|
|
7423
7425
|
stroke: strokeProp,
|
|
@@ -7469,8 +7471,21 @@ const SvgCode = ({
|
|
|
7469
7471
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7470
7472
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7471
7473
|
};
|
|
7472
|
-
const ForwardRef$
|
|
7473
|
-
const ForwardRef$
|
|
7474
|
+
const ForwardRef$4c = React.forwardRef(SvgCode);
|
|
7475
|
+
const ForwardRef$4d = ForwardRef$4c;
|
|
7476
|
+
const SvgCodeBlock = ({
|
|
7477
|
+
fill: fillProp = "currentColor",
|
|
7478
|
+
stroke: strokeProp,
|
|
7479
|
+
...props
|
|
7480
|
+
}, ref) => {
|
|
7481
|
+
const {
|
|
7482
|
+
colors
|
|
7483
|
+
} = styled.useTheme();
|
|
7484
|
+
const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
|
|
7485
|
+
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7486
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7487
|
+
};
|
|
7488
|
+
React.forwardRef(SvgCodeBlock);
|
|
7474
7489
|
const SvgCoffee = ({
|
|
7475
7490
|
fill: fillProp = "currentColor",
|
|
7476
7491
|
stroke: strokeProp,
|
|
@@ -7509,8 +7524,8 @@ const SvgCollapse = ({
|
|
|
7509
7524
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7510
7525
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7511
7526
|
};
|
|
7512
|
-
const ForwardRef$
|
|
7513
|
-
const ForwardRef$
|
|
7527
|
+
const ForwardRef$44 = React.forwardRef(SvgCollapse);
|
|
7528
|
+
const ForwardRef$45 = ForwardRef$44;
|
|
7514
7529
|
const SvgCommand = ({
|
|
7515
7530
|
fill: fillProp = "currentColor",
|
|
7516
7531
|
stroke: strokeProp,
|
|
@@ -7549,8 +7564,8 @@ const SvgCross = ({
|
|
|
7549
7564
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7550
7565
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7551
7566
|
};
|
|
7552
|
-
const ForwardRef$
|
|
7553
|
-
const ForwardRef$
|
|
7567
|
+
const ForwardRef$3_ = React.forwardRef(SvgCross);
|
|
7568
|
+
const ForwardRef$3$ = ForwardRef$3_;
|
|
7554
7569
|
const SvgCrossCircle = ({
|
|
7555
7570
|
fill: fillProp = "currentColor",
|
|
7556
7571
|
stroke: strokeProp,
|
|
@@ -7722,8 +7737,8 @@ const SvgExpand = ({
|
|
|
7722
7737
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7723
7738
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7724
7739
|
};
|
|
7725
|
-
const ForwardRef$
|
|
7726
|
-
const ForwardRef$
|
|
7740
|
+
const ForwardRef$3A = React.forwardRef(SvgExpand);
|
|
7741
|
+
const ForwardRef$3B = ForwardRef$3A;
|
|
7727
7742
|
const SvgExternalLink = ({
|
|
7728
7743
|
fill: fillProp = "currentColor",
|
|
7729
7744
|
stroke: strokeProp,
|
|
@@ -7736,8 +7751,8 @@ const SvgExternalLink = ({
|
|
|
7736
7751
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7737
7752
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7738
7753
|
};
|
|
7739
|
-
const ForwardRef$
|
|
7740
|
-
const ForwardRef$
|
|
7754
|
+
const ForwardRef$3y = React.forwardRef(SvgExternalLink);
|
|
7755
|
+
const ForwardRef$3z = ForwardRef$3y;
|
|
7741
7756
|
const SvgEye = ({
|
|
7742
7757
|
fill: fillProp = "currentColor",
|
|
7743
7758
|
stroke: strokeProp,
|
|
@@ -7750,8 +7765,8 @@ const SvgEye = ({
|
|
|
7750
7765
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7751
7766
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7752
7767
|
};
|
|
7753
|
-
const ForwardRef$
|
|
7754
|
-
const ForwardRef$
|
|
7768
|
+
const ForwardRef$3w = React.forwardRef(SvgEye);
|
|
7769
|
+
const ForwardRef$3x = ForwardRef$3w;
|
|
7755
7770
|
const SvgEyeStriked = ({
|
|
7756
7771
|
fill: fillProp = "currentColor",
|
|
7757
7772
|
stroke: strokeProp,
|
|
@@ -7804,6 +7819,19 @@ const SvgFile = ({
|
|
|
7804
7819
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7805
7820
|
};
|
|
7806
7821
|
React.forwardRef(SvgFile);
|
|
7822
|
+
const SvgFileCsv = ({
|
|
7823
|
+
fill: fillProp = "currentColor",
|
|
7824
|
+
stroke: strokeProp,
|
|
7825
|
+
...props
|
|
7826
|
+
}, ref) => {
|
|
7827
|
+
const {
|
|
7828
|
+
colors
|
|
7829
|
+
} = styled.useTheme();
|
|
7830
|
+
const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
|
|
7831
|
+
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7832
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7833
|
+
};
|
|
7834
|
+
React.forwardRef(SvgFileCsv);
|
|
7807
7835
|
const SvgFileError = ({
|
|
7808
7836
|
fill: fillProp = "currentColor",
|
|
7809
7837
|
stroke: strokeProp,
|
|
@@ -7830,6 +7858,32 @@ const SvgFilePdf = ({
|
|
|
7830
7858
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7831
7859
|
};
|
|
7832
7860
|
React.forwardRef(SvgFilePdf);
|
|
7861
|
+
const SvgFileXls = ({
|
|
7862
|
+
fill: fillProp = "currentColor",
|
|
7863
|
+
stroke: strokeProp,
|
|
7864
|
+
...props
|
|
7865
|
+
}, ref) => {
|
|
7866
|
+
const {
|
|
7867
|
+
colors
|
|
7868
|
+
} = styled.useTheme();
|
|
7869
|
+
const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
|
|
7870
|
+
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7871
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7872
|
+
};
|
|
7873
|
+
React.forwardRef(SvgFileXls);
|
|
7874
|
+
const SvgFileZip = ({
|
|
7875
|
+
fill: fillProp = "currentColor",
|
|
7876
|
+
stroke: strokeProp,
|
|
7877
|
+
...props
|
|
7878
|
+
}, ref) => {
|
|
7879
|
+
const {
|
|
7880
|
+
colors
|
|
7881
|
+
} = styled.useTheme();
|
|
7882
|
+
const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
|
|
7883
|
+
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
7884
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
|
|
7885
|
+
};
|
|
7886
|
+
React.forwardRef(SvgFileZip);
|
|
7833
7887
|
const SvgFilter = ({
|
|
7834
7888
|
fill: fillProp = "currentColor",
|
|
7835
7889
|
stroke: strokeProp,
|
|
@@ -9627,9 +9681,9 @@ var handleScroll$1 = function(axis, endTarget, event, sourceDelta, noOverscroll)
|
|
|
9627
9681
|
!targetInLock && target !== document.body || // self content
|
|
9628
9682
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
9629
9683
|
);
|
|
9630
|
-
if (isDeltaPositive && (availableScroll === 0 ||
|
|
9684
|
+
if (isDeltaPositive && (availableScroll === 0 || false)) {
|
|
9631
9685
|
shouldCancelScroll = true;
|
|
9632
|
-
} else if (!isDeltaPositive && (availableScrollTop === 0 ||
|
|
9686
|
+
} else if (!isDeltaPositive && (availableScrollTop === 0 || false)) {
|
|
9633
9687
|
shouldCancelScroll = true;
|
|
9634
9688
|
}
|
|
9635
9689
|
return shouldCancelScroll;
|
|
@@ -9713,7 +9767,7 @@ function RemoveScrollSideCar$1(props) {
|
|
|
9713
9767
|
return true;
|
|
9714
9768
|
}
|
|
9715
9769
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
9716
|
-
return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY
|
|
9770
|
+
return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
9717
9771
|
}, []);
|
|
9718
9772
|
var shouldPrevent = React__namespace.useCallback(function(_event) {
|
|
9719
9773
|
var event = _event;
|
|
@@ -11779,7 +11833,7 @@ function isTopLayer(element) {
|
|
|
11779
11833
|
function isContainingBlock(elementOrCss) {
|
|
11780
11834
|
const webkit2 = isWebKit();
|
|
11781
11835
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
11782
|
-
return
|
|
11836
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit2 && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit2 && (css.filter ? css.filter !== "none" : false) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
|
|
11783
11837
|
}
|
|
11784
11838
|
function getContainingBlock(element) {
|
|
11785
11839
|
let currentNode = getParentNode(element);
|
|
@@ -12285,6 +12339,9 @@ const platform = {
|
|
|
12285
12339
|
isElement,
|
|
12286
12340
|
isRTL
|
|
12287
12341
|
};
|
|
12342
|
+
function rectsAreEqual(a2, b2) {
|
|
12343
|
+
return a2.x === b2.x && a2.y === b2.y && a2.width === b2.width && a2.height === b2.height;
|
|
12344
|
+
}
|
|
12288
12345
|
function observeMove(element, onMove) {
|
|
12289
12346
|
let io = null;
|
|
12290
12347
|
let timeoutId;
|
|
@@ -12303,12 +12360,13 @@ function observeMove(element, onMove) {
|
|
|
12303
12360
|
threshold = 1;
|
|
12304
12361
|
}
|
|
12305
12362
|
cleanup();
|
|
12363
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
12306
12364
|
const {
|
|
12307
12365
|
left,
|
|
12308
12366
|
top: top2,
|
|
12309
12367
|
width,
|
|
12310
12368
|
height
|
|
12311
|
-
} =
|
|
12369
|
+
} = elementRectForRootMargin;
|
|
12312
12370
|
if (!skip) {
|
|
12313
12371
|
onMove();
|
|
12314
12372
|
}
|
|
@@ -12339,6 +12397,9 @@ function observeMove(element, onMove) {
|
|
|
12339
12397
|
refresh(false, ratio);
|
|
12340
12398
|
}
|
|
12341
12399
|
}
|
|
12400
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
12401
|
+
refresh();
|
|
12402
|
+
}
|
|
12342
12403
|
isFirstUpdate = false;
|
|
12343
12404
|
}
|
|
12344
12405
|
try {
|
|
@@ -12402,7 +12463,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
12402
12463
|
}
|
|
12403
12464
|
function frameLoop() {
|
|
12404
12465
|
const nextRefRect = getBoundingClientRect(reference);
|
|
12405
|
-
if (prevRefRect && (
|
|
12466
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
12406
12467
|
update();
|
|
12407
12468
|
}
|
|
12408
12469
|
prevRefRect = nextRefRect;
|
|
@@ -12803,9 +12864,9 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
12803
12864
|
!targetInLock && target !== document.body || // self content
|
|
12804
12865
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
12805
12866
|
);
|
|
12806
|
-
if (isDeltaPositive && (Math.abs(availableScroll) < 1 ||
|
|
12867
|
+
if (isDeltaPositive && (Math.abs(availableScroll) < 1 || false)) {
|
|
12807
12868
|
shouldCancelScroll = true;
|
|
12808
|
-
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 ||
|
|
12869
|
+
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || false)) {
|
|
12809
12870
|
shouldCancelScroll = true;
|
|
12810
12871
|
}
|
|
12811
12872
|
return shouldCancelScroll;
|
|
@@ -12887,7 +12948,7 @@ function RemoveScrollSideCar(props) {
|
|
|
12887
12948
|
return true;
|
|
12888
12949
|
}
|
|
12889
12950
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
12890
|
-
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY
|
|
12951
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
12891
12952
|
}, []);
|
|
12892
12953
|
var shouldPrevent = React__namespace.useCallback(function(_event) {
|
|
12893
12954
|
var event = _event;
|
|
@@ -16530,11 +16591,11 @@ class HighlightBuilder {
|
|
|
16530
16591
|
for (let i = 0, pos = start; ; i++) {
|
|
16531
16592
|
let next = i < mounted.overlay.length ? mounted.overlay[i] : null;
|
|
16532
16593
|
let nextPos = next ? next.from + start : end;
|
|
16533
|
-
let
|
|
16534
|
-
if (
|
|
16535
|
-
while (cursor2.from <
|
|
16536
|
-
this.highlightRange(cursor2,
|
|
16537
|
-
this.startSpan(Math.min(
|
|
16594
|
+
let rangeFrom2 = Math.max(from, pos), rangeTo2 = Math.min(to, nextPos);
|
|
16595
|
+
if (rangeFrom2 < rangeTo2 && hasChild2) {
|
|
16596
|
+
while (cursor2.from < rangeTo2) {
|
|
16597
|
+
this.highlightRange(cursor2, rangeFrom2, rangeTo2, inheritedClass, highlighters);
|
|
16598
|
+
this.startSpan(Math.min(rangeTo2, cursor2.to), cls);
|
|
16538
16599
|
if (cursor2.to >= nextPos || !cursor2.nextSibling())
|
|
16539
16600
|
break;
|
|
16540
16601
|
}
|
|
@@ -16981,30 +17042,101 @@ const jsonHighlighting = styleTags({
|
|
|
16981
17042
|
"True False": tags.bool,
|
|
16982
17043
|
PropertyName: tags.propertyName,
|
|
16983
17044
|
Null: tags.null,
|
|
16984
|
-
",": tags.separator,
|
|
17045
|
+
", :": tags.separator,
|
|
16985
17046
|
"[ ]": tags.squareBracket,
|
|
16986
17047
|
"{ }": tags.brace
|
|
16987
17048
|
});
|
|
16988
17049
|
const parser = LRParser.deserialize({
|
|
16989
17050
|
version: 14,
|
|
16990
|
-
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#
|
|
16991
|
-
stateData: "#O~
|
|
16992
|
-
goto: "!
|
|
16993
|
-
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
|
|
17051
|
+
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",
|
|
17052
|
+
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
|
|
17053
|
+
goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
|
17054
|
+
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
|
|
16994
17055
|
maxTerm: 25,
|
|
16995
17056
|
nodeProps: [
|
|
16996
17057
|
["isolate", -2, 6, 11, ""],
|
|
16997
|
-
["openedBy", 7, "{",
|
|
16998
|
-
["closedBy", 8, "}",
|
|
17058
|
+
["openedBy", 7, "{", 14, "["],
|
|
17059
|
+
["closedBy", 8, "}", 15, "]"]
|
|
16999
17060
|
],
|
|
17000
17061
|
propSources: [jsonHighlighting],
|
|
17001
17062
|
skippedNodes: [0],
|
|
17002
17063
|
repeatNodeCount: 2,
|
|
17003
|
-
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~!]
|
|
17064
|
+
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~",
|
|
17004
17065
|
tokenizers: [0],
|
|
17005
17066
|
topRules: { "JsonText": [0, 1] },
|
|
17006
17067
|
tokenPrec: 0
|
|
17007
17068
|
});
|
|
17069
|
+
let rangeFrom = [], rangeTo = [];
|
|
17070
|
+
(() => {
|
|
17071
|
+
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);
|
|
17072
|
+
for (let i = 0, n2 = 0; i < numbers.length; i++)
|
|
17073
|
+
(i % 2 ? rangeTo : rangeFrom).push(n2 = n2 + numbers[i]);
|
|
17074
|
+
})();
|
|
17075
|
+
function isExtendingChar(code) {
|
|
17076
|
+
if (code < 768) return false;
|
|
17077
|
+
for (let from = 0, to = rangeFrom.length; ; ) {
|
|
17078
|
+
let mid = from + to >> 1;
|
|
17079
|
+
if (code < rangeFrom[mid]) to = mid;
|
|
17080
|
+
else if (code >= rangeTo[mid]) from = mid + 1;
|
|
17081
|
+
else return true;
|
|
17082
|
+
if (from == to) return false;
|
|
17083
|
+
}
|
|
17084
|
+
}
|
|
17085
|
+
function isRegionalIndicator(code) {
|
|
17086
|
+
return code >= 127462 && code <= 127487;
|
|
17087
|
+
}
|
|
17088
|
+
const ZWJ = 8205;
|
|
17089
|
+
function findClusterBreak$1(str, pos, forward = true, includeExtending = true) {
|
|
17090
|
+
return (forward ? nextClusterBreak : prevClusterBreak)(str, pos, includeExtending);
|
|
17091
|
+
}
|
|
17092
|
+
function nextClusterBreak(str, pos, includeExtending) {
|
|
17093
|
+
if (pos == str.length) return pos;
|
|
17094
|
+
if (pos && surrogateLow$1(str.charCodeAt(pos)) && surrogateHigh$1(str.charCodeAt(pos - 1))) pos--;
|
|
17095
|
+
let prev = codePointAt$1(str, pos);
|
|
17096
|
+
pos += codePointSize$1(prev);
|
|
17097
|
+
while (pos < str.length) {
|
|
17098
|
+
let next = codePointAt$1(str, pos);
|
|
17099
|
+
if (prev == ZWJ || next == ZWJ || includeExtending && isExtendingChar(next)) {
|
|
17100
|
+
pos += codePointSize$1(next);
|
|
17101
|
+
prev = next;
|
|
17102
|
+
} else if (isRegionalIndicator(next)) {
|
|
17103
|
+
let countBefore = 0, i = pos - 2;
|
|
17104
|
+
while (i >= 0 && isRegionalIndicator(codePointAt$1(str, i))) {
|
|
17105
|
+
countBefore++;
|
|
17106
|
+
i -= 2;
|
|
17107
|
+
}
|
|
17108
|
+
if (countBefore % 2 == 0) break;
|
|
17109
|
+
else pos += 2;
|
|
17110
|
+
} else {
|
|
17111
|
+
break;
|
|
17112
|
+
}
|
|
17113
|
+
}
|
|
17114
|
+
return pos;
|
|
17115
|
+
}
|
|
17116
|
+
function prevClusterBreak(str, pos, includeExtending) {
|
|
17117
|
+
while (pos > 0) {
|
|
17118
|
+
let found = nextClusterBreak(str, pos - 2, includeExtending);
|
|
17119
|
+
if (found < pos) return found;
|
|
17120
|
+
pos--;
|
|
17121
|
+
}
|
|
17122
|
+
return 0;
|
|
17123
|
+
}
|
|
17124
|
+
function codePointAt$1(str, pos) {
|
|
17125
|
+
let code0 = str.charCodeAt(pos);
|
|
17126
|
+
if (!surrogateHigh$1(code0) || pos + 1 == str.length) return code0;
|
|
17127
|
+
let code1 = str.charCodeAt(pos + 1);
|
|
17128
|
+
if (!surrogateLow$1(code1)) return code0;
|
|
17129
|
+
return (code0 - 55296 << 10) + (code1 - 56320) + 65536;
|
|
17130
|
+
}
|
|
17131
|
+
function surrogateLow$1(ch) {
|
|
17132
|
+
return ch >= 56320 && ch < 57344;
|
|
17133
|
+
}
|
|
17134
|
+
function surrogateHigh$1(ch) {
|
|
17135
|
+
return ch >= 55296 && ch < 56320;
|
|
17136
|
+
}
|
|
17137
|
+
function codePointSize$1(code) {
|
|
17138
|
+
return code < 65536 ? 1 : 2;
|
|
17139
|
+
}
|
|
17008
17140
|
class Text {
|
|
17009
17141
|
/**
|
|
17010
17142
|
Get the line description around the given position.
|
|
@@ -17555,58 +17687,8 @@ function clip(text, from, to) {
|
|
|
17555
17687
|
from = Math.max(0, Math.min(text.length, from));
|
|
17556
17688
|
return [from, Math.max(from, Math.min(text.length, to))];
|
|
17557
17689
|
}
|
|
17558
|
-
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);
|
|
17559
|
-
for (let i = 1; i < extend.length; i++)
|
|
17560
|
-
extend[i] += extend[i - 1];
|
|
17561
|
-
function isExtendingChar(code) {
|
|
17562
|
-
for (let i = 1; i < extend.length; i += 2)
|
|
17563
|
-
if (extend[i] > code)
|
|
17564
|
-
return extend[i - 1] <= code;
|
|
17565
|
-
return false;
|
|
17566
|
-
}
|
|
17567
|
-
function isRegionalIndicator(code) {
|
|
17568
|
-
return code >= 127462 && code <= 127487;
|
|
17569
|
-
}
|
|
17570
|
-
const ZWJ = 8205;
|
|
17571
17690
|
function findClusterBreak(str, pos, forward = true, includeExtending = true) {
|
|
17572
|
-
return (
|
|
17573
|
-
}
|
|
17574
|
-
function nextClusterBreak(str, pos, includeExtending) {
|
|
17575
|
-
if (pos == str.length)
|
|
17576
|
-
return pos;
|
|
17577
|
-
if (pos && surrogateLow(str.charCodeAt(pos)) && surrogateHigh(str.charCodeAt(pos - 1)))
|
|
17578
|
-
pos--;
|
|
17579
|
-
let prev = codePointAt(str, pos);
|
|
17580
|
-
pos += codePointSize(prev);
|
|
17581
|
-
while (pos < str.length) {
|
|
17582
|
-
let next = codePointAt(str, pos);
|
|
17583
|
-
if (prev == ZWJ || next == ZWJ || includeExtending && isExtendingChar(next)) {
|
|
17584
|
-
pos += codePointSize(next);
|
|
17585
|
-
prev = next;
|
|
17586
|
-
} else if (isRegionalIndicator(next)) {
|
|
17587
|
-
let countBefore = 0, i = pos - 2;
|
|
17588
|
-
while (i >= 0 && isRegionalIndicator(codePointAt(str, i))) {
|
|
17589
|
-
countBefore++;
|
|
17590
|
-
i -= 2;
|
|
17591
|
-
}
|
|
17592
|
-
if (countBefore % 2 == 0)
|
|
17593
|
-
break;
|
|
17594
|
-
else
|
|
17595
|
-
pos += 2;
|
|
17596
|
-
} else {
|
|
17597
|
-
break;
|
|
17598
|
-
}
|
|
17599
|
-
}
|
|
17600
|
-
return pos;
|
|
17601
|
-
}
|
|
17602
|
-
function prevClusterBreak(str, pos, includeExtending) {
|
|
17603
|
-
while (pos > 0) {
|
|
17604
|
-
let found = nextClusterBreak(str, pos - 2, includeExtending);
|
|
17605
|
-
if (found < pos)
|
|
17606
|
-
return found;
|
|
17607
|
-
pos--;
|
|
17608
|
-
}
|
|
17609
|
-
return 0;
|
|
17691
|
+
return findClusterBreak$1(str, pos, forward, includeExtending);
|
|
17610
17692
|
}
|
|
17611
17693
|
function surrogateLow(ch) {
|
|
17612
17694
|
return ch >= 56320 && ch < 57344;
|
|
@@ -17736,7 +17818,7 @@ class ChangeDesc {
|
|
|
17736
17818
|
Map this description, which should start with the same document
|
|
17737
17819
|
as `other`, over another set of changes, so that it can be
|
|
17738
17820
|
applied after it. When `before` is true, map as if the changes
|
|
17739
|
-
in `
|
|
17821
|
+
in `this` happened before the ones in `other`.
|
|
17740
17822
|
*/
|
|
17741
17823
|
mapDesc(other, before = false) {
|
|
17742
17824
|
return other.empty ? this : mapSet(this, other, before);
|
|
@@ -18037,7 +18119,7 @@ function addSection(sections, len, ins, forceJoin = false) {
|
|
|
18037
18119
|
let last = sections.length - 2;
|
|
18038
18120
|
if (last >= 0 && ins <= 0 && ins == sections[last + 1])
|
|
18039
18121
|
sections[last] += len;
|
|
18040
|
-
else if (len == 0 && sections[last] == 0)
|
|
18122
|
+
else if (last >= 0 && len == 0 && sections[last] == 0)
|
|
18041
18123
|
sections[last + 1] += ins;
|
|
18042
18124
|
else if (forceJoin) {
|
|
18043
18125
|
sections[last] += len;
|
|
@@ -18086,7 +18168,9 @@ function mapSet(setA, setB, before, mkSet = false) {
|
|
|
18086
18168
|
let sections = [], insert2 = mkSet ? [] : null;
|
|
18087
18169
|
let a2 = new SectionIter(setA), b2 = new SectionIter(setB);
|
|
18088
18170
|
for (let inserted = -1; ; ) {
|
|
18089
|
-
if (a2.
|
|
18171
|
+
if (a2.done && b2.len || b2.done && a2.len) {
|
|
18172
|
+
throw new Error("Mismatched change set lengths");
|
|
18173
|
+
} else if (a2.ins == -1 && b2.ins == -1) {
|
|
18090
18174
|
let len = Math.min(a2.len, b2.len);
|
|
18091
18175
|
addSection(sections, len, -1);
|
|
18092
18176
|
a2.forward(len);
|
|
@@ -20317,7 +20401,7 @@ function compare(a2, startA, b2, startB, length, comparator) {
|
|
|
20317
20401
|
let endB = startB + length;
|
|
20318
20402
|
let pos = startB, dPos = startB - startA;
|
|
20319
20403
|
for (; ; ) {
|
|
20320
|
-
let
|
|
20404
|
+
let dEnd = a2.to + dPos - b2.to, diff = dEnd || a2.endSide - b2.endSide;
|
|
20321
20405
|
let end = diff < 0 ? a2.to + dPos : b2.to, clipEnd = Math.min(end, endB);
|
|
20322
20406
|
if (a2.point || b2.point) {
|
|
20323
20407
|
if (!(a2.point && b2.point && (a2.point == b2.point || a2.point.eq(b2.point)) && sameValues(a2.activeForPoint(a2.to), b2.activeForPoint(b2.to))))
|
|
@@ -20328,6 +20412,8 @@ function compare(a2, startA, b2, startB, length, comparator) {
|
|
|
20328
20412
|
}
|
|
20329
20413
|
if (end > endB)
|
|
20330
20414
|
break;
|
|
20415
|
+
if ((dEnd || a2.openEnd != b2.openEnd) && comparator.boundChange)
|
|
20416
|
+
comparator.boundChange(end);
|
|
20331
20417
|
pos = end;
|
|
20332
20418
|
if (diff <= 0)
|
|
20333
20419
|
a2.next();
|
|
@@ -20364,7 +20450,7 @@ function findMinIndex(value, array) {
|
|
|
20364
20450
|
}
|
|
20365
20451
|
function countColumn(string2, tabSize, to = string2.length) {
|
|
20366
20452
|
let n2 = 0;
|
|
20367
|
-
for (let i = 0; i < to; ) {
|
|
20453
|
+
for (let i = 0; i < to && i < string2.length; ) {
|
|
20368
20454
|
if (string2.charCodeAt(i) == 9) {
|
|
20369
20455
|
n2 += tabSize - n2 % tabSize;
|
|
20370
20456
|
i++;
|
|
@@ -21016,7 +21102,7 @@ class ContentView {
|
|
|
21016
21102
|
child.reuseDOM(next);
|
|
21017
21103
|
}
|
|
21018
21104
|
child.sync(view, track);
|
|
21019
|
-
child.flags &=
|
|
21105
|
+
child.flags &= -8;
|
|
21020
21106
|
}
|
|
21021
21107
|
next = prev ? prev.nextSibling : parent.firstChild;
|
|
21022
21108
|
if (track && !track.written && track.node == parent && next != child.dom)
|
|
@@ -21038,7 +21124,7 @@ class ContentView {
|
|
|
21038
21124
|
for (let child of this.children)
|
|
21039
21125
|
if (child.flags & 7) {
|
|
21040
21126
|
child.sync(view, track);
|
|
21041
|
-
child.flags &=
|
|
21127
|
+
child.flags &= -8;
|
|
21042
21128
|
}
|
|
21043
21129
|
}
|
|
21044
21130
|
}
|
|
@@ -23062,6 +23148,15 @@ class ViewUpdate {
|
|
|
23062
23148
|
return (this.flags & 4) > 0;
|
|
23063
23149
|
}
|
|
23064
23150
|
/**
|
|
23151
|
+
Returns true when
|
|
23152
|
+
[`viewportChanged`](https://codemirror.net/6/docs/ref/#view.ViewUpdate.viewportChanged) is true
|
|
23153
|
+
and the viewport change is not just the result of mapping it in
|
|
23154
|
+
response to document changes.
|
|
23155
|
+
*/
|
|
23156
|
+
get viewportMoved() {
|
|
23157
|
+
return (this.flags & 8) > 0;
|
|
23158
|
+
}
|
|
23159
|
+
/**
|
|
23065
23160
|
Indicates whether the height of a block element in the editor
|
|
23066
23161
|
changed in this update.
|
|
23067
23162
|
*/
|
|
@@ -23073,7 +23168,7 @@ class ViewUpdate {
|
|
|
23073
23168
|
editor, or elements within the editor, changed.
|
|
23074
23169
|
*/
|
|
23075
23170
|
get geometryChanged() {
|
|
23076
|
-
return this.docChanged || (this.flags & (
|
|
23171
|
+
return this.docChanged || (this.flags & (16 | 2)) > 0;
|
|
23077
23172
|
}
|
|
23078
23173
|
/**
|
|
23079
23174
|
True when this update indicates a focus change.
|
|
@@ -23180,13 +23275,13 @@ class DocView extends ContentView {
|
|
|
23180
23275
|
this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
|
|
23181
23276
|
let track = browser.chrome || browser.ios ? { node: observer.selectionRange.focusNode, written: false } : void 0;
|
|
23182
23277
|
this.sync(this.view, track);
|
|
23183
|
-
this.flags &=
|
|
23278
|
+
this.flags &= -8;
|
|
23184
23279
|
if (track && (track.written || observer.selectionRange.focusNode != track.node))
|
|
23185
23280
|
this.forceSelection = true;
|
|
23186
23281
|
this.dom.style.height = "";
|
|
23187
23282
|
});
|
|
23188
23283
|
this.markedForComposition.forEach(
|
|
23189
|
-
(cView) => cView.flags &=
|
|
23284
|
+
(cView) => cView.flags &= -9
|
|
23190
23285
|
/* ViewFlag.Composition */
|
|
23191
23286
|
);
|
|
23192
23287
|
let gaps = [];
|
|
@@ -23275,7 +23370,7 @@ class DocView extends ContentView {
|
|
|
23275
23370
|
if (mustRead || !this.view.observer.selectionRange.focusNode)
|
|
23276
23371
|
this.view.observer.readSelectionRange();
|
|
23277
23372
|
let activeElt = this.view.root.activeElement, focused = activeElt == this.dom;
|
|
23278
|
-
let selectionNotFocus = !focused && hasSelection(this.dom, this.view.observer.selectionRange) && !(activeElt && this.dom.contains(activeElt));
|
|
23373
|
+
let selectionNotFocus = !focused && !(this.view.state.facet(editable) || this.dom.tabIndex > -1) && hasSelection(this.dom, this.view.observer.selectionRange) && !(activeElt && this.dom.contains(activeElt));
|
|
23279
23374
|
if (!(focused || fromPointer || selectionNotFocus))
|
|
23280
23375
|
return;
|
|
23281
23376
|
let force = this.forceSelection;
|
|
@@ -23673,6 +23768,9 @@ let DecorationComparator$1 = class DecorationComparator {
|
|
|
23673
23768
|
comparePoint(from, to) {
|
|
23674
23769
|
addRange(from, to, this.changes);
|
|
23675
23770
|
}
|
|
23771
|
+
boundChange(pos) {
|
|
23772
|
+
addRange(pos, pos, this.changes);
|
|
23773
|
+
}
|
|
23676
23774
|
};
|
|
23677
23775
|
function findChangedDeco(a2, b2, diff) {
|
|
23678
23776
|
let comp = new DecorationComparator$1();
|
|
@@ -24200,16 +24298,16 @@ function applyDOMChange(view, domChange) {
|
|
|
24200
24298
|
return false;
|
|
24201
24299
|
if (!change && domChange.typeOver && !sel.empty && newSel && newSel.main.empty) {
|
|
24202
24300
|
change = { from: sel.from, to: sel.to, insert: view.state.doc.slice(sel.from, sel.to) };
|
|
24301
|
+
} else if ((browser.mac || browser.android) && change && change.from == change.to && change.from == sel.head - 1 && /^\. ?$/.test(change.insert.toString()) && view.contentDOM.getAttribute("autocorrect") == "off") {
|
|
24302
|
+
if (newSel && change.insert.length == 2)
|
|
24303
|
+
newSel = EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);
|
|
24304
|
+
change = { from: change.from, to: change.to, insert: Text.of([change.insert.toString().replace(".", " ")]) };
|
|
24203
24305
|
} else if (change && change.from >= sel.from && change.to <= sel.to && (change.from != sel.from || change.to != sel.to) && sel.to - sel.from - (change.to - change.from) <= 4) {
|
|
24204
24306
|
change = {
|
|
24205
24307
|
from: sel.from,
|
|
24206
24308
|
to: sel.to,
|
|
24207
24309
|
insert: view.state.doc.slice(sel.from, change.from).append(change.insert).append(view.state.doc.slice(change.to, sel.to))
|
|
24208
24310
|
};
|
|
24209
|
-
} else if ((browser.mac || browser.android) && change && change.from == change.to && change.from == sel.head - 1 && /^\. ?$/.test(change.insert.toString()) && view.contentDOM.getAttribute("autocorrect") == "off") {
|
|
24210
|
-
if (newSel && change.insert.length == 2)
|
|
24211
|
-
newSel = EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);
|
|
24212
|
-
change = { from: sel.from, to: sel.to, insert: Text.of([" "]) };
|
|
24213
24311
|
} else if (browser.chrome && change && change.from == change.to && change.from == sel.head && change.insert.toString() == "\n " && view.lineWrapping) {
|
|
24214
24312
|
if (newSel)
|
|
24215
24313
|
newSel = EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);
|
|
@@ -24843,15 +24941,15 @@ function basicMouseSelection(view, event) {
|
|
|
24843
24941
|
startSel = startSel.map(update.changes);
|
|
24844
24942
|
}
|
|
24845
24943
|
},
|
|
24846
|
-
get(event2,
|
|
24944
|
+
get(event2, extend, multiple) {
|
|
24847
24945
|
let cur2 = queryPos(view, event2), removed;
|
|
24848
24946
|
let range = rangeForClick(view, cur2.pos, cur2.bias, type);
|
|
24849
|
-
if (start.pos != cur2.pos && !
|
|
24947
|
+
if (start.pos != cur2.pos && !extend) {
|
|
24850
24948
|
let startRange = rangeForClick(view, start.pos, start.bias, type);
|
|
24851
24949
|
let from = Math.min(startRange.from, range.from), to = Math.max(startRange.to, range.to);
|
|
24852
24950
|
range = from < range.from ? EditorSelection.range(from, to) : EditorSelection.range(to, from);
|
|
24853
24951
|
}
|
|
24854
|
-
if (
|
|
24952
|
+
if (extend)
|
|
24855
24953
|
return startSel.replaceRange(startSel.main.extend(range.from, range.to));
|
|
24856
24954
|
else if (multiple && type == 1 && startSel.ranges.length > 1 && (removed = removeRangeAround(startSel, cur2.pos)))
|
|
24857
24955
|
return removed;
|
|
@@ -25269,7 +25367,7 @@ class HeightMap {
|
|
|
25269
25367
|
return (this.flags & 2) > 0;
|
|
25270
25368
|
}
|
|
25271
25369
|
set outdated(value) {
|
|
25272
|
-
this.flags = (value ? 2 : 0) | this.flags &
|
|
25370
|
+
this.flags = (value ? 2 : 0) | this.flags & -3;
|
|
25273
25371
|
}
|
|
25274
25372
|
setHeight(height) {
|
|
25275
25373
|
if (this.height != height) {
|
|
@@ -25845,6 +25943,10 @@ function visiblePixelRange(dom, paddingTop) {
|
|
|
25845
25943
|
bottom: Math.max(top2, bottom) - (rect.top + paddingTop)
|
|
25846
25944
|
};
|
|
25847
25945
|
}
|
|
25946
|
+
function inWindow(elt) {
|
|
25947
|
+
let rect = elt.getBoundingClientRect(), win = elt.ownerDocument.defaultView || window;
|
|
25948
|
+
return rect.left < win.innerWidth && rect.right > 0 && rect.top < win.innerHeight && rect.bottom > 0;
|
|
25949
|
+
}
|
|
25848
25950
|
function fullPixelRange(dom, paddingTop) {
|
|
25849
25951
|
let rect = dom.getBoundingClientRect();
|
|
25850
25952
|
return {
|
|
@@ -25991,7 +26093,7 @@ class ViewState {
|
|
|
25991
26093
|
this.updateViewportLines();
|
|
25992
26094
|
if (this.lineGaps.length || this.viewport.to - this.viewport.from > 2e3 << 1)
|
|
25993
26095
|
this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, update.changes)));
|
|
25994
|
-
update.flags |= this.computeVisibleRanges();
|
|
26096
|
+
update.flags |= this.computeVisibleRanges(update.changes);
|
|
25995
26097
|
if (scrollTarget)
|
|
25996
26098
|
this.scrollTarget = scrollTarget;
|
|
25997
26099
|
if (!this.mustEnforceCursorAssoc && update.selectionSet && update.view.lineWrapping && update.state.selection.main.empty && update.state.selection.main.assoc && !update.state.facet(nativeSelectionHidden))
|
|
@@ -26013,7 +26115,7 @@ class ViewState {
|
|
|
26013
26115
|
if (scaleX > 5e-3 && Math.abs(this.scaleX - scaleX) > 5e-3 || scaleY > 5e-3 && Math.abs(this.scaleY - scaleY) > 5e-3) {
|
|
26014
26116
|
this.scaleX = scaleX;
|
|
26015
26117
|
this.scaleY = scaleY;
|
|
26016
|
-
result |=
|
|
26118
|
+
result |= 16;
|
|
26017
26119
|
refresh = measureContent = true;
|
|
26018
26120
|
}
|
|
26019
26121
|
}
|
|
@@ -26022,13 +26124,13 @@ class ViewState {
|
|
|
26022
26124
|
if (this.paddingTop != paddingTop || this.paddingBottom != paddingBottom) {
|
|
26023
26125
|
this.paddingTop = paddingTop;
|
|
26024
26126
|
this.paddingBottom = paddingBottom;
|
|
26025
|
-
result |=
|
|
26127
|
+
result |= 16 | 2;
|
|
26026
26128
|
}
|
|
26027
26129
|
if (this.editorWidth != view.scrollDOM.clientWidth) {
|
|
26028
26130
|
if (oracle.lineWrapping)
|
|
26029
26131
|
measureContent = true;
|
|
26030
26132
|
this.editorWidth = view.scrollDOM.clientWidth;
|
|
26031
|
-
result |=
|
|
26133
|
+
result |= 16;
|
|
26032
26134
|
}
|
|
26033
26135
|
let scrollTop = view.scrollDOM.scrollTop * this.scaleY;
|
|
26034
26136
|
if (this.scrollTop != scrollTop) {
|
|
@@ -26045,13 +26147,13 @@ class ViewState {
|
|
|
26045
26147
|
if (inView)
|
|
26046
26148
|
measureContent = true;
|
|
26047
26149
|
}
|
|
26048
|
-
if (!this.inView && !this.scrollTarget)
|
|
26150
|
+
if (!this.inView && !this.scrollTarget && !inWindow(view.dom))
|
|
26049
26151
|
return 0;
|
|
26050
26152
|
let contentWidth = domRect.width;
|
|
26051
26153
|
if (this.contentDOMWidth != contentWidth || this.editorHeight != view.scrollDOM.clientHeight) {
|
|
26052
26154
|
this.contentDOMWidth = domRect.width;
|
|
26053
26155
|
this.editorHeight = view.scrollDOM.clientHeight;
|
|
26054
|
-
result |=
|
|
26156
|
+
result |= 16;
|
|
26055
26157
|
}
|
|
26056
26158
|
if (measureContent) {
|
|
26057
26159
|
let lineHeights = view.docView.measureVisibleLineHeights(this.viewport);
|
|
@@ -26062,7 +26164,7 @@ class ViewState {
|
|
|
26062
26164
|
refresh = lineHeight > 0 && oracle.refresh(whiteSpace, lineHeight, charWidth, textHeight, contentWidth / charWidth, lineHeights);
|
|
26063
26165
|
if (refresh) {
|
|
26064
26166
|
view.docView.minWidth = 0;
|
|
26065
|
-
result |=
|
|
26167
|
+
result |= 16;
|
|
26066
26168
|
}
|
|
26067
26169
|
}
|
|
26068
26170
|
if (dTop > 0 && dBottom > 0)
|
|
@@ -26264,7 +26366,7 @@ class ViewState {
|
|
|
26264
26366
|
this.lineGapDeco = Decoration.set(gaps.map((gap) => gap.draw(this, this.heightOracle.lineWrapping)));
|
|
26265
26367
|
}
|
|
26266
26368
|
}
|
|
26267
|
-
computeVisibleRanges() {
|
|
26369
|
+
computeVisibleRanges(changes) {
|
|
26268
26370
|
let deco = this.stateDeco;
|
|
26269
26371
|
if (this.lineGaps.length)
|
|
26270
26372
|
deco = deco.concat(this.lineGapDeco);
|
|
@@ -26276,9 +26378,21 @@ class ViewState {
|
|
|
26276
26378
|
point() {
|
|
26277
26379
|
}
|
|
26278
26380
|
}, 20);
|
|
26279
|
-
let changed =
|
|
26381
|
+
let changed = 0;
|
|
26382
|
+
if (ranges.length != this.visibleRanges.length) {
|
|
26383
|
+
changed = 8 | 4;
|
|
26384
|
+
} else {
|
|
26385
|
+
for (let i = 0; i < ranges.length && !(changed & 8); i++) {
|
|
26386
|
+
let old = this.visibleRanges[i], nw = ranges[i];
|
|
26387
|
+
if (old.from != nw.from || old.to != nw.to) {
|
|
26388
|
+
changed |= 4;
|
|
26389
|
+
if (!(changes && changes.mapPos(old.from, -1) == nw.from && changes.mapPos(old.to, 1) == nw.to))
|
|
26390
|
+
changed |= 8;
|
|
26391
|
+
}
|
|
26392
|
+
}
|
|
26393
|
+
}
|
|
26280
26394
|
this.visibleRanges = ranges;
|
|
26281
|
-
return changed
|
|
26395
|
+
return changed;
|
|
26282
26396
|
}
|
|
26283
26397
|
lineBlockAt(pos) {
|
|
26284
26398
|
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);
|
|
@@ -27150,7 +27264,7 @@ class EditContextManager {
|
|
|
27150
27264
|
selectionEnd: this.toContextPos(view.state.selection.main.head)
|
|
27151
27265
|
});
|
|
27152
27266
|
this.handlers.textupdate = (e2) => {
|
|
27153
|
-
let
|
|
27267
|
+
let main = view.state.selection.main, { anchor, head } = main;
|
|
27154
27268
|
let from = this.toEditorPos(e2.updateRangeStart), to = this.toEditorPos(e2.updateRangeEnd);
|
|
27155
27269
|
if (view.inputState.composing >= 0 && !this.composing)
|
|
27156
27270
|
this.composing = { contextBase: e2.updateRangeStart, editorBase: from, drifted: false };
|
|
@@ -27159,11 +27273,19 @@ class EditContextManager {
|
|
|
27159
27273
|
change.from = anchor;
|
|
27160
27274
|
else if (change.to == this.to && anchor > this.to)
|
|
27161
27275
|
change.to = anchor;
|
|
27162
|
-
if (change.from == change.to && !change.insert.length)
|
|
27276
|
+
if (change.from == change.to && !change.insert.length) {
|
|
27277
|
+
let newSel = EditorSelection.single(this.toEditorPos(e2.selectionStart), this.toEditorPos(e2.selectionEnd));
|
|
27278
|
+
if (!newSel.main.eq(main))
|
|
27279
|
+
view.dispatch({ selection: newSel, userEvent: "select" });
|
|
27163
27280
|
return;
|
|
27281
|
+
}
|
|
27282
|
+
if ((browser.mac || browser.android) && change.from == head - 1 && /^\. ?$/.test(e2.text) && view.contentDOM.getAttribute("autocorrect") == "off")
|
|
27283
|
+
change = { from, to, insert: Text.of([e2.text.replace(".", " ")]) };
|
|
27164
27284
|
this.pendingContextChange = change;
|
|
27165
|
-
if (!view.state.readOnly)
|
|
27166
|
-
|
|
27285
|
+
if (!view.state.readOnly) {
|
|
27286
|
+
let newLen = this.to - this.from + (change.to - change.from + change.insert.length);
|
|
27287
|
+
applyDOMChangeInner(view, change, EditorSelection.single(this.toEditorPos(e2.selectionStart, newLen), this.toEditorPos(e2.selectionEnd, newLen)));
|
|
27288
|
+
}
|
|
27167
27289
|
if (this.pendingContextChange) {
|
|
27168
27290
|
this.revertPending(view.state);
|
|
27169
27291
|
this.setSelection(view.state);
|
|
@@ -27183,8 +27305,11 @@ class EditContextManager {
|
|
|
27183
27305
|
for (let format of e2.getTextFormats()) {
|
|
27184
27306
|
let lineStyle = format.underlineStyle, thickness = format.underlineThickness;
|
|
27185
27307
|
if (lineStyle != "None" && thickness != "None") {
|
|
27186
|
-
let
|
|
27187
|
-
|
|
27308
|
+
let from = this.toEditorPos(format.rangeStart), to = this.toEditorPos(format.rangeEnd);
|
|
27309
|
+
if (from < to) {
|
|
27310
|
+
let style = `text-decoration: underline ${lineStyle == "Dashed" ? "dashed " : lineStyle == "Squiggle" ? "wavy " : ""}${thickness == "Thin" ? 1 : 2}px`;
|
|
27311
|
+
deco.push(Decoration.mark({ attributes: { style } }).range(from, to));
|
|
27312
|
+
}
|
|
27188
27313
|
}
|
|
27189
27314
|
}
|
|
27190
27315
|
view.dispatch({ effects: setEditContextFormatting.of(Decoration.set(deco)) });
|
|
@@ -27298,7 +27423,8 @@ class EditContextManager {
|
|
|
27298
27423
|
let { head } = state.selection.main;
|
|
27299
27424
|
return !(this.from > 0 && head - this.from < 500 || this.to < state.doc.length && this.to - head < 500 || this.to - this.from > 1e4 * 3);
|
|
27300
27425
|
}
|
|
27301
|
-
toEditorPos(contextPos) {
|
|
27426
|
+
toEditorPos(contextPos, clipLen = this.to - this.from) {
|
|
27427
|
+
contextPos = Math.min(contextPos, clipLen);
|
|
27302
27428
|
let c2 = this.composing;
|
|
27303
27429
|
return c2 && c2.drifted ? c2.editorBase + (contextPos - c2.contextBase) : contextPos + this.from;
|
|
27304
27430
|
}
|
|
@@ -27727,6 +27853,7 @@ class EditorView {
|
|
|
27727
27853
|
spellcheck: "false",
|
|
27728
27854
|
autocorrect: "off",
|
|
27729
27855
|
autocapitalize: "off",
|
|
27856
|
+
writingsuggestions: "false",
|
|
27730
27857
|
translate: "no",
|
|
27731
27858
|
contenteditable: !this.state.facet(editable) ? "false" : "true",
|
|
27732
27859
|
class: "cm-content",
|
|
@@ -28570,14 +28697,7 @@ function rectanglesForRange(view, className, range) {
|
|
|
28570
28697
|
return pieces(top2).concat(between).concat(pieces(bottom));
|
|
28571
28698
|
}
|
|
28572
28699
|
function piece(left, top2, right, bottom) {
|
|
28573
|
-
return new RectangleMarker(
|
|
28574
|
-
className,
|
|
28575
|
-
left - base2.left,
|
|
28576
|
-
top2 - base2.top - 0.01,
|
|
28577
|
-
right - left,
|
|
28578
|
-
bottom - top2 + 0.01
|
|
28579
|
-
/* C.Epsilon */
|
|
28580
|
-
);
|
|
28700
|
+
return new RectangleMarker(className, left - base2.left, top2 - base2.top, right - left, bottom - top2);
|
|
28581
28701
|
}
|
|
28582
28702
|
function pieces({ top: top2, bottom, horizontal }) {
|
|
28583
28703
|
let pieces2 = [];
|
|
@@ -28710,7 +28830,7 @@ function layer(config2) {
|
|
|
28710
28830
|
layerOrder.of(config2)
|
|
28711
28831
|
];
|
|
28712
28832
|
}
|
|
28713
|
-
const CanHidePrimary = !browser.ios;
|
|
28833
|
+
const CanHidePrimary = !(browser.ios && browser.webkit && browser.webkit_version < 534);
|
|
28714
28834
|
const selectionConfig = /* @__PURE__ */ Facet.define({
|
|
28715
28835
|
combine(configs) {
|
|
28716
28836
|
return combineConfig(configs, {
|
|
@@ -28951,12 +29071,12 @@ class MatchDecorator {
|
|
|
28951
29071
|
let changeFrom = 1e9, changeTo = -1;
|
|
28952
29072
|
if (update.docChanged)
|
|
28953
29073
|
update.changes.iterChanges((_f, _t, from, to) => {
|
|
28954
|
-
if (to
|
|
29074
|
+
if (to >= update.view.viewport.from && from <= update.view.viewport.to) {
|
|
28955
29075
|
changeFrom = Math.min(from, changeFrom);
|
|
28956
29076
|
changeTo = Math.max(to, changeTo);
|
|
28957
29077
|
}
|
|
28958
29078
|
});
|
|
28959
|
-
if (update.
|
|
29079
|
+
if (update.viewportMoved || changeTo - changeFrom > 1e3)
|
|
28960
29080
|
return this.createDeco(update.view);
|
|
28961
29081
|
if (changeTo > -1)
|
|
28962
29082
|
return this.updateRange(update.view, deco.map(update.changes), changeFrom, changeTo);
|
|
@@ -29590,10 +29710,10 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
|
|
|
29590
29710
|
}
|
|
29591
29711
|
if (this.position == "absolute") {
|
|
29592
29712
|
dom.style.top = (top2 - measured.parent.top) / scaleY + "px";
|
|
29593
|
-
dom
|
|
29713
|
+
setLeftStyle(dom, (left - measured.parent.left) / scaleX);
|
|
29594
29714
|
} else {
|
|
29595
29715
|
dom.style.top = top2 / scaleY + "px";
|
|
29596
|
-
dom
|
|
29716
|
+
setLeftStyle(dom, left / scaleX);
|
|
29597
29717
|
}
|
|
29598
29718
|
if (arrow2) {
|
|
29599
29719
|
let arrowLeft = pos.left + (ltr ? offset2.x : -offset2.x) - (left + 14 - 7);
|
|
@@ -29626,6 +29746,11 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
|
|
|
29626
29746
|
}
|
|
29627
29747
|
}
|
|
29628
29748
|
});
|
|
29749
|
+
function setLeftStyle(elt, value) {
|
|
29750
|
+
let current = parseInt(elt.style.left, 10);
|
|
29751
|
+
if (isNaN(current) || Math.abs(value - current) > 1)
|
|
29752
|
+
elt.style.left = value + "px";
|
|
29753
|
+
}
|
|
29629
29754
|
const baseTheme$4 = /* @__PURE__ */ EditorView.baseTheme({
|
|
29630
29755
|
".cm-tooltip": {
|
|
29631
29756
|
zIndex: 500,
|
|
@@ -31214,10 +31339,10 @@ class IndentContext {
|
|
|
31214
31339
|
const indentNodeProp = /* @__PURE__ */ new NodeProp();
|
|
31215
31340
|
function syntaxIndentation(cx, ast, pos) {
|
|
31216
31341
|
let stack = ast.resolveStack(pos);
|
|
31217
|
-
let inner =
|
|
31342
|
+
let inner = ast.resolveInner(pos, -1).resolve(pos, 0).enterUnfinishedNodesBefore(pos);
|
|
31218
31343
|
if (inner != stack.node) {
|
|
31219
31344
|
let add2 = [];
|
|
31220
|
-
for (let cur2 = inner; cur2
|
|
31345
|
+
for (let cur2 = inner; cur2 && !(cur2.from == stack.node.from && cur2.type == stack.node.type); cur2 = cur2.parent)
|
|
31221
31346
|
add2.push(cur2);
|
|
31222
31347
|
for (let i = add2.length - 1; i >= 0; i--)
|
|
31223
31348
|
stack = { node: add2[i], next: stack };
|
|
@@ -32694,7 +32819,7 @@ const cursorLineBoundaryLeft = (view) => moveSel(view, (range) => moveByLineBoun
|
|
|
32694
32819
|
const cursorLineBoundaryRight = (view) => moveSel(view, (range) => moveByLineBoundary(view, range, ltrAtCursor(view)));
|
|
32695
32820
|
const cursorLineStart = (view) => moveSel(view, (range) => EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));
|
|
32696
32821
|
const cursorLineEnd = (view) => moveSel(view, (range) => EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));
|
|
32697
|
-
function toMatchingBracket(state, dispatch,
|
|
32822
|
+
function toMatchingBracket(state, dispatch, extend) {
|
|
32698
32823
|
let found = false, selection2 = updateSel(state.selection, (range) => {
|
|
32699
32824
|
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);
|
|
32700
32825
|
if (!matching || !matching.end)
|
|
@@ -35871,25 +35996,67 @@ class LintState {
|
|
|
35871
35996
|
let diagnosticFilter = state.facet(lintConfig).markerFilter;
|
|
35872
35997
|
if (diagnosticFilter)
|
|
35873
35998
|
markedDiagnostics = diagnosticFilter(markedDiagnostics, state);
|
|
35874
|
-
let
|
|
35875
|
-
|
|
35876
|
-
|
|
35877
|
-
|
|
35878
|
-
|
|
35879
|
-
|
|
35880
|
-
|
|
35881
|
-
|
|
35882
|
-
|
|
35883
|
-
|
|
35999
|
+
let sorted = diagnostics.slice().sort((a2, b2) => a2.from - b2.from || a2.to - b2.to);
|
|
36000
|
+
let deco = new RangeSetBuilder(), active = [], pos = 0;
|
|
36001
|
+
for (let i = 0; ; ) {
|
|
36002
|
+
let next = i == sorted.length ? null : sorted[i];
|
|
36003
|
+
if (!next && !active.length)
|
|
36004
|
+
break;
|
|
36005
|
+
let from, to;
|
|
36006
|
+
if (active.length) {
|
|
36007
|
+
from = pos;
|
|
36008
|
+
to = active.reduce((p2, d2) => Math.min(p2, d2.to), next && next.from > from ? next.from : 1e8);
|
|
36009
|
+
} else {
|
|
36010
|
+
from = next.from;
|
|
36011
|
+
to = next.to;
|
|
36012
|
+
active.push(next);
|
|
36013
|
+
i++;
|
|
36014
|
+
}
|
|
36015
|
+
while (i < sorted.length) {
|
|
36016
|
+
let next2 = sorted[i];
|
|
36017
|
+
if (next2.from == from && (next2.to > next2.from || next2.to == from)) {
|
|
36018
|
+
active.push(next2);
|
|
36019
|
+
i++;
|
|
36020
|
+
to = Math.min(next2.to, to);
|
|
36021
|
+
} else {
|
|
36022
|
+
to = Math.min(next2.from, to);
|
|
36023
|
+
break;
|
|
36024
|
+
}
|
|
36025
|
+
}
|
|
36026
|
+
let sev = maxSeverity(active);
|
|
36027
|
+
if (active.some((d2) => d2.from == d2.to || d2.from == d2.to - 1 && state.doc.lineAt(d2.from).to == d2.from)) {
|
|
36028
|
+
deco.add(from, from, Decoration.widget({
|
|
36029
|
+
widget: new DiagnosticWidget(sev),
|
|
36030
|
+
diagnostics: active.slice()
|
|
36031
|
+
}));
|
|
36032
|
+
} else {
|
|
36033
|
+
let markClass = active.reduce((c2, d2) => d2.markClass ? c2 + " " + d2.markClass : c2, "");
|
|
36034
|
+
deco.add(from, to, Decoration.mark({
|
|
36035
|
+
class: "cm-lintRange cm-lintRange-" + sev + markClass,
|
|
36036
|
+
diagnostics: active.slice(),
|
|
36037
|
+
inclusiveEnd: active.some((a2) => a2.to > to)
|
|
36038
|
+
}));
|
|
36039
|
+
}
|
|
36040
|
+
pos = to;
|
|
36041
|
+
for (let i2 = 0; i2 < active.length; i2++)
|
|
36042
|
+
if (active[i2].to <= pos)
|
|
36043
|
+
active.splice(i2--, 1);
|
|
36044
|
+
}
|
|
36045
|
+
let set = deco.finish();
|
|
36046
|
+
return new LintState(set, panel, findDiagnostic(set));
|
|
35884
36047
|
}
|
|
35885
36048
|
}
|
|
35886
36049
|
function findDiagnostic(diagnostics, diagnostic = null, after = 0) {
|
|
35887
36050
|
let found = null;
|
|
35888
36051
|
diagnostics.between(after, 1e9, (from, to, { spec }) => {
|
|
35889
|
-
if (diagnostic && spec.diagnostic
|
|
36052
|
+
if (diagnostic && spec.diagnostics.indexOf(diagnostic) < 0)
|
|
35890
36053
|
return;
|
|
35891
|
-
|
|
35892
|
-
|
|
36054
|
+
if (!found)
|
|
36055
|
+
found = new SelectedDiagnostic(from, to, diagnostic || spec.diagnostics[0]);
|
|
36056
|
+
else if (spec.diagnostics.indexOf(found.diagnostic) < 0)
|
|
36057
|
+
return false;
|
|
36058
|
+
else
|
|
36059
|
+
found = new SelectedDiagnostic(found.from, to, found.diagnostic);
|
|
35893
36060
|
});
|
|
35894
36061
|
return found;
|
|
35895
36062
|
}
|
|
@@ -35942,23 +36109,24 @@ const lintState = /* @__PURE__ */ StateField.define({
|
|
|
35942
36109
|
const activeMark = /* @__PURE__ */ Decoration.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
35943
36110
|
function lintTooltip(view, pos, side) {
|
|
35944
36111
|
let { diagnostics } = view.state.field(lintState);
|
|
35945
|
-
let found
|
|
36112
|
+
let found, start = -1, end = -1;
|
|
35946
36113
|
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, { spec }) => {
|
|
35947
36114
|
if (pos >= from && pos <= to && (from == to || (pos > from || side > 0) && (pos < to || side < 0))) {
|
|
35948
|
-
found
|
|
35949
|
-
|
|
35950
|
-
|
|
36115
|
+
found = spec.diagnostics;
|
|
36116
|
+
start = from;
|
|
36117
|
+
end = to;
|
|
36118
|
+
return false;
|
|
35951
36119
|
}
|
|
35952
36120
|
});
|
|
35953
36121
|
let diagnosticFilter = view.state.facet(lintConfig).tooltipFilter;
|
|
35954
|
-
if (diagnosticFilter)
|
|
36122
|
+
if (found && diagnosticFilter)
|
|
35955
36123
|
found = diagnosticFilter(found, view.state);
|
|
35956
|
-
if (!found
|
|
36124
|
+
if (!found)
|
|
35957
36125
|
return null;
|
|
35958
36126
|
return {
|
|
35959
|
-
pos:
|
|
35960
|
-
end
|
|
35961
|
-
above: view.state.doc.lineAt(
|
|
36127
|
+
pos: start,
|
|
36128
|
+
end,
|
|
36129
|
+
above: view.state.doc.lineAt(start).to < end,
|
|
35962
36130
|
create() {
|
|
35963
36131
|
return { dom: diagnosticsTooltip(view, found) };
|
|
35964
36132
|
}
|
|
@@ -36057,15 +36225,15 @@ function renderDiagnostic(view, diagnostic, inPanel) {
|
|
|
36057
36225
|
}), diagnostic.source && crelt("div", { class: "cm-diagnosticSource" }, diagnostic.source));
|
|
36058
36226
|
}
|
|
36059
36227
|
class DiagnosticWidget extends WidgetType {
|
|
36060
|
-
constructor(
|
|
36228
|
+
constructor(sev) {
|
|
36061
36229
|
super();
|
|
36062
|
-
this.
|
|
36230
|
+
this.sev = sev;
|
|
36063
36231
|
}
|
|
36064
36232
|
eq(other) {
|
|
36065
|
-
return other.
|
|
36233
|
+
return other.sev == this.sev;
|
|
36066
36234
|
}
|
|
36067
36235
|
toDOM() {
|
|
36068
|
-
return crelt("span", { class: "cm-lintPoint cm-lintPoint-" + this.
|
|
36236
|
+
return crelt("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
|
|
36069
36237
|
}
|
|
36070
36238
|
}
|
|
36071
36239
|
class PanelItem {
|
|
@@ -36141,33 +36309,39 @@ class LintPanel {
|
|
|
36141
36309
|
update() {
|
|
36142
36310
|
let { diagnostics, selected } = this.view.state.field(lintState);
|
|
36143
36311
|
let i = 0, needsSync = false, newSelectedItem = null;
|
|
36312
|
+
let seen = /* @__PURE__ */ new Set();
|
|
36144
36313
|
diagnostics.between(0, this.view.state.doc.length, (_start, _end, { spec }) => {
|
|
36145
|
-
let
|
|
36146
|
-
|
|
36147
|
-
|
|
36148
|
-
|
|
36149
|
-
|
|
36150
|
-
|
|
36151
|
-
|
|
36152
|
-
|
|
36153
|
-
|
|
36154
|
-
|
|
36155
|
-
|
|
36156
|
-
|
|
36157
|
-
|
|
36158
|
-
this.items.splice(i, found - i);
|
|
36314
|
+
for (let diagnostic of spec.diagnostics) {
|
|
36315
|
+
if (seen.has(diagnostic))
|
|
36316
|
+
continue;
|
|
36317
|
+
seen.add(diagnostic);
|
|
36318
|
+
let found = -1, item;
|
|
36319
|
+
for (let j = i; j < this.items.length; j++)
|
|
36320
|
+
if (this.items[j].diagnostic == diagnostic) {
|
|
36321
|
+
found = j;
|
|
36322
|
+
break;
|
|
36323
|
+
}
|
|
36324
|
+
if (found < 0) {
|
|
36325
|
+
item = new PanelItem(this.view, diagnostic);
|
|
36326
|
+
this.items.splice(i, 0, item);
|
|
36159
36327
|
needsSync = true;
|
|
36328
|
+
} else {
|
|
36329
|
+
item = this.items[found];
|
|
36330
|
+
if (found > i) {
|
|
36331
|
+
this.items.splice(i, found - i);
|
|
36332
|
+
needsSync = true;
|
|
36333
|
+
}
|
|
36160
36334
|
}
|
|
36161
|
-
|
|
36162
|
-
|
|
36163
|
-
|
|
36164
|
-
|
|
36165
|
-
|
|
36335
|
+
if (selected && item.diagnostic == selected.diagnostic) {
|
|
36336
|
+
if (!item.dom.hasAttribute("aria-selected")) {
|
|
36337
|
+
item.dom.setAttribute("aria-selected", "true");
|
|
36338
|
+
newSelectedItem = item;
|
|
36339
|
+
}
|
|
36340
|
+
} else if (item.dom.hasAttribute("aria-selected")) {
|
|
36341
|
+
item.dom.removeAttribute("aria-selected");
|
|
36166
36342
|
}
|
|
36167
|
-
|
|
36168
|
-
item.dom.removeAttribute("aria-selected");
|
|
36343
|
+
i++;
|
|
36169
36344
|
}
|
|
36170
|
-
i++;
|
|
36171
36345
|
});
|
|
36172
36346
|
while (i < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0)) {
|
|
36173
36347
|
needsSync = true;
|
|
@@ -36334,6 +36508,20 @@ const baseTheme = /* @__PURE__ */ EditorView.baseTheme({
|
|
|
36334
36508
|
}
|
|
36335
36509
|
}
|
|
36336
36510
|
});
|
|
36511
|
+
function severityWeight(sev) {
|
|
36512
|
+
return sev == "error" ? 4 : sev == "warning" ? 3 : sev == "info" ? 2 : 1;
|
|
36513
|
+
}
|
|
36514
|
+
function maxSeverity(diagnostics) {
|
|
36515
|
+
let sev = "hint", weight = 1;
|
|
36516
|
+
for (let d2 of diagnostics) {
|
|
36517
|
+
let w2 = severityWeight(d2.severity);
|
|
36518
|
+
if (w2 > weight) {
|
|
36519
|
+
weight = w2;
|
|
36520
|
+
sev = d2.severity;
|
|
36521
|
+
}
|
|
36522
|
+
}
|
|
36523
|
+
return sev;
|
|
36524
|
+
}
|
|
36337
36525
|
const lintExtensions = [
|
|
36338
36526
|
lintState,
|
|
36339
36527
|
/* @__PURE__ */ EditorView.decorations.compute([lintState], (state) => {
|
|
@@ -39119,7 +39307,7 @@ const Trigger$7 = React__namespace.forwardRef(
|
|
|
39119
39307
|
({ caretPosition = "left", description, icon: Icon2, iconProps, children, ...restProps }, forwardedRef) => {
|
|
39120
39308
|
const { size: size2 } = useAccordion("Trigger");
|
|
39121
39309
|
return /* @__PURE__ */ jsxRuntime.jsxs(AccordionTrigger, { $caretPosition: caretPosition, $size: size2, ref: forwardedRef, ...restProps, children: [
|
|
39122
|
-
caretPosition === "left" ? /* @__PURE__ */ jsxRuntime.jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
39310
|
+
caretPosition === "left" ? /* @__PURE__ */ jsxRuntime.jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4L, { width: size2 === "S" ? "1.2rem" : "1.6rem", height: size2 === "S" ? "1.2rem" : "1.6rem" }) }) : null,
|
|
39123
39311
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { tag: "span", gap: 2, children: [
|
|
39124
39312
|
Icon2 && size2 === "S" ? /* @__PURE__ */ jsxRuntime.jsx(IconBox$4, { children: /* @__PURE__ */ jsxRuntime.jsx(Icon2, { ...iconProps }) }) : null,
|
|
39125
39313
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { alignItems: "flex-start", direction: "column", tag: "span", ref: forwardedRef, children: [
|
|
@@ -39136,7 +39324,7 @@ const Trigger$7 = React__namespace.forwardRef(
|
|
|
39136
39324
|
description && size2 === "M" ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { textAlign: "left", children: description }) : null
|
|
39137
39325
|
] })
|
|
39138
39326
|
] }),
|
|
39139
|
-
caretPosition === "right" ? /* @__PURE__ */ jsxRuntime.jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
39327
|
+
caretPosition === "right" ? /* @__PURE__ */ jsxRuntime.jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4L, { width: size2 === "S" ? "1.2rem" : "1.6rem", height: size2 === "S" ? "1.2rem" : "1.6rem" }) }) : null
|
|
39140
39328
|
] });
|
|
39141
39329
|
}
|
|
39142
39330
|
);
|
|
@@ -39399,7 +39587,7 @@ const AlertIconWrapper = styled.styled(Flex)`
|
|
|
39399
39587
|
`;
|
|
39400
39588
|
const AlertIcon = ({ variant: variant2, ...props }) => {
|
|
39401
39589
|
if (variant2 === "success") {
|
|
39402
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
39590
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4v, { ...props });
|
|
39403
39591
|
}
|
|
39404
39592
|
if (variant2 === "danger" || variant2 === "warning") {
|
|
39405
39593
|
return /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$3, { ...props });
|
|
@@ -39465,7 +39653,7 @@ const Alert = ({
|
|
|
39465
39653
|
marginTop: 1,
|
|
39466
39654
|
onClick: onClose,
|
|
39467
39655
|
color: "neutral700",
|
|
39468
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(AccessibleIcon, { label: closeLabel, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
39656
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccessibleIcon, { label: closeLabel, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$3$, {}) })
|
|
39469
39657
|
}
|
|
39470
39658
|
)
|
|
39471
39659
|
]
|
|
@@ -40296,7 +40484,7 @@ const Link = forwardRef(
|
|
|
40296
40484
|
startIcon,
|
|
40297
40485
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { textColor: disabled ? "neutral600" : "primary600", children }),
|
|
40298
40486
|
endIcon,
|
|
40299
|
-
href && !endIcon && isExternal && /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
40487
|
+
href && !endIcon && isExternal && /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$3z, {})
|
|
40300
40488
|
] });
|
|
40301
40489
|
}
|
|
40302
40490
|
);
|
|
@@ -40319,6 +40507,10 @@ const LinkWrapper$1 = styled.styled(BaseLinkImpl)`
|
|
|
40319
40507
|
& > span {
|
|
40320
40508
|
color: ${({ theme: theme2 }) => theme2.colors.primary500};
|
|
40321
40509
|
}
|
|
40510
|
+
|
|
40511
|
+
svg path {
|
|
40512
|
+
fill: ${({ theme: theme2 }) => theme2.colors.primary500};
|
|
40513
|
+
}
|
|
40322
40514
|
}
|
|
40323
40515
|
|
|
40324
40516
|
&:active {
|
|
@@ -40329,13 +40521,13 @@ const LinkWrapper$1 = styled.styled(BaseLinkImpl)`
|
|
|
40329
40521
|
`;
|
|
40330
40522
|
const MenuRoot = $d08ef79370b62062$export$be92b6f5f03c0fe9;
|
|
40331
40523
|
const MenuTrigger = React__namespace.forwardRef(
|
|
40332
|
-
({ label, endIcon = /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
40524
|
+
({ label, endIcon = /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4L, { width: "1.2rem", height: "1.2rem", "aria-hidden": true }), tag = Button, icon, ...rest }, ref) => {
|
|
40333
40525
|
const props = {
|
|
40334
40526
|
...rest,
|
|
40335
40527
|
ref,
|
|
40336
40528
|
type: "button"
|
|
40337
40529
|
};
|
|
40338
|
-
return /* @__PURE__ */ jsxRuntime.jsx($d08ef79370b62062$export$41fb9f06171c75f4, { asChild: true, children: tag === IconButton ? /* @__PURE__ */ jsxRuntime.jsx(IconButton, { label, variant: "tertiary", ...props, children: icon }) : /* @__PURE__ */ jsxRuntime.jsx(Button, { endIcon, variant: "ghost", ...props }) });
|
|
40530
|
+
return /* @__PURE__ */ jsxRuntime.jsx($d08ef79370b62062$export$41fb9f06171c75f4, { asChild: true, disabled: props.disabled, children: tag === IconButton ? /* @__PURE__ */ jsxRuntime.jsx(IconButton, { label, variant: "tertiary", ...props, children: icon }) : /* @__PURE__ */ jsxRuntime.jsx(Button, { endIcon, variant: "ghost", ...props }) });
|
|
40339
40531
|
}
|
|
40340
40532
|
);
|
|
40341
40533
|
const MenuContent = React__namespace.forwardRef(
|
|
@@ -40456,7 +40648,7 @@ React__namespace.forwardRef(({ disabled = false, ...props }, ref) => {
|
|
|
40456
40648
|
...props,
|
|
40457
40649
|
children: [
|
|
40458
40650
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { children: props.children }),
|
|
40459
|
-
/* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
40651
|
+
/* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4p, { fill: "neutral500", height: "1.2rem", width: "1.2rem" })
|
|
40460
40652
|
]
|
|
40461
40653
|
}
|
|
40462
40654
|
) });
|
|
@@ -40775,8 +40967,8 @@ const Carousel = React__namespace.forwardRef(
|
|
|
40775
40967
|
position: "relative",
|
|
40776
40968
|
children: [
|
|
40777
40969
|
childrenArray && childrenArray.length > 1 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
40778
|
-
/* @__PURE__ */ jsxRuntime.jsx(CarouselAction, { tag: "button", onClick: onPrevious, $area: "startAction", ref: prevActionRef, type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(AccessibleIcon, { label: previousLabel, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
40779
|
-
/* @__PURE__ */ jsxRuntime.jsx(CarouselAction, { tag: "button", onClick: onNext, $area: "endAction", ref: nextActionRef, type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(AccessibleIcon, { label: nextLabel, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
40970
|
+
/* @__PURE__ */ jsxRuntime.jsx(CarouselAction, { tag: "button", onClick: onPrevious, $area: "startAction", ref: prevActionRef, type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(AccessibleIcon, { label: previousLabel, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4r, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) }),
|
|
40971
|
+
/* @__PURE__ */ jsxRuntime.jsx(CarouselAction, { tag: "button", onClick: onNext, $area: "endAction", ref: nextActionRef, type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(AccessibleIcon, { label: nextLabel, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4p, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) })
|
|
40780
40972
|
] }),
|
|
40781
40973
|
/* @__PURE__ */ jsxRuntime.jsx(CarouselSlides, { "aria-live": "polite", paddingLeft: 2, paddingRight: 2, width: "100%", overflow: "hidden", children: childrenArray }),
|
|
40782
40974
|
actions
|
|
@@ -42854,7 +43046,7 @@ lodash.exports;
|
|
|
42854
43046
|
return symbolToString ? symbolToString.call(value) : "";
|
|
42855
43047
|
}
|
|
42856
43048
|
var result2 = value + "";
|
|
42857
|
-
return result2 == "0" && 1 / value == -
|
|
43049
|
+
return result2 == "0" && 1 / value == -Infinity ? "-0" : result2;
|
|
42858
43050
|
}
|
|
42859
43051
|
function baseUniq(array, iteratee2, comparator) {
|
|
42860
43052
|
var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
|
@@ -43406,7 +43598,7 @@ lodash.exports;
|
|
|
43406
43598
|
bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
|
|
43407
43599
|
bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
|
|
43408
43600
|
if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
|
|
43409
|
-
bitmask &=
|
|
43601
|
+
bitmask &= -4;
|
|
43410
43602
|
}
|
|
43411
43603
|
var newData = [
|
|
43412
43604
|
func,
|
|
@@ -43462,7 +43654,7 @@ lodash.exports;
|
|
|
43462
43654
|
}
|
|
43463
43655
|
var length = partials ? partials.length : 0;
|
|
43464
43656
|
if (!length) {
|
|
43465
|
-
bitmask &=
|
|
43657
|
+
bitmask &= -97;
|
|
43466
43658
|
partials = holders = undefined$1;
|
|
43467
43659
|
}
|
|
43468
43660
|
ary2 = ary2 === undefined$1 ? ary2 : nativeMax(toInteger(ary2), 0);
|
|
@@ -43495,7 +43687,7 @@ lodash.exports;
|
|
|
43495
43687
|
holders = newData[4];
|
|
43496
43688
|
arity = newData[9] = newData[9] === undefined$1 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
|
|
43497
43689
|
if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
|
|
43498
|
-
bitmask &=
|
|
43690
|
+
bitmask &= -25;
|
|
43499
43691
|
}
|
|
43500
43692
|
if (!bitmask || bitmask == WRAP_BIND_FLAG) {
|
|
43501
43693
|
var result2 = createBind(func, bitmask, thisArg);
|
|
@@ -44061,7 +44253,7 @@ lodash.exports;
|
|
|
44061
44253
|
return value;
|
|
44062
44254
|
}
|
|
44063
44255
|
var result2 = value + "";
|
|
44064
|
-
return result2 == "0" && 1 / value == -
|
|
44256
|
+
return result2 == "0" && 1 / value == -Infinity ? "-0" : result2;
|
|
44065
44257
|
}
|
|
44066
44258
|
function toSource(func) {
|
|
44067
44259
|
if (func != null) {
|
|
@@ -45125,7 +45317,7 @@ lodash.exports;
|
|
|
45125
45317
|
}
|
|
45126
45318
|
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
45127
45319
|
function isSafeInteger(value) {
|
|
45128
|
-
return isInteger(value) && value >= -
|
|
45320
|
+
return isInteger(value) && value >= -9007199254740991 && value <= MAX_SAFE_INTEGER;
|
|
45129
45321
|
}
|
|
45130
45322
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
45131
45323
|
function isString(value) {
|
|
@@ -45166,7 +45358,7 @@ lodash.exports;
|
|
|
45166
45358
|
return value === 0 ? value : 0;
|
|
45167
45359
|
}
|
|
45168
45360
|
value = toNumber(value);
|
|
45169
|
-
if (value === INFINITY || value === -
|
|
45361
|
+
if (value === INFINITY || value === -Infinity) {
|
|
45170
45362
|
var sign = value < 0 ? -1 : 1;
|
|
45171
45363
|
return sign * MAX_INTEGER;
|
|
45172
45364
|
}
|
|
@@ -45201,7 +45393,7 @@ lodash.exports;
|
|
|
45201
45393
|
return copyObject(value, keysIn(value));
|
|
45202
45394
|
}
|
|
45203
45395
|
function toSafeInteger(value) {
|
|
45204
|
-
return value ? baseClamp(toInteger(value), -
|
|
45396
|
+
return value ? baseClamp(toInteger(value), -9007199254740991, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
|
|
45205
45397
|
}
|
|
45206
45398
|
function toString(value) {
|
|
45207
45399
|
return value == null ? "" : baseToString(value);
|
|
@@ -46916,10 +47108,10 @@ const Combobox = React__namespace.forwardRef(
|
|
|
46916
47108
|
"aria-label": clearLabel,
|
|
46917
47109
|
title: clearLabel,
|
|
46918
47110
|
ref: clearRef,
|
|
46919
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
47111
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$3$, {})
|
|
46920
47112
|
}
|
|
46921
47113
|
) : null,
|
|
46922
|
-
/* @__PURE__ */ jsxRuntime.jsx(DownIcon$1, { children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
47114
|
+
/* @__PURE__ */ jsxRuntime.jsx(DownIcon$1, { children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4L, { fill: "neutral500" }) })
|
|
46923
47115
|
] })
|
|
46924
47116
|
] }),
|
|
46925
47117
|
/* @__PURE__ */ jsxRuntime.jsx(Combobox$1$1.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(Content$5, { sideOffset: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(Viewport$1, { ref: viewportRef, children: [
|
|
@@ -47440,10 +47632,10 @@ const SelectTrigger = React__namespace.forwardRef(
|
|
|
47440
47632
|
"aria-label": clearLabel,
|
|
47441
47633
|
title: clearLabel,
|
|
47442
47634
|
cursor: "pointer",
|
|
47443
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
47635
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$3$, {})
|
|
47444
47636
|
}
|
|
47445
47637
|
) : null,
|
|
47446
|
-
/* @__PURE__ */ jsxRuntime.jsx(DownIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
47638
|
+
/* @__PURE__ */ jsxRuntime.jsx(DownIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4L, {}) })
|
|
47447
47639
|
] })
|
|
47448
47640
|
]
|
|
47449
47641
|
}
|
|
@@ -47839,7 +48031,7 @@ const DatePicker$1 = React__namespace.forwardRef(
|
|
|
47839
48031
|
value,
|
|
47840
48032
|
children: [
|
|
47841
48033
|
/* @__PURE__ */ jsxRuntime.jsxs(DatePickerTrigger, { className, hasError, size: size2, children: [
|
|
47842
|
-
/* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
48034
|
+
/* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4P, { fill: "neutral500", "aria-hidden": true }),
|
|
47843
48035
|
/* @__PURE__ */ jsxRuntime.jsx(DatePickerTextInput, { ref, "aria-describedby": ariaDescription, id, name: name2, ...restProps }),
|
|
47844
48036
|
textValue && onClear ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
47845
48037
|
IconBox$1,
|
|
@@ -47853,7 +48045,7 @@ const DatePicker$1 = React__namespace.forwardRef(
|
|
|
47853
48045
|
"aria-label": clearLabel,
|
|
47854
48046
|
title: clearLabel,
|
|
47855
48047
|
ref: clearRef,
|
|
47856
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
48048
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$3$, {})
|
|
47857
48049
|
}
|
|
47858
48050
|
) : null
|
|
47859
48051
|
] }),
|
|
@@ -48555,7 +48747,7 @@ const TimePicker$1 = React__namespace.forwardRef(
|
|
|
48555
48747
|
allowCustomValue: true,
|
|
48556
48748
|
placeholder: `--${separator}--`,
|
|
48557
48749
|
autocomplete: "none",
|
|
48558
|
-
startIcon: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
48750
|
+
startIcon: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4l, { fill: "neutral500" }),
|
|
48559
48751
|
inputMode: "numeric",
|
|
48560
48752
|
pattern: `\\d{2}\\${separator}\\d{2}`,
|
|
48561
48753
|
textValue,
|
|
@@ -49058,7 +49250,7 @@ const Header = React__namespace.forwardRef(
|
|
|
49058
49250
|
tag: "header",
|
|
49059
49251
|
children: [
|
|
49060
49252
|
children,
|
|
49061
|
-
/* @__PURE__ */ jsxRuntime.jsx(Close, { children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { withTooltip: false, label: closeLabel, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
49253
|
+
/* @__PURE__ */ jsxRuntime.jsx(Close, { children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { withTooltip: false, label: closeLabel, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$3$, {}) }) })
|
|
49062
49254
|
]
|
|
49063
49255
|
}
|
|
49064
49256
|
);
|
|
@@ -49214,7 +49406,7 @@ React__namespace.forwardRef(
|
|
|
49214
49406
|
tabIndex: -1,
|
|
49215
49407
|
type: "button",
|
|
49216
49408
|
"data-testid": "ArrowUp",
|
|
49217
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
49409
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4L, { fill: "neutral500" })
|
|
49218
49410
|
}
|
|
49219
49411
|
),
|
|
49220
49412
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -49226,7 +49418,7 @@ React__namespace.forwardRef(
|
|
|
49226
49418
|
tabIndex: -1,
|
|
49227
49419
|
type: "button",
|
|
49228
49420
|
"data-testid": "ArrowDown",
|
|
49229
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
49421
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4L, { fill: "neutral500" })
|
|
49230
49422
|
}
|
|
49231
49423
|
)
|
|
49232
49424
|
] }),
|
|
@@ -49287,7 +49479,7 @@ forwardRef(
|
|
|
49287
49479
|
const disabled = activePage === 1;
|
|
49288
49480
|
return /* @__PURE__ */ jsxRuntime.jsxs(ActionLinkWrapper, { ref, "aria-disabled": disabled, tabIndex: disabled ? -1 : void 0, ...props, children: [
|
|
49289
49481
|
/* @__PURE__ */ jsxRuntime.jsx(VisuallyHidden, { children }),
|
|
49290
|
-
/* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
49482
|
+
/* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4r, { "aria-hidden": true })
|
|
49291
49483
|
] });
|
|
49292
49484
|
}
|
|
49293
49485
|
);
|
|
@@ -49297,7 +49489,7 @@ forwardRef(
|
|
|
49297
49489
|
const disabled = activePage === pageCount;
|
|
49298
49490
|
return /* @__PURE__ */ jsxRuntime.jsxs(ActionLinkWrapper, { ref, "aria-disabled": disabled, tabIndex: disabled ? -1 : void 0, ...props, children: [
|
|
49299
49491
|
/* @__PURE__ */ jsxRuntime.jsx(VisuallyHidden, { children }),
|
|
49300
|
-
/* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
49492
|
+
/* @__PURE__ */ jsxRuntime.jsx(ForwardRef$4p, { "aria-hidden": true })
|
|
49301
49493
|
] });
|
|
49302
49494
|
}
|
|
49303
49495
|
);
|
|
@@ -49749,7 +49941,7 @@ const RawTr = ({ children, ...props }) => {
|
|
|
49749
49941
|
});
|
|
49750
49942
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { tag: "tr", ...props, children: childrenClone });
|
|
49751
49943
|
};
|
|
49752
|
-
const CloseIcon = styled.styled(ForwardRef$
|
|
49944
|
+
const CloseIcon = styled.styled(ForwardRef$3$)`
|
|
49753
49945
|
font-size: 0.5rem;
|
|
49754
49946
|
path {
|
|
49755
49947
|
fill: ${({ theme: theme2 }) => theme2.colors.neutral400};
|
|
@@ -49941,7 +50133,7 @@ const MultiSelect = React__namespace.forwardRef(
|
|
|
49941
50133
|
{
|
|
49942
50134
|
tabIndex: -1,
|
|
49943
50135
|
disabled,
|
|
49944
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$
|
|
50136
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$3$, { width: `${14 / 16}rem`, height: `${14 / 16}rem` }),
|
|
49945
50137
|
onClick: handleTagClick(arg.value),
|
|
49946
50138
|
children: arg.textValue
|
|
49947
50139
|
},
|
|
@@ -50206,7 +50398,7 @@ const SubNavSectionLabel = ({
|
|
|
50206
50398
|
children: [
|
|
50207
50399
|
/* @__PURE__ */ jsxRuntime.jsx(Box, { paddingRight: 1, children: /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "sigma", textColor: "neutral600", children: label }) }),
|
|
50208
50400
|
collapsable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
50209
|
-
ForwardRef$
|
|
50401
|
+
ForwardRef$4L,
|
|
50210
50402
|
{
|
|
50211
50403
|
width: "1.2rem",
|
|
50212
50404
|
"aria-hidden": true,
|
|
@@ -51014,7 +51206,7 @@ const index = {
|
|
|
51014
51206
|
id: `${pluginId}.plugin.name`,
|
|
51015
51207
|
defaultMessage: displayName
|
|
51016
51208
|
},
|
|
51017
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
51209
|
+
Component: () => Promise.resolve().then(() => require("./index-k7z0V0lj.js")),
|
|
51018
51210
|
permissions: pluginPermissions.access
|
|
51019
51211
|
});
|
|
51020
51212
|
app.createSettingSection(
|
|
@@ -51033,7 +51225,7 @@ const index = {
|
|
|
51033
51225
|
},
|
|
51034
51226
|
id: "comments",
|
|
51035
51227
|
to: `/settings/${pluginId}`,
|
|
51036
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
51228
|
+
Component: () => Promise.resolve().then(() => require("./index-R1krliyC.js")),
|
|
51037
51229
|
permissions: pluginPermissions.settings
|
|
51038
51230
|
}
|
|
51039
51231
|
]
|
|
@@ -51082,15 +51274,15 @@ exports.ForwardRef$2l = ForwardRef$2l;
|
|
|
51082
51274
|
exports.ForwardRef$2v = ForwardRef$2v;
|
|
51083
51275
|
exports.ForwardRef$3 = ForwardRef$3;
|
|
51084
51276
|
exports.ForwardRef$3$ = ForwardRef$3$;
|
|
51085
|
-
exports.ForwardRef$
|
|
51086
|
-
exports.ForwardRef$
|
|
51087
|
-
exports.ForwardRef$3v = ForwardRef$3v;
|
|
51277
|
+
exports.ForwardRef$3B = ForwardRef$3B;
|
|
51278
|
+
exports.ForwardRef$3x = ForwardRef$3x;
|
|
51088
51279
|
exports.ForwardRef$45 = ForwardRef$45;
|
|
51089
|
-
exports.ForwardRef$
|
|
51090
|
-
exports.ForwardRef$
|
|
51091
|
-
exports.ForwardRef$
|
|
51092
|
-
exports.ForwardRef$
|
|
51280
|
+
exports.ForwardRef$4R = ForwardRef$4R;
|
|
51281
|
+
exports.ForwardRef$4X = ForwardRef$4X;
|
|
51282
|
+
exports.ForwardRef$4d = ForwardRef$4d;
|
|
51283
|
+
exports.ForwardRef$4x = ForwardRef$4x;
|
|
51093
51284
|
exports.ForwardRef$51 = ForwardRef$51;
|
|
51285
|
+
exports.ForwardRef$59 = ForwardRef$59;
|
|
51094
51286
|
exports.ForwardRef$R = ForwardRef$R;
|
|
51095
51287
|
exports.ForwardRef$f = ForwardRef$f;
|
|
51096
51288
|
exports.ForwardRef$j = ForwardRef$j;
|