@steedos-widgets/liveblocks 6.3.11-beta.15

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.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ componentList: {
3
+ title: string;
4
+ icon: string;
5
+ children: any[];
6
+ }[];
7
+ components: any[];
8
+ };
9
+ export default _default;
package/dist/meta.js ADDED
@@ -0,0 +1,149 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BuidlerLiveblocksMeta = factory());
5
+ })(this, (function () { 'use strict';
6
+
7
+ /******************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+
22
+ var __assign = function() {
23
+ __assign = Object.assign || function __assign(t) {
24
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
25
+ s = arguments[i];
26
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
+ }
28
+ return t;
29
+ };
30
+ return __assign.apply(this, arguments);
31
+ };
32
+
33
+ var config = {
34
+ group: "华炎魔方-原子组件",
35
+ componentName: "AmisComments",
36
+ title: "Comments",
37
+ docUrl: "",
38
+ screenshot: "",
39
+ npm: {
40
+ package: "@steedos-widgets/liveblocks",
41
+ version: "{{version}}",
42
+ exportName: "AmisComments",
43
+ main: "",
44
+ destructuring: true,
45
+ subName: ""
46
+ },
47
+ props: [],
48
+ preview: {},
49
+ targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
50
+ engines: ["amis"],
51
+ // settings for amis.
52
+ amis: {
53
+ name: 'comments',
54
+ icon: "fa-fw fa fa-list-alt"
55
+ }
56
+ };
57
+ var LBComments = __assign(__assign({}, config), { snippets: [
58
+ {
59
+ title: config.title,
60
+ screenshot: "",
61
+ schema: {
62
+ componentName: config.componentName,
63
+ props: config.preview
64
+ }
65
+ }
66
+ ], amis: {
67
+ render: {
68
+ type: config.amis.name,
69
+ usage: "renderer",
70
+ weight: 1,
71
+ framework: "react"
72
+ },
73
+ plugin: {
74
+ rendererName: config.amis.name,
75
+ $schema: '/schemas/UnkownSchema.json',
76
+ name: config.title,
77
+ description: config.title,
78
+ tags: [config.group],
79
+ order: -9999,
80
+ icon: config.amis.icon,
81
+ scaffold: {
82
+ type: config.amis.name,
83
+ className: "h-80",
84
+ config: {
85
+ // Row Data: The data to be displayed.
86
+ },
87
+ },
88
+ previewSchema: {
89
+ type: config.amis.name,
90
+ },
91
+ panelTitle: "设置",
92
+ panelControls: [
93
+ {
94
+ type: "text",
95
+ name: "className",
96
+ label: "CSS类名",
97
+ value: "bg-gray-100 border-b sm:rounded sm:border border-gray-300 p-4 mb-4 h-full"
98
+ },
99
+ {
100
+ type: "editor",
101
+ "language": "json",
102
+ name: "config",
103
+ label: "配置",
104
+ pipeOut: function (value) {
105
+ try {
106
+ return value ? JSON.parse(value) : null;
107
+ }
108
+ catch (e) {
109
+ }
110
+ return value;
111
+ }
112
+ },
113
+ {
114
+ type: "editor",
115
+ "language": "javascript",
116
+ name: "dataFilter",
117
+ label: "数据加工",
118
+ description: "如果后端没有直接返回配置,可以自己写一段函数来包装。\
119
+ 签名:(config, env, data) => config \
120
+ "
121
+ },
122
+ ],
123
+ events: [{}],
124
+ },
125
+ } });
126
+
127
+ /*
128
+ * @Author: baozhoutao@steedos.com
129
+ * @Date: 2022-08-31 16:32:35
130
+ * @LastEditors: baozhoutao@steedos.com
131
+ * @LastEditTime: 2022-09-01 18:46:29
132
+ * @Description:
133
+ */
134
+ var components = [LBComments];
135
+ var componentList = [
136
+ {
137
+ title: "华炎魔方",
138
+ icon: "",
139
+ children: [LBComments]
140
+ }
141
+ ];
142
+ var meta = {
143
+ componentList: componentList,
144
+ components: components
145
+ };
146
+
147
+ return meta;
148
+
149
+ }));
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const Loading: () => JSX.Element;
3
+ export declare const Threads: (props: any) => JSX.Element;
4
+ export declare const AmisComments: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Comments';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ componentList: {
3
+ title: string;
4
+ icon: string;
5
+ children: any[];
6
+ }[];
7
+ components: any[];
8
+ };
9
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@steedos-widgets/liveblocks",
3
+ "private": false,
4
+ "version": "6.3.11-beta.15",
5
+ "main": "dist/liveblocks.cjs.js",
6
+ "module": "dist/liveblocks.esm.js",
7
+ "unpkg": "dist/liveblocks.umd.js",
8
+ "typings": "dist/liveblocks.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "prebuild": "rimraf dist",
14
+ "http": "npx http-server ../ --port 8080 --cors -c -1",
15
+ "build": "yarn build-types && yarn build-rollup",
16
+ "build-types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
17
+ "build-rollup": "rollup -c rollup.config.ts"
18
+ },
19
+ "license": "MIT",
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "devDependencies": {
24
+ "@rollup/plugin-babel": "^5.3.1",
25
+ "@rollup/plugin-commonjs": "^22.0.0",
26
+ "@rollup/plugin-node-resolve": "^13.1.3",
27
+ "@rollup/plugin-typescript": "^8.4.0",
28
+ "@types/react": "^18.0.8",
29
+ "@types/react-dom": "^18.0.6",
30
+ "react": "18.2.0",
31
+ "react-dom": "18.2.0",
32
+ "rollup": "^2.70.1",
33
+ "rollup-plugin-alias": "^2.2.0",
34
+ "rollup-plugin-external-globals": "^0.6.1",
35
+ "rollup-plugin-json": "^4.0.0",
36
+ "rollup-plugin-node-builtins": "^2.1.2",
37
+ "rollup-plugin-node-globals": "^1.4.0",
38
+ "rollup-plugin-node-resolve": "^5.2.0",
39
+ "rollup-plugin-polyfill-node": "^0.8.0",
40
+ "rollup-plugin-postcss": "^4.0.2",
41
+ "rollup-plugin-postcss-webpack-alias-less-loader": "^1.0.0",
42
+ "rollup-plugin-re": "^1.0.7",
43
+ "rollup-plugin-replace": "^2.0.0",
44
+ "rollup-plugin-sourcemaps": "^0.6.3",
45
+ "rollup-plugin-svg": "^2.0.0",
46
+ "rollup-plugin-terser": "^7.0.2",
47
+ "rollup-plugin-tslib-resolve-id": "^0.0.0",
48
+ "rollup-plugin-visualizer": "^5.8.0"
49
+ },
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",
55
+ "@rollup/plugin-replace": "^5.0.2",
56
+ "@steedos-widgets/amis-lib": "6.3.11-beta.15",
57
+ "react-error-boundary": "^4.1.2"
58
+ },
59
+ "gitHead": "ea5b49f63025c6fb4291bf704e6d087a2fc8b9f8"
60
+ }