@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.
- package/lib/BAGVG3AX.js +33 -0
- package/lib/DeleteListModal.js +36 -0
- package/lib/KZB72KQG.js +42 -0
- package/lib/NITRNJ62.js +9215 -0
- package/lib/PrintModal.js +74 -0
- package/lib/components/AIButton/AIButton.d.ts +6 -0
- package/lib/components/ButtonGroup/index.d.ts +6 -0
- package/lib/components/CancelModal/index.d.ts +6 -0
- package/lib/components/ResourceModal/index.d.ts +2 -0
- package/lib/components/ShareModal/index.d.ts +2 -0
- package/lib/components/SimpleRadioCard/SimpleRadioCard.d.ts +37 -0
- package/lib/components/Toggle/index.d.ts +2 -0
- package/lib/components/WikiApp/components/WikiApp.d.ts +15 -0
- package/lib/components/WikiApp/providers/WikiAppProvider.context.d.ts +7 -0
- package/lib/components/WikiApp/providers/WikiAppProvider.d.ts +9 -0
- package/lib/components/WikiApp/providers/WikiAppProvider.hook.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/config/constants.d.ts +7 -0
- package/lib/config/explorer.d.ts +2 -0
- package/lib/config/index.d.ts +3 -0
- package/lib/config/workflows.d.ts +19 -0
- package/lib/features/app/AppActions/AppActions.d.ts +8 -0
- package/lib/features/app/AppActions/AppActions.test.d.ts +1 -0
- package/lib/features/app/AppHeader/AppHeader.d.ts +1 -0
- package/lib/features/app/AppHeader/AppHeader.test.d.ts +1 -0
- package/lib/features/index.d.ts +13 -0
- package/lib/features/page/ConfirmVisibilityModal/ConfirmVisibilityModal.d.ts +4 -0
- package/lib/features/page/DeleteListModal/DeleteListModal.d.ts +4 -0
- package/lib/features/page/DeleteListModal/DeleteListModal.test.d.ts +1 -0
- package/lib/features/page/DeletePageModal/DeletePageModal.d.ts +1 -0
- package/lib/features/page/DuplicateModal/DuplicateModal.d.ts +16 -0
- package/lib/features/page/DuplicateModal/DuplicateModal.test.d.ts +1 -0
- package/lib/features/page/FormPage/FormPage.d.ts +4 -0
- package/lib/features/page/MoveModal/MoveModal.d.ts +6 -0
- package/lib/features/page/MoveModal/MoveModal.test.d.ts +1 -0
- package/lib/features/page/PageHeader/PageHeader.d.ts +6 -0
- package/lib/features/page/PageHeader/PageHeader.test.d.ts +1 -0
- package/lib/features/page/PrintModal/PrintModal.d.ts +1 -0
- package/lib/features/page/PrintModal/PrintModal.test.d.ts +1 -0
- package/lib/features/page/RevisionHeader/RevisionHeader.d.ts +4 -0
- package/lib/features/page/RevisionHeader/RevisionHeader.test.d.ts +1 -0
- package/lib/features/page/RevisionModal/RevisionModal.d.ts +4 -0
- package/lib/features/page/RevisionModal/RevisionModal.test.d.ts +1 -0
- package/lib/features/page/RevisionModal/useRevisionModal.d.ts +16 -0
- package/lib/features/wiki/DropdownTreeview/DropdownTreeview.d.ts +6 -0
- package/lib/features/wiki/NewPage/NewPage.d.ts +1 -0
- package/lib/features/wiki/NewPage/NewPage.test.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep1Form.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep2Form.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep3StructureLoading.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep4StructureResult.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/useLevels.d.ts +23 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/useSubjects.d.ts +12 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantAICard.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantImportPollCard.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantLibraryCard.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantManualCreationCard.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantLeftPane.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantRoot.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/animations/loading.json.d.ts +2290 -0
- package/lib/features/wiki/WikiEmptyScreen/WikiEmptyScreen.d.ts +2 -0
- package/lib/features/wiki/WikiEmptyScreen/WikiEmptyScreen.test.d.ts +1 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/useCancelPage.d.ts +7 -0
- package/lib/hooks/useCheckablePrint.d.ts +11 -0
- package/lib/hooks/useCheckableTable.d.ts +9 -0
- package/lib/hooks/useFeedData.d.ts +19 -0
- package/lib/hooks/useFilterCurrentPageFromTree.d.ts +8 -0
- package/lib/hooks/useFilterVisiblePage.d.ts +2 -0
- package/lib/hooks/useFilteredWikis.d.ts +10 -0
- package/lib/hooks/useFindTreeItemById.d.ts +11 -0
- package/lib/hooks/useFormPage/useFormPage.d.ts +23 -0
- package/lib/hooks/useFormPage/useFormPage.test.d.ts +1 -0
- package/lib/hooks/useIsAuthorOrManager.d.ts +8 -0
- package/lib/hooks/useIsOnlyRead.d.ts +1 -0
- package/lib/hooks/useListPage/useListPage.d.ts +5 -0
- package/lib/hooks/useListPage/useListPage.test.d.ts +1 -0
- package/lib/hooks/useMenu.d.ts +11 -0
- package/lib/hooks/useRedirectDefaultPage.d.ts +1 -0
- package/lib/hooks/useReorganizeTree.d.ts +16 -0
- package/lib/hooks/useRevision/useRevision.d.ts +54 -0
- package/lib/hooks/useRevision/useRevision.test.d.ts +1 -0
- package/lib/hooks/useUpdatePages.d.ts +4 -0
- package/lib/i18n.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -0
- package/lib/index2.js +12448 -0
- package/lib/index3.js +5 -0
- package/lib/index4.js +5 -0
- package/lib/main.d.ts +0 -0
- package/lib/mocks/handlers.d.ts +4 -0
- package/lib/mocks/index.d.ts +413 -0
- package/lib/mocks/polyfills.d.ts +5 -0
- package/lib/mocks/renderWithRouter.d.ts +2 -0
- package/lib/mocks/server.d.ts +1 -0
- package/lib/mocks/setup.d.ts +11 -0
- package/lib/models/comment.d.ts +20 -0
- package/lib/models/date.d.ts +12 -0
- package/lib/models/index.d.ts +5 -0
- package/lib/models/page.d.ts +91 -0
- package/lib/models/payload.d.ts +28 -0
- package/lib/models/revision.d.ts +12 -0
- package/lib/models/wiki.d.ts +68 -0
- package/lib/providers/index.d.ts +9 -0
- package/lib/routes/errors/index.d.ts +3 -0
- package/lib/routes/errors/not-found.d.ts +1 -0
- package/lib/routes/index.d.ts +6 -0
- package/lib/routes/old-format/index.d.ts +36 -0
- package/lib/routes/page/create.d.ts +4 -0
- package/lib/routes/page/edit.d.ts +11 -0
- package/lib/routes/page/index.d.ts +37 -0
- package/lib/routes/page/list/list.d.ts +46 -0
- package/lib/routes/page/list/list.test.d.ts +1 -0
- package/lib/routes/page/pageEditAction.d.ts +4 -0
- package/lib/routes/print/index.d.ts +36 -0
- package/lib/routes/root/index.d.ts +4 -0
- package/lib/routes/wiki/index.d.ts +45 -0
- package/lib/routes/wiki/index.test.d.ts +1 -0
- package/lib/services/api/assistant/assistant.service.d.ts +9 -0
- package/lib/services/api/assistant/assistant.types.d.ts +19 -0
- package/lib/services/api/index.d.ts +261 -0
- package/lib/services/api/index.test.d.ts +1 -0
- package/lib/services/api/poll/poll.service.d.ts +17 -0
- package/lib/services/api/poll/poll.types.d.ts +27 -0
- package/lib/services/index.d.ts +12 -0
- package/lib/services/queries/actions.d.ts +11 -0
- package/lib/services/queries/comment.d.ts +20 -0
- package/lib/services/queries/index.d.ts +4 -0
- package/lib/services/queries/page/page.d.ts +264 -0
- package/lib/services/queries/page/page.test.d.ts +1 -0
- package/lib/services/queries/poll/poll.query.d.ts +9 -0
- package/lib/services/queries/poll/poll.test.d.ts +1 -0
- package/lib/services/queries/wiki/wiki.d.ts +235 -0
- package/lib/services/queries/wiki/wiki.test.d.ts +1 -0
- package/lib/services/resource/index.d.ts +47 -0
- package/lib/store/assistant/index.d.ts +7 -0
- package/lib/store/index.d.ts +3 -0
- package/lib/store/rights/index.d.ts +11 -0
- package/lib/store/toast/index.d.ts +13 -0
- package/lib/store/treeview/index.d.ts +12 -0
- package/lib/store/wiki/index.d.ts +55 -0
- package/lib/style.css +1 -0
- package/lib/utils/dtoToPage.d.ts +33 -0
- package/lib/utils/dtoToWiki.d.ts +43 -0
- package/lib/utils/dtoToWikiPages.d.ts +33 -0
- package/lib/utils/findDefaultPage.d.ts +5 -0
- package/lib/utils/findDefaultPage.test.d.ts +1 -0
- package/lib/utils/findLastPage.d.ts +4 -0
- package/lib/utils/findPage.d.ts +2 -0
- package/lib/utils/findPage.test.d.ts +1 -0
- package/lib/utils/getChildrenRecursively.d.ts +19 -0
- package/lib/utils/getFormValue.d.ts +1 -0
- package/lib/utils/sortPagesByDate.d.ts +2 -0
- package/lib/utils/sortPagesByPosition.d.ts +2 -0
- package/package.json +90 -0
package/lib/BAGVG3AX.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./NITRNJ62.js";
|
|
2
|
+
import { g as d, d as f, e } from "./index2.js";
|
|
3
|
+
var h = (t) => {
|
|
4
|
+
const [r, o] = c({
|
|
5
|
+
prefix: "TanstackQueryDevtools"
|
|
6
|
+
}), n = d(), s = f(() => {
|
|
7
|
+
const a = t.theme || r.theme_preference || l;
|
|
8
|
+
return a !== "system" ? a : n();
|
|
9
|
+
});
|
|
10
|
+
return e(i.Provider, {
|
|
11
|
+
value: t,
|
|
12
|
+
get children() {
|
|
13
|
+
return e(m, {
|
|
14
|
+
localStore: r,
|
|
15
|
+
setLocalStore: o,
|
|
16
|
+
get children() {
|
|
17
|
+
return e(u.Provider, {
|
|
18
|
+
value: s,
|
|
19
|
+
get children() {
|
|
20
|
+
return e(v, {
|
|
21
|
+
localStore: r,
|
|
22
|
+
setLocalStore: o
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}, C = h;
|
|
31
|
+
export {
|
|
32
|
+
C as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as i, Alert as c, Button as m } from "@edifice.io/react";
|
|
3
|
+
import { createPortal as w } from "react-dom";
|
|
4
|
+
import { useTranslation as k } from "react-i18next";
|
|
5
|
+
import { useParams as b, useFetcher as y } from "react-router-dom";
|
|
6
|
+
import "@edifice.io/client";
|
|
7
|
+
import "@tanstack/react-query";
|
|
8
|
+
import { u as M, a as C, b as S, c as D } from "./index2.js";
|
|
9
|
+
import "react";
|
|
10
|
+
const R = ({
|
|
11
|
+
selectedPages: d
|
|
12
|
+
}) => {
|
|
13
|
+
var r;
|
|
14
|
+
const h = M(), p = C(), g = b(), {
|
|
15
|
+
t: e
|
|
16
|
+
} = k("wiki"), {
|
|
17
|
+
setOpenDeleteModal: a
|
|
18
|
+
} = S(), u = y(), f = p.manager, {
|
|
19
|
+
data: o
|
|
20
|
+
} = D(g.wikiId), l = (r = o == null ? void 0 : o.pages) == null ? void 0 : r.some((n) => d.includes(n._id) && n.children && n.children.length > 0);
|
|
21
|
+
return /* @__PURE__ */ w(/* @__PURE__ */ s(i, { id: "delete-pages-list", isOpen: h, onModalClose: () => a(!1), children: [
|
|
22
|
+
/* @__PURE__ */ t(i.Header, { onModalClose: () => a(!1), children: e(l ? "wiki.modal.delete.pages.header" : "wiki.modal.delete.page.header") }),
|
|
23
|
+
/* @__PURE__ */ t(i.Subtitle, { children: e(l ? "wiki.modal.delete.pages.subtitle" : "wiki.modal.delete.page.subtitle") }),
|
|
24
|
+
/* @__PURE__ */ s(i.Body, { children: [
|
|
25
|
+
!f && /* @__PURE__ */ t(c, { type: "warning", children: e("wiki.modal.delete.listpage.warning") }),
|
|
26
|
+
l && /* @__PURE__ */ t(c, { type: "warning", children: e("wiki.modal.delete.listpages.warning") })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ s(i.Footer, { children: [
|
|
29
|
+
/* @__PURE__ */ t(m, { color: "tertiary", variant: "ghost", onClick: () => a(!1), "data-testid": "cancel-button", children: e("wiki.modal.delete.page.cancel") }),
|
|
30
|
+
/* @__PURE__ */ t(u.Form, { action: "destroy", method: "post", onSubmit: () => a(!1), children: /* @__PURE__ */ t(m, { type: "submit", color: "danger", variant: "filled", name: "intent", value: JSON.stringify(d), "data-testid": "delete-button", children: e(l ? "wiki.modal.delete.pages.btn" : "wiki.modal.delete.page.btn") }) })
|
|
31
|
+
] })
|
|
32
|
+
] }), document.getElementById("portal"));
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
R as default
|
|
36
|
+
};
|
package/lib/KZB72KQG.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as d, Q as P } from "./NITRNJ62.js";
|
|
2
|
+
import { g as h, d as v, e } from "./index2.js";
|
|
3
|
+
var C = (r) => {
|
|
4
|
+
const [t, o] = s({
|
|
5
|
+
prefix: "TanstackQueryDevtools"
|
|
6
|
+
}), a = h(), l = v(() => {
|
|
7
|
+
const n = r.theme || t.theme_preference || c;
|
|
8
|
+
return n !== "system" ? n : a();
|
|
9
|
+
});
|
|
10
|
+
return e(P.Provider, {
|
|
11
|
+
value: r,
|
|
12
|
+
get children() {
|
|
13
|
+
return e(u, {
|
|
14
|
+
disabled: !0,
|
|
15
|
+
localStore: t,
|
|
16
|
+
setLocalStore: o,
|
|
17
|
+
get children() {
|
|
18
|
+
return e(i.Provider, {
|
|
19
|
+
value: l,
|
|
20
|
+
get children() {
|
|
21
|
+
return e(m, {
|
|
22
|
+
get children() {
|
|
23
|
+
return e(d, {
|
|
24
|
+
localStore: t,
|
|
25
|
+
setLocalStore: o,
|
|
26
|
+
get onClose() {
|
|
27
|
+
return r.onClose;
|
|
28
|
+
},
|
|
29
|
+
showPanelViewOnly: !0
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}, E = C;
|
|
40
|
+
export {
|
|
41
|
+
E as default
|
|
42
|
+
};
|