@danjojojo/strapi-audit-trail 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/README.md +55 -2
  2. package/dist/admin/App-Bh07BNJH.mjs +24221 -0
  3. package/dist/admin/App-CnbPoQeS.js +24238 -0
  4. package/dist/admin/en-B4KWt_jN.js +4 -0
  5. package/dist/admin/en-Byx4XI2L.mjs +4 -0
  6. package/dist/admin/index-B_D8BZUB.mjs +108 -0
  7. package/dist/admin/index-D6PVUxkf.js +107 -0
  8. package/dist/admin/index.js +4 -0
  9. package/dist/admin/index.mjs +4 -0
  10. package/dist/admin/src/components/Initializer.d.ts +5 -0
  11. package/dist/admin/src/components/PluginIcon.d.ts +2 -0
  12. package/dist/admin/src/components/actions/HeaderAction.d.ts +2 -0
  13. package/dist/admin/src/components/blocks/BlocksDetailView.d.ts +2 -0
  14. package/dist/admin/src/components/blocks/BlocksDialogView.d.ts +2 -0
  15. package/dist/admin/src/components/blocks/BlocksRenderer.d.ts +2 -0
  16. package/dist/admin/src/components/blocks/BlocksToolkit.d.ts +1 -0
  17. package/dist/admin/src/components/blocks/components/Code.d.ts +2 -0
  18. package/dist/admin/src/components/blocks/components/Heading.d.ts +2 -0
  19. package/dist/admin/src/components/blocks/components/Image.d.ts +2 -0
  20. package/dist/admin/src/components/blocks/components/List.d.ts +2 -0
  21. package/dist/admin/src/components/blocks/components/ListItem.d.ts +2 -0
  22. package/dist/admin/src/components/blocks/components/Paragraph.d.ts +2 -0
  23. package/dist/admin/src/components/blocks/components/Quote.d.ts +2 -0
  24. package/dist/admin/src/components/blocks/modifiers/InlineCode.d.ts +2 -0
  25. package/dist/admin/src/components/detail/Header.d.ts +3 -0
  26. package/dist/admin/src/components/detail/RenderDocumentView.d.ts +4 -0
  27. package/dist/admin/src/components/detail/RenderField.d.ts +2 -0
  28. package/dist/admin/src/components/dialogs/AuditLoginDialog.d.ts +3 -0
  29. package/dist/admin/src/components/fields/Blocks.d.ts +2 -0
  30. package/dist/admin/src/components/fields/Boolean.d.ts +2 -0
  31. package/dist/admin/src/components/fields/Component.d.ts +2 -0
  32. package/dist/admin/src/components/fields/CustomField.d.ts +2 -0
  33. package/dist/admin/src/components/fields/Date.d.ts +9 -0
  34. package/dist/admin/src/components/fields/Dynamiczone.d.ts +2 -0
  35. package/dist/admin/src/components/fields/Integer.d.ts +2 -0
  36. package/dist/admin/src/components/fields/Json.d.ts +2 -0
  37. package/dist/admin/src/components/fields/Markdown.d.ts +2 -0
  38. package/dist/admin/src/components/fields/Media.d.ts +2 -0
  39. package/dist/admin/src/components/fields/Relation.d.ts +2 -0
  40. package/dist/admin/src/components/fields/String.d.ts +2 -0
  41. package/dist/admin/src/components/fields/Textarea.d.ts +2 -0
  42. package/dist/admin/src/components/fields/base/CompDynamiczone.d.ts +2 -0
  43. package/dist/admin/src/components/fields/base/CompEmpty.d.ts +1 -0
  44. package/dist/admin/src/components/fields/base/CompRepeatable.d.ts +2 -0
  45. package/dist/admin/src/components/fields/base/CompSingle.d.ts +2 -0
  46. package/dist/admin/src/components/home/Header.d.ts +4 -0
  47. package/dist/admin/src/components/layout/ContentLayout.d.ts +3 -0
  48. package/dist/admin/src/components/layout/DetailContentLayout.d.ts +2 -0
  49. package/dist/admin/src/components/layout/LandingContentLayout.d.ts +3 -0
  50. package/dist/admin/src/components/layout/Layout.d.ts +3 -0
  51. package/dist/admin/src/components/layout/Sidebar.d.ts +1 -0
  52. package/dist/admin/src/components/layout/VersionsSidebar.d.ts +2 -0
  53. package/dist/admin/src/components/layout/sidebar/SidebarContent.d.ts +1 -0
  54. package/dist/admin/src/components/layout/sidebar/SidebarHeader.d.ts +1 -0
  55. package/dist/admin/src/components/layout/sidebar/SidebarNote.d.ts +1 -0
  56. package/dist/admin/src/components/layout/sidebar/SidebarSearch.d.ts +1 -0
  57. package/dist/admin/src/components/markdown/MarkdownDetailView.d.ts +2 -0
  58. package/dist/admin/src/components/markdown/MarkdownDialogView.d.ts +2 -0
  59. package/dist/admin/src/components/markdown/MarkdownHeader.d.ts +7 -0
  60. package/dist/admin/src/components/markdown/MarkdownValue.d.ts +2 -0
  61. package/dist/admin/src/components/markdown/ParsedMarkdown.d.ts +2 -0
  62. package/dist/admin/src/components/markdown/components/Code.d.ts +2 -0
  63. package/dist/admin/src/components/markdown/components/Heading.d.ts +2 -0
  64. package/dist/admin/src/components/markdown/components/List.d.ts +2 -0
  65. package/dist/admin/src/components/markdown/components/ListItem.d.ts +2 -0
  66. package/dist/admin/src/components/markdown/components/Paragraph.d.ts +2 -0
  67. package/dist/admin/src/components/markdown/components/Quote.d.ts +2 -0
  68. package/dist/admin/src/components/styled/BlocksLayout.d.ts +57 -0
  69. package/dist/admin/src/components/styled/FieldLayout.d.ts +35 -0
  70. package/dist/admin/src/components/styled/MarkdownLayout.d.ts +51 -0
  71. package/dist/admin/src/components/styled/StyledBlockquote.d.ts +5 -0
  72. package/dist/admin/src/components/styled/StyledCode.d.ts +11 -0
  73. package/dist/admin/src/components/styled/StyledCustomField.d.ts +6 -0
  74. package/dist/admin/src/components/styled/StyledDialog.d.ts +8 -0
  75. package/dist/admin/src/components/styled/StyledHeading.d.ts +56 -0
  76. package/dist/admin/src/components/styled/StyledImage.d.ts +3 -0
  77. package/dist/admin/src/components/styled/StyledLinkButton.d.ts +3 -0
  78. package/dist/admin/src/components/styled/StyledList.d.ts +16 -0
  79. package/dist/admin/src/components/ui/Container.d.ts +8 -0
  80. package/dist/admin/src/components/ui/EmptyState.d.ts +2 -0
  81. package/dist/admin/src/components/ui/ErrorState.d.ts +3 -0
  82. package/dist/admin/src/components/ui/Field.d.ts +2 -0
  83. package/dist/admin/src/components/ui/Grid.d.ts +16 -0
  84. package/dist/admin/src/components/ui/Header.d.ts +2 -0
  85. package/dist/admin/src/components/ui/Loader.d.ts +1 -0
  86. package/dist/admin/src/components/ui/Pagination.d.ts +3 -0
  87. package/dist/admin/src/components/ui/Pill.d.ts +3 -0
  88. package/dist/admin/src/components/ui/SearchInput.d.ts +2 -0
  89. package/dist/admin/src/components/ui/SidebarListItem.d.ts +2 -0
  90. package/dist/admin/src/components/ui/SidebarListTitle.d.ts +2 -0
  91. package/dist/admin/src/components/ui/Status.d.ts +2 -0
  92. package/dist/admin/src/components/ui/Table.d.ts +5 -0
  93. package/dist/admin/src/components/ui/Versions.d.ts +13 -0
  94. package/dist/admin/src/constants.d.ts +38 -0
  95. package/dist/admin/src/helpers/audit-logs-formatters.d.ts +6 -0
  96. package/dist/admin/src/helpers/document-view/container-renderer.d.ts +2 -0
  97. package/dist/admin/src/helpers/document-view/field-value.d.ts +3 -0
  98. package/dist/admin/src/helpers/response-status.d.ts +2 -0
  99. package/dist/admin/src/hooks/useAuditLogins.d.ts +7 -0
  100. package/dist/admin/src/hooks/useAuditLogs.d.ts +11 -0
  101. package/dist/admin/src/hooks/useCarouselInput.d.ts +7 -0
  102. package/dist/admin/src/hooks/useCollections.d.ts +14 -0
  103. package/dist/admin/src/hooks/useRouting.d.ts +11 -0
  104. package/dist/admin/src/hooks/useTable.d.ts +8 -0
  105. package/dist/admin/src/hooks/useVersions.d.ts +6 -0
  106. package/dist/admin/src/index.d.ts +3 -0
  107. package/dist/admin/src/pages/App.d.ts +2 -0
  108. package/dist/admin/src/pages/AppRoutes.d.ts +1 -0
  109. package/dist/admin/src/pages/ContentTypePage.d.ts +1 -0
  110. package/dist/admin/src/pages/DetailPage.d.ts +1 -0
  111. package/dist/admin/src/pages/ErrorPage.d.ts +3 -0
  112. package/dist/admin/src/pages/LoginsPage.d.ts +1 -0
  113. package/dist/admin/src/pages/NoPermissionPage.d.ts +3 -0
  114. package/dist/admin/src/pages/RecentsPage.d.ts +1 -0
  115. package/dist/admin/src/permissions.d.ts +10 -0
  116. package/dist/admin/src/pluginId.d.ts +1 -0
  117. package/dist/admin/src/providers/app.provider.d.ts +3 -0
  118. package/dist/admin/src/providers/audit-logs.provider.d.ts +14 -0
  119. package/dist/admin/src/providers/collection.provider.d.ts +15 -0
  120. package/dist/admin/src/providers/markdown-mode.provider.d.ts +7 -0
  121. package/dist/admin/src/services/index.d.ts +7 -0
  122. package/dist/admin/src/types/actions.types.d.ts +16 -0
  123. package/dist/admin/src/types/block.types.d.ts +27 -0
  124. package/dist/admin/src/types/container.types.d.ts +50 -0
  125. package/dist/admin/src/types/detail.types.d.ts +8 -0
  126. package/dist/admin/src/types/dialog.types.d.ts +8 -0
  127. package/dist/admin/src/types/field-value.types.d.ts +25 -0
  128. package/dist/admin/src/types/fields-container.types.d.ts +8 -0
  129. package/dist/admin/src/types/fields.types.d.ts +101 -0
  130. package/dist/admin/src/types/internal.types.d.ts +5 -0
  131. package/dist/admin/src/types/markdown.types.d.ts +6 -0
  132. package/dist/admin/src/types/service.types.d.ts +93 -0
  133. package/dist/admin/src/types/ui.types.d.ts +67 -0
  134. package/dist/admin/src/types/utils.types.d.ts +1 -0
  135. package/dist/admin/src/types/versions.types.d.ts +17 -0
  136. package/dist/admin/src/utils/getTranslation.d.ts +2 -0
  137. package/dist/admin/src/utils/numbers.d.ts +8 -0
  138. package/dist/admin/src/utils/placeHeaderAction.d.ts +2 -0
  139. package/dist/admin/src/utils/routing.d.ts +5 -0
  140. package/dist/admin/src/utils/string.d.ts +3 -0
  141. package/dist/server/index.js +25234 -0
  142. package/dist/server/index.mjs +25223 -0
  143. package/dist/server/src/bootstrap.d.ts +5 -0
  144. package/dist/server/src/config/index.d.ts +5 -0
  145. package/dist/server/src/constants.d.ts +4 -0
  146. package/dist/server/src/content-types/audit-log/schema.json.d.ts +67 -0
  147. package/dist/server/src/content-types/audit-login/schema.json.d.ts +49 -0
  148. package/dist/server/src/content-types/index.d.ts +117 -0
  149. package/dist/server/src/controllers/audit-logins.d.ts +8 -0
  150. package/dist/server/src/controllers/audit-logs.d.ts +9 -0
  151. package/dist/server/src/controllers/collection.d.ts +8 -0
  152. package/dist/server/src/controllers/index.d.ts +19 -0
  153. package/dist/server/src/destroy.d.ts +5 -0
  154. package/dist/server/src/index.d.ts +211 -0
  155. package/dist/server/src/middlewares/audit-logins.d.ts +2 -0
  156. package/dist/server/src/middlewares/audit-logs.d.ts +2 -0
  157. package/dist/server/src/middlewares/index.d.ts +2 -0
  158. package/dist/server/src/permissions.d.ts +2 -0
  159. package/dist/server/src/policies/index.d.ts +2 -0
  160. package/dist/server/src/register.d.ts +5 -0
  161. package/dist/server/src/routes/admin/audit-logins.d.ts +12 -0
  162. package/dist/server/src/routes/admin/audit-logs.d.ts +12 -0
  163. package/dist/server/src/routes/admin/index.d.ts +12 -0
  164. package/dist/server/src/routes/content-api/index.d.ts +5 -0
  165. package/dist/server/src/routes/index.d.ts +18 -0
  166. package/dist/server/src/services/audit-logins.d.ts +16 -0
  167. package/dist/server/src/services/audit-logs.d.ts +21 -0
  168. package/dist/server/src/services/collection.d.ts +11 -0
  169. package/dist/server/src/services/index.d.ts +43 -0
  170. package/dist/server/src/types/audit-logins.d.ts +8 -0
  171. package/dist/server/src/types/audit-logs.d.ts +27 -0
  172. package/dist/server/src/types/internal.d.ts +8 -0
  173. package/package.json +81 -6
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const en = {};
4
+ exports.default = en;
@@ -0,0 +1,4 @@
1
+ const en = {};
2
+ export {
3
+ en as default
4
+ };
@@ -0,0 +1,108 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Eye, ClockCounterClockwise } from "@strapi/icons";
3
+ import { useRef, useEffect } from "react";
4
+ import { useNavigate } from "react-router-dom";
5
+ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
6
+ const v = glob[path];
7
+ if (v) {
8
+ return typeof v === "function" ? v() : Promise.resolve(v);
9
+ }
10
+ return new Promise((_, reject) => {
11
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
12
+ reject.bind(
13
+ null,
14
+ new Error(
15
+ "Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
16
+ )
17
+ )
18
+ );
19
+ });
20
+ };
21
+ const PLUGIN_ID = "audit-trail";
22
+ const pluginPermissions = {
23
+ accessPluginPage: [{ action: "plugin::audit-trail.access.plugin-page", subject: null }],
24
+ accessLoginsPage: [{ action: "plugin::audit-trail.access.logins-page", subject: null }]
25
+ };
26
+ const PluginIcon = () => /* @__PURE__ */ jsx(Eye, {});
27
+ const Initializer = ({ setPlugin }) => {
28
+ const ref = useRef(setPlugin);
29
+ useEffect(() => {
30
+ ref.current(PLUGIN_ID);
31
+ }, []);
32
+ return null;
33
+ };
34
+ const getTranslation = (id) => `${PLUGIN_ID}.${id}`;
35
+ const placeHeaderAction = (data) => {
36
+ const { actions, placeBefore, component } = data;
37
+ const targetAction = actions.findIndex((action) => action.type === placeBefore);
38
+ const actionsBeforeComponent = [...actions.slice(0, targetAction)];
39
+ const actionsAfterComponent = [...actions.slice(targetAction)];
40
+ return [...actionsBeforeComponent, ...component, ...actionsAfterComponent];
41
+ };
42
+ const HeaderAction = (props) => {
43
+ const { document, documentId, model, collectionType } = props;
44
+ const navigate = useNavigate();
45
+ const notAllowedToDisplay = !document || !model.startsWith("api::");
46
+ const navigateToPluginPage = () => {
47
+ if (!document) return;
48
+ const docId = collectionType === "single-types" ? document.documentId : documentId;
49
+ navigate(`/plugins/${PLUGIN_ID}/${collectionType}/${model}/${docId}`);
50
+ };
51
+ if (notAllowedToDisplay) return null;
52
+ return {
53
+ position: "header",
54
+ label: "Content History",
55
+ icon: /* @__PURE__ */ jsx(ClockCounterClockwise, {}),
56
+ onClick: navigateToPluginPage
57
+ };
58
+ };
59
+ const plugin = {
60
+ register(app) {
61
+ const appApi = app.getPlugin("content-manager").apis;
62
+ app.addMenuLink({
63
+ to: `plugins/${PLUGIN_ID}`,
64
+ icon: PluginIcon,
65
+ intlLabel: {
66
+ id: `${PLUGIN_ID}.plugin.name`,
67
+ defaultMessage: "Audit Trail"
68
+ },
69
+ Component: () => import("./App-Bh07BNJH.mjs"),
70
+ permissions: pluginPermissions.accessPluginPage
71
+ });
72
+ app.registerPlugin({
73
+ id: PLUGIN_ID,
74
+ initializer: Initializer,
75
+ isReady: false,
76
+ name: "Audit Trail"
77
+ });
78
+ appApi.addDocumentAction(
79
+ (actions) => placeHeaderAction({
80
+ actions,
81
+ component: [HeaderAction],
82
+ placeBefore: "delete"
83
+ })
84
+ );
85
+ },
86
+ registerTrads({ locales }) {
87
+ return Promise.all(
88
+ locales.map(async (locale) => {
89
+ try {
90
+ const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-Byx4XI2L.mjs") }), `./translations/${locale}.json`, 3);
91
+ const newData = {};
92
+ const keys = Object.keys(data);
93
+ for (const key of keys) {
94
+ newData[getTranslation(key)] = data[key];
95
+ }
96
+ return { data: newData, locale };
97
+ } catch {
98
+ return { data: {}, locale };
99
+ }
100
+ })
101
+ );
102
+ }
103
+ };
104
+ export {
105
+ PLUGIN_ID as P,
106
+ plugin as a,
107
+ pluginPermissions as p
108
+ };
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const icons = require("@strapi/icons");
4
+ const React = require("react");
5
+ const reactRouterDom = require("react-router-dom");
6
+ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
7
+ const v = glob[path];
8
+ if (v) {
9
+ return typeof v === "function" ? v() : Promise.resolve(v);
10
+ }
11
+ return new Promise((_, reject) => {
12
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
13
+ reject.bind(
14
+ null,
15
+ new Error(
16
+ "Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
17
+ )
18
+ )
19
+ );
20
+ });
21
+ };
22
+ const PLUGIN_ID = "audit-trail";
23
+ const pluginPermissions = {
24
+ accessPluginPage: [{ action: "plugin::audit-trail.access.plugin-page", subject: null }],
25
+ accessLoginsPage: [{ action: "plugin::audit-trail.access.logins-page", subject: null }]
26
+ };
27
+ const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx(icons.Eye, {});
28
+ const Initializer = ({ setPlugin }) => {
29
+ const ref = React.useRef(setPlugin);
30
+ React.useEffect(() => {
31
+ ref.current(PLUGIN_ID);
32
+ }, []);
33
+ return null;
34
+ };
35
+ const getTranslation = (id) => `${PLUGIN_ID}.${id}`;
36
+ const placeHeaderAction = (data) => {
37
+ const { actions, placeBefore, component } = data;
38
+ const targetAction = actions.findIndex((action) => action.type === placeBefore);
39
+ const actionsBeforeComponent = [...actions.slice(0, targetAction)];
40
+ const actionsAfterComponent = [...actions.slice(targetAction)];
41
+ return [...actionsBeforeComponent, ...component, ...actionsAfterComponent];
42
+ };
43
+ const HeaderAction = (props) => {
44
+ const { document, documentId, model, collectionType } = props;
45
+ const navigate = reactRouterDom.useNavigate();
46
+ const notAllowedToDisplay = !document || !model.startsWith("api::");
47
+ const navigateToPluginPage = () => {
48
+ if (!document) return;
49
+ const docId = collectionType === "single-types" ? document.documentId : documentId;
50
+ navigate(`/plugins/${PLUGIN_ID}/${collectionType}/${model}/${docId}`);
51
+ };
52
+ if (notAllowedToDisplay) return null;
53
+ return {
54
+ position: "header",
55
+ label: "Content History",
56
+ icon: /* @__PURE__ */ jsxRuntime.jsx(icons.ClockCounterClockwise, {}),
57
+ onClick: navigateToPluginPage
58
+ };
59
+ };
60
+ const plugin = {
61
+ register(app) {
62
+ const appApi = app.getPlugin("content-manager").apis;
63
+ app.addMenuLink({
64
+ to: `plugins/${PLUGIN_ID}`,
65
+ icon: PluginIcon,
66
+ intlLabel: {
67
+ id: `${PLUGIN_ID}.plugin.name`,
68
+ defaultMessage: "Audit Trail"
69
+ },
70
+ Component: () => Promise.resolve().then(() => require("./App-CnbPoQeS.js")),
71
+ permissions: pluginPermissions.accessPluginPage
72
+ });
73
+ app.registerPlugin({
74
+ id: PLUGIN_ID,
75
+ initializer: Initializer,
76
+ isReady: false,
77
+ name: "Audit Trail"
78
+ });
79
+ appApi.addDocumentAction(
80
+ (actions) => placeHeaderAction({
81
+ actions,
82
+ component: [HeaderAction],
83
+ placeBefore: "delete"
84
+ })
85
+ );
86
+ },
87
+ registerTrads({ locales }) {
88
+ return Promise.all(
89
+ locales.map(async (locale) => {
90
+ try {
91
+ const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-B4KWt_jN.js")) }), `./translations/${locale}.json`, 3);
92
+ const newData = {};
93
+ const keys = Object.keys(data);
94
+ for (const key of keys) {
95
+ newData[getTranslation(key)] = data[key];
96
+ }
97
+ return { data: newData, locale };
98
+ } catch {
99
+ return { data: {}, locale };
100
+ }
101
+ })
102
+ );
103
+ }
104
+ };
105
+ exports.PLUGIN_ID = PLUGIN_ID;
106
+ exports.plugin = plugin;
107
+ exports.pluginPermissions = pluginPermissions;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index = require("./index-D6PVUxkf.js");
4
+ exports.default = index.plugin;
@@ -0,0 +1,4 @@
1
+ import { a } from "./index-B_D8BZUB.mjs";
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,5 @@
1
+ type InitializerProps = {
2
+ setPlugin: (id: string) => void;
3
+ };
4
+ declare const Initializer: ({ setPlugin }: InitializerProps) => null;
5
+ export { Initializer };
@@ -0,0 +1,2 @@
1
+ declare const PluginIcon: () => import("react").JSX.Element;
2
+ export { PluginIcon };
@@ -0,0 +1,2 @@
1
+ import { HeaderActionType } from '../../types/actions.types';
2
+ export declare const HeaderAction: HeaderActionType;
@@ -0,0 +1,2 @@
1
+ import { BlocksRendererProps } from '../../types/block.types';
2
+ export declare function BlocksDetailView({ value }: BlocksRendererProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BlocksRendererProps } from '../../types/block.types';
2
+ export declare function BlocksDialogView({ value }: BlocksRendererProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BlocksRendererProps } from '../../types/block.types';
2
+ export declare function BlocksRenderer({ value }: BlocksRendererProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function BlocksToolkit(): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BaseBlock } from '../../../types/block.types';
2
+ export declare function Code({ children }: BaseBlock): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { HeadingBlockProps } from '../../../types/block.types';
2
+ export declare function Heading({ children, level }: HeadingBlockProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ImageBlockProps } from '../../../types/block.types';
2
+ export declare function Image({ data, children }: ImageBlockProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ListBlockProps } from '../../../types/block.types';
2
+ export declare function List({ format, children }: ListBlockProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BaseBlock } from '../../../types/block.types';
2
+ export declare function ListItem({ children }: BaseBlock): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BaseBlock } from '../../../types/block.types';
2
+ export declare function Paragraph({ children }: BaseBlock): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BaseBlock } from '../../../types/block.types';
2
+ export declare function Quote({ children }: BaseBlock): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BaseBlock } from '../../../types/block.types';
2
+ export declare function InlineCode({ children }: BaseBlock): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function DetailPageHeader({ title }: {
2
+ title?: string;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { GetAuditLogResponse } from '../../types/service.types';
2
+ export declare function RenderDocumentView({ data }: {
3
+ data: GetAuditLogResponse['auditLog'];
4
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import { RenderFieldProps } from '../../types/fields.types';
2
+ export declare function RenderField({ label, type, value, schema, metadata, settings }: RenderFieldProps): import("react").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import { AuditLoginsData } from '../../types/service.types';
2
+ import { BaseDialogProps } from '../../types/dialog.types';
3
+ export declare function AuditLoginDialog({ data, onClose }: BaseDialogProps<AuditLoginsData>): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { InputFieldProps } from '../../types/fields.types';
2
+ export declare function Blocks({ label, value, schema }: InputFieldProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BooleanProps } from '../../types/fields.types';
2
+ export declare function Boolean({ label, value, schema }: BooleanProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ComponentProps } from '../../types/fields.types';
2
+ export declare function Component({ label, value, schema, settings }: ComponentProps): import("react").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import { InputFieldProps } from '../../types/fields.types';
2
+ export declare function CustomField({ label, value, schema }: InputFieldProps): import("react").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ import { InputFieldProps } from '../../types/fields.types';
2
+ export declare const DateTimePicker: ({ label, value, schema }: InputFieldProps) => import("react").JSX.Element;
3
+ export declare const DatePicker: ({ label, value, schema }: InputFieldProps) => import("react").JSX.Element;
4
+ export declare const TimePicker: ({ label, value, schema }: InputFieldProps) => import("react").JSX.Element;
5
+ export declare const Date: {
6
+ DateTimePicker: ({ label, value, schema }: InputFieldProps) => import("react").JSX.Element;
7
+ DatePicker: ({ label, value, schema }: InputFieldProps) => import("react").JSX.Element;
8
+ TimePicker: ({ label, value, schema }: InputFieldProps) => import("react").JSX.Element;
9
+ };
@@ -0,0 +1,2 @@
1
+ import { DynamiczoneProps } from '../../types/fields.types';
2
+ export declare function Dynamiczone({ value }: DynamiczoneProps): import("react").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import { InputFieldProps } from '../../types/fields.types';
2
+ export declare function Integer({ label, value, schema }: InputFieldProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { InputFieldProps } from '../../types/fields.types';
2
+ export declare function Json({ label, value, schema }: InputFieldProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { InputFieldProps } from '../../types/fields.types';
2
+ export declare function Markdown({ label, value, schema }: InputFieldProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MediaProps } from '../../types/fields.types';
2
+ export declare function Media({ label, value, schema }: MediaProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { RelationProps } from '../../types/fields.types';
2
+ export declare function Relation({ label, value, metadata, schema }: RelationProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { InputFieldProps } from '../../types/fields.types';
2
+ export declare function String({ label, value, schema }: InputFieldProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { InputFieldProps } from '../../types/fields.types';
2
+ export declare function Textarea({ label, value, schema }: InputFieldProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DynamiczoneComponentProps } from '../../../types/fields.types';
2
+ export declare function DynamiczoneComponent({ value, renderTitle, renderContainers, renderFields, }: DynamiczoneComponentProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function EmptyComponent(): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { RepeatableComponentProps } from '../../../types/fields.types';
2
+ export declare function RepeatableComponent({ value, containers, renderTitle, renderFields, }: RepeatableComponentProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SingleComponentProps } from '../../../types/fields.types';
2
+ export declare function SingleComponent({ containers, renderFields }: SingleComponentProps): import("react").JSX.Element[] | undefined;
@@ -0,0 +1,4 @@
1
+ export declare function HomepageHeader({ title, count }: {
2
+ title?: string;
3
+ count?: number;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function ContentLayout({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DetailContentLayoutProps } from '../../types/detail.types';
2
+ export declare function DetailContentLayout({ content, rightSidebar, isLoading, hasError, isInvalid, isEmpty, }: DetailContentLayoutProps): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function LandingContentLayout({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function Layout({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Sidebar(): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { VersionsSidebarProps } from '../../types/versions.types';
2
+ export declare function VersionsSidebar({ logs, isLoading, isInvalid, hasError, }: VersionsSidebarProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SidebarContent(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SidebarHeader(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SidebarNote(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SidebarSearch(): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarkdownProps } from '../../types/markdown.types';
2
+ export declare function MarkdownDetailView({ value }: MarkdownProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarkdownProps } from '../../types/markdown.types';
2
+ export declare function MarkdownDialog({ value }: MarkdownProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ declare function Toolkit({ hideModeBtn }: {
2
+ hideModeBtn?: boolean;
3
+ }): import("react").JSX.Element;
4
+ export declare const MarkdownHeader: {
5
+ Toolkit: typeof Toolkit;
6
+ };
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { MarkdownProps } from '../../types/markdown.types';
2
+ export declare function MarkdownValue({ value }: MarkdownProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarkdownProps } from '../../types/markdown.types';
2
+ export declare function ParsedMarkdown({ value }: MarkdownProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarkdownCompProps } from '../../../types/markdown.types';
2
+ export declare function Code({ children }: MarkdownCompProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { HeadingBlockProps } from '../../../types/block.types';
2
+ export declare function Heading({ children, level }: HeadingBlockProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ListBlockProps } from '../../../types/block.types';
2
+ export declare function List({ format, children }: ListBlockProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarkdownCompProps } from '../../../types/markdown.types';
2
+ export declare function ListItem({ children }: MarkdownCompProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarkdownCompProps } from '../../../types/markdown.types';
2
+ export declare function Paragraph({ children }: MarkdownCompProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarkdownCompProps } from '../../../types/markdown.types';
2
+ export declare function Quote({ children }: MarkdownCompProps): import("react").JSX.Element;
@@ -0,0 +1,57 @@
1
+ import { Dialog as StrapiDialog } from '@strapi/design-system';
2
+ export declare const BlocksLayout: {
3
+ Header: {
4
+ Container: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').FlexProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
5
+ ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
6
+ }> & string & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: React.PropsWithoutRef<import('@strapi/design-system').FlexProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import('react').Component<any, {}, any>>;
7
+ ToolkitIconGroup: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').FlexProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
8
+ ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
9
+ }> & string & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: React.PropsWithoutRef<import('@strapi/design-system').FlexProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import('react').Component<any, {}, any>>;
10
+ ToolkitIcon: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').IconButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
11
+ ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
12
+ }> & string & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<import('@strapi/design-system').IconButtonProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import('react').Component<any, {}, any>>;
13
+ ToolkitSeparator: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('@strapi/design-system').TransientBoxProps & {
14
+ children?: React.ReactNode;
15
+ } & import('@strapi/design-system/dist/types').AsProp<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import('@strapi/design-system/dist/types').AsProp<C> | keyof import('@strapi/design-system').TransientBoxProps> & {
16
+ ref?: any;
17
+ }, "ref"> & {
18
+ ref?: any;
19
+ }> & string & Omit<import('@strapi/design-system').BoxComponent<"div">, keyof import('react').Component<any, {}, any>>;
20
+ };
21
+ ToggleViewIcon: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').IconButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
22
+ ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
23
+ }> & string & Omit<(<C_1 extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<import('@strapi/design-system').IconButtonProps<C_1>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import('react').Component<any, {}, any>>;
24
+ Footer: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<Omit<StrapiDialog.FooterProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
25
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
26
+ }, "style"> & {
27
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars | undefined;
28
+ }> & string & Omit<import('react').ForwardRefExoticComponent<Omit<StrapiDialog.FooterProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
29
+ Detail: {
30
+ Container: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').FlexProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
31
+ ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
32
+ }> & string & Omit<(<C_1 extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: React.PropsWithoutRef<import('@strapi/design-system').FlexProps<C_1>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import('react').Component<any, {}, any>>;
33
+ Scrollable: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').ScrollAreaProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
34
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
35
+ }, "style"> & {
36
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars | undefined;
37
+ }> & string & Omit<import('react').ForwardRefExoticComponent<import('@strapi/design-system').ScrollAreaProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
38
+ BlocksRendererWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').FlexProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
39
+ ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
40
+ }> & string & Omit<(<C_1 extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: React.PropsWithoutRef<import('@strapi/design-system').FlexProps<C_1>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import('react').Component<any, {}, any>>;
41
+ };
42
+ Dialog: {
43
+ Container: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<StrapiDialog.ContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
44
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
45
+ }, "style"> & {
46
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars | undefined;
47
+ }> & string & Omit<import('react').ForwardRefExoticComponent<StrapiDialog.ContentProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
48
+ Scrollable: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').ScrollAreaProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
49
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
50
+ }, "style"> & {
51
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars | undefined;
52
+ }> & string & Omit<import('react').ForwardRefExoticComponent<import('@strapi/design-system').ScrollAreaProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
53
+ BlocksRendererWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('@strapi/design-system').FlexProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
54
+ ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
55
+ }> & string & Omit<(<C_1 extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: React.PropsWithoutRef<import('@strapi/design-system').FlexProps<C_1>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import('react').Component<any, {}, any>>;
56
+ };
57
+ };