@edifice.io/react 2.6.0-develop-pedago.20260721150256 → 2.6.0-develop-integration.20260722215838
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/dist/components/Badge/Badge.d.ts +13 -24
- package/dist/components/Badge/Badge.js +6 -6
- package/dist/components/Layout/Layout.js +10 -3
- package/dist/components/Layout/components/HeaderNotificationsOverlay.d.ts +5 -0
- package/dist/components/Layout/components/HeaderNotificationsOverlay.js +18 -0
- package/dist/components/PageLayout/store/overlayStore.js +1 -1
- package/dist/homepage.js +12 -10
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +1 -2
- package/dist/hooks/useNextcloudSearch/index.d.ts +1 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +9 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +48 -0
- package/dist/hooks/useUiOverride/index.d.ts +1 -0
- package/dist/hooks/useUiOverride/useUiOverride.d.ts +5 -0
- package/dist/hooks/useUiOverride/useUiOverride.js +13 -0
- package/dist/index.js +154 -144
- package/dist/modules/homepage/components/Header/Header.d.ts +3 -1
- package/dist/modules/homepage/components/Header/Header.js +3 -2
- package/dist/modules/homepage/components/MessageFlashList/index.d.ts +1 -0
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +25 -0
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +105 -0
- package/dist/modules/multimedia/FileCard/index.d.ts +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +20 -7
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +35 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +2 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +24 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +93 -0
- package/dist/modules/multimedia/Nextcloud/index.d.ts +2 -0
- package/dist/modules/multimedia/index.d.ts +1 -0
- package/dist/multimedia.js +16 -12
- package/dist/providers/MockedProvider/MockedProvider.js +4 -3
- package/dist/utilities/create-selectors/create-selectors.d.ts +37 -0
- package/dist/utilities/create-selectors/index.d.ts +1 -0
- package/dist/utilities/index.d.ts +1 -0
- package/package.json +8 -7
- package/dist/utilities/create-selectors/createSelectors.d.ts +0 -10
- /package/dist/utilities/create-selectors/{createSelectors.js → create-selectors.js} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { odeServices } from "@edifice.io/client";
|
|
3
|
+
import { useMediaLibraryContext } from "../MediaLibraryContext.js";
|
|
4
|
+
import useUser from "../../../../hooks/useUser/useUser.js";
|
|
5
|
+
import Nextcloud$1 from "../../Nextcloud/Nextcloud.js";
|
|
6
|
+
const Nextcloud = () => {
|
|
7
|
+
const {
|
|
8
|
+
type,
|
|
9
|
+
setResultCounter,
|
|
10
|
+
setResult,
|
|
11
|
+
setPreSuccess,
|
|
12
|
+
multiple
|
|
13
|
+
} = useMediaLibraryContext(), {
|
|
14
|
+
user
|
|
15
|
+
} = useUser();
|
|
16
|
+
function getDocumentRoleFilter() {
|
|
17
|
+
switch (type) {
|
|
18
|
+
case "image":
|
|
19
|
+
return "img";
|
|
20
|
+
case "audio":
|
|
21
|
+
return "audio";
|
|
22
|
+
case "video":
|
|
23
|
+
return "video";
|
|
24
|
+
default:
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function handleSelect(result) {
|
|
29
|
+
setResultCounter(result.length), result.length ? (setResult(result), setPreSuccess(() => () => user != null && user.userId ? odeServices.nextcloud().copyDocumentToWorkspace(user.userId, result.map((doc) => doc.path)) : Promise.resolve([]))) : (setResult(), setPreSuccess(void 0));
|
|
30
|
+
}
|
|
31
|
+
return /* @__PURE__ */ jsx(Nextcloud$1, { roles: getDocumentRoleFilter(), onSelect: handleSelect, multiple, className: "border rounded overflow-y-auto" });
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
Nextcloud
|
|
35
|
+
};
|
|
@@ -4,6 +4,7 @@ export declare const InnerTabs: {
|
|
|
4
4
|
Upload: () => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
ExternalLink: ({ link, multiNodeSelected, }: import('./ExternalLink').ExternalLinkTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
Workspace: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Nextcloud: () => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
InternalLink: ({ target, resourceId, appPrefix, }: import('./InternalLink').InternalLinkTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
Iframe: () => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
VideoEmbedder: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@ import { Audio } from "./Audio.js";
|
|
|
2
2
|
import { ExternalLink } from "./ExternalLink.js";
|
|
3
3
|
import { Iframe } from "./Iframe.js";
|
|
4
4
|
import { InternalLink } from "./InternalLink.js";
|
|
5
|
+
import { Nextcloud } from "./Nextcloud.js";
|
|
5
6
|
import { Upload } from "./Upload.js";
|
|
6
7
|
import { Video } from "./Video.js";
|
|
7
8
|
import { VideoEmbedder } from "./VideoEmbedder.js";
|
|
@@ -12,6 +13,7 @@ const InnerTabs = {
|
|
|
12
13
|
Upload,
|
|
13
14
|
ExternalLink,
|
|
14
15
|
Workspace,
|
|
16
|
+
Nextcloud,
|
|
15
17
|
InternalLink,
|
|
16
18
|
Iframe,
|
|
17
19
|
VideoEmbedder
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NextcloudDocument, Role } from '@edifice.io/client';
|
|
2
|
+
/**
|
|
3
|
+
* Nextcloud component properties
|
|
4
|
+
*/
|
|
5
|
+
export interface NextcloudProps {
|
|
6
|
+
/**
|
|
7
|
+
* Notify parent when media elements are successfully selected.
|
|
8
|
+
*/
|
|
9
|
+
onSelect: (result: NextcloudDocument[]) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Boolean to know if we can select 1 or many files.
|
|
12
|
+
*/
|
|
13
|
+
multiple?: boolean | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Document roles to filter files by; null (default) shows all roles.
|
|
16
|
+
*/
|
|
17
|
+
roles?: Role | Role[] | null;
|
|
18
|
+
/**
|
|
19
|
+
* Optional class for styling purpose
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const Nextcloud: ({ onSelect, multiple, roles, className, }: NextcloudProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default Nextcloud;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useCallback, useEffect, useMemo } from "react";
|
|
3
|
+
import { DocumentHelper } from "@edifice.io/client";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
import { findNodeById } from "../../../components/Tree/utilities/tree.js";
|
|
7
|
+
import SvgIconSortAscendingLetters from "../../icons/components/IconSortAscendingLetters.js";
|
|
8
|
+
import SvgIconSortDescendingLetters from "../../icons/components/IconSortDescendingLetters.js";
|
|
9
|
+
import SvgIconSortTime from "../../icons/components/IconSortTime.js";
|
|
10
|
+
import illuNoContentInFolder from "@edifice.io/bootstrap/dist/images/emptyscreen/illu-no-content-in-folder.svg";
|
|
11
|
+
import useUser from "../../../hooks/useUser/useUser.js";
|
|
12
|
+
import useNextcloudSearch from "../../../hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
13
|
+
import { Grid } from "../../../components/Grid/Grid.js";
|
|
14
|
+
import Tree from "../../../components/Tree/components/Tree.js";
|
|
15
|
+
import SearchBar from "../../../components/SearchBar/SearchBar.js";
|
|
16
|
+
import Dropdown from "../../../components/Dropdown/Dropdown.js";
|
|
17
|
+
import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
18
|
+
import NextcloudFileCard from "../FileCard/NextcloudFileCard.js";
|
|
19
|
+
import EmptyScreen from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
20
|
+
const ROOT_ID = "root";
|
|
21
|
+
function compare(a, b) {
|
|
22
|
+
return a ? b ? a.localeCompare(b) : 1 : -1;
|
|
23
|
+
}
|
|
24
|
+
const Nextcloud = ({
|
|
25
|
+
onSelect,
|
|
26
|
+
multiple = !0,
|
|
27
|
+
roles,
|
|
28
|
+
className
|
|
29
|
+
}) => {
|
|
30
|
+
const {
|
|
31
|
+
t
|
|
32
|
+
} = useTranslation(), {
|
|
33
|
+
user
|
|
34
|
+
} = useUser(), {
|
|
35
|
+
root,
|
|
36
|
+
loadContent
|
|
37
|
+
} = useNextcloudSearch(ROOT_ID, t("nextcloud"), user == null ? void 0 : user.userId), [currentNodeId, setCurrentNodeId] = useState(ROOT_ID), treeRoot = root, currentNode = findNodeById(treeRoot, currentNodeId) ?? root, [searchTerm, setSearchTerm] = useState(null), [sortOrder, setSortOrder] = useState(["modified", "desc"]), [selectedDocuments, setSelectedDocuments] = useState([]), handleTreeItemChange = useCallback((nodeId) => {
|
|
38
|
+
setCurrentNodeId(nodeId), loadContent(nodeId);
|
|
39
|
+
}, [loadContent]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
loadContent(ROOT_ID);
|
|
42
|
+
}, [loadContent]);
|
|
43
|
+
const documents = useMemo(() => {
|
|
44
|
+
if (!currentNode.files) return;
|
|
45
|
+
let list = [].concat(currentNode.files);
|
|
46
|
+
searchTerm && (list = list.filter((f) => f.name.indexOf(searchTerm) >= 0)), roles && (list = list.filter((f) => {
|
|
47
|
+
const role = DocumentHelper.role(f.contentType, !1);
|
|
48
|
+
return typeof roles == "string" ? roles === role : Array.isArray(roles) ? roles.includes(role) : !1;
|
|
49
|
+
}));
|
|
50
|
+
const sortFunction = sortOrder[0] === "name" ? sortOrder[1] === "asc" ? (a, b) => compare(a.name, b.name) : (a, b) => compare(b.name, a.name) : (a, b) => compare(b.lastModified, a.lastModified);
|
|
51
|
+
return list.sort(sortFunction);
|
|
52
|
+
}, [root, currentNode, searchTerm, sortOrder, roles]), selectedPaths = useMemo(() => new Set(selectedDocuments.map((d) => d.path)), [selectedDocuments]), handleSearchChange = useCallback((e) => {
|
|
53
|
+
setSearchTerm(e.target.value);
|
|
54
|
+
}, [setSearchTerm]);
|
|
55
|
+
function getSortOrderLabel() {
|
|
56
|
+
return sortOrder[0] === "name" ? sortOrder[1] === "asc" ? t("sort.order.alpha.asc") : t("sort.order.alpha.desc") : t("sort.order.modify.desc");
|
|
57
|
+
}
|
|
58
|
+
function handleSelectDoc(doc) {
|
|
59
|
+
let currentDocuments = [...selectedDocuments];
|
|
60
|
+
multiple ? currentDocuments.includes(doc) ? currentDocuments = currentDocuments.filter((selectedDocument) => selectedDocument.path !== doc.path) : currentDocuments = [...currentDocuments, doc] : currentDocuments = [doc], setSelectedDocuments(currentDocuments), onSelect(currentDocuments);
|
|
61
|
+
}
|
|
62
|
+
const nextcloud = clsx("workspace flex-grow-1 gap-0", className);
|
|
63
|
+
return /* @__PURE__ */ jsxs(Grid, { className: nextcloud, children: [
|
|
64
|
+
/* @__PURE__ */ jsx(Grid.Col, { sm: "12", md: "3", xl: "4", className: "workspace-folders p-12 pt-0 gap-12", children: /* @__PURE__ */ jsx("div", { style: {
|
|
65
|
+
position: "sticky",
|
|
66
|
+
top: 0,
|
|
67
|
+
paddingTop: "1.2rem"
|
|
68
|
+
}, children: /* @__PURE__ */ jsx(Tree, { nodes: treeRoot, selectedNodeId: currentNodeId, showIcon: !0, onTreeItemClick: handleTreeItemChange, onTreeItemUnfold: handleTreeItemChange }) }) }),
|
|
69
|
+
/* @__PURE__ */ jsx(Grid.Col, { sm: "12", md: "5", xl: "8", children: /* @__PURE__ */ jsxs(Grid, { className: "flex-grow-1 gap-0", children: [
|
|
70
|
+
/* @__PURE__ */ jsxs(Grid.Col, { sm: "4", md: "8", xl: "12", children: [
|
|
71
|
+
/* @__PURE__ */ jsx("div", { className: "workspace-search px-16 py-8 ", children: /* @__PURE__ */ jsx(SearchBar, { isVariant: !0, className: "gap-16", onChange: handleSearchChange }) }),
|
|
72
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center justify-content-end px-8 py-4", children: [
|
|
73
|
+
/* @__PURE__ */ jsx("small", { className: "text-muted", children: t("workspace.search.order") }),
|
|
74
|
+
/* @__PURE__ */ jsxs(Dropdown, { children: [
|
|
75
|
+
/* @__PURE__ */ jsx(Dropdown.Trigger, { size: "sm", label: getSortOrderLabel(), variant: "ghost" }),
|
|
76
|
+
/* @__PURE__ */ jsxs(Dropdown.Menu, { children: [
|
|
77
|
+
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(SvgIconSortTime, {}), onClick: () => setSortOrder(["modified", "desc"]), children: t("sort.order.modify.desc") }),
|
|
78
|
+
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(SvgIconSortAscendingLetters, {}), onClick: () => setSortOrder(["name", "asc"]), children: t("sort.order.alpha.asc") }),
|
|
79
|
+
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(SvgIconSortDescendingLetters, {}), onClick: () => setSortOrder(["name", "desc"]), children: t("sort.order.alpha.desc") })
|
|
80
|
+
] })
|
|
81
|
+
] })
|
|
82
|
+
] })
|
|
83
|
+
] }),
|
|
84
|
+
/* @__PURE__ */ jsx(Grid.Col, { sm: "4", md: "8", xl: "12", className: "p-8 gap-8", children: documents ? documents.length !== 0 ? /* @__PURE__ */ jsx("div", { className: "grid grid-workspace", children: documents.map((doc) => {
|
|
85
|
+
const isSelected = selectedPaths.has(doc.path);
|
|
86
|
+
return /* @__PURE__ */ jsx(NextcloudFileCard, { doc, userId: user.userId, isSelected, onClick: () => handleSelectDoc(doc) }, doc.path);
|
|
87
|
+
}) }) : /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: illuNoContentInFolder, size: 64, text: t("nextcloud.empty.docSpace") }) : /* @__PURE__ */ jsx(LoadingScreen, {}) })
|
|
88
|
+
] }) })
|
|
89
|
+
] });
|
|
90
|
+
};
|
|
91
|
+
export {
|
|
92
|
+
Nextcloud as default
|
|
93
|
+
};
|
package/dist/multimedia.js
CHANGED
|
@@ -4,12 +4,14 @@ import { default as default4 } from "./modules/multimedia/FileCard/FileCard.js";
|
|
|
4
4
|
import { default as default5 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
5
5
|
import { default as default6 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
6
6
|
import { default as default7 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
7
|
-
import { default as default8 } from "./modules/multimedia/
|
|
8
|
-
import { default as default9 } from "./modules/multimedia/
|
|
9
|
-
import { default as default10 } from "./modules/multimedia/
|
|
10
|
-
import { default as default11 } from "./modules/multimedia/
|
|
11
|
-
import { default as default12 } from "./modules/multimedia/
|
|
12
|
-
import { default as default13 } from "./modules/multimedia/
|
|
7
|
+
import { default as default8 } from "./modules/multimedia/Nextcloud/Nextcloud.js";
|
|
8
|
+
import { default as default9 } from "./modules/multimedia/FileCard/NextcloudFileCard.js";
|
|
9
|
+
import { default as default10 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
10
|
+
import { default as default11 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
11
|
+
import { default as default12 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
12
|
+
import { default as default13 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
13
|
+
import { default as default14 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
14
|
+
import { default as default15 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
13
15
|
import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
|
|
14
16
|
import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
|
|
15
17
|
import { Upload } from "./modules/multimedia/MediaLibrary/innertabs/Upload.js";
|
|
@@ -22,11 +24,13 @@ export {
|
|
|
22
24
|
default6 as ImagePicker,
|
|
23
25
|
InternalLinker,
|
|
24
26
|
default7 as MediaLibrary,
|
|
27
|
+
default8 as Nextcloud,
|
|
28
|
+
default9 as NextcloudFileCard,
|
|
25
29
|
Upload,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
default10 as UploadCard,
|
|
31
|
+
default11 as UploadFiles,
|
|
32
|
+
default12 as VideoEmbed,
|
|
33
|
+
default13 as VideoRecorder,
|
|
34
|
+
default14 as Workspace,
|
|
35
|
+
default15 as WorkspaceFolders
|
|
32
36
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
3
|
+
import { useState } from "react";
|
|
3
4
|
import { EdificeClientContext } from "../EdificeClientProvider/EdificeClientProvider.context.js";
|
|
4
5
|
import { EdificeThemeContext } from "../EdificeThemeProvider/EdificeThemeProvider.context.js";
|
|
5
6
|
import { mockQueryResult, mockSession, mockConf } from "./MockedProvider.mocks.js";
|
|
6
|
-
const
|
|
7
|
+
const MockedProvider = ({
|
|
7
8
|
children
|
|
8
9
|
}) => {
|
|
9
|
-
const themeContextValue = {
|
|
10
|
+
const [queryClient] = useState(() => new QueryClient()), themeContextValue = {
|
|
10
11
|
theme: "default",
|
|
11
12
|
setTheme: vi.fn()
|
|
12
13
|
}, clientContextValue = {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StoreApi, UseBoundStore } from 'zustand';
|
|
2
|
+
type WithSelectors<S> = S extends {
|
|
3
|
+
getState: () => infer T;
|
|
4
|
+
} ? S & {
|
|
5
|
+
use: {
|
|
6
|
+
[K in keyof T]: () => T[K];
|
|
7
|
+
};
|
|
8
|
+
} : never;
|
|
9
|
+
/**
|
|
10
|
+
* Augments a Zustand store with auto-generated, per-field selector hooks,
|
|
11
|
+
* so consumers can call `store.use.myValue()` instead of
|
|
12
|
+
* `store((s) => s.myValue)` and never forget a selector.
|
|
13
|
+
*
|
|
14
|
+
* Pattern from the Zustand docs:
|
|
15
|
+
* https://zustand.docs.pmnd.rs/guides/auto-generating-selectors
|
|
16
|
+
*
|
|
17
|
+
* @param _store - The bound store to augment.
|
|
18
|
+
* @returns The same store instance, mutated with a `use` object exposing one
|
|
19
|
+
* selector hook per state key.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* - The store is mutated in place; the returned reference is the input store.
|
|
23
|
+
* - Selectors are generated once, from the keys present at call time. Fields
|
|
24
|
+
* added to the state later won't get a `use.<key>` selector.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const useBearStore = createSelectors(
|
|
29
|
+
* create<BearState>(() => ({ bears: 0 })),
|
|
30
|
+
* );
|
|
31
|
+
*
|
|
32
|
+
* // In a component:
|
|
33
|
+
* const bears = useBearStore.use.bears();
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const createSelectors: <S extends UseBoundStore<StoreApi<object>>>(_store: S) => WithSelectors<S>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-selectors';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.6.0-develop-
|
|
3
|
+
"version": "2.6.0-develop-integration.20260722215838",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
"swiper": "10.1.0",
|
|
141
141
|
"ua-parser-js": "1.0.36",
|
|
142
142
|
"zustand": "4.5.7",
|
|
143
|
-
"@edifice.io/bootstrap": "2.6.0-develop-
|
|
144
|
-
"@edifice.io/tiptap-extensions": "2.6.0-develop-
|
|
145
|
-
"@edifice.io/utilities": "2.6.0-develop-
|
|
143
|
+
"@edifice.io/bootstrap": "2.6.0-develop-integration.20260722215838",
|
|
144
|
+
"@edifice.io/tiptap-extensions": "2.6.0-develop-integration.20260722215838",
|
|
145
|
+
"@edifice.io/utilities": "2.6.0-develop-integration.20260722215838"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
148
|
"@babel/plugin-transform-react-pure-annotations": "7.27.1",
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
"vite": "5.4.14",
|
|
174
174
|
"vite-plugin-dts": "4.5.4",
|
|
175
175
|
"vite-tsconfig-paths": "5.1.4",
|
|
176
|
-
"@edifice.io/client": "2.6.0-develop-
|
|
177
|
-
"@edifice.io/config": "2.6.0-develop-
|
|
176
|
+
"@edifice.io/client": "2.6.0-develop-integration.20260722215838",
|
|
177
|
+
"@edifice.io/config": "2.6.0-develop-integration.20260722215838"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"@react-spring/web": "9.7.5",
|
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
"format:write": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
199
199
|
"lint": "eslint",
|
|
200
200
|
"test": "vitest",
|
|
201
|
-
"test:watch": "vitest --watch"
|
|
201
|
+
"test:watch": "vitest --watch",
|
|
202
|
+
"test:coverage": "vitest run --coverage"
|
|
202
203
|
}
|
|
203
204
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StoreApi, UseBoundStore } from 'zustand';
|
|
2
|
-
type WithSelectors<S> = S extends {
|
|
3
|
-
getState: () => infer T;
|
|
4
|
-
} ? S & {
|
|
5
|
-
use: {
|
|
6
|
-
[K in keyof T]: () => T[K];
|
|
7
|
-
};
|
|
8
|
-
} : never;
|
|
9
|
-
export declare const createSelectors: <S extends UseBoundStore<StoreApi<object>>>(_store: S) => WithSelectors<S>;
|
|
10
|
-
export {};
|
|
File without changes
|