@strapi/strapi 5.0.0-beta.0 → 5.0.0-beta.10

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 (258) hide show
  1. package/README.md +4 -4
  2. package/dist/admin.d.ts.map +1 -1
  3. package/dist/admin.js +12 -4
  4. package/dist/admin.js.map +1 -1
  5. package/dist/admin.mjs +10 -4
  6. package/dist/admin.mjs.map +1 -1
  7. package/dist/cli/commands/admin/create-user.js +2 -2
  8. package/dist/cli/commands/admin/create-user.js.map +1 -1
  9. package/dist/cli/commands/admin/create-user.mjs +88 -0
  10. package/dist/cli/commands/admin/create-user.mjs.map +1 -0
  11. package/dist/cli/commands/admin/reset-user-password.js +2 -2
  12. package/dist/cli/commands/admin/reset-user-password.js.map +1 -1
  13. package/dist/cli/commands/admin/reset-user-password.mjs +44 -0
  14. package/dist/cli/commands/admin/reset-user-password.mjs.map +1 -0
  15. package/dist/cli/commands/build.js.map +1 -1
  16. package/dist/cli/commands/build.mjs +30 -0
  17. package/dist/cli/commands/build.mjs.map +1 -0
  18. package/dist/cli/commands/components/list.js +2 -2
  19. package/dist/cli/commands/components/list.js.map +1 -1
  20. package/dist/cli/commands/components/list.mjs +24 -0
  21. package/dist/cli/commands/components/list.mjs.map +1 -0
  22. package/dist/cli/commands/configuration/dump.js +2 -2
  23. package/dist/cli/commands/configuration/dump.js.map +1 -1
  24. package/dist/cli/commands/configuration/dump.mjs +41 -0
  25. package/dist/cli/commands/configuration/dump.mjs.map +1 -0
  26. package/dist/cli/commands/configuration/restore.js +2 -2
  27. package/dist/cli/commands/configuration/restore.js.map +1 -1
  28. package/dist/cli/commands/configuration/restore.mjs +140 -0
  29. package/dist/cli/commands/configuration/restore.mjs.map +1 -0
  30. package/dist/cli/commands/console.js +2 -2
  31. package/dist/cli/commands/console.js.map +1 -1
  32. package/dist/cli/commands/console.mjs +27 -0
  33. package/dist/cli/commands/console.mjs.map +1 -0
  34. package/dist/cli/commands/content-types/list.js +2 -2
  35. package/dist/cli/commands/content-types/list.js.map +1 -1
  36. package/dist/cli/commands/content-types/list.mjs +24 -0
  37. package/dist/cli/commands/content-types/list.mjs.map +1 -0
  38. package/dist/cli/commands/controllers/list.js +2 -2
  39. package/dist/cli/commands/controllers/list.js.map +1 -1
  40. package/dist/cli/commands/controllers/list.mjs +24 -0
  41. package/dist/cli/commands/controllers/list.mjs.map +1 -0
  42. package/dist/cli/commands/develop.js.map +1 -1
  43. package/dist/cli/commands/develop.mjs +27 -0
  44. package/dist/cli/commands/develop.mjs.map +1 -0
  45. package/dist/cli/commands/export/action.js.map +1 -1
  46. package/dist/cli/commands/export/action.mjs +116 -0
  47. package/dist/cli/commands/export/action.mjs.map +1 -0
  48. package/dist/cli/commands/export/command.mjs +24 -0
  49. package/dist/cli/commands/export/command.mjs.map +1 -0
  50. package/dist/cli/commands/generate.mjs +13 -0
  51. package/dist/cli/commands/generate.mjs.map +1 -0
  52. package/dist/cli/commands/hooks/list.js +2 -2
  53. package/dist/cli/commands/hooks/list.js.map +1 -1
  54. package/dist/cli/commands/hooks/list.mjs +24 -0
  55. package/dist/cli/commands/hooks/list.mjs.map +1 -0
  56. package/dist/cli/commands/import/action.js.map +1 -1
  57. package/dist/cli/commands/import/action.mjs +105 -0
  58. package/dist/cli/commands/import/action.mjs.map +1 -0
  59. package/dist/cli/commands/import/command.mjs +68 -0
  60. package/dist/cli/commands/import/command.mjs.map +1 -0
  61. package/dist/cli/commands/index.d.ts.map +1 -1
  62. package/dist/cli/commands/index.js +1 -14
  63. package/dist/cli/commands/index.js.map +1 -1
  64. package/dist/cli/commands/index.mjs +58 -0
  65. package/dist/cli/commands/index.mjs.map +1 -0
  66. package/dist/cli/commands/middlewares/list.js +2 -2
  67. package/dist/cli/commands/middlewares/list.js.map +1 -1
  68. package/dist/cli/commands/middlewares/list.mjs +24 -0
  69. package/dist/cli/commands/middlewares/list.mjs.map +1 -0
  70. package/dist/cli/commands/plugin/init/files/typescript.d.ts.map +1 -1
  71. package/dist/cli/commands/policies/list.js +2 -2
  72. package/dist/cli/commands/policies/list.js.map +1 -1
  73. package/dist/cli/commands/policies/list.mjs +24 -0
  74. package/dist/cli/commands/policies/list.mjs.map +1 -0
  75. package/dist/cli/commands/report.js +2 -2
  76. package/dist/cli/commands/report.js.map +1 -1
  77. package/dist/cli/commands/report.mjs +35 -0
  78. package/dist/cli/commands/report.mjs.map +1 -0
  79. package/dist/cli/commands/routes/list.js +2 -2
  80. package/dist/cli/commands/routes/list.js.map +1 -1
  81. package/dist/cli/commands/routes/list.mjs +28 -0
  82. package/dist/cli/commands/routes/list.mjs.map +1 -0
  83. package/dist/cli/commands/services/list.js +2 -2
  84. package/dist/cli/commands/services/list.js.map +1 -1
  85. package/dist/cli/commands/services/list.mjs +24 -0
  86. package/dist/cli/commands/services/list.mjs.map +1 -0
  87. package/dist/cli/commands/start.js +1 -1
  88. package/dist/cli/commands/start.js.map +1 -1
  89. package/dist/cli/commands/start.mjs +24 -0
  90. package/dist/cli/commands/start.mjs.map +1 -0
  91. package/dist/cli/commands/telemetry/disable.mjs +67 -0
  92. package/dist/cli/commands/telemetry/disable.mjs.map +1 -0
  93. package/dist/cli/commands/telemetry/enable.mjs +86 -0
  94. package/dist/cli/commands/telemetry/enable.mjs.map +1 -0
  95. package/dist/cli/commands/templates/generate.mjs +74 -0
  96. package/dist/cli/commands/templates/generate.mjs.map +1 -0
  97. package/dist/cli/commands/transfer/action.mjs +131 -0
  98. package/dist/cli/commands/transfer/action.mjs.map +1 -0
  99. package/dist/cli/commands/transfer/command.mjs +84 -0
  100. package/dist/cli/commands/transfer/command.mjs.map +1 -0
  101. package/dist/cli/commands/ts/generate-types.d.ts.map +1 -1
  102. package/dist/cli/commands/ts/generate-types.js +4 -5
  103. package/dist/cli/commands/ts/generate-types.js.map +1 -1
  104. package/dist/cli/commands/ts/generate-types.mjs +34 -0
  105. package/dist/cli/commands/ts/generate-types.mjs.map +1 -0
  106. package/dist/cli/commands/version.mjs +13 -0
  107. package/dist/cli/commands/version.mjs.map +1 -0
  108. package/dist/cli/index.d.ts.map +1 -1
  109. package/dist/cli/index.js +30 -0
  110. package/dist/cli/index.js.map +1 -1
  111. package/dist/cli/index.mjs +79 -0
  112. package/dist/cli/index.mjs.map +1 -0
  113. package/dist/cli/utils/commander.d.ts +2 -2
  114. package/dist/cli/utils/commander.d.ts.map +1 -1
  115. package/dist/cli/utils/commander.mjs +109 -0
  116. package/dist/cli/utils/commander.mjs.map +1 -0
  117. package/dist/cli/utils/data-transfer.d.ts +5 -5
  118. package/dist/cli/utils/data-transfer.d.ts.map +1 -1
  119. package/dist/cli/utils/data-transfer.js +32 -24
  120. package/dist/cli/utils/data-transfer.js.map +1 -1
  121. package/dist/cli/utils/data-transfer.mjs +347 -0
  122. package/dist/cli/utils/data-transfer.mjs.map +1 -0
  123. package/dist/cli/utils/helpers.d.ts +1 -1
  124. package/dist/cli/utils/helpers.d.ts.map +1 -1
  125. package/dist/cli/utils/helpers.mjs +100 -0
  126. package/dist/cli/utils/helpers.mjs.map +1 -0
  127. package/dist/cli/utils/logger.mjs +80 -0
  128. package/dist/cli/utils/logger.mjs.map +1 -0
  129. package/dist/cli/utils/pkg.d.ts.map +1 -1
  130. package/dist/cli/utils/telemetry.mjs +22 -0
  131. package/dist/cli/utils/telemetry.mjs.map +1 -0
  132. package/dist/cli/utils/tsconfig.d.ts.map +1 -1
  133. package/dist/cli/utils/tsconfig.mjs +23 -0
  134. package/dist/cli/utils/tsconfig.mjs.map +1 -0
  135. package/dist/node/build.mjs +58 -0
  136. package/dist/node/build.mjs.map +1 -0
  137. package/dist/node/core/admin-customisations.mjs +22 -0
  138. package/dist/node/core/admin-customisations.mjs.map +1 -0
  139. package/dist/node/core/aliases.d.ts +1 -1
  140. package/dist/node/core/aliases.d.ts.map +1 -1
  141. package/dist/node/core/aliases.js +8 -5
  142. package/dist/node/core/aliases.js.map +1 -1
  143. package/dist/node/core/aliases.mjs +31 -0
  144. package/dist/node/core/aliases.mjs.map +1 -0
  145. package/dist/node/core/config.d.ts.map +1 -1
  146. package/dist/node/core/config.mjs +16 -0
  147. package/dist/node/core/config.mjs.map +1 -0
  148. package/dist/node/core/dependencies.d.ts.map +1 -1
  149. package/dist/node/core/dependencies.js +5 -1
  150. package/dist/node/core/dependencies.js.map +1 -1
  151. package/dist/node/core/dependencies.mjs +155 -0
  152. package/dist/node/core/dependencies.mjs.map +1 -0
  153. package/dist/node/core/env.d.ts.map +1 -1
  154. package/dist/node/core/env.js +7 -4
  155. package/dist/node/core/env.js.map +1 -1
  156. package/dist/node/core/env.mjs +23 -0
  157. package/dist/node/core/env.mjs.map +1 -0
  158. package/dist/node/core/errors.mjs +29 -0
  159. package/dist/node/core/errors.mjs.map +1 -0
  160. package/dist/node/core/files.mjs +43 -0
  161. package/dist/node/core/files.mjs.map +1 -0
  162. package/dist/node/core/managers.mjs +17 -0
  163. package/dist/node/core/managers.mjs.map +1 -0
  164. package/dist/node/core/monorepo.mjs +20 -0
  165. package/dist/node/core/monorepo.mjs.map +1 -0
  166. package/dist/node/core/plugins.mjs +93 -0
  167. package/dist/node/core/plugins.mjs.map +1 -0
  168. package/dist/node/core/timer.mjs +27 -0
  169. package/dist/node/core/timer.mjs.map +1 -0
  170. package/dist/node/create-build-context.d.ts +3 -3
  171. package/dist/node/create-build-context.d.ts.map +1 -1
  172. package/dist/node/create-build-context.js +1 -1
  173. package/dist/node/create-build-context.js.map +1 -1
  174. package/dist/node/create-build-context.mjs +91 -0
  175. package/dist/node/create-build-context.mjs.map +1 -0
  176. package/dist/node/develop.d.ts.map +1 -1
  177. package/dist/node/develop.js +7 -1
  178. package/dist/node/develop.js.map +1 -1
  179. package/dist/node/develop.mjs +252 -0
  180. package/dist/node/develop.mjs.map +1 -0
  181. package/dist/node/staticFiles.d.ts.map +1 -1
  182. package/dist/node/staticFiles.js +25 -3
  183. package/dist/node/staticFiles.js.map +1 -1
  184. package/dist/node/staticFiles.mjs +76 -0
  185. package/dist/node/staticFiles.mjs.map +1 -0
  186. package/dist/node/types.d.ts +2 -2
  187. package/dist/node/types.d.ts.map +1 -1
  188. package/dist/node/vite/build.mjs +12 -0
  189. package/dist/node/vite/build.mjs.map +1 -0
  190. package/dist/node/vite/config.mjs +99 -0
  191. package/dist/node/vite/config.mjs.map +1 -0
  192. package/dist/node/vite/plugins.mjs +43 -0
  193. package/dist/node/vite/plugins.mjs.map +1 -0
  194. package/dist/node/vite/watch.js.map +1 -1
  195. package/dist/node/vite/watch.mjs +52 -0
  196. package/dist/node/vite/watch.mjs.map +1 -0
  197. package/dist/node/webpack/build.mjs +39 -0
  198. package/dist/node/webpack/build.mjs.map +1 -0
  199. package/dist/node/webpack/config.mjs +228 -0
  200. package/dist/node/webpack/config.mjs.map +1 -0
  201. package/dist/node/webpack/watch.js.map +1 -1
  202. package/dist/node/webpack/watch.mjs +92 -0
  203. package/dist/node/webpack/watch.mjs.map +1 -0
  204. package/package.json +35 -40
  205. package/dist/cli/commands/plugin/build.d.ts +0 -7
  206. package/dist/cli/commands/plugin/build.d.ts.map +0 -1
  207. package/dist/cli/commands/plugin/build.js +0 -88
  208. package/dist/cli/commands/plugin/build.js.map +0 -1
  209. package/dist/cli/commands/plugin/init/action.d.ts +0 -7
  210. package/dist/cli/commands/plugin/init/action.d.ts.map +0 -1
  211. package/dist/cli/commands/plugin/init/action.js +0 -414
  212. package/dist/cli/commands/plugin/init/action.js.map +0 -1
  213. package/dist/cli/commands/plugin/init/command.d.ts +0 -7
  214. package/dist/cli/commands/plugin/init/command.d.ts.map +0 -1
  215. package/dist/cli/commands/plugin/init/command.js +0 -9
  216. package/dist/cli/commands/plugin/init/command.js.map +0 -1
  217. package/dist/cli/commands/plugin/init/files/admin.d.ts +0 -5
  218. package/dist/cli/commands/plugin/init/files/admin.d.ts.map +0 -1
  219. package/dist/cli/commands/plugin/init/files/admin.js +0 -283
  220. package/dist/cli/commands/plugin/init/files/admin.js.map +0 -1
  221. package/dist/cli/commands/plugin/init/files/editorConfig.d.ts +0 -4
  222. package/dist/cli/commands/plugin/init/files/editorConfig.d.ts.map +0 -1
  223. package/dist/cli/commands/plugin/init/files/editorConfig.js +0 -26
  224. package/dist/cli/commands/plugin/init/files/editorConfig.js.map +0 -1
  225. package/dist/cli/commands/plugin/init/files/eslint.d.ts +0 -4
  226. package/dist/cli/commands/plugin/init/files/eslint.d.ts.map +0 -1
  227. package/dist/cli/commands/plugin/init/files/eslint.js +0 -11
  228. package/dist/cli/commands/plugin/init/files/eslint.js.map +0 -1
  229. package/dist/cli/commands/plugin/init/files/gitIgnore.d.ts +0 -4
  230. package/dist/cli/commands/plugin/init/files/gitIgnore.d.ts.map +0 -1
  231. package/dist/cli/commands/plugin/init/files/gitIgnore.js +0 -34
  232. package/dist/cli/commands/plugin/init/files/gitIgnore.js.map +0 -1
  233. package/dist/cli/commands/plugin/init/files/prettier.d.ts +0 -5
  234. package/dist/cli/commands/plugin/init/files/prettier.d.ts.map +0 -1
  235. package/dist/cli/commands/plugin/init/files/prettier.js +0 -25
  236. package/dist/cli/commands/plugin/init/files/prettier.js.map +0 -1
  237. package/dist/cli/commands/plugin/init/files/server.d.ts +0 -5
  238. package/dist/cli/commands/plugin/init/files/server.d.ts.map +0 -1
  239. package/dist/cli/commands/plugin/init/files/server.js +0 -360
  240. package/dist/cli/commands/plugin/init/files/server.js.map +0 -1
  241. package/dist/cli/commands/plugin/init/files/typescript.js +0 -66
  242. package/dist/cli/commands/plugin/init/files/typescript.js.map +0 -1
  243. package/dist/cli/commands/plugin/init/index.d.ts +0 -2
  244. package/dist/cli/commands/plugin/init/index.d.ts.map +0 -1
  245. package/dist/cli/commands/plugin/link-watch.d.ts +0 -7
  246. package/dist/cli/commands/plugin/link-watch.d.ts.map +0 -1
  247. package/dist/cli/commands/plugin/link-watch.js +0 -89
  248. package/dist/cli/commands/plugin/link-watch.js.map +0 -1
  249. package/dist/cli/commands/plugin/verify.d.ts +0 -7
  250. package/dist/cli/commands/plugin/verify.d.ts.map +0 -1
  251. package/dist/cli/commands/plugin/verify.js +0 -37
  252. package/dist/cli/commands/plugin/verify.js.map +0 -1
  253. package/dist/cli/commands/plugin/watch.d.ts +0 -7
  254. package/dist/cli/commands/plugin/watch.d.ts.map +0 -1
  255. package/dist/cli/commands/plugin/watch.js +0 -86
  256. package/dist/cli/commands/plugin/watch.js.map +0 -1
  257. package/dist/cli/utils/pkg.js +0 -108
  258. package/dist/cli/utils/pkg.js.map +0 -1
