@steedos-widgets/liveblocks 6.3.13-beta.3 → 6.10.1-beta.11

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/README.md CHANGED
@@ -20,31 +20,23 @@ yarn dev
20
20
 
21
21
  ```json
22
22
  {
23
- "type": "rooms-provider",
24
- "baseUrl": "${context.rootUrl}",
25
- "body": [
26
- {
27
- "type": "rooms-comments",
28
- "className": "flex flex-col m-3 gap-3",
29
- "roomId": "test",
30
- }
31
- ]
23
+ "type": "rooms-comments",
24
+ "roomId": "test",
25
+ "className": "flex flex-col m-3 gap-3",
26
+ "baseUrl": "http://localhost:5100"
32
27
  }
28
+
33
29
  ```
34
30
 
35
31
  集成到Steedos记录详情页
36
32
 
37
33
  ```json
38
34
  {
39
- "type": "rooms-provider",
40
- "baseUrl": "${context.rootUrl}",
41
- "body": [
42
- {
43
- "type": "rooms-comments",
44
- "className": "flex flex-col m-3 gap-3",
45
- "roomId": "objects:${objectName}:{recordId}",
46
- }
47
- ]
35
+ "type": "rooms-comments",
36
+ "className": "flex flex-col m-3 gap-3",
37
+ "id": "u:bbb9a7d94945",
38
+ "roomId": "objects:${objectName}:{recordId}",
39
+ "baseUrl": "${context.rootUrl}"
48
40
  }
49
41
  ```
50
42
 
package/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/liveblocks",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/liveblocks@6.3.13-beta.3/dist/liveblocks.umd.js",
7
- "https://unpkg.com/@steedos-widgets/liveblocks@6.3.13-beta.3/dist/liveblocks.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/liveblocks@6.10.1-beta.11/dist/liveblocks.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/liveblocks@6.10.1-beta.11/dist/liveblocks.umd.css"
8
8
  ],
9
9
  "library": "BuilderLiveblocks"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/liveblocks"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/liveblocks@6.3.13-beta.3/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/liveblocks@6.10.1-beta.11/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/liveblocks@6.3.13-beta.3/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/liveblocks@6.3.13-beta.3/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/liveblocks@6.10.1-beta.11/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/liveblocks@6.10.1-beta.11/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import "@liveblocks/react-ui/styles.css";
3
3
  import './Comments.css';
4
- export declare const Threads: (props: any) => JSX.Element;
5
- export declare const AmisComments: (props: any) => JSX.Element;
4
+ export declare const Threads: (props: any) => React.JSX.Element;
5
+ export declare const AmisComments: (props: any) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import * as Popover from "@radix-ui/react-popover";
3
3
  import './InboxPopover.css';
4
- export declare function AmisInboxPopover({ className, ...props }: Popover.PopoverContentProps): JSX.Element;
4
+ export declare function AmisInboxPopover({ className, ...props }: Popover.PopoverContentProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare function Loading(): JSX.Element;
1
+ import React from 'react';
2
+ export declare function Loading(): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import "@liveblocks/react-ui/styles.css";
3
- export declare const AmisRoomsProvider: (props: any) => JSX.Element;
3
+ export declare const AmisRoomsProvider: (props: any) => React.JSX.Element;
@@ -42,7 +42,6 @@
42
42
  background: #fff;
43
43
  width: 460px;
44
44
  height: 560px;
45
- z-index: 1000;
46
45
  max-height: calc(100vh - var(--header-height) - 10px);
47
46
  display: flex;
48
47
  flex-direction: column;
@@ -86,7 +85,7 @@
86
85
 
87
86
  .inbox-unread-count {
88
87
  position: absolute;
89
- top: 6px;
88
+ top: 0;
90
89
  right: 0;
91
90
  transform: translate(50%, -50%);
92
91
  display: flex;
@@ -94,11 +93,11 @@
94
93
  place-items: center;
95
94
  background: var(--Badge--danger-bg);
96
95
  color: #fff;
97
- font-size: 12px;
96
+ font-size: 0.65rem;
98
97
  font-weight: 500;
99
98
  height: 1rem;
100
99
  min-width: 1rem;
101
- padding: 0 0.5rem;
100
+ padding: 0 0.25rem;
102
101
  border-radius: 9999px;
103
102
  }
104
103
 
@@ -120,14 +119,13 @@
120
119
  padding: 0.5rem 0.75rem;
121
120
  font-size: 0.875rem;
122
121
  border-radius: 0.5rem;
123
- /* background: #f3f3f3; */
124
- background: transparent;
125
- color: rgb(116, 116, 116);
122
+ background: #f3f3f3;
123
+ color: #555;
126
124
  }
127
125
 
128
126
  .inbox-button.square {
129
127
  padding: 0;
130
- width: 1.6rem;
128
+ width: 2rem;
131
129
  height: 2rem;
132
130
  }
133
131
 
@@ -138,7 +136,7 @@
138
136
 
139
137
  .inbox-button:hover,
140
138
  .inbox-button:focus-visible {
141
- /* background: #f3f3f3; */
139
+ background: #e8e8e8;
142
140
  cursor: pointer;
143
141
  }
144
142