@baseline-ui/core 1.0.0 → 1.2.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.
@@ -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 the previous value.
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": "1.0.0",
3
+ "version": "1.2.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",
@@ -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": "1.0.0",
30
- "@baseline-ui/icons": "1.0.0",
31
- "@baseline-ui/tokens": "1.0.0"
29
+ "@baseline-ui/css": "1.2.0",
30
+ "@baseline-ui/icons": "1.2.0",
31
+ "@baseline-ui/tokens": "1.2.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": "1.0.0"
41
+ "@baseline-ui/translations": "1.2.0"
42
42
  },
43
43
  "license": "SEE LICENSE IN https://pspdfkit.com/legal/License.pdf",
44
44
  "publishConfig": {
package/sbom.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.6",
5
- "serialNumber": "urn:uuid:262ef172-a5fb-4d6a-af49-8a70882e6777",
5
+ "serialNumber": "urn:uuid:dd1fdcfc-9b5e-4c98-81bd-85863dc4e742",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-07-02T14:16:56.845Z",
8
+ "timestamp": "2026-07-16T13:00:21.376Z",
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": "1.0.0",
27
- "purl": "pkg:npm/@baseline-ui/core@1.0.0",
28
- "bom-ref": "pkg:npm/@baseline-ui/core@1.0.0",
26
+ "version": "1.2.0",
27
+ "purl": "pkg:npm/@baseline-ui/core@1.2.0",
28
+ "bom-ref": "pkg:npm/@baseline-ui/core@1.2.0",
29
29
  "licenses": [
30
30
  {
31
31
  "license": {
@@ -633,7 +633,7 @@
633
633
  ],
634
634
  "dependencies": [
635
635
  {
636
- "ref": "pkg:npm/@baseline-ui/core@1.0.0",
636
+ "ref": "pkg:npm/@baseline-ui/core@1.2.0",
637
637
  "dependsOn": [
638
638
  "pkg:npm/%40internationalized/date@3.12.2",
639
639
  "pkg:npm/%40vanilla-extract/dynamic@2.1.5",