@blocklet/discuss-kit-ux 1.6.233 → 1.6.234
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.
|
@@ -4,7 +4,7 @@ import { OnContentChangePlugin } from "@blocklet/editor/lib/ext/OnContentChangeP
|
|
|
4
4
|
import { CtrlsShortcutPlugin } from "@blocklet/editor/lib/ext/ShortcutPlugin";
|
|
5
5
|
import { SafeAreaPlugin } from "@blocklet/editor/lib/ext/SafeAreaPlugin";
|
|
6
6
|
import { lazy } from "react";
|
|
7
|
-
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-
|
|
7
|
+
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-C1KXOSUr.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -5466,43 +5466,6 @@ function DefaultEditorConfigProvider({
|
|
|
5466
5466
|
return result.data;
|
|
5467
5467
|
}
|
|
5468
5468
|
};
|
|
5469
|
-
if (isAdmin && blockletExists("ai-assistant")) {
|
|
5470
|
-
AI.fetchTemplateTags = async () => {
|
|
5471
|
-
var _a3;
|
|
5472
|
-
try {
|
|
5473
|
-
const {
|
|
5474
|
-
data: { tags }
|
|
5475
|
-
} = await request.get(
|
|
5476
|
-
joinUrl(window.location.origin, aiAssistantMountPoint, "/api/tags")
|
|
5477
|
-
);
|
|
5478
|
-
return tags;
|
|
5479
|
-
} catch (e) {
|
|
5480
|
-
(_a3 = e.markAsHandled) == null ? void 0 : _a3.call(e);
|
|
5481
|
-
console.error(e);
|
|
5482
|
-
return [];
|
|
5483
|
-
}
|
|
5484
|
-
};
|
|
5485
|
-
AI.fetchTemplates = async (params = {}) => {
|
|
5486
|
-
var _a3;
|
|
5487
|
-
const { offset = 0, limit = 20, tag } = params;
|
|
5488
|
-
try {
|
|
5489
|
-
const {
|
|
5490
|
-
data: { assistants }
|
|
5491
|
-
} = await request.get(
|
|
5492
|
-
joinUrl(
|
|
5493
|
-
window.location.origin,
|
|
5494
|
-
aiAssistantMountPoint,
|
|
5495
|
-
`/api/assistants?offset=${offset}&limit=${limit}${tag ? `&tag=${tag}` : ""}`
|
|
5496
|
-
)
|
|
5497
|
-
);
|
|
5498
|
-
return assistants;
|
|
5499
|
-
} catch (e) {
|
|
5500
|
-
(_a3 = e.markAsHandled) == null ? void 0 : _a3.call(e);
|
|
5501
|
-
console.error(e);
|
|
5502
|
-
return [];
|
|
5503
|
-
}
|
|
5504
|
-
};
|
|
5505
|
-
}
|
|
5506
5469
|
const templatePlugin = {
|
|
5507
5470
|
fetchTemplateList: async ({ reload = false } = {}) => {
|
|
5508
5471
|
var _a3;
|
|
@@ -5595,7 +5558,7 @@ function Pagination({
|
|
|
5595
5558
|
}
|
|
5596
5559
|
);
|
|
5597
5560
|
}
|
|
5598
|
-
const Editor = lazy(() => import("./editor-
|
|
5561
|
+
const Editor = lazy(() => import("./editor-DLjsP-Nc.mjs"));
|
|
5599
5562
|
function LazyEditor(props) {
|
|
5600
5563
|
const fallback = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
5601
5564
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "@blocklet/labels";
|
|
2
|
-
import { Q, m, U, A, k, ad, B, E, J, H, K, ap, X, W, _, Y, Z, a0, v, C, w, x, z, a4, a5, ah, a7, N, O, ab, D, ag, af, F, G, b, j, ae, M, P, ao, q, o, ac, R, S, a8, aq, n, a1, a3, ai, al, ak, am, ar, L, as, l, p, r, h, t, f, a9, T, c, $, y, a6, aa, u, an, d, at, a2, aj, e } from "./index-
|
|
2
|
+
import { Q, m, U, A, k, ad, B, E, J, H, K, ap, X, W, _, Y, Z, a0, v, C, w, x, z, a4, a5, ah, a7, N, O, ab, D, ag, af, F, G, b, j, ae, M, P, ao, q, o, ac, R, S, a8, aq, n, a1, a3, ai, al, ak, am, ar, L, as, l, p, r, h, t, f, a9, T, c, $, y, a6, aa, u, an, d, at, a2, aj, e } from "./index-C1KXOSUr.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -5398,43 +5398,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5398
5398
|
return result.data;
|
|
5399
5399
|
}
|
|
5400
5400
|
};
|
|
5401
|
-
if (isAdmin && blockletExists("ai-assistant")) {
|
|
5402
|
-
AI.fetchTemplateTags = async () => {
|
|
5403
|
-
var _a3;
|
|
5404
|
-
try {
|
|
5405
|
-
const {
|
|
5406
|
-
data: { tags }
|
|
5407
|
-
} = await request.get(
|
|
5408
|
-
joinUrl(window.location.origin, aiAssistantMountPoint, "/api/tags")
|
|
5409
|
-
);
|
|
5410
|
-
return tags;
|
|
5411
|
-
} catch (e) {
|
|
5412
|
-
(_a3 = e.markAsHandled) == null ? void 0 : _a3.call(e);
|
|
5413
|
-
console.error(e);
|
|
5414
|
-
return [];
|
|
5415
|
-
}
|
|
5416
|
-
};
|
|
5417
|
-
AI.fetchTemplates = async (params = {}) => {
|
|
5418
|
-
var _a3;
|
|
5419
|
-
const { offset = 0, limit = 20, tag } = params;
|
|
5420
|
-
try {
|
|
5421
|
-
const {
|
|
5422
|
-
data: { assistants }
|
|
5423
|
-
} = await request.get(
|
|
5424
|
-
joinUrl(
|
|
5425
|
-
window.location.origin,
|
|
5426
|
-
aiAssistantMountPoint,
|
|
5427
|
-
`/api/assistants?offset=${offset}&limit=${limit}${tag ? `&tag=${tag}` : ""}`
|
|
5428
|
-
)
|
|
5429
|
-
);
|
|
5430
|
-
return assistants;
|
|
5431
|
-
} catch (e) {
|
|
5432
|
-
(_a3 = e.markAsHandled) == null ? void 0 : _a3.call(e);
|
|
5433
|
-
console.error(e);
|
|
5434
|
-
return [];
|
|
5435
|
-
}
|
|
5436
|
-
};
|
|
5437
|
-
}
|
|
5438
5401
|
const templatePlugin = {
|
|
5439
5402
|
fetchTemplateList: async ({ reload = false } = {}) => {
|
|
5440
5403
|
var _a3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.234",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@arcblock/bridge": "^2.9.75",
|
|
32
32
|
"@arcblock/ws": "^1.18.115",
|
|
33
|
-
"@blocklet/editor": "1.6.
|
|
34
|
-
"@blocklet/labels": "1.6.
|
|
33
|
+
"@blocklet/editor": "1.6.234",
|
|
34
|
+
"@blocklet/labels": "1.6.234",
|
|
35
35
|
"@blocklet/uploader": "^0.0.78",
|
|
36
36
|
"@emotion/css": "^11.10.5",
|
|
37
37
|
"@emotion/react": "^11.10.5",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"resolutions": {
|
|
96
96
|
"react": "^18.2.0"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "630c1a20241c7d3d65d3f90f78b7858d2198b25d"
|
|
99
99
|
}
|