jazz-tools 0.15.5 → 0.15.7
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/.turbo/turbo-build.log +43 -43
- package/CHANGELOG.md +20 -0
- package/dist/{chunk-VBDJM6Z5.js → chunk-AV3MKD64.js} +25 -3
- package/dist/chunk-AV3MKD64.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/inspector/{custom-element-CWW72LEG.js → custom-element-I7Q6H5E5.js} +2048 -17
- package/dist/inspector/custom-element-I7Q6H5E5.js.map +1 -0
- package/dist/inspector/register-custom-element.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/testing.js +1 -1
- package/dist/react/testing.js.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/tools/coValues/group.d.ts +25 -2
- package/dist/tools/coValues/group.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/inspector/custom-element.tsx +1 -1
- package/src/tools/coValues/group.ts +28 -2
- package/src/tools/tests/groupsAndAccounts.test.ts +62 -0
- package/tsup.config.ts +1 -1
- package/dist/chunk-VBDJM6Z5.js.map +0 -1
- package/dist/inspector/custom-element-CWW72LEG.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.15.
|
2
|
+
> jazz-tools@0.15.7 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
3
3
|
> tsup && pnpm types && pnpm build:svelte
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
|
@@ -107,85 +107,85 @@
|
|
107
107
|
[34mESM[39m Build start
|
108
108
|
[34mCLI[39m Cleaning output folder
|
109
109
|
[34mESM[39m Build start
|
110
|
-
[32mESM[39m [1mdist/browser-media-images/index.js [22m[32m2.55 KB[39m
|
111
|
-
[32mESM[39m [1mdist/browser-media-images/index.js.map [22m[32m5.44 KB[39m
|
112
|
-
[32mESM[39m ⚡️ Build success in 19ms
|
113
|
-
[32mESM[39m [1mdist/worker/index.js [22m[32m2.34 KB[39m
|
114
|
-
[32mESM[39m [1mdist/worker/index.js.map [22m[32m4.82 KB[39m
|
115
|
-
[32mESM[39m ⚡️ Build success in 15ms
|
116
110
|
[32mESM[39m [1mdist/react-native-media-images/index.js [22m[32m6.19 KB[39m
|
117
111
|
[32mESM[39m [1mdist/react-native-media-images/index.js.map [22m[32m10.96 KB[39m
|
118
|
-
[32mESM[39m ⚡️ Build success in
|
112
|
+
[32mESM[39m ⚡️ Build success in 14ms
|
113
|
+
[32mESM[39m [1mdist/browser-media-images/index.js [22m[32m2.55 KB[39m
|
114
|
+
[32mESM[39m [1mdist/browser-media-images/index.js.map [22m[32m5.44 KB[39m
|
115
|
+
[32mESM[39m ⚡️ Build success in 18ms
|
119
116
|
[32mESM[39m [1mdist/tiptap/index.js [22m[32m564.00 B[39m
|
120
117
|
[32mESM[39m [1mdist/tiptap/index.js.map [22m[32m1.21 KB[39m
|
121
|
-
[32mESM[39m ⚡️ Build success in
|
118
|
+
[32mESM[39m ⚡️ Build success in 14ms
|
119
|
+
[32mESM[39m [1mdist/worker/index.js [22m[32m2.34 KB[39m
|
120
|
+
[32mESM[39m [1mdist/worker/index.js.map [22m[32m4.82 KB[39m
|
121
|
+
[32mESM[39m ⚡️ Build success in 13ms
|
122
122
|
[32mESM[39m [1mdist/react-native/index.js [22m[32m2.53 KB[39m
|
123
123
|
[32mESM[39m [1mdist/react-native/testing.js [22m[32m120.00 B[39m
|
124
124
|
[32mESM[39m [1mdist/react-native/crypto.js [22m[32m117.00 B[39m
|
125
125
|
[32mESM[39m [1mdist/react-native/index.js.map [22m[32m5.68 KB[39m
|
126
|
-
[32mESM[39m [1mdist/react-native/crypto.js.map [22m[32m174.00 B[39m
|
127
126
|
[32mESM[39m [1mdist/react-native/testing.js.map [22m[32m176.00 B[39m
|
128
|
-
[32mESM[39m
|
127
|
+
[32mESM[39m [1mdist/react-native/crypto.js.map [22m[32m174.00 B[39m
|
128
|
+
[32mESM[39m ⚡️ Build success in 21ms
|
129
|
+
[32mESM[39m [1mdist/browser/index.js [22m[32m13.36 KB[39m
|
130
|
+
[32mESM[39m [1mdist/browser/index.js.map [22m[32m28.57 KB[39m
|
131
|
+
[32mESM[39m ⚡️ Build success in 26ms
|
129
132
|
[32mESM[39m [1mdist/react-core/index.js [22m[32m8.37 KB[39m
|
130
|
-
[32mESM[39m [1mdist/react-core/testing.js [22m[32m1.17 KB[39m
|
131
133
|
[32mESM[39m [1mdist/react-core/chunk-7DYMJ74I.js [22m[32m279.00 B[39m
|
134
|
+
[32mESM[39m [1mdist/react-core/testing.js [22m[32m1.17 KB[39m
|
135
|
+
[32mESM[39m [1mdist/react-core/chunk-7DYMJ74I.js.map [22m[32m533.00 B[39m
|
132
136
|
[32mESM[39m [1mdist/react-core/index.js.map [22m[32m16.39 KB[39m
|
133
137
|
[32mESM[39m [1mdist/react-core/testing.js.map [22m[32m1.82 KB[39m
|
134
|
-
[32mESM[39m
|
135
|
-
[32mESM[39m
|
138
|
+
[32mESM[39m ⚡️ Build success in 23ms
|
139
|
+
[32mESM[39m [1mdist/expo/testing.js [22m[32m112.00 B[39m
|
136
140
|
[32mESM[39m [1mdist/expo/index.js [22m[32m4.65 KB[39m
|
137
141
|
[32mESM[39m [1mdist/expo/crypto.js [22m[32m109.00 B[39m
|
138
|
-
[32mESM[39m [1mdist/expo/testing.js [22m[32m112.00 B[39m
|
139
|
-
[32mESM[39m [1mdist/expo/index.js.map [22m[32m10.17 KB[39m
|
140
|
-
[32mESM[39m [1mdist/expo/crypto.js.map [22m[32m166.00 B[39m
|
141
142
|
[32mESM[39m [1mdist/expo/testing.js.map [22m[32m168.00 B[39m
|
142
|
-
[32mESM[39m
|
143
|
-
[32mESM[39m [1mdist/
|
144
|
-
[32mESM[39m
|
145
|
-
[32mESM[39m ⚡️ Build success in 35ms
|
143
|
+
[32mESM[39m [1mdist/expo/crypto.js.map [22m[32m166.00 B[39m
|
144
|
+
[32mESM[39m [1mdist/expo/index.js.map [22m[32m10.17 KB[39m
|
145
|
+
[32mESM[39m ⚡️ Build success in 26ms
|
146
146
|
[32mESM[39m [1mdist/react/index.js [22m[32m20.70 KB[39m
|
147
147
|
[32mESM[39m [1mdist/react/testing.js [22m[32m122.00 B[39m
|
148
148
|
[32mESM[39m [1mdist/react/index.js.map [22m[32m34.13 KB[39m
|
149
149
|
[32mESM[39m [1mdist/react/testing.js.map [22m[32m165.00 B[39m
|
150
|
-
[32mESM[39m ⚡️ Build success in
|
151
|
-
[32mESM[39m [1mdist/react
|
150
|
+
[32mESM[39m ⚡️ Build success in 33ms
|
151
|
+
[32mESM[39m [1mdist/react/index.js [22m[32m20.68 KB[39m
|
152
|
+
[32mESM[39m [1mdist/react/testing.js [22m[32m107.00 B[39m
|
153
|
+
[32mESM[39m [1mdist/react/ssr.js [22m[32m688.00 B[39m
|
154
|
+
[32mESM[39m [1mdist/react/index.js.map [22m[32m34.13 KB[39m
|
155
|
+
[32mESM[39m [1mdist/react/testing.js.map [22m[32m163.00 B[39m
|
156
|
+
[32mESM[39m [1mdist/react/ssr.js.map [22m[32m1.12 KB[39m
|
157
|
+
[32mESM[39m ⚡️ Build success in 34ms
|
152
158
|
[32mESM[39m [1mdist/react-native-core/index.js [22m[32m17.40 KB[39m
|
159
|
+
[32mESM[39m [1mdist/react-native-core/testing.js [22m[32m119.00 B[39m
|
153
160
|
[32mESM[39m [1mdist/react-native-core/crypto.js [22m[32m2.10 KB[39m
|
161
|
+
[32mESM[39m [1mdist/react-native-core/index.js.map [22m[32m34.47 KB[39m
|
154
162
|
[32mESM[39m [1mdist/react-native-core/testing.js.map [22m[32m175.00 B[39m
|
155
163
|
[32mESM[39m [1mdist/react-native-core/crypto.js.map [22m[32m4.25 KB[39m
|
156
|
-
[32mESM[39m
|
157
|
-
[32mESM[39m ⚡️ Build success in 33ms
|
158
|
-
[32mESM[39m [1mdist/react/ssr.js [22m[32m688.00 B[39m
|
159
|
-
[32mESM[39m [1mdist/react/testing.js [22m[32m107.00 B[39m
|
160
|
-
[32mESM[39m [1mdist/react/index.js [22m[32m20.68 KB[39m
|
161
|
-
[32mESM[39m [1mdist/react/ssr.js.map [22m[32m1.12 KB[39m
|
162
|
-
[32mESM[39m [1mdist/react/testing.js.map [22m[32m163.00 B[39m
|
163
|
-
[32mESM[39m [1mdist/react/index.js.map [22m[32m34.13 KB[39m
|
164
|
-
[32mESM[39m ⚡️ Build success in 35ms
|
164
|
+
[32mESM[39m ⚡️ Build success in 40ms
|
165
165
|
[32mESM[39m [1mdist/prosemirror/index.js [22m[32m76.90 KB[39m
|
166
166
|
[32mESM[39m [1mdist/prosemirror/index.js.map [22m[32m305.53 KB[39m
|
167
|
-
[32mESM[39m ⚡️ Build success in
|
167
|
+
[32mESM[39m ⚡️ Build success in 43ms
|
168
168
|
[32mESM[39m [1mdist/inspector/index.js [22m[32m60.37 KB[39m
|
169
169
|
[32mESM[39m [1mdist/inspector/index.js.map [22m[32m107.85 KB[39m
|
170
|
-
[32mESM[39m ⚡️ Build success in
|
171
|
-
[32mESM[39m [1mdist/testing.js [22m[32m6.32 KB[39m
|
170
|
+
[32mESM[39m ⚡️ Build success in 57ms
|
172
171
|
[32mESM[39m [1mdist/index.js [22m[32m16.19 KB[39m
|
173
|
-
[32mESM[39m [1mdist/
|
172
|
+
[32mESM[39m [1mdist/testing.js [22m[32m6.32 KB[39m
|
173
|
+
[32mESM[39m [1mdist/chunk-AV3MKD64.js [22m[32m141.46 KB[39m
|
174
174
|
[32mESM[39m [1mdist/testing.js.map [22m[32m12.22 KB[39m
|
175
175
|
[32mESM[39m [1mdist/index.js.map [22m[32m29.03 KB[39m
|
176
|
-
[32mESM[39m [1mdist/chunk-
|
177
|
-
[32mESM[39m ⚡️ Build success in
|
176
|
+
[32mESM[39m [1mdist/chunk-AV3MKD64.js.map [22m[32m321.67 KB[39m
|
177
|
+
[32mESM[39m ⚡️ Build success in 65ms
|
178
178
|
[32mESM[39m [1mdist/inspector/register-custom-element.js [22m[32m218.00 B[39m
|
179
179
|
[32mESM[39m [1mdist/inspector/register-custom-element.js.map [22m[32m314.00 B[39m
|
180
|
-
[32mESM[39m [1mdist/inspector/custom-element-
|
181
|
-
[32mESM[39m [1mdist/inspector/custom-element-
|
182
|
-
[32mESM[39m ⚡️ Build success in
|
180
|
+
[32mESM[39m [1mdist/inspector/custom-element-I7Q6H5E5.js [22m[32m1.54 MB[39m
|
181
|
+
[32mESM[39m [1mdist/inspector/custom-element-I7Q6H5E5.js.map [22m[32m2.36 MB[39m
|
182
|
+
[32mESM[39m ⚡️ Build success in 110ms
|
183
183
|
|
184
|
-
> jazz-tools@0.15.
|
184
|
+
> jazz-tools@0.15.7 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
185
185
|
> tsc --outDir dist
|
186
186
|
|
187
187
|
|
188
|
-
> jazz-tools@0.15.
|
188
|
+
> jazz-tools@0.15.7 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
|
189
189
|
> rm -rf dist/svelte && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json
|
190
190
|
|
191
191
|
src/svelte -> dist/svelte
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# jazz-tools
|
2
2
|
|
3
|
+
## 0.15.7
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- c09b636: Fix react bundling in jazz-tools/inspector/register-custom-element
|
8
|
+
- cojson@0.15.7
|
9
|
+
- cojson-storage@0.15.7
|
10
|
+
- cojson-storage-indexeddb@0.15.7
|
11
|
+
- cojson-transport-ws@0.15.7
|
12
|
+
|
13
|
+
## 0.15.6
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- a5ceaff: add Group.getDirectMembers to get only direct members of a group
|
18
|
+
- cojson@0.15.6
|
19
|
+
- cojson-storage@0.15.6
|
20
|
+
- cojson-storage-indexeddb@0.15.6
|
21
|
+
- cojson-transport-ws@0.15.6
|
22
|
+
|
3
23
|
## 0.15.5
|
4
24
|
|
5
25
|
### Patch Changes
|
@@ -2006,13 +2006,13 @@ var _Group = class _Group extends CoValueBase {
|
|
2006
2006
|
);
|
2007
2007
|
}
|
2008
2008
|
}
|
2009
|
-
|
2009
|
+
getMembersFromKeys(accountIDs) {
|
2010
2010
|
const members = [];
|
2011
2011
|
const refEncodedAccountSchema = {
|
2012
2012
|
ref: () => Account,
|
2013
2013
|
optional: false
|
2014
2014
|
};
|
2015
|
-
for (const accountID of
|
2015
|
+
for (const accountID of accountIDs) {
|
2016
2016
|
if (!isAccountID(accountID)) continue;
|
2017
2017
|
const role = this._raw.roleOf(accountID);
|
2018
2018
|
if (role === "admin" || role === "writer" || role === "reader" || role === "writeOnly") {
|
@@ -2035,6 +2035,28 @@ var _Group = class _Group extends CoValueBase {
|
|
2035
2035
|
}
|
2036
2036
|
return members;
|
2037
2037
|
}
|
2038
|
+
/**
|
2039
|
+
* Returns all members of the group, including inherited members from parent
|
2040
|
+
* groups.
|
2041
|
+
*
|
2042
|
+
* If you need only the direct members of the group, use
|
2043
|
+
* {@link getDirectMembers} instead.
|
2044
|
+
*
|
2045
|
+
* @returns The members of the group.
|
2046
|
+
*/
|
2047
|
+
get members() {
|
2048
|
+
return this.getMembersFromKeys(this._raw.getAllMemberKeysSet());
|
2049
|
+
}
|
2050
|
+
/**
|
2051
|
+
* Returns the direct members of the group.
|
2052
|
+
*
|
2053
|
+
* If you need all members of the group, including inherited members from
|
2054
|
+
* parent groups, use {@link Group.members|members} instead.
|
2055
|
+
* @returns The direct members of the group.
|
2056
|
+
*/
|
2057
|
+
getDirectMembers() {
|
2058
|
+
return this.getMembersFromKeys(this._raw.getMemberKeys());
|
2059
|
+
}
|
2038
2060
|
getRoleOf(member) {
|
2039
2061
|
if (member === "me") {
|
2040
2062
|
return this._raw.roleOf(
|
@@ -4935,4 +4957,4 @@ export {
|
|
4935
4957
|
JazzContextManager
|
4936
4958
|
};
|
4937
4959
|
/* istanbul ignore file -- @preserve */
|
4938
|
-
//# sourceMappingURL=chunk-
|
4960
|
+
//# sourceMappingURL=chunk-AV3MKD64.js.map
|