@strapi/review-workflows 0.0.0-experimental.bd712ad3930045f4a5d2144c119e0b7856e97fc4 → 0.0.0-experimental.be7746d32e70ba7219186219896ff4ae64735740

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 (113) hide show
  1. package/dist/admin/chunks/Layout-B4l91S3p.js +290 -0
  2. package/dist/admin/chunks/Layout-B4l91S3p.js.map +1 -0
  3. package/dist/admin/chunks/Layout-CXRcBLOx.js +265 -0
  4. package/dist/admin/chunks/Layout-CXRcBLOx.js.map +1 -0
  5. package/dist/admin/chunks/en-BixG7IBu.js +14 -0
  6. package/dist/admin/chunks/en-BixG7IBu.js.map +1 -0
  7. package/dist/admin/chunks/en-C6SESe-Y.js +16 -0
  8. package/dist/admin/chunks/en-C6SESe-Y.js.map +1 -0
  9. package/dist/admin/chunks/id-DnRGfGvc.js +1442 -0
  10. package/dist/admin/chunks/id-DnRGfGvc.js.map +1 -0
  11. package/dist/admin/chunks/id-SiBUWtYE.js +1420 -0
  12. package/dist/admin/chunks/id-SiBUWtYE.js.map +1 -0
  13. package/dist/admin/chunks/index-C5IeISWp.js +960 -0
  14. package/dist/admin/chunks/index-C5IeISWp.js.map +1 -0
  15. package/dist/admin/chunks/index-D-2M8KV9.js +271 -0
  16. package/dist/admin/chunks/index-D-2M8KV9.js.map +1 -0
  17. package/dist/admin/chunks/index-DZpcSUvc.js +293 -0
  18. package/dist/admin/chunks/index-DZpcSUvc.js.map +1 -0
  19. package/dist/admin/chunks/index-Df6sZesT.js +926 -0
  20. package/dist/admin/chunks/index-Df6sZesT.js.map +1 -0
  21. package/dist/admin/chunks/purchase-review-workflows-CEP8kvxZ.js +53 -0
  22. package/dist/admin/chunks/purchase-review-workflows-CEP8kvxZ.js.map +1 -0
  23. package/dist/admin/chunks/purchase-review-workflows-Drlxm8yP.js +55 -0
  24. package/dist/admin/chunks/purchase-review-workflows-Drlxm8yP.js.map +1 -0
  25. package/dist/admin/chunks/router-C9Jpl4gL.js +28 -0
  26. package/dist/admin/chunks/router-C9Jpl4gL.js.map +1 -0
  27. package/dist/admin/chunks/router-CrN8UbpP.js +30 -0
  28. package/dist/admin/chunks/router-CrN8UbpP.js.map +1 -0
  29. package/dist/admin/index.js +17 -2
  30. package/dist/admin/index.js.map +1 -1
  31. package/dist/admin/index.mjs +12 -4
  32. package/dist/admin/index.mjs.map +1 -1
  33. package/dist/admin/src/services/admin.d.ts +1 -1
  34. package/dist/admin/src/services/api.d.ts +1 -1
  35. package/dist/admin/src/services/content-manager.d.ts +4 -4
  36. package/dist/admin/src/services/settings.d.ts +1739 -9
  37. package/dist/server/index.js +2110 -8013
  38. package/dist/server/index.js.map +1 -1
  39. package/dist/server/index.mjs +2116 -8022
  40. package/dist/server/index.mjs.map +1 -1
  41. package/dist/server/src/bootstrap.d.ts.map +1 -1
  42. package/dist/server/src/constants/workflows.d.ts +1 -0
  43. package/dist/server/src/constants/workflows.d.ts.map +1 -1
  44. package/dist/server/src/content-types/index.d.ts +6 -0
  45. package/dist/server/src/content-types/index.d.ts.map +1 -1
  46. package/dist/server/src/content-types/workflow/index.d.ts +6 -0
  47. package/dist/server/src/content-types/workflow/index.d.ts.map +1 -1
  48. package/dist/server/src/controllers/assignees.d.ts.map +1 -1
  49. package/dist/server/src/controllers/index.d.ts +0 -1
  50. package/dist/server/src/controllers/index.d.ts.map +1 -1
  51. package/dist/server/src/controllers/stages.d.ts.map +1 -1
  52. package/dist/server/src/controllers/workflows.d.ts +0 -7
  53. package/dist/server/src/controllers/workflows.d.ts.map +1 -1
  54. package/dist/server/src/index.d.ts +28 -7
  55. package/dist/server/src/index.d.ts.map +1 -1
  56. package/dist/server/src/register.d.ts.map +1 -1
  57. package/dist/server/src/routes/review-workflows.d.ts.map +1 -1
  58. package/dist/server/src/services/assignees.d.ts +8 -4
  59. package/dist/server/src/services/assignees.d.ts.map +1 -1
  60. package/dist/server/src/services/document-service-middleware.d.ts +2 -1
  61. package/dist/server/src/services/document-service-middleware.d.ts.map +1 -1
  62. package/dist/server/src/services/index.d.ts +16 -6
  63. package/dist/server/src/services/index.d.ts.map +1 -1
  64. package/dist/server/src/services/metrics/index.d.ts +4 -4
  65. package/dist/server/src/services/metrics/index.d.ts.map +1 -1
  66. package/dist/server/src/services/metrics/weekly-metrics.d.ts.map +1 -1
  67. package/dist/server/src/services/stages.d.ts +7 -7
  68. package/dist/server/src/services/stages.d.ts.map +1 -1
  69. package/dist/server/src/services/workflows.d.ts.map +1 -1
  70. package/dist/server/src/validation/review-workflows.d.ts +4 -0
  71. package/dist/server/src/validation/review-workflows.d.ts.map +1 -1
  72. package/dist/shared/contracts/review-workflows.d.ts +9 -18
  73. package/dist/shared/contracts/review-workflows.d.ts.map +1 -1
  74. package/package.json +18 -16
  75. package/dist/_chunks/Layout-D3DDQmMI.js +0 -252
  76. package/dist/_chunks/Layout-D3DDQmMI.js.map +0 -1
  77. package/dist/_chunks/Layout-Da8jupiA.mjs +0 -234
  78. package/dist/_chunks/Layout-Da8jupiA.mjs.map +0 -1
  79. package/dist/_chunks/_id-CnRDP3Xx.js +0 -1264
  80. package/dist/_chunks/_id-CnRDP3Xx.js.map +0 -1
  81. package/dist/_chunks/_id-xSrgPSJs.mjs +0 -1244
  82. package/dist/_chunks/_id-xSrgPSJs.mjs.map +0 -1
  83. package/dist/_chunks/en-D9ZrQAV6.mjs +0 -12
  84. package/dist/_chunks/en-D9ZrQAV6.mjs.map +0 -1
  85. package/dist/_chunks/en-xcewH2pC.js +0 -12
  86. package/dist/_chunks/en-xcewH2pC.js.map +0 -1
  87. package/dist/_chunks/index-4kp4AkBB.js +0 -253
  88. package/dist/_chunks/index-4kp4AkBB.js.map +0 -1
  89. package/dist/_chunks/index-DDsJlZQw.mjs +0 -801
  90. package/dist/_chunks/index-DDsJlZQw.mjs.map +0 -1
  91. package/dist/_chunks/index-DhPxWpsW.js +0 -819
  92. package/dist/_chunks/index-DhPxWpsW.js.map +0 -1
  93. package/dist/_chunks/index-jfO5GxtW.mjs +0 -234
  94. package/dist/_chunks/index-jfO5GxtW.mjs.map +0 -1
  95. package/dist/_chunks/purchase-review-workflows-BN-5Ube7.mjs +0 -52
  96. package/dist/_chunks/purchase-review-workflows-BN-5Ube7.mjs.map +0 -1
  97. package/dist/_chunks/purchase-review-workflows-DlCDg0fD.js +0 -52
  98. package/dist/_chunks/purchase-review-workflows-DlCDg0fD.js.map +0 -1
  99. package/dist/_chunks/router-DOEULOpS.mjs +0 -24
  100. package/dist/_chunks/router-DOEULOpS.mjs.map +0 -1
  101. package/dist/_chunks/router-DSXpeew4.js +0 -24
  102. package/dist/_chunks/router-DSXpeew4.js.map +0 -1
  103. package/strapi-server.js +0 -3
  104. /package/dist/admin/src/routes/content-manager/{[model] → model}/components/AssigneeFilter.d.ts +0 -0
  105. /package/dist/admin/src/routes/content-manager/{[model] → model}/components/StageFilter.d.ts +0 -0
  106. /package/dist/admin/src/routes/content-manager/{[model] → model}/components/TableColumns.d.ts +0 -0
  107. /package/dist/admin/src/routes/content-manager/{[model] → model}/configure/constants.d.ts +0 -0
  108. /package/dist/admin/src/routes/content-manager/{[model] → model}/constants.d.ts +0 -0
  109. /package/dist/admin/src/routes/content-manager/{[model]/[id] → model/id}/components/AssigneeSelect.d.ts +0 -0
  110. /package/dist/admin/src/routes/content-manager/{[model]/[id] → model/id}/components/Panel.d.ts +0 -0
  111. /package/dist/admin/src/routes/content-manager/{[model]/[id] → model/id}/components/StageSelect.d.ts +0 -0
  112. /package/dist/admin/src/routes/content-manager/{[model]/[id] → model/id}/components/constants.d.ts +0 -0
  113. /package/dist/admin/src/routes/settings/{:id.d.ts → id.d.ts} +0 -0
