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.
@@ -1,5 +1,5 @@
1
1
 
2
- > jazz-tools@0.15.5 build /home/runner/_work/jazz/jazz/packages/jazz-tools
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
  CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
@@ -107,85 +107,85 @@
107
107
  ESM Build start
108
108
  CLI Cleaning output folder
109
109
  ESM Build start
110
- ESM dist/browser-media-images/index.js 2.55 KB
111
- ESM dist/browser-media-images/index.js.map 5.44 KB
112
- ESM ⚡️ Build success in 19ms
113
- ESM dist/worker/index.js 2.34 KB
114
- ESM dist/worker/index.js.map 4.82 KB
115
- ESM ⚡️ Build success in 15ms
116
110
  ESM dist/react-native-media-images/index.js 6.19 KB
117
111
  ESM dist/react-native-media-images/index.js.map 10.96 KB
118
- ESM ⚡️ Build success in 16ms
112
+ ESM ⚡️ Build success in 14ms
113
+ ESM dist/browser-media-images/index.js 2.55 KB
114
+ ESM dist/browser-media-images/index.js.map 5.44 KB
115
+ ESM ⚡️ Build success in 18ms
119
116
  ESM dist/tiptap/index.js 564.00 B
120
117
  ESM dist/tiptap/index.js.map 1.21 KB
121
- ESM ⚡️ Build success in 16ms
118
+ ESM ⚡️ Build success in 14ms
119
+ ESM dist/worker/index.js 2.34 KB
120
+ ESM dist/worker/index.js.map 4.82 KB
121
+ ESM ⚡️ Build success in 13ms
122
122
  ESM dist/react-native/index.js 2.53 KB
123
123
  ESM dist/react-native/testing.js 120.00 B
124
124
  ESM dist/react-native/crypto.js 117.00 B
125
125
  ESM dist/react-native/index.js.map 5.68 KB
126
- ESM dist/react-native/crypto.js.map 174.00 B
127
126
  ESM dist/react-native/testing.js.map 176.00 B
128
- ESM ⚡️ Build success in 19ms
127
+ ESM dist/react-native/crypto.js.map 174.00 B
128
+ ESM ⚡️ Build success in 21ms
129
+ ESM dist/browser/index.js 13.36 KB
130
+ ESM dist/browser/index.js.map 28.57 KB
131
+ ESM ⚡️ Build success in 26ms
129
132
  ESM dist/react-core/index.js 8.37 KB
130
- ESM dist/react-core/testing.js 1.17 KB
131
133
  ESM dist/react-core/chunk-7DYMJ74I.js 279.00 B
134
+ ESM dist/react-core/testing.js 1.17 KB
135
+ ESM dist/react-core/chunk-7DYMJ74I.js.map 533.00 B
132
136
  ESM dist/react-core/index.js.map 16.39 KB
133
137
  ESM dist/react-core/testing.js.map 1.82 KB
134
- ESM dist/react-core/chunk-7DYMJ74I.js.map 533.00 B
135
- ESM ⚡️ Build success in 19ms
138
+ ESM ⚡️ Build success in 23ms
139
+ ESM dist/expo/testing.js 112.00 B
136
140
  ESM dist/expo/index.js 4.65 KB
137
141
  ESM dist/expo/crypto.js 109.00 B
138
- ESM dist/expo/testing.js 112.00 B
139
- ESM dist/expo/index.js.map 10.17 KB
140
- ESM dist/expo/crypto.js.map 166.00 B
141
142
  ESM dist/expo/testing.js.map 168.00 B
142
- ESM ⚡️ Build success in 32ms
143
- ESM dist/browser/index.js 13.36 KB
144
- ESM dist/browser/index.js.map 28.57 KB
145
- ESM ⚡️ Build success in 35ms
143
+ ESM dist/expo/crypto.js.map 166.00 B
144
+ ESM dist/expo/index.js.map 10.17 KB
145
+ ESM ⚡️ Build success in 26ms
146
146
  ESM dist/react/index.js 20.70 KB
