magic-editor-x 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +6 -110
  2. package/dist/{_chunks/App-CKlB5p92.mjs → admin/App-BwMEZnS-.mjs} +35 -34
  3. package/dist/{_chunks/App-3CjSGQyL.js → admin/App-HNr2tizR.js} +65 -64
  4. package/dist/{_chunks/CustomBlocksPage-CnJxygIw.js → admin/CustomBlocksPage-BjcA7MGz.js} +13 -13
  5. package/dist/{_chunks/LicensePage-B2STSez2.mjs → admin/LicensePage-D0DMTF41.mjs} +39 -38
  6. package/dist/{_chunks/LicensePage-vJxKYZGQ.js → admin/LicensePage-D0_9yPkw.js} +45 -44
  7. package/dist/{_chunks/LiveCollaborationPanel-D70o6EGf.js → admin/LiveCollaborationPanel-CZAbgAVr.js} +9 -8
  8. package/dist/{_chunks/LiveCollaborationPanel-uLIJs5z_.mjs → admin/LiveCollaborationPanel-D8z72afw.mjs} +4 -3
  9. package/dist/admin/Settings-DRenvRcG.js +441 -0
  10. package/dist/{_chunks/Settings-CdGL1OCi.mjs → admin/Settings-DjyNURlS.mjs} +83 -82
  11. package/dist/{_chunks/getTranslation-bLklCCaI.mjs → admin/getTranslation-2OiEgVGt.mjs} +15204 -16731
  12. package/dist/{_chunks/getTranslation--JcqVOd5.js → admin/getTranslation-DQ_WJ-7M.js} +15612 -17139
  13. package/dist/admin/index-Bn2tfJrC.js +2186 -0
  14. package/dist/{_chunks/index-CRALSDLD.js → admin/index-DAtClhqy.js} +184 -183
  15. package/dist/admin/index-FVEbTfqO.mjs +2187 -0
  16. package/dist/{_chunks/index-CdFFlQdx.mjs → admin/index-gjWl-6E2.mjs} +34 -33
  17. package/dist/admin/index.js +3 -2
  18. package/dist/admin/index.mjs +2 -2
  19. package/dist/{_chunks/tools-uudZx91W.mjs → admin/tools-CzHTZaY_.mjs} +42 -39
  20. package/dist/{_chunks/tools-BSMn5LLQ.js → admin/tools-DALFhvPO.js} +49 -46
  21. package/dist/server/index.js +63527 -37942
  22. package/dist/server/index.mjs +63546 -37934
  23. package/package.json +43 -30
  24. package/dist/_chunks/Settings-CwSNO4_t.js +0 -440
  25. package/dist/_chunks/index-CAPc_Y1F.mjs +0 -2551
  26. package/dist/_chunks/index-CPs6WJDY.js +0 -2550
  27. /package/dist/{_chunks → admin}/CustomBlocksPage-COPOZ2-_.mjs +0 -0
  28. /package/dist/{_chunks → admin}/de-C_0Mj-Zo.mjs +0 -0
  29. /package/dist/{_chunks → admin}/de-DVNVpAt9.js +0 -0
  30. /package/dist/{_chunks → admin}/en-B7AAf1ie.mjs +0 -0
  31. /package/dist/{_chunks → admin}/en-C2hv5GsA.js +0 -0
  32. /package/dist/{_chunks → admin}/es-BzJqcIST.js +0 -0
  33. /package/dist/{_chunks → admin}/es-zdP8sd-f.mjs +0 -0
  34. /package/dist/{_chunks → admin}/fr-CtAgOgH1.mjs +0 -0
  35. /package/dist/{_chunks → admin}/fr-D3GwqAAJ.js +0 -0
  36. /package/dist/{style.css → admin/magic-editor-x.css} +0 -0
  37. /package/dist/{_chunks → admin}/pt-BmUw6YMP.mjs +0 -0
  38. /package/dist/{_chunks → admin}/pt-CFo0nTbj.js +0 -0
@@ -1,7 +1,8 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
- import { u as useIntl, L as Loader, a as Box, A as Alert, F as Flex, T as Typography, B as Button, d as Badge, e as Accordion, g as getTranslation } from "./getTranslation-bLklCCaI.mjs";
3
+ import { k as kt, S, u as ud, C, A, a as Ct, N as Nr, d as dd, g as getTranslation } from "./getTranslation-2OiEgVGt.mjs";
4
4
  import { useFetchClient, useNotification } from "@strapi/strapi/admin";
