@steedos-widgets/liveblocks 6.3.11 → 6.3.12-beta.10

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/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 = {
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -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;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import * as Popover from "@radix-ui/react-popover";
3
+ import './InboxPopover.css';
4
+ export declare function AmisInboxPopover({ className, ...props }: Popover.PopoverContentProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function Loading(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import "@liveblocks/react-ui/styles.css";
3
+ export declare const AmisRoomsProvider: (props: any) => JSX.Element;
@@ -1 +1,3 @@
1
1
  export * from './Comments';
2
+ export * from './InboxPopover';
3
+ export * from './Provider';
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/liveblocks",
3
3
  "private": false,
4
- "version": "6.3.11",
4
+ "version": "6.3.12-beta.10",
5
5
  "main": "dist/liveblocks.cjs.js",
6
6
  "module": "dist/liveblocks.esm.js",
7
7
  "unpkg": "dist/liveblocks.umd.js",
@@ -48,13 +48,14 @@
48
48
  "rollup-plugin-visualizer": "^5.8.0"
49
49
  },
50
50
  "dependencies": {
51
- "@liveblocks/client": "^2.11.0",
52
- "@liveblocks/node": "^2.11.0",
53
- "@liveblocks/react": "^2.11.0",
54
- "@liveblocks/react-ui": "^2.11.0",
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.11",
56
+ "@steedos-widgets/amis-lib": "6.3.12-beta.10",
57
+ "emojibase-data": "^16.0.2",
57
58
  "react-error-boundary": "^4.1.2"
58
59
  },
59
- "gitHead": "856170d590303b7e5a717fb167bddb9c042c6749"
60
+ "gitHead": "1805811dca8b72abb0873c1539194cb5c4520c8f"
60
61
  }
@@ -1,25 +0,0 @@
1
- {
2
- "packages": [
3
- {
4
- "package": "@steedos-widgets/liveblocks",
5
- "urls": [
6
- "http://127.0.0.1:8080/@steedos-widgets/liveblocks/dist/liveblocks.umd.js",
7
- "http://127.0.0.1:8080/@steedos-widgets/liveblocks/dist/liveblocks.umd.css"
8
- ],
9
- "library": "BuilderLiveblocks"
10
- }
11
- ],
12
- "components": [
13
- {
14
- "exportName": "BuilderLiveblocksMeta",
15
- "npm": {
16
- "package": "@steedos-widgets/liveblocks"
17
- },
18
- "url": "http://127.0.0.1:8080/@steedos-widgets/liveblocks/dist/meta.js",
19
- "urls": {
20
- "default": "http://127.0.0.1:8080/@steedos-widgets/liveblocks/dist/meta.js",
21
- "design": "http://127.0.0.1:8080/@steedos-widgets/liveblocks/dist/meta.js"
22
- }
23
- }
24
- ]
25
- }