@localazy/strapi-plugin 1.0.11 → 1.1.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/dist/_chunks/{FetchIdentity-BB5V79aG.js → FetchIdentity-CevvxeEj.js} +73 -46
- package/dist/_chunks/{FetchIdentity-CkL7UYRt.mjs → FetchIdentity-DeThazz9.mjs} +43 -16
- package/dist/_chunks/{LanguagesSelector-DDjJ90sz.js → LanguagesSelector-BExpl4Vx.js} +15 -3
- package/dist/_chunks/{LanguagesSelector-BUSLrXE9.mjs → LanguagesSelector-D62gLZsM.mjs} +15 -3
- package/dist/_chunks/{LocalazyApp-H3kYTy7p.mjs → LocalazyApp-Czkb4s5J.mjs} +796 -69
- package/dist/_chunks/{LocalazyApp-BzcT9jmq.js → LocalazyApp-DIcO748C.js} +796 -67
- package/dist/_chunks/{LocalazyContentTransferSetup-rrXuAqRA.js → LocalazyContentTransferSetup-DAyZdwi9.js} +13 -10
- package/dist/_chunks/{LocalazyContentTransferSetup-BrLho135.mjs → LocalazyContentTransferSetup-Dx0Z6DXc.mjs} +13 -10
- package/dist/_chunks/{LocalazyGlobalSettings-NhjPAqfZ.mjs → LocalazyGlobalSettings-DWMBqlN4.mjs} +149 -12
- package/dist/_chunks/{LocalazyGlobalSettings-Dj93M25t.js → LocalazyGlobalSettings-DjrXGVxl.js} +148 -11
- package/dist/_chunks/{LocalazyPanel-DokDDR0T.mjs → LocalazyPanel-B-0HBTL_.mjs} +4 -4
- package/dist/_chunks/{LocalazyPanel-C1r8FU9w.js → LocalazyPanel-nBOpQo5B.js} +4 -4
- package/dist/_chunks/{LocalazyStatusColumn-CaAL-caH.mjs → LocalazyStatusColumn-CpO3yccG.mjs} +9 -7
- package/dist/_chunks/{LocalazyStatusColumn-D50ZkXY-.js → LocalazyStatusColumn-cGsUDMlX.js} +9 -7
- package/dist/_chunks/{RequireLocalazyAuth-C9qzj01C.js → RequireLocalazyAuth-56K8HUNR.js} +4 -4
- package/dist/_chunks/{RequireLocalazyAuth-c-nP7C0A.mjs → RequireLocalazyAuth-Dh-mAMcg.mjs} +4 -4
- package/dist/_chunks/{entry-exclusion-service-Db6jzNVM.mjs → entry-exclusion-service-Dm5_iP7I.mjs} +1 -1
- package/dist/_chunks/{entry-exclusion-service-0Ul5AWi-.js → entry-exclusion-service-Rf4Tr0zW.js} +1 -1
- package/dist/_chunks/{has-model-changed-VkgGfN-6.mjs → has-model-changed-6p1lR-Ho.mjs} +2 -2
- package/dist/_chunks/{has-model-changed-CmZh9bwD.js → has-model-changed-CGyDQARr.js} +2 -2
- package/dist/_chunks/{i18n-DaBjUC3Y.js → i18n-CAsbU4pi.js} +62 -4
- package/dist/_chunks/{i18n-Bga-GG_Z.mjs → i18n-QelOdIB2.mjs} +62 -4
- package/dist/_chunks/{index-BSNW1ypR.js → index-BK7lmZSN.js} +57 -19
- package/dist/_chunks/{index-C_svJuLd.mjs → index-Bpf1Mw2A.mjs} +8 -8
- package/dist/_chunks/{index-CaHacyle.js → index-BsQ_ie4C.js} +8 -8
- package/dist/_chunks/{index-BIHAiJnE.mjs → index-CHjIMO9T.mjs} +78 -40
- package/dist/_chunks/{strapi-api-base-BTpukPev.mjs → strapi-api-base-Bem_CGuz.mjs} +2 -2
- package/dist/_chunks/{strapi-api-base-DJi1gdZT.js → strapi-api-base-W_bUTSlY.js} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/PluginErrorBoundary.d.ts +5 -0
- package/dist/admin/src/modules/@common/locale/en.d.ts +4 -0
- package/dist/admin/src/modules/@common/services/product-analytics-service.d.ts +1 -0
- package/dist/admin/src/modules/@common/services/project-service.d.ts +9 -0
- package/dist/admin/src/modules/@common/styles/heading-fix.d.ts +7 -0
- package/dist/admin/src/modules/@common/utils/export-json.d.ts +1 -0
- package/dist/admin/src/modules/@common/utils/redirect-to-plugin-route.d.ts +1 -0
- package/dist/admin/src/modules/activity-logs/components/HighlightMatch.d.ts +6 -0
- package/dist/admin/src/modules/activity-logs/components/SessionMetadata.d.ts +7 -0
- package/dist/admin/src/modules/activity-logs/components/SessionsTable.d.ts +17 -0
- package/dist/admin/src/modules/activity-logs/components/SortableHeader.d.ts +10 -0
- package/dist/admin/src/modules/activity-logs/components/StatusLabel.d.ts +6 -0
- package/dist/admin/src/modules/activity-logs/hooks/use-debounced-search.d.ts +6 -0
- package/dist/admin/src/modules/activity-logs/locale/en.d.ts +33 -0
- package/dist/admin/src/modules/activity-logs/models/activity-logs.d.ts +19 -0
- package/dist/admin/src/modules/activity-logs/services/activity-logs-service.d.ts +6 -0
- package/dist/admin/src/modules/activity-logs/utils/export-logs.d.ts +1 -0
- package/dist/admin/src/modules/activity-logs/utils/format-utils.d.ts +4 -0
- package/dist/admin/src/modules/plugin-settings/components/WebhookSetup.d.ts +2 -0
- package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +21 -0
- package/dist/admin/src/pages/ActivityLogDetail.d.ts +7 -0
- package/dist/admin/src/pages/ActivityLogs.d.ts +7 -0
- package/dist/server/index.js +516 -61
- package/dist/server/index.mjs +516 -61
- package/dist/server/src/controllers/activity-logs-controller.d.ts +10 -0
- package/dist/server/src/controllers/index.d.ts +14 -3
- package/dist/server/src/controllers/localazy-auth-controller.d.ts +1 -1
- package/dist/server/src/controllers/localazy-project-controller.d.ts +3 -0
- package/dist/server/src/controllers/localazy-user-controller.d.ts +1 -1
- package/dist/server/src/controllers/plugin-settings-controller.d.ts +1 -1
- package/dist/server/src/core/index.d.ts +14 -0
- package/dist/server/src/db/model/activity-logs.d.ts +20 -0
- package/dist/server/src/db/model/plugin-settings.d.ts +14 -0
- package/dist/server/src/destroy.d.ts +1 -1
- package/dist/server/src/index.d.ts +31 -4
- package/dist/server/src/routes/activity-logs-routes.d.ts +9 -0
- package/dist/server/src/services/activity-logs-service.d.ts +17 -0
- package/dist/server/src/services/index.d.ts +16 -0
- package/dist/server/src/services/localazy-pubapi-service.d.ts +2 -0
- package/dist/server/src/services/strapi-service.d.ts +1 -0
- package/dist/server/src/utils/get-character-limits-metadata.d.ts +13 -0
- package/dist/server/src/utils/get-picked-flatten-keys-for-hook-entry.d.ts +3 -1
- package/package.json +5 -4
|
@@ -3,7 +3,7 @@ import React__default, { useRef, useEffect, useMemo, useCallback, createContext
|
|
|
3
3
|
import { jsxs, Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
import ReactDOM__default, { flushSync, createPortal } from "react-dom";
|
|
6
|
-
import { useTheme, styled,
|
|
6
|
+
import { useTheme, styled, ThemeProvider, css, createGlobalStyle, keyframes } from "styled-components";
|
|
7
7
|
import { c as commonjsGlobal } from "./_commonjsHelpers-DWwsNxpa.mjs";
|
|
8
8
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
9
9
|
const callbackRef = useRef(callback);
|
|
@@ -6429,7 +6429,7 @@ const ComboboxCreateItem = React.forwardRef((props, ref) => {
|
|
|
6429
6429
|
);
|
|
6430
6430
|
});
|
|
6431
6431
|
ComboboxCreateItem.displayName = "ComboboxCreateItem";
|
|
6432
|
-
const Root$1 = Combobox$1;
|
|
6432
|
+
const Root$1$1 = Combobox$1;
|
|
6433
6433
|
const Trigger$1 = ComboboxTrigger;
|
|
6434
6434
|
const TextInput$2 = ComboxboxTextInput;
|
|
6435
6435
|
const Icon$1 = ComboboxIcon;
|
|
@@ -6461,7 +6461,7 @@ const Combobox$1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
6461
6461
|
ItemText: ItemText$1,
|
|
6462
6462
|
NoValueFound,
|
|
6463
6463
|
Portal: Portal$1$1,
|
|
6464
|
-
Root: Root$1,
|
|
6464
|
+
Root: Root$1$1,
|
|
6465
6465
|
TextInput: TextInput$2,
|
|
6466
6466
|
Trigger: Trigger$1,
|
|
6467
6467
|
Viewport: Viewport$1$1
|
|
@@ -7606,11 +7606,11 @@ const toggleArrayValue = (value, array = []) => {
|
|
|
7606
7606
|
return [...array.slice(0, index2), ...array.slice(index2 + 1)];
|
|
7607
7607
|
};
|
|
7608
7608
|
const Root$2 = Select;
|
|
7609
|
-
const Trigger = SelectTrigger$1;
|
|
7609
|
+
const Trigger$2 = SelectTrigger$1;
|
|
7610
7610
|
const Value$1 = SelectValue$1;
|
|
7611
7611
|
const Icon = SelectIcon;
|
|
7612
7612
|
const Portal$2 = SelectPortal;
|
|
7613
|
-
const Content = SelectContent$1;
|
|
7613
|
+
const Content$2 = SelectContent$1;
|
|
7614
7614
|
const Viewport$4 = SelectViewport$1;
|
|
7615
7615
|
const Group = SelectGroup;
|
|
7616
7616
|
const Label$1 = SelectLabel;
|
|
@@ -7624,7 +7624,7 @@ const Arrow = SelectArrow;
|
|
|
7624
7624
|
const Select$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7625
7625
|
__proto__: null,
|
|
7626
7626
|
Arrow,
|
|
7627
|
-
Content,
|
|
7627
|
+
Content: Content$2,
|
|
7628
7628
|
Group,
|
|
7629
7629
|
Icon,
|
|
7630
7630
|
Item: Item$3,
|
|
@@ -7652,7 +7652,7 @@ const Select$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
7652
7652
|
SelectValue: SelectValue$1,
|
|
7653
7653
|
SelectViewport: SelectViewport$1,
|
|
7654
7654
|
Separator,
|
|
7655
|
-
Trigger,
|
|
7655
|
+
Trigger: Trigger$2,
|
|
7656
7656
|
Value: Value$1,
|
|
7657
7657
|
Viewport: Viewport$4,
|
|
7658
7658
|
createSelectScope
|
|
@@ -8123,7 +8123,8 @@ const SvgArrowLeft = ({
|
|
|
8123
8123
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
8124
8124
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M28.5 16a1.5 1.5 0 0 1-1.5 1.5H8.625l6.44 6.439a1.502 1.502 0 1 1-2.125 2.125l-9-9a1.5 1.5 0 0 1 0-2.125l9-9a1.503 1.503 0 0 1 2.125 2.125L8.625 14.5H27a1.5 1.5 0 0 1 1.5 1.5" }) });
|
|
8125
8125
|
};
|
|
8126
|
-
forwardRef$1(SvgArrowLeft);
|
|
8126
|
+
const ForwardRef$56 = forwardRef$1(SvgArrowLeft);
|
|
8127
|
+
const ForwardRef$57 = ForwardRef$56;
|
|
8127
8128
|
const SvgArrowRight = ({
|
|
8128
8129
|
fill: fillProp = "currentColor",
|
|
8129
8130
|
stroke: strokeProp,
|
|
@@ -8281,7 +8282,8 @@ const SvgCaretUp = ({
|
|
|
8281
8282
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
8282
8283
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M26.924 20.383A1 1 0 0 1 26 21H6a1 1 0 0 1-.708-1.707l10-10a1 1 0 0 1 1.415 0l10 10a1 1 0 0 1 .217 1.09" }) });
|
|
8283
8284
|
};
|
|
8284
|
-
forwardRef$1(SvgCaretUp);
|
|
8285
|
+
const ForwardRef$4K = forwardRef$1(SvgCaretUp);
|
|
8286
|
+
const ForwardRef$4L = ForwardRef$4K;
|
|
8285
8287
|
const SvgCast = ({
|
|
8286
8288
|
fill: fillProp = "currentColor",
|
|
8287
8289
|
stroke: strokeProp,
|
|
@@ -8468,7 +8470,8 @@ const SvgClockCounterClockwise = ({
|
|
|
8468
8470
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
8469
8471
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M28 16a12 12 0 0 1-20.236 8.728 1.002 1.002 0 0 1 1.375-1.456 10 10 0 1 0-.21-14.343c-.441.446-.857.885-1.26 1.321l2.039 2.043A1 1 0 0 1 9 14H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1.707-.707L6.25 8.838c.402-.437.817-.875 1.258-1.32A12 12 0 0 1 28 16M16 9a1 1 0 0 0-1 1v6a1 1 0 0 0 .485.858l5 3a.999.999 0 0 0 1.486-1.1 1 1 0 0 0-.456-.616L17 15.434V10a1 1 0 0 0-1-1" }) });
|
|
8470
8472
|
};
|
|
8471
|
-
forwardRef$1(SvgClockCounterClockwise);
|
|
8473
|
+
const ForwardRef$4i = forwardRef$1(SvgClockCounterClockwise);
|
|
8474
|
+
const ForwardRef$4j = ForwardRef$4i;
|
|
8472
8475
|
const SvgCloud = ({
|
|
8473
8476
|
fill: fillProp = "currentColor",
|
|
8474
8477
|
stroke: strokeProp,
|
|
@@ -9295,7 +9298,8 @@ const SvgLink = ({
|
|
|
9295
9298
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
9296
9299
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M17.046 23.441a1.5 1.5 0 0 1 0 2.125l-.742.743a7.502 7.502 0 1 1-10.61-10.61l3.015-3.014A7.5 7.5 0 0 1 19 12.375a1.506 1.506 0 0 1-2 2.25 4.5 4.5 0 0 0-6.171.184l-3.013 3.01a4.5 4.5 0 0 0 6.365 6.365l.743-.743a1.5 1.5 0 0 1 2.122 0m9.26-17.75a7.51 7.51 0 0 0-10.61 0l-.742.743a1.503 1.503 0 1 0 2.125 2.125l.742-.743a4.5 4.5 0 0 1 6.365 6.365l-3.014 3.015a4.5 4.5 0 0 1-6.172.179 1.506 1.506 0 1 0-2 2.25 7.5 7.5 0 0 0 10.288-.304l3.014-3.014a7.51 7.51 0 0 0 .004-10.613z" }) });
|
|
9297
9300
|
};
|
|
9298
|
-
forwardRef$1(SvgLink);
|
|
9301
|
+
const ForwardRef$2k = forwardRef$1(SvgLink);
|
|
9302
|
+
const ForwardRef$2l = ForwardRef$2k;
|
|
9299
9303
|
const SvgList = ({
|
|
9300
9304
|
fill: fillProp = "currentColor",
|
|
9301
9305
|
stroke: strokeProp,
|
|
@@ -10148,7 +10152,8 @@ const SvgTrash = ({
|
|
|
10148
10152
|
const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
|
|
10149
10153
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M27 6h-5V5a3 3 0 0 0-3-3h-6a3 3 0 0 0-3 3v1H5a1 1 0 0 0 0 2h1v18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h1a1 1 0 1 0 0-2M14 21a1 1 0 0 1-2 0v-8a1 1 0 0 1 2 0zm6 0a1 1 0 0 1-2 0v-8a1 1 0 0 1 2 0zm0-15h-8V5a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1z" }) });
|
|
10150
10154
|
};
|
|
10151
|
-
forwardRef$1(SvgTrash);
|
|
10155
|
+
const ForwardRef$i = forwardRef$1(SvgTrash);
|
|
10156
|
+
const ForwardRef$j = ForwardRef$i;
|
|
10152
10157
|
const SvgTyphoon = ({
|
|
10153
10158
|
fill: fillProp = "currentColor",
|
|
10154
10159
|
stroke: strokeProp,
|
|
@@ -44274,7 +44279,7 @@ lodash.exports;
|
|
|
44274
44279
|
}
|
|
44275
44280
|
}).call(commonjsGlobal);
|
|
44276
44281
|
})(lodash, lodash.exports);
|
|
44277
|
-
lodash.exports;
|
|
44282
|
+
var lodashExports = lodash.exports;
|
|
44278
44283
|
const createContext = (rootComponentName, defaultContext) => {
|
|
44279
44284
|
const Context = React.createContext(defaultContext);
|
|
44280
44285
|
const Provider2 = (props) => {
|
|
@@ -49464,7 +49469,13 @@ function useControllableState({
|
|
|
49464
49469
|
}
|
|
49465
49470
|
const PaginationContext = React.createContext({ activePage: 1, pageCount: 1 });
|
|
49466
49471
|
const usePagination = () => React.useContext(PaginationContext);
|
|
49467
|
-
|
|
49472
|
+
const Pagination = ({ children, label = "Pagination", activePage, pageCount }) => {
|
|
49473
|
+
const context = React.useMemo(() => ({ activePage, pageCount }), [activePage, pageCount]);
|
|
49474
|
+
return /* @__PURE__ */ jsx(PaginationContext.Provider, { value: context, children: /* @__PURE__ */ jsx(Box, { "aria-label": label, tag: "nav", children: /* @__PURE__ */ jsx(Flex, { tag: "ol", gap: 1, children: React.Children.map(children, (child, index2) => {
|
|
49475
|
+
return /* @__PURE__ */ jsx("li", { children: child }, index2);
|
|
49476
|
+
}) }) }) });
|
|
49477
|
+
};
|
|
49478
|
+
const PreviousLink = forwardRef(
|
|
49468
49479
|
({ children, ...props }, ref) => {
|
|
49469
49480
|
const { activePage } = usePagination();
|
|
49470
49481
|
const disabled = activePage === 1;
|
|
@@ -49474,7 +49485,7 @@ forwardRef(
|
|
|
49474
49485
|
] });
|
|
49475
49486
|
}
|
|
49476
49487
|
);
|
|
49477
|
-
forwardRef(
|
|
49488
|
+
const NextLink = forwardRef(
|
|
49478
49489
|
({ children, ...props }, ref) => {
|
|
49479
49490
|
const { activePage, pageCount } = usePagination();
|
|
49480
49491
|
const disabled = activePage === pageCount;
|
|
@@ -49511,7 +49522,7 @@ const ActionLinkWrapper = styled(LinkWrapper)`
|
|
|
49511
49522
|
pointer-events: none;
|
|
49512
49523
|
` : void 0}
|
|
49513
49524
|
`;
|
|
49514
|
-
forwardRef(
|
|
49525
|
+
const PageLink = forwardRef(
|
|
49515
49526
|
({ number: number2, children, ...props }, ref) => {
|
|
49516
49527
|
const { activePage } = usePagination();
|
|
49517
49528
|
const isActive = activePage === number2;
|
|
@@ -49529,6 +49540,10 @@ const PageLinkWrapper = styled(LinkWrapper)`
|
|
|
49529
49540
|
box-shadow: ${({ theme: theme2 }) => theme2.shadows.filterShadow};
|
|
49530
49541
|
}
|
|
49531
49542
|
`;
|
|
49543
|
+
const Dots = ({ children, ...props }) => /* @__PURE__ */ jsxs(Box, { ...props, children: [
|
|
49544
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children }),
|
|
49545
|
+
/* @__PURE__ */ jsx(Typography, { "aria-hidden": true, lineHeight: "revert", textColor: "neutral800", variant: "pi", children: "…" })
|
|
49546
|
+
] });
|
|
49532
49547
|
React.forwardRef((props, forwardedRef) => {
|
|
49533
49548
|
return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$41fb9f06171c75f4, { ...props, asChild: true, ref: forwardedRef });
|
|
49534
49549
|
});
|
|
@@ -50539,7 +50554,7 @@ const LabelTypography = styled(Typography)`
|
|
|
50539
50554
|
}
|
|
50540
50555
|
`;
|
|
50541
50556
|
const [TabsProvider, useTabs] = createContext("Tabs");
|
|
50542
|
-
React.forwardRef(
|
|
50557
|
+
const Root$1 = React.forwardRef(
|
|
50543
50558
|
({ disabled = false, variant: variant2 = "regular", hasError, ...props }, forwardedRef) => {
|
|
50544
50559
|
return /* @__PURE__ */ jsx(TabsProvider, { disabled, hasError, variant: variant2, children: /* @__PURE__ */ jsx(TabsRoot, { ref: forwardedRef, ...props }) });
|
|
50545
50560
|
}
|
|
@@ -50548,7 +50563,7 @@ const TabsRoot = styled($69cb30bb0017df05$export$be92b6f5f03c0fe9)`
|
|
|
50548
50563
|
width: 100%;
|
|
50549
50564
|
position: relative;
|
|
50550
50565
|
`;
|
|
50551
|
-
React.forwardRef((props, forwardedRef) => {
|
|
50566
|
+
const List = React.forwardRef((props, forwardedRef) => {
|
|
50552
50567
|
const { variant: variant2 } = useTabs("List");
|
|
50553
50568
|
return /* @__PURE__ */ jsx(TabsList, { ref: forwardedRef, ...props, $variant: variant2 });
|
|
50554
50569
|
});
|
|
@@ -50558,7 +50573,7 @@ const TabsList = styled($69cb30bb0017df05$export$54c2e3dc7acea9f5)`
|
|
|
50558
50573
|
position: relative;
|
|
50559
50574
|
z-index: 0;
|
|
50560
50575
|
`;
|
|
50561
|
-
React.forwardRef(
|
|
50576
|
+
const Trigger = React.forwardRef(
|
|
50562
50577
|
({ children, disabled: disabledProp, ...props }, forwardedRef) => {
|
|
50563
50578
|
const { disabled: disabledContext, variant: variant2, hasError } = useTabs("Trigger");
|
|
50564
50579
|
const isDisabled = disabledContext === true || disabledContext === props.value || disabledProp;
|
|
@@ -50636,7 +50651,7 @@ const TabsTrigger = styled($69cb30bb0017df05$export$41fb9f06171c75f4)`
|
|
|
50636
50651
|
color: ${(props) => props.theme.colors.neutral400};
|
|
50637
50652
|
}
|
|
50638
50653
|
`;
|
|
50639
|
-
React.forwardRef((props, forwardedRef) => {
|
|
50654
|
+
const Content = React.forwardRef((props, forwardedRef) => {
|
|
50640
50655
|
const { variant: variant2 } = useTabs("Content");
|
|
50641
50656
|
return /* @__PURE__ */ jsx(TabsContent, { $variant: variant2, ref: forwardedRef, ...props });
|
|
50642
50657
|
});
|
|
@@ -50653,6 +50668,13 @@ const TabsContent = styled($69cb30bb0017df05$export$7c6e2c02157bb7d2)`
|
|
|
50653
50668
|
}
|
|
50654
50669
|
}}
|
|
50655
50670
|
`;
|
|
50671
|
+
const Tabs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50672
|
+
__proto__: null,
|
|
50673
|
+
Content,
|
|
50674
|
+
List,
|
|
50675
|
+
Root: Root$1,
|
|
50676
|
+
Trigger
|
|
50677
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
50656
50678
|
const TableContainer = styled(Box)`
|
|
50657
50679
|
overflow: hidden;
|
|
50658
50680
|
border: 1px solid ${({ theme: theme2 }) => theme2.colors.neutral150};
|
|
@@ -51059,35 +51081,51 @@ const Grid = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
51059
51081
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
51060
51082
|
export {
|
|
51061
51083
|
Alert as A,
|
|
51062
|
-
|
|
51084
|
+
Box as B,
|
|
51063
51085
|
CheckboxImpl as C,
|
|
51064
|
-
|
|
51086
|
+
Dialog as D,
|
|
51087
|
+
PreviousLink as E,
|
|
51065
51088
|
Field as F,
|
|
51066
51089
|
Grid as G,
|
|
51090
|
+
PageLink as H,
|
|
51091
|
+
Dots as I,
|
|
51092
|
+
lodashExports as J,
|
|
51093
|
+
ForwardRef$j as K,
|
|
51067
51094
|
Loader as L,
|
|
51068
51095
|
MultiSelect as M,
|
|
51096
|
+
NextLink as N,
|
|
51097
|
+
DatePicker$1 as O,
|
|
51098
|
+
Pagination as P,
|
|
51099
|
+
Tabs as Q,
|
|
51100
|
+
ForwardRef$57 as R,
|
|
51069
51101
|
SingleSelect as S,
|
|
51070
51102
|
Typography as T,
|
|
51103
|
+
darkTheme as U,
|
|
51104
|
+
lightTheme as V,
|
|
51071
51105
|
Toggle as a,
|
|
51072
51106
|
MultiSelectOption as b,
|
|
51073
51107
|
Flex as c,
|
|
51074
51108
|
ForwardRef$4z as d,
|
|
51075
|
-
|
|
51076
|
-
|
|
51077
|
-
|
|
51078
|
-
|
|
51079
|
-
ForwardRef$
|
|
51080
|
-
|
|
51081
|
-
|
|
51082
|
-
|
|
51083
|
-
|
|
51084
|
-
|
|
51085
|
-
|
|
51086
|
-
|
|
51087
|
-
|
|
51088
|
-
ForwardRef$
|
|
51089
|
-
|
|
51090
|
-
|
|
51091
|
-
|
|
51092
|
-
|
|
51109
|
+
Button as e,
|
|
51110
|
+
ForwardRef$3 as f,
|
|
51111
|
+
Link as g,
|
|
51112
|
+
ForwardRef$2l as h,
|
|
51113
|
+
ForwardRef$2x as i,
|
|
51114
|
+
Divider as j,
|
|
51115
|
+
SingleSelectOption as k,
|
|
51116
|
+
DesignSystemProvider as l,
|
|
51117
|
+
Accordion as m,
|
|
51118
|
+
SwitchImpl as n,
|
|
51119
|
+
ForwardRef$2H as o,
|
|
51120
|
+
ForwardRef$d as p,
|
|
51121
|
+
ForwardRef$3P as q,
|
|
51122
|
+
ForwardRef$4j as r,
|
|
51123
|
+
SubNav as s,
|
|
51124
|
+
SubNavHeader as t,
|
|
51125
|
+
SubNavSections as u,
|
|
51126
|
+
SubNavSection as v,
|
|
51127
|
+
SubNavLink as w,
|
|
51128
|
+
ForwardRef$L as x,
|
|
51129
|
+
ForwardRef$4L as y,
|
|
51130
|
+
ForwardRef$4N as z
|
|
51093
51131
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PLUGIN_ID } from "./index-
|
|
1
|
+
import { P as PLUGIN_ID } from "./index-Bpf1Mw2A.mjs";
|
|
2
2
|
function bind(fn, thisArg) {
|
|
3
3
|
return function wrap() {
|
|
4
4
|
return fn.apply(thisArg, arguments);
|
|
@@ -2410,7 +2410,7 @@ const createStrapiApiAxiosInstance = (baseUrl = null) => {
|
|
|
2410
2410
|
return config;
|
|
2411
2411
|
},
|
|
2412
2412
|
(error) => {
|
|
2413
|
-
Promise.reject(error);
|
|
2413
|
+
return Promise.reject(error);
|
|
2414
2414
|
}
|
|
2415
2415
|
);
|
|
2416
2416
|
instance.interceptors.response.use(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require("./index-
|
|
2
|
+
const index = require("./index-BsQ_ie4C.js");
|
|
3
3
|
function bind(fn, thisArg) {
|
|
4
4
|
return function wrap() {
|
|
5
5
|
return fn.apply(thisArg, arguments);
|
|
@@ -2411,7 +2411,7 @@ const createStrapiApiAxiosInstance = (baseUrl = null) => {
|
|
|
2411
2411
|
return config;
|
|
2412
2412
|
},
|
|
2413
2413
|
(error) => {
|
|
2414
|
-
Promise.reject(error);
|
|
2414
|
+
return Promise.reject(error);
|
|
2415
2415
|
}
|
|
2416
2416
|
);
|
|
2417
2417
|
instance.interceptors.response.use(
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -6,9 +6,13 @@ declare const _default: {
|
|
|
6
6
|
upload_to_localazy: string;
|
|
7
7
|
download_to_strapi: string;
|
|
8
8
|
overview: string;
|
|
9
|
+
activity_logs: string;
|
|
9
10
|
loading_content: string;
|
|
10
11
|
report_will_be_available_after_an_action: string;
|
|
11
12
|
report: string;
|
|
12
13
|
select_languages: string;
|
|
14
|
+
error_boundary_title: string;
|
|
15
|
+
error_boundary_description: string;
|
|
16
|
+
error_boundary_disconnect: string;
|
|
13
17
|
};
|
|
14
18
|
export default _default;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { Project } from '@localazy/api-client';
|
|
2
2
|
export default class ProjectService {
|
|
3
3
|
static getConnectedProject(): Promise<Project>;
|
|
4
|
+
static getWebhookStatus(): Promise<{
|
|
5
|
+
status: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
}>;
|
|
8
|
+
static setupWebhook(url: string): Promise<any>;
|
|
9
|
+
static getStrapiUrl(): Promise<{
|
|
10
|
+
url: string;
|
|
11
|
+
isLocal: boolean;
|
|
12
|
+
}>;
|
|
4
13
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* The nested DesignSystemProvider injects a GlobalStyle with `h1-h6 { font: unset }`
|
|
4
|
+
* which strips heading styles set by Strapi's own provider. This global override
|
|
5
|
+
* restores the correct Typography variant sizes for headings.
|
|
6
|
+
*/
|
|
7
|
+
export declare const HeadingFixGlobalStyle: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const exportAsJson: (data: unknown, filename: string) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SessionItem, SortKey, SortDirection } from '../models/activity-logs';
|
|
3
|
+
declare const SessionsTable: React.FC<{
|
|
4
|
+
sessions: SessionItem[];
|
|
5
|
+
searchQuery: string;
|
|
6
|
+
dateFrom?: Date;
|
|
7
|
+
dateTo?: Date;
|
|
8
|
+
eventType: string;
|
|
9
|
+
sortPreferences: Record<string, {
|
|
10
|
+
key: string;
|
|
11
|
+
direction: string;
|
|
12
|
+
}>;
|
|
13
|
+
onSortChange: (eventType: string, key: SortKey, direction: SortDirection) => void;
|
|
14
|
+
onSessionClick: (sessionId: string) => void;
|
|
15
|
+
t: (key: string) => string;
|
|
16
|
+
}>;
|
|
17
|
+
export default SessionsTable;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SortKey, SortDirection } from '../models/activity-logs';
|
|
3
|
+
declare const SortableHeader: React.FC<{
|
|
4
|
+
label: string;
|
|
5
|
+
sortKey: SortKey;
|
|
6
|
+
activeSortKey: SortKey;
|
|
7
|
+
direction: SortDirection;
|
|
8
|
+
onSort: (key: SortKey) => void;
|
|
9
|
+
}>;
|
|
10
|
+
export default SortableHeader;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
tab_upload: string;
|
|
5
|
+
tab_download: string;
|
|
6
|
+
tab_webhooks: string;
|
|
7
|
+
search_placeholder: string;
|
|
8
|
+
search_entries_placeholder: string;
|
|
9
|
+
no_sessions: string;
|
|
10
|
+
no_entries: string;
|
|
11
|
+
export_logs: string;
|
|
12
|
+
clear_logs: string;
|
|
13
|
+
clear_logs_confirm: string;
|
|
14
|
+
clear_logs_success: string;
|
|
15
|
+
back_to_list: string;
|
|
16
|
+
session_detail: string;
|
|
17
|
+
status: string;
|
|
18
|
+
started_at: string;
|
|
19
|
+
finished_at: string;
|
|
20
|
+
initiated_by: string;
|
|
21
|
+
summary: string;
|
|
22
|
+
duration: string;
|
|
23
|
+
entries_count: string;
|
|
24
|
+
status_in_progress: string;
|
|
25
|
+
status_completed: string;
|
|
26
|
+
status_failed: string;
|
|
27
|
+
close: string;
|
|
28
|
+
clear: string;
|
|
29
|
+
date_from: string;
|
|
30
|
+
date_to: string;
|
|
31
|
+
retention_info: string;
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type SessionItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
eventType: 'upload' | 'download' | 'webhook';
|
|
4
|
+
status: 'in-progress' | 'completed' | 'failed';
|
|
5
|
+
startedAt: number;
|
|
6
|
+
finishedAt?: number;
|
|
7
|
+
initiatedBy: string;
|
|
8
|
+
summary: string;
|
|
9
|
+
};
|
|
10
|
+
export type LogEntry = {
|
|
11
|
+
message: string;
|
|
12
|
+
timestamp: number;
|
|
13
|
+
data?: any;
|
|
14
|
+
};
|
|
15
|
+
export type SessionDetail = SessionItem & {
|
|
16
|
+
entries: LogEntry[];
|
|
17
|
+
};
|
|
18
|
+
export type SortKey = 'status' | 'startedAt' | 'duration' | 'initiatedBy' | 'summary';
|
|
19
|
+
export type SortDirection = 'asc' | 'desc';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const exportLogsAsJson: () => Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const formatDate: (timestamp: number) => string;
|
|
2
|
+
export declare const formatTime: (timestamp: number) => string;
|
|
3
|
+
export declare const formatDuration: (start: number, end?: number) => string;
|
|
4
|
+
export declare const getStatusColor: (status: string) => string;
|
|
@@ -58,5 +58,26 @@ declare const _default: {
|
|
|
58
58
|
bulk_action_include_to_translation: string;
|
|
59
59
|
status_excluded: string;
|
|
60
60
|
status_included: string;
|
|
61
|
+
webhook_setup_title: string;
|
|
62
|
+
webhook_behavior_title: string;
|
|
63
|
+
webhook_setup_description: string;
|
|
64
|
+
webhook_setup_not_configured: string;
|
|
65
|
+
webhook_setup_button: string;
|
|
66
|
+
webhook_setup_reconfigure: string;
|
|
67
|
+
webhook_setup_success: string;
|
|
68
|
+
webhook_setup_already_configured: string;
|
|
69
|
+
webhook_setup_docs_link: string;
|
|
70
|
+
webhook_setup_loading: string;
|
|
71
|
+
webhook_setup_error: string;
|
|
72
|
+
webhook_setup_modal_title: string;
|
|
73
|
+
webhook_setup_step1_title: string;
|
|
74
|
+
webhook_setup_step1_description: string;
|
|
75
|
+
webhook_setup_step2_title: string;
|
|
76
|
+
webhook_setup_url_hint: string;
|
|
77
|
+
webhook_setup_ngrok_hint: string;
|
|
78
|
+
webhook_setup_step3_title: string;
|
|
79
|
+
webhook_setup_step3_description: string;
|
|
80
|
+
webhook_setup_confirm: string;
|
|
81
|
+
webhook_setup_local_warning: string;
|
|
61
82
|
};
|
|
62
83
|
export default _default;
|