vdc-editor 0.1.322 → 0.1.323

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.
@@ -7,12 +7,17 @@ interface Props {
7
7
  editorClass?: string | string[] | Record<string, unknown>;
8
8
  isCompare?: boolean;
9
9
  contentTextStyle?: string;
10
+ dark?: boolean;
11
+ containerThemeClass?: string;
10
12
  }
11
13
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
14
  isCompare: boolean;
15
+ containerThemeClass: string;
13
16
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
17
  isCompare: boolean;
18
+ containerThemeClass: string;
15
19
  }>>> & Readonly<{}>, {
20
+ containerThemeClass: string;
16
21
  isCompare: boolean;
17
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
23
  export default _default;
@@ -10,6 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  isEditorViewSplitContent: boolean;
11
11
  output: string;
12
12
  dark: undefined;
13
+ containerThemeClass: string;
13
14
  disabled: boolean;
14
15
  hideToolbar: boolean;
15
16
  disableBubble: boolean;
@@ -71,6 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
71
72
  isEditorViewSplitContent: boolean;
72
73
  output: string;
73
74
  dark: undefined;
75
+ containerThemeClass: string;
74
76
  disabled: boolean;
75
77
  hideToolbar: boolean;
76
78
  disableBubble: boolean;
@@ -146,6 +148,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
146
148
  letterSpacingDefault: string;
147
149
  contentTextStyle: string;
148
150
  dark: boolean;
151
+ containerThemeClass: string;
149
152
  hideToolbar: boolean;
150
153
  customClassFormatControlBar: string;
151
154
  titleBarComment: import('../../type').TitleBar | null;
@@ -8,6 +8,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
8
8
  commentCuesheet: string;
9
9
  output: string;
10
10
  dark: undefined;
11
+ containerThemeClass: string;
11
12
  disabled: boolean;
12
13
  hideToolbar: boolean;
13
14
  disableBubble: boolean;
@@ -75,6 +76,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
75
76
  commentCuesheet: string;
76
77
  output: string;
77
78
  dark: undefined;
79
+ containerThemeClass: string;
78
80
  disabled: boolean;
79
81
  hideToolbar: boolean;
80
82
  disableBubble: boolean;
@@ -158,6 +160,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
158
160
  fontFamilyDefault: string;
159
161
  fontWeightDefault: string;
160
162
  dark: boolean;
163
+ containerThemeClass: string;
161
164
  hideToolbar: boolean;
162
165
  fieldNameComment: import('../../type').FieldName | null;
163
166
  fieldNameCommentCuesheet: import('../../type').FieldName | null;
@@ -12,6 +12,8 @@ interface ReadonlyViewerProps {
12
12
  mode?: EditorMode;
13
13
  /** 다크 모드 */
14
14
  dark?: boolean;
15
+ /** 컨테이너 테마 클래스 */
16
+ containerThemeClass?: string;
15
17
  /** 기본 폰트 크기 */
16
18
  fontSizeDefault?: string;
17
19
  /** 기본 폰트 패밀리 */
@@ -50,6 +52,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
50
52
  commentCuesheet: string;
51
53
  mode: EditorMode;
52
54
  dark: undefined;
55
+ containerThemeClass: string;
53
56
  fontSizeDefault: string;
54
57
  fontFamilyDefault: string;
55
58
  fontWeightDefault: undefined;
@@ -76,6 +79,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
76
79
  commentCuesheet: string;
77
80
  mode: EditorMode;
78
81
  dark: undefined;
82
+ containerThemeClass: string;
79
83
  fontSizeDefault: string;
80
84
  fontFamilyDefault: string;
81
85
  fontWeightDefault: undefined;
@@ -106,6 +110,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
106
110
  fontFamilyDefault: string;
107
111
  fontWeightDefault: string;
108
112
  dark: boolean;
113
+ containerThemeClass: string;
109
114
  fieldNameComment: FieldName | null;
110
115
  fieldNameCommentCuesheet: FieldName | null;
111
116
  fieldNameContent: FieldName | null;
@@ -1,3 +1,4 @@
1
1
  import { Mark } from '@tiptap/core';
2
2
 
3
3
  export declare const DiffDel: Mark<any, any>;
4
+ export declare const DiffIns: Mark<any, any>;
@@ -8,3 +8,4 @@ export * from './useEditorInsert';
8
8
  export * from './useAutoScrollbar';
9
9
  export * from './useToolbarVisibility';
10
10
  export { useSyncI18nLocale } from './useSyncI18nLocale';
11
+ export { useDarkColorOverride } from './useDarkColorOverride';
@@ -8,4 +8,8 @@ import { Editor } from '@tiptap/vue-3';
8
8
  * 다크모드 감지: dark prop 또는 부모 요소의 .dark 클래스 (Tailwind darkMode: 'class')
9
9
  * ProseMirror 문서 모델을 수정하지 않고, CSS !important로 시각적 오버라이드만 수행
10
10
  */
11
- export declare function useDarkColorOverride(editor: Editor, isDarkProp: Ref<boolean>, isArticleEditor: Ref<boolean>, containerRef: Ref<HTMLElement | null>): void;
11
+ type DarkOverrideOptions = {
12
+ simpleTableMode?: boolean;
13
+ };
14
+ export declare function useDarkColorOverride(editor: Editor | null, isDarkProp: Ref<boolean>, isArticleEditor: Ref<boolean>, containerRef: Ref<HTMLElement | null>, options?: DarkOverrideOptions): void;
15
+ export {};
@@ -9,7 +9,7 @@ import { default as ReadonlyViewer } from './components/editor/ReadonlyViewer.vu
9
9
  declare const SBSEditorPlugin: Plugin;
10
10
  declare function updateSuperTextView(): void;
11
11
  export * as extension from './extensions';
12
- export { useConfigTiptap, useTiptapStore } from './hooks';
12
+ export { useConfigTiptap, useTiptapStore, useDarkColorOverride } from './hooks';
13
13
  export * as nodeNames from './utils/node-names';
14
14
  export type { ExtensionName } from './utils/node-names';
15
15
  export type * from './type';
package/lib/src/type.d.ts CHANGED
@@ -365,6 +365,14 @@ export interface EditorProps {
365
365
  * @default false
366
366
  */
367
367
  dark?: boolean;
368
+ /**
369
+ * Container background & text theme class.
370
+ * Applied to the vdc-editor wrapper element — acts like a body-level
371
+ * theme override so the host project can supply any color it wants.
372
+ *
373
+ * @default 'bg-ed-transparent text-ed-foreground'
374
+ */
375
+ containerThemeClass?: string;
368
376
  /**
369
377
  * Readonly
370
378
  *