@edifice.io/wiki 3.4.0-develop-pedago.1

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 (155) hide show
  1. package/lib/BAGVG3AX.js +33 -0
  2. package/lib/DeleteListModal.js +36 -0
  3. package/lib/KZB72KQG.js +42 -0
  4. package/lib/NITRNJ62.js +9215 -0
  5. package/lib/PrintModal.js +74 -0
  6. package/lib/components/AIButton/AIButton.d.ts +6 -0
  7. package/lib/components/ButtonGroup/index.d.ts +6 -0
  8. package/lib/components/CancelModal/index.d.ts +6 -0
  9. package/lib/components/ResourceModal/index.d.ts +2 -0
  10. package/lib/components/ShareModal/index.d.ts +2 -0
  11. package/lib/components/SimpleRadioCard/SimpleRadioCard.d.ts +37 -0
  12. package/lib/components/Toggle/index.d.ts +2 -0
  13. package/lib/components/WikiApp/components/WikiApp.d.ts +15 -0
  14. package/lib/components/WikiApp/providers/WikiAppProvider.context.d.ts +7 -0
  15. package/lib/components/WikiApp/providers/WikiAppProvider.d.ts +9 -0
  16. package/lib/components/WikiApp/providers/WikiAppProvider.hook.d.ts +1 -0
  17. package/lib/components/index.d.ts +1 -0
  18. package/lib/config/constants.d.ts +7 -0
  19. package/lib/config/explorer.d.ts +2 -0
  20. package/lib/config/index.d.ts +3 -0
  21. package/lib/config/workflows.d.ts +19 -0
  22. package/lib/features/app/AppActions/AppActions.d.ts +8 -0
  23. package/lib/features/app/AppActions/AppActions.test.d.ts +1 -0
  24. package/lib/features/app/AppHeader/AppHeader.d.ts +1 -0
  25. package/lib/features/app/AppHeader/AppHeader.test.d.ts +1 -0
  26. package/lib/features/index.d.ts +13 -0
  27. package/lib/features/page/ConfirmVisibilityModal/ConfirmVisibilityModal.d.ts +4 -0
  28. package/lib/features/page/DeleteListModal/DeleteListModal.d.ts +4 -0
  29. package/lib/features/page/DeleteListModal/DeleteListModal.test.d.ts +1 -0
  30. package/lib/features/page/DeletePageModal/DeletePageModal.d.ts +1 -0
  31. package/lib/features/page/DuplicateModal/DuplicateModal.d.ts +16 -0
  32. package/lib/features/page/DuplicateModal/DuplicateModal.test.d.ts +1 -0
  33. package/lib/features/page/FormPage/FormPage.d.ts +4 -0
  34. package/lib/features/page/MoveModal/MoveModal.d.ts +6 -0
  35. package/lib/features/page/MoveModal/MoveModal.test.d.ts +1 -0
  36. package/lib/features/page/PageHeader/PageHeader.d.ts +6 -0
  37. package/lib/features/page/PageHeader/PageHeader.test.d.ts +1 -0
  38. package/lib/features/page/PrintModal/PrintModal.d.ts +1 -0
  39. package/lib/features/page/PrintModal/PrintModal.test.d.ts +1 -0
  40. package/lib/features/page/RevisionHeader/RevisionHeader.d.ts +4 -0
  41. package/lib/features/page/RevisionHeader/RevisionHeader.test.d.ts +1 -0
  42. package/lib/features/page/RevisionModal/RevisionModal.d.ts +4 -0
  43. package/lib/features/page/RevisionModal/RevisionModal.test.d.ts +1 -0
  44. package/lib/features/page/RevisionModal/useRevisionModal.d.ts +16 -0
  45. package/lib/features/wiki/DropdownTreeview/DropdownTreeview.d.ts +6 -0
  46. package/lib/features/wiki/NewPage/NewPage.d.ts +1 -0
  47. package/lib/features/wiki/NewPage/NewPage.test.d.ts +1 -0
  48. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep1Form.d.ts +1 -0
  49. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep2Form.d.ts +1 -0
  50. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep3StructureLoading.d.ts +1 -0
  51. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep4StructureResult.d.ts +1 -0
  52. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/useLevels.d.ts +23 -0
  53. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/useSubjects.d.ts +12 -0
  54. package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantAICard.d.ts +1 -0
  55. package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantImportPollCard.d.ts +1 -0
  56. package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantLibraryCard.d.ts +1 -0
  57. package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantManualCreationCard.d.ts +1 -0
  58. package/lib/features/wiki/PagesAssistant/PagesAssistantLeftPane.d.ts +1 -0
  59. package/lib/features/wiki/PagesAssistant/PagesAssistantRoot.d.ts +1 -0
  60. package/lib/features/wiki/PagesAssistant/animations/loading.json.d.ts +2290 -0
  61. package/lib/features/wiki/WikiEmptyScreen/WikiEmptyScreen.d.ts +2 -0
  62. package/lib/features/wiki/WikiEmptyScreen/WikiEmptyScreen.test.d.ts +1 -0
  63. package/lib/hooks/index.d.ts +4 -0
  64. package/lib/hooks/useCancelPage.d.ts +7 -0
  65. package/lib/hooks/useCheckablePrint.d.ts +11 -0
  66. package/lib/hooks/useCheckableTable.d.ts +9 -0
  67. package/lib/hooks/useFeedData.d.ts +19 -0
  68. package/lib/hooks/useFilterCurrentPageFromTree.d.ts +8 -0
  69. package/lib/hooks/useFilterVisiblePage.d.ts +2 -0
  70. package/lib/hooks/useFilteredWikis.d.ts +10 -0
  71. package/lib/hooks/useFindTreeItemById.d.ts +11 -0
  72. package/lib/hooks/useFormPage/useFormPage.d.ts +23 -0
  73. package/lib/hooks/useFormPage/useFormPage.test.d.ts +1 -0
  74. package/lib/hooks/useIsAuthorOrManager.d.ts +8 -0
  75. package/lib/hooks/useIsOnlyRead.d.ts +1 -0
  76. package/lib/hooks/useListPage/useListPage.d.ts +5 -0
  77. package/lib/hooks/useListPage/useListPage.test.d.ts +1 -0
  78. package/lib/hooks/useMenu.d.ts +11 -0
  79. package/lib/hooks/useRedirectDefaultPage.d.ts +1 -0
  80. package/lib/hooks/useReorganizeTree.d.ts +16 -0
  81. package/lib/hooks/useRevision/useRevision.d.ts +54 -0
  82. package/lib/hooks/useRevision/useRevision.test.d.ts +1 -0
  83. package/lib/hooks/useUpdatePages.d.ts +4 -0
  84. package/lib/i18n.d.ts +2 -0
  85. package/lib/index.d.ts +1 -0
  86. package/lib/index.js +4 -0
  87. package/lib/index2.js +12448 -0
  88. package/lib/index3.js +5 -0
  89. package/lib/index4.js +5 -0
  90. package/lib/main.d.ts +0 -0
  91. package/lib/mocks/handlers.d.ts +4 -0
  92. package/lib/mocks/index.d.ts +413 -0
  93. package/lib/mocks/polyfills.d.ts +5 -0
  94. package/lib/mocks/renderWithRouter.d.ts +2 -0
  95. package/lib/mocks/server.d.ts +1 -0
  96. package/lib/mocks/setup.d.ts +11 -0
  97. package/lib/models/comment.d.ts +20 -0
  98. package/lib/models/date.d.ts +12 -0
  99. package/lib/models/index.d.ts +5 -0
  100. package/lib/models/page.d.ts +91 -0
  101. package/lib/models/payload.d.ts +28 -0
  102. package/lib/models/revision.d.ts +12 -0
  103. package/lib/models/wiki.d.ts +68 -0
  104. package/lib/providers/index.d.ts +9 -0
  105. package/lib/routes/errors/index.d.ts +3 -0
  106. package/lib/routes/errors/not-found.d.ts +1 -0
  107. package/lib/routes/index.d.ts +6 -0
  108. package/lib/routes/old-format/index.d.ts +36 -0
  109. package/lib/routes/page/create.d.ts +4 -0
  110. package/lib/routes/page/edit.d.ts +11 -0
  111. package/lib/routes/page/index.d.ts +37 -0
  112. package/lib/routes/page/list/list.d.ts +46 -0
  113. package/lib/routes/page/list/list.test.d.ts +1 -0
  114. package/lib/routes/page/pageEditAction.d.ts +4 -0
  115. package/lib/routes/print/index.d.ts +36 -0
  116. package/lib/routes/root/index.d.ts +4 -0
  117. package/lib/routes/wiki/index.d.ts +45 -0
  118. package/lib/routes/wiki/index.test.d.ts +1 -0
  119. package/lib/services/api/assistant/assistant.service.d.ts +9 -0
  120. package/lib/services/api/assistant/assistant.types.d.ts +19 -0
  121. package/lib/services/api/index.d.ts +261 -0
  122. package/lib/services/api/index.test.d.ts +1 -0
  123. package/lib/services/api/poll/poll.service.d.ts +17 -0
  124. package/lib/services/api/poll/poll.types.d.ts +27 -0
  125. package/lib/services/index.d.ts +12 -0
  126. package/lib/services/queries/actions.d.ts +11 -0
  127. package/lib/services/queries/comment.d.ts +20 -0
  128. package/lib/services/queries/index.d.ts +4 -0
  129. package/lib/services/queries/page/page.d.ts +264 -0
  130. package/lib/services/queries/page/page.test.d.ts +1 -0
  131. package/lib/services/queries/poll/poll.query.d.ts +9 -0
  132. package/lib/services/queries/poll/poll.test.d.ts +1 -0
  133. package/lib/services/queries/wiki/wiki.d.ts +235 -0
  134. package/lib/services/queries/wiki/wiki.test.d.ts +1 -0
  135. package/lib/services/resource/index.d.ts +47 -0
  136. package/lib/store/assistant/index.d.ts +7 -0
  137. package/lib/store/index.d.ts +3 -0
  138. package/lib/store/rights/index.d.ts +11 -0
  139. package/lib/store/toast/index.d.ts +13 -0
  140. package/lib/store/treeview/index.d.ts +12 -0
  141. package/lib/store/wiki/index.d.ts +55 -0
  142. package/lib/style.css +1 -0
  143. package/lib/utils/dtoToPage.d.ts +33 -0
  144. package/lib/utils/dtoToWiki.d.ts +43 -0
  145. package/lib/utils/dtoToWikiPages.d.ts +33 -0
  146. package/lib/utils/findDefaultPage.d.ts +5 -0
  147. package/lib/utils/findDefaultPage.test.d.ts +1 -0
  148. package/lib/utils/findLastPage.d.ts +4 -0
  149. package/lib/utils/findPage.d.ts +2 -0
  150. package/lib/utils/findPage.test.d.ts +1 -0
  151. package/lib/utils/getChildrenRecursively.d.ts +19 -0
  152. package/lib/utils/getFormValue.d.ts +1 -0
  153. package/lib/utils/sortPagesByDate.d.ts +2 -0
  154. package/lib/utils/sortPagesByPosition.d.ts +2 -0
  155. package/package.json +90 -0
