@baseline-ui/core 0.63.0 → 1.1.0
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/index.css +1 -1
- package/dist/index.d.ts +2164 -1419
- package/dist/index.js +21 -23
- package/dist/index.mjs +21 -23
- package/dist/react-aria.d.ts +218 -155
- package/dist/react-stately.d.ts +24 -1
- package/package.json +7 -7
- package/sbom.json +29 -29
package/dist/react-stately.d.ts
CHANGED
|
@@ -138,39 +138,46 @@ interface ListData<T> {
|
|
|
138
138
|
setFilterText(filterText: string): void;
|
|
139
139
|
/**
|
|
140
140
|
* Gets an item from the list by key.
|
|
141
|
+
*
|
|
141
142
|
* @param key - The key of the item to retrieve.
|
|
142
143
|
*/
|
|
143
144
|
getItem(key: Key): T | undefined;
|
|
144
145
|
/**
|
|
145
146
|
* Inserts items into the list at the given index.
|
|
147
|
+
*
|
|
146
148
|
* @param index - The index to insert into.
|
|
147
149
|
* @param values - The values to insert.
|
|
148
150
|
*/
|
|
149
151
|
insert(index: number, ...values: T[]): void;
|
|
150
152
|
/**
|
|
151
153
|
* Inserts items into the list before the item at the given key.
|
|
154
|
+
*
|
|
152
155
|
* @param key - The key of the item to insert before.
|
|
153
156
|
* @param values - The values to insert.
|
|
154
157
|
*/
|
|
155
158
|
insertBefore(key: Key, ...values: T[]): void;
|
|
156
159
|
/**
|
|
157
160
|
* Inserts items into the list after the item at the given key.
|
|
161
|
+
*
|
|
158
162
|
* @param key - The key of the item to insert after.
|
|
159
163
|
* @param values - The values to insert.
|
|
160
164
|
*/
|
|
161
165
|
insertAfter(key: Key, ...values: T[]): void;
|
|
162
166
|
/**
|
|
163
167
|
* Appends items to the list.
|
|
168
|
+
*
|
|
164
169
|
* @param values - The values to insert.
|
|
165
170
|
*/
|
|
166
171
|
append(...values: T[]): void;
|
|
167
172
|
/**
|
|
168
173
|
* Prepends items to the list.
|
|
174
|
+
*
|
|
169
175
|
* @param value - The value to insert.
|
|
170
176
|
*/
|
|
171
177
|
prepend(...values: T[]): void;
|
|
172
178
|
/**
|
|
173
179
|
* Removes items from the list by their keys.
|
|
180
|
+
*
|
|
174
181
|
* @param keys - The keys of the item to remove.
|
|
175
182
|
*/
|
|
176
183
|
remove(...keys: Key[]): void;
|
|
@@ -181,26 +188,31 @@ interface ListData<T> {
|
|
|
181
188
|
removeSelectedItems(): void;
|
|
182
189
|
/**
|
|
183
190
|
* Moves an item within the list.
|
|
191
|
+
*
|
|
184
192
|
* @param key - The key of the item to move.
|
|
185
193
|
* @param toIndex - The index to move the item to.
|
|
186
194
|
*/
|
|
187
195
|
move(key: Key, toIndex: number): void;
|
|
188
196
|
/**
|
|
189
197
|
* Moves one or more items before a given key.
|
|
198
|
+
*
|
|
190
199
|
* @param key - The key of the item to move the items before.
|
|
191
200
|
* @param keys - The keys of the items to move.
|
|
192
201
|
*/
|
|
193
202
|
moveBefore(key: Key, keys: Iterable<Key>): void;
|
|
194
203
|
/**
|
|
195
204
|
* Moves one or more items after a given key.
|
|
205
|
+
*
|
|
196
206
|
* @param key - The key of the item to move the items after.
|
|
197
207
|
* @param keys - The keys of the items to move.
|
|
198
208
|
*/
|
|
199
209
|
moveAfter(key: Key, keys: Iterable<Key>): void;
|
|
200
210
|
/**
|
|
201
211
|
* Updates an item in the list.
|
|
212
|
+
*
|
|
202
213
|
* @param key - The key of the item to update.
|
|
203
|
-
* @param newValue - The new value for the item, or a function that returns the new value based on
|
|
214
|
+
* @param newValue - The new value for the item, or a function that returns the new value based on
|
|
215
|
+
* the previous value.
|
|
204
216
|
*/
|
|
205
217
|
update(key: Key, newValue: T | ((prev: T) => T)): void;
|
|
206
218
|
}
|
|
@@ -239,11 +251,13 @@ interface TreeData<T extends object> {
|
|
|
239
251
|
setSelectedKeys(keys: Set<Key>): void;
|
|
240
252
|
/**
|
|
241
253
|
* Gets a node from the tree by key.
|
|
254
|
+
*
|
|
242
255
|
* @param key - The key of the item to retrieve.
|
|
243
256
|
*/
|
|
244
257
|
getItem(key: Key): TreeNode<T> | undefined;
|
|
245
258
|
/**
|
|
246
259
|
* Inserts an item into a parent node as a child.
|
|
260
|
+
*
|
|
247
261
|
* @param parentKey - The key of the parent item to insert into. `null` for the root.
|
|
248
262
|
* @param index - The index within the parent to insert into.
|
|
249
263
|
* @param value - The value to insert.
|
|
@@ -251,30 +265,35 @@ interface TreeData<T extends object> {
|
|
|
251
265
|
insert(parentKey: Key | null, index: number, ...values: T[]): void;
|
|
252
266
|
/**
|
|
253
267
|
* Inserts items into the list before the item at the given key.
|
|
268
|
+
*
|
|
254
269
|
* @param key - The key of the item to insert before.
|
|
255
270
|
* @param values - The values to insert.
|
|
256
271
|
*/
|
|
257
272
|
insertBefore(key: Key, ...values: T[]): void;
|
|
258
273
|
/**
|
|
259
274
|
* Inserts items into the list after the item at the given key.
|
|
275
|
+
*
|
|
260
276
|
* @param key - The key of the item to insert after.
|
|
261
277
|
* @param values - The values to insert.
|
|
262
278
|
*/
|
|
263
279
|
insertAfter(key: Key, ...values: T[]): void;
|
|
264
280
|
/**
|
|
265
281
|
* Appends an item into a parent node as a child.
|
|
282
|
+
*
|
|
266
283
|
* @param parentKey - The key of the parent item to insert into. `null` for the root.
|
|
267
284
|
* @param value - The value to insert.
|
|
268
285
|
*/
|
|
269
286
|
append(parentKey: Key | null, ...values: T[]): void;
|
|
270
287
|
/**
|
|
271
288
|
* Prepends an item into a parent node as a child.
|
|
289
|
+
*
|
|
272
290
|
* @param parentKey - The key of the parent item to insert into. `null` for the root.
|
|
273
291
|
* @param value - The value to insert.
|
|
274
292
|
*/
|
|
275
293
|
prepend(parentKey: Key | null, ...value: T[]): void;
|
|
276
294
|
/**
|
|
277
295
|
* Removes an item from the tree by its key.
|
|
296
|
+
*
|
|
278
297
|
* @param key - The key of the item to remove.
|
|
279
298
|
*/
|
|
280
299
|
remove(...keys: Key[]): void;
|
|
@@ -285,6 +304,7 @@ interface TreeData<T extends object> {
|
|
|
285
304
|
removeSelectedItems(): void;
|
|
286
305
|
/**
|
|
287
306
|
* Moves an item within the tree.
|
|
307
|
+
*
|
|
288
308
|
* @param key - The key of the item to move.
|
|
289
309
|
* @param toParentKey - The key of the new parent to insert into. `null` for the root.
|
|
290
310
|
* @param index - The index within the new parent to insert at.
|
|
@@ -292,18 +312,21 @@ interface TreeData<T extends object> {
|
|
|
292
312
|
move(key: Key, toParentKey: Key | null, index: number): void;
|
|
293
313
|
/**
|
|
294
314
|
* Moves one or more items before a given key.
|
|
315
|
+
*
|
|
295
316
|
* @param key - The key of the item to move the items before.
|
|
296
317
|
* @param keys - The keys of the items to move.
|
|
297
318
|
*/
|
|
298
319
|
moveBefore(key: Key, keys: Iterable<Key>): void;
|
|
299
320
|
/**
|
|
300
321
|
* Moves one or more items after a given key.
|
|
322
|
+
*
|
|
301
323
|
* @param key - The key of the item to move the items after.
|
|
302
324
|
* @param keys - The keys of the items to move.
|
|
303
325
|
*/
|
|
304
326
|
moveAfter(key: Key, keys: Iterable<Key>): void;
|
|
305
327
|
/**
|
|
306
328
|
* Updates an item in the tree.
|
|
329
|
+
*
|
|
307
330
|
* @param key - The key of the item to update.
|
|
308
331
|
* @param newValue - The new value for the item.
|
|
309
332
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseline-ui/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Baseline UI is a set of accessible components and tools for building accessible, customizable, production-ready user interfaces",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"sbom.json"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@internationalized/date": "^3.12.
|
|
16
|
+
"@internationalized/date": "^3.12.2",
|
|
17
17
|
"@vanilla-extract/dynamic": "2.1.5",
|
|
18
18
|
"comlink": "^4.4.2",
|
|
19
|
-
"dompurify": "3.4.
|
|
19
|
+
"dompurify": "3.4.11",
|
|
20
20
|
"granular-hooks": "^1.1.0",
|
|
21
21
|
"just-camel-case": "^6.2.0",
|
|
22
22
|
"just-kebab-case": "^4.2.0",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"perfect-freehand": "^1.2.3",
|
|
27
27
|
"react-resizable-panels": "4.11.2",
|
|
28
28
|
"use-sync-external-store": "1.6.0",
|
|
29
|
-
"@baseline-ui/css": "
|
|
30
|
-
"@baseline-ui/icons": "
|
|
31
|
-
"@baseline-ui/tokens": "
|
|
29
|
+
"@baseline-ui/css": "1.1.0",
|
|
30
|
+
"@baseline-ui/icons": "1.1.0",
|
|
31
|
+
"@baseline-ui/tokens": "1.1.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^18.0.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/dompurify": "3.2.0",
|
|
39
39
|
"@types/markdown-it": "^14.1.2",
|
|
40
40
|
"@vanilla-extract/recipes": "0.5.7",
|
|
41
|
-
"@baseline-ui/translations": "
|
|
41
|
+
"@baseline-ui/translations": "1.1.0"
|
|
42
42
|
},
|
|
43
43
|
"license": "SEE LICENSE IN https://pspdfkit.com/legal/License.pdf",
|
|
44
44
|
"publishConfig": {
|
package/sbom.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "http://cyclonedx.org/schema/bom-1.
|
|
2
|
+
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
|
-
"specVersion": "1.
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"specVersion": "1.6",
|
|
5
|
+
"serialNumber": "urn:uuid:5dd8ae7a-44b9-422b-bb50-3b6a3b80bdca",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-
|
|
8
|
+
"timestamp": "2026-07-14T09:47:14.993Z",
|
|
9
9
|
"lifecycles": [
|
|
10
10
|
{
|
|
11
11
|
"phase": "pre-build"
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"component": {
|
|
24
24
|
"type": "library",
|
|
25
25
|
"name": "@baseline-ui/core",
|
|
26
|
-
"version": "
|
|
27
|
-
"purl": "pkg:npm/@baseline-ui/core@
|
|
28
|
-
"bom-ref": "pkg:npm/@baseline-ui/core@
|
|
26
|
+
"version": "1.1.0",
|
|
27
|
+
"purl": "pkg:npm/@baseline-ui/core@1.1.0",
|
|
28
|
+
"bom-ref": "pkg:npm/@baseline-ui/core@1.1.0",
|
|
29
29
|
"licenses": [
|
|
30
30
|
{
|
|
31
31
|
"license": {
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
{
|
|
40
40
|
"type": "library",
|
|
41
41
|
"name": "date",
|
|
42
|
-
"version": "3.12.
|
|
43
|
-
"purl": "pkg:npm/%40internationalized/date@3.12.
|
|
44
|
-
"bom-ref": "pkg:npm/%40internationalized/date@3.12.
|
|
42
|
+
"version": "3.12.2",
|
|
43
|
+
"purl": "pkg:npm/%40internationalized/date@3.12.2",
|
|
44
|
+
"bom-ref": "pkg:npm/%40internationalized/date@3.12.2",
|
|
45
45
|
"group": "@internationalized",
|
|
46
46
|
"externalReferences": [
|
|
47
47
|
{
|
|
48
48
|
"type": "distribution",
|
|
49
|
-
"url": "https://registry.npmjs.org/@internationalized/date/-/date-3.12.
|
|
49
|
+
"url": "https://registry.npmjs.org/@internationalized/date/-/date-3.12.2.tgz",
|
|
50
50
|
"hashes": [
|
|
51
51
|
{
|
|
52
52
|
"alg": "SHA-512",
|
|
53
|
-
"content": "
|
|
53
|
+
"content": "158d58f87eb8343b3e1c017aa269675b19b7984a5f81a0925ad2f9979e756597c8980fa41a33c582b9c9ac68c7ea57e62cbd20f19fe606ed51de4b9f782a7a27"
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
}
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
{
|
|
60
60
|
"type": "library",
|
|
61
61
|
"name": "helpers",
|
|
62
|
-
"version": "0.5.
|
|
63
|
-
"purl": "pkg:npm/%40swc/helpers@0.5.
|
|
64
|
-
"bom-ref": "pkg:npm/%40swc/helpers@0.5.
|
|
62
|
+
"version": "0.5.23",
|
|
63
|
+
"purl": "pkg:npm/%40swc/helpers@0.5.23",
|
|
64
|
+
"bom-ref": "pkg:npm/%40swc/helpers@0.5.23",
|
|
65
65
|
"group": "@swc",
|
|
66
66
|
"externalReferences": [
|
|
67
67
|
{
|
|
68
68
|
"type": "distribution",
|
|
69
|
-
"url": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.
|
|
69
|
+
"url": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",
|
|
70
70
|
"hashes": [
|
|
71
71
|
{
|
|
72
72
|
"alg": "SHA-512",
|
|
73
|
-
"content": "
|
|
73
|
+
"content": "e654ac30e4d751178f8250dfbee01052a9067a4f47836924b0e61acb69b4f9747ef9bd8d5982ffe2c5b2baf54122cf282a725ac64762f7085a2ffb2a375dda7f"
|
|
74
74
|
}
|
|
75
75
|
]
|
|
76
76
|
}
|
|
@@ -157,17 +157,17 @@
|
|
|
157
157
|
{
|
|
158
158
|
"type": "library",
|
|
159
159
|
"name": "dompurify",
|
|
160
|
-
"version": "3.4.
|
|
161
|
-
"purl": "pkg:npm/dompurify@3.4.
|
|
162
|
-
"bom-ref": "pkg:npm/dompurify@3.4.
|
|
160
|
+
"version": "3.4.11",
|
|
161
|
+
"purl": "pkg:npm/dompurify@3.4.11",
|
|
162
|
+
"bom-ref": "pkg:npm/dompurify@3.4.11",
|
|
163
163
|
"externalReferences": [
|
|
164
164
|
{
|
|
165
165
|
"type": "distribution",
|
|
166
|
-
"url": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.
|
|
166
|
+
"url": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.11.tgz",
|
|
167
167
|
"hashes": [
|
|
168
168
|
{
|
|
169
169
|
"alg": "SHA-512",
|
|
170
|
-
"content": "
|
|
170
|
+
"content": "ce1954575d86b1a47332c7fdab9336e78621038f95b85d1f1be405aaee9a629a0694ab73fb0f3ffe305c195601810911e461e352899e8d8f38015fbfb8f6d677"
|
|
171
171
|
}
|
|
172
172
|
]
|
|
173
173
|
}
|
|
@@ -633,12 +633,12 @@
|
|
|
633
633
|
],
|
|
634
634
|
"dependencies": [
|
|
635
635
|
{
|
|
636
|
-
"ref": "pkg:npm
|
|
636
|
+
"ref": "pkg:npm/@baseline-ui/core@1.1.0",
|
|
637
637
|
"dependsOn": [
|
|
638
|
-
"pkg:npm/%40internationalized/date@3.12.
|
|
638
|
+
"pkg:npm/%40internationalized/date@3.12.2",
|
|
639
639
|
"pkg:npm/%40vanilla-extract/dynamic@2.1.5",
|
|
640
640
|
"pkg:npm/comlink@4.4.2",
|
|
641
|
-
"pkg:npm/dompurify@3.4.
|
|
641
|
+
"pkg:npm/dompurify@3.4.11",
|
|
642
642
|
"pkg:npm/granular-hooks@1.1.0",
|
|
643
643
|
"pkg:npm/just-camel-case@6.2.0",
|
|
644
644
|
"pkg:npm/just-kebab-case@4.2.0",
|
|
@@ -653,13 +653,13 @@
|
|
|
653
653
|
]
|
|
654
654
|
},
|
|
655
655
|
{
|
|
656
|
-
"ref": "pkg:npm/%40internationalized/date@3.12.
|
|
656
|
+
"ref": "pkg:npm/%40internationalized/date@3.12.2",
|
|
657
657
|
"dependsOn": [
|
|
658
|
-
"pkg:npm/%40swc/helpers@0.5.
|
|
658
|
+
"pkg:npm/%40swc/helpers@0.5.23"
|
|
659
659
|
]
|
|
660
660
|
},
|
|
661
661
|
{
|
|
662
|
-
"ref": "pkg:npm/%40swc/helpers@0.5.
|
|
662
|
+
"ref": "pkg:npm/%40swc/helpers@0.5.23",
|
|
663
663
|
"dependsOn": [
|
|
664
664
|
"pkg:npm/tslib@2.8.1"
|
|
665
665
|
]
|
|
@@ -683,7 +683,7 @@
|
|
|
683
683
|
"dependsOn": []
|
|
684
684
|
},
|
|
685
685
|
{
|
|
686
|
-
"ref": "pkg:npm/dompurify@3.4.
|
|
686
|
+
"ref": "pkg:npm/dompurify@3.4.11",
|
|
687
687
|
"dependsOn": [
|
|
688
688
|
"pkg:npm/%40types/trusted-types@2.0.7"
|
|
689
689
|
]
|