5
+ import { useIntl } from "react-intl";
5
6
  import { ArrowPathIcon, DocumentDuplicateIcon, ArrowDownTrayIcon, UserIcon, UsersIcon, ShieldCheckIcon, SparklesIcon, ChartBarIcon } from "@heroicons/react/24/outline";
6
7
  import styled, { css, keyframes } from "styled-components";
7
8
  const theme = {
@@ -15,12 +16,12 @@ const shimmer = keyframes`
15
16
  0% { background-position: -200% 0; }
16
17
  100% { background-position: 200% 0; }
17
18
  `;
18
- const Container = styled(Box)`
19
+ const Container = styled(S)`
19
20
  ${css`animation: ${fadeIn} 0.5s;`}
20
21
  max-width: 1400px;
21
22
  margin: 0 auto;
22
23
  `;
23
- const StickySaveBar = styled(Box)`
24
+ const StickySaveBar = styled(S)`
24
25
  position: sticky;
25
26
  top: 0;
26
27
  z-index: 10;
@@ -28,7 +29,7 @@ const StickySaveBar = styled(Box)`
28
29
  border-bottom: 1px solid ${(props) => props.theme.colors.neutral200};
29
30
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
30
31
  `;
31
- const LicenseKeyBanner = styled(Box)`
32
+ const LicenseKeyBanner = styled(S)`
32
33
  background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
33
34
  border-radius: ${theme.borderRadius.lg};
34
35
  padding: 28px 32px;
@@ -61,7 +62,7 @@ const LicenseKeyBanner = styled(Box)`
61
62
  z-index: 1;
62
63
  }