@@ -0,0 +1,74 @@
1
+ import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
+ import { Modal as d, Radio as f, Checkbox as v, Button as k } from "@edifice.io/react";
3
+ import { createPortal as M } from "react-dom";
4
+ import { useTranslation as y } from "react-i18next";
5
+ import { useState as h } from "react";
6
+ import { useParams as I } from "react-router-dom";
7
+ import { a0 as W, b, a1 as $, a2 as G } from "./index2.js";
8
+ import "@edifice.io/client";
9
+ import "@tanstack/react-query";
10
+ const A = () => {
11
+ const e = I(), l = W(), {
12
+ setOpenPrintModal: i
13
+ } = b(), n = l[0] ?? e.pageId, c = l.length > 0, [m, p] = h(!n), [u, t] = h(n ? "onePage" : "allPages"), [o, C] = h(!1), x = () => {
14
+ C(!o);
15
+ }, w = (g) => {
16
+ const P = g.target.value;
17
+ let r;
18
+ switch (P) {
19
+ case "allPages":
20
+ r = !0;
21
+ break;
22
+ case "onePage":
23
+ r = !1;
24
+ break;
25
+ default:
26
+ r = !1;
27
+ }
28
+ t(P), p(r);
29
+ }, O = () => m ? `printComment=${o}` : `printPageId=${n}&printComment=${o}`;
30
+ return {
31
+ handleOnGroupChange: w,
32
+ handleOnPrintComment: x,
33
+ handleOnPrintWiki: () => {
34
+ const g = O();
35
+ window.open(`${$}/print/id/${e.wikiId}?${g}`, "_blank"), i(!1);
36
+ },
37
+ disableWikiPrint: c,
38
+ printComment: o,
39
+ printGroup: u,
40
+ pageId: n
41
+ };
42
+ };
43
+ function Q() {
44
+ const {
45
+ t: e
46
+ } = y("wiki"), l = G(), {
47
+ setOpenPrintModal: i
48
+ } = b(), {
49
+ handleOnGroupChange: n,
50
+ handleOnPrintComment: c,
51
+ handleOnPrintWiki: m,
52
+ disableWikiPrint: p,
53
+ printComment: u,
54
+ printGroup: t,
55
+ pageId: o
56
+ } = A();
57
+ return /* @__PURE__ */ M(/* @__PURE__ */ a(d, { id: "print-page", isOpen: l, onModalClose: () => i(!1), children: /* @__PURE__ */ s("div", { className: "d-flex flex-column gap-24", children: [
58
+ /* @__PURE__ */ a(d.Header, { onModalClose: () => i(!1), children: e("wiki.modal.print.header") }),
59
+ /* @__PURE__ */ a(d.Body, { children: /* @__PURE__ */ s("div", { className: "d-flex flex-column gap-32", children: [
60
+ /* @__PURE__ */ s("div", { className: "d-flex flex-column gap-16", children: [
61
+ /* @__PURE__ */ a(f, { model: t, label: e("wiki.modal.print.radio.page"), checked: t === "onePage", onChange: n, value: "onePage", disabled: !o }),
62
+ /* @__PURE__ */ a(f, { model: t, label: e("wiki.modal.print.radio.pages"), checked: t === "allPages", onChange: n, disabled: p, value: "allPages" })
63
+ ] }),
64
+ /* @__PURE__ */ a(v, { "data-testid": "th-checkbox", label: e("wiki.modal.print.checkbox.label"), checked: u, onChange: c })
65
+ ] }) }),
66
+ /* @__PURE__ */ s(d.Footer, { children: [
67
+ /* @__PURE__ */ a(k, { "data-testid": "cancel-button", color: "tertiary", variant: "ghost", onClick: () => i(!1), children: e("wiki.modal.print.page.cancel") }),
68
+ /* @__PURE__ */ a(k, { type: "button", color: "primary", variant: "filled", onClick: m, children: e("wiki.modal.print.button.print") })
69
+ ] })
70
+ ] }) }), document.getElementById("portal"));
71
+ }
72
+ export {
73
+ Q as default
74
+ };
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from '@edifice.io/react';
2
+ /**
3
+ * AIButton extends ButtonComponent.
4
+ */
5
+ declare const AIButton: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
6
+ export default AIButton;
@@ -0,0 +1,6 @@
1
+ export interface ButtonGroupProps {
2
+ className?: string;
3
+ children: Array<JSX.Element | false>;
4
+ variant?: 'reverse';
5
+ }
6
+ export declare const ButtonGroup: ({ className, variant, children, }: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const CancelModal: ({ isOpen, onClose, onCancel, isNewPage, }: {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ onCancel: () => void;
5
+ isNewPage: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ResourceModal as UpdateModal } from '@edifice.io/react/modals';
2
+ export default UpdateModal;
@@ -0,0 +1,2 @@
1
+ import { ShareModal } from '@edifice.io/react/modals';
2
+ export default ShareModal;
@@ -0,0 +1,37 @@
1
+ import { ChangeEvent } from 'react';
2
+ export interface RadioCardProps {
3
+ /**
4
+ * The currently selected value in the radio group.
5
+ */
6
+ selectedValue: string | undefined;
7
+ /**
8
+ * The value associated with this specific radio card.
9
+ */
10
+ value: string;
11
+ /**
12
+ * The main label text for the radio card.
13
+ */
14
+ label: string;
15
+ /**
16
+ * Callback function triggered when the radio card selection changes.
17
+ */
18
+ onChange: (e: ChangeEvent<HTMLInputElement>) => void;
19
+ /**
20
+ * Optional additional CSS class names to apply to the radio card.
21
+ */
22
+ className?: string;
23
+ /**
24
+ * Optional model value associated with the radio card, can be a string, boolean, or number.
25
+ */
26
+ model?: string | boolean | number;
27
+ /**
28
+ * Optional name for the radio group, used to group radio cards together.
29
+ */
30
+ groupName?: string;
31
+ /**
32
+ * Optional image URL to display alongside the label.
33
+ */
34
+ image?: string;
35
+ }
36
+ declare const SimpleRadioCard: import('react').ForwardRefExoticComponent<RadioCardProps & import('react').RefAttributes<HTMLLabelElement>>;
37
+ export default SimpleRadioCard;
@@ -0,0 +1,2 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export declare const Toggle: import('react').ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ export interface WikiAction {
3
+ id: string;
4
+ label: string;
5
+ icon: JSX.Element;
6
+ action: () => void;
7
+ visibility: boolean;
8
+ }
9
+ export interface WikiAppProps {
10
+ wikiId: string;
11
+ header?: boolean;
12
+ actions?: WikiAction[];
13
+ }
14
+ declare const WikiApp: React.FC<WikiAppProps>;
15
+ export default WikiApp;
@@ -0,0 +1,7 @@
1
+ import { WikiAction } from '../components/WikiApp';
2
+ export interface WikiAppContextProps {
3
+ wikiId: string;
4
+ header?: boolean;
5
+ actions?: WikiAction[];
6
+ }
7
+ export declare const WikiAppContext: import('react').Context<WikiAppContextProps | null>;
@@ -0,0 +1,9 @@
1
+ import { WikiAction } from '../components/WikiApp';
2
+ export interface WikiAppProviderProps {
3
+ wikiId: string;
4
+ header?: boolean;
5
+ actions?: WikiAction[];
6
+ children: React.ReactNode;
7
+ }
8
+ export declare function WikiAppProvider({ wikiId, header, actions, children, }: WikiAppProviderProps): import("react/jsx-runtime").JSX.Element;
9
+ export default WikiAppProvider;
@@ -0,0 +1 @@
1
+ export declare const useWikiAppContext: () => import('./WikiAppProvider.context').WikiAppContextProps;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const MAX_TITLE_LENGTH = 80;
2
+ export declare const MAX_COMMENT_LENGTH = 800;
3
+ export declare const MAX_REPLY_LENGTH = 200;
4
+ export declare const MAX_COMMENTS = 5;
5
+ export declare const ADDITIONAL_COMMENTS = 10;
6
+ export declare const MAX_REPLIES = 2;
7
+ export declare const ADDITIONAL_REPLIES = 10;
@@ -0,0 +1,2 @@
1
+ import { AppParams } from 'ode-explorer/lib';
2
+ export declare const explorerConfig: AppParams;
@@ -0,0 +1,3 @@
1
+ export * from './constants';
2
+ export * from './explorer';
3
+ export * from './workflows';
@@ -0,0 +1,19 @@
1
+ export declare const workflows: {
2
+ view: string;
3
+ list: string;
4
+ create: string;
5
+ publish: string;
6
+ print: string;
7
+ generate: string;
8
+ };
9
+ export declare const rights: {
10
+ read: {
11
+ right: string;
12
+ };
13
+ contrib: {
14
+ right: string;
15
+ };
16
+ manage: {
17
+ right: string;
18
+ };
19
+ };
@@ -0,0 +1,8 @@
1
+ import { DropdownMenuOptions } from '@edifice.io/react';
2
+ export type ActionDropdownMenuOptions = {
3
+ id: string;
4
+ visibility: boolean;
5
+ } & DropdownMenuOptions;
6
+ export declare const AppActions: ({ canPrint }: {
7
+ canPrint: boolean;
8
+ }) => false | import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const AppHeader: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ export * from './app/AppActions/AppActions';
2
+ export * from './app/AppHeader/AppHeader';
3
+ export * from './page//DeleteListModal/DeleteListModal';
4
+ export * from './page/ConfirmVisibilityModal/ConfirmVisibilityModal';
5
+ export * from './page/DeletePageModal/DeletePageModal';
6
+ export * from './page/FormPage/FormPage';
7
+ export * from './page/PageHeader/PageHeader';
8
+ export * from './page/PrintModal/PrintModal';
9
+ export * from './page/RevisionHeader/RevisionHeader';
10
+ export * from './page/RevisionModal/RevisionModal';
11
+ export * from './wiki/DropdownTreeview/DropdownTreeview';
12
+ export * from './wiki/NewPage/NewPage';
13
+ export * from './wiki/WikiEmptyScreen/WikiEmptyScreen';
@@ -0,0 +1,4 @@
1
+ import { Page } from '../../../models';
2
+ export default function ConfirmVisibilityModal({ page }: {
3
+ page: Page;
4
+ }): import('react').ReactPortal;
@@ -0,0 +1,4 @@
1
+ declare const DeleteListModal: ({ selectedPages }: {
2
+ selectedPages: string[];
3
+ }) => import('react').ReactPortal;
4
+ export default DeleteListModal;
@@ -0,0 +1 @@
1
+ export default function DeletePageModal(): import('react').ReactPortal;
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * Duplicate modal props
4
+ */
5
+ interface DuplicateModalProps {
6
+ pageId: string;
7
+ wikiId: string;
8
+ }
9
+ /**
10
+ * Duplicate modal component
11
+ * @param pageId - The id of the page to duplicate
12
+ * @param wikiId - The id of the wiki where the page is located
13
+ * @returns The duplicate modal component
14
+ */
15
+ export declare const DuplicateModal: FC<DuplicateModalProps>;
16
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Page } from '../../../models';
2
+ export declare const FormPage: ({ page }: {
3
+ page?: Page;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface MoveModalProps {
2
+ pageId: string;
3
+ wikiId: string;
4
+ }
5
+ export declare const MoveModal: ({ wikiId, pageId }: MoveModalProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Page } from '../../../models';
2
+ export declare const PageHeader: ({ page, wikiId, isPrint, }: {
3
+ page: Page;
4
+ wikiId?: string;
5
+ isPrint?: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export default function PrintModal(): import('react').ReactPortal;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Page } from '../../../models';
2
+ export declare const RevisionHeader: ({ page }: {
3
+ page: Page;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare const RevisionModal: ({ pageId }: {
2
+ pageId: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default RevisionModal;
@@ -0,0 +1,16 @@
1
+ import { Revision } from '../../../models/revision';
2
+ export declare const useRevisionModal: ({ data, selectedItems, }: {
3
+ data: Revision[] | undefined;
4
+ selectedItems: string[];
5
+ }) => {
6
+ items: string[];
7
+ openVersionsModal: boolean;
8
+ canManage: boolean;
9
+ t: import('i18next').TFunction<"wiki", undefined>;
10
+ isLastVersion: boolean;
11
+ disabledRestoreButton: boolean;
12
+ disabledVersionComparison: boolean;
13
+ formatDate: (date: import('@edifice.io/react').CoreDate, format?: string) => string;
14
+ setOpenRevisionModal: (value: boolean) => void;
15
+ restoreSelection: () => Promise<void>;
16
+ };
@@ -0,0 +1,6 @@
1
+ import { ID } from '@edifice.io/client';
2
+ export declare const DropdownTreeview: ({ selectedNodeId, onTreeItemClick, onTreeItemAction, }: {
3
+ selectedNodeId?: string | null;
4
+ onTreeItemClick: (pageId: ID) => void;
5
+ onTreeItemAction?: (pageId: ID) => void;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const NewPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantAIStep1Form: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantAIStep2Form: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantAIStep3StructureLoading: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantAIStep4StructureResult: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Hook that returns the College and Lycee levels tree:
3
+ * - A level has an array of Subjects,
4
+ * - A subject has an array of Sequences
5
+ */
6
+ export declare const useLevels: () => {
7
+ collegeLevels: {
8
+ value: string;
9
+ subjects: {
10
+ value: string;
11
+ image: string;
12
+ sequences: string[];
13
+ }[];
14
+ }[];
15
+ lyceeLevels: {
16
+ value: string;
17
+ subjects: {
18
+ value: string;
19
+ image: string;
20
+ sequences: string[];
21
+ }[];
22
+ }[];
23
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Hooks that returns the subjects associated to the level.
3
+ * @param level the level to get the Subjects from
4
+ * @returns an Object with a subjects property containing the subjects associated to the level
5
+ */
6
+ export declare const useSubjects: (level: string) => {
7
+ subjects: {
8
+ value: string;
9
+ image: string;
10
+ sequences: string[];
11
+ }[];
12
+ };
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantAICard: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantImportPollCard: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantLibraryCard: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantManualCreationCard: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantLeftPane: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PagesAssistantRoot: () => import("react/jsx-runtime").JSX.Element;