@@ -1,234 +0,0 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { useTracking, useRBAC, Page, Table, ConfirmDialog } from "@strapi/admin/strapi-admin";
4
- import { useLicenseLimits } from "@strapi/admin/strapi-admin/ee";
5
- import { LinkButton, TFooter, Typography, Flex, IconButton, Dialog, Link } from "@strapi/design-system";
6
- import { Plus, Pencil, Trash } from "@strapi/icons";
7
- import { useIntl } from "react-intl";
8
- import { useNavigate, NavLink } from "react-router-dom";
9
- import { styled } from "styled-components";
10
- import { u as useGetContentTypesQuery, a as useTypedSelector, C as CHARGEBEE_WORKFLOW_ENTITLEMENT_NAME, L as LimitsModal } from "./index-DDsJlZQw.mjs";
11
- import { u as useReviewWorkflows, H as Header, R as Root } from "./Layout-Da8jupiA.mjs";
12
- const ReviewWorkflowsListView = () => {
13
- const { formatMessage } = useIntl();
14
- const navigate = useNavigate();
15
- const { trackUsage } = useTracking();
16
- const [workflowToDelete, setWorkflowToDelete] = React.useState(null);
17
- const [showLimitModal, setShowLimitModal] = React.useState(false);
18
- const { data, isLoading: isLoadingModels } = useGetContentTypesQuery();
19
- const { meta, workflows, isLoading, delete: deleteAction } = useReviewWorkflows();
20
- const { getFeature, isLoading: isLicenseLoading } = useLicenseLimits();
21
- const permissions = useTypedSelector(
22
- (state) => state.admin_app.permissions.settings?.["review-workflows"]
23
- );
24
- const {
25
- allowedActions: { canCreate, canRead, canUpdate, canDelete }
26
- } = useRBAC(permissions);
27
- const limits = getFeature("review-workflows");
28
- const numberOfWorkflows = limits?.[CHARGEBEE_WORKFLOW_ENTITLEMENT_NAME];
29
- const handleDeleteWorkflow = (workflowId) => {
30
- setWorkflowToDelete(workflowId);
31
- };
32
- const toggleConfirmDeleteDialog = () => {
33
- setWorkflowToDelete(null);
34
- };
35
- const handleConfirmDeleteDialog = async () => {
36
- if (!workflowToDelete)
37
- return;
38
- await deleteAction(workflowToDelete);
39
- setWorkflowToDelete(null);
40
- };
41
- const handleCreateClick = (event) => {
42
- event.preventDefault();
43
- if (numberOfWorkflows && meta && meta?.workflowCount >= parseInt(numberOfWorkflows, 10)) {
44
- event.preventDefault();
45
- setShowLimitModal(true);
46
- } else {
47
- navigate("create");
48
- trackUsage("willCreateWorkflow");
49
- }
50
- };
51
- React.useEffect(() => {
52
- if (!isLoading && !isLicenseLoading) {
53
- if (numberOfWorkflows && meta && meta?.workflowCount > parseInt(numberOfWorkflows, 10)) {
54
- setShowLimitModal(true);
55
- }
56
- }
57
- }, [isLicenseLoading, isLoading, meta, meta?.workflowCount, numberOfWorkflows]);
58
- const headers = [
59
- {
60
- label: formatMessage({
61
- id: "Settings.review-workflows.list.page.list.column.name.title",
62
- defaultMessage: "Name"
63
- }),
64
- name: "name"
65
- },
66
- {
67
- label: formatMessage({
68
- id: "Settings.review-workflows.list.page.list.column.stages.title",
69
- defaultMessage: "Stages"
70
- }),
71
- name: "stages"
72
- },
73
- {
74
- label: formatMessage({
75
- id: "Settings.review-workflows.list.page.list.column.contentTypes.title",
76
- defaultMessage: "Content Types"
77
- }),
78
- name: "content-types"
79
- }
80
- ];
81
- if (isLoading || isLoadingModels) {
82
- return /* @__PURE__ */ jsx(Page.Loading, {});
83
- }
84
- const contentTypes = Object.values(data ?? {}).reduce((acc, curr) => {
85
- acc.push(...curr);
86
- return acc;
87
- }, []);
88
- return /* @__PURE__ */ jsxs(Fragment, { children: [
89
- /* @__PURE__ */ jsx(
90
- Header,
91
- {
92
- primaryAction: canCreate ? /* @__PURE__ */ jsx(
93
- LinkButton,
94
- {
95
- startIcon: /* @__PURE__ */ jsx(Plus, {}),
96
- size: "S",
97
- tag: NavLink,
98
- to: "create",
99
- onClick: handleCreateClick,
100
- children: formatMessage({
101
- id: "Settings.review-workflows.list.page.create",
102
- defaultMessage: "Create new workflow"
103
- })
104
- }
105
- ) : null,
106
- subtitle: formatMessage({
107
- id: "Settings.review-workflows.list.page.subtitle",
108
- defaultMessage: "Manage your content review process"
109
- }),
110
- title: formatMessage({
111
- id: "Settings.review-workflows.list.page.title",
112
- defaultMessage: "Review Workflows"
113
- })
114
- }
115
- ),
116
- /* @__PURE__ */ jsxs(Root, { children: [
117
- /* @__PURE__ */ jsx(
118
- Table.Root,
119
- {
120
- isLoading,
121
- rows: workflows,
122
- footer: canCreate ? /* @__PURE__ */ jsx(TFooter, { icon: /* @__PURE__ */ jsx(Plus, {}), onClick: handleCreateClick, children: formatMessage({
123
- id: "Settings.review-workflows.list.page.create",
124
- defaultMessage: "Create new workflow"
125
- }) }) : null,
126
- headers,
127
- children: /* @__PURE__ */ jsxs(Table.Content, { children: [
128
- /* @__PURE__ */ jsx(Table.Head, { children: headers.map((head) => /* @__PURE__ */ jsx(Table.HeaderCell, { ...head }, head.name)) }),
129
- /* @__PURE__ */ jsx(Table.Body, { children: workflows.map((workflow) => /* @__PURE__ */ jsxs(
130
- Table.Row,
131
- {
132
- onClick: () => {
133
- navigate(`${workflow.id}`);
134
- },
135
- children: [
136
- /* @__PURE__ */ jsx(Table.Cell, { width: "25rem", children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", fontWeight: "bold", ellipsis: true, children: workflow.name }) }),
137
- /* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: workflow.stages.length }) }),
138
- /* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: workflow.contentTypes.map((uid) => {
139
- const contentType = contentTypes.find(
140
- (contentType2) => contentType2.uid === uid
141
- );
142
- return contentType?.info.displayName ?? "";
143
- }).join(", ") }) }),
144
- /* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", justifyContent: "end", children: [
145
- canRead || canUpdate ? /* @__PURE__ */ jsx(
146
- ActionLink,
147
- {
148
- to: `${workflow.id}`,
149
- "aria-label": formatMessage(
150
- {
151
- id: "Settings.review-workflows.list.page.list.column.actions.edit.label",
152
- defaultMessage: "Edit {name}"
153
- },
154
- { name: workflow.name }
155
- ),
156
- children: /* @__PURE__ */ jsx(Pencil, {})
157
- }
158
- ) : null,
159
- workflows.length > 1 && canDelete ? /* @__PURE__ */ jsx(
160
- IconButton,
161
- {
162
- withTooltip: false,
163
- label: formatMessage(
164
- {
165
- id: "Settings.review-workflows.list.page.list.column.actions.delete.label",
166
- defaultMessage: "Delete {name}"
167
- },
168
- { name: "Default workflow" }
169
- ),
170
- borderWidth: 0,
171
- onClick: (e) => {
172
- e.stopPropagation();
173
- handleDeleteWorkflow(String(workflow.id));
174
- },
175
- children: /* @__PURE__ */ jsx(Trash, {})
176
- }
177
- ) : null
178
- ] }) })
179
- ]
180
- },
181
- workflow.id
182
- )) })
183
- ] })
184
- }
185
- ),
186
- /* @__PURE__ */ jsx(Dialog.Root, { open: !!workflowToDelete, onOpenChange: toggleConfirmDeleteDialog, children: /* @__PURE__ */ jsx(ConfirmDialog, { onConfirm: handleConfirmDeleteDialog, children: formatMessage({
187
- id: "Settings.review-workflows.list.page.delete.confirm.body",
188
- defaultMessage: "If you remove this worfklow, all stage-related information will be removed for this content-type. Are you sure you want to remove it?"
189
- }) }) }),
190
- /* @__PURE__ */ jsxs(LimitsModal.Root, { open: showLimitModal, onOpenChange: () => setShowLimitModal(false), children: [
191
- /* @__PURE__ */ jsx(LimitsModal.Title, { children: formatMessage({
192
- id: "Settings.review-workflows.list.page.workflows.limit.title",
193
- defaultMessage: "You’ve reached the limit of workflows in your plan"
194
- }) }),
195
- /* @__PURE__ */ jsx(LimitsModal.Body, { children: formatMessage({
196
- id: "Settings.review-workflows.list.page.workflows.limit.body",
197
- defaultMessage: "Delete a workflow or contact Sales to enable more workflows."
198
- }) })
199
- ] })
200
- ] })
201
- ] });
202
- };
203
- const ActionLink = styled(Link)`
204
- align-items: center;
205
- display: flex;
206
- justify-content: center;
207
- padding: ${({ theme }) => `${theme.spaces[2]}}`};
208
- & > span {
209
- line-height: 1rem;
210
- font-size: 1rem;
211
- }
212
-
213
- & svg > path {
214
- fill: ${({ theme }) => theme.colors.neutral500};
215
- }
216
-
217
- &:hover,
218
- &:focus {
219
- svg > path {
220
- fill: ${({ theme }) => theme.colors.neutral800};
221
- }
222
- }
223
- `;
224
- const ProtectedListPage = () => {
225
- const permissions = useTypedSelector(
226
- (state) => state.admin_app.permissions.settings?.["review-workflows"]?.main
227
- );
228
- return /* @__PURE__ */ jsx(Page.Protect, { permissions, children: /* @__PURE__ */ jsx(ReviewWorkflowsListView, {}) });
229
- };
230
- export {
231
- ProtectedListPage,
232
- ReviewWorkflowsListView
233
- };
234
- //# sourceMappingURL=index-jfO5GxtW.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-jfO5GxtW.mjs","sources":["../../admin/src/routes/settings/index.tsx"],"sourcesContent":["/* eslint-disable check-file/no-index */\n/* eslint-disable check-file/filename-naming-convention */\nimport * as React from 'react';\n\nimport { Page, useTracking, ConfirmDialog, useRBAC, Table } from '@strapi/admin/strapi-admin';\nimport { useLicenseLimits } from '@strapi/admin/strapi-admin/ee';\nimport {\n Flex,\n IconButton,\n TFooter,\n Typography,\n Link,\n LinkButton,\n Dialog,\n} from '@strapi/design-system';\nimport { Pencil, Plus, Trash } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\nimport { NavLink, useNavigate } from 'react-router-dom';\nimport { styled } from 'styled-components';\n\nimport { LimitsModal } from '../../components/LimitsModal';\nimport { CHARGEBEE_WORKFLOW_ENTITLEMENT_NAME } from '../../constants';\nimport { useTypedSelector } from '../../modules/hooks';\nimport { ContentType, useGetContentTypesQuery } from '../../services/content-manager';\n\nimport * as Layout from './components/Layout';\nimport { useReviewWorkflows } from './hooks/useReviewWorkflows';\n\nexport const ReviewWorkflowsListView = () => {\n const { formatMessage } = useIntl();\n const navigate = useNavigate();\n const { trackUsage } = useTracking();\n const [workflowToDelete, setWorkflowToDelete] = React.useState<string | null>(null);\n const [showLimitModal, setShowLimitModal] = React.useState<boolean>(false);\n const { data, isLoading: isLoadingModels } = useGetContentTypesQuery();\n const { meta, workflows, isLoading, delete: deleteAction } = useReviewWorkflows();\n const { getFeature, isLoading: isLicenseLoading } = useLicenseLimits();\n const permissions = useTypedSelector(\n (state) => state.admin_app.permissions.settings?.['review-workflows']\n );\n const {\n allowedActions: { canCreate, canRead, canUpdate, canDelete },\n } = useRBAC(permissions);\n\n const limits = getFeature('review-workflows');\n const numberOfWorkflows = limits?.[CHARGEBEE_WORKFLOW_ENTITLEMENT_NAME] as string;\n\n const handleDeleteWorkflow = (workflowId: string) => {\n setWorkflowToDelete(workflowId);\n };\n\n const toggleConfirmDeleteDialog = () => {\n setWorkflowToDelete(null);\n };\n\n const handleConfirmDeleteDialog = async () => {\n if (!workflowToDelete) return;\n\n await deleteAction(workflowToDelete);\n\n setWorkflowToDelete(null);\n };\n\n const handleCreateClick = (\n event: React.MouseEvent<HTMLButtonElement> & React.MouseEvent<HTMLAnchorElement>\n ) => {\n event.preventDefault();\n /**\n * If the current license has a workflow limit:\n * check if the total count of workflows exceeds that limit. If so,\n * prevent the navigation and show the limits overlay.\n *\n * If the current license does not have a limit (e.g. offline license):\n * allow the user to navigate to the create-view. In case they exceed the\n * current hard-limit of 200 they will see an error thrown by the API.\n */\n\n if (numberOfWorkflows && meta && meta?.workflowCount >= parseInt(numberOfWorkflows, 10)) {\n event.preventDefault();\n setShowLimitModal(true);\n } else {\n navigate('create');\n trackUsage('willCreateWorkflow');\n }\n };\n\n /**\n * If the current license has a limit:\n * check if the total count of workflows or stages exceeds that limit and display\n * the limits modal on page load. It can be closed by the user, but the\n * API will throw an error in case they try to create a new workflow or update the\n * stages.\n *\n * If the current license does not have a limit (e.g. offline license):\n * do nothing (for now). In case they are trying to create the 201st workflow/ stage\n * the API will throw an error.\n *\n */\n React.useEffect(() => {\n if (!isLoading && !isLicenseLoading) {\n if (numberOfWorkflows && meta && meta?.workflowCount > parseInt(numberOfWorkflows, 10)) {\n setShowLimitModal(true);\n }\n }\n }, [isLicenseLoading, isLoading, meta, meta?.workflowCount, numberOfWorkflows]);\n\n const headers = [\n {\n label: formatMessage({\n id: 'Settings.review-workflows.list.page.list.column.name.title',\n defaultMessage: 'Name',\n }),\n name: 'name',\n },\n {\n label: formatMessage({\n id: 'Settings.review-workflows.list.page.list.column.stages.title',\n defaultMessage: 'Stages',\n }),\n name: 'stages',\n },\n {\n label: formatMessage({\n id: 'Settings.review-workflows.list.page.list.column.contentTypes.title',\n defaultMessage: 'Content Types',\n }),\n name: 'content-types',\n },\n ];\n\n if (isLoading || isLoadingModels) {\n return <Page.Loading />;\n }\n\n const contentTypes = Object.values(data ?? {}).reduce<ContentType[]>((acc, curr) => {\n acc.push(...curr);\n return acc;\n }, []);\n\n return (\n <>\n <Layout.Header\n primaryAction={\n canCreate ? (\n <LinkButton\n startIcon={<Plus />}\n size=\"S\"\n tag={NavLink}\n to=\"create\"\n onClick={handleCreateClick}\n >\n {formatMessage({\n id: 'Settings.review-workflows.list.page.create',\n defaultMessage: 'Create new workflow',\n })}\n </LinkButton>\n ) : null\n }\n subtitle={formatMessage({\n id: 'Settings.review-workflows.list.page.subtitle',\n defaultMessage: 'Manage your content review process',\n })}\n title={formatMessage({\n id: 'Settings.review-workflows.list.page.title',\n defaultMessage: 'Review Workflows',\n })}\n />\n\n <Layout.Root>\n <Table.Root\n isLoading={isLoading}\n rows={workflows}\n footer={\n canCreate ? (\n <TFooter icon={<Plus />} onClick={handleCreateClick}>\n {formatMessage({\n id: 'Settings.review-workflows.list.page.create',\n defaultMessage: 'Create new workflow',\n })}\n </TFooter>\n ) : null\n }\n headers={headers}\n >\n <Table.Content>\n <Table.Head>\n {headers.map((head) => (\n <Table.HeaderCell key={head.name} {...head} />\n ))}\n </Table.Head>\n\n <Table.Body>\n {workflows.map((workflow) => (\n <Table.Row\n onClick={() => {\n navigate(`${workflow.id}`);\n }}\n key={workflow.id}\n >\n <Table.Cell width=\"25rem\">\n <Typography textColor=\"neutral800\" fontWeight=\"bold\" ellipsis>\n {workflow.name}\n </Typography>\n </Table.Cell>\n <Table.Cell>\n <Typography textColor=\"neutral800\">{workflow.stages.length}</Typography>\n </Table.Cell>\n <Table.Cell>\n <Typography textColor=\"neutral800\">\n {workflow.contentTypes\n .map((uid: string) => {\n const contentType = contentTypes.find(\n (contentType) => contentType.uid === uid\n );\n\n return contentType?.info.displayName ?? '';\n })\n .join(', ')}\n </Typography>\n </Table.Cell>\n <Table.Cell>\n <Flex alignItems=\"center\" justifyContent=\"end\">\n {canRead || canUpdate ? (\n <ActionLink\n to={`${workflow.id}`}\n aria-label={formatMessage(\n {\n id: 'Settings.review-workflows.list.page.list.column.actions.edit.label',\n defaultMessage: 'Edit {name}',\n },\n { name: workflow.name }\n )}\n >\n <Pencil />\n </ActionLink>\n ) : null}\n {workflows.length > 1 && canDelete ? (\n <IconButton\n withTooltip={false}\n label={formatMessage(\n {\n id: 'Settings.review-workflows.list.page.list.column.actions.delete.label',\n defaultMessage: 'Delete {name}',\n },\n { name: 'Default workflow' }\n )}\n borderWidth={0}\n onClick={(e) => {\n e.stopPropagation();\n handleDeleteWorkflow(String(workflow.id));\n }}\n >\n <Trash />\n </IconButton>\n ) : null}\n </Flex>\n </Table.Cell>\n </Table.Row>\n ))}\n </Table.Body>\n </Table.Content>\n </Table.Root>\n\n <Dialog.Root open={!!workflowToDelete} onOpenChange={toggleConfirmDeleteDialog}>\n <ConfirmDialog onConfirm={handleConfirmDeleteDialog}>\n {formatMessage({\n id: 'Settings.review-workflows.list.page.delete.confirm.body',\n defaultMessage:\n 'If you remove this worfklow, all stage-related information will be removed for this content-type. Are you sure you want to remove it?',\n })}\n </ConfirmDialog>\n </Dialog.Root>\n\n <LimitsModal.Root open={showLimitModal} onOpenChange={() => setShowLimitModal(false)}>\n <LimitsModal.Title>\n {formatMessage({\n id: 'Settings.review-workflows.list.page.workflows.limit.title',\n defaultMessage: 'You’ve reached the limit of workflows in your plan',\n })}\n </LimitsModal.Title>\n\n <LimitsModal.Body>\n {formatMessage({\n id: 'Settings.review-workflows.list.page.workflows.limit.body',\n defaultMessage: 'Delete a workflow or contact Sales to enable more workflows.',\n })}\n </LimitsModal.Body>\n </LimitsModal.Root>\n </Layout.Root>\n </>\n );\n};\n\nconst ActionLink = styled(Link)`\n align-items: center;\n display: flex;\n justify-content: center;\n padding: ${({ theme }) => `${theme.spaces[2]}}`};\n & > span {\n line-height: 1rem;\n font-size: 1rem;\n }\n\n & svg > path {\n fill: ${({ theme }) => theme.colors.neutral500};\n }\n\n &:hover,\n &:focus {\n svg > path {\n fill: ${({ theme }) => theme.colors.neutral800};\n }\n }\n`;\n\nconst ProtectedListPage = () => {\n const permissions = useTypedSelector(\n (state) => state.admin_app.permissions.settings?.['review-workflows']?.main\n );\n\n return (\n <Page.Protect permissions={permissions}>\n <ReviewWorkflowsListView />\n </Page.Protect>\n );\n};\n\nexport { ProtectedListPage };\n"],"names":["Layout.Header","Layout.Root","contentType"],"mappings":";;;;;;;;;;;AA4BO,MAAM,0BAA0B,MAAM;AACrC,QAAA,EAAE,kBAAkB;AAC1B,QAAM,WAAW;AACX,QAAA,EAAE,eAAe;AACvB,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,MAAM,SAAwB,IAAI;AAClF,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,MAAM,SAAkB,KAAK;AACzE,QAAM,EAAE,MAAM,WAAW,oBAAoB,wBAAwB;AACrE,QAAM,EAAE,MAAM,WAAW,WAAW,QAAQ,aAAA,IAAiB;AAC7D,QAAM,EAAE,YAAY,WAAW,qBAAqB,iBAAiB;AACrE,QAAM,cAAc;AAAA,IAClB,CAAC,UAAU,MAAM,UAAU,YAAY,WAAW,kBAAkB;AAAA,EAAA;AAEhE,QAAA;AAAA,IACJ,gBAAgB,EAAE,WAAW,SAAS,WAAW,UAAU;AAAA,EAAA,IACzD,QAAQ,WAAW;AAEjB,QAAA,SAAS,WAAW,kBAAkB;AACtC,QAAA,oBAAoB,SAAS,mCAAmC;AAEhE,QAAA,uBAAuB,CAAC,eAAuB;AACnD,wBAAoB,UAAU;AAAA,EAAA;AAGhC,QAAM,4BAA4B,MAAM;AACtC,wBAAoB,IAAI;AAAA,EAAA;AAG1B,QAAM,4BAA4B,YAAY;AAC5C,QAAI,CAAC;AAAkB;AAEvB,UAAM,aAAa,gBAAgB;AAEnC,wBAAoB,IAAI;AAAA,EAAA;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AAA,MACF;AAAA,MAEC,oBAAA,OAAO,MAAP,EAAY,MAAM,CAAC,CAAC,kBAAkB,cAAc,2BACnD,UAAA,oBAAC,eAAc,EAAA,WAAW,2BACvB,UAAc,cAAA;AAAA,QACb,IAAI;AAAA,QACJ,gBACE;AAAA,MAAA,CACH,GACH,EACF,CAAA;AAAA,MAEA,qBAAC,YAAY,MAAZ,EAAiB,MAAM,gBAAgB,cAAc,MAAM,kBAAkB,KAAK,GACjF,UAAA;AAAA,QAAC,oBAAA,YAAY,OAAZ,EACE,UAAc,cAAA;AAAA,UACb,IAAI;AAAA,UACJ,gBAAgB;AAAA,QACjB,CAAA,GACH;AAAA,QAEC,oBAAA,YAAY,MAAZ,EACE,UAAc,cAAA;AAAA,UACb,IAAI;AAAA,UACJ,gBAAgB;AAAA,QACjB,CAAA,GACH;AAAA,MAAA,GACF;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ;AAEA,MAAM,aAAa,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA,aAIjB,CAAC,EAAE,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,CAAC,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAOrC,CAAC,EAAE,MAAA,MAAY,MAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAMpC,CAAC,EAAE,MAAA,MAAY,MAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAKpD,MAAM,oBAAoB,MAAM;AAC9B,QAAM,cAAc;AAAA,IAClB,CAAC,UAAU,MAAM,UAAU,YAAY,WAAW,kBAAkB,GAAG;AAAA,EAAA;AAGzE,6BACG,KAAK,SAAL,EAAa,aACZ,UAAA,oBAAC,2BAAwB,EAC3B,CAAA;AAEJ;"}
@@ -1,52 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Layouts } from "@strapi/admin/strapi-admin";
3
- import { Main, Box, EmptyStateLayout, LinkButton } from "@strapi/design-system";
4
- import { ExternalLink } from "@strapi/icons";
5
- import { EmptyPermissions } from "@strapi/icons/symbols";
6
- import { useIntl } from "react-intl";
7
- const PurchaseReviewWorkflows = () => {
8
- const { formatMessage } = useIntl();
9
- return /* @__PURE__ */ jsx(Layouts.Root, { children: /* @__PURE__ */ jsxs(Main, { children: [
10
- /* @__PURE__ */ jsx(
11
- Layouts.Header,
12
- {
13
- title: formatMessage({
14
- id: "Settings.review-workflows.list.page.title",
15
- defaultMessage: "Review Workflows"
16
- }),
17
- subtitle: formatMessage({
18
- id: "Settings.review-workflows.list.page.subtitle",
19
- defaultMessage: "Manage your content review process"
20
- })
21
- }
22
- ),
23
- /* @__PURE__ */ jsx(Box, { paddingLeft: 10, paddingRight: 10, children: /* @__PURE__ */ jsx(
24
- EmptyStateLayout,
25
- {
26
- icon: /* @__PURE__ */ jsx(EmptyPermissions, { width: "16rem" }),
27
- content: formatMessage({
28
- id: "Settings.review-workflows.not-available",
29
- defaultMessage: "Review Workflows is only available as part of a paid plan. Upgrade to create and manage workflows."
30
- }),
31
- action: /* @__PURE__ */ jsx(
32
- LinkButton,
33
- {
34
- variant: "default",
35
- endIcon: /* @__PURE__ */ jsx(ExternalLink, {}),
36
- href: "https://strp.cc/3tdNfJq",
37
- isExternal: true,
38
- target: "_blank",
39
- children: formatMessage({
40
- id: "global.learn-more",
41
- defaultMessage: "Learn more"
42
- })
43
- }
44
- )
45
- }
46
- ) })
47
- ] }) });
48
- };
49
- export {
50
- PurchaseReviewWorkflows
51
- };
52
- //# sourceMappingURL=purchase-review-workflows-BN-5Ube7.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"purchase-review-workflows-BN-5Ube7.mjs","sources":["../../admin/src/routes/purchase-review-workflows.tsx"],"sourcesContent":["import { Layouts } from '@strapi/admin/strapi-admin';\nimport { Box, Main, EmptyStateLayout, LinkButton } from '@strapi/design-system';\nimport { ExternalLink } from '@strapi/icons';\nimport { EmptyPermissions } from '@strapi/icons/symbols';\nimport { useIntl } from 'react-intl';\n\nconst PurchaseReviewWorkflows = () => {\n const { formatMessage } = useIntl();\n\n return (\n <Layouts.Root>\n <Main>\n <Layouts.Header\n title={formatMessage({\n id: 'Settings.review-workflows.list.page.title',\n defaultMessage: 'Review Workflows',\n })}\n subtitle={formatMessage({\n id: 'Settings.review-workflows.list.page.subtitle',\n defaultMessage: 'Manage your content review process',\n })}\n />\n <Box paddingLeft={10} paddingRight={10}>\n <EmptyStateLayout\n icon={<EmptyPermissions width=\"16rem\" />}\n content={formatMessage({\n id: 'Settings.review-workflows.not-available',\n defaultMessage:\n 'Review Workflows is only available as part of a paid plan. Upgrade to create and manage workflows.',\n })}\n action={\n <LinkButton\n variant=\"default\"\n endIcon={<ExternalLink />}\n href=\"https://strp.cc/3tdNfJq\"\n isExternal\n target=\"_blank\"\n >\n {formatMessage({\n id: 'global.learn-more',\n defaultMessage: 'Learn more',\n })}\n </LinkButton>\n }\n />\n </Box>\n </Main>\n </Layouts.Root>\n );\n};\n\nexport { PurchaseReviewWorkflows };\n"],"names":[],"mappings":";;;;;;AAMA,MAAM,0BAA0B,MAAM;AAC9B,QAAA,EAAE,kBAAkB;AAE1B,SACG,oBAAA,QAAQ,MAAR,EACC,+BAAC,MACC,EAAA,UAAA;AAAA,IAAA;AAAA,MAAC,QAAQ;AAAA,MAAR;AAAA,QACC,OAAO,cAAc;AAAA,UACnB,IAAI;AAAA,UACJ,gBAAgB;AAAA,QAAA,CACjB;AAAA,QACD,UAAU,cAAc;AAAA,UACtB,IAAI;AAAA,UACJ,gBAAgB;AAAA,QAAA,CACjB;AAAA,MAAA;AAAA,IACH;AAAA,IACC,oBAAA,KAAA,EAAI,aAAa,IAAI,cAAc,IAClC,UAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAM,oBAAC,kBAAiB,EAAA,OAAM,QAAQ,CAAA;AAAA,QACtC,SAAS,cAAc;AAAA,UACrB,IAAI;AAAA,UACJ,gBACE;AAAA,QAAA,CACH;AAAA,QACD,QACE;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,6BAAU,cAAa,EAAA;AAAA,YACvB,MAAK;AAAA,YACL,YAAU;AAAA,YACV,QAAO;AAAA,YAEN,UAAc,cAAA;AAAA,cACb,IAAI;AAAA,cACJ,gBAAgB;AAAA,YAAA,CACjB;AAAA,UAAA;AAAA,QACH;AAAA,MAAA;AAAA,IAAA,GAGN;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ;"}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const strapiAdmin = require("@strapi/admin/strapi-admin");
5
- const designSystem = require("@strapi/design-system");
6
- const icons = require("@strapi/icons");
7
- const symbols = require("@strapi/icons/symbols");
8
- const reactIntl = require("react-intl");
9
- const PurchaseReviewWorkflows = () => {
10
- const { formatMessage } = reactIntl.useIntl();
11
- return /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Layouts.Root, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Main, { children: [
12
- /* @__PURE__ */ jsxRuntime.jsx(
13
- strapiAdmin.Layouts.Header,
14
- {
15
- title: formatMessage({
16
- id: "Settings.review-workflows.list.page.title",
17
- defaultMessage: "Review Workflows"
18
- }),
19
- subtitle: formatMessage({
20
- id: "Settings.review-workflows.list.page.subtitle",
21
- defaultMessage: "Manage your content review process"
22
- })
23
- }
24
- ),
25
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 10, paddingRight: 10, children: /* @__PURE__ */ jsxRuntime.jsx(
26
- designSystem.EmptyStateLayout,
27
- {
28
- icon: /* @__PURE__ */ jsxRuntime.jsx(symbols.EmptyPermissions, { width: "16rem" }),
29
- content: formatMessage({
30
- id: "Settings.review-workflows.not-available",
31
- defaultMessage: "Review Workflows is only available as part of a paid plan. Upgrade to create and manage workflows."
32
- }),
33
- action: /* @__PURE__ */ jsxRuntime.jsx(
34
- designSystem.LinkButton,
35
- {
36
- variant: "default",
37
- endIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.ExternalLink, {}),
38
- href: "https://strp.cc/3tdNfJq",
39
- isExternal: true,
40
- target: "_blank",
41
- children: formatMessage({
42
- id: "global.learn-more",
43
- defaultMessage: "Learn more"
44
- })
45
- }
46
- )
47
- }
48
- ) })
49
- ] }) });
50
- };
51
- exports.PurchaseReviewWorkflows = PurchaseReviewWorkflows;
52
- //# sourceMappingURL=purchase-review-workflows-DlCDg0fD.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"purchase-review-workflows-DlCDg0fD.js","sources":["../../admin/src/routes/purchase-review-workflows.tsx"],"sourcesContent":["import { Layouts } from '@strapi/admin/strapi-admin';\nimport { Box, Main, EmptyStateLayout, LinkButton } from '@strapi/design-system';\nimport { ExternalLink } from '@strapi/icons';\nimport { EmptyPermissions } from '@strapi/icons/symbols';\nimport { useIntl } from 'react-intl';\n\nconst PurchaseReviewWorkflows = () => {\n const { formatMessage } = useIntl();\n\n return (\n <Layouts.Root>\n <Main>\n <Layouts.Header\n title={formatMessage({\n id: 'Settings.review-workflows.list.page.title',\n defaultMessage: 'Review Workflows',\n })}\n subtitle={formatMessage({\n id: 'Settings.review-workflows.list.page.subtitle',\n defaultMessage: 'Manage your content review process',\n })}\n />\n <Box paddingLeft={10} paddingRight={10}>\n <EmptyStateLayout\n icon={<EmptyPermissions width=\"16rem\" />}\n content={formatMessage({\n id: 'Settings.review-workflows.not-available',\n defaultMessage:\n 'Review Workflows is only available as part of a paid plan. Upgrade to create and manage workflows.',\n })}\n action={\n <LinkButton\n variant=\"default\"\n endIcon={<ExternalLink />}\n href=\"https://strp.cc/3tdNfJq\"\n isExternal\n target=\"_blank\"\n >\n {formatMessage({\n id: 'global.learn-more',\n defaultMessage: 'Learn more',\n })}\n </LinkButton>\n }\n />\n </Box>\n </Main>\n </Layouts.Root>\n );\n};\n\nexport { PurchaseReviewWorkflows };\n"],"names":["useIntl","jsx","Layouts","Main","Box","EmptyStateLayout","EmptyPermissions","LinkButton","ExternalLink"],"mappings":";;;;;;;;AAMA,MAAM,0BAA0B,MAAM;AAC9B,QAAA,EAAE,kBAAkBA,UAAAA;AAE1B,SACGC,2BAAA,IAAAC,YAAA,QAAQ,MAAR,EACC,0CAACC,aAAAA,MACC,EAAA,UAAA;AAAA,IAAAF,2BAAA;AAAA,MAACC,YAAAA,QAAQ;AAAA,MAAR;AAAA,QACC,OAAO,cAAc;AAAA,UACnB,IAAI;AAAA,UACJ,gBAAgB;AAAA,QAAA,CACjB;AAAA,QACD,UAAU,cAAc;AAAA,UACtB,IAAI;AAAA,UACJ,gBAAgB;AAAA,QAAA,CACjB;AAAA,MAAA;AAAA,IACH;AAAA,IACCD,2BAAA,IAAAG,aAAA,KAAA,EAAI,aAAa,IAAI,cAAc,IAClC,UAAAH,2BAAA;AAAA,MAACI,aAAA;AAAA,MAAA;AAAA,QACC,MAAMJ,2BAAAA,IAACK,QAAAA,kBAAiB,EAAA,OAAM,QAAQ,CAAA;AAAA,QACtC,SAAS,cAAc;AAAA,UACrB,IAAI;AAAA,UACJ,gBACE;AAAA,QAAA,CACH;AAAA,QACD,QACEL,2BAAA;AAAA,UAACM,aAAA;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,wCAAUC,MAAa,cAAA,EAAA;AAAA,YACvB,MAAK;AAAA,YACL,YAAU;AAAA,YACV,QAAO;AAAA,YAEN,UAAc,cAAA;AAAA,cACb,IAAI;AAAA,cACJ,gBAAgB;AAAA,YAAA,CACjB;AAAA,UAAA;AAAA,QACH;AAAA,MAAA;AAAA,IAAA,GAGN;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ;;"}
@@ -1,24 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { lazy } from "react";
3
- import { Routes, Route } from "react-router-dom";
4
- const ProtectedListPage = lazy(
5
- () => import("./index-jfO5GxtW.mjs").then((mod) => ({ default: mod.ProtectedListPage }))
6
- );
7
- const ProtectedEditPage = lazy(
8
- () => import("./_id-xSrgPSJs.mjs").then((mod) => ({ default: mod.ProtectedEditPage }))
9
- );
10
- const routes = [
11
- {
12
- path: "/",
13
- Component: ProtectedListPage
14
- },
15
- {
16
- path: ":id",
17
- Component: ProtectedEditPage
18
- }
19
- ];
20
- const Router = () => /* @__PURE__ */ jsx(Routes, { children: routes.map((route) => /* @__PURE__ */ jsx(Route, { ...route }, route.path)) });
21
- export {
22
- Router
23
- };
24
- //# sourceMappingURL=router-DOEULOpS.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"router-DOEULOpS.mjs","sources":["../../admin/src/router.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport { lazy } from 'react';\n\nimport { Routes, Route, PathRouteProps } from 'react-router-dom';\n\nconst ProtectedListPage = lazy(() =>\n import('./routes/settings').then((mod) => ({ default: mod.ProtectedListPage }))\n);\nconst ProtectedEditPage = lazy(() =>\n import('./routes/settings/:id').then((mod) => ({ default: mod.ProtectedEditPage }))\n);\n\nconst routes: PathRouteProps[] = [\n {\n path: '/',\n Component: ProtectedListPage,\n },\n {\n path: ':id',\n Component: ProtectedEditPage,\n },\n];\n\nconst Router = () => (\n <Routes>\n {routes.map((route) => (\n <Route key={route.path} {...route} />\n ))}\n </Routes>\n);\n\nexport { Router };\n"],"names":[],"mappings":";;;AAKA,MAAM,oBAAoB;AAAA,EAAK,MAC7B,OAAO,sBAAmB,EAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AAChF;AACA,MAAM,oBAAoB;AAAA,EAAK,MAC7B,OAAO,oBAAuB,EAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AACpF;AAEA,MAAM,SAA2B;AAAA,EAC/B;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF;AAEA,MAAM,SAAS,MACZ,oBAAA,QAAA,EACE,iBAAO,IAAI,CAAC,UACX,oBAAC,SAAwB,GAAG,MAAA,GAAhB,MAAM,IAAiB,CACpC,EACH,CAAA;"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const React = require("react");
5
- const reactRouterDom = require("react-router-dom");
6
- const ProtectedListPage = React.lazy(
7
- () => Promise.resolve().then(() => require("./index-4kp4AkBB.js")).then((mod) => ({ default: mod.ProtectedListPage }))
8
- );
9
- const ProtectedEditPage = React.lazy(
10
- () => Promise.resolve().then(() => require("./_id-CnRDP3Xx.js")).then((mod) => ({ default: mod.ProtectedEditPage }))
11
- );
12
- const routes = [
13
- {
14
- path: "/",
15
- Component: ProtectedListPage
16
- },
17
- {
18
- path: ":id",
19
- Component: ProtectedEditPage
20
- }
21
- ];
22
- const Router = () => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Routes, { children: routes.map((route) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { ...route }, route.path)) });
23
- exports.Router = Router;
24
- //# sourceMappingURL=router-DSXpeew4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"router-DSXpeew4.js","sources":["../../admin/src/router.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport { lazy } from 'react';\n\nimport { Routes, Route, PathRouteProps } from 'react-router-dom';\n\nconst ProtectedListPage = lazy(() =>\n import('./routes/settings').then((mod) => ({ default: mod.ProtectedListPage }))\n);\nconst ProtectedEditPage = lazy(() =>\n import('./routes/settings/:id').then((mod) => ({ default: mod.ProtectedEditPage }))\n);\n\nconst routes: PathRouteProps[] = [\n {\n path: '/',\n Component: ProtectedListPage,\n },\n {\n path: ':id',\n Component: ProtectedEditPage,\n },\n];\n\nconst Router = () => (\n <Routes>\n {routes.map((route) => (\n <Route key={route.path} {...route} />\n ))}\n </Routes>\n);\n\nexport { Router };\n"],"names":["lazy","jsx","Routes","Route"],"mappings":";;;;;AAKA,MAAM,oBAAoBA,MAAA;AAAA,EAAK,MAC7B,QAAO,QAAA,EAAA,KAAA,MAAA,QAAA,qBAAmB,GAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AAChF;AACA,MAAM,oBAAoBA,MAAA;AAAA,EAAK,MAC7B,QAAO,QAAA,EAAA,KAAA,MAAA,QAAA,mBAAuB,GAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AACpF;AAEA,MAAM,SAA2B;AAAA,EAC/B;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF;AAEA,MAAM,SAAS,MACZC,2BAAAA,IAAAC,eAAAA,QAAA,EACE,iBAAO,IAAI,CAAC,UACXD,2BAAA,IAACE,wBAAwB,GAAG,MAAA,GAAhB,MAAM,IAAiB,CACpC,EACH,CAAA;;"}
package/strapi-server.js DELETED
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = require('./dist/server');