@edifice.io/react 2.6.3 → 2.6.4
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 +6 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Layout/components/Header.js +0 -6
- package/dist/components/Layout/components/NavLink.d.ts +1 -1
- package/dist/components/Layout/components/NavLink.js +2 -0
- package/dist/components/Layout/hooks/useHeader.js +2 -3
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -1
- package/dist/modules/editor/test-utils/createTestEditor.d.ts +10 -0
- package/dist/modules/multimedia/testing/mediaHarness.d.ts +154 -0
- package/package.json +6 -6
- package/dist/modules/multimedia/LinkerCard/LinkerCard._.d.ts +0 -8
- package/dist/modules/multimedia/UploadCard/UploadCard._.d.ts +0 -9
|
@@ -6,6 +6,11 @@ export type NotificationBadgeVariant = {
|
|
|
6
6
|
type: 'notification';
|
|
7
7
|
level: 'success' | 'warning' | 'danger' | 'info';
|
|
8
8
|
};
|
|
9
|
+
/** Badge variant : status */
|
|
10
|
+
export type StatusBadgeVariant = {
|
|
11
|
+
type: 'status';
|
|
12
|
+
level: 'validate' | 'success' | 'warning' | 'danger' | 'info';
|
|
13
|
+
};
|
|
9
14
|
/** Badge variant : content */
|
|
10
15
|
export type ContentBadgeVariant = {
|
|
11
16
|
type: 'content';
|
|
@@ -49,7 +54,7 @@ export type AppVersionBadgeVariant = {
|
|
|
49
54
|
color?: string;
|
|
50
55
|
app?: IWebApp;
|
|
51
56
|
};
|
|
52
|
-
export type BadgeVariants = NotificationBadgeVariant | ContentBadgeVariant | ProfileBadgeVariant | ChipBadgeVariant | LinkBadgeVariant | AppVersionBadgeVariant;
|
|
57
|
+
export type BadgeVariants = NotificationBadgeVariant | StatusBadgeVariant | ContentBadgeVariant | ProfileBadgeVariant | ChipBadgeVariant | LinkBadgeVariant | AppVersionBadgeVariant;
|
|
53
58
|
export interface BadgeProps extends React.ComponentPropsWithRef<'span'> {
|
|
54
59
|
/**
|
|
55
60
|
* Badge variant : notification, link or profile (Teacher|Student|Relative|Personnel)
|
|
@@ -21,7 +21,7 @@ const Badge = /* @__PURE__ */ forwardRef(({
|
|
|
21
21
|
const colorAppClassName = getIconClass(variant.app), backgroundLightAppClassName = getBackgroundLightIconClass(variant.app), borderAppClassName = getBorderIconClass(variant.app);
|
|
22
22
|
appVersionBadgeColorClassName = `${colorAppClassName} ${backgroundLightAppClassName} ${borderAppClassName}`;
|
|
23
23
|
}
|
|
24
|
-
const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", variant.type === "appVersion" && appVersionBadgeColorClassName, className);
|
|
24
|
+
const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "status" && `badge-status badge-status-${variant.level} caption fw-normal`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", variant.type === "appVersion" && appVersionBadgeColorClassName, className);
|
|
25
25
|
return /* @__PURE__ */ jsxs("span", { ref, className: classes, ...restProps, children: [
|
|
26
26
|
variant.type === "chip" && /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }),
|
|
27
27
|
variant.type === "appVersion" && (children ?? "BÊTA"),
|
|
@@ -5,7 +5,6 @@ import { useEdificeClient } from "../../../providers/EdificeClientProvider/Edifi
|
|
|
5
5
|
import { useEdificeTheme } from "../../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
6
6
|
import SvgIconRafterDown from "../../../modules/icons/components/IconRafterDown.js";
|
|
7
7
|
import SvgIconCommunities from "../../../modules/icons/components/nav/IconCommunities.js";
|
|
8
|
-
import SvgIconCommunity from "../../../modules/icons/components/nav/IconCommunity.js";
|
|
9
8
|
import SvgIconDisconnect from "../../../modules/icons/components/nav/IconDisconnect.js";
|
|
10
9
|
import SvgIconHome from "../../../modules/icons/components/nav/IconHome.js";
|
|
11
10
|
import SvgIconMyApps from "../../../modules/icons/components/nav/IconMyApps.js";
|
|
@@ -67,7 +66,6 @@ const Header = ({
|
|
|
67
66
|
userAvatar,
|
|
68
67
|
userName,
|
|
69
68
|
welcomeUser,
|
|
70
|
-
communityWorkflow,
|
|
71
69
|
communitiesWorkflow,
|
|
72
70
|
conversationWorflow,
|
|
73
71
|
searchWorkflow,
|
|
@@ -176,10 +174,6 @@ const Header = ({
|
|
|
176
174
|
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("div", { className: "dropdown", children: [
|
|
177
175
|
/* @__PURE__ */ jsx("button", { className: "nav-link btn btn-naked d-md-none", type: "button", "aria-controls": "dropdown-navbar", "aria-expanded": !isCollapsed, "aria-label": t("navbar.open.menu"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsx(SvgIconRafterDown, { className: "icon rafter-down", width: "20", height: "20", color: "#fff" }) }),
|
|
178
176
|
/* @__PURE__ */ jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
179
|
-
communityWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/community", className: "nav-link dropdown-item", children: [
|
|
180
|
-
/* @__PURE__ */ jsx(SvgIconCommunity, { className: "icon community" }),
|
|
181
|
-
/* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.community") })
|
|
182
|
-
] }) }),
|
|
183
177
|
communitiesWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/communities", className: "nav-link dropdown-item", children: [
|
|
184
178
|
/* @__PURE__ */ jsx(SvgIconCommunities, { className: "icon communities" }),
|
|
185
179
|
/* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.community") })
|
|
@@ -21,4 +21,4 @@ export interface NavLinkProps<T> {
|
|
|
21
21
|
*/
|
|
22
22
|
button?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare function NavLink({ link, className, children, translate, ...restProps }: NavLinkProps<string>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function NavLink({ link, className, children, translate, button, ...restProps }: NavLinkProps<string>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,7 +14,7 @@ function useHeader({
|
|
|
14
14
|
t
|
|
15
15
|
} = useTranslation(), title = t(appCode), [isCollapsed, setIsCollapsed] = useState(!0), [appsRef, isAppsHovered] = useHover(), popoverAppsId = useId(), popoverSearchId = useId(), userAvatar = avatar, userName = user == null ? void 0 : user.username, welcomeUser = t("welcome", {
|
|
16
16
|
username: user == null ? void 0 : user.firstName
|
|
17
|
-
}), bookmarkedApps = useBookmark(),
|
|
17
|
+
}), bookmarkedApps = useBookmark(), communitiesWorkflow = useHasWorkflow("community.access"), conversationWorflow = useHasWorkflow("org.entcore.conversation.controllers.ConversationController|view"), searchWorkflow = useHasWorkflow("fr.openent.searchengine.controllers.SearchEngineController|view"), toggleCollapsedNav = useCallback(() => {
|
|
18
18
|
setIsCollapsed(!isCollapsed);
|
|
19
19
|
}, [isCollapsed]);
|
|
20
20
|
return useMemo(() => ({
|
|
@@ -27,13 +27,12 @@ function useHeader({
|
|
|
27
27
|
userAvatar,
|
|
28
28
|
userName,
|
|
29
29
|
welcomeUser,
|
|
30
|
-
communityWorkflow,
|
|
31
30
|
communitiesWorkflow,
|
|
32
31
|
conversationWorflow,
|
|
33
32
|
searchWorkflow,
|
|
34
33
|
isCollapsed,
|
|
35
34
|
toggleCollapsedNav
|
|
36
|
-
}), [appsRef, bookmarkedApps, communitiesWorkflow,
|
|
35
|
+
}), [appsRef, bookmarkedApps, communitiesWorkflow, conversationWorflow, isAppsHovered, isCollapsed, popoverAppsId, popoverSearchId, searchWorkflow, title, toggleCollapsedNav, userAvatar, userName, welcomeUser]);
|
|
37
36
|
}
|
|
38
37
|
export {
|
|
39
38
|
useHeader as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: Array<HTMLElement | null>): import('react').MutableRefObject<T |
|
|
1
|
+
export default function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: Array<HTMLElement | null>): import('react').MutableRefObject<T | null>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRef, useEffect } from "react";
|
|
2
2
|
const DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
|
3
3
|
function useClickOutside(handler, events, nodes) {
|
|
4
|
-
const ref = useRef();
|
|
4
|
+
const ref = useRef(null);
|
|
5
5
|
return useEffect(() => {
|
|
6
6
|
const listener = (event) => {
|
|
7
7
|
const {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Editor, EditorOptions, Extensions } from '@tiptap/core';
|
|
2
|
+
/**
|
|
3
|
+
* Builds a real, headless (uncoupled from React) tiptap `Editor` for
|
|
4
|
+
* component specs that need genuine ProseMirror state - selection, commands,
|
|
5
|
+
* `isActive` - rather than a hand-rolled mock. Callers should call
|
|
6
|
+
* `.destroy()` in `afterEach` to avoid leaking editor instances across tests.
|
|
7
|
+
*/
|
|
8
|
+
export declare const createTestEditor: (overrides?: {
|
|
9
|
+
extensions?: Extensions;
|
|
10
|
+
} & Partial<EditorOptions>) => Editor;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Doubles for the browser capture APIs the recorders rely on, none of which
|
|
3
|
+
* jsdom implements: `navigator.mediaDevices`, `MediaStream`, `MediaRecorder`,
|
|
4
|
+
* and the playback methods of `HTMLMediaElement`.
|
|
5
|
+
*
|
|
6
|
+
* Shared by the audio and the video recorder specs. The Web Audio doubles
|
|
7
|
+
* (`AudioContext`, `AudioWorkletNode`, `Worker`) sit in the second half of this
|
|
8
|
+
* file, behind `installWebAudioHarness`: only `useAudioRecorder` needs them,
|
|
9
|
+
* but both of its specs do.
|
|
10
|
+
*/
|
|
11
|
+
/** A track the component can stop to release the device. */
|
|
12
|
+
export declare function fakeTrack(kind?: 'audio' | 'video'): MediaStreamTrack;
|
|
13
|
+
/**
|
|
14
|
+
* `MediaStream` has to exist as a constructor, not just as a shape:
|
|
15
|
+
* <VideoRecorder> narrows with `srcObject instanceof MediaStream` before
|
|
16
|
+
* resetting it.
|
|
17
|
+
*/
|
|
18
|
+
export declare class FakeMediaStream {
|
|
19
|
+
id: string;
|
|
20
|
+
private tracks;
|
|
21
|
+
constructor(tracks?: MediaStreamTrack[]);
|
|
22
|
+
static created: number;
|
|
23
|
+
getTracks(): MediaStreamTrack[];
|
|
24
|
+
}
|
|
25
|
+
export type FakeMediaStreamInstance = FakeMediaStream & MediaStream;
|
|
26
|
+
/** Records what the component asked of it, and lets a test push data back. */
|
|
27
|
+
export declare class FakeMediaRecorder {
|
|
28
|
+
static instances: FakeMediaRecorder[];
|
|
29
|
+
/** Mime types rejected by `isTypeSupported`, to exercise the fallbacks. */
|
|
30
|
+
static unsupported: string[];
|
|
31
|
+
state: 'inactive' | 'recording' | 'paused';
|
|
32
|
+
ondataavailable: ((event: {
|
|
33
|
+
data: Blob;
|
|
34
|
+
}) => void) | null;
|
|
35
|
+
onerror: ((event: unknown) => void) | null;
|
|
36
|
+
readonly stream: MediaStream;
|
|
37
|
+
readonly mimeType: string;
|
|
38
|
+
readonly start: import('vitest').Mock<(timeslice?: number) => void>;
|
|
39
|
+
readonly stop: import('vitest').Mock<() => void>;
|
|
40
|
+
readonly requestData: import('vitest').Mock<(...args: any[]) => any>;
|
|
41
|
+
timeslice?: number;
|
|
42
|
+
constructor(stream: MediaStream, options?: {
|
|
43
|
+
mimeType?: string;
|
|
44
|
+
});
|
|
45
|
+
static isTypeSupported(type: string): boolean;
|
|
46
|
+
/** Hands a chunk to the component, as the browser would every timeslice. */
|
|
47
|
+
emitData(blob: Blob): void;
|
|
48
|
+
emitError(event?: unknown): void;
|
|
49
|
+
}
|
|
50
|
+
export type MediaHarness = {
|
|
51
|
+
/** The stream handed over by `getUserMedia`. */
|
|
52
|
+
stream: FakeMediaStreamInstance;
|
|
53
|
+
getUserMedia: ReturnType<typeof vi.fn>;
|
|
54
|
+
enumerateDevices: ReturnType<typeof vi.fn>;
|
|
55
|
+
createObjectURL: ReturnType<typeof vi.fn>;
|
|
56
|
+
revokeObjectURL: ReturnType<typeof vi.fn>;
|
|
57
|
+
/** Every MediaRecorder built since the harness was installed. */
|
|
58
|
+
recorders: FakeMediaRecorder[];
|
|
59
|
+
/** The recorder currently in use, i.e. the last one built. */
|
|
60
|
+
recorder: () => FakeMediaRecorder;
|
|
61
|
+
};
|
|
62
|
+
export declare function videoInput(deviceId: string, label?: string): MediaDeviceInfo;
|
|
63
|
+
export declare function audioInput(deviceId?: string): MediaDeviceInfo;
|
|
64
|
+
/**
|
|
65
|
+
* Installs every double on the global scope. Call from `beforeEach`; the stubs
|
|
66
|
+
* are torn down by the `restoreMocks`/`unstubGlobals` handling of the runner,
|
|
67
|
+
* so nothing has to be undone by hand.
|
|
68
|
+
*
|
|
69
|
+
* @param devices what `enumerateDevices` should report
|
|
70
|
+
* @param stream the stream `getUserMedia` should resolve to
|
|
71
|
+
*/
|
|
72
|
+
export declare function installMediaHarness({ devices, stream, }?: {
|
|
73
|
+
devices?: MediaDeviceInfo[];
|
|
74
|
+
stream?: FakeMediaStreamInstance;
|
|
75
|
+
}): MediaHarness;
|
|
76
|
+
/**
|
|
77
|
+
* Replaces the playback methods jsdom leaves unimplemented, and makes
|
|
78
|
+
* `currentTime` writable so the components can rewind their media element.
|
|
79
|
+
*/
|
|
80
|
+
export declare function installMediaElementStubs(): void;
|
|
81
|
+
export declare class FakeAudioWorkletNode {
|
|
82
|
+
readonly context: FakeAudioContext;
|
|
83
|
+
readonly processorName: string;
|
|
84
|
+
static instances: FakeAudioWorkletNode[];
|
|
85
|
+
readonly connect: import('vitest').Mock<(...args: any[]) => any>;
|
|
86
|
+
readonly disconnect: import('vitest').Mock<(...args: any[]) => any>;
|
|
87
|
+
/**
|
|
88
|
+
* The `MessagePort` is driven by hand: the hook subscribes with
|
|
89
|
+
* `addEventListener`, so the listeners are replayed by `emitSamples`.
|
|
90
|
+
*/
|
|
91
|
+
readonly port: {
|
|
92
|
+
addEventListener: import('vitest').Mock<(...args: any[]) => any>;
|
|
93
|
+
removeEventListener: import('vitest').Mock<(...args: any[]) => any>;
|
|
94
|
+
close: import('vitest').Mock<(...args: any[]) => any>;
|
|
95
|
+
start: import('vitest').Mock<(...args: any[]) => any>;
|
|
96
|
+
postMessage: import('vitest').Mock<(...args: any[]) => any>;
|
|
97
|
+
};
|
|
98
|
+
constructor(context: FakeAudioContext, processorName: string);
|
|
99
|
+
/** Replays a block of samples, as the AudioWorkletProcessor would. */
|
|
100
|
+
emitSamples(inputs: unknown): void;
|
|
101
|
+
}
|
|
102
|
+
export declare class FakeAudioContext {
|
|
103
|
+
static instances: FakeAudioContext[];
|
|
104
|
+
/** Replaceable, to exercise the addModule failure path. */
|
|
105
|
+
static addModule: import('vitest').Mock<(moduleURL: string) => Promise<void>>;
|
|
106
|
+
readonly sampleRate: number;
|
|
107
|
+
/** Writable: the hook reads it to compute the elapsed recording time. */
|
|
108
|
+
currentTime: number;
|
|
109
|
+
readonly destination: {
|
|
110
|
+
connect: import('vitest').Mock<(...args: any[]) => any>;
|
|
111
|
+
disconnect: import('vitest').Mock<(...args: any[]) => any>;
|
|
112
|
+
};
|
|
113
|
+
readonly close: import('vitest').Mock<(...args: any[]) => any>;
|
|
114
|
+
readonly suspend: import('vitest').Mock<(...args: any[]) => any>;
|
|
115
|
+
readonly resume: import('vitest').Mock<(...args: any[]) => any>;
|
|
116
|
+
readonly createMediaStreamSource: import('vitest').Mock<() => {
|
|
117
|
+
connect: import('vitest').Mock<(...args: any[]) => any>;
|
|
118
|
+
disconnect: import('vitest').Mock<(...args: any[]) => any>;
|
|
119
|
+
}>;
|
|
120
|
+
readonly audioWorklet: {
|
|
121
|
+
addModule: (path: string) => Promise<void>;
|
|
122
|
+
};
|
|
123
|
+
constructor(options?: {
|
|
124
|
+
sampleRate?: number;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
export declare class FakeWorker {
|
|
128
|
+
readonly url: string;
|
|
129
|
+
static instances: FakeWorker[];
|
|
130
|
+
readonly postMessage: import('vitest').Mock<(...args: any[]) => any>;
|
|
131
|
+
readonly terminate: import('vitest').Mock<(...args: any[]) => any>;
|
|
132
|
+
onmessage: ((event: {
|
|
133
|
+
data: unknown;
|
|
134
|
+
}) => void) | null;
|
|
135
|
+
constructor(url: string);
|
|
136
|
+
/** Answers the last `postMessage`, as the encoder worker would. */
|
|
137
|
+
emit(data: unknown): void;
|
|
138
|
+
/** The payload of the last message the hook sent, e.g. ['wav', …]. */
|
|
139
|
+
lastMessage(): any;
|
|
140
|
+
}
|
|
141
|
+
export type WebAudioHarness = {
|
|
142
|
+
/** The context opened by the current recording. */
|
|
143
|
+
context: () => FakeAudioContext;
|
|
144
|
+
/** The worklet node processing the current recording. */
|
|
145
|
+
workletNode: () => FakeAudioWorkletNode;
|
|
146
|
+
/** The encoder worker, created once on mount. */
|
|
147
|
+
worker: () => FakeWorker;
|
|
148
|
+
addModule: typeof FakeAudioContext.addModule;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Installs the Web Audio doubles. Combine with `installMediaHarness`, which
|
|
152
|
+
* provides `getUserMedia` and the blob URL factory the encoder result needs.
|
|
153
|
+
*/
|
|
154
|
+
export declare function installWebAudioHarness(): WebAudioHarness;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
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.
|
|
144
|
-
"@edifice.io/tiptap-extensions": "2.6.
|
|
145
|
-
"@edifice.io/utilities": "2.6.
|
|
143
|
+
"@edifice.io/bootstrap": "2.6.4",
|
|
144
|
+
"@edifice.io/tiptap-extensions": "2.6.4",
|
|
145
|
+
"@edifice.io/utilities": "2.6.4"
|
|
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.
|
|
177
|
-
"@edifice.io/config": "2.6.
|
|
176
|
+
"@edifice.io/client": "2.6.4",
|
|
177
|
+
"@edifice.io/config": "2.6.4"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"@react-spring/web": "9.7.5",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { default as LinkerCard } from './LinkerCard';
|
|
3
|
-
declare const meta: Meta<typeof LinkerCard>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof LinkerCard>;
|
|
6
|
-
export declare const Base: Story;
|
|
7
|
-
export declare const TimelineGenerator: Story;
|
|
8
|
-
export declare const Blog: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { default as UploadCard } from './UploadCard';
|
|
3
|
-
declare const meta: Meta<typeof UploadCard>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof UploadCard>;
|
|
6
|
-
export declare const Base: Story;
|
|
7
|
-
export declare const IsLoading: Story;
|
|
8
|
-
export declare const IsSuccess: Story;
|
|
9
|
-
export declare const IsError: Story;
|