strapi-plugin-magic-mail 2.6.2 → 2.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{App-CtzU0GEJ.mjs → App-CaT5U0uM.mjs} +88 -100
- package/dist/_chunks/{App-BQRVLK7n.js → App-DGGqHEPC.js} +88 -100
- package/dist/_chunks/{LicensePage-C8ZmA1BC.mjs → LicensePage-B61HnhyD.mjs} +38 -34
- package/dist/_chunks/{LicensePage-B-EIY3Gv.js → LicensePage-sB-xDRL9.js} +38 -34
- package/dist/_chunks/{PluginSettings-B4qJyLnA.mjs → PluginSettings-XwyzH95_.mjs} +3 -3
- package/dist/_chunks/{PluginSettings-BwL8Vqwq.js → PluginSettings-cZXE_vy8.js} +3 -3
- package/dist/_chunks/{Settings-Bz6ogaIs.js → Settings-BRFoD1yZ.js} +2 -2
- package/dist/_chunks/{Settings-BMyRAG6n.mjs → Settings-DoSrZKfp.mjs} +2 -2
- package/dist/_chunks/{StyledButtons-B1mvI82D.mjs → StyledButtons-CdOf4Sps.mjs} +2 -2
- package/dist/_chunks/{StyledButtons-BthPdM8c.js → StyledButtons-DVGuFoqy.js} +2 -2
- package/dist/admin/index.js +4 -4
- package/dist/admin/index.mjs +4 -4
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ const outline = require("@heroicons/react/24/outline");
|
|
|
8
8
|
const admin = require("@strapi/strapi/admin");
|
|
9
9
|
const styled = require("styled-components");
|
|
10
10
|
const icons = require("@strapi/icons");
|
|
11
|
-
const StyledButtons = require("./StyledButtons-
|
|
11
|
+
const StyledButtons = require("./StyledButtons-DVGuFoqy.js");
|
|
12
12
|
const ReactEmailEditor = require("react-email-editor");
|
|
13
13
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
14
14
|
function _interopNamespace(e) {
|
|
@@ -122,8 +122,6 @@ const colors$1 = {
|
|
|
122
122
|
successLight: "rgba(92, 177, 118, 0.12)",
|
|
123
123
|
// Gray
|
|
124
124
|
neutralLight: "rgba(142, 142, 169, 0.08)",
|
|
125
|
-
// Light gray
|
|
126
|
-
white: "var(--colors-neutral0, #ffffff)",
|
|
127
125
|
border: "rgba(128, 128, 128, 0.2)",
|
|
128
126
|
text: "var(--colors-neutral800, #32324d)",
|
|
129
127
|
textLight: "var(--colors-neutral600, #666687)"
|
|
@@ -191,8 +189,8 @@ const StepDot$1 = styled__default.default.div`
|
|
|
191
189
|
width: 56px;
|
|
192
190
|
height: 56px;
|
|
193
191
|
border-radius: 50%;
|
|
194
|
-
background: ${(props) => props.$active ? colors$1.primary : props.$completed ? colors$1.success : colors
|
|
195
|
-
color: ${(props) => props.$active || props.$completed ?
|
|
192
|
+
background: ${(props) => props.$active ? colors$1.primary : props.$completed ? colors$1.success : props.theme.colors.neutral0};
|
|
193
|
+
color: ${(props) => props.$active || props.$completed ? "#ffffff" : colors$1.textLight};
|
|
196
194
|
border: 4px solid ${(props) => props.$active ? colors$1.primary : props.$completed ? colors$1.success : colors$1.border};
|
|
197
195
|
display: flex;
|
|
198
196
|
align-items: center;
|
|
@@ -233,7 +231,7 @@ const ProvidersGrid = styled__default.default(designSystem.Box)`
|
|
|
233
231
|
margin-right: auto;
|
|
234
232
|
`;
|
|
235
233
|
const ProviderCard = styled__default.default(designSystem.Box)`
|
|
236
|
-
background: ${(props) => props.$selected ? colors$1.successLight : colors
|
|
234
|
+
background: ${(props) => props.$selected ? colors$1.successLight : props.theme.colors.neutral0};
|
|
237
235
|
border: 2px solid ${(props) => props.$selected ? colors$1.success : colors$1.border};
|
|
238
236
|
border-radius: 12px;
|
|
239
237
|
padding: 24px;
|
|
@@ -1973,7 +1971,7 @@ const StatsGrid$3 = styled__default.default.div`
|
|
|
1973
1971
|
}
|
|
1974
1972
|
`;
|
|
1975
1973
|
const StatCard$3 = styled__default.default(designSystem.Box)`
|
|
1976
|
-
background:
|
|
1974
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
1977
1975
|
border-radius: ${theme$3.borderRadius.lg};
|
|
1978
1976
|
padding: 28px ${theme$3.spacing.lg};
|
|
1979
1977
|
position: relative;
|
|
@@ -2073,7 +2071,7 @@ const AccountsContainer = styled__default.default(designSystem.Box)`
|
|
|
2073
2071
|
margin-top: ${theme$3.spacing.xl};
|
|
2074
2072
|
`;
|
|
2075
2073
|
const EmptyState$3 = styled__default.default(designSystem.Box)`
|
|
2076
|
-
background:
|
|
2074
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
2077
2075
|
border-radius: ${theme$3.borderRadius.xl};
|
|
2078
2076
|
border: 2px dashed rgba(128, 128, 128, 0.3);
|
|
2079
2077
|
padding: 80px 32px;
|
|
@@ -2142,7 +2140,7 @@ const StyledTable$3 = styled__default.default(designSystem.Table)`
|
|
|
2142
2140
|
}
|
|
2143
2141
|
`;
|
|
2144
2142
|
const FilterBar$3 = styled__default.default(designSystem.Flex)`
|
|
2145
|
-
background:
|
|
2143
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
2146
2144
|
padding: ${theme$3.spacing.md} ${theme$3.spacing.lg};
|
|
2147
2145
|
border-radius: ${theme$3.borderRadius.lg};
|
|
2148
2146
|
margin-bottom: ${theme$3.spacing.lg};
|
|
@@ -2172,7 +2170,7 @@ const StyledSearchInput$2 = styled__default.default.input`
|
|
|
2172
2170
|
border-radius: ${theme$3.borderRadius.md};
|
|
2173
2171
|
font-size: 0.875rem;
|
|
2174
2172
|
transition: all ${theme$3.transitions.fast};
|
|
2175
|
-
background:
|
|
2173
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
2176
2174
|
color: var(--colors-neutral800);
|
|
2177
2175
|
|
|
2178
2176
|
&:focus {
|
|
@@ -2227,7 +2225,7 @@ const StyledModalHeader$1 = styled__default.default(designSystem.Modal.Header)`
|
|
|
2227
2225
|
const StyledModalBody$1 = styled__default.default(designSystem.Modal.Body)`
|
|
2228
2226
|
&& {
|
|
2229
2227
|
padding: 24px 28px;
|
|
2230
|
-
background:
|
|
2228
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
2231
2229
|
width: 100%;
|
|
2232
2230
|
box-sizing: border-box;
|
|
2233
2231
|
}
|
|
@@ -2258,7 +2256,7 @@ const TestOptionCard = styled__default.default(designSystem.Box)`
|
|
|
2258
2256
|
border-radius: 12px;
|
|
2259
2257
|
cursor: pointer;
|
|
2260
2258
|
transition: all ${theme$3.transitions.fast};
|
|
2261
|
-
background: ${(props) => props.$selected ? "rgba(2, 132, 199, 0.06)" : "
|
|
2259
|
+
background: ${(props) => props.$selected ? "rgba(2, 132, 199, 0.06)" : "${(p) => p.theme.colors.neutral0}"};
|
|
2262
2260
|
|
|
2263
2261
|
&:hover {
|
|
2264
2262
|
border-color: ${"rgba(2, 132, 199, 0.4)"};
|
|
@@ -2283,7 +2281,7 @@ const StyledModalSelect = styled__default.default.select`
|
|
|
2283
2281
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
2284
2282
|
border-radius: 8px;
|
|
2285
2283
|
font-size: 14px;
|
|
2286
|
-
background:
|
|
2284
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
2287
2285
|
color: var(--colors-neutral800);
|
|
2288
2286
|
cursor: pointer;
|
|
2289
2287
|
transition: all ${theme$3.transitions.fast};
|
|
@@ -2301,7 +2299,7 @@ const StyledModalInput = styled__default.default.input`
|
|
|
2301
2299
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
2302
2300
|
border-radius: 8px;
|
|
2303
2301
|
font-size: 14px;
|
|
2304
|
-
background:
|
|
2302
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
2305
2303
|
color: var(--colors-neutral800);
|
|
2306
2304
|
transition: all ${theme$3.transitions.fast};
|
|
2307
2305
|
box-sizing: border-box;
|
|
@@ -3007,7 +3005,7 @@ const StatsGrid$2 = styled__default.default.div`
|
|
|
3007
3005
|
}
|
|
3008
3006
|
`;
|
|
3009
3007
|
const StatCard$2 = styled__default.default(designSystem.Box)`
|
|
3010
|
-
background:
|
|
3008
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
3011
3009
|
border-radius: ${theme$2.borderRadius.lg};
|
|
3012
3010
|
padding: 28px ${theme$2.spacing.lg};
|
|
3013
3011
|
position: relative;
|
|
@@ -3107,7 +3105,7 @@ const RulesContainer = styled__default.default(designSystem.Box)`
|
|
|
3107
3105
|
margin-top: ${theme$2.spacing.xl};
|
|
3108
3106
|
`;
|
|
3109
3107
|
const EmptyState$2 = styled__default.default(designSystem.Box)`
|
|
3110
|
-
background:
|
|
3108
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
3111
3109
|
border-radius: ${theme$2.borderRadius.xl};
|
|
3112
3110
|
border: 2px dashed rgba(128, 128, 128, 0.3);
|
|
3113
3111
|
padding: 80px 32px;
|
|
@@ -3176,7 +3174,7 @@ const StyledTable$2 = styled__default.default(designSystem.Table)`
|
|
|
3176
3174
|
}
|
|
3177
3175
|
`;
|
|
3178
3176
|
const FilterBar$2 = styled__default.default(designSystem.Flex)`
|
|
3179
|
-
background:
|
|
3177
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
3180
3178
|
padding: ${theme$2.spacing.md} ${theme$2.spacing.lg};
|
|
3181
3179
|
border-radius: ${theme$2.borderRadius.lg};
|
|
3182
3180
|
margin-bottom: ${theme$2.spacing.lg};
|
|
@@ -3908,7 +3906,7 @@ const ScrollableDialogBody = styled__default.default(designSystem.Box)`
|
|
|
3908
3906
|
overflow-y: auto;
|
|
3909
3907
|
max-height: calc(85vh - 160px);
|
|
3910
3908
|
padding: 24px 28px 28px 28px;
|
|
3911
|
-
background:
|
|
3909
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
3912
3910
|
|
|
3913
3911
|
/* Custom Scrollbar */
|
|
3914
3912
|
&::-webkit-scrollbar {
|
|
@@ -4038,7 +4036,7 @@ const CopyButton = styled__default.default(designSystem.Button)`
|
|
|
4038
4036
|
height: 14px;
|
|
4039
4037
|
}
|
|
4040
4038
|
`;
|
|
4041
|
-
const InfoBox$
|
|
4039
|
+
const InfoBox$2 = styled__default.default(designSystem.Box)`
|
|
4042
4040
|
background: linear-gradient(135deg, ${"rgba(2, 132, 199, 0.06)"}, ${"rgba(2, 132, 199, 0.12)"});
|
|
4043
4041
|
border-left: 4px solid ${"var(--colors-primary600, #0EA5E9)"};
|
|
4044
4042
|
border-radius: 8px;
|
|
@@ -4192,7 +4190,7 @@ const StatsGrid$1 = styled__default.default.div`
|
|
|
4192
4190
|
}
|
|
4193
4191
|
`;
|
|
4194
4192
|
const StatCard$1 = styled__default.default(designSystem.Box)`
|
|
4195
|
-
background:
|
|
4193
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
4196
4194
|
border-radius: ${theme$1.borderRadius.lg};
|
|
4197
4195
|
padding: 28px ${theme$1.spacing.lg};
|
|
4198
4196
|
position: relative;
|
|
@@ -4295,7 +4293,7 @@ const SectionHeader = styled__default.default(designSystem.Box)`
|
|
|
4295
4293
|
margin-bottom: ${theme$1.spacing.md};
|
|
4296
4294
|
`;
|
|
4297
4295
|
const FilterBar$1 = styled__default.default(designSystem.Flex)`
|
|
4298
|
-
background:
|
|
4296
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
4299
4297
|
padding: ${theme$1.spacing.md} ${theme$1.spacing.lg};
|
|
4300
4298
|
border-radius: ${theme$1.borderRadius.lg};
|
|
4301
4299
|
margin-bottom: ${theme$1.spacing.lg};
|
|
@@ -4327,7 +4325,7 @@ const TableWrapper = styled__default.default(designSystem.Box)`
|
|
|
4327
4325
|
overflow-x: auto;
|
|
4328
4326
|
border-radius: ${theme$1.borderRadius.lg};
|
|
4329
4327
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
4330
|
-
background:
|
|
4328
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
4331
4329
|
|
|
4332
4330
|
&::-webkit-scrollbar {
|
|
4333
4331
|
height: 8px;
|
|
@@ -4393,7 +4391,7 @@ const PaginationWrapper = styled__default.default(designSystem.Flex)`
|
|
|
4393
4391
|
border-radius: 0 0 ${theme$1.borderRadius.lg} ${theme$1.borderRadius.lg};
|
|
4394
4392
|
`;
|
|
4395
4393
|
const PaginationButton = styled__default.default.button`
|
|
4396
|
-
background: ${(props) => props.active ? "linear-gradient(135deg, var(--colors-primary600, #0EA5E9) 0%, var(--colors-secondary500, #A855F7) 100%)" : "
|
|
4394
|
+
background: ${(props) => props.active ? "linear-gradient(135deg, var(--colors-primary600, #0EA5E9) 0%, var(--colors-secondary500, #A855F7) 100%)" : "${(p) => p.theme.colors.neutral0}"};
|
|
4397
4395
|
color: ${(props) => props.active ? "white" : "var(--colors-neutral700)"};
|
|
4398
4396
|
border: 1px solid ${(props) => props.active ? "transparent" : "rgba(128, 128, 128, 0.3)"};
|
|
4399
4397
|
padding: 6px 12px;
|
|
@@ -4416,7 +4414,7 @@ const PaginationButton = styled__default.default.button`
|
|
|
4416
4414
|
}
|
|
4417
4415
|
`;
|
|
4418
4416
|
const EmptyState$1 = styled__default.default(designSystem.Box)`
|
|
4419
|
-
background:
|
|
4417
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
4420
4418
|
border-radius: ${theme$1.borderRadius.xl};
|
|
4421
4419
|
border: 2px dashed rgba(128, 128, 128, 0.3);
|
|
4422
4420
|
padding: 80px 32px;
|
|
@@ -4481,7 +4479,7 @@ const EmptyFeatureItem = styled__default.default.div`
|
|
|
4481
4479
|
text-align: center;
|
|
4482
4480
|
gap: ${theme$1.spacing.sm};
|
|
4483
4481
|
padding: ${theme$1.spacing.lg};
|
|
4484
|
-
background:
|
|
4482
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
4485
4483
|
border-radius: ${theme$1.borderRadius.md};
|
|
4486
4484
|
box-shadow: ${theme$1.shadows.sm};
|
|
4487
4485
|
transition: ${theme$1.transitions.fast};
|
|
@@ -4555,7 +4553,7 @@ const StyledModalHeader = styled__default.default(designSystem.Modal.Header)`
|
|
|
4555
4553
|
const StyledModalBody = styled__default.default(designSystem.Modal.Body)`
|
|
4556
4554
|
&& {
|
|
4557
4555
|
padding: 28px;
|
|
4558
|
-
background:
|
|
4556
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
4559
4557
|
}
|
|
4560
4558
|
`;
|
|
4561
4559
|
const ModalField = styled__default.default(designSystem.Box)`
|
|
@@ -4600,7 +4598,7 @@ const StyledSelect = styled__default.default.select`
|
|
|
4600
4598
|
border-radius: 8px;
|
|
4601
4599
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
4602
4600
|
font-size: 14px;
|
|
4603
|
-
background:
|
|
4601
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
4604
4602
|
cursor: pointer;
|
|
4605
4603
|
transition: all ${theme$1.transitions.fast};
|
|
4606
4604
|
color: var(--colors-neutral700);
|
|
@@ -5354,7 +5352,7 @@ const TemplateList = () => {
|
|
|
5354
5352
|
selectedTemplate.name
|
|
5355
5353
|
] }) }),
|
|
5356
5354
|
/* @__PURE__ */ jsxRuntime.jsxs(ScrollableDialogBody, { children: [
|
|
5357
|
-
/* @__PURE__ */ jsxRuntime.jsx(InfoBox$
|
|
5355
|
+
/* @__PURE__ */ jsxRuntime.jsx(InfoBox$2, { style: { marginTop: 0, marginBottom: "20px" }, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", justifyContent: "space-between", children: [
|
|
5358
5356
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", style: { color: "var(--colors-primary600, #075985)" }, children: [
|
|
5359
5357
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Template ID:" }),
|
|
5360
5358
|
" #",
|
|
@@ -5679,7 +5677,7 @@ const Container$1 = styled__default.default.div`
|
|
|
5679
5677
|
`;
|
|
5680
5678
|
const Header$1 = styled__default.default.div`
|
|
5681
5679
|
padding: 24px;
|
|
5682
|
-
background:
|
|
5680
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
5683
5681
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
|
|
5684
5682
|
`;
|
|
5685
5683
|
const HeaderRow = styled__default.default.div`
|
|
@@ -5750,7 +5748,7 @@ const TabsWrapper = styled__default.default.div`
|
|
|
5750
5748
|
`;
|
|
5751
5749
|
const TabListWrapper = styled__default.default.div`
|
|
5752
5750
|
padding: 0 24px;
|
|
5753
|
-
background:
|
|
5751
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
5754
5752
|
border-bottom: 1px solid rgba(128, 128, 128, 0.2);
|
|
5755
5753
|
`;
|
|
5756
5754
|
const StyledTabsRoot = styled__default.default(designSystem.Tabs.Root)`
|
|
@@ -5765,7 +5763,7 @@ const StyledTabsContent = styled__default.default(designSystem.Tabs.Content)`
|
|
|
5765
5763
|
`;
|
|
5766
5764
|
const TabContentWrapper = styled__default.default.div`
|
|
5767
5765
|
height: calc(100vh - 240px);
|
|
5768
|
-
background:
|
|
5766
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
5769
5767
|
position: relative;
|
|
5770
5768
|
`;
|
|
5771
5769
|
const TextTabContent = styled__default.default.div`
|
|
@@ -5837,7 +5835,7 @@ const ImportExportButton = styled__default.default.span`
|
|
|
5837
5835
|
gap: 6px;
|
|
5838
5836
|
padding: 8px 16px;
|
|
5839
5837
|
height: 36px;
|
|
5840
|
-
background:
|
|
5838
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
5841
5839
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
5842
5840
|
border-radius: 4px;
|
|
5843
5841
|
color: var(--colors-neutral800);
|
|
@@ -5869,7 +5867,7 @@ const ImportLabel = styled__default.default.label`
|
|
|
5869
5867
|
display: inline-block;
|
|
5870
5868
|
`;
|
|
5871
5869
|
const BackButton = styled__default.default.button`
|
|
5872
|
-
background:
|
|
5870
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
5873
5871
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
5874
5872
|
border-radius: 4px;
|
|
5875
5873
|
padding: 8px 10px;
|
|
@@ -5896,7 +5894,7 @@ const BackButton = styled__default.default.button`
|
|
|
5896
5894
|
}
|
|
5897
5895
|
`;
|
|
5898
5896
|
const VersionButton = styled__default.default.button`
|
|
5899
|
-
background:
|
|
5897
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
5900
5898
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
5901
5899
|
border-radius: 4px;
|
|
5902
5900
|
padding: 8px 16px;
|
|
@@ -5935,7 +5933,7 @@ const VersionModal = styled__default.default.div`
|
|
|
5935
5933
|
right: ${(props) => props.$isOpen ? "0" : "-450px"};
|
|
5936
5934
|
width: 450px;
|
|
5937
5935
|
height: 100vh;
|
|
5938
|
-
background:
|
|
5936
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
5939
5937
|
box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
|
|
5940
5938
|
z-index: 9999;
|
|
5941
5939
|
transition: right 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -6915,7 +6913,7 @@ const StatsGrid = styled__default.default.div`
|
|
|
6915
6913
|
}
|
|
6916
6914
|
`;
|
|
6917
6915
|
const StatCard = styled__default.default(designSystem.Box)`
|
|
6918
|
-
background:
|
|
6916
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
6919
6917
|
border-radius: ${theme.borderRadius.lg};
|
|
6920
6918
|
padding: 28px ${theme.spacing.lg};
|
|
6921
6919
|
position: relative;
|
|
@@ -7009,7 +7007,7 @@ const StatLabel = styled__default.default(designSystem.Typography)`
|
|
|
7009
7007
|
}
|
|
7010
7008
|
`;
|
|
7011
7009
|
const FilterBar = styled__default.default(designSystem.Box)`
|
|
7012
|
-
background:
|
|
7010
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
7013
7011
|
border-radius: ${theme.borderRadius.lg};
|
|
7014
7012
|
padding: ${theme.spacing.lg} ${theme.spacing.xl};
|
|
7015
7013
|
margin-bottom: ${theme.spacing.lg};
|
|
@@ -7051,7 +7049,7 @@ const StyledTable = styled__default.default(designSystem.Table)`
|
|
|
7051
7049
|
}
|
|
7052
7050
|
`;
|
|
7053
7051
|
const TableContainer = styled__default.default(designSystem.Box)`
|
|
7054
|
-
background:
|
|
7052
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
7055
7053
|
border-radius: ${theme.borderRadius.lg};
|
|
7056
7054
|
box-shadow: ${theme.shadows.md};
|
|
7057
7055
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
@@ -7059,7 +7057,7 @@ const TableContainer = styled__default.default(designSystem.Box)`
|
|
|
7059
7057
|
margin-bottom: ${theme.spacing.xl};
|
|
7060
7058
|
`;
|
|
7061
7059
|
const EmptyState = styled__default.default(designSystem.Box)`
|
|
7062
|
-
background:
|
|
7060
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
7063
7061
|
border-radius: ${theme.borderRadius.xl};
|
|
7064
7062
|
border: 2px dashed rgba(128, 128, 128, 0.3);
|
|
7065
7063
|
padding: 80px 32px;
|
|
@@ -7382,7 +7380,6 @@ const colors = {
|
|
|
7382
7380
|
danger: "#d02b20",
|
|
7383
7381
|
neutral: "#8e8ea9",
|
|
7384
7382
|
neutralLight: "rgba(142, 142, 169, 0.08)",
|
|
7385
|
-
white: "var(--colors-neutral0, #ffffff)",
|
|
7386
7383
|
border: "rgba(128, 128, 128, 0.2)",
|
|
7387
7384
|
textLight: "var(--colors-neutral600, #666687)"
|
|
7388
7385
|
};
|
|
@@ -7445,8 +7442,8 @@ const StepDot = styled__default.default.div`
|
|
|
7445
7442
|
width: 56px;
|
|
7446
7443
|
height: 56px;
|
|
7447
7444
|
border-radius: 50%;
|
|
7448
|
-
background: ${(props) => props.$active ? colors.whatsapp : props.$completed ? colors.success : colors.
|
|
7449
|
-
color: ${(props) => props.$active || props.$completed ?
|
|
7445
|
+
background: ${(props) => props.$active ? colors.whatsapp : props.$completed ? colors.success : props.theme.colors.neutral0};
|
|
7446
|
+
color: ${(props) => props.$active || props.$completed ? "#ffffff" : colors.textLight};
|
|
7450
7447
|
border: 4px solid ${(props) => props.$active ? colors.whatsapp : props.$completed ? colors.success : colors.border};
|
|
7451
7448
|
display: flex;
|
|
7452
7449
|
align-items: center;
|
|
@@ -7477,7 +7474,7 @@ const StepLabel = styled__default.default(designSystem.Typography)`
|
|
|
7477
7474
|
transition: all 0.3s ease;
|
|
7478
7475
|
`;
|
|
7479
7476
|
const ContentCard = styled__default.default(designSystem.Box)`
|
|
7480
|
-
background: ${colors.
|
|
7477
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
7481
7478
|
border: 1px solid ${colors.border};
|
|
7482
7479
|
border-radius: 16px;
|
|
7483
7480
|
padding: 32px;
|
|
@@ -7552,7 +7549,7 @@ const ConnectedCard = styled__default.default(designSystem.Box)`
|
|
|
7552
7549
|
padding: 32px;
|
|
7553
7550
|
text-align: center;
|
|
7554
7551
|
`;
|
|
7555
|
-
const InfoBox = styled__default.default(designSystem.Box)`
|
|
7552
|
+
const InfoBox$1 = styled__default.default(designSystem.Box)`
|
|
7556
7553
|
background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, ${colors.whatsappLight} 100%);
|
|
7557
7554
|
border: 1px solid rgba(2, 132, 199, 0.2);
|
|
7558
7555
|
border-radius: 12px;
|
|
@@ -7572,7 +7569,7 @@ const WhatsAppInput = styled__default.default.input`
|
|
|
7572
7569
|
border: 2px solid rgba(128, 128, 128, 0.2);
|
|
7573
7570
|
border-radius: 12px;
|
|
7574
7571
|
font-size: 15px;
|
|
7575
|
-
background:
|
|
7572
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
7576
7573
|
color: var(--colors-neutral800);
|
|
7577
7574
|
transition: all 0.2s ease;
|
|
7578
7575
|
box-sizing: border-box;
|
|
@@ -7593,7 +7590,7 @@ const WhatsAppTextarea = styled__default.default.textarea`
|
|
|
7593
7590
|
border: 2px solid rgba(128, 128, 128, 0.2);
|
|
7594
7591
|
border-radius: 12px;
|
|
7595
7592
|
font-size: 15px;
|
|
7596
|
-
background:
|
|
7593
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
7597
7594
|
color: var(--colors-neutral800);
|
|
7598
7595
|
transition: all 0.2s ease;
|
|
7599
7596
|
box-sizing: border-box;
|
|
@@ -7668,7 +7665,7 @@ const AlertIcon = styled__default.default.div`
|
|
|
7668
7665
|
font-weight: bold;
|
|
7669
7666
|
flex-shrink: 0;
|
|
7670
7667
|
`;
|
|
7671
|
-
const SuccessBox = styled__default.default(designSystem.Box)`
|
|
7668
|
+
const SuccessBox$1 = styled__default.default(designSystem.Box)`
|
|
7672
7669
|
background: rgba(22, 163, 74, 0.06);
|
|
7673
7670
|
border: 1px solid rgba(22, 163, 74, 0.2);
|
|
7674
7671
|
border-radius: 12px;
|
|
@@ -7929,7 +7926,7 @@ const WhatsAppPage = () => {
|
|
|
7929
7926
|
currentStep === 1 && /* @__PURE__ */ jsxRuntime.jsxs(ContentCard, { children: [
|
|
7930
7927
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", fontWeight: "bold", style: { display: "block", marginBottom: "8px" }, children: "Check Installation" }),
|
|
7931
7928
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral600", style: { display: "block", marginBottom: "24px" }, children: "First, we need to verify that the required dependencies are installed." }),
|
|
7932
|
-
isAvailable ? /* @__PURE__ */ jsxRuntime.jsxs(SuccessBox, { children: [
|
|
7929
|
+
isAvailable ? /* @__PURE__ */ jsxRuntime.jsxs(SuccessBox$1, { children: [
|
|
7933
7930
|
/* @__PURE__ */ jsxRuntime.jsx(SuccessIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(icons.Check, { style: { width: 14, height: 14 } }) }),
|
|
7934
7931
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
7935
7932
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", fontWeight: "semiBold", style: { display: "block", marginBottom: "4px", color: "var(--colors-success600, #15803D)" }, children: "Dependencies Installed" }),
|
|
@@ -7980,7 +7977,7 @@ const WhatsAppPage = () => {
|
|
|
7980
7977
|
currentStep === 2 && /* @__PURE__ */ jsxRuntime.jsxs(ContentCard, { children: [
|
|
7981
7978
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", fontWeight: "bold", style: { display: "block", marginBottom: "8px" }, children: "Connect Your WhatsApp" }),
|
|
7982
7979
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral600", style: { display: "block", marginBottom: "24px" }, children: "Click the button below to start the connection process. A QR code will be generated for you to scan." }),
|
|
7983
|
-
/* @__PURE__ */ jsxRuntime.jsxs(InfoBox, { children: [
|
|
7980
|
+
/* @__PURE__ */ jsxRuntime.jsxs(InfoBox$1, { children: [
|
|
7984
7981
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", fontWeight: "bold", style: { display: "block", marginBottom: "16px", color: "var(--colors-primary600, #075985)" }, children: "How it works" }),
|
|
7985
7982
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
7986
7983
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral700", children: '1. Click "Connect WhatsApp" to generate a QR code' }),
|
|
@@ -8026,7 +8023,7 @@ const WhatsAppPage = () => {
|
|
|
8026
8023
|
/* @__PURE__ */ jsxRuntime.jsx(SpinningLoader, { style: { width: "40px", height: "40px" } }),
|
|
8027
8024
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", children: "Generating QR code..." })
|
|
8028
8025
|
] }) }),
|
|
8029
|
-
/* @__PURE__ */ jsxRuntime.jsxs(InfoBox, { children: [
|
|
8026
|
+
/* @__PURE__ */ jsxRuntime.jsxs(InfoBox$1, { children: [
|
|
8030
8027
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", fontWeight: "bold", style: { display: "block", marginBottom: "16px", color: "var(--colors-primary600, #075985)" }, children: "Instructions" }),
|
|
8031
8028
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 2, children: [
|
|
8032
8029
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral700", children: "1. Open WhatsApp on your phone" }),
|
|
@@ -8184,7 +8181,7 @@ const ModalOverlay = styled__default.default.div`
|
|
|
8184
8181
|
padding: 20px;
|
|
8185
8182
|
`;
|
|
8186
8183
|
const ModalContent = styled__default.default(designSystem.Box)`
|
|
8187
|
-
background:
|
|
8184
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
8188
8185
|
border-radius: 16px;
|
|
8189
8186
|
width: 100%;
|
|
8190
8187
|
max-width: 580px;
|
|
@@ -8193,7 +8190,7 @@ const ModalContent = styled__default.default(designSystem.Box)`
|
|
|
8193
8190
|
overflow: hidden;
|
|
8194
8191
|
`;
|
|
8195
8192
|
const GradientHeader = styled__default.default(designSystem.Box)`
|
|
8196
|
-
background: linear-gradient(135deg,
|
|
8193
|
+
background: linear-gradient(135deg, #4945ff 0%, #7c3aed 100%);
|
|
8197
8194
|
padding: 32px 40px;
|
|
8198
8195
|
position: relative;
|
|
8199
8196
|
overflow: hidden;
|
|
@@ -8259,17 +8256,17 @@ const CloseButton = styled__default.default.button`
|
|
|
8259
8256
|
`;
|
|
8260
8257
|
const GradientButton = styled__default.default(designSystem.Button)`
|
|
8261
8258
|
&& {
|
|
8262
|
-
background: linear-gradient(135deg,
|
|
8259
|
+
background: linear-gradient(135deg, #4945ff 0%, #7c3aed 100%);
|
|
8263
8260
|
color: white;
|
|
8264
8261
|
font-weight: 600;
|
|
8265
8262
|
border: none;
|
|
8266
|
-
box-shadow: 0 4px 12px rgba(
|
|
8263
|
+
box-shadow: 0 4px 12px rgba(73, 69, 255, 0.4);
|
|
8267
8264
|
padding: 12px 24px;
|
|
8268
8265
|
min-height: 44px;
|
|
8269
8266
|
|
|
8270
8267
|
&:hover:not(:disabled) {
|
|
8271
|
-
background: linear-gradient(135deg,
|
|
8272
|
-
box-shadow: 0 6px 16px rgba(
|
|
8268
|
+
background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
|
|
8269
|
+
box-shadow: 0 6px 16px rgba(73, 69, 255, 0.5);
|
|
8273
8270
|
}
|
|
8274
8271
|
|
|
8275
8272
|
&:disabled {
|
|
@@ -8280,22 +8277,22 @@ const GradientButton = styled__default.default(designSystem.Button)`
|
|
|
8280
8277
|
`;
|
|
8281
8278
|
styled__default.default(designSystem.Button)`
|
|
8282
8279
|
&& {
|
|
8283
|
-
background: rgba(
|
|
8284
|
-
color:
|
|
8280
|
+
background: rgba(73, 69, 255, 0.06);
|
|
8281
|
+
color: #4945ff;
|
|
8285
8282
|
font-weight: 600;
|
|
8286
|
-
border: 2px solid
|
|
8283
|
+
border: 2px solid #4945ff;
|
|
8287
8284
|
padding: 12px 24px;
|
|
8288
8285
|
min-height: 44px;
|
|
8289
8286
|
|
|
8290
8287
|
&:hover:not(:disabled) {
|
|
8291
|
-
background: rgba(
|
|
8288
|
+
background: rgba(73, 69, 255, 0.12);
|
|
8292
8289
|
}
|
|
8293
8290
|
}
|
|
8294
8291
|
`;
|
|
8295
8292
|
const ToggleButton = styled__default.default.button`
|
|
8296
8293
|
background: none;
|
|
8297
8294
|
border: none;
|
|
8298
|
-
color:
|
|
8295
|
+
color: #4945ff;
|
|
8299
8296
|
font-size: 13px;
|
|
8300
8297
|
font-weight: 600;
|
|
8301
8298
|
cursor: pointer;
|
|
@@ -8304,7 +8301,7 @@ const ToggleButton = styled__default.default.button`
|
|
|
8304
8301
|
transition: color 0.2s;
|
|
8305
8302
|
|
|
8306
8303
|
&:hover {
|
|
8307
|
-
color:
|
|
8304
|
+
color: #7c3aed;
|
|
8308
8305
|
}
|
|
8309
8306
|
|
|
8310
8307
|
&:disabled {
|
|
@@ -8312,6 +8309,25 @@ const ToggleButton = styled__default.default.button`
|
|
|
8312
8309
|
cursor: not-allowed;
|
|
8313
8310
|
}
|
|
8314
8311
|
`;
|
|
8312
|
+
const InfoBox = styled__default.default(designSystem.Box)`
|
|
8313
|
+
background: rgba(73, 69, 255, 0.06);
|
|
8314
|
+
border: 2px solid rgba(73, 69, 255, 0.3);
|
|
8315
|
+
border-radius: 8px;
|
|
8316
|
+
padding: 16px;
|
|
8317
|
+
width: 100%;
|
|
8318
|
+
`;
|
|
8319
|
+
const SuccessBox = styled__default.default(designSystem.Box)`
|
|
8320
|
+
background: rgba(34, 197, 94, 0.06);
|
|
8321
|
+
border: 2px solid rgba(34, 197, 94, 0.3);
|
|
8322
|
+
border-radius: 8px;
|
|
8323
|
+
padding: 20px;
|
|
8324
|
+
text-align: center;
|
|
8325
|
+
`;
|
|
8326
|
+
const InfoText = styled__default.default(designSystem.Typography)`
|
|
8327
|
+
font-size: 13px;
|
|
8328
|
+
line-height: 1.6;
|
|
8329
|
+
color: ${(p) => p.theme.colors.neutral800};
|
|
8330
|
+
`;
|
|
8315
8331
|
const LicenseGuard = ({ children }) => {
|
|
8316
8332
|
const { get, post } = admin.useFetchClient();
|
|
8317
8333
|
const { toggleNotification } = admin.useNotification();
|
|
@@ -8468,19 +8484,7 @@ const LicenseGuard = ({ children }) => {
|
|
|
8468
8484
|
children: useExistingKey ? "← Create new license" : "Have a license key? →"
|
|
8469
8485
|
}
|
|
8470
8486
|
) }),
|
|
8471
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8472
|
-
designSystem.Box,
|
|
8473
|
-
{
|
|
8474
|
-
background: "primary100",
|
|
8475
|
-
padding: 4,
|
|
8476
|
-
style: {
|
|
8477
|
-
borderRadius: "8px",
|
|
8478
|
-
border: "2px solid rgba(14, 165, 233, 0.3)",
|
|
8479
|
-
width: "100%"
|
|
8480
|
-
},
|
|
8481
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", style: { fontSize: "13px", lineHeight: "1.6" }, children: useExistingKey ? "🔑 Enter your email and license key to activate." : adminUser && adminUser.email ? `✨ Click "Activate" to auto-create a license with your account (${adminUser.email})` : '✨ Click "Activate" to auto-create a license with your admin account' })
|
|
8482
|
-
}
|
|
8483
|
-
),
|
|
8487
|
+
/* @__PURE__ */ jsxRuntime.jsx(InfoBox, { children: /* @__PURE__ */ jsxRuntime.jsx(InfoText, { variant: "omega", children: useExistingKey ? "Enter your email and license key to activate." : adminUser && adminUser.email ? `Click "Activate" to auto-create a license with your account (${adminUser.email})` : 'Click "Activate" to auto-create a license with your admin account' }) }),
|
|
8484
8488
|
useExistingKey ? (
|
|
8485
8489
|
// Existing License Key Input
|
|
8486
8490
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -8532,31 +8536,15 @@ const LicenseGuard = ({ children }) => {
|
|
|
8532
8536
|
] })
|
|
8533
8537
|
) : adminUser ? (
|
|
8534
8538
|
// Auto-create mode - Show user info
|
|
8535
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8536
|
-
designSystem.
|
|
8537
|
-
{
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
},
|
|
8545
|
-
children: [
|
|
8546
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", fontWeight: "bold", style: { marginBottom: "12px", display: "block" }, children: "Ready to activate with your account:" }),
|
|
8547
|
-
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", style: { marginBottom: "4px", display: "block" }, children: [
|
|
8548
|
-
"👤 ",
|
|
8549
|
-
adminUser.firstname || "Admin",
|
|
8550
|
-
" ",
|
|
8551
|
-
adminUser.lastname || "User"
|
|
8552
|
-
] }),
|
|
8553
|
-
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: [
|
|
8554
|
-
"📧 ",
|
|
8555
|
-
adminUser.email || "Loading..."
|
|
8556
|
-
] })
|
|
8557
|
-
]
|
|
8558
|
-
}
|
|
8559
|
-
)
|
|
8539
|
+
/* @__PURE__ */ jsxRuntime.jsxs(SuccessBox, { children: [
|
|
8540
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", fontWeight: "bold", style: { marginBottom: "12px", display: "block" }, children: "Ready to activate with your account:" }),
|
|
8541
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", style: { marginBottom: "4px", display: "block" }, children: [
|
|
8542
|
+
adminUser.firstname || "Admin",
|
|
8543
|
+
" ",
|
|
8544
|
+
adminUser.lastname || "User"
|
|
8545
|
+
] }),
|
|
8546
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: adminUser.email || "Loading..." })
|
|
8547
|
+
] })
|
|
8560
8548
|
) : /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { padding: 4, background: "neutral100", hasRadius: true, style: { textAlign: "center" }, children: [
|
|
8561
8549
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Loader, { small: true }),
|
|
8562
8550
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", marginTop: 2, children: "Loading admin user data..." })
|