@shytv/ai-chart 0.0.10 → 0.0.11

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.
@@ -1,5 +1 @@
1
- interface IProps {
2
- theme?: string;
3
- }
4
- export declare function ChatApp(props: IProps): import('react').JSX.Element;
5
- export {};
1
+ export declare function ChatApp(): import('react').JSX.Element;
@@ -1,203 +1,65 @@
1
- import { editor } from 'monaco-editor';
2
- export declare const LANGAGE_NAME = "Mine";
3
- export declare const COLORS: {
4
- "color-white": string;
5
- "color-black": string;
6
- "color-transparent": string;
7
- "color-cold-gray-50": string;
8
- "color-cold-gray-100": string;
9
- "color-cold-gray-150": string;
10
- "color-cold-gray-200": string;
11
- "color-cold-gray-250": string;
12
- "color-cold-gray-300": string;
13
- "color-cold-gray-350": string;
14
- "color-cold-gray-400": string;
15
- "color-cold-gray-450": string;
16
- "color-cold-gray-500": string;
17
- "color-cold-gray-550": string;
18
- "color-cold-gray-600": string;
19
- "color-cold-gray-650": string;
20
- "color-cold-gray-700": string;
21
- "color-cold-gray-750": string;
22
- "color-cold-gray-800": string;
23
- "color-cold-gray-850": string;
24
- "color-cold-gray-900": string;
25
- "color-cold-gray-950": string;
26
- "color-ripe-red-50": string;
27
- "color-ripe-red-100": string;
28
- "color-ripe-red-200": string;
29
- "color-ripe-red-300": string;
30
- "color-ripe-red-400": string;
31
- "color-ripe-red-500": string;
32
- "color-ripe-red-600": string;
33
- "color-ripe-red-700": string;
34
- "color-ripe-red-800": string;
35
- "color-ripe-red-900": string;
36
- "color-ripe-red-a100": string;
37
- "color-ripe-red-a200": string;
38
- "color-ripe-red-a400": string;
39
- "color-ripe-red-a600": string;
40
- "color-ripe-red-a700": string;
41
- "color-ripe-red-a800": string;
42
- "color-ripe-red-a900": string;
43
- "color-tan-orange-50": string;
44
- "color-tan-orange-100": string;
45
- "color-tan-orange-200": string;
46
- "color-tan-orange-300": string;
47
- "color-tan-orange-400": string;
48
- "color-tan-orange-500": string;
49
- "color-tan-orange-600": string;
50
- "color-tan-orange-700": string;
51
- "color-tan-orange-800": string;
52
- "color-tan-orange-900": string;
53
- "color-tan-orange-a200": string;
54
- "color-tan-orange-a400": string;
55
- "color-tan-orange-a600": string;
56
- "color-tan-orange-a700": string;
57
- "color-tan-orange-a800": string;
58
- "color-tan-orange-a900": string;
59
- "color-iguana-green-100": string;
60
- "color-iguana-green-200": string;
61
- "color-iguana-green-300": string;
62
- "color-iguana-green-400": string;
63
- "color-iguana-green-500": string;
64
- "color-iguana-green-600": string;
65
- "color-iguana-green-700": string;
66
- "color-iguana-green-800": string;
67
- "color-iguana-green-900": string;
68
- "color-iguana-green-a700": string;
69
- "color-banana-yellow-100": string;
70
- "color-banana-yellow-200": string;
71
- "color-banana-yellow-300": string;
72
- "color-banana-yellow-400": string;
73
- "color-banana-yellow-500": string;
74
- "color-banana-yellow-600": string;
75
- "color-banana-yellow-700": string;
76
- "color-banana-yellow-800": string;
77
- "color-banana-yellow-900": string;
78
- "color-banana-yellow-a400": string;
79
- "color-banana-yellow-a700": string;
80
- "color-tv-blue-50": string;
81
- "color-tv-blue-100": string;
82
- "color-tv-blue-200": string;
83
- "color-tv-blue-300": string;
84
- "color-tv-blue-400": string;
85
- "color-tv-blue-500": string;
86
- "color-tv-blue-600": string;
87
- "color-tv-blue-700": string;
88
- "color-tv-blue-800": string;
89
- "color-tv-blue-900": string;
90
- "color-tv-blue-a100": string;
91
- "color-tv-blue-a200": string;
92
- "color-tv-blue-a400": string;
93
- "color-tv-blue-a600": string;
94
- "color-tv-blue-a700": string;
95
- "color-tv-blue-a800": string;
96
- "color-tv-blue-a900": string;
97
- "color-deep-blue-50": string;
98
- "color-deep-blue-100": string;
99
- "color-deep-blue-200": string;
100
- "color-deep-blue-300": string;
101
- "color-deep-blue-400": string;
102
- "color-deep-blue-500": string;
103
- "color-deep-blue-700": string;
104
- "color-deep-blue-800": string;
105
- "color-deep-blue-900": string;
106
- "color-deep-blue-a100": string;
107
- "color-deep-blue-a200": string;
108
- "color-deep-blue-a400": string;
109
- "color-deep-blue-a700": string;
110
- "color-minty-green-50": string;
111
- "color-minty-green-100": string;
112
- "color-minty-green-200": string;
113
- "color-minty-green-300": string;
114
- "color-minty-green-400": string;
115
- "color-minty-green-500": string;
116
- "color-minty-green-600": string;
117
- "color-minty-green-700": string;
118
- "color-minty-green-800": string;
119
- "color-minty-green-900": string;
120
- "color-minty-green-a400": string;
121
- "color-minty-green-a600": string;
122
- "color-minty-green-a700": string;
123
- "color-minty-green-a800": string;
124
- "color-minty-green-a900": string;
125
- "color-grapes-purple-50": string;
126
- "color-grapes-purple-100": string;
127
- "color-grapes-purple-200": string;
128
- "color-grapes-purple-300": string;
129
- "color-grapes-purple-400": string;
130
- "color-grapes-purple-500": string;
131
- "color-grapes-purple-600": string;
132
- "color-grapes-purple-700": string;
133
- "color-grapes-purple-800": string;
134
- "color-grapes-purple-900": string;
135
- "color-grapes-purple-a100": string;
136
- "color-grapes-purple-a200": string;
137
- "color-grapes-purple-a400": string;
138
- "color-grapes-purple-a700": string;
139
- "color-berry-pink-100": string;
140
- "color-berry-pink-200": string;
141
- "color-berry-pink-300": string;
142
- "color-berry-pink-400": string;
143
- "color-berry-pink-500": string;
144
- "color-berry-pink-600": string;
145
- "color-berry-pink-700": string;
146
- "color-berry-pink-800": string;
147
- "color-berry-pink-900": string;
148
- "color-berry-pink-a100": string;
149
- "color-berry-pink-a200": string;
150
- "color-berry-pink-a400": string;
151
- "color-sky-blue-100": string;
152
- "color-sky-blue-200": string;
153
- "color-sky-blue-300": string;
154
- "color-sky-blue-400": string;
155
- "color-sky-blue-500": string;
156
- "color-sky-blue-600": string;
157
- "color-sky-blue-700": string;
158
- "color-sky-blue-800": string;
159
- "color-sky-blue-900": string;
160
- "color-sky-blue-a400": string;
161
- "color-sky-blue-a700": string;
162
- "color-deep-blue-600": string;
163
- "color-forest-green-50": string;
164
- "color-forest-green-100": string;
165
- "color-forest-green-200": string;
166
- "color-forest-green-300": string;
167
- "color-forest-green-400": string;
168
- "color-forest-green-500": string;
169
- "color-forest-green-600": string;
170
- "color-forest-green-700": string;
171
- "color-forest-green-800": string;
172
- "color-forest-green-900": string;
173
- "color-facebook": string;
174
- "color-deep-facebook": string;
175
- "color-twitter": string;
176
- "color-deep-twitter": string;
177
- "color-youtube": string;
178
- "color-linkedin": string;
179
- "color-seeking-alpha-brand": string;
180
- };
181
- export declare const VS: editor.IStandaloneThemeData;
182
- export declare const VS_DARK: editor.IStandaloneThemeData;
183
- export declare const QQSTRING_REG: RegExp;
184
- export declare const QSTRING_REG: RegExp;
185
- export declare const DEFAULT_COLORS: {
186
- "color.aqua": string;
187
- "color.black": string;
188
- "color.blue": string;
189
- "color.fuchsia": string;
190
- "color.gray": string;
191
- "color.green": string;
192
- "color.lime": string;
193
- "color.maroon": string;
194
- "color.navy": string;
195
- "color.olive": string;
196
- "color.orange": string;
197
- "color.purple": string;
198
- "color.red": string;
199
- "color.silver": string;
200
- "color.teal": string;
201
- "color.white": string;
202
- "color.yellow": string;
1
+ export declare const LANGAGE_NAME = "mine";
2
+ export declare const LANGUAGE_MONARCH_TOKENS: {
3
+ builtinFunctions: RegExp;
4
+ keywords: RegExp;
5
+ tokenizer: {
6
+ root: ((string | RegExp)[] | (RegExp | {
7
+ token: string;
8
+ bracket: string;
9
+ next: string;
10
+ })[] | (RegExp | {
11
+ token: string;
12
+ next: string;
13
+ })[] | (RegExp | {
14
+ token: string;
15
+ }[])[] | (RegExp | {
16
+ token: string;
17
+ })[])[];
18
+ comments: ((RegExp | {
19
+ token: string;
20
+ next: string;
21
+ })[] | (RegExp | {
22
+ token: string;
23
+ })[])[];
24
+ stringDouble: ((string | RegExp)[] | (RegExp | {
25
+ token: string;
26
+ bracket: string;
27
+ next: string;
28
+ })[])[];
29
+ stringSingle: ((string | RegExp)[] | (RegExp | {
30
+ token: string;
31
+ bracket: string;
32
+ next: string;
33
+ })[])[];
34
+ template: ((string | RegExp)[] | (RegExp | {
35
+ token: string;
36
+ })[] | (RegExp | {
37
+ token: string;
38
+ next: string;
39
+ })[] | (RegExp | string[])[])[];
40
+ property: ((RegExp | {
41
+ token: string;
42
+ })[] | (RegExp | {
43
+ token: string;
44
+ next: string;
45
+ })[])[];
46
+ import: ((RegExp | {
47
+ token: string;
48
+ })[] | (RegExp | ({
49
+ token: string;
50
+ next?: undefined;
51
+ } | {
52
+ token: string;
53
+ next: string;
54
+ })[])[] | (RegExp | {
55
+ token: string;
56
+ next: string;
57
+ })[])[];
58
+ };
59
+ builtinVariables: RegExp;
60
+ builtinTypes: RegExp;
61
+ punctuation: RegExp;
62
+ importName: RegExp;
63
+ importAlias: RegExp;
64
+ empty: RegExp;
203
65
  };
@@ -0,0 +1,3 @@
1
+ import { default as Prism } from 'prismjs';
2
+ declare const _default: Record<string, Prism.GrammarValue>;
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shytv/ai-chart",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "main": "./dist/ai-chart.umd.index.mjs",
6
6
  "module": "./dist/ai-chart.es.index.js",
@@ -36,6 +36,7 @@
36
36
  "class-variance-authority": "^0.7.1",
37
37
  "cn": "^0.5.2",
38
38
  "lucide-react": "^1.68.0",
39
+ "prismjs": "^1.30.0",
39
40
  "remark-gfm": "^4.0.1",
40
41
  "shadcn": "^4.23.0",
41
42
  "tailwindcss": "^4.3.4",
@@ -47,6 +48,7 @@
47
48
  "@eslint/js": "^10.0.1",
48
49
  "@tailwindcss/vite": "^4.3.5",
49
50
  "@types/node": "^24.19.2",
51
+ "@types/prismjs": "^1.26.6",
50
52
  "@types/react": "^18.3.31",
51
53
  "@types/react-dom": "^18.3.7",
52
54
  "@vitejs/plugin-react": "^6.2.1",
@@ -54,7 +56,6 @@
54
56
  "eslint-plugin-react-hooks": "^7.1.1",
55
57
  "eslint-plugin-react-refresh": "^0.5.7",
56
58
  "globals": "^17.13.0",
57
- "monaco-editor": "^0.45.0",
58
59
  "react": "^18.2.0",
59
60
  "react-dom": "^18.2.0",
60
61
  "typescript": "~5.9.3",
@@ -1,3 +0,0 @@
1
- export declare function init(): void;
2
- export declare function transformCodeToHtml(code: string, theme?: string): Promise<string>;
3
- export declare function setTheme(theme?: string): void;
@@ -1,205 +0,0 @@
1
- import { languages, editor } from 'monaco-editor';
2
- export declare const LANGAGE_NAME = "tccScript";
3
- export declare const LANGUAGE_MONARCH_TOKENS: languages.IMonarchLanguage;
4
- export declare const CONFIGURATION: languages.LanguageConfiguration;
5
- export declare const COLORS: {
6
- "color-white": string;
7
- "color-black": string;
8
- "color-transparent": string;
9
- "color-cold-gray-50": string;
10
- "color-cold-gray-100": string;
11
- "color-cold-gray-150": string;
12
- "color-cold-gray-200": string;
13
- "color-cold-gray-250": string;
14
- "color-cold-gray-300": string;
15
- "color-cold-gray-350": string;
16
- "color-cold-gray-400": string;
17
- "color-cold-gray-450": string;
18
- "color-cold-gray-500": string;
19
- "color-cold-gray-550": string;
20
- "color-cold-gray-600": string;
21
- "color-cold-gray-650": string;
22
- "color-cold-gray-700": string;
23
- "color-cold-gray-750": string;
24
- "color-cold-gray-800": string;
25
- "color-cold-gray-850": string;
26
- "color-cold-gray-900": string;
27
- "color-cold-gray-950": string;
28
- "color-ripe-red-50": string;
29
- "color-ripe-red-100": string;
30
- "color-ripe-red-200": string;
31
- "color-ripe-red-300": string;
32
- "color-ripe-red-400": string;
33
- "color-ripe-red-500": string;
34
- "color-ripe-red-600": string;
35
- "color-ripe-red-700": string;
36
- "color-ripe-red-800": string;
37
- "color-ripe-red-900": string;
38
- "color-ripe-red-a100": string;
39
- "color-ripe-red-a200": string;
40
- "color-ripe-red-a400": string;
41
- "color-ripe-red-a600": string;
42
- "color-ripe-red-a700": string;
43
- "color-ripe-red-a800": string;
44
- "color-ripe-red-a900": string;
45
- "color-tan-orange-50": string;
46
- "color-tan-orange-100": string;
47
- "color-tan-orange-200": string;
48
- "color-tan-orange-300": string;
49
- "color-tan-orange-400": string;
50
- "color-tan-orange-500": string;
51
- "color-tan-orange-600": string;
52
- "color-tan-orange-700": string;
53
- "color-tan-orange-800": string;
54
- "color-tan-orange-900": string;
55
- "color-tan-orange-a200": string;
56
- "color-tan-orange-a400": string;
57
- "color-tan-orange-a600": string;
58
- "color-tan-orange-a700": string;
59
- "color-tan-orange-a800": string;
60
- "color-tan-orange-a900": string;
61
- "color-iguana-green-100": string;
62
- "color-iguana-green-200": string;
63
- "color-iguana-green-300": string;
64
- "color-iguana-green-400": string;
65
- "color-iguana-green-500": string;
66
- "color-iguana-green-600": string;
67
- "color-iguana-green-700": string;
68
- "color-iguana-green-800": string;
69
- "color-iguana-green-900": string;
70
- "color-iguana-green-a700": string;
71
- "color-banana-yellow-100": string;
72
- "color-banana-yellow-200": string;
73
- "color-banana-yellow-300": string;
74
- "color-banana-yellow-400": string;
75
- "color-banana-yellow-500": string;
76
- "color-banana-yellow-600": string;
77
- "color-banana-yellow-700": string;
78
- "color-banana-yellow-800": string;
79
- "color-banana-yellow-900": string;
80
- "color-banana-yellow-a400": string;
81
- "color-banana-yellow-a700": string;
82
- "color-tv-blue-50": string;
83
- "color-tv-blue-100": string;
84
- "color-tv-blue-200": string;
85
- "color-tv-blue-300": string;
86
- "color-tv-blue-400": string;
87
- "color-tv-blue-500": string;
88
- "color-tv-blue-600": string;
89
- "color-tv-blue-700": string;
90
- "color-tv-blue-800": string;
91
- "color-tv-blue-900": string;
92
- "color-tv-blue-a100": string;
93
- "color-tv-blue-a200": string;
94
- "color-tv-blue-a400": string;
95
- "color-tv-blue-a600": string;
96
- "color-tv-blue-a700": string;
97
- "color-tv-blue-a800": string;
98
- "color-tv-blue-a900": string;
99
- "color-deep-blue-50": string;
100
- "color-deep-blue-100": string;
101
- "color-deep-blue-200": string;
102
- "color-deep-blue-300": string;
103
- "color-deep-blue-400": string;
104
- "color-deep-blue-500": string;
105
- "color-deep-blue-700": string;
106
- "color-deep-blue-800": string;
107
- "color-deep-blue-900": string;
108
- "color-deep-blue-a100": string;
109
- "color-deep-blue-a200": string;
110
- "color-deep-blue-a400": string;
111
- "color-deep-blue-a700": string;
112
- "color-minty-green-50": string;
113
- "color-minty-green-100": string;
114
- "color-minty-green-200": string;
115
- "color-minty-green-300": string;
116
- "color-minty-green-400": string;
117
- "color-minty-green-500": string;
118
- "color-minty-green-600": string;
119
- "color-minty-green-700": string;
120
- "color-minty-green-800": string;
121
- "color-minty-green-900": string;
122
- "color-minty-green-a400": string;
123
- "color-minty-green-a600": string;
124
- "color-minty-green-a700": string;
125
- "color-minty-green-a800": string;
126
- "color-minty-green-a900": string;
127
- "color-grapes-purple-50": string;
128
- "color-grapes-purple-100": string;
129
- "color-grapes-purple-200": string;
130
- "color-grapes-purple-300": string;
131
- "color-grapes-purple-400": string;
132
- "color-grapes-purple-500": string;
133
- "color-grapes-purple-600": string;
134
- "color-grapes-purple-700": string;
135
- "color-grapes-purple-800": string;
136
- "color-grapes-purple-900": string;
137
- "color-grapes-purple-a100": string;
138
- "color-grapes-purple-a200": string;
139
- "color-grapes-purple-a400": string;
140
- "color-grapes-purple-a700": string;
141
- "color-berry-pink-100": string;
142
- "color-berry-pink-200": string;
143
- "color-berry-pink-300": string;
144
- "color-berry-pink-400": string;
145
- "color-berry-pink-500": string;
146
- "color-berry-pink-600": string;
147
- "color-berry-pink-700": string;
148
- "color-berry-pink-800": string;
149
- "color-berry-pink-900": string;
150
- "color-berry-pink-a100": string;
151
- "color-berry-pink-a200": string;
152
- "color-berry-pink-a400": string;
153
- "color-sky-blue-100": string;
154
- "color-sky-blue-200": string;
155
- "color-sky-blue-300": string;
156
- "color-sky-blue-400": string;
157
- "color-sky-blue-500": string;
158
- "color-sky-blue-600": string;
159
- "color-sky-blue-700": string;
160
- "color-sky-blue-800": string;
161
- "color-sky-blue-900": string;
162
- "color-sky-blue-a400": string;
163
- "color-sky-blue-a700": string;
164
- "color-deep-blue-600": string;
165
- "color-forest-green-50": string;
166
- "color-forest-green-100": string;
167
- "color-forest-green-200": string;
168
- "color-forest-green-300": string;
169
- "color-forest-green-400": string;
170
- "color-forest-green-500": string;
171
- "color-forest-green-600": string;
172
- "color-forest-green-700": string;
173
- "color-forest-green-800": string;
174
- "color-forest-green-900": string;
175
- "color-facebook": string;
176
- "color-deep-facebook": string;
177
- "color-twitter": string;
178
- "color-deep-twitter": string;
179
- "color-youtube": string;
180
- "color-linkedin": string;
181
- "color-seeking-alpha-brand": string;
182
- };
183
- export declare const VS: editor.IStandaloneThemeData;
184
- export declare const VS_DARK: editor.IStandaloneThemeData;
185
- export declare const QQSTRING_REG: RegExp;
186
- export declare const QSTRING_REG: RegExp;
187
- export declare const DEFAULT_COLORS: {
188
- "color.aqua": string;
189
- "color.black": string;
190
- "color.blue": string;
191
- "color.fuchsia": string;
192
- "color.gray": string;
193
- "color.green": string;
194
- "color.lime": string;
195
- "color.maroon": string;
196
- "color.navy": string;
197
- "color.olive": string;
198
- "color.orange": string;
199
- "color.purple": string;
200
- "color.red": string;
201
- "color.silver": string;
202
- "color.teal": string;
203
- "color.white": string;
204
- "color.yellow": string;
205
- };