@lls/vivi 24.37.0-e4928d15 → 24.37.0-ea0002a6
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/assets/vivi.css +222 -222
- package/lib/index.js +237 -237
- package/package.json +6 -6
- package/lib/builttypes/vivi/src/components/Alert.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/Audio.d.ts +0 -5
- package/lib/builttypes/vivi/src/components/HighlightedArea.d.ts +0 -8
- package/lib/builttypes/vivi/src/components/Rive.d.ts +0 -11
- package/lib/builttypes/vivi/src/components/Video.d.ts +0 -5
- package/lib/builttypes/vivi/src/components/ViewImage.d.ts +0 -9
- package/lib/builttypes/vivi/src/components/core/Document.d.ts +0 -10
- package/lib/builttypes/vivi/src/components/core/DocumentHtml.d.ts +0 -11
- package/lib/builttypes/vivi/src/components/core/DocumentToolbar.d.ts +0 -10
- package/lib/builttypes/vivi/src/components/core/ErrorBoundary.d.ts +0 -24
- package/lib/builttypes/vivi/src/components/core/editor/CodemirrorEditor.d.ts +0 -3
- package/lib/builttypes/vivi/src/components/core/editor/EditViewerMd.d.ts +0 -20
- package/lib/builttypes/vivi/src/components/core/editor/Editor.d.ts +0 -14
- package/lib/builttypes/vivi/src/components/core/editor/EditorHeaderModal.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorListModal.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorMathsModal.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorOrderedListModal.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorQuestionModal.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorSsr.d.ts +0 -2
- package/lib/builttypes/vivi/src/components/core/editor/EditorStampModal.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorTableModal.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorTitleModal.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorToolbar.d.ts +0 -4
- package/lib/builttypes/vivi/src/components/core/editor/EditorView.d.ts +0 -19
- package/lib/builttypes/vivi/src/components/core/editor/MetadataEditor.d.ts +0 -13
- package/lib/builttypes/vivi/src/components/core/viewer/ViewerMd.d.ts +0 -37
- package/lib/builttypes/vivi/src/components/lazy/CodemirrorEditor.browser.d.ts +0 -12
- package/lib/builttypes/vivi/src/components/lazy/index.editor.d.ts +0 -16
- package/lib/builttypes/vivi/src/components/primarygrid/AudioWord.d.ts +0 -8
- package/lib/builttypes/vivi/src/components/primarygrid/Correction.d.ts +0 -9
- package/lib/builttypes/vivi/src/components/primarygrid/DefinitionWord.d.ts +0 -10
- package/lib/builttypes/vivi/src/components/primarygrid/EditGrid.d.ts +0 -6
- package/lib/builttypes/vivi/src/components/primarygrid/EditZoneModal.d.ts +0 -19
- package/lib/builttypes/vivi/src/components/primarygrid/FullscreenDocument.d.ts +0 -8
- package/lib/builttypes/vivi/src/components/primarygrid/Grid.d.ts +0 -6
- package/lib/builttypes/vivi/src/components/primarygrid/PicWord.d.ts +0 -10
- package/lib/builttypes/vivi/src/components/primarygrid/SubZone.d.ts +0 -10
- package/lib/builttypes/vivi/src/components/primarygrid/ViewGrid.d.ts +0 -6
- package/lib/builttypes/vivi/src/components/primarygrid/ZoneCoordinates.d.ts +0 -8
- package/lib/builttypes/vivi/src/components/primarygrid/ZoneMaker.d.ts +0 -16
- package/lib/builttypes/vivi/src/components/primarygrid/ZoomedPicture.d.ts +0 -12
- package/lib/builttypes/vivi/src/components/primarygrid/sortable/SortableGrid.d.ts +0 -10
- package/lib/builttypes/vivi/src/components/primarygrid/sortable/SortableItem.d.ts +0 -7
- package/lib/builttypes/vivi/src/config/development.d.ts +0 -6
- package/lib/builttypes/vivi/src/config/index.d.ts +0 -6
- package/lib/builttypes/vivi/src/config/preproduction.d.ts +0 -6
- package/lib/builttypes/vivi/src/config/production.d.ts +0 -6
- package/lib/builttypes/vivi/src/config/test.d.ts +0 -6
- package/lib/builttypes/vivi/src/constants/config.d.ts +0 -1
- package/lib/builttypes/vivi/src/constants/grid.d.ts +0 -3
- package/lib/builttypes/vivi/src/constants/index.d.ts +0 -5
- package/lib/builttypes/vivi/src/constants/template.d.ts +0 -4
- package/lib/builttypes/vivi/src/constants/zoneElements.d.ts +0 -8
- package/lib/builttypes/vivi/src/constants/zoneMaker.d.ts +0 -35
- package/lib/builttypes/vivi/src/hooks/useClientMounted.d.ts +0 -2
- package/lib/builttypes/vivi/src/hooks/useDragAndResize.d.ts +0 -21
- package/lib/builttypes/vivi/src/hooks/useEditor.d.ts +0 -13
- package/lib/builttypes/vivi/src/hooks/usePictureSource.d.ts +0 -13
- package/lib/builttypes/vivi/src/hooks/useScroll.d.ts +0 -7
- package/lib/builttypes/vivi/src/index.d.ts +0 -2
- package/lib/builttypes/vivi/src/index.editor.d.ts +0 -3
- package/lib/builttypes/vivi/src/index.viewer.d.ts +0 -4
- package/lib/builttypes/vivi/src/store/documentPropsSlice.d.ts +0 -16
- package/lib/builttypes/vivi/src/store/index.d.ts +0 -15
- package/lib/builttypes/vivi/src/store/mdRendererPropsSlice.d.ts +0 -48
- package/lib/builttypes/vivi/src/utils/css-bare.d.mts +0 -2
- package/lib/builttypes/vivi/src/utils/dom.d.ts +0 -6
- package/lib/builttypes/vivi/src/utils/layoutTemplate.d.ts +0 -2
- package/lib/builttypes/vivi/src/utils/lazy.d.ts +0 -9
- package/lib/builttypes/vivi/src/utils/memo.d.ts +0 -14
- package/lib/builttypes/vivi/src/utils/mode.d.ts +0 -3
- package/lib/builttypes/vivi/src/utils/string.d.ts +0 -5
- package/lib/builttypes/vivi/src/utils/table.d.ts +0 -4
- package/lib/builttypes/vivi/src/utils/template.d.ts +0 -61
- package/lib/builttypes/vivi/src/utils/url.d.ts +0 -1
- package/lib/builttypes/vivi/src/utils/zoneMaker.d.ts +0 -45
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lls/vivi",
|
|
3
|
-
"version": "24.37.0-
|
|
3
|
+
"version": "24.37.0-ea0002a6",
|
|
4
4
|
"description": "renderer de page primaire de manuel",
|
|
5
5
|
"author": "",
|
|
6
6
|
"exports": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/react-dom": "18.3.1",
|
|
46
46
|
"@vitejs/plugin-react": "5.1.1",
|
|
47
47
|
"axios": "1.13.2",
|
|
48
|
-
"esbuild": "0.27.
|
|
48
|
+
"esbuild": "0.27.2",
|
|
49
49
|
"get-port": "7.1.0",
|
|
50
50
|
"happy-dom": "15.11.1",
|
|
51
51
|
"jsdom": "25.0.1",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"typescript": "5.9.3",
|
|
58
58
|
"vite": "npm:rolldown-vite@7.2.10",
|
|
59
59
|
"vite-tsconfig-paths": "5.1.4",
|
|
60
|
-
"@lls/lls-kit": "24.37.0-
|
|
61
|
-
"@lls/utils": "24.37.0-
|
|
62
|
-
"@lls/vitescripts": "24.37.0-
|
|
60
|
+
"@lls/lls-kit": "24.37.0-ea0002a6",
|
|
61
|
+
"@lls/utils": "24.37.0-ea0002a6",
|
|
62
|
+
"@lls/vitescripts": "24.37.0-ea0002a6"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@dnd-kit/core": "6.3.1",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"start": "pnpm ladle serve",
|
|
93
|
-
"dts": "pnpm
|
|
93
|
+
"dts": "pnpm tsgo --project tsconfig.production.json",
|
|
94
94
|
"build": "NODE_ENV=production node build.mjs",
|
|
95
95
|
"deploy-ladle": "PUBLISH=1 pnpm ladle build",
|
|
96
96
|
"deploy-ladle-pr": "pnpm ladle build && s5cmd sync --delete --acl public-read --destination-region eu-west-1 'dist/*' s3://build.lelivrescolaire.fr/storybook/vivi-pr-$PR_NUMBER/",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AllowedPropsType } from '@lls/typings/react';
|
|
2
|
-
type HightlightedAreaProps = {
|
|
3
|
-
type?: 'blue' | 'purple' | 'green' | 'pink';
|
|
4
|
-
zoneVisibilityCounter?: number;
|
|
5
|
-
isActive?: boolean;
|
|
6
|
-
} & JSX.IntrinsicElements['div'] & AllowedPropsType;
|
|
7
|
-
declare const HightlightedArea: React.ForwardRefExoticComponent<Omit<HightlightedAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export default HightlightedArea;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Rive as RiveKit } from '@lls/lls-kit';
|
|
2
|
-
type RiveRefType = Parameters<typeof RiveKit>[0]['riveRef'];
|
|
3
|
-
type RiveProps = {
|
|
4
|
-
src: string;
|
|
5
|
-
stateMachines: string;
|
|
6
|
-
autoplay?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
riveRef?: RiveRefType;
|
|
9
|
-
};
|
|
10
|
-
declare const Rive: ({ src, stateMachines, className, riveRef, autoplay }: RiveProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default Rive;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Word } from '@lls/store';
|
|
2
|
-
import type { AllowedPropsType } from '@lls/typings/react';
|
|
3
|
-
type ViewImageProps = {
|
|
4
|
-
word: Word;
|
|
5
|
-
onShow?: () => void;
|
|
6
|
-
onHide?: () => void;
|
|
7
|
-
} & AllowedPropsType;
|
|
8
|
-
declare const ViewImage: ({ word, children, className, style, onShow, onHide, ...props }: ViewImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default ViewImage;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PrimaryDoc } from '@lls/store';
|
|
3
|
-
import type { TODO } from '@lls/typings/utils';
|
|
4
|
-
type RootDocumentProps = {
|
|
5
|
-
docJson?: PrimaryDoc;
|
|
6
|
-
toolbarProps?: TODO;
|
|
7
|
-
mdRendererProps: TODO;
|
|
8
|
-
};
|
|
9
|
-
declare const RootDocument: React.ForwardRefExoticComponent<RootDocumentProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export default RootDocument;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PrimaryDoc } from '@lls/store';
|
|
2
|
-
import type { ReactChildren } from '@lls/typings/react';
|
|
3
|
-
import type { TODO } from '@lls/typings/utils';
|
|
4
|
-
type DocumentHtmlProps = {
|
|
5
|
-
toolbarProps: TODO;
|
|
6
|
-
mdRendererProps: TODO;
|
|
7
|
-
docJson: PrimaryDoc;
|
|
8
|
-
children?: ReactChildren;
|
|
9
|
-
};
|
|
10
|
-
declare const DocumentHtml: ({ toolbarProps: props, mdRendererProps, docJson, children: docChildren }: DocumentHtmlProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default DocumentHtml;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { PrimaryDoc } from '@lls/store';
|
|
3
|
-
type EditToolbarType = {
|
|
4
|
-
openEditor: (uuid: PrimaryDoc['uuid'], e: React.MouseEvent | React.TouchEvent) => void;
|
|
5
|
-
openMetadataEditor: (uuid: PrimaryDoc['uuid'], e: React.MouseEvent | React.TouchEvent) => void;
|
|
6
|
-
deleteDocument: (uuid: PrimaryDoc['uuid']) => void;
|
|
7
|
-
docJson: PrimaryDoc;
|
|
8
|
-
};
|
|
9
|
-
export declare const Toolbar: (props: EditToolbarType) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { PrimaryDoc } from '@lls/store';
|
|
2
|
-
import type { ReactChildren } from '@lls/typings/react';
|
|
3
|
-
import React, { type ErrorInfo } from 'react';
|
|
4
|
-
import type { Mode } from '#vivi/types/common';
|
|
5
|
-
type MyProps = {
|
|
6
|
-
docJson: PrimaryDoc;
|
|
7
|
-
children?: ReactChildren;
|
|
8
|
-
mode: Mode;
|
|
9
|
-
};
|
|
10
|
-
type MyState = {
|
|
11
|
-
hasError: boolean;
|
|
12
|
-
message: Error['message'];
|
|
13
|
-
componentStack: ErrorInfo['componentStack'];
|
|
14
|
-
docJson?: PrimaryDoc;
|
|
15
|
-
};
|
|
16
|
-
declare class ErrorBoundary extends React.Component<MyProps, MyState> {
|
|
17
|
-
constructor(props: MyProps);
|
|
18
|
-
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
19
|
-
static getDerivedStateFromProps(props: MyProps, state: MyState): {
|
|
20
|
-
hasError: boolean;
|
|
21
|
-
} | null;
|
|
22
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
23
|
-
}
|
|
24
|
-
export default ErrorBoundary;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { PrimaryPage, Word } from '@lls/store';
|
|
2
|
-
import type { ReactSetState } from '@lls/typings/react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
type EditViewerMdProps = {
|
|
5
|
-
template?: PrimaryPage;
|
|
6
|
-
isEditorOpen: boolean;
|
|
7
|
-
openEditor: (editPath: string, e?: React.MouseEvent | React.TouchEvent) => void;
|
|
8
|
-
openMetadataEditor: (editPath: string, e?: React.MouseEvent | React.TouchEvent) => void;
|
|
9
|
-
onChange: ReactSetState<PrimaryPage>;
|
|
10
|
-
sizeIndex?: number;
|
|
11
|
-
isDysMode?: boolean;
|
|
12
|
-
showZonesCoordinates?: boolean;
|
|
13
|
-
pictureSource: string | undefined;
|
|
14
|
-
pictureRatio: number;
|
|
15
|
-
setPictureRatio: ReactSetState<number>;
|
|
16
|
-
words?: Word[];
|
|
17
|
-
bookDisplayTitle: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
declare const EditViewerMd: React.ForwardRefExoticComponent<EditViewerMdProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
export default EditViewerMd;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { PrimaryDoc } from '@lls/store';
|
|
2
|
-
type EditorProps = {
|
|
3
|
-
error?: string;
|
|
4
|
-
onError?: (error: string) => void;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
doc: PrimaryDoc;
|
|
7
|
-
onDocChange: (doc: PrimaryDoc) => void;
|
|
8
|
-
positions: {
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
declare const Editor: ({ error, onError, onClose, doc, onDocChange, positions }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default Editor;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PrimaryPage, Word } from '@lls/store';
|
|
3
|
-
import type { ReactSetState } from '@lls/typings/react';
|
|
4
|
-
import type { Mode } from '#vivi/types/common';
|
|
5
|
-
type SwitchViewProps = {
|
|
6
|
-
mode: Mode;
|
|
7
|
-
template: PrimaryPage;
|
|
8
|
-
sizeIndex?: number;
|
|
9
|
-
isDysMode?: boolean;
|
|
10
|
-
isEditorOpen: boolean;
|
|
11
|
-
openEditor: (editPath: string, e?: React.MouseEvent | React.TouchEvent) => void;
|
|
12
|
-
openMetadataEditor: (editPath: string, e?: React.MouseEvent | React.TouchEvent) => void;
|
|
13
|
-
onChange: ReactSetState<PrimaryPage>;
|
|
14
|
-
showZonesCoordinates?: boolean;
|
|
15
|
-
bookDisplayTitle: string | undefined;
|
|
16
|
-
words?: Word[];
|
|
17
|
-
};
|
|
18
|
-
declare const SwitchView: React.ForwardRefExoticComponent<SwitchViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
export default SwitchView;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DocJson } from '@lls/store';
|
|
2
|
-
type MetadataEditorProps = {
|
|
3
|
-
doc: DocJson;
|
|
4
|
-
onDocChange: (doc: DocJson) => void;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
positions: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
};
|
|
10
|
-
notions?: string[];
|
|
11
|
-
};
|
|
12
|
-
declare const MetadataEditor: ({ doc, onDocChange, onClose, positions, notions }: MetadataEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default MetadataEditor;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '#vivi/styles/Codemirror.module.css';
|
|
3
|
-
import type { PrimaryPage } from '@lls/store';
|
|
4
|
-
import type { ReactSetState } from '@lls/typings/react';
|
|
5
|
-
import type { Mode, UiState } from '#vivi/types/common';
|
|
6
|
-
type ViewerMdProps = {
|
|
7
|
-
pictureSource: string | undefined;
|
|
8
|
-
pictureRatio: number;
|
|
9
|
-
setPictureRatio: ReactSetState<number>;
|
|
10
|
-
template?: PrimaryPage;
|
|
11
|
-
onChange?: ReactSetState<PrimaryPage>;
|
|
12
|
-
sizeIndex?: number;
|
|
13
|
-
fontFamily?: string;
|
|
14
|
-
mode?: Mode;
|
|
15
|
-
bookDisplayTitle: string | undefined;
|
|
16
|
-
zoneVisibilityCounter?: number;
|
|
17
|
-
uiState?: UiState;
|
|
18
|
-
isDysMode?: boolean;
|
|
19
|
-
showZonesCoordinates?: boolean;
|
|
20
|
-
fullscreenDocUuid?: string | null;
|
|
21
|
-
setUiState?: ReactSetState<UiState>;
|
|
22
|
-
setFullscreenDocUuid?: (uuid: string | null) => void;
|
|
23
|
-
addDocument?: (coord: {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
w: number;
|
|
27
|
-
h: number;
|
|
28
|
-
}) => void;
|
|
29
|
-
addClipboardDocuments?: () => void;
|
|
30
|
-
updateLayouts?: (layouts: PrimaryPage['layouts']) => void;
|
|
31
|
-
updateChildren?: (children: PrimaryPage['children']) => void;
|
|
32
|
-
deleteDocument?: (uuid: string) => void;
|
|
33
|
-
openEditor?: (editPath: string, e?: React.MouseEvent | React.TouchEvent) => void;
|
|
34
|
-
openMetadataEditor?: (editPath: string, e?: React.MouseEvent | React.TouchEvent) => void;
|
|
35
|
-
};
|
|
36
|
-
declare const ViewerMd: React.ForwardRefExoticComponent<ViewerMdProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
-
export default ViewerMd;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AnyFunction } from '@lls/typings/utils';
|
|
2
|
-
import type { EditorFromTextArea } from 'codemirror';
|
|
3
|
-
export type CodemirrorEditorProps = {
|
|
4
|
-
readOnly?: boolean;
|
|
5
|
-
onChange?: AnyFunction;
|
|
6
|
-
keyMap: unknown;
|
|
7
|
-
componentDidMount?: (component: EditorFromTextArea) => void;
|
|
8
|
-
value?: string;
|
|
9
|
-
onError?: AnyFunction;
|
|
10
|
-
};
|
|
11
|
-
declare const CodemirrorEditor: ({ readOnly, onChange, keyMap, componentDidMount, value, onError }: CodemirrorEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default CodemirrorEditor;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PrimaryPage, Word } from '@lls/store';
|
|
3
|
-
import type { AnyFunction } from '@lls/typings/utils';
|
|
4
|
-
export type EditorNextProps = {
|
|
5
|
-
template: PrimaryPage;
|
|
6
|
-
bookDisplayTitle?: string;
|
|
7
|
-
onChange?: AnyFunction;
|
|
8
|
-
onSubmit?: AnyFunction;
|
|
9
|
-
notions?: string[];
|
|
10
|
-
words?: Word[];
|
|
11
|
-
summaryElement?: JSX.Element | null;
|
|
12
|
-
summaryButtonElement?: JSX.Element | null;
|
|
13
|
-
settingsElements?: JSX.Element | null;
|
|
14
|
-
};
|
|
15
|
-
declare const EditorNext: React.ForwardRefExoticComponent<EditorNextProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export default EditorNext;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PrimaryAudioWord } from '@lls/store';
|
|
2
|
-
import { type GridItem, type GridItemElement } from '#vivi/utils/template';
|
|
3
|
-
declare const AudioWord: ({ audioWord, gridItem, zoneVisibilityCounter }: {
|
|
4
|
-
audioWord: GridItemElement<PrimaryAudioWord>;
|
|
5
|
-
gridItem: GridItem;
|
|
6
|
-
zoneVisibilityCounter?: number;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default AudioWord;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PrimaryCorrection } from '@lls/store';
|
|
2
|
-
import { type GridItem, type GridItemElement } from '#vivi/utils/template';
|
|
3
|
-
declare const Correction: ({ zone, gridItem, zoneVisibilityCounter, correctionPicture }: {
|
|
4
|
-
zone: GridItemElement<PrimaryCorrection>;
|
|
5
|
-
gridItem: GridItem;
|
|
6
|
-
zoneVisibilityCounter?: number;
|
|
7
|
-
correctionPicture?: string;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default Correction;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PrimaryDefinition } from '@lls/store';
|
|
2
|
-
import { type GridItem, type GridItemElement } from '#vivi/utils/template';
|
|
3
|
-
declare const DefinitionWord: ({ definitionWord, gridItem, zoneVisibilityCounter, pageId, docId }: {
|
|
4
|
-
definitionWord: GridItemElement<PrimaryDefinition>;
|
|
5
|
-
gridItem: GridItem;
|
|
6
|
-
zoneVisibilityCounter?: number;
|
|
7
|
-
pageId?: number;
|
|
8
|
-
docId: string;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default DefinitionWord;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PrimaryDoc, PrimaryLayoutItem, PrimaryZoneElement, PrimaryZoneElementTypeCategory } from '@lls/store';
|
|
2
|
-
import type { ReactChildren, ReactSetState } from '@lls/typings/react';
|
|
3
|
-
import type { GridItem } from '#vivi/utils/template';
|
|
4
|
-
type EditZoneModalProps = {
|
|
5
|
-
gridItems: Map<string, GridItem>;
|
|
6
|
-
pictureSource: string | undefined;
|
|
7
|
-
layoutItems: PrimaryLayoutItem[];
|
|
8
|
-
selectedZoneIndex: number;
|
|
9
|
-
rotateDocument: (uuid: string, rotation: number) => void;
|
|
10
|
-
onUpdateLayoutItem: (newLayoutItem: PrimaryLayoutItem) => void;
|
|
11
|
-
onAddZoneElement: (uuid: string, type: PrimaryZoneElementTypeCategory, newChild: PrimaryZoneElement) => void;
|
|
12
|
-
onUpdateZoneElement: (uuid: string, type: PrimaryZoneElementTypeCategory, newZoneElement: PrimaryZoneElement) => void;
|
|
13
|
-
onDeleteZoneElement: (uuid: string, type: PrimaryZoneElementTypeCategory, zoneElementId: string) => void;
|
|
14
|
-
setSelectedZoneIndex: ReactSetState<number | undefined>;
|
|
15
|
-
children: ReactChildren;
|
|
16
|
-
templateChildren: PrimaryDoc[] | undefined;
|
|
17
|
-
};
|
|
18
|
-
declare const EditZoneModal: (props: EditZoneModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export default EditZoneModal;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PrimaryLayoutItem } from '@lls/store';
|
|
2
|
-
import type { ReactChildren } from '@lls/typings/react';
|
|
3
|
-
type FullscreenProps = {
|
|
4
|
-
doc: PrimaryLayoutItem;
|
|
5
|
-
children: ReactChildren;
|
|
6
|
-
};
|
|
7
|
-
declare const FullscreenDoc: ({ doc, children }: FullscreenProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
export default FullscreenDoc;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PrimaryPicWord } from '@lls/store';
|
|
2
|
-
import { type GridItem, type GridItemElement } from '#vivi/utils/template';
|
|
3
|
-
declare const PicWord: ({ picWord, gridItem, zoneVisibilityCounter, pageId, docId }: {
|
|
4
|
-
picWord: GridItemElement<PrimaryPicWord>;
|
|
5
|
-
gridItem: GridItem;
|
|
6
|
-
zoneVisibilityCounter?: number;
|
|
7
|
-
pageId?: number;
|
|
8
|
-
docId?: string;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default PicWord;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PrimarySubZone } from '@lls/store';
|
|
2
|
-
import { type GridItem, type GridItemElement } from '#vivi/utils/template';
|
|
3
|
-
declare const SubZone: ({ zone, gridItem, zoneVisibilityCounter, index, showSubZone }: {
|
|
4
|
-
zone: GridItemElement<PrimarySubZone>;
|
|
5
|
-
gridItem: GridItem;
|
|
6
|
-
zoneVisibilityCounter?: number;
|
|
7
|
-
index: number;
|
|
8
|
-
showSubZone: (subZoneId: string, subZoneIndex: number) => void;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default SubZone;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PrimaryLayoutItem } from '@lls/store';
|
|
2
|
-
type CoordinatesProps = {
|
|
3
|
-
zone: PrimaryLayoutItem;
|
|
4
|
-
onUpdateZone: (prop: 'x' | 'y' | 'w' | 'h', alue: string) => void;
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const ZoneCoordinates: ({ className, zone, onUpdateZone }: CoordinatesProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default ZoneCoordinates;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { PrimaryLayoutItem, PrimaryZoneElement, Rect } from '@lls/store';
|
|
2
|
-
import type { ReactSetState } from '@lls/typings/react';
|
|
3
|
-
import type { GridItem } from '#vivi/utils/template';
|
|
4
|
-
type ZoneMakerProps<T> = {
|
|
5
|
-
gridItem?: GridItem;
|
|
6
|
-
pictureSource?: string;
|
|
7
|
-
zoneList: {
|
|
8
|
-
item: T;
|
|
9
|
-
displayRect?: Rect;
|
|
10
|
-
}[];
|
|
11
|
-
onChangeZone: (newZone: T) => void;
|
|
12
|
-
setSelectedZoneIndex?: ReactSetState<number | undefined>;
|
|
13
|
-
withPageDivider?: boolean;
|
|
14
|
-
};
|
|
15
|
-
declare const ZoneMaker: <T extends PrimaryLayoutItem | PrimaryZoneElement>({ gridItem, pictureSource, zoneList, onChangeZone, setSelectedZoneIndex, withPageDivider }: ZoneMakerProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default ZoneMaker;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ReactChildren } from '@lls/typings/react';
|
|
2
|
-
import type { GridItem } from '#vivi/utils/template';
|
|
3
|
-
type ZoomedPictureProps = {
|
|
4
|
-
gridItem?: Pick<GridItem, 'pictureSize' | 'pictureRatio' | 'pictureAbsolutePosition' | 'rotation'>;
|
|
5
|
-
pictureSource?: string;
|
|
6
|
-
borderColor?: string;
|
|
7
|
-
needHeight?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
children?: ReactChildren;
|
|
10
|
-
};
|
|
11
|
-
declare const ZoomedPicture: ({ gridItem, pictureSource, className, needHeight, children }: ZoomedPictureProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default ZoomedPicture;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
-
import type { PrimaryLayoutItem } from '@lls/store';
|
|
3
|
-
import type { ReactChildren } from '@lls/typings/react';
|
|
4
|
-
type SortableGridProps = {
|
|
5
|
-
items: PrimaryLayoutItem[];
|
|
6
|
-
children: ReactChildren;
|
|
7
|
-
onSortZone: (activeZoneId: UniqueIdentifier, overZoneId: UniqueIdentifier) => void;
|
|
8
|
-
};
|
|
9
|
-
declare const SortableGrid: ({ items, children, onSortZone }: SortableGridProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default SortableGrid;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ReactChildren } from '@lls/typings/react';
|
|
2
|
-
type SortableItemProps = {
|
|
3
|
-
id: string;
|
|
4
|
-
children: ReactChildren;
|
|
5
|
-
};
|
|
6
|
-
declare const SortableItem: ({ id, children }: SortableItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default SortableItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IS_PROD: boolean;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UiState } from '#vivi/types/common';
|
|
2
|
-
export declare const VIVI_CLASSNAME = "lls-vivi";
|
|
3
|
-
export declare const VIVI_COMPONENT_CLASSNAME_PREFIX = "lls-vivi-";
|
|
4
|
-
export declare const DOCUMENT_CLASSNAME = "lls-vivi-document-root";
|
|
5
|
-
export declare const UI_INIT: UiState;
|