@machinerd/js-module 0.11.0 → 0.11.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/dist/{api-client-xK3Ua3Gr.mjs → api-client-D2UDU0fw.mjs} +1 -1
- package/dist/{api-client-BXH8Rm-J.cjs → api-client-D7WV9lod.cjs} +1 -1
- package/dist/{basic-image-D26zahpC.mjs → basic-image-C_Q1qL3X.mjs} +1 -1
- package/dist/{basic-image-Wl0IBgOX.cjs → basic-image-DqKtJzvC.cjs} +1 -1
- package/dist/editor/index.cjs +1 -1
- package/dist/editor/index.d.cts +6 -6
- package/dist/editor/index.d.mts +5 -5
- package/dist/editor/index.mjs +1 -1
- package/dist/editor/nodes/basic-image/index.cjs +1 -1
- package/dist/editor/nodes/basic-image/index.d.cts +3 -3
- package/dist/editor/nodes/basic-image/index.d.mts +3 -3
- package/dist/editor/nodes/basic-image/index.mjs +1 -1
- package/dist/editor/nodes/custom-heading/index.d.cts +1 -1
- package/dist/editor/nodes/menu-wrapper/index.d.cts +9 -9
- package/dist/editor/nodes/menu-wrapper/index.d.mts +9 -9
- package/dist/editor/nodes/node-resize/index.d.cts +6 -6
- package/dist/editor/nodes/node-resize/index.d.mts +6 -6
- package/dist/editor/nodes/node-size/index.d.cts +2 -2
- package/dist/editor/nodes/node-size/index.d.mts +2 -2
- package/dist/editor/nodes/node-view-context/index.d.cts +1 -1
- package/dist/editor/nodes/node-view-context/index.d.mts +1 -1
- package/dist/editor/nodes/subset-image/index.cjs +1 -1
- package/dist/editor/nodes/subset-image/index.d.cts +3 -3
- package/dist/editor/nodes/subset-image/index.d.mts +3 -3
- package/dist/editor/nodes/subset-image/index.mjs +1 -1
- package/dist/editor/nodes/tabs/index.d.cts +1 -1
- package/dist/editor/nodes/tabs/index.d.mts +1 -1
- package/dist/hooks/use-drag-scroll/index.d.mts +2 -2
- package/dist/hooks/use-scroll-top/index.d.cts +2 -2
- package/dist/hooks/use-sticky/index.d.cts +2 -2
- package/dist/hooks/use-subset-image/index.cjs +1 -1
- package/dist/hooks/use-subset-image/index.mjs +1 -1
- package/dist/{image-kIL2PjTS.cjs → image-BH4lb2K5.cjs} +1 -1
- package/dist/{image-CAEWHuaM.mjs → image-DCRvyqH3.mjs} +1 -1
- package/dist/{index-CqZGdObz.d.mts → index-BE0yu6JW.d.mts} +2 -2
- package/dist/{index-DHXj3w9p.d.mts → index-BHIPhj3k.d.mts} +4 -4
- package/dist/index-BHsUbtLC.d.cts +11 -0
- package/dist/{index-D_Hfb-z2.d.cts → index-BKn2KTaw.d.cts} +7 -7
- package/dist/{index-BJgz2hkX.d.cts → index-BMxk2WJs.d.mts} +7 -7
- package/dist/{index-BTUIpavj.d.mts → index-Bokh2eMG.d.mts} +6 -6
- package/dist/{index-CV-nhdHd.d.mts → index-ByhcgmSd.d.cts} +3 -3
- package/dist/{index-BD2sHM7a.d.cts → index-C-4QxPEj.d.cts} +6 -6
- package/dist/{index-BlQhHmTa.d.cts → index-CFP0MOF3.d.mts} +9 -9
- package/dist/{index-DDG8MvPD.d.mts → index-CLS7OQza.d.cts} +9 -9
- package/dist/{index-BKqI0jBF.d.mts → index-CN8vImmH.d.cts} +7 -7
- package/dist/{index-BMZtFPh-.d.cts → index-CTp6ZndQ.d.mts} +3 -3
- package/dist/{index-DvEtYdm4.d.cts → index-Cjrxf1Di.d.cts} +4 -4
- package/dist/{index-X2XMkoEC.d.mts → index-CoMstKUb.d.cts} +4 -4
- package/dist/{index-BT7Y7xkm.d.cts → index-CvoFIe_Y.d.cts} +2 -2
- package/dist/{index-DEolXbf5.d.cts → index-DEbgGPvL.d.mts} +4 -4
- package/dist/{index-DCzaZKG0.d.cts → index-DOLVFIAi.d.cts} +2 -2
- package/dist/{index-DrUJZDtK.d.cts → index-F4q_POK6.d.mts} +4 -4
- package/dist/{index-DSVr-P8y.d.mts → index-LJemrhZD.d.mts} +7 -7
- package/dist/{index-BoJg4HO3.d.mts → index-PHOOF3aY.d.cts} +7 -7
- package/dist/index-qmN89543.d.mts +11 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/providers/api-client/index.cjs +1 -1
- package/dist/providers/api-client/index.d.cts +3 -3
- package/dist/providers/api-client/index.d.mts +3 -3
- package/dist/providers/api-client/index.mjs +1 -1
- package/dist/providers/editor/index.d.cts +2 -2
- package/dist/providers/editor/index.d.mts +2 -2
- package/dist/providers/noti-stack/index.d.cts +2 -2
- package/dist/providers/noti-stack/index.d.mts +2 -2
- package/dist/src-DuOwAcib.cjs +1 -0
- package/dist/src-blAkna22.mjs +1 -0
- package/dist/{subset-image-AaZA0RuB.cjs → subset-image-Bukna29P.cjs} +1 -1
- package/dist/{subset-image-DnZ2TqZY.mjs → subset-image-C7qO8AiN.mjs} +1 -1
- package/dist/ui/admin/async-select-field/index.d.cts +4 -4
- package/dist/ui/admin/async-select-field/index.d.mts +4 -4
- package/dist/ui/admin/country-select/index.d.cts +9 -9
- package/dist/ui/admin/country-select/index.d.mts +9 -9
- package/dist/ui/admin/dropzone-field/index.cjs +1 -1
- package/dist/ui/admin/dropzone-field/index.d.cts +12 -12
- package/dist/ui/admin/dropzone-field/index.d.mts +12 -12
- package/dist/ui/admin/dropzone-field/index.mjs +1 -1
- package/dist/ui/admin/email-field/index.d.cts +4 -4
- package/dist/ui/admin/email-field/index.d.mts +4 -4
- package/dist/ui/admin/file-field/index.d.cts +5 -5
- package/dist/ui/admin/file-field/index.d.mts +5 -5
- package/dist/ui/admin/image-list-field/index.cjs +1 -1
- package/dist/ui/admin/image-list-field/index.d.cts +7 -7
- package/dist/ui/admin/image-list-field/index.d.mts +7 -7
- package/dist/ui/admin/image-list-field/index.mjs +1 -1
- package/dist/ui/admin/label/index.d.cts +1 -1
- package/dist/ui/admin/label/index.d.mts +1 -1
- package/dist/ui/admin/priority-field/index.cjs +1 -1
- package/dist/ui/admin/priority-field/index.d.cts +3 -3
- package/dist/ui/admin/priority-field/index.d.mts +3 -3
- package/dist/ui/admin/priority-field/index.mjs +1 -1
- package/dist/ui/admin/select-field/index.d.cts +2 -2
- package/dist/ui/admin/select-field/index.d.mts +2 -2
- package/dist/ui/admin/series-field/index.d.cts +5 -5
- package/dist/ui/admin/series-field/index.d.mts +5 -5
- package/dist/ui/admin/sns-field/index.d.cts +4 -4
- package/dist/ui/admin/sns-field/index.d.mts +4 -4
- package/dist/ui/admin/source-field/index.d.cts +4 -4
- package/dist/ui/admin/source-field/index.d.mts +4 -4
- package/dist/ui/admin/text-area-field/index.d.cts +6 -6
- package/dist/ui/admin/text-area-field/index.d.mts +6 -6
- package/dist/ui/admin/text-field/index.d.cts +2 -2
- package/dist/ui/admin/text-field/index.d.mts +2 -2
- package/dist/ui/admin/url-field/index.d.cts +4 -4
- package/dist/ui/admin/url-field/index.d.mts +4 -4
- package/dist/ui/admin/video-field/index.d.cts +4 -4
- package/dist/ui/admin/video-field/index.d.mts +4 -4
- package/dist/ui/admin/with-extra-field/index.d.cts +3 -3
- package/dist/ui/admin/with-extra-field/index.d.mts +3 -3
- package/dist/ui/bottom-app-bar/index.d.cts +3 -3
- package/dist/ui/bottom-app-bar/index.d.mts +1 -1
- package/dist/ui/button/index.d.cts +10 -10
- package/dist/ui/button/index.d.mts +12 -12
- package/dist/ui/carousel/index.d.cts +9 -9
- package/dist/ui/carousel/index.d.mts +9 -9
- package/dist/ui/conditional-wrapper/index.d.cts +3 -3
- package/dist/ui/country-flag/index.d.cts +2 -2
- package/dist/ui/dialog/index.d.cts +6 -6
- package/dist/ui/dialog/index.d.mts +6 -6
- package/dist/ui/dnd/index.d.cts +2 -2
- package/dist/ui/dropdown/index.d.cts +2 -2
- package/dist/ui/dropdown/index.d.mts +2 -2
- package/dist/ui/image/index.cjs +1 -1
- package/dist/ui/image/index.d.cts +1 -1
- package/dist/ui/image/index.d.mts +1 -1
- package/dist/ui/image/index.mjs +1 -1
- package/dist/ui/input/index.d.cts +8 -8
- package/dist/ui/input/index.d.mts +8 -8
- package/dist/ui/radius-handler/index.d.cts +2 -2
- package/dist/ui/radius-handler/index.d.mts +2 -2
- package/dist/ui/sheet/index.d.cts +2 -2
- package/dist/ui/sheet/index.d.mts +2 -2
- package/dist/ui/skeleton/index.d.cts +4 -4
- package/dist/ui/skeleton/index.d.mts +6 -6
- package/dist/ui/stable-text/index.d.cts +2 -2
- package/dist/ui/stable-text/index.d.mts +2 -2
- package/dist/ui/tooltip/index.d.cts +2 -2
- package/dist/ui/tooltip/index.d.mts +2 -2
- package/dist/{use-subset-image-B9ZSiVjx.mjs → use-subset-image-DfYVewmw.mjs} +1 -1
- package/dist/{use-subset-image-BUurDItP.cjs → use-subset-image-wa7xQOwx.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-C_YTuhwX.d.mts +0 -11
- package/dist/index-D-NPxMFr.d.cts +0 -11
- package/dist/src-BB55dPBE.mjs +0 -1
- package/dist/src-Dz1mULYA.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AlignType } from "./index-D5uh7klO.mjs";
|
|
2
|
-
import { n as NodeViewPlugin } from "./index-
|
|
3
|
-
import { r as NodeSizePluginOptions } from "./index-
|
|
4
|
-
import * as
|
|
2
|
+
import { n as NodeViewPlugin } from "./index-BHIPhj3k.mjs";
|
|
3
|
+
import { r as NodeSizePluginOptions } from "./index-CTp6ZndQ.mjs";
|
|
4
|
+
import * as _tiptap_core5 from "@tiptap/core";
|
|
5
5
|
import { Node as Node$1, NodeViewProps as NodeViewProps$1 } from "@tiptap/react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/editor/nodes/subset-image/subset-image.d.ts
|
|
9
9
|
declare const SUBSET_IMAGE: {
|
|
@@ -24,8 +24,8 @@ declare const imageNodePlugins: (size?: NodeSizePluginOptions) => NodeViewPlugin
|
|
|
24
24
|
declare const IMAGE_NODE_PLUGINS: NodeViewPlugin[];
|
|
25
25
|
declare const SubsetImageNodeView: ({
|
|
26
26
|
node
|
|
27
|
-
}: NodeViewProps$1) =>
|
|
28
|
-
declare const subsetImageNodeView: (plugins?: NodeViewPlugin[], size?: NodeSizePluginOptions) =>
|
|
27
|
+
}: NodeViewProps$1) => react_jsx_runtime15.JSX.Element;
|
|
28
|
+
declare const subsetImageNodeView: (plugins?: NodeViewPlugin[], size?: NodeSizePluginOptions) => _tiptap_core5.NodeViewRenderer;
|
|
29
29
|
declare const SubsetImage: Node$1<{
|
|
30
30
|
plugins: NodeViewPlugin[];
|
|
31
31
|
size?: NodeSizePluginOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as NodeViewPlugin } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { n as NodeViewPlugin } from "./index-Cjrxf1Di.cjs";
|
|
2
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/nodes/node-size/node-size.d.ts
|
|
5
5
|
interface NodeSizeProps {
|
|
@@ -30,7 +30,7 @@ declare const NodeSize: ({
|
|
|
30
30
|
maxWidth,
|
|
31
31
|
maxHeight,
|
|
32
32
|
className
|
|
33
|
-
}: NodeSizeProps) =>
|
|
33
|
+
}: NodeSizeProps) => react_jsx_runtime53.JSX.Element;
|
|
34
34
|
interface NodeSizePluginOptions {
|
|
35
35
|
minWidth?: number;
|
|
36
36
|
minHeight?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as AlignType } from "./index-BxqkZ148.cjs";
|
|
2
|
-
import { n as NodeViewPlugin } from "./index-
|
|
3
|
-
import { r as NodeSizePluginOptions } from "./index-
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
2
|
+
import { n as NodeViewPlugin } from "./index-Cjrxf1Di.cjs";
|
|
3
|
+
import { r as NodeSizePluginOptions } from "./index-ByhcgmSd.cjs";
|
|
4
|
+
import * as _tiptap_core5 from "@tiptap/core";
|
|
5
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
6
6
|
import { Node as Node$1, NodeViewProps as NodeViewProps$1 } from "@tiptap/react";
|
|
7
7
|
|
|
8
8
|
//#region src/editor/nodes/subset-image/subset-image.d.ts
|
|
@@ -24,8 +24,8 @@ declare const imageNodePlugins: (size?: NodeSizePluginOptions) => NodeViewPlugin
|
|
|
24
24
|
declare const IMAGE_NODE_PLUGINS: NodeViewPlugin[];
|
|
25
25
|
declare const SubsetImageNodeView: ({
|
|
26
26
|
node
|
|
27
|
-
}: NodeViewProps$1) =>
|
|
28
|
-
declare const subsetImageNodeView: (plugins?: NodeViewPlugin[], size?: NodeSizePluginOptions) =>
|
|
27
|
+
}: NodeViewProps$1) => react_jsx_runtime51.JSX.Element;
|
|
28
|
+
declare const subsetImageNodeView: (plugins?: NodeViewPlugin[], size?: NodeSizePluginOptions) => _tiptap_core5.NodeViewRenderer;
|
|
29
29
|
declare const SubsetImage: Node$1<{
|
|
30
30
|
plugins: NodeViewPlugin[];
|
|
31
31
|
size?: NodeSizePluginOptions;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as LabelProps } from "./index-
|
|
2
|
-
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
3
|
-
import { ComponentProps } from "react";
|
|
1
|
+
import { n as LabelProps } from "./index-F4q_POK6.mjs";
|
|
4
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
5
5
|
import Select, { ClassNamesConfig, GroupBase } from "react-select";
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types7 from "class-variance-authority/types";
|
|
7
7
|
|
|
8
8
|
//#region src/ui/admin/select-field/select-field.d.ts
|
|
9
9
|
declare const controlClasses: (props?: ({
|
|
10
|
-
rounded?: "sm" | "
|
|
11
|
-
} &
|
|
10
|
+
rounded?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
12
12
|
declare const valueContainerClasses: (props?: ({
|
|
13
|
-
size?: "none" | "sm" | "
|
|
14
|
-
} &
|
|
13
|
+
size?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
15
15
|
interface SelectFieldProps<T, F extends boolean = false> extends ComponentProps<typeof Select<T, F>>, VariantProps<typeof valueContainerClasses>, VariantProps<typeof controlClasses> {
|
|
16
16
|
label?: Omit<LabelProps, 'children'>;
|
|
17
17
|
}
|
|
@@ -26,6 +26,6 @@ declare const SelectField: <T, F extends boolean = false>({
|
|
|
26
26
|
isMulti,
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: SelectFieldProps<T, F>) =>
|
|
29
|
+
}: SelectFieldProps<T, F>) => react_jsx_runtime27.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { valueContainerClasses as a, controlClasses as i, SelectFieldProps as n, baseClassNames as r, SelectField as t };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as LabelProps } from "./index-
|
|
2
|
-
import
|
|
1
|
+
import { n as LabelProps } from "./index-CN8vImmH.cjs";
|
|
2
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
|
-
import
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import Select, { ClassNamesConfig, GroupBase } from "react-select";
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
7
7
|
|
|
8
8
|
//#region src/ui/admin/select-field/select-field.d.ts
|
|
9
9
|
declare const controlClasses: (props?: ({
|
|
10
|
-
rounded?: "sm" | "
|
|
11
|
-
} &
|
|
10
|
+
rounded?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
12
12
|
declare const valueContainerClasses: (props?: ({
|
|
13
|
-
size?: "none" | "sm" | "
|
|
14
|
-
} &
|
|
13
|
+
size?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
15
15
|
interface SelectFieldProps<T, F extends boolean = false> extends ComponentProps<typeof Select<T, F>>, VariantProps<typeof valueContainerClasses>, VariantProps<typeof controlClasses> {
|
|
16
16
|
label?: Omit<LabelProps, 'children'>;
|
|
17
17
|
}
|
|
@@ -26,6 +26,6 @@ declare const SelectField: <T, F extends boolean = false>({
|
|
|
26
26
|
isMulti,
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: SelectFieldProps<T, F>) =>
|
|
29
|
+
}: SelectFieldProps<T, F>) => react_jsx_runtime37.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { valueContainerClasses as a, controlClasses as i, SelectFieldProps as n, baseClassNames as r, SelectField as t };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as class_variance_authority_types10 from "class-variance-authority/types";
|
|
5
5
|
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
6
6
|
|
|
7
7
|
//#region src/ui/admin/label/label.d.ts
|
|
8
8
|
declare const classes: (props?: ({
|
|
9
9
|
required?: boolean | null | undefined;
|
|
10
|
-
gap?: "sm" | "
|
|
11
|
-
} &
|
|
10
|
+
gap?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types10.ClassProp) | undefined) => string;
|
|
12
12
|
declare const helpClasses: (props?: ({
|
|
13
13
|
helpTextColor?: "default" | "primary" | "warning" | "error" | null | undefined;
|
|
14
|
-
} &
|
|
14
|
+
} & class_variance_authority_types10.ClassProp) | undefined) => string;
|
|
15
15
|
interface LabelProps extends VariantProps<typeof classes>, VariantProps<typeof helpClasses> {
|
|
16
16
|
text?: string;
|
|
17
17
|
actions?: ReactNode | null;
|
|
@@ -38,6 +38,6 @@ declare const Label: ({
|
|
|
38
38
|
required,
|
|
39
39
|
className,
|
|
40
40
|
gap
|
|
41
|
-
}: LabelProps) =>
|
|
41
|
+
}: LabelProps) => react_jsx_runtime52.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { LabelProps as n, Label as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as NodeViewPlugin } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { n as NodeViewPlugin } from "./index-BHIPhj3k.mjs";
|
|
2
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/nodes/node-size/node-size.d.ts
|
|
5
5
|
interface NodeSizeProps {
|
|
@@ -30,7 +30,7 @@ declare const NodeSize: ({
|
|
|
30
30
|
maxWidth,
|
|
31
31
|
maxHeight,
|
|
32
32
|
className
|
|
33
|
-
}: NodeSizeProps) =>
|
|
33
|
+
}: NodeSizeProps) => react_jsx_runtime53.JSX.Element;
|
|
34
34
|
interface NodeSizePluginOptions {
|
|
35
35
|
minWidth?: number;
|
|
36
36
|
minHeight?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
2
|
import { NodeViewProps } from "@tiptap/react";
|
|
3
3
|
import { CSSProperties, ComponentType, ReactNode } from "react";
|
|
4
4
|
|
|
@@ -22,8 +22,8 @@ declare const NodeViewChrome: ({
|
|
|
22
22
|
value,
|
|
23
23
|
plugins,
|
|
24
24
|
children
|
|
25
|
-
}: NodeViewChromeProps) =>
|
|
26
|
-
declare const withNodeViewChrome: <P extends NodeViewProps>(View: ComponentType<P>, plugins?: NodeViewPlugin[]) => (props: P) =>
|
|
25
|
+
}: NodeViewChromeProps) => react_jsx_runtime20.JSX.Element;
|
|
26
|
+
declare const withNodeViewChrome: <P extends NodeViewProps>(View: ComponentType<P>, plugins?: NodeViewPlugin[]) => (props: P) => react_jsx_runtime20.JSX.Element;
|
|
27
27
|
interface PluginNodeViewProps {
|
|
28
28
|
className?: string;
|
|
29
29
|
frameClassName?: string;
|
|
@@ -35,6 +35,6 @@ declare const PluginNodeView: ({
|
|
|
35
35
|
frameClassName,
|
|
36
36
|
style,
|
|
37
37
|
children
|
|
38
|
-
}: PluginNodeViewProps) =>
|
|
38
|
+
}: PluginNodeViewProps) => react_jsx_runtime20.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { PluginNodeViewProps as a, withNodeViewChrome as c, PluginNodeView as i, NodeViewPlugin as n, useNodeView as o, NodeViewValue as r, useNodeViewPlugins as s, NodeViewChrome as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Node, NodeViewProps } from "@tiptap/core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/nodes/tabs/tabs.d.ts
|
|
5
5
|
declare const TABS: {
|
|
@@ -19,8 +19,8 @@ declare const TabTitle: Node<any, any>;
|
|
|
19
19
|
declare const TabContent: Node<any, any>;
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/editor/nodes/tabs/tabs-node.d.ts
|
|
22
|
-
declare function TabsNode(props: NodeViewProps):
|
|
23
|
-
declare function TabTitleNode():
|
|
24
|
-
declare function TabContentNode(props: NodeViewProps):
|
|
22
|
+
declare function TabsNode(props: NodeViewProps): react_jsx_runtime4.JSX.Element;
|
|
23
|
+
declare function TabTitleNode(): react_jsx_runtime4.JSX.Element;
|
|
24
|
+
declare function TabContentNode(props: NodeViewProps): react_jsx_runtime4.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TAB_CONTENT as a, TabTitle as c, TABS as i, Tabs as l, TabTitleNode as n, TAB_TITLE as o, TabsNode as r, TabContent as s, TabContentNode as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _tiptap_core3 from "@tiptap/core";
|
|
2
2
|
import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/nodes/custom-heading/custom-heading.d.ts
|
|
5
|
-
declare const CustomHeading:
|
|
5
|
+
declare const CustomHeading: _tiptap_core3.Node<_tiptap_extension_heading0.HeadingOptions, any>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { CustomHeading as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Node, NodeViewProps } from "@tiptap/core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/nodes/tabs/tabs.d.ts
|
|
5
5
|
declare const TABS: {
|
|
@@ -19,8 +19,8 @@ declare const TabTitle: Node<any, any>;
|
|
|
19
19
|
declare const TabContent: Node<any, any>;
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/editor/nodes/tabs/tabs-node.d.ts
|
|
22
|
-
declare function TabsNode(props: NodeViewProps):
|
|
23
|
-
declare function TabTitleNode():
|
|
24
|
-
declare function TabContentNode(props: NodeViewProps):
|
|
22
|
+
declare function TabsNode(props: NodeViewProps): react_jsx_runtime28.JSX.Element;
|
|
23
|
+
declare function TabTitleNode(): react_jsx_runtime28.JSX.Element;
|
|
24
|
+
declare function TabContentNode(props: NodeViewProps): react_jsx_runtime28.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TAB_CONTENT as a, TabTitle as c, TABS as i, Tabs as l, TabTitleNode as n, TAB_TITLE as o, TabsNode as r, TabContent as s, TabContentNode as t };
|
|
@@ -28,9 +28,9 @@ declare class Auth {
|
|
|
28
28
|
}>;
|
|
29
29
|
}>;
|
|
30
30
|
logout(path?: string, domain?: string): void;
|
|
31
|
-
accessLog(): Promise<
|
|
31
|
+
accessLog(): Promise<void>;
|
|
32
32
|
me(): Promise<any>;
|
|
33
|
-
hasPermission(obj: string, act: string
|
|
33
|
+
hasPermission(obj: string, act: string): Promise<any>;
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/api-client/media.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
4
4
|
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
5
5
|
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
6
6
|
|
|
7
7
|
//#region src/ui/admin/label/label.d.ts
|
|
8
8
|
declare const classes: (props?: ({
|
|
9
9
|
required?: boolean | null | undefined;
|
|
10
|
-
gap?: "sm" | "
|
|
10
|
+
gap?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types2.ClassProp) | undefined) => string;
|
|
12
12
|
declare const helpClasses: (props?: ({
|
|
13
13
|
helpTextColor?: "default" | "primary" | "warning" | "error" | null | undefined;
|
|
@@ -38,6 +38,6 @@ declare const Label: ({
|
|
|
38
38
|
required,
|
|
39
39
|
className,
|
|
40
40
|
gap
|
|
41
|
-
}: LabelProps) =>
|
|
41
|
+
}: LabelProps) => react_jsx_runtime11.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { LabelProps as n, Label as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as UseSubsetImageProps, t as BaseProps } from "./index-DxW8JBva.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react48 from "react";
|
|
3
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/image/image.d.ts
|
|
6
6
|
interface ImageSubsetProps {
|
|
@@ -11,7 +11,7 @@ interface ImageSubsetProps {
|
|
|
11
11
|
skeletonClassName?: string;
|
|
12
12
|
}
|
|
13
13
|
type ImageProps = UseSubsetImageProps & ImageSubsetProps;
|
|
14
|
-
declare const BaseImage:
|
|
14
|
+
declare const BaseImage: react48.ForwardRefExoticComponent<(Omit<BaseProps & {
|
|
15
15
|
fill: true;
|
|
16
16
|
sizes: string;
|
|
17
17
|
width?: never;
|
|
@@ -21,8 +21,8 @@ declare const BaseImage: react36.ForwardRefExoticComponent<(Omit<BaseProps & {
|
|
|
21
21
|
sizes?: never;
|
|
22
22
|
width: number;
|
|
23
23
|
height: number;
|
|
24
|
-
}, "ref">) &
|
|
25
|
-
declare const Image:
|
|
24
|
+
}, "ref">) & react48.RefAttributes<HTMLImageElement>>;
|
|
25
|
+
declare const Image: react48.ForwardRefExoticComponent<(Omit<BaseProps & {
|
|
26
26
|
fill: true;
|
|
27
27
|
sizes: string;
|
|
28
28
|
width?: never;
|
|
@@ -32,7 +32,7 @@ declare const Image: react36.ForwardRefExoticComponent<(Omit<BaseProps & {
|
|
|
32
32
|
sizes?: never;
|
|
33
33
|
width: number;
|
|
34
34
|
height: number;
|
|
35
|
-
} & ImageSubsetProps, "ref">) &
|
|
35
|
+
} & ImageSubsetProps, "ref">) & react48.RefAttributes<HTMLImageElement>>;
|
|
36
36
|
interface EmptyNodeProps {
|
|
37
37
|
children: React.ReactNode;
|
|
38
38
|
className?: string;
|
|
@@ -40,6 +40,6 @@ interface EmptyNodeProps {
|
|
|
40
40
|
declare const EmptyNode: ({
|
|
41
41
|
children,
|
|
42
42
|
className
|
|
43
|
-
}: EmptyNodeProps) =>
|
|
43
|
+
}: EmptyNodeProps) => react_jsx_runtime51.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageProps as a, Image as i, EmptyNode as n, ImageSubsetProps as o, EmptyNodeProps as r, BaseImage as t };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as LabelProps } from "./index-
|
|
2
|
-
import
|
|
3
|
-
import * as react44 from "react";
|
|
1
|
+
import { n as LabelProps } from "./index-CN8vImmH.cjs";
|
|
2
|
+
import * as react50 from "react";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
5
|
-
import
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import * as class_variance_authority_types9 from "class-variance-authority/types";
|
|
6
6
|
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
7
7
|
|
|
8
8
|
//#region src/ui/admin/text-field/text-field.d.ts
|
|
9
9
|
type TextFieldFileVariantColor = 'green' | 'blue' | 'red';
|
|
10
10
|
declare const classes: (props?: ({
|
|
11
|
-
size?: "xs" | "sm" | "
|
|
11
|
+
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
12
12
|
invalid?: boolean | null | undefined;
|
|
13
13
|
shadow?: boolean | null | undefined;
|
|
14
14
|
disabled?: boolean | null | undefined;
|
|
15
|
-
} &
|
|
15
|
+
} & class_variance_authority_types9.ClassProp) | undefined) => string;
|
|
16
16
|
interface BaseProps extends Omit<ComponentProps<'input'>, 'size' | 'ref' | 'color'>, VariantProps<typeof classes> {
|
|
17
17
|
label?: Omit<LabelProps, 'children'>;
|
|
18
18
|
disabled?: boolean;
|
|
@@ -51,6 +51,6 @@ interface SuffixDateProps extends Omit<BaseProps, 'handleDateClear'> {
|
|
|
51
51
|
max?: string | number;
|
|
52
52
|
}
|
|
53
53
|
type TextFieldProps = DefaultProps | FileProps | SearchProps | PrefixTextProps | SuffixTextProps | SuffixDateProps;
|
|
54
|
-
declare const TextField:
|
|
54
|
+
declare const TextField: react50.ForwardRefExoticComponent<TextFieldProps & react50.RefAttributes<HTMLInputElement>>;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { TextFieldFileVariantColor as n, TextFieldProps as r, TextField as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n as NodeViewPlugin } from "./index-BHIPhj3k.mjs";
|
|
2
|
+
import { r as NodeSizePluginOptions } from "./index-CTp6ZndQ.mjs";
|
|
3
|
+
import * as _tiptap_core4 from "@tiptap/core";
|
|
4
|
+
|
|
5
|
+
//#region src/editor/nodes/basic-image/basic-image.d.ts
|
|
6
|
+
declare const BasicImage: _tiptap_core4.Node<{
|
|
7
|
+
plugins: NodeViewPlugin[];
|
|
8
|
+
size?: NodeSizePluginOptions;
|
|
9
|
+
}, any>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { BasicImage as t };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./src-
|
|
1
|
+
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./src-DuOwAcib.cjs`);exports.Api=e.i,exports.ApiClient=e.t,exports.default=e.t,exports.Auth=e.r,exports.Media=e.n;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Auth, i as UploadValues, n as ApiConfig, o as Api, r as Media, s as ApiClientContext, t as ApiClient } from "./index-
|
|
1
|
+
import { a as Auth, i as UploadValues, n as ApiConfig, o as Api, r as Media, s as ApiClientContext, t as ApiClient } from "./index-DOLVFIAi.cjs";
|
|
2
2
|
export { Api, ApiClient, ApiClient as default, ApiClientContext, ApiConfig, Auth, Media, UploadValues };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Auth, i as UploadValues, n as ApiConfig, o as Api, r as Media, s as ApiClientContext, t as ApiClient } from "./index-
|
|
1
|
+
import { a as Auth, i as UploadValues, n as ApiConfig, o as Api, r as Media, s as ApiClientContext, t as ApiClient } from "./index-BE0yu6JW.mjs";
|
|
2
2
|
export { Api, ApiClient, ApiClient as default, ApiClientContext, ApiConfig, Auth, Media, UploadValues };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,t as r}from"./src-
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./src-blAkna22.mjs";export{e as Api,r as ApiClient,r as default,n as Auth,t as Media};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";require(`../../src-
|
|
1
|
+
"use client";require(`../../src-DuOwAcib.cjs`);const e=require(`../../api-client-D7WV9lod.cjs`);exports.ApiClientProvider=e.t,exports.useApiClient=e.n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ApiConfig, t as ApiClient } from "../../index-
|
|
2
|
-
import * as
|
|
1
|
+
import { n as ApiConfig, t as ApiClient } from "../../index-DOLVFIAi.cjs";
|
|
2
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/providers/api-client/api-client.d.ts
|
|
5
5
|
declare function ApiClientProvider({
|
|
@@ -8,7 +8,7 @@ declare function ApiClientProvider({
|
|
|
8
8
|
}: {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
config: ApiConfig;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime35.JSX.Element;
|
|
12
12
|
declare function useApiClient(): ApiClient;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ApiClientProvider, useApiClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ApiConfig, t as ApiClient } from "../../index-
|
|
2
|
-
import * as
|
|
1
|
+
import { n as ApiConfig, t as ApiClient } from "../../index-BE0yu6JW.mjs";
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/providers/api-client/api-client.d.ts
|
|
5
5
|
declare function ApiClientProvider({
|
|
@@ -8,7 +8,7 @@ declare function ApiClientProvider({
|
|
|
8
8
|
}: {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
config: ApiConfig;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime26.JSX.Element;
|
|
12
12
|
declare function useApiClient(): ApiClient;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ApiClientProvider, useApiClient };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"../../src-
|
|
1
|
+
"use client";import"../../src-blAkna22.mjs";import{n as e,t}from"../../api-client-D2UDU0fw.mjs";export{t as ApiClientProvider,e as useApiClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Editor } from "@tiptap/core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/providers/editor/editor.d.ts
|
|
@@ -13,7 +13,7 @@ interface EditorProviderProps {
|
|
|
13
13
|
declare function EditorProvider({
|
|
14
14
|
editor,
|
|
15
15
|
children
|
|
16
|
-
}: EditorProviderProps):
|
|
16
|
+
}: EditorProviderProps): react_jsx_runtime30.JSX.Element;
|
|
17
17
|
declare function useEditorContext(): EditorContextValue;
|
|
18
18
|
declare function useRequiredEditor(): Editor;
|
|
19
19
|
declare function useOptionalEditor(): Editor | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Editor } from "@tiptap/core";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/providers/editor/editor.d.ts
|
|
6
6
|
interface EditorContextValue {
|
|
@@ -13,7 +13,7 @@ interface EditorProviderProps {
|
|
|
13
13
|
declare function EditorProvider({
|
|
14
14
|
editor,
|
|
15
15
|
children
|
|
16
|
-
}: EditorProviderProps):
|
|
16
|
+
}: EditorProviderProps): react_jsx_runtime0.JSX.Element;
|
|
17
17
|
declare function useEditorContext(): EditorContextValue;
|
|
18
18
|
declare function useRequiredEditor(): Editor;
|
|
19
19
|
declare function useOptionalEditor(): Editor | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { SnackbarProvider } from "notistack";
|
|
4
4
|
|
|
@@ -6,6 +6,6 @@ import { SnackbarProvider } from "notistack";
|
|
|
6
6
|
declare function NotiStackProvider({
|
|
7
7
|
maxSnack,
|
|
8
8
|
...props
|
|
9
|
-
}: ComponentProps<typeof SnackbarProvider>):
|
|
9
|
+
}: ComponentProps<typeof SnackbarProvider>): react_jsx_runtime33.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { NotiStackProvider };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
import { SnackbarProvider } from "notistack";
|
|
4
4
|
|
|
5
5
|
//#region src/providers/noti-stack/noti-stack.d.ts
|
|
6
6
|
declare function NotiStackProvider({
|
|
7
7
|
maxSnack,
|
|
8
8
|
...props
|
|
9
|
-
}: ComponentProps<typeof SnackbarProvider>):
|
|
9
|
+
}: ComponentProps<typeof SnackbarProvider>): react_jsx_runtime1.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { NotiStackProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`js-cookie`);t=e.t(t);let n=require(`query-string`);n=e.t(n);var r=class{constructor(e){this.ctx=e}async getPriorityPosition(e,t){let n=`${this.ctx.apiEndpoint}/assist/priority-current-position?priority=${e}&type=${t}&order=desc`;return(await(await fetch(n,{method:`GET`,headers:{"Content-Type":`application/json`},credentials:`include`})).json()).result}},i=class{constructor(e){this.ctx=e}async login(e,t){let n=`${this.ctx.apiEndpoint}/auth/login`;return await(await fetch(n,{method:`POST`,body:JSON.stringify({email:e,password:t}),headers:{"Content-Type":`application/json`},credentials:`include`})).json()}logout(e=`/`,n=`.komachine.com`){let r={path:e};window.location.hostname!==`localhost`&&(r.domain=n),t.default.remove(`access`,r),window.location.href=r.path}async accessLog(){if(this.ctx.getToken()===void 0)throw Error(`로그인 필요`);let e=`${this.ctx.apiEndpoint}/access-log`;if(!(await fetch(e,{headers:{Authorization:this.ctx.getBearer()}})).ok)throw Error(`인증에러`)}async me(){if(this.ctx.getToken()===void 0)throw Error(`로그인 필요`);let e=`${this.ctx.apiEndpoint}/me`,t=await fetch(e,{headers:{Authorization:this.ctx.getBearer()}});if(!t.ok)throw Error(`인증에러`);return await t.json()}async hasPermission(e,t){if(this.ctx.getToken()===void 0)throw Error(`로그인 필요`);let n=`${this.ctx.apiEndpoint}/has-permission`,r=await fetch(n,{headers:{Authorization:this.ctx.getBearer(),"x-rbac-obj":e,"x-rbac-act":t},credentials:`include`});if(!r.ok)throw Error(`인증에러`);return await r.json()}},a=class{constructor(e){this.ctx=e}cdnMedia(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.ctx.cdnEndpoint}/media/resized/${n}/${t}/${r}`}return`${this.ctx.cdnEndpoint}/media/${e}`}cdnStatic(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.ctx.cdnEndpoint}/media/resized/${n}/${t}/${r}`}return`${this.ctx.cdnEndpoint}/static/${e}`}refinePath(e){if(!e?.trim())return``;if(e.startsWith(`blob:`)){let t=e.lastIndexOf(`/`);if(t!==-1){let n=e.substring(0,t+1),r=e.substring(t+1),i=r.lastIndexOf(`.`);if(i!==-1)return n+r.substring(0,i)}}return this.cdnMedia(e)}getUploadPresignURL(e){let t=n.default.stringify(e);return fetch(`${this.ctx.apiEndpoint}/upload/presign?${t}`,{credentials:`include`,headers:{Authorization:this.ctx.getBearer()}})}createParaMap(e,t){let n=URL.createObjectURL(e).split(`/`).pop()||``,r=e.name.split(`.`).pop()?.toLowerCase(),i=`${t?`${t.replace(/^\//,``)}/`:``}${n}.${r}`,a={contentType:e.type||`application/octet-stream`,length:e.size,key:i};return e.type.includes(`image`)||(a.disposition=`attachment; filename*=UTF8''${encodeURI(e.name)}`),a}async upload(e,t){let n=this.createParaMap(e,t),r=await(await this.getUploadPresignURL(n)).json(),i={"Content-Length":n.length.toString(),"Content-Type":n.contentType.toString()};n.disposition&&(i[`Content-Disposition`]=n.disposition);try{await fetch(r,{method:`PUT`,headers:i,body:e,credentials:`include`})}catch(e){return new Promise((t,n)=>n(e))}return new Promise(e=>e(n.key))}},o=class{auth;api;media;constructor(e){let t={apiEndpoint:e.apiEndpoint,cdnEndpoint:e.cdnEndpoint,getToken:()=>this.getToken(),getBearer:()=>this.getBearer()};this.auth=new i(t),this.api=new r(t),this.media=new a(t)}getToken(){return t.default.get(`access`)}getBearer(){return`Bearer ${this.getToken()}`}};Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"js-cookie";import t from"query-string";var n=class{constructor(e){this.ctx=e}async getPriorityPosition(e,t){let n=`${this.ctx.apiEndpoint}/assist/priority-current-position?priority=${e}&type=${t}&order=desc`;return(await(await fetch(n,{method:`GET`,headers:{"Content-Type":`application/json`},credentials:`include`})).json()).result}},r=class{constructor(e){this.ctx=e}async login(e,t){let n=`${this.ctx.apiEndpoint}/auth/login`;return await(await fetch(n,{method:`POST`,body:JSON.stringify({email:e,password:t}),headers:{"Content-Type":`application/json`},credentials:`include`})).json()}logout(t=`/`,n=`.komachine.com`){let r={path:t};window.location.hostname!==`localhost`&&(r.domain=n),e.remove(`access`,r),window.location.href=r.path}async accessLog(){if(this.ctx.getToken()===void 0)throw Error(`로그인 필요`);let e=`${this.ctx.apiEndpoint}/access-log`;if(!(await fetch(e,{headers:{Authorization:this.ctx.getBearer()}})).ok)throw Error(`인증에러`)}async me(){if(this.ctx.getToken()===void 0)throw Error(`로그인 필요`);let e=`${this.ctx.apiEndpoint}/me`,t=await fetch(e,{headers:{Authorization:this.ctx.getBearer()}});if(!t.ok)throw Error(`인증에러`);return await t.json()}async hasPermission(e,t){if(this.ctx.getToken()===void 0)throw Error(`로그인 필요`);let n=`${this.ctx.apiEndpoint}/has-permission`,r=await fetch(n,{headers:{Authorization:this.ctx.getBearer(),"x-rbac-obj":e,"x-rbac-act":t},credentials:`include`});if(!r.ok)throw Error(`인증에러`);return await r.json()}},i=class{constructor(e){this.ctx=e}cdnMedia(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.ctx.cdnEndpoint}/media/resized/${n}/${t}/${r}`}return`${this.ctx.cdnEndpoint}/media/${e}`}cdnStatic(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.ctx.cdnEndpoint}/media/resized/${n}/${t}/${r}`}return`${this.ctx.cdnEndpoint}/static/${e}`}refinePath(e){if(!e?.trim())return``;if(e.startsWith(`blob:`)){let t=e.lastIndexOf(`/`);if(t!==-1){let n=e.substring(0,t+1),r=e.substring(t+1),i=r.lastIndexOf(`.`);if(i!==-1)return n+r.substring(0,i)}}return this.cdnMedia(e)}getUploadPresignURL(e){let n=t.stringify(e);return fetch(`${this.ctx.apiEndpoint}/upload/presign?${n}`,{credentials:`include`,headers:{Authorization:this.ctx.getBearer()}})}createParaMap(e,t){let n=URL.createObjectURL(e).split(`/`).pop()||``,r=e.name.split(`.`).pop()?.toLowerCase(),i=`${t?`${t.replace(/^\//,``)}/`:``}${n}.${r}`,a={contentType:e.type||`application/octet-stream`,length:e.size,key:i};return e.type.includes(`image`)||(a.disposition=`attachment; filename*=UTF8''${encodeURI(e.name)}`),a}async upload(e,t){let n=this.createParaMap(e,t),r=await(await this.getUploadPresignURL(n)).json(),i={"Content-Length":n.length.toString(),"Content-Type":n.contentType.toString()};n.disposition&&(i[`Content-Disposition`]=n.disposition);try{await fetch(r,{method:`PUT`,headers:i,body:e,credentials:`include`})}catch(e){return new Promise((t,n)=>n(e))}return new Promise(e=>e(n.key))}},a=class{auth;api;media;constructor(e){let t={apiEndpoint:e.apiEndpoint,cdnEndpoint:e.cdnEndpoint,getToken:()=>this.getToken(),getBearer:()=>this.getBearer()};this.auth=new r(t),this.api=new n(t),this.media=new i(t)}getToken(){return e.get(`access`)}getBearer(){return`Bearer ${this.getToken()}`}};export{n as i,i as n,r,a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./image-
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./image-BH4lb2K5.cjs`),n=require(`./editor-DvLUotoh.cjs`),r=require(`./node-view-context-YTl_1gGD.cjs`),i=require(`./node-resize-dantnBzP.cjs`),a=require(`./node-size-BQQGo7t7.cjs`);let o=require(`@tiptap/react`),s=require(`class-variance-authority`),c=require(`react`),l=require(`react/jsx-runtime`);const u={name:`imageNode`,tag:`image-node`},d=e=>[a.r(e),i.n],f=d(),p=(0,s.cva)(``,{variants:{imagePosition:{center:`komc:justify-center`,right:`komc:justify-end`,left:`komc:justify-start`}},defaultVariants:{imagePosition:`left`}}),m=({node:e})=>{let{src:n,alt:i=``,width:a=0,height:o=0,imagePosition:s=`left`,imageRadius:u=0,originalWidth:d=1280}=e.attrs,f=(0,c.useMemo)(()=>Number(a),[a]),m=(0,c.useMemo)(()=>Number(o),[o]),h=(0,c.useMemo)(()=>Number(d),[d]),g=(0,c.useMemo)(()=>Number(u),[u]);return(0,l.jsx)(r.n,{className:p({imagePosition:s}),style:{width:`min(${f}px, 100%)`},children:(0,l.jsx)(`div`,{className:`komc:h-full komc:w-full komc:overflow-hidden`,style:{borderRadius:`${g}%`},"data-drag-handle":`true`,children:(0,l.jsx)(t.r,{src:n,alt:i,width:f,height:m,fallbackSrc:n,originalWidth:h,className:`komc:m-0! komc:h-auto komc:w-full komc:object-contain komc:object-center komc:p-0!`})})})},h=(e=[],t)=>n.r(r.a(m,[...d(t),...e])),g=o.Node.create({name:u.name,group:`block`,atom:!0,draggable:!0,addOptions(){return{plugins:[],size:{}}},parseHTML(){return[{tag:u.tag}]},renderHTML({HTMLAttributes:e}){return[u.tag,(0,o.mergeAttributes)(e)]},addAttributes(){return{src:{default:``},alt:{default:``},width:{default:400},height:{default:400},imagePosition:{default:`left`},imageRadius:{default:0},originalWidth:{default:1280}}},addNodeView(){return h(this.options.plugins,this.options.size)}});Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./image-
|
|
1
|
+
import{r as e}from"./image-DCRvyqH3.mjs";import{r as t}from"./editor-CHuJTM4H.mjs";import{a as n,n as r}from"./node-view-context-D-1j5isf.mjs";import{n as i}from"./node-resize-Cs4wR_HY.mjs";import{r as a}from"./node-size-Bg-g2Png.mjs";import{Node as o,mergeAttributes as s}from"@tiptap/react";import{cva as c}from"class-variance-authority";import{useMemo as l}from"react";import{jsx as u}from"react/jsx-runtime";const d={name:`imageNode`,tag:`image-node`},f=e=>[a(e),i],p=f(),m=c(``,{variants:{imagePosition:{center:`komc:justify-center`,right:`komc:justify-end`,left:`komc:justify-start`}},defaultVariants:{imagePosition:`left`}}),h=({node:t})=>{let{src:n,alt:i=``,width:a=0,height:o=0,imagePosition:s=`left`,imageRadius:c=0,originalWidth:d=1280}=t.attrs,f=l(()=>Number(a),[a]),p=l(()=>Number(o),[o]),h=l(()=>Number(d),[d]),g=l(()=>Number(c),[c]);return u(r,{className:m({imagePosition:s}),style:{width:`min(${f}px, 100%)`},children:u(`div`,{className:`komc:h-full komc:w-full komc:overflow-hidden`,style:{borderRadius:`${g}%`},"data-drag-handle":`true`,children:u(e,{src:n,alt:i,width:f,height:p,fallbackSrc:n,originalWidth:h,className:`komc:m-0! komc:h-auto komc:w-full komc:object-contain komc:object-center komc:p-0!`})})})},g=(e=[],r)=>t(n(h,[...f(r),...e])),_=o.create({name:d.name,group:`block`,atom:!0,draggable:!0,addOptions(){return{plugins:[],size:{}}},parseHTML(){return[{tag:d.tag}]},renderHTML({HTMLAttributes:e}){return[d.tag,s(e)]},addAttributes(){return{src:{default:``},alt:{default:``},width:{default:400},height:{default:400},imagePosition:{default:`left`},imageRadius:{default:0},originalWidth:{default:1280}}},addNodeView(){return g(this.options.plugins,this.options.size)}});export{f as a,h as i,d as n,g as o,_ as r,p as t};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as BaseInput } from "../../../index-Bpp6ufv-.cjs";
|
|
2
|
-
import { t as Label } from "../../../index-
|
|
3
|
-
import { a as valueContainerClasses, i as controlClasses } from "../../../index-
|
|
4
|
-
import * as
|
|
2
|
+
import { t as Label } from "../../../index-CN8vImmH.cjs";
|
|
3
|
+
import { a as valueContainerClasses, i as controlClasses } from "../../../index-CLS7OQza.cjs";
|
|
4
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
5
5
|
import { ComponentProps } from "react";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
7
|
import { ActionMeta, GroupBase, OnChangeValue, Props } from "react-select";
|
|
@@ -30,6 +30,6 @@ declare const AsyncSelectField: <Option = unknown, IsMulti extends boolean = fal
|
|
|
30
30
|
defaultValue,
|
|
31
31
|
fetcher,
|
|
32
32
|
...props
|
|
33
|
-
}: AsyncSelectFieldProps<Option, IsMulti>) =>
|
|
33
|
+
}: AsyncSelectFieldProps<Option, IsMulti>) => react_jsx_runtime1.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { AdditionalType, AsyncSelectField, AsyncSelectFieldProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as BaseInput } from "../../../index-C_5zGF-K.mjs";
|
|
2
|
-
import { t as Label } from "../../../index-
|
|
3
|
-
import { a as valueContainerClasses, i as controlClasses } from "../../../index-
|
|
2
|
+
import { t as Label } from "../../../index-F4q_POK6.mjs";
|
|
3
|
+
import { a as valueContainerClasses, i as controlClasses } from "../../../index-CFP0MOF3.mjs";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import { ComponentProps } from "react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
7
7
|
import { ActionMeta, GroupBase, OnChangeValue, Props } from "react-select";
|
|
8
8
|
|
|
9
9
|
//#region src/ui/admin/async-select-field/async-select-field.d.ts
|
|
@@ -30,6 +30,6 @@ declare const AsyncSelectField: <Option = unknown, IsMulti extends boolean = fal
|
|
|
30
30
|
defaultValue,
|
|
31
31
|
fetcher,
|
|
32
32
|
...props
|
|
33
|
-
}: AsyncSelectFieldProps<Option, IsMulti>) =>
|
|
33
|
+
}: AsyncSelectFieldProps<Option, IsMulti>) => react_jsx_runtime52.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { AdditionalType, AsyncSelectField, AsyncSelectFieldProps };
|