@@ -1,283 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const outdent = require("outdent");
4
- const PLUGIN_ICON_CODE = outdent.outdent`
5
- import { Puzzle } from '@strapi/icons';
6
-
7
- const PluginIcon = () => <Puzzle />;
8
-
9
- export { PluginIcon };
10
- `;
11
- const APP_CODE = outdent.outdent`
12
- import { Page } from '@strapi/strapi/admin';
13
- import { Switch, Route } from 'react-router-dom';
14
-
15
- import { PLUGIN_ID } from '../pluginId';
16
-
17
- import { HomePage } from './HomePage';
18
-
19
- const App = () => {
20
- return (
21
- <Switch>
22
- <Route index element={<HomePage />} />
23
- <Route path="*" element={<Page.Error />} />
24
- </Switch>
25
- );
26
- };
27
-
28
- export { App };
29
- `;
30
- const HOMEPAGE_CODE = outdent.outdent`
31
- import { Main } from '@strapi/design-system';
32
- import { useIntl } from 'react-intl';
33
-
34
- import { getTranslation } from '../utils/getTranslation';
35
-
36
- const HomePage = () => {
37
- const { formatMessage } = useIntl();
38
-
39
- return (
40
- <Main>
41
- <h1>Welcome to {formatMessage({ id: getTranslation("plugin.name") })}</h1>
42
- </Main>
43
- )
44
- }
45
-
46
- export { HomePage };
47
- `;
48
- const TYPESCRIPT = [
49
- {
50
- name: "admin/src/index.ts",
51
- contents: outdent.outdent`
52
- import { prefixPluginTranslations } from './utils/prefixPluginTranslations';
53
- import { PLUGIN_ID } from './pluginId';
54
- import { Initializer } from './components/Initializer';
55
- import { PluginIcon } from './components/PluginIcon';
56
-
57
- export default {
58
- register(app: any) {
59
- app.addMenuLink({
60
- to: \`plugins/\${PLUGIN_ID}\`,
61
- icon: PluginIcon,
62
- intlLabel: {
63
- id: \`\${PLUGIN_ID}.plugin.name\`,
64
- defaultMessage: PLUGIN_ID,
65
- },
66
- Component: async () => {
67
- const { App } = await import('./pages/App');
68
-
69
- return App;
70
- },
71
- });
72
-
73
- app.registerPlugin({
74
- id: PLUGIN_ID,
75
- initializer: Initializer,
76
- isReady: false,
77
- name: PLUGIN_ID,
78
- });
79
- },
80
-
81
- async registerTrads(app: any) {
82
- const { locales } = app;
83
-
84
- const importedTranslations = await Promise.all(
85
- (locales as string[]).map((locale) => {
86
- return import(\`./translations/\${locale}.json\`)
87
- .then(({ default: data }) => {
88
- return {
89
- data: prefixPluginTranslations(data, PLUGIN_ID),
90
- locale,
91
- };
92
- })
93
- .catch(() => {
94
- return {
95
- data: {},
96
- locale,
97
- };
98
- });
99
- })
100
- );
101
-
102
- return importedTranslations;
103
- },
104
- };
105
- `
106
- },
107
- {
108
- name: "admin/src/components/PluginIcon.tsx",
109
- contents: PLUGIN_ICON_CODE
110
- },
111
- {
112
- name: "admin/src/components/Initializer.tsx",
113
- contents: outdent.outdent`
114
- import { useEffect, useRef } from 'react';
115
-
116
- import { PLUGIN_ID } from '../pluginId';
117
-
118
- type InitializerProps = {
119
- setPlugin: (id: string) => void;
120
- };
121
-
122
- const Initializer = ({ setPlugin }: InitializerProps) => {
123
- const ref = useRef(setPlugin);
124
-
125
- useEffect(() => {
126
- ref.current(PLUGIN_ID);
127
- }, []);
128
-
129
- return null;
130
- };
131
-
132
- export { Initializer };
133
- `
134
- },
135
- {
136
- name: "admin/src/pages/App.tsx",
137
- contents: APP_CODE
138
- },
139
- {
140
- name: "admin/src/pages/HomePage.tsx",
141
- contents: HOMEPAGE_CODE
142
- },
143
- {
144
- name: "admin/src/utils/getTranslation.ts",
145
- contents: outdent.outdent`
146
- import { PLUGIN_ID } from '../pluginId';
147
-
148
- const getTranslation = (id: string) => \`\${PLUGIN_ID}.\${id}\`;
149
-
150
- export { getTranslation };
151
- `
152
- },
153
- {
154
- name: "admin/src/translations/en.json",
155
- contents: outdent.outdent`
156
- {}
157
- `
158
- },
159
- {
160
- /**
161
- * TODO: remove this when we release design-system V2
162
- */
163
- name: "admin/custom.d.ts",
164
- contents: outdent.outdent`
165
- declare module '@strapi/design-system/*';
166
- declare module '@strapi/design-system';
167
- `
168
- }
169
- ];
170
- const JAVASCRIPT = [
171
- {
172
- name: "admin/src/index.js",
173
- contents: outdent.outdent`
174
- import { prefixPluginTranslations } from './utils/prefixPluginTranslations';
175
- import { PLUGIN_ID } from './pluginId';
176
- import { Initializer } from './components/Initializer';
177
- import { PluginIcon } from './components/PluginIcon';
178
-
179
- export default {
180
- register(app) {
181
- app.addMenuLink({
182
- to: \`plugins/\${PluginIcon}\`,
183
- icon: PluginIcon,
184
- intlLabel: {
185
- id: \`\${PLUGIN_ID}.plugin.name\`,
186
- defaultMessage: PLUGIN_ID,
187
- },
188
- Component: async () => {
189
- const { App } = await import('./pages/App');
190
-
191
- return App;
192
- },
193
- });
194
-
195
- app.registerPlugin({
196
- id: PLUGIN_ID,
197
- initializer: Initializer,
198
- isReady: false,
199
- name: PLUGIN_ID,
200
- });
201
- },
202
-
203
- async registerTrads(app) {
204
- const { locales } = app;
205
-
206
- const importedTranslations = await Promise.all(
207
- locales.map((locale) => {
208
- return import(\`./translations/\${locale}.json\`)
209
- .then(({ default: data }) => {
210
- return {
211
- data: prefixPluginTranslations(data, PLUGIN_ID),
212
- locale,
213
- };
214
- })
215
- .catch(() => {
216
- return {
217
- data: {},
218
- locale,
219
- };
220
- });
221
- })
222
- );
223
-
224
- return importedTranslations;
225
- },
226
- };
227
- `
228
- },
229
- {
230
- name: "admin/src/components/PluginIcon.jsx",
231
- contents: PLUGIN_ICON_CODE
232
- },
233
- {
234
- name: "admin/src/components/Initializer.jsx",
235
- contents: outdent.outdent`
236
- import { useEffect, useRef } from 'react';
237
-
238
- import { PLUGIN_ID } from '../pluginId';
239
-
240
- /**
241
- * @type {import('react').FC<{ setPlugin: (id: string) => void }>}
242
- */
243
- const Initializer = ({ setPlugin }) => {
244
- const ref = useRef(setPlugin);
245
-
246
- useEffect(() => {
247
- ref.current(PLUGIN_ID);
248
- }, []);
249
-
250
- return null;
251
- };
252
-
253
- export { Initializer };
254
- `
255
- },
256
- {
257
- name: "admin/src/pages/App.jsx",
258
- contents: APP_CODE
259
- },
260
- {
261
- name: "admin/src/pages/HomePage.jsx",
262
- contents: HOMEPAGE_CODE
263
- },
264
- {
265
- name: "admin/src/utils/getTranslation.js",
266
- contents: outdent.outdent`
267
- import { PLUGIN_ID } from '../pluginId';
268
-
269
- const getTranslation = (id) => \`\${PLUGIN_ID}.\${id}\`;
270
-
271
- export { getTranslation };
272
- `
273
- },
274
- {
275
- name: "admin/src/translations/en.json",
276
- contents: outdent.outdent`
277
- {}
278
- `
279
- }
280
- ];
281
- exports.adminJavascriptFiles = JAVASCRIPT;
282
- exports.adminTypescriptFiles = TYPESCRIPT;
283
- //# sourceMappingURL=admin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.js","sources":["../../../../../../src/cli/commands/plugin/init/files/admin.ts"],"sourcesContent":["import { TemplateFile } from '@strapi/pack-up';\nimport { outdent } from 'outdent';\n\nconst PLUGIN_ICON_CODE = outdent`\nimport { Puzzle } from '@strapi/icons';\n\nconst PluginIcon = () => <Puzzle />;\n\nexport { PluginIcon };\n`;\n\nconst APP_CODE = outdent`\nimport { Page } from '@strapi/strapi/admin';\nimport { Switch, Route } from 'react-router-dom';\n\nimport { PLUGIN_ID } from '../pluginId';\n\nimport { HomePage } from './HomePage';\n\nconst App = () => {\n return (\n <Switch>\n <Route index element={<HomePage />} />\n <Route path=\"*\" element={<Page.Error />} />\n </Switch>\n );\n};\n\nexport { App };\n`;\n\nconst HOMEPAGE_CODE = outdent`\n import { Main } from '@strapi/design-system';\n import { useIntl } from 'react-intl';\n\n import { getTranslation } from '../utils/getTranslation';\n\n const HomePage = () => {\n const { formatMessage } = useIntl();\n\n return (\n <Main>\n <h1>Welcome to {formatMessage({ id: getTranslation(\"plugin.name\") })}</h1>\n </Main>\n )\n }\n\n export { HomePage };\n`;\n\nconst TYPESCRIPT: TemplateFile[] = [\n {\n name: 'admin/src/index.ts',\n contents: outdent`\n import { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n import { PLUGIN_ID } from './pluginId';\n import { Initializer } from './components/Initializer';\n import { PluginIcon } from './components/PluginIcon';\n \n export default {\n register(app: any) {\n app.addMenuLink({\n to: \\`plugins/\\${PLUGIN_ID}\\`,\n icon: PluginIcon,\n intlLabel: {\n id: \\`\\${PLUGIN_ID}.plugin.name\\`,\n defaultMessage: PLUGIN_ID,\n },\n Component: async () => {\n const { App } = await import('./pages/App');\n \n return App;\n },\n });\n \n app.registerPlugin({\n id: PLUGIN_ID,\n initializer: Initializer,\n isReady: false,\n name: PLUGIN_ID,\n });\n },\n \n async registerTrads(app: any) {\n const { locales } = app;\n \n const importedTranslations = await Promise.all(\n (locales as string[]).map((locale) => {\n return import(\\`./translations/\\${locale}.json\\`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, PLUGIN_ID),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n \n return importedTranslations;\n },\n };\n `,\n },\n {\n name: 'admin/src/components/PluginIcon.tsx',\n contents: PLUGIN_ICON_CODE,\n },\n {\n name: 'admin/src/components/Initializer.tsx',\n contents: outdent`\n import { useEffect, useRef } from 'react';\n\n import { PLUGIN_ID } from '../pluginId';\n \n type InitializerProps = {\n setPlugin: (id: string) => void;\n };\n \n const Initializer = ({ setPlugin }: InitializerProps) => {\n const ref = useRef(setPlugin);\n \n useEffect(() => {\n ref.current(PLUGIN_ID);\n }, []);\n \n return null;\n };\n \n export { Initializer };\n `,\n },\n {\n name: 'admin/src/pages/App.tsx',\n contents: APP_CODE,\n },\n {\n name: 'admin/src/pages/HomePage.tsx',\n contents: HOMEPAGE_CODE,\n },\n {\n name: 'admin/src/utils/getTranslation.ts',\n contents: outdent`\n import { PLUGIN_ID } from '../pluginId';\n\n const getTranslation = (id: string) => \\`\\${PLUGIN_ID}.\\${id}\\`;\n\n export { getTranslation };\n `,\n },\n {\n name: 'admin/src/translations/en.json',\n contents: outdent`\n {}\n `,\n },\n {\n /**\n * TODO: remove this when we release design-system V2\n */\n name: 'admin/custom.d.ts',\n contents: outdent`\n declare module '@strapi/design-system/*';\n declare module '@strapi/design-system';\n `,\n },\n];\n\nconst JAVASCRIPT: TemplateFile[] = [\n {\n name: 'admin/src/index.js',\n contents: outdent`\n import { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n import { PLUGIN_ID } from './pluginId';\n import { Initializer } from './components/Initializer';\n import { PluginIcon } from './components/PluginIcon';\n \n export default {\n register(app) {\n app.addMenuLink({\n to: \\`plugins/\\${PluginIcon}\\`,\n icon: PluginIcon,\n intlLabel: {\n id: \\`\\${PLUGIN_ID}.plugin.name\\`,\n defaultMessage: PLUGIN_ID,\n },\n Component: async () => {\n const { App } = await import('./pages/App');\n \n return App;\n },\n });\n \n app.registerPlugin({\n id: PLUGIN_ID,\n initializer: Initializer,\n isReady: false,\n name: PLUGIN_ID,\n });\n },\n \n async registerTrads(app) {\n const { locales } = app;\n \n const importedTranslations = await Promise.all(\n locales.map((locale) => {\n return import(\\`./translations/\\${locale}.json\\`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, PLUGIN_ID),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n \n return importedTranslations;\n },\n };\n `,\n },\n {\n name: 'admin/src/components/PluginIcon.jsx',\n contents: PLUGIN_ICON_CODE,\n },\n {\n name: 'admin/src/components/Initializer.jsx',\n contents: outdent`\n import { useEffect, useRef } from 'react';\n \n import { PLUGIN_ID } from '../pluginId';\n \n /**\n * @type {import('react').FC<{ setPlugin: (id: string) => void }>}\n */ \n const Initializer = ({ setPlugin }) => {\n const ref = useRef(setPlugin);\n \n useEffect(() => {\n ref.current(PLUGIN_ID);\n }, []);\n \n return null;\n };\n \n export { Initializer };\n `,\n },\n {\n name: 'admin/src/pages/App.jsx',\n contents: APP_CODE,\n },\n {\n name: 'admin/src/pages/HomePage.jsx',\n contents: HOMEPAGE_CODE,\n },\n {\n name: 'admin/src/utils/getTranslation.js',\n contents: outdent`\n import { PLUGIN_ID } from '../pluginId';\n \n const getTranslation = (id) => \\`\\${PLUGIN_ID}.\\${id}\\`;\n \n export { getTranslation };\n `,\n },\n {\n name: 'admin/src/translations/en.json',\n contents: outdent`\n {}\n `,\n },\n];\n\nexport { TYPESCRIPT as adminTypescriptFiles, JAVASCRIPT as adminJavascriptFiles };\n"],"names":["outdent"],"mappings":"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"}
@@ -1,4 +0,0 @@
1
- import { TemplateFile } from '@strapi/pack-up';
2
- declare const editorConfigFile: TemplateFile;
3
- export { editorConfigFile };
4
- //# sourceMappingURL=editorConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editorConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/plugin/init/files/editorConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,gBAAgB,EAAE,YAoBvB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const outdent = require("outdent");
4
- const editorConfigFile = {
5
- name: ".editorconfig",
6
- contents: outdent.outdent`
7
- root = true
8
-
9
- [*]
10
- indent_style = space
11
- indent_size = 2
12
- end_of_line = lf
13
- charset = utf-8
14
- trim_trailing_whitespace = true
15
- insert_final_newline = true
16
-
17
- [{package.json,*.yml}]
18
- indent_style = space
19
- indent_size = 2
20
-
21
- [*.md]
22
- trim_trailing_whitespace = false
23
- `
24
- };
25
- exports.editorConfigFile = editorConfigFile;
26
- //# sourceMappingURL=editorConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editorConfig.js","sources":["../../../../../../src/cli/commands/plugin/init/files/editorConfig.ts"],"sourcesContent":["import { TemplateFile } from '@strapi/pack-up';\nimport { outdent } from 'outdent';\n\nconst editorConfigFile: TemplateFile = {\n name: '.editorconfig',\n contents: outdent`\n root = true\n\n [*]\n indent_style = space\n indent_size = 2\n end_of_line = lf\n charset = utf-8\n trim_trailing_whitespace = true\n insert_final_newline = true\n \n [{package.json,*.yml}]\n indent_style = space\n indent_size = 2\n \n [*.md]\n trim_trailing_whitespace = false\n `,\n};\n\nexport { editorConfigFile };\n"],"names":["outdent"],"mappings":";;;AAGA,MAAM,mBAAiC;AAAA,EACrC,MAAM;AAAA,EACN,UAAUA,QAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAkBZ;;"}
@@ -1,4 +0,0 @@
1
- import { TemplateFile } from '@strapi/pack-up';
2
- declare const eslintIgnoreFile: TemplateFile;
3
- export { eslintIgnoreFile };
4
- //# sourceMappingURL=eslint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/plugin/init/files/eslint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,gBAAgB,EAAE,YAKvB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const outdent = require("outdent");
4
- const eslintIgnoreFile = {
5
- name: ".eslintignore",
6
- contents: outdent.outdent`
7
- dist
8
- `
9
- };
10
- exports.eslintIgnoreFile = eslintIgnoreFile;
11
- //# sourceMappingURL=eslint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint.js","sources":["../../../../../../src/cli/commands/plugin/init/files/eslint.ts"],"sourcesContent":["import { TemplateFile } from '@strapi/pack-up';\nimport { outdent } from 'outdent';\n\nconst eslintIgnoreFile: TemplateFile = {\n name: '.eslintignore',\n contents: outdent`\n dist\n `,\n};\n\nexport { eslintIgnoreFile };\n"],"names":["outdent"],"mappings":";;;AAGA,MAAM,mBAAiC;AAAA,EACrC,MAAM;AAAA,EACN,UAAUA,QAAAA;AAAAA;AAAAA;AAGZ;;"}
@@ -1,4 +0,0 @@
1
- import { TemplateFile } from '@strapi/pack-up';
2
- declare const gitIgnoreFile: TemplateFile;
3
- export { gitIgnoreFile };
4
- //# sourceMappingURL=gitIgnore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gitIgnore.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/plugin/init/files/gitIgnore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,aAAa,EAAE,YA4BpB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const outdent = require("outdent");
4
- const gitIgnoreFile = {
5
- name: ".gitignore",
6
- contents: outdent.outdent`
7
- # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
8
-
9
- # dependencies
10
- node_modules
11
- .pnp
12
- .pnp.js
13
-
14
- # testing
15
- coverage
16
-
17
- # production
18
- dist
19
-
20
- # misc
21
- .DS_Store
22
- *.pem
23
-
24
- # debug
25
- npm-debug.log*
26
- yarn-debug.log*
27
- yarn-error.log*
28
-
29
- # local env files
30
- .env
31
- `
32
- };
33
- exports.gitIgnoreFile = gitIgnoreFile;
34
- //# sourceMappingURL=gitIgnore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gitIgnore.js","sources":["../../../../../../src/cli/commands/plugin/init/files/gitIgnore.ts"],"sourcesContent":["import { TemplateFile } from '@strapi/pack-up';\nimport { outdent } from 'outdent';\n\nconst gitIgnoreFile: TemplateFile = {\n name: '.gitignore',\n contents: outdent`\n # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n # dependencies\n node_modules\n .pnp\n .pnp.js\n \n # testing\n coverage\n \n # production\n dist\n \n # misc\n .DS_Store\n *.pem\n \n # debug\n npm-debug.log*\n yarn-debug.log*\n yarn-error.log*\n \n # local env files\n .env \n `,\n};\n\nexport { gitIgnoreFile };\n"],"names":["outdent"],"mappings":";;;AAGA,MAAM,gBAA8B;AAAA,EAClC,MAAM;AAAA,EACN,UAAUA,QAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AA0BZ;;"}
@@ -1,5 +0,0 @@
1
- import { TemplateFile } from '@strapi/pack-up';
2
- declare const prettierFile: TemplateFile;
3
- declare const prettierIgnoreFile: TemplateFile;
4
- export { prettierFile, prettierIgnoreFile };
5
- //# sourceMappingURL=prettier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/plugin/init/files/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,YAAY,EAAE,YAWnB,CAAC;AAEF,QAAA,MAAM,kBAAkB,EAAE,YAMzB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const outdent = require("outdent");
4
- const prettierFile = {
5
- name: ".prettierrc",
6
- contents: outdent.outdent`
7
- {
8
- "endOfLine": 'lf',
9
- "tabWidth": 2,
10
- "printWidth": 100,
11
- "singleQuote": true,
12
- "trailingComma": 'es5',
13
- }
14
- `
15
- };
16
- const prettierIgnoreFile = {
17
- name: ".prettierignore",
18
- contents: outdent.outdent`
19
- dist
20
- coverage
21
- `
22
- };
23
- exports.prettierFile = prettierFile;
24
- exports.prettierIgnoreFile = prettierIgnoreFile;
25
- //# sourceMappingURL=prettier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prettier.js","sources":["../../../../../../src/cli/commands/plugin/init/files/prettier.ts"],"sourcesContent":["import { TemplateFile } from '@strapi/pack-up';\nimport { outdent } from 'outdent';\n\nconst prettierFile: TemplateFile = {\n name: '.prettierrc',\n contents: outdent`\n {\n \"endOfLine\": 'lf',\n \"tabWidth\": 2,\n \"printWidth\": 100,\n \"singleQuote\": true,\n \"trailingComma\": 'es5',\n }\n `,\n};\n\nconst prettierIgnoreFile: TemplateFile = {\n name: '.prettierignore',\n contents: outdent`\n dist\n coverage\n `,\n};\n\nexport { prettierFile, prettierIgnoreFile };\n"],"names":["outdent"],"mappings":";;;AAGA,MAAM,eAA6B;AAAA,EACjC,MAAM;AAAA,EACN,UAAUA,QAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AASZ;AAEA,MAAM,qBAAmC;AAAA,EACvC,MAAM;AAAA,EACN,UAAUA,QAAAA;AAAAA;AAAAA;AAAAA;AAIZ;;;"}
@@ -1,5 +0,0 @@
1
- import { TemplateFile } from '@strapi/pack-up';
2
- declare const TYPESCRIPT: (pluginName: string) => TemplateFile[];
3
- declare const JAVASCRIPT: (pluginName: string) => TemplateFile[];
4
- export { TYPESCRIPT as serverTypescriptFiles, JAVASCRIPT as serverJavascriptFiles };
5
- //# sourceMappingURL=server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/plugin/init/files/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,UAAU,eAAgB,MAAM,KAAG,YAAY,EAwKpD,CAAC;AAEF,QAAA,MAAM,UAAU,eAAgB,MAAM,KAAG,YAAY,EAwLpD,CAAC;AAEF,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,UAAU,IAAI,qBAAqB,EAAE,CAAC"}