@blocklet/discuss-kit-ux 1.6.205 → 1.6.207
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/components/api-error-handler/default-handler.d.ts +1 -0
- package/dist/components/api-error-handler/index.d.ts +1 -1
- package/dist/{editor-zEwMDonN.mjs → editor-5I4Vr3U6.mjs} +1 -1
- package/dist/{index-rSaGPi_q.mjs → index-KsyZ0KOb.mjs} +24 -19
- package/dist/index.es.js +20 -19
- package/dist/index.umd.js +5 -0
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useApiErrorHandler } from './api-error-handler';
|
|
2
|
-
export
|
|
2
|
+
export * from './default-handler';
|
|
@@ -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-KsyZ0KOb.mjs";
|
|
8
8
|
import "@blocklet/labels";
|
|
9
9
|
import "@mui/material/styles";
|
|
10
10
|
import "@mui/material/Box";
|
|
@@ -4985,6 +4985,10 @@ const useDefaultApiErrorHandler = (options) => {
|
|
|
4985
4985
|
};
|
|
4986
4986
|
useApiErrorHandler({ request, errorHandler });
|
|
4987
4987
|
};
|
|
4988
|
+
const DefaultApiErrorHandler = ({ request }) => {
|
|
4989
|
+
useDefaultApiErrorHandler({ request });
|
|
4990
|
+
return null;
|
|
4991
|
+
};
|
|
4988
4992
|
const apiPrefix = inferDiscussKitApiPrefix();
|
|
4989
4993
|
const baseURL = joinUrl(window.location.origin, apiPrefix);
|
|
4990
4994
|
let cachedTemplateList = null;
|
|
@@ -5175,7 +5179,7 @@ function Pagination({
|
|
|
5175
5179
|
}
|
|
5176
5180
|
);
|
|
5177
5181
|
}
|
|
5178
|
-
const Editor = lazy(() => import("./editor-
|
|
5182
|
+
const Editor = lazy(() => import("./editor-5I4Vr3U6.mjs"));
|
|
5179
5183
|
function LazyEditor(props) {
|
|
5180
5184
|
const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5181
5185
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -11378,24 +11382,25 @@ export {
|
|
|
11378
11382
|
SecureLabelPicker as a5,
|
|
11379
11383
|
useApiErrorHandler as a6,
|
|
11380
11384
|
useDefaultApiErrorHandler as a7,
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11385
|
+
DefaultApiErrorHandler as a8,
|
|
11386
|
+
PreviousLocationRecorder as a9,
|
|
11387
|
+
Back as aa,
|
|
11388
|
+
LazyEditor as ab,
|
|
11389
|
+
EditorPreview as ac,
|
|
11390
|
+
DirtyPromptContainer as ad,
|
|
11391
|
+
ConfirmNavigation as ae,
|
|
11392
|
+
UploaderContext as af,
|
|
11393
|
+
useUploader as ag,
|
|
11394
|
+
UploaderTrigger as ah,
|
|
11395
|
+
UploaderProvider as ai,
|
|
11396
|
+
composeImageUrl as aj,
|
|
11397
|
+
usePointUpContext as ak,
|
|
11398
|
+
PointUpProvider as al,
|
|
11399
|
+
ButtonGroup as am,
|
|
11400
|
+
SegmentedControl as an,
|
|
11401
|
+
create as ao,
|
|
11402
|
+
getWsClient as ap,
|
|
11403
|
+
useSubscription as aq,
|
|
11399
11404
|
Input as b,
|
|
11400
11405
|
useChanged as c,
|
|
11401
11406
|
useSessionContext as d,
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "@blocklet/labels";
|
|
2
|
-
import { O, k, T, A, j,
|
|
2
|
+
import { O, k, T, A, j, aa, B, z, H, F, J, am, W, U, X, Z, q, C, v, w, y, a1, a2, ae, a4, L, N, a8, D, ad, ac, E, G, b, h, ab, M, P, al, o, n, a9, R, S, a5, an, m, _, a0, af, ai, ah, aj, ao, K, ap, l, p, r, f, t, a6, Q, c, Y, x, a3, a7, u, ak, d, aq, $, ag, e } from "./index-KsyZ0KOb.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
|
@@ -76,13 +76,13 @@ export {
|
|
|
76
76
|
T as AuthzProvider,
|
|
77
77
|
A as Avatar,
|
|
78
78
|
j as Avatars,
|
|
79
|
-
|
|
79
|
+
aa as Back,
|
|
80
80
|
B as Badge,
|
|
81
81
|
z as BinaryThumb,
|
|
82
82
|
H as BlogCard,
|
|
83
83
|
F as BlogList,
|
|
84
84
|
J as BlogPermaLink,
|
|
85
|
-
|
|
85
|
+
am as ButtonGroup,
|
|
86
86
|
W as Chat,
|
|
87
87
|
U as ChatClient,
|
|
88
88
|
X as ChatHeaderAddon,
|
|
@@ -94,38 +94,39 @@ export {
|
|
|
94
94
|
y as CommentsProvider,
|
|
95
95
|
a1 as Confirm,
|
|
96
96
|
a2 as ConfirmContext,
|
|
97
|
-
|
|
97
|
+
ae as ConfirmNavigation,
|
|
98
98
|
a4 as ConfirmProvider,
|
|
99
99
|
L as CoverImage,
|
|
100
100
|
N as CoverImageUpload,
|
|
101
|
+
a8 as DefaultApiErrorHandler,
|
|
101
102
|
D as DefaultEditorConfigProvider,
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
ad as DirtyPromptContainer,
|
|
104
|
+
ac as EditorPreview,
|
|
104
105
|
E as EmptyStatus,
|
|
105
106
|
G as GithubReaction,
|
|
106
107
|
b as Input,
|
|
107
108
|
h as InternalThemeProvider,
|
|
108
|
-
|
|
109
|
+
ab as LazyEditor,
|
|
109
110
|
M as Menu,
|
|
110
111
|
P as Pagination,
|
|
111
|
-
|
|
112
|
+
al as PointUpProvider,
|
|
112
113
|
o as Post,
|
|
113
114
|
n as PostContent,
|
|
114
|
-
|
|
115
|
+
a9 as PreviousLocationRecorder,
|
|
115
116
|
R as RelativeTime,
|
|
116
117
|
S as ScrollableEditorWrapper,
|
|
117
118
|
a5 as SecureLabelPicker,
|
|
118
|
-
|
|
119
|
+
an as SegmentedControl,
|
|
119
120
|
m as SystemUser,
|
|
120
121
|
_ as UnreadNotificationContext,
|
|
121
122
|
a0 as UnreadNotificationProvider,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
af as UploaderContext,
|
|
124
|
+
ai as UploaderProvider,
|
|
125
|
+
ah as UploaderTrigger,
|
|
126
|
+
aj as composeImageUrl,
|
|
127
|
+
ao as create,
|
|
127
128
|
K as getBlogLink,
|
|
128
|
-
|
|
129
|
+
ap as getWsClient,
|
|
129
130
|
l as lexicalUtils,
|
|
130
131
|
p as preferences,
|
|
131
132
|
r as routes,
|
|
@@ -139,10 +140,10 @@ export {
|
|
|
139
140
|
a3 as useConfirm,
|
|
140
141
|
a7 as useDefaultApiErrorHandler,
|
|
141
142
|
u as useNow,
|
|
142
|
-
|
|
143
|
+
ak as usePointUpContext,
|
|
143
144
|
d as useSessionContext,
|
|
144
|
-
|
|
145
|
+
aq as useSubscription,
|
|
145
146
|
$ as useUnreadNotification,
|
|
146
|
-
|
|
147
|
+
ag as useUploader,
|
|
147
148
|
e as utils
|
|
148
149
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -4918,6 +4918,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4918
4918
|
};
|
|
4919
4919
|
useApiErrorHandler({ request, errorHandler });
|
|
4920
4920
|
};
|
|
4921
|
+
const DefaultApiErrorHandler = ({ request }) => {
|
|
4922
|
+
useDefaultApiErrorHandler({ request });
|
|
4923
|
+
return null;
|
|
4924
|
+
};
|
|
4921
4925
|
const apiPrefix = inferDiscussKitApiPrefix();
|
|
4922
4926
|
const baseURL = joinUrl(window.location.origin, apiPrefix);
|
|
4923
4927
|
let cachedTemplateList = null;
|
|
@@ -11331,6 +11335,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11331
11335
|
exports2.ConfirmProvider = ConfirmProvider;
|
|
11332
11336
|
exports2.CoverImage = CoverImage;
|
|
11333
11337
|
exports2.CoverImageUpload = CoverImageUpload;
|
|
11338
|
+
exports2.DefaultApiErrorHandler = DefaultApiErrorHandler;
|
|
11334
11339
|
exports2.DefaultEditorConfigProvider = DefaultEditorConfigProvider;
|
|
11335
11340
|
exports2.DirtyPromptContainer = DirtyPromptContainer;
|
|
11336
11341
|
exports2.EditorPreview = EditorPreview;
|
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.207",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@arcblock/ws": "^1.18.115",
|
|
32
|
-
"@blocklet/editor": "1.6.
|
|
33
|
-
"@blocklet/labels": "1.6.
|
|
32
|
+
"@blocklet/editor": "1.6.207",
|
|
33
|
+
"@blocklet/labels": "1.6.207",
|
|
34
34
|
"@blocklet/uploader": "^0.0.76",
|
|
35
35
|
"@emotion/css": "^11.10.5",
|
|
36
36
|
"@emotion/react": "^11.10.5",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"resolutions": {
|
|
95
95
|
"react": "^18.2.0"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "ba560c435ac7041238ea13fd1e872839d99a259a"
|
|
98
98
|
}
|