@steedos-widgets/liveblocks 6.3.11-beta.20 → 6.3.12-beta.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/assets.json +5 -5
- package/dist/components/Comments.d.ts +0 -1
- package/dist/components/InboxPopover.d.ts +4 -0
- package/dist/components/Loading.d.ts +2 -0
- package/dist/components/Provider.d.ts +3 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/liveblocks.umd.css +109 -1
- package/dist/liveblocks.umd.js +1571 -1575
- package/dist/meta.js +147 -41
- package/dist/metas/InboxPopover.d.ts +2 -0
- package/dist/metas/Provider.d.ts +2 -0
- package/dist/types/components/Comments.d.ts +0 -1
- package/dist/types/components/InboxPopover.d.ts +4 -0
- package/dist/types/components/Loading.d.ts +2 -0
- package/dist/types/components/Provider.d.ts +3 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/metas/InboxPopover.d.ts +2 -0
- package/dist/types/metas/Provider.d.ts +2 -0
- package/package.json +7 -7
package/dist/meta.js
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
return __assign.apply(this, arguments);
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
var config = {
|
|
33
|
+
var config$2 = {
|
|
34
34
|
group: "华炎魔方-原子组件",
|
|
35
35
|
componentName: "AmisComments",
|
|
36
36
|
title: "Comments",
|
|
@@ -54,7 +54,149 @@
|
|
|
54
54
|
icon: "fa-fw fa fa-list-alt"
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
var Comments = __assign(__assign({}, config), { snippets: [
|
|
57
|
+
var Comments = __assign(__assign({}, config$2), { snippets: [
|
|
58
|
+
{
|
|
59
|
+
title: config$2.title,
|
|
60
|
+
screenshot: "",
|
|
61
|
+
schema: {
|
|
62
|
+
componentName: config$2.componentName,
|
|
63
|
+
props: config$2.preview
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
], amis: {
|
|
67
|
+
render: {
|
|
68
|
+
type: config$2.amis.name,
|
|
69
|
+
usage: "renderer",
|
|
70
|
+
weight: 1,
|
|
71
|
+
framework: "react"
|
|
72
|
+
},
|
|
73
|
+
plugin: {
|
|
74
|
+
rendererName: config$2.amis.name,
|
|
75
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
76
|
+
name: config$2.title,
|
|
77
|
+
description: config$2.title,
|
|
78
|
+
tags: [config$2.group],
|
|
79
|
+
order: -9999,
|
|
80
|
+
icon: config$2.amis.icon,
|
|
81
|
+
scaffold: {
|
|
82
|
+
type: config$2.amis.name,
|
|
83
|
+
className: "m-2 flex flex-col gap-y-2",
|
|
84
|
+
},
|
|
85
|
+
previewSchema: {
|
|
86
|
+
type: config$2.amis.name,
|
|
87
|
+
},
|
|
88
|
+
panelTitle: "设置",
|
|
89
|
+
panelControls: [
|
|
90
|
+
{
|
|
91
|
+
type: "text",
|
|
92
|
+
name: "roomId",
|
|
93
|
+
label: "Room Id",
|
|
94
|
+
value: "m-2 flex flex-col gap-y-2"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: "text",
|
|
98
|
+
name: "className",
|
|
99
|
+
label: "CSS类名",
|
|
100
|
+
value: "m-2 flex flex-col gap-y-2"
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
events: [{}],
|
|
104
|
+
},
|
|
105
|
+
} });
|
|
106
|
+
|
|
107
|
+
var config$1 = {
|
|
108
|
+
group: "华炎魔方-原子组件",
|
|
109
|
+
componentName: "AmisInboxPopover",
|
|
110
|
+
title: "Inbox Popover",
|
|
111
|
+
docUrl: "",
|
|
112
|
+
screenshot: "",
|
|
113
|
+
npm: {
|
|
114
|
+
package: "@steedos-widgets/liveblocks",
|
|
115
|
+
version: "{{version}}",
|
|
116
|
+
exportName: "AmisInboxPopover",
|
|
117
|
+
main: "",
|
|
118
|
+
destructuring: true,
|
|
119
|
+
subName: ""
|
|
120
|
+
},
|
|
121
|
+
props: [],
|
|
122
|
+
preview: {},
|
|
123
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
124
|
+
engines: ["amis"],
|
|
125
|
+
// settings for amis.
|
|
126
|
+
amis: {
|
|
127
|
+
name: 'rooms-inbox-popover',
|
|
128
|
+
icon: "fa-fw fa fa-list-alt"
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
var InboxPopover = __assign(__assign({}, config$1), { snippets: [
|
|
132
|
+
{
|
|
133
|
+
title: config$1.title,
|
|
134
|
+
screenshot: "",
|
|
135
|
+
schema: {
|
|
136
|
+
componentName: config$1.componentName,
|
|
137
|
+
props: config$1.preview
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
], amis: {
|
|
141
|
+
render: {
|
|
142
|
+
type: config$1.amis.name,
|
|
143
|
+
usage: "renderer",
|
|
144
|
+
weight: 1,
|
|
145
|
+
framework: "react"
|
|
146
|
+
},
|
|
147
|
+
plugin: {
|
|
148
|
+
rendererName: config$1.amis.name,
|
|
149
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
150
|
+
name: config$1.title,
|
|
151
|
+
description: config$1.title,
|
|
152
|
+
tags: [config$1.group],
|
|
153
|
+
order: -9999,
|
|
154
|
+
icon: config$1.amis.icon,
|
|
155
|
+
scaffold: {
|
|
156
|
+
type: config$1.amis.name,
|
|
157
|
+
className: "m-2 flex flex-col gap-y-2",
|
|
158
|
+
},
|
|
159
|
+
previewSchema: {
|
|
160
|
+
type: config$1.amis.name,
|
|
161
|
+
},
|
|
162
|
+
panelTitle: "设置",
|
|
163
|
+
panelControls: [
|
|
164
|
+
{
|
|
165
|
+
type: "text",
|
|
166
|
+
name: "className",
|
|
167
|
+
label: "CSS类名",
|
|
168
|
+
value: "m-2 flex flex-col gap-y-2"
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
events: [{}],
|
|
172
|
+
},
|
|
173
|
+
} });
|
|
174
|
+
|
|
175
|
+
var config = {
|
|
176
|
+
group: "Builder6",
|
|
177
|
+
componentName: "AmisRoomsProvider",
|
|
178
|
+
title: "Rooms Provider",
|
|
179
|
+
docUrl: "",
|
|
180
|
+
screenshot: "",
|
|
181
|
+
npm: {
|
|
182
|
+
package: "@steedos-widgets/liveblocks",
|
|
183
|
+
version: "{{version}}",
|
|
184
|
+
exportName: "AmisRoomsProvider",
|
|
185
|
+
main: "",
|
|
186
|
+
destructuring: true,
|
|
187
|
+
subName: ""
|
|
188
|
+
},
|
|
189
|
+
props: [],
|
|
190
|
+
preview: {},
|
|
191
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
192
|
+
engines: ["amis"],
|
|
193
|
+
// settings for amis.
|
|
194
|
+
amis: {
|
|
195
|
+
name: 'rooms-provider',
|
|
196
|
+
icon: "fa-fw fa fa-list-alt"
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
var Provider = __assign(__assign({}, config), { snippets: [
|
|
58
200
|
{
|
|
59
201
|
title: config.title,
|
|
60
202
|
screenshot: "",
|
|
@@ -93,43 +235,7 @@
|
|
|
93
235
|
label: "Base URL",
|
|
94
236
|
value: "m-2 flex flex-col gap-y-2"
|
|
95
237
|
},
|
|
96
|
-
{
|
|
97
|
-
type: "text",
|
|
98
|
-
name: "roomId",
|
|
99
|
-
label: "Room Id",
|
|
100
|
-
value: "m-2 flex flex-col gap-y-2"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
type: "text",
|
|
104
|
-
name: "className",
|
|
105
|
-
label: "CSS类名",
|
|
106
|
-
value: "m-2 flex flex-col gap-y-2"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
type: "editor",
|
|
110
|
-
"language": "json",
|
|
111
|
-
name: "config",
|
|
112
|
-
label: "配置",
|
|
113
|
-
pipeOut: function (value) {
|
|
114
|
-
try {
|
|
115
|
-
return value ? JSON.parse(value) : null;
|
|
116
|
-
}
|
|
117
|
-
catch (e) {
|
|
118
|
-
}
|
|
119
|
-
return value;
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
type: "editor",
|
|
124
|
-
"language": "javascript",
|
|
125
|
-
name: "dataFilter",
|
|
126
|
-
label: "数据加工",
|
|
127
|
-
description: "如果后端没有直接返回配置,可以自己写一段函数来包装。\
|
|
128
|
-
签名:(config, env, data) => config \
|
|
129
|
-
"
|
|
130
|
-
},
|
|
131
238
|
],
|
|
132
|
-
events: [{}],
|
|
133
239
|
},
|
|
134
240
|
} });
|
|
135
241
|
|
|
@@ -140,12 +246,12 @@
|
|
|
140
246
|
* @LastEditTime: 2022-09-01 18:46:29
|
|
141
247
|
* @Description:
|
|
142
248
|
*/
|
|
143
|
-
var components = [Comments];
|
|
249
|
+
var components = [Comments, InboxPopover, Provider];
|
|
144
250
|
var componentList = [
|
|
145
251
|
{
|
|
146
|
-
title: "
|
|
252
|
+
title: "Builder6",
|
|
147
253
|
icon: "",
|
|
148
|
-
children: [Comments]
|
|
254
|
+
children: [Comments, InboxPopover, Provider]
|
|
149
255
|
}
|
|
150
256
|
];
|
|
151
257
|
var meta = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import "@liveblocks/react-ui/styles.css";
|
|
3
3
|
import './Comments.css';
|
|
4
|
-
export declare const Loading: () => JSX.Element;
|
|
5
4
|
export declare const Threads: (props: any) => JSX.Element;
|
|
6
5
|
export declare const AmisComments: (props: any) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/liveblocks",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "6.3.
|
|
4
|
+
"version": "6.3.12-beta.1",
|
|
5
5
|
"main": "dist/liveblocks.cjs.js",
|
|
6
6
|
"module": "dist/liveblocks.esm.js",
|
|
7
7
|
"unpkg": "dist/liveblocks.umd.js",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"rollup-plugin-visualizer": "^5.8.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@liveblocks/client": "
|
|
52
|
-
"@liveblocks/node": "
|
|
53
|
-
"@liveblocks/react": "
|
|
54
|
-
"@liveblocks/react-ui": "
|
|
51
|
+
"@liveblocks/client": "2.12.0",
|
|
52
|
+
"@liveblocks/node": "2.12.0",
|
|
53
|
+
"@liveblocks/react": "2.12.0",
|
|
54
|
+
"@liveblocks/react-ui": "2.12.0",
|
|
55
55
|
"@rollup/plugin-replace": "^5.0.2",
|
|
56
|
-
"@steedos-widgets/amis-lib": "6.3.
|
|
56
|
+
"@steedos-widgets/amis-lib": "6.3.12-beta.1",
|
|
57
57
|
"react-error-boundary": "^4.1.2"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "98cb69b94cbb05678ff1a577e90053f38de98b8d"
|
|
60
60
|
}
|