seat-editor 2.0.0 → 2.1.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/package.json +1 -1
- package/dist/app/constant.d.ts +0 -101
- package/dist/app/constant.js +0 -3064
- package/dist/app/layout.d.ts +0 -6
- package/dist/app/layout.jsx +0 -27
- package/dist/app/new-board/page.d.ts +0 -1
- package/dist/app/new-board/page.jsx +0 -56
- package/dist/app/old-board/page.d.ts +0 -3
- package/dist/app/old-board/page.jsx +0 -510
- package/dist/app/only-view/constant.d.ts +0 -40
- package/dist/app/only-view/constant.js +0 -1336
- package/dist/app/only-view/page.d.ts +0 -2
- package/dist/app/only-view/page.jsx +0 -40
- package/dist/app/page.d.ts +0 -2
- package/dist/app/page.jsx +0 -13
- package/dist/app/test/page.d.ts +0 -2
- package/dist/app/test/page.jsx +0 -45
- package/dist/app/v2/page.d.ts +0 -2
- package/dist/app/v2/page.jsx +0 -13
- package/dist/components/button-tools/index.d.ts +0 -11
- package/dist/components/button-tools/index.jsx +0 -17
- package/dist/components/form-tools/label.d.ts +0 -2
- package/dist/components/form-tools/label.jsx +0 -44
- package/dist/components/form-tools/shape.d.ts +0 -4
- package/dist/components/form-tools/shape.jsx +0 -66
- package/dist/components/input/number-indicator.d.ts +0 -7
- package/dist/components/input/number-indicator.jsx +0 -36
- package/dist/components/joystick/index.d.ts +0 -12
- package/dist/components/joystick/index.jsx +0 -49
- package/dist/components/layer/index.d.ts +0 -19
- package/dist/components/layer/index.jsx +0 -383
- package/dist/components/layer-v2/index.d.ts +0 -19
- package/dist/components/layer-v2/index.jsx +0 -370
- package/dist/components/layer-v3/index.d.ts +0 -19
- package/dist/components/layer-v3/index.jsx +0 -418
- package/dist/components/lib/index.d.ts +0 -8
- package/dist/components/lib/index.jsx +0 -33
- package/dist/components/modal-preview/index.d.ts +0 -4
- package/dist/components/modal-preview/index.jsx +0 -11
- package/dist/features/board/board-slice.d.ts +0 -14
- package/dist/features/board/board-slice.js +0 -52
- package/dist/features/board/index.d.ts +0 -6
- package/dist/features/board/index.jsx +0 -725
- package/dist/features/board-v2/board-slice.d.ts +0 -14
- package/dist/features/board-v2/board-slice.js +0 -52
- package/dist/features/board-v2/index.d.ts +0 -8
- package/dist/features/board-v2/index.jsx +0 -869
- package/dist/features/board-v3/board-slice.d.ts +0 -16
- package/dist/features/board-v3/board-slice.js +0 -83
- package/dist/features/board-v3/history-slice.d.ts +0 -27
- package/dist/features/board-v3/history-slice.js +0 -27
- package/dist/features/board-v3/index.d.ts +0 -8
- package/dist/features/board-v3/index.jsx +0 -863
- package/dist/features/navbar/index.d.ts +0 -2
- package/dist/features/navbar/index.jsx +0 -5
- package/dist/features/package/index.d.ts +0 -31
- package/dist/features/package/index.jsx +0 -114
- package/dist/features/panel/index.d.ts +0 -11
- package/dist/features/panel/index.jsx +0 -138
- package/dist/features/panel/panel-slice.d.ts +0 -16
- package/dist/features/panel/panel-slice.js +0 -31
- package/dist/features/panel/select-tool.d.ts +0 -6
- package/dist/features/panel/select-tool.jsx +0 -60
- package/dist/features/panel/square-circle-tool.d.ts +0 -2
- package/dist/features/panel/square-circle-tool.jsx +0 -10
- package/dist/features/panel/table-seat-circle.d.ts +0 -2
- package/dist/features/panel/table-seat-circle.jsx +0 -31
- package/dist/features/panel/text-tool.d.ts +0 -2
- package/dist/features/panel/text-tool.jsx +0 -26
- package/dist/features/panel/upload-tool.d.ts +0 -14
- package/dist/features/panel/upload-tool.jsx +0 -152
- package/dist/features/side-tool/index.d.ts +0 -8
- package/dist/features/side-tool/index.jsx +0 -371
- package/dist/features/side-tool/side-tool-slice.d.ts +0 -16
- package/dist/features/side-tool/side-tool-slice.js +0 -28
- package/dist/features/theme/theme-slice.d.ts +0 -12
- package/dist/features/theme/theme-slice.js +0 -15
- package/dist/features/view/index.d.ts +0 -19
- package/dist/features/view/index.jsx +0 -228
- package/dist/features/view-only/index.d.ts +0 -19
- package/dist/features/view-only/index.jsx +0 -206
- package/dist/features/view-only-2/index.d.ts +0 -19
- package/dist/features/view-only-2/index.jsx +0 -181
- package/dist/hooks/use-redux.d.ts +0 -4
- package/dist/hooks/use-redux.js +0 -3
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -8
- package/dist/libs/middleware.d.ts +0 -2
- package/dist/libs/middleware.js +0 -5
- package/dist/libs/rootReducer.d.ts +0 -12
- package/dist/libs/rootReducer.js +0 -14
- package/dist/libs/store.d.ts +0 -18
- package/dist/libs/store.js +0 -19
- package/dist/provider/antd-provider.d.ts +0 -4
- package/dist/provider/antd-provider.jsx +0 -46
- package/dist/provider/redux-provider.d.ts +0 -3
- package/dist/provider/redux-provider.jsx +0 -6
- package/dist/provider/store-provider.d.ts +0 -4
- package/dist/provider/store-provider.jsx +0 -10
- package/dist/utils/injectCss.d.ts +0 -1
- package/dist/utils/injectCss.js +0 -13
package/dist/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StoreProvider } from "./provider/store-provider";
|
|
2
|
-
import Board from "./features/board";
|
|
3
|
-
import SideTool from "./features/side-tool";
|
|
4
|
-
import ControlPanels from "./features/panel";
|
|
5
|
-
import LayerView, { type LayerViewProps } from "./features/view-only";
|
|
6
|
-
import LayerView2, { type LayerViewProps as LayerViewProps2 } from "./features/view-only-2";
|
|
7
|
-
import TableEditor from "./features/package";
|
|
8
|
-
export { StoreProvider as ProviderSeatEditor, Board, SideTool, ControlPanels, LayerView, LayerView2, LayerViewProps2, LayerViewProps, TableEditor as SeatEditor };
|
package/dist/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StoreProvider } from "./provider/store-provider";
|
|
2
|
-
import Board from "./features/board";
|
|
3
|
-
import SideTool from "./features/side-tool";
|
|
4
|
-
import ControlPanels from "./features/panel";
|
|
5
|
-
import LayerView from "./features/view-only";
|
|
6
|
-
import LayerView2 from "./features/view-only-2";
|
|
7
|
-
import TableEditor from "./features/package";
|
|
8
|
-
export { StoreProvider as ProviderSeatEditor, Board, SideTool, ControlPanels, LayerView, LayerView2, TableEditor as SeatEditor };
|
package/dist/libs/middleware.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const rootReducer: import("redux").Reducer<{
|
|
2
|
-
board: import("../features/board-v3/board-slice").InitialState;
|
|
3
|
-
tool: import("../features/side-tool/side-tool-slice").ToolState;
|
|
4
|
-
panel: import("../features/panel/panel-slice").PanelState;
|
|
5
|
-
theme: import("../features/theme/theme-slice").ThemeProps;
|
|
6
|
-
}, import("redux").UnknownAction, Partial<{
|
|
7
|
-
board: import("../features/board-v3/board-slice").InitialState;
|
|
8
|
-
tool: import("../features/side-tool/side-tool-slice").ToolState;
|
|
9
|
-
panel: import("../features/panel/panel-slice").PanelState;
|
|
10
|
-
theme: import("../features/theme/theme-slice").ThemeProps;
|
|
11
|
-
}>>;
|
|
12
|
-
export type RootState = ReturnType<typeof rootReducer>;
|
package/dist/libs/rootReducer.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { combineReducers } from "redux";
|
|
3
|
-
import boardSlice from "../features/board-v3/board-slice";
|
|
4
|
-
import sideTool from "../features/side-tool/side-tool-slice";
|
|
5
|
-
import panelSlice from "../features/panel/panel-slice";
|
|
6
|
-
import themeSlice from "../features/theme/theme-slice";
|
|
7
|
-
export const rootReducer = combineReducers({
|
|
8
|
-
// Add your reducers here
|
|
9
|
-
board: boardSlice,
|
|
10
|
-
tool: sideTool,
|
|
11
|
-
panel: panelSlice,
|
|
12
|
-
theme: themeSlice
|
|
13
|
-
// Example: user: userReducer,
|
|
14
|
-
});
|
package/dist/libs/store.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Action, ThunkAction } from "@reduxjs/toolkit";
|
|
2
|
-
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
3
|
-
board: import("../features/board-v3/board-slice").InitialState;
|
|
4
|
-
tool: import("../features/side-tool/side-tool-slice").ToolState;
|
|
5
|
-
panel: import("../features/panel/panel-slice").PanelState;
|
|
6
|
-
theme: import("../features/theme/theme-slice").ThemeProps;
|
|
7
|
-
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
8
|
-
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
9
|
-
board: import("../features/board-v3/board-slice").InitialState;
|
|
10
|
-
tool: import("../features/side-tool/side-tool-slice").ToolState;
|
|
11
|
-
panel: import("../features/panel/panel-slice").PanelState;
|
|
12
|
-
theme: import("../features/theme/theme-slice").ThemeProps;
|
|
13
|
-
}, undefined, import("redux").UnknownAction>;
|
|
14
|
-
}>, import("redux").StoreEnhancer]>>;
|
|
15
|
-
export type AppDispatch = typeof store.dispatch;
|
|
16
|
-
export type RootState = ReturnType<typeof store.getState>;
|
|
17
|
-
export type AppThunk = ThunkAction<void, RootState, unknown, Action<string>>;
|
|
18
|
-
export type AppStore = typeof store;
|
package/dist/libs/store.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { configureStore } from "@reduxjs/toolkit";
|
|
3
|
-
import { rootReducer } from "./rootReducer";
|
|
4
|
-
import { logger } from "redux-logger";
|
|
5
|
-
import { middleware } from "./middleware";
|
|
6
|
-
import { FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER } from "redux-persist";
|
|
7
|
-
if (process.env.NODE_ENV === "development") {
|
|
8
|
-
middleware.push(logger);
|
|
9
|
-
}
|
|
10
|
-
// const rootPersistReducer = persistReducer<RootState>(rootPersistConfig, rootReducer);
|
|
11
|
-
export const store = configureStore({
|
|
12
|
-
reducer: rootReducer,
|
|
13
|
-
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
14
|
-
serializableCheck: {
|
|
15
|
-
ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
|
|
16
|
-
},
|
|
17
|
-
}).concat(middleware),
|
|
18
|
-
devTools: process.env.NODE_ENV !== "production",
|
|
19
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
import { ConfigProvider } from "antd";
|
|
4
|
-
import { AntdRegistry } from "@ant-design/nextjs-registry";
|
|
5
|
-
import { useAppSelector, useAppDispatch } from "../hooks/use-redux";
|
|
6
|
-
export const AntdProvider = ({ children, themeColor }) => {
|
|
7
|
-
const dispatch = useAppDispatch();
|
|
8
|
-
const theme = useAppSelector((state) => state.theme);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
if (themeColor !== theme.primaryColor) {
|
|
11
|
-
dispatch({
|
|
12
|
-
type: "theme/setPrimaryColor",
|
|
13
|
-
payload: themeColor
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
}, [themeColor]);
|
|
17
|
-
return (<AntdRegistry>
|
|
18
|
-
<ConfigProvider theme={{
|
|
19
|
-
token: {
|
|
20
|
-
colorPrimary: themeColor,
|
|
21
|
-
},
|
|
22
|
-
// token: {
|
|
23
|
-
// colorPrimary: theme.theme["--primary-color"],
|
|
24
|
-
// colorPrimaryBorderHover: theme.theme["--primary-color"],
|
|
25
|
-
// fontFamily: "var(--font-inter), sans-serif",
|
|
26
|
-
// colorError: theme.theme["--danger"],
|
|
27
|
-
// controlOutlineWidth: 4,
|
|
28
|
-
// controlOutline: theme.theme["--surface-color"],
|
|
29
|
-
// colorBgContainerDisabled: "var(--netral-03)",
|
|
30
|
-
// colorTextPlaceholder: "var(--netral-06)",
|
|
31
|
-
// },
|
|
32
|
-
components: {
|
|
33
|
-
Form: {
|
|
34
|
-
labelFontSize: 14,
|
|
35
|
-
fontWeightStrong: 500,
|
|
36
|
-
itemMarginBottom: 12,
|
|
37
|
-
},
|
|
38
|
-
Button: {
|
|
39
|
-
colorPrimary: themeColor
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
}}>
|
|
43
|
-
{children}
|
|
44
|
-
</ConfigProvider>
|
|
45
|
-
</AntdRegistry>);
|
|
46
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { ReduxProvider } from "./redux-provider";
|
|
3
|
-
import { AntdProvider } from "./antd-provider";
|
|
4
|
-
import { injectSeatEditorCSS } from "../utils/injectCss";
|
|
5
|
-
export const StoreProvider = ({ children, themeColor = "red", }) => {
|
|
6
|
-
injectSeatEditorCSS();
|
|
7
|
-
return (<ReduxProvider>
|
|
8
|
-
<AntdProvider themeColor={themeColor}>{children}</AntdProvider>
|
|
9
|
-
</ReduxProvider>);
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const injectSeatEditorCSS: () => void;
|
package/dist/utils/injectCss.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// src/utils/injectCss.ts
|
|
2
|
-
export const injectSeatEditorCSS = () => {
|
|
3
|
-
if (typeof document !== 'undefined') {
|
|
4
|
-
const id = '__seat-editor-css__';
|
|
5
|
-
if (!document.getElementById(id)) {
|
|
6
|
-
const link = document.createElement('link');
|
|
7
|
-
link.id = id;
|
|
8
|
-
link.rel = 'stylesheet';
|
|
9
|
-
link.href = '/node_modules/seat-editor/dist/seat-editor.css'; // atau dynamic import
|
|
10
|
-
document.head.appendChild(link);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
};
|