@gendive/slide 0.1.9 → 0.1.10
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/devdive-slide.cjs.js +55 -55
- package/dist/devdive-slide.cjs.js.map +1 -1
- package/dist/devdive-slide.es.js +1068 -1062
- package/dist/devdive-slide.es.js.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/theme/index.d.ts +152 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AiProviderConfig } from './ai/types';
|
|
2
|
-
export { devdiveTheme, themeVars } from './theme';
|
|
2
|
+
export { devdiveTheme, devdiveThemeLight, themeVars } from './theme';
|
|
3
3
|
export { Editor } from './components/Editor';
|
|
4
4
|
export type { EditorProps } from './components/Editor';
|
|
5
5
|
export { SlideCanvas } from './components/SlideCanvas';
|
|
@@ -25,7 +25,16 @@ export type { AiProviderType, AiProviderConfig, DevDiveConfig, } from './ai/type
|
|
|
25
25
|
* @description AI 설정 초기화 함수
|
|
26
26
|
* @Todo vibecode - Editor prop 외에 직접 설정 가능
|
|
27
27
|
* @example
|
|
28
|
+
* // 기본 사용
|
|
28
29
|
* import { initAiConfig } from '@gendive/slide';
|
|
29
30
|
* initAiConfig({ provider: 'devdive', apiKey: 'YOUR_KEY', model: 'gpt-4o' });
|
|
31
|
+
*
|
|
32
|
+
* // 커스텀 엔드포인트 사용 (내부 프록시)
|
|
33
|
+
* initAiConfig({
|
|
34
|
+
* provider: 'devdive',
|
|
35
|
+
* apiKey: 'YOUR_KEY',
|
|
36
|
+
* baseUrl: '/api/model/text-generation/v1',
|
|
37
|
+
* model: 'gpt-4o'
|
|
38
|
+
* });
|
|
30
39
|
*/
|
|
31
40
|
export declare const initAiConfig: (config: AiProviderConfig) => void;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MantineColorsTuple } from '@mantine/core';
|
|
2
2
|
/**
|
|
3
|
-
* @description DevDive Slide 기본 테마
|
|
3
|
+
* @description DevDive Slide 기본 테마 (다크모드 기본)
|
|
4
4
|
*/
|
|
5
5
|
export declare const devdiveTheme: {
|
|
6
6
|
focusRing?: "auto" | "always" | "never" | undefined;
|
|
@@ -75,52 +75,197 @@ export declare const devdiveTheme: {
|
|
|
75
75
|
radius?: {
|
|
76
76
|
[x: string & {}]: string | undefined;
|
|
77
77
|
md?: string | undefined;
|
|
78
|
-
xs?: string | undefined;
|
|
79
|
-
sm?: string | undefined;
|
|
80
78
|
lg?: string | undefined;
|
|
81
79
|
xl?: string | undefined;
|
|
80
|
+
xs?: string | undefined;
|
|
81
|
+
sm?: string | undefined;
|
|
82
82
|
} | undefined;
|
|
83
83
|
defaultRadius?: import('@mantine/core').MantineRadius | undefined;
|
|
84
84
|
spacing?: {
|
|
85
85
|
[x: number]: string | undefined;
|
|
86
86
|
[x: string & {}]: string | undefined;
|
|
87
87
|
md?: string | undefined;
|
|
88
|
+
lg?: string | undefined;
|
|
89
|
+
xl?: string | undefined;
|
|
88
90
|
xs?: string | undefined;
|
|
89
91
|
sm?: string | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
fontSizes?: {
|
|
94
|
+
[x: string & {}]: string | undefined;
|
|
95
|
+
md?: string | undefined;
|
|
90
96
|
lg?: string | undefined;
|
|
91
97
|
xl?: string | undefined;
|
|
98
|
+
xs?: string | undefined;
|
|
99
|
+
sm?: string | undefined;
|
|
92
100
|
} | undefined;
|
|
93
|
-
|
|
101
|
+
lineHeights?: {
|
|
94
102
|
[x: string & {}]: string | undefined;
|
|
95
103
|
md?: string | undefined;
|
|
104
|
+
lg?: string | undefined;
|
|
105
|
+
xl?: string | undefined;
|
|
96
106
|
xs?: string | undefined;
|
|
97
107
|
sm?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
breakpoints?: {
|
|
110
|
+
[x: string & {}]: string | undefined;
|
|
111
|
+
md?: string | undefined;
|
|
98
112
|
lg?: string | undefined;
|
|
99
113
|
xl?: string | undefined;
|
|
114
|
+
xs?: string | undefined;
|
|
115
|
+
sm?: string | undefined;
|
|
100
116
|
} | undefined;
|
|
101
|
-
|
|
117
|
+
shadows?: {
|
|
118
|
+
[x: string & {}]: string | undefined;
|
|
119
|
+
md?: string | undefined;
|
|
120
|
+
lg?: string | undefined;
|
|
121
|
+
xl?: string | undefined;
|
|
122
|
+
xs?: string | undefined;
|
|
123
|
+
sm?: string | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
respectReducedMotion?: boolean | undefined;
|
|
126
|
+
cursorType?: "default" | "pointer" | undefined;
|
|
127
|
+
defaultGradient?: {
|
|
128
|
+
from?: string | undefined;
|
|
129
|
+
to?: string | undefined;
|
|
130
|
+
deg?: number | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
activeClassName?: string | undefined;
|
|
133
|
+
focusClassName?: string | undefined;
|
|
134
|
+
components?: {
|
|
135
|
+
[x: string]: {
|
|
136
|
+
classNames?: any;
|
|
137
|
+
styles?: any;
|
|
138
|
+
vars?: any;
|
|
139
|
+
defaultProps?: any;
|
|
140
|
+
} | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
other?: {
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
} | undefined;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* @description DevDive Slide 라이트모드 테마
|
|
148
|
+
* @Todo vibecode - forceColorScheme="light" 와 함께 사용
|
|
149
|
+
*/
|
|
150
|
+
export declare const devdiveThemeLight: {
|
|
151
|
+
focusRing?: "auto" | "always" | "never" | undefined;
|
|
152
|
+
scale?: number | undefined;
|
|
153
|
+
fontSmoothing?: boolean | undefined;
|
|
154
|
+
white?: string | undefined;
|
|
155
|
+
black?: string | undefined;
|
|
156
|
+
colors?: {
|
|
157
|
+
[x: string & {}]: MantineColorsTuple | undefined;
|
|
158
|
+
dark?: MantineColorsTuple | undefined;
|
|
159
|
+
gray?: MantineColorsTuple | undefined;
|
|
160
|
+
red?: MantineColorsTuple | undefined;
|
|
161
|
+
pink?: MantineColorsTuple | undefined;
|
|
162
|
+
grape?: MantineColorsTuple | undefined;
|
|
163
|
+
violet?: MantineColorsTuple | undefined;
|
|
164
|
+
indigo?: MantineColorsTuple | undefined;
|
|
165
|
+
blue?: MantineColorsTuple | undefined;
|
|
166
|
+
cyan?: MantineColorsTuple | undefined;
|
|
167
|
+
green?: MantineColorsTuple | undefined;
|
|
168
|
+
lime?: MantineColorsTuple | undefined;
|
|
169
|
+
yellow?: MantineColorsTuple | undefined;
|
|
170
|
+
orange?: MantineColorsTuple | undefined;
|
|
171
|
+
teal?: MantineColorsTuple | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
primaryShade?: import('@mantine/core').MantineColorShade | {
|
|
174
|
+
light?: import('@mantine/core').MantineColorShade | undefined;
|
|
175
|
+
dark?: import('@mantine/core').MantineColorShade | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
primaryColor?: string | undefined;
|
|
178
|
+
variantColorResolver?: import('@mantine/core').VariantColorsResolver | undefined;
|
|
179
|
+
autoContrast?: boolean | undefined;
|
|
180
|
+
luminanceThreshold?: number | undefined;
|
|
181
|
+
fontFamily?: string | undefined;
|
|
182
|
+
fontFamilyMonospace?: string | undefined;
|
|
183
|
+
headings?: {
|
|
184
|
+
fontFamily?: string | undefined;
|
|
185
|
+
fontWeight?: string | undefined;
|
|
186
|
+
textWrap?: "wrap" | "nowrap" | "balance" | "pretty" | "stable" | undefined;
|
|
187
|
+
sizes?: {
|
|
188
|
+
h1?: {
|
|
189
|
+
fontSize?: string | undefined;
|
|
190
|
+
fontWeight?: string | undefined;
|
|
191
|
+
lineHeight?: string | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
h2?: {
|
|
194
|
+
fontSize?: string | undefined;
|
|
195
|
+
fontWeight?: string | undefined;
|
|
196
|
+
lineHeight?: string | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
h3?: {
|
|
199
|
+
fontSize?: string | undefined;
|
|
200
|
+
fontWeight?: string | undefined;
|
|
201
|
+
lineHeight?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
h4?: {
|
|
204
|
+
fontSize?: string | undefined;
|
|
205
|
+
fontWeight?: string | undefined;
|
|
206
|
+
lineHeight?: string | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
h5?: {
|
|
209
|
+
fontSize?: string | undefined;
|
|
210
|
+
fontWeight?: string | undefined;
|
|
211
|
+
lineHeight?: string | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
h6?: {
|
|
214
|
+
fontSize?: string | undefined;
|
|
215
|
+
fontWeight?: string | undefined;
|
|
216
|
+
lineHeight?: string | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
radius?: {
|
|
102
221
|
[x: string & {}]: string | undefined;
|
|
103
222
|
md?: string | undefined;
|
|
223
|
+
lg?: string | undefined;
|
|
224
|
+
xl?: string | undefined;
|
|
104
225
|
xs?: string | undefined;
|
|
105
226
|
sm?: string | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
defaultRadius?: import('@mantine/core').MantineRadius | undefined;
|
|
229
|
+
spacing?: {
|
|
230
|
+
[x: number]: string | undefined;
|
|
231
|
+
[x: string & {}]: string | undefined;
|
|
232
|
+
md?: string | undefined;
|
|
106
233
|
lg?: string | undefined;
|
|
107
234
|
xl?: string | undefined;
|
|
235
|
+
xs?: string | undefined;
|
|
236
|
+
sm?: string | undefined;
|
|
108
237
|
} | undefined;
|
|
109
|
-
|
|
238
|
+
fontSizes?: {
|
|
110
239
|
[x: string & {}]: string | undefined;
|
|
111
240
|
md?: string | undefined;
|
|
241
|
+
lg?: string | undefined;
|
|
242
|
+
xl?: string | undefined;
|
|
112
243
|
xs?: string | undefined;
|
|
113
244
|
sm?: string | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
lineHeights?: {
|
|
247
|
+
[x: string & {}]: string | undefined;
|
|
248
|
+
md?: string | undefined;
|
|
114
249
|
lg?: string | undefined;
|
|
115
250
|
xl?: string | undefined;
|
|
251
|
+
xs?: string | undefined;
|
|
252
|
+
sm?: string | undefined;
|
|
116
253
|
} | undefined;
|
|
117
|
-
|
|
254
|
+
breakpoints?: {
|
|
118
255
|
[x: string & {}]: string | undefined;
|
|
119
256
|
md?: string | undefined;
|
|
257
|
+
lg?: string | undefined;
|
|
258
|
+
xl?: string | undefined;
|
|
120
259
|
xs?: string | undefined;
|
|
121
260
|
sm?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
shadows?: {
|
|
263
|
+
[x: string & {}]: string | undefined;
|
|
264
|
+
md?: string | undefined;
|
|
122
265
|
lg?: string | undefined;
|
|
123
266
|
xl?: string | undefined;
|
|
267
|
+
xs?: string | undefined;
|
|
268
|
+
sm?: string | undefined;
|
|
124
269
|
} | undefined;
|
|
125
270
|
respectReducedMotion?: boolean | undefined;
|
|
126
271
|
cursorType?: "default" | "pointer" | undefined;
|