@edifice.io/wiki 3.5.15 → 3.6.0-develop.20260603155049

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 CHANGED
@@ -1,9 +1,9 @@
1
- import { c, T as l, a as m, b as u, D as v, Q as i } from "./NITRNJ62.js";
2
- import { u as h, l as d, h as e } from "./index2.js";
3
- var f = (t) => {
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
4
  const [r, o] = c({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), n = h(), s = d(() => {
6
+ }), n = d(), s = f(() => {
7
7
  const a = t.theme || r.theme_preference || l;
8
8
  return a !== "system" ? a : n();
9
9
  });
@@ -27,7 +27,7 @@ var f = (t) => {
27
27
  });
28
28
  }
29
29
  });
30
- }, P = f;
30
+ }, C = h;
31
31
  export {
32
- P as default
32
+ C as default
33
33
  };
@@ -5,7 +5,7 @@ import { useTranslation as k } from "react-i18next";
5
5
  import { useParams as b, useFetcher as y } from "react-router-dom";
6
6
  import "@edifice.io/client";
7
7
  import "@tanstack/react-query";
8
- import { Z as M, a2 as C, a3 as S, Y as D } from "./index2.js";
8
+ import { u as M, a as C, b as S, c as D } from "./index2.js";
9
9
  import "react";
10
10
  const R = ({
11
11
  selectedPages: d
package/lib/KZB72KQG.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, a as u, b as i, P as m, C as P, Q as d } from "./NITRNJ62.js";
2
- import { u as h, l as v, h as e } from "./index2.js";
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
3
  var C = (r) => {
4
4
  const [t, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -7,7 +7,7 @@ var C = (r) => {
7
7
  const n = r.theme || t.theme_preference || c;
8
8
  return n !== "system" ? n : a();
9
9
  });
10
- return e(d.Provider, {
10
+ return e(P.Provider, {
11
11
  value: r,
12
12
  get children() {
13
13
  return e(u, {
@@ -20,7 +20,7 @@ var C = (r) => {
20
20
  get children() {
21
21
  return e(m, {
22
22
  get children() {
23
- return e(P, {
23
+ return e(d, {
24
24
  localStore: t,
25
25
  setLocalStore: o,
26
26
  get onClose() {
package/lib/NITRNJ62.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var xs = Object.defineProperty;
2
2
  var $s = (e, t, n) => t in e ? xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Re = (e, t, n) => $s(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { o as B, k as H, l as P, h as m, j as $e, H as ft, P as No, A as ve, S as K, z as k, m as U, e as F, f as Cs, q as ur, X as Ce, G as V, L as Qn, C as Yn, E as gt, K as T, R as _, y as Ss, V as Ut, g as _t, p as qe, d as ks, x as Rt, t as Bt, v as Es, w as Ds, s as En, F as As, T as Ht, $ as Ho, O as Ms, B as W, n as Vr, J as Ts, I as Fs, U as cr, a1 as Is, b as Os, Q as Ls, M as Hn, a as Ps, r as qs, N as ie, D as _s, i as Rs } from "./index2.js";
4
+ import { f as B, h as H, d as P, e as m, i as $e, o as ft, P as No, m as ve, S as K, j as k, k as U, l as F, n as Cs, p as ur, q as Ce, r as V, s as Qn, t as Yn, v as gt, w as T, x as _, y as Ss, z as Ut, A as _t, B as qe, C as ks, D as Rt, E as Bt, F as Es, G as Ds, H as En, I as As, J as Ht, $ as Ho, K as Ms, L as W, M as Vr, N as Ts, O as Fs, Q as cr, R as Is, T as Os, U as Ls, V as Hn, W as Ps, X as qs, Y as ie, Z as _s, _ as Rs } from "./index2.js";
5
5
  var zs = (e) => e != null, Ks = (e) => e.filter(zs);
6
6
  function Bs(e) {
7
7
  return (...t) => {
@@ -9206,10 +9206,10 @@ ur(["click", "mousedown", "keydown", "input"]);
9206
9206
  export {
9207
9207
  bs as C,
9208
9208
  g0 as D,
9209
- h0 as P,
9209
+ f0 as P,
9210
9210
  Js as Q,
9211
9211
  d0 as T,
9212
- f0 as a,
9213
- ea as b,
9212
+ ea as a,
9213
+ h0 as b,
9214
9214
  c0 as c
9215
9215
  };
package/lib/PrintModal.js CHANGED
@@ -4,7 +4,7 @@ import { createPortal as M } from "react-dom";
4
4
  import { useTranslation as y } from "react-i18next";
5
5
  import { useState as h } from "react";
6
6
  import { useParams as I } from "react-router-dom";
7
- import { a0 as W, a3 as b, c as $, _ as G } from "./index2.js";
7
+ import { a0 as W, b, a1 as $, a2 as G } from "./index2.js";
8
8
  import "@edifice.io/client";
9
9
  import "@tanstack/react-query";
10
10
  const A = () => {
@@ -40,7 +40,7 @@ const A = () => {
40
40
  pageId: n
41
41
  };
42
42
  };
43
- function L() {
43
+ function Q() {
44
44
  const {
45
45
  t: e
46
46
  } = y("wiki"), l = G(), {
@@ -70,5 +70,5 @@ function L() {
70
70
  ] }) }), document.getElementById("portal"));
71
71
  }
72
72
  export {
73
- L as default
73
+ Q as default
74
74
  };
@@ -1,16 +1,36 @@
1
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
- }
2
+ import { ActionDropdownMenuOptions } from '../../features';
3
+ /**
4
+ * Wiki App Component Props
5
+ */
9
6
  export interface WikiAppProps {
7
+ /** Wiki Id to retrieve wiki information and pages */
10
8
  wikiId: string;
9
+ /**
10
+ * Show or not the Wiki application header.
11
+ * When Wiki is integrated in an app (for example Communities) then we can hide the Wiki app header.
12
+ */
11
13
  header?: boolean;
12
- actions?: WikiAction[];
14
+ /** Additional Actions to show in the Wiki Page dropdown menu */
15
+ additionalActions?: AdditionalActions;
16
+ /** Additional CSS classes for styling purposes, can be helpful to fix some visual integration issues inside another app. */
13
17
  className?: string;
14
18
  }
19
+ /**
20
+ * Additional Actions to show in the Wiki Page dropdown menu.
21
+ * Those actions can be displayed in a specific Dropdown Menu Group if the dropdownMenuGroupLabel is set.
22
+ */
23
+ export interface AdditionalActions {
24
+ /** Additional Actions */
25
+ actions: ActionDropdownMenuOptions[];
26
+ /** Dropdown Menu Group Label */
27
+ dropdownMenuGroupLabel?: string;
28
+ }
29
+ /**
30
+ * Wiki App component that can be called to integrate Wiki App inside another app.
31
+ * For example "Cours à la Une" in Communities.
32
+ *
33
+ * See WikiAppProps to know what props can be passed to the component.
34
+ */
15
35
  declare const WikiApp: React.FC<WikiAppProps>;
16
36
  export default WikiApp;
@@ -1,7 +1,7 @@
1
- import { WikiAction } from '../WikiApp';
1
+ import { AdditionalActions } from '../WikiApp';
2
2
  export interface WikiAppContextProps {
3
3
  wikiId?: string;
4
4
  header?: boolean;
5
- actions?: WikiAction[];
5
+ additionalActions?: AdditionalActions;
6
6
  }
7
7
  export declare const WikiAppContext: import('react').Context<WikiAppContextProps | null>;
@@ -1,9 +1,9 @@
1
- import { WikiAction } from '../WikiApp';
1
+ import { AdditionalActions } from '../WikiApp';
2
2
  export interface WikiAppProviderProps {
3
3
  wikiId?: string;
4
4
  header?: boolean;
5
- actions?: WikiAction[];
5
+ additionalActions?: AdditionalActions;
6
6
  children: React.ReactNode;
7
7
  }
8
- export declare function WikiAppProvider({ wikiId, header, actions, children, }: WikiAppProviderProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function WikiAppProvider({ wikiId, header, additionalActions, children, }: WikiAppProviderProps): import("react/jsx-runtime").JSX.Element;
9
9
  export default WikiAppProvider;
@@ -2,6 +2,7 @@ import { DropdownMenuOptions } from '@edifice.io/react';
2
2
  export type ActionDropdownMenuOptions = {
3
3
  id: string;
4
4
  visibility: boolean;
5
+ className?: string;
5
6
  } & DropdownMenuOptions;
6
7
  export declare const AppActions: ({ canPrint }: {
7
8
  canPrint: boolean;
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export { default as WikiApp } from './components/WikiApp/WikiApp';
2
- export type { WikiAppProps, WikiAction } from './components/WikiApp/WikiApp';
2
+ export type { WikiAppProps, AdditionalActions, } from './components/WikiApp/WikiApp';
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { W as o } from "./index2.js";
1
+ import { a3 as i } from "./index2.js";
2
2
  export {
3
- o as WikiApp
3
+ i as WikiApp
4
4
  };