tiptap-ui-kit-k 0.1.0 → 0.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/dist/index.d.ts +22 -22
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1278,11 +1278,11 @@ export { }
|
|
|
1278
1278
|
|
|
1279
1279
|
declare module '@tiptap/core' {
|
|
1280
1280
|
interface Commands<ReturnType> {
|
|
1281
|
-
|
|
1281
|
+
continueWriting: {
|
|
1282
1282
|
/**
|
|
1283
|
-
* Trigger AI
|
|
1283
|
+
* Trigger AI continue writing
|
|
1284
1284
|
*/
|
|
1285
|
-
|
|
1285
|
+
continueWriting: () => ReturnType;
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
@@ -1290,11 +1290,15 @@ declare module '@tiptap/core' {
|
|
|
1290
1290
|
|
|
1291
1291
|
declare module '@tiptap/core' {
|
|
1292
1292
|
interface Commands<ReturnType> {
|
|
1293
|
-
|
|
1293
|
+
aiHighlight: {
|
|
1294
1294
|
/**
|
|
1295
|
-
*
|
|
1295
|
+
* Set AI highlight mark with suggestion data
|
|
1296
1296
|
*/
|
|
1297
|
-
|
|
1297
|
+
setAiHighlight: (data?: AiSuggestionData) => ReturnType;
|
|
1298
|
+
/**
|
|
1299
|
+
* Unset AI highlight mark
|
|
1300
|
+
*/
|
|
1301
|
+
unsetAiHighlight: () => ReturnType;
|
|
1298
1302
|
};
|
|
1299
1303
|
}
|
|
1300
1304
|
}
|
|
@@ -1302,8 +1306,11 @@ declare module '@tiptap/core' {
|
|
|
1302
1306
|
|
|
1303
1307
|
declare module '@tiptap/core' {
|
|
1304
1308
|
interface Commands<ReturnType> {
|
|
1305
|
-
|
|
1306
|
-
|
|
1309
|
+
polish: {
|
|
1310
|
+
/**
|
|
1311
|
+
* Trigger AI polish (refine) text
|
|
1312
|
+
*/
|
|
1313
|
+
polish: () => ReturnType;
|
|
1307
1314
|
};
|
|
1308
1315
|
}
|
|
1309
1316
|
}
|
|
@@ -1311,8 +1318,8 @@ declare module '@tiptap/core' {
|
|
|
1311
1318
|
|
|
1312
1319
|
declare module '@tiptap/core' {
|
|
1313
1320
|
interface Commands<ReturnType> {
|
|
1314
|
-
|
|
1315
|
-
|
|
1321
|
+
summarize: {
|
|
1322
|
+
summarize: () => ReturnType;
|
|
1316
1323
|
};
|
|
1317
1324
|
}
|
|
1318
1325
|
}
|
|
@@ -1320,11 +1327,11 @@ declare module '@tiptap/core' {
|
|
|
1320
1327
|
|
|
1321
1328
|
declare module '@tiptap/core' {
|
|
1322
1329
|
interface Commands<ReturnType> {
|
|
1323
|
-
|
|
1330
|
+
customAi: {
|
|
1324
1331
|
/**
|
|
1325
|
-
* Trigger AI
|
|
1332
|
+
* Trigger custom AI command
|
|
1326
1333
|
*/
|
|
1327
|
-
|
|
1334
|
+
customAi: () => ReturnType;
|
|
1328
1335
|
};
|
|
1329
1336
|
}
|
|
1330
1337
|
}
|
|
@@ -1332,15 +1339,8 @@ declare module '@tiptap/core' {
|
|
|
1332
1339
|
|
|
1333
1340
|
declare module '@tiptap/core' {
|
|
1334
1341
|
interface Commands<ReturnType> {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
* Set AI highlight mark with suggestion data
|
|
1338
|
-
*/
|
|
1339
|
-
setAiHighlight: (data?: AiSuggestionData) => ReturnType;
|
|
1340
|
-
/**
|
|
1341
|
-
* Unset AI highlight mark
|
|
1342
|
-
*/
|
|
1343
|
-
unsetAiHighlight: () => ReturnType;
|
|
1342
|
+
translation: {
|
|
1343
|
+
translate: (targetLang?: string) => ReturnType;
|
|
1344
1344
|
};
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiptap-ui-kit-k",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Beautiful Tiptap 3 + Vue 3 rich-text editor theme with AI support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"import": "./dist/index.esm.js",
|
|
13
13
|
"require": "./dist/index.js"
|
|
14
14
|
},
|
|
15
|
-
"./style.css": "./dist/
|
|
15
|
+
"./style.css": "./dist/styles/*.css"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|