63
64
  `;
64
- const LoaderContainer = styled(Flex)`
65
+ const LoaderContainer = styled(C)`
65
66
  min-height: 400px;
66
67
  align-items: center;
67
68
  justify-content: center;
@@ -166,10 +167,10 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
166
167
  fetchLicenseStatus();
167
168
  }, []);
168
169
  if (loading) {
169
- return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(LoaderContainer, { children: /* @__PURE__ */ jsx(Loader, { children: t("license.loading", "Loading license information...") }) }) });
170
+ return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(LoaderContainer, { children: /* @__PURE__ */ jsx(kt, { children: t("license.loading", "Loading license information...") }) }) });
170
171
  }
171
172
  if (error) {
172
- return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(Box, { padding: 8, children: /* @__PURE__ */ jsx(Alert, { variant: "danger", title: "Error", closeLabel: "Close", children: error }) }) });
173
+ return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(S, { padding: 8, children: /* @__PURE__ */ jsx(ud, { variant: "danger", title: "Error", closeLabel: "Close", children: error }) }) });
173
174
  }
174
175
  const isValid = licenseData?.valid;
175
176
  const isDemo = licenseData?.demo;
@@ -177,13 +178,13 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
177
178
  const data = licenseData?.data || {};
178
179
  const collaborators = limits?.limits?.collaborators || { current: 0, max: 2, unlimited: false };
179
180
  return /* @__PURE__ */ jsxs(Container, { children: [
180
- /* @__PURE__ */ jsx(StickySaveBar, { paddingTop: 5, paddingBottom: 5, paddingLeft: 6, paddingRight: 6, children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", children: [
181
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 1, alignItems: "flex-start", children: [
182
- /* @__PURE__ */ jsx(Typography, { variant: "alpha", fontWeight: "bold", children: t("license.title", "License Management") }),
183
- /* @__PURE__ */ jsx(Typography, { variant: "epsilon", textColor: "neutral600", children: t("license.subtitle", "View your Magic Editor X plugin license") })
181
+ /* @__PURE__ */ jsx(StickySaveBar, { paddingTop: 5, paddingBottom: 5, paddingLeft: 6, paddingRight: 6, children: /* @__PURE__ */ jsxs(C, { justifyContent: "space-between", alignItems: "flex-start", children: [
182
+ /* @__PURE__ */ jsxs(C, { direction: "column", gap: 1, alignItems: "flex-start", children: [
183
+ /* @__PURE__ */ jsx(A, { variant: "alpha", fontWeight: "bold", children: t("license.title", "License Management") }),
184
+ /* @__PURE__ */ jsx(A, { variant: "epsilon", textColor: "neutral600", children: t("license.subtitle", "View your Magic Editor X plugin license") })
184
185
  ] }),
185
186
  /* @__PURE__ */ jsx(
186
- Button,
187
+ Ct,
187
188
  {
188
189
  startIcon: /* @__PURE__ */ jsx(ArrowPathIcon, { style: { width: 20, height: 20 } }),
189
190
  onClick: fetchLicenseStatus,
@@ -198,15 +199,15 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
198
199
  }
199
200
  )
200
201
  ] }) }),
201
- /* @__PURE__ */ jsxs(Box, { paddingTop: 6, paddingLeft: 6, paddingRight: 6, paddingBottom: 10, children: [
202
- isDemo ? /* @__PURE__ */ jsx(Alert, { variant: "warning", title: t("license.alert.free", "FREE Mode"), closeLabel: "Close", children: t("license.alert.free.message", "You're using the FREE version with 2 collaborators. Upgrade for more features.") }) : isValid ? /* @__PURE__ */ jsx(Alert, { variant: "success", title: t("license.alert.active", "License Active"), closeLabel: "Close", children: t("license.alert.active.message", "Your license is active and all features are unlocked.") }) : /* @__PURE__ */ jsx(Alert, { variant: "danger", title: t("license.alert.issue", "License Issue"), closeLabel: "Close", children: t("license.alert.issue.message", "There's an issue with your license. Please check your license status.") }),
203
- data.licenseKey && /* @__PURE__ */ jsx(Box, { marginTop: 6, children: /* @__PURE__ */ jsx(LicenseKeyBanner, { children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", children: [
204
- /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
205
- /* @__PURE__ */ jsx(Typography, { variant: "pi", style: { color: "rgba(255,255,255,0.8)", marginBottom: "12px", textTransform: "uppercase", fontSize: "11px", letterSpacing: "0.5px", display: "block" }, children: t("license.key", "License Key") }),
206
- /* @__PURE__ */ jsx(Typography, { style: { color: "white", fontFamily: "monospace", fontSize: "28px", fontWeight: "bold", wordBreak: "break-all", marginBottom: "16px" }, children: data.licenseKey }),
207
- /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
202
+ /* @__PURE__ */ jsxs(S, { paddingTop: 6, paddingLeft: 6, paddingRight: 6, paddingBottom: 10, children: [
203
+ isDemo ? /* @__PURE__ */ jsx(ud, { variant: "warning", title: t("license.alert.free", "FREE Mode"), closeLabel: "Close", children: t("license.alert.free.message", "You're using the FREE version with 2 collaborators. Upgrade for more features.") }) : isValid ? /* @__PURE__ */ jsx(ud, { variant: "success", title: t("license.alert.active", "License Active"), closeLabel: "Close", children: t("license.alert.active.message", "Your license is active and all features are unlocked.") }) : /* @__PURE__ */ jsx(ud, { variant: "danger", title: t("license.alert.issue", "License Issue"), closeLabel: "Close", children: t("license.alert.issue.message", "There's an issue with your license. Please check your license status.") }),
204
+ data.licenseKey && /* @__PURE__ */ jsx(S, { marginTop: 6, children: /* @__PURE__ */ jsx(LicenseKeyBanner, { children: /* @__PURE__ */ jsxs(C, { justifyContent: "space-between", alignItems: "flex-start", children: [
205
+ /* @__PURE__ */ jsxs(S, { style: { flex: 1 }, children: [
206
+ /* @__PURE__ */ jsx(A, { variant: "pi", style: { color: "rgba(255,255,255,0.8)", marginBottom: "12px", textTransform: "uppercase", fontSize: "11px", letterSpacing: "0.5px", display: "block" }, children: t("license.key", "License Key") }),
207
+ /* @__PURE__ */ jsx(A, { style: { color: "white", fontFamily: "monospace", fontSize: "28px", fontWeight: "bold", wordBreak: "break-all", marginBottom: "16px" }, children: data.licenseKey }),
208
+ /* @__PURE__ */ jsxs(C, { gap: 2, children: [
208
209
  /* @__PURE__ */ jsx(
209
- Button,
210
+ Ct,
210
211
  {
211
212
  onClick: handleCopyLicenseKey,
212
213
  startIcon: /* @__PURE__ */ jsx(DocumentDuplicateIcon, { style: { width: 16, height: 16 } }),
@@ -222,7 +223,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
222
223
  }
223
224
  ),
224
225
  /* @__PURE__ */ jsx(
225
- Button,
226
+ Ct,
226
227
  {
227
228
  onClick: handleDownloadLicenseKey,
228
229
  startIcon: /* @__PURE__ */ jsx(ArrowDownTrayIcon, { style: { width: 16, height: 16 } }),
@@ -239,9 +240,9 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
239
240
  )
240
241
  ] })
241
242
  ] }),
242
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, alignItems: "flex-end", children: [
243
+ /* @__PURE__ */ jsxs(C, { direction: "column", gap: 2, alignItems: "flex-end", children: [
243
244
  /* @__PURE__ */ jsx(
244
- Badge,
245
+ Nr,
245
246
  {
246
247
  backgroundColor: data.isActive ? "success100" : "danger100",
247
248
  textColor: data.isActive ? "success700" : "danger700",
@@ -250,7 +251,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
250
251
  }
251
252
  ),
252
253
  /* @__PURE__ */ jsx(
253
- Badge,
254
+ Nr,
254
255
  {
255
256
  style: {
256
257
  fontSize: "11px",
@@ -264,36 +265,36 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
264
265
  )
265
266
  ] })
266
267
  ] }) }) }),
267
- /* @__PURE__ */ jsx(Box, { marginTop: 6, children: /* @__PURE__ */ jsxs(Accordion.Root, { defaultValue: "account", collapsible: true, children: [
268
- /* @__PURE__ */ jsxs(Accordion.Item, { value: "account", children: [
269
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(UserIcon, { style: { width: 16, height: 16 } }), children: t("license.section.account", "Account Information") }) }),
270
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
271
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "200px" }, children: [
272
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.email", "Email Address") }),
273
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.email || t("license.notProvided", "Not provided") })
268
+ /* @__PURE__ */ jsx(S, { marginTop: 6, children: /* @__PURE__ */ jsxs(dd.Root, { defaultValue: "account", collapsible: true, children: [
269
+ /* @__PURE__ */ jsxs(dd.Item, { value: "account", children: [
270
+ /* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(UserIcon, { style: { width: 16, height: 16 } }), children: t("license.section.account", "Account Information") }) }),
271
+ /* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsx(S, { padding: 6, children: /* @__PURE__ */ jsxs(C, { gap: 8, wrap: "wrap", children: [
272
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "200px" }, children: [
273
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.email", "Email Address") }),
274
+ /* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.email || t("license.notProvided", "Not provided") })
274
275
  ] }),
275
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "200px" }, children: [
276
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.holder", "License Holder") }),
277
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.firstName && data.lastName ? `${data.firstName} ${data.lastName}` : t("license.notSpecified", "Not specified") })
276
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "200px" }, children: [
277
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.holder", "License Holder") }),
278
+ /* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.firstName && data.lastName ? `${data.firstName} ${data.lastName}` : t("license.notSpecified", "Not specified") })
278
279
  ] })
279
280
  ] }) }) })
280
281
  ] }),
281
- /* @__PURE__ */ jsxs(Accordion.Item, { value: "collaborators", children: [
282
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(UsersIcon, { style: { width: 16, height: 16 } }), children: t("license.section.collaborators", "Collaborator Limits") }) }),
283
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsxs(Box, { padding: 6, children: [
284
- /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", alignItems: "center", children: [
285
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "200px" }, children: [
286
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.currentUsage", "Current Usage") }),
287
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", fontWeight: "semiBold", style: { fontSize: "24px" }, children: [
282
+ /* @__PURE__ */ jsxs(dd.Item, { value: "collaborators", children: [
283
+ /* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(UsersIcon, { style: { width: 16, height: 16 } }), children: t("license.section.collaborators", "Collaborator Limits") }) }),
284
+ /* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsxs(S, { padding: 6, children: [
285
+ /* @__PURE__ */ jsxs(C, { gap: 8, wrap: "wrap", alignItems: "center", children: [
286
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "200px" }, children: [
287
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.currentUsage", "Current Usage") }),
288
+ /* @__PURE__ */ jsxs(A, { variant: "omega", fontWeight: "semiBold", style: { fontSize: "24px" }, children: [
288
289
  collaborators.current,
289
290
  " / ",
290
291
  collaborators.unlimited ? t("license.unlimited", "Unlimited") : collaborators.max
291
292
  ] })
292
293
  ] }),
293
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "200px" }, children: [
294
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.status", "Status") }),
294
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "200px" }, children: [
295
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.status", "Status") }),
295
296
  /* @__PURE__ */ jsx(
296
- Badge,
297
+ Nr,
297
298
  {
298
299
  backgroundColor: collaborators.canAdd ? "success100" : "danger100",
299
300
  textColor: collaborators.canAdd ? "success700" : "danger700",
@@ -303,32 +304,32 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
303
304
  )
304
305
  ] })
305
306
  ] }),
306
- !collaborators.canAdd && !collaborators.unlimited && /* @__PURE__ */ jsx(Box, { marginTop: 4, padding: 4, background: "warning100", hasRadius: true, children: /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "warning700", children: t("license.upgradeMessage", "Upgrade your plan to add more collaborators. Visit https://store.magicdx.dev/") }) })
307
+ !collaborators.canAdd && !collaborators.unlimited && /* @__PURE__ */ jsx(S, { marginTop: 4, padding: 4, background: "warning100", hasRadius: true, children: /* @__PURE__ */ jsx(A, { variant: "omega", textColor: "warning700", children: t("license.upgradeMessage", "Upgrade your plan to add more collaborators. Visit https://store.magicdx.dev/") }) })
307
308
  ] }) })
308
309
  ] }),
309
- /* @__PURE__ */ jsxs(Accordion.Item, { value: "details", children: [
310
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(ShieldCheckIcon, { style: { width: 16, height: 16 } }), children: t("license.section.details", "License Details") }) }),
311
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
312
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "180px" }, children: [
313
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: data.isExpired ? t("license.expiredOn", "Expired On") : t("license.expiresOn", "Expires On") }),
314
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.expiresAt ? new Date(data.expiresAt).toLocaleDateString("en-US", {
310
+ /* @__PURE__ */ jsxs(dd.Item, { value: "details", children: [
311
+ /* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(ShieldCheckIcon, { style: { width: 16, height: 16 } }), children: t("license.section.details", "License Details") }) }),
312
+ /* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsx(S, { padding: 6, children: /* @__PURE__ */ jsxs(C, { gap: 8, wrap: "wrap", children: [
313
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "180px" }, children: [
314
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: data.isExpired ? t("license.expiredOn", "Expired On") : t("license.expiresOn", "Expires On") }),
315
+ /* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.expiresAt ? new Date(data.expiresAt).toLocaleDateString("en-US", {
315
316
  year: "numeric",
316
317
  month: "long",
317
318
  day: "numeric"
318
319
  }) : t("license.never", "Never") })
319
320
  ] }),
320
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "180px" }, children: [
321
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.deviceName", "Device Name") }),
322
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.deviceName || t("license.unknown", "Unknown") })
321
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "180px" }, children: [
322
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.deviceName", "Device Name") }),
323
+ /* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.deviceName || t("license.unknown", "Unknown") })
323
324
  ] })
324
325
  ] }) }) })
325
326
  ] }),
326
- /* @__PURE__ */ jsxs(Accordion.Item, { value: "features", children: [
327
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(SparklesIcon, { style: { width: 16, height: 16 } }), children: t("license.section.features", "Features & Capabilities") }) }),
328
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsxs(Box, { padding: 6, children: [
329
- /* @__PURE__ */ jsxs(Flex, { gap: 3, style: { marginBottom: "32px" }, children: [
327
+ /* @__PURE__ */ jsxs(dd.Item, { value: "features", children: [
328
+ /* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(SparklesIcon, { style: { width: 16, height: 16 } }), children: t("license.section.features", "Features & Capabilities") }) }),
329
+ /* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsxs(S, { padding: 6, children: [
330
+ /* @__PURE__ */ jsxs(C, { gap: 3, style: { marginBottom: "32px" }, children: [
330
331
  /* @__PURE__ */ jsxs(
331
- Badge,
332
+ Nr,
332
333
  {
333
334
  backgroundColor: tier === "free" ? "success100" : "neutral100",
334
335
  textColor: tier === "free" ? "success700" : "neutral600",
@@ -345,7 +346,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
345
346
  }
346
347
  ),
347
348
  /* @__PURE__ */ jsxs(
348
- Badge,
349
+ Nr,
349
350
  {
350
351
  backgroundColor: tier === "premium" ? "primary100" : "neutral100",
351
352
  textColor: tier === "premium" ? "primary700" : "neutral600",
@@ -362,7 +363,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
362
363
  }
363
364
  ),
364
365
  /* @__PURE__ */ jsxs(
365
- Badge,
366
+ Nr,
366
367
  {
367
368
  backgroundColor: tier === "advanced" || tier === "enterprise" ? "secondary100" : "neutral100",
368
369
  textColor: tier === "advanced" || tier === "enterprise" ? "secondary700" : "neutral600",
@@ -379,31 +380,31 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
379
380
  }
380
381
  )
381
382
  ] }),
382
- /* @__PURE__ */ jsxs(Box, { padding: 5, background: "neutral100", hasRadius: true, children: [
383
- /* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", style: { marginBottom: "16px", display: "block" }, children: t("license.yourPlanIncludes", "Your Plan Includes:") }),
384
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
385
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
383
+ /* @__PURE__ */ jsxs(S, { padding: 5, background: "neutral100", hasRadius: true, children: [
384
+ /* @__PURE__ */ jsx(A, { variant: "delta", fontWeight: "bold", style: { marginBottom: "16px", display: "block" }, children: t("license.yourPlanIncludes", "Your Plan Includes:") }),
385
+ /* @__PURE__ */ jsxs(C, { direction: "column", gap: 2, children: [
386
+ /* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
386
387
  "[OK] ",
387
388
  t("license.feature.fullAccess", "Full Editor Access (all tools)")
388
389
  ] }),
389
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
390
+ /* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
390
391
  "[OK] ",
391
392
  t("license.feature.realtimeCollab", "Real-Time Collaboration")
392
393
  ] }),
393
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
394
+ /* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
394
395
  "[OK] ",
395
396
  collaborators.unlimited ? t("license.feature.collaboratorsUnlimited", "Unlimited Collaborators") : t("license.feature.collaborators", "{count} Collaborator(s)", { count: collaborators.max })
396
397
  ] }),
397
398
  (tier === "premium" || tier === "advanced" || tier === "enterprise") && /* @__PURE__ */ jsxs(Fragment, { children: [
398
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
399
+ /* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
399
400
  "[OK] ",
400
401
  t("license.feature.aiAssistant", "AI Assistant (Usage-based)")
401
402
  ] }),
402
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
403
+ /* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
403
404
  "[OK] ",
404
405
  t("license.feature.versionHistory", "Version History")
405
406
  ] }),
406
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
407
+ /* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
407
408
  "[OK] ",
408
409
  t("license.feature.prioritySupport", "Priority Support")
409
410
  ] })
@@ -412,20 +413,20 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
412
413
  ] })
413
414
  ] }) })
414
415
  ] }),
415
- /* @__PURE__ */ jsxs(Accordion.Item, { value: "status", children: [
416
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(ChartBarIcon, { style: { width: 16, height: 16 } }), children: t("license.section.status", "System Status") }) }),
417
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
418
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "150px" }, children: [
419
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.licenseStatus", "License Status") }),
420
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.isActive ? t("license.active", "Active") : t("license.inactive", "Inactive") })
416
+ /* @__PURE__ */ jsxs(dd.Item, { value: "status", children: [
417
+ /* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(ChartBarIcon, { style: { width: 16, height: 16 } }), children: t("license.section.status", "System Status") }) }),
418
+ /* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsx(S, { padding: 6, children: /* @__PURE__ */ jsxs(C, { gap: 8, wrap: "wrap", children: [
419
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "150px" }, children: [
420
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.licenseStatus", "License Status") }),
421
+ /* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.isActive ? t("license.active", "Active") : t("license.inactive", "Inactive") })
421
422
  ] }),
422
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "150px" }, children: [
423
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.connection", "Connection") }),
424
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.isOnline ? t("license.online", "Online") : t("license.offline", "Offline") })
423
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "150px" }, children: [
424
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.connection", "Connection") }),
425
+ /* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.isOnline ? t("license.online", "Online") : t("license.offline", "Offline") })
425
426
  ] }),
426
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "150px" }, children: [
427
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.lastSync", "Last Sync") }),
428
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.lastPingAt ? new Date(data.lastPingAt).toLocaleTimeString() : t("license.never", "Never") })
427
+ /* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "150px" }, children: [
428
+ /* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.lastSync", "Last Sync") }),
429
+ /* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.lastPingAt ? new Date(data.lastPingAt).toLocaleTimeString() : t("license.never", "Never") })
429
430
  ] })
430
431
  ] }) }) })
431
432
  ] })