147
147
  ESM dist/react/testing.js 122.00 B
148
148
  ESM dist/react/index.js.map 34.13 KB
149
149
  ESM dist/react/testing.js.map 165.00 B
150
- ESM ⚡️ Build success in 35ms
151
- ESM dist/react-native-core/testing.js 119.00 B
150
+ ESM ⚡️ Build success in 33ms
151
+ ESM dist/react/index.js 20.68 KB
152
+ ESM dist/react/testing.js 107.00 B
153
+ ESM dist/react/ssr.js 688.00 B
154
+ ESM dist/react/index.js.map 34.13 KB
155
+ ESM dist/react/testing.js.map 163.00 B
156
+ ESM dist/react/ssr.js.map 1.12 KB
157
+ ESM ⚡️ Build success in 34ms
152
158
  ESM dist/react-native-core/index.js 17.40 KB
159
+ ESM dist/react-native-core/testing.js 119.00 B
153
160
  ESM dist/react-native-core/crypto.js 2.10 KB
161
+ ESM dist/react-native-core/index.js.map 34.47 KB
154
162
  ESM dist/react-native-core/testing.js.map 175.00 B
155
163
  ESM dist/react-native-core/crypto.js.map 4.25 KB
156
- ESM dist/react-native-core/index.js.map 34.47 KB
157
- ESM ⚡️ Build success in 33ms
158
- ESM dist/react/ssr.js 688.00 B
159
- ESM dist/react/testing.js 107.00 B
160
- ESM dist/react/index.js 20.68 KB
161
- ESM dist/react/ssr.js.map 1.12 KB
162
- ESM dist/react/testing.js.map 163.00 B
163
- ESM dist/react/index.js.map 34.13 KB
164
- ESM ⚡️ Build success in 35ms
164
+ ESM ⚡️ Build success in 40ms
165
165
  ESM dist/prosemirror/index.js 76.90 KB
166
166
  ESM dist/prosemirror/index.js.map 305.53 KB
167
- ESM ⚡️ Build success in 44ms
167
+ ESM ⚡️ Build success in 43ms
168
168
  ESM dist/inspector/index.js 60.37 KB
169
169
  ESM dist/inspector/index.js.map 107.85 KB
170
- ESM ⚡️ Build success in 54ms
171
- ESM dist/testing.js 6.32 KB
170
+ ESM ⚡️ Build success in 57ms
172
171
  ESM dist/index.js 16.19 KB
173
- ESM dist/chunk-VBDJM6Z5.js 140.80 KB
172
+ ESM dist/testing.js 6.32 KB
173
+ ESM dist/chunk-AV3MKD64.js 141.46 KB
174
174
  ESM dist/testing.js.map 12.22 KB
175
175
  ESM dist/index.js.map 29.03 KB
176
- ESM dist/chunk-VBDJM6Z5.js.map 320.73 KB
177
- ESM ⚡️ Build success in 69ms
176
+ ESM dist/chunk-AV3MKD64.js.map 321.67 KB
177
+ ESM ⚡️ Build success in 65ms
178
178
  ESM dist/inspector/register-custom-element.js 218.00 B
179
179
  ESM dist/inspector/register-custom-element.js.map 314.00 B
180
- ESM dist/inspector/custom-element-CWW72LEG.js 1.47 MB
181
- ESM dist/inspector/custom-element-CWW72LEG.js.map 2.26 MB
182
- ESM ⚡️ Build success in 96ms
180
+ ESM dist/inspector/custom-element-I7Q6H5E5.js 1.54 MB
181
+ ESM dist/inspector/custom-element-I7Q6H5E5.js.map 2.36 MB
182
+ ESM ⚡️ Build success in 110ms
183
183
 
184
- > jazz-tools@0.15.5 types /home/runner/_work/jazz/jazz/packages/jazz-tools
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.5 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
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
- get members() {
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 this._raw.getAllMemberKeysSet()) {
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-VBDJM6Z5.js.map
4960
+ //# sourceMappingURL=chunk-AV3MKD64.js.map