@airtable/blocks 1.11.1 → 1.12.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.
Files changed (41) hide show
  1. package/dist/cjs/global_config.js +3 -3
  2. package/dist/cjs/models/base.js +10 -10
  3. package/dist/cjs/models/cursor.js +4 -6
  4. package/dist/cjs/models/field.js +3 -3
  5. package/dist/cjs/models/record_query_result.js +1 -1
  6. package/dist/cjs/models/record_store.js +68 -16
  7. package/dist/cjs/models/session.js +3 -3
  8. package/dist/cjs/models/table.js +25 -25
  9. package/dist/cjs/sdk.js +1 -1
  10. package/dist/cjs/settings_button.js +1 -1
  11. package/dist/cjs/ui/expand_record_picker_async.js +1 -1
  12. package/dist/cjs/ui/icon_config.js +4 -2
  13. package/dist/cjs/ui/initialize_block.js +3 -3
  14. package/dist/cjs/ui/use_global_config.js +1 -1
  15. package/dist/cjs/ui/use_loadable.js +3 -3
  16. package/dist/cjs/ui/use_record_action_data.js +11 -11
  17. package/dist/cjs/ui/use_settings_button.js +1 -1
  18. package/dist/cjs/ui/viewport_constraint.js +1 -1
  19. package/dist/cjs/viewport.js +9 -9
  20. package/dist/types/src/global_config.d.ts +3 -3
  21. package/dist/types/src/models/base.d.ts +9 -9
  22. package/dist/types/src/models/cursor.d.ts +4 -6
  23. package/dist/types/src/models/cursor.d.ts.map +1 -1
  24. package/dist/types/src/models/field.d.ts +3 -3
  25. package/dist/types/src/models/record_query_result.d.ts +2 -2
  26. package/dist/types/src/models/session.d.ts +3 -3
  27. package/dist/types/src/models/table.d.ts +25 -25
  28. package/dist/types/src/settings_button.d.ts +1 -1
  29. package/dist/types/src/ui/expand_record_picker_async.d.ts +1 -1
  30. package/dist/types/src/ui/icon_config.d.ts +5 -3
  31. package/dist/types/src/ui/icon_config.d.ts.map +1 -1
  32. package/dist/types/src/ui/initialize_block.d.ts +1 -1
  33. package/dist/types/src/ui/use_global_config.d.ts +1 -1
  34. package/dist/types/src/ui/use_loadable.d.ts +2 -2
  35. package/dist/types/src/ui/use_record_action_data.d.ts +11 -11
  36. package/dist/types/src/ui/use_settings_button.d.ts +1 -1
  37. package/dist/types/src/ui/viewport_constraint.d.ts +3 -3
  38. package/dist/types/src/ui/viewport_constraint.d.ts.map +1 -1
  39. package/dist/types/src/viewport.d.ts +9 -9
  40. package/package.json +1 -1
  41. package/CHANGELOG.md +0 -495
package/CHANGELOG.md DELETED
@@ -1,495 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). This project
6
- started to follow semantic versioning as of version 1.0.0.
7
-
8
- Not every commit needs to result in a change to this file (e.g. docs and chore commits). Every
9
- commit that affects the code in a way that consumers might care about should include edits to the
10
- 'Unreleased' section though. Breaking changes should be prefixed with `**BREAKING:**`.
11
-
12
- ## [Unreleased](https://github.com/airtable/blocks/compare/@airtable/blocks@1.11.1...HEAD)
13
-
14
- No changes.
15
-
16
- ## [1.11.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.11.0...@airtable/blocks@1.11.1) - 2022-04-13
17
-
18
- - Update internal utilities for error reporting
19
-
20
- ## [1.11.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.10.2...@airtable/blocks@1.11.0) - 2022-03-10
21
-
22
- - Add workspace id to base object.
23
- - Add `Field.updateNameAsync`
24
- - Fixes a crash when a linked record is deleted
25
- - Fixes a crash when a record containing a linked record is deleted and restored
26
-
27
- ## [1.10.2](https://github.com/airtable/blocks/compare/@airtable/blocks@1.10.1...@airtable/blocks@1.10.2) - 2022-01-25
28
-
29
- - Rare invariant failure addressed
30
-
31
- ## [1.10.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.10.0...@airtable/blocks@1.10.1) - 2021-12-22
32
-
33
- - Update examples for table, view and field URLs.
34
- - Use `keyof any` instead of `PropertyKey` in type definition to avoid incompatibility with the
35
- "[keyofStringsOnly](https://www.typescriptlang.org/tsconfig#keyofStringsOnly)" tsconfig option
36
-
37
- ## [1.10.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.9.0...@airtable/blocks@1.10.0) - 2021-11-03
38
-
39
- - Fix typo in cursor.ts documentation - thanks @m2creates!
40
- - Add new `calendarDay` icon (and micro variant)
41
- - Update documentation to include attachment url guidance
42
- - Update field metadata writes documentation to mention that `null` will be coerced to `''`
43
- - Fix a bug when unloading data from a `linkedRecordQueryResult` after a table deletion
44
- - Update `children` prop of `Link` component to be optional
45
-
46
- ## [1.9.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.8.0...@airtable/blocks@1.9.0) - 2021-09-15
47
-
48
- - Update documentation for `FieldType.CHECKBOX` cell read & write types to be more accurate.
49
- - Fetching field types & configs is now cached, making it more performant.
50
- - Field descriptions can now be edited and specified when creating a new field:
51
- - Added `field.updateDescriptionAsync`.
52
- - Added optional `description` argument to `table.createFieldAsync`.
53
- - Added optional `description` property to `field` objects accepted by
54
- `base.createTableAsync`.
55
-
56
- ## [1.8.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.7.2...@airtable/blocks@1.8.0) - 2021-07-12
57
-
58
- - Add `opts` argument to `Field.updateOptionsAsync` with `enableSelectFieldChoiceDeletion` opt.
59
- - Add `prefersSingleRecordLink` to `field.options` for `MULTIPLE_RECORD_LINKS` type fields.
60
- - Add new timeline icon (and micro variant).
61
-
62
- ## [1.7.2](https://github.com/airtable/blocks/compare/@airtable/blocks@1.7.1...@airtable/blocks@1.7.2) - 2021-05-26
63
-
64
- - Add `FieldType.EXTERNAL_SYNC_SOURCE`.
65
-
66
- ## [1.7.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.7.0...@airtable/blocks@1.7.1) - 2021-05-21
67
-
68
- No changes.
69
-
70
- ## [1.7.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.6.0...@airtable/blocks@1.7.0) - 2021-05-13
71
-
72
- - Add `onBlur` and `onFocus` support to `Input` and `InputSynced` UI components.
73
-
74
- ## [1.6.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.5.1...@airtable/blocks@1.6.0) - 2021-05-12
75
-
76
- - Add `color` property to `base` to access the background color of the base, as well as the
77
- `color` watch key
78
- - Update documentation text for `GlobalConfig` with increased 150kb limit.
79
- - Add `getMaxRecordsPerTable` to `base`
80
-
81
- ## [1.5.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.5.0...@airtable/blocks@1.5.1) - 2021-03-04
82
-
83
- No changes.
84
-
85
- ## [1.5.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.4.1...@airtable/blocks@1.5.0) - 2021-02-25
86
-
87
- - Add type exports for `Cursor` & `Session` to `@airtable/blocks/models`.
88
- - Add type exports for `GlobalConfig`, `Watchable`, & `Viewport` to `@airtable/blocks/types`.
89
- - Add `boltList`, `boltListMicro`, `contacts`, `contactsMicro`, `megaphone`, `megaphoneMicro`,
90
- `shareWithBolt` and `shareWithBoltMicro` icons.
91
- - Increase spacing between `label` and `description` nodes in `FormField`.
92
- - Support creating (but not updating) `MULTIPLE_RECORD_LINKS` fields using
93
- `table.createFieldAsync`.
94
- - Add `isCancelButtonDisabled` and `isConfirmButtonDisabled` props to `ConfirmationDialog`.
95
- - Add `config` property to `Field`, which is a new `FieldConfig` discriminated union type that
96
- provides easier access to field options.
97
- - Improve type definitions for `getHexForColor` and `getRgbForColor`.
98
-
99
- ## [1.4.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.4.0...@airtable/blocks@1.4.1) - 2021-01-21
100
-
101
- No changes.
102
-
103
- ## [1.4.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.3.0...@airtable/blocks@1.4.0) - 2021-01-19
104
-
105
- - **DEPRECATED:** importing the Base's Cursor instance from the main entrypoint, e.g.
106
- `import {cursor} from '@airtable/blocks';`. Use the `useCursor` React Hook instead.
107
- - **DEPRECATED:** importing the Base's Session instance from the main entrypoint, e.g.
108
- `import {session} from '@airtable/blocks';`. Use the `useSession` React Hook instead.
109
-
110
- ## [1.3.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.5...@airtable/blocks@1.3.0) - 2021-01-07
111
-
112
- - Fix crash when deleting views.
113
- - Add BaseProvider to allow rendering Components outside of the App's React tree
114
-
115
- ## [1.2.5](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.4...@airtable/blocks@1.2.5) - 2020-12-10
116
-
117
- No changes.
118
-
119
- ## [1.2.4](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.3...@airtable/blocks@1.2.4) - 2020-12-10
120
-
121
- No changes.
122
-
123
- ## [1.2.3](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.2...@airtable/blocks@1.2.3) - 2020-12-09
124
-
125
- - Stopped exporting an internal class that was causing typescript checking to fail on version
126
- 1.2.2
127
-
128
- ## [1.2.2](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.1...@airtable/blocks@1.2.2) - 2020-12-08
129
-
130
- - Fixed a bug in useRecordActionData that caused it to crash on version 1.2.1
131
-
132
- ## [1.2.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.0...@airtable/blocks@1.2.1) - 2020-11-23
133
-
134
- - Fixed a bug that prevented TableOrViewQueryResult from notifying watchers about the
135
- creation/deletion of sorted fields.
136
- - Fixed a bug where deleting and undeleting a table that was already loaded caused the App to
137
- crash.
138
- - **DEPRECATED:** importing the UI namespace from the main entrypoint, e.g.
139
- `import {UI} from '@airtable/blocks';`. Use `import * as UI from '@airtable/blocks/ui/ui';`
140
- instead.
141
- - **DEPRECATED:** importing the models namespace from the main entrypoint, e.g.
142
- `import {models} from '@airtable/blocks';`. Use
143
- `import * as models from '@airtable/blocks/models/models';` instead.
144
-
145
- ## [1.2.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.1.0...@airtable/blocks@1.2.0) - 2020-10-23
146
-
147
- - Added `automations` and fixed the SVG path for `personalAuto` in `Icon`.
148
- - Fixed a bug that caused an App to crash when creating a new table before the App has loaded.
149
- - Fixed a bug in watching/unwatching keys of LinkedRecordQueryResult models. Watching/unwatching
150
- `isDataLoaded` no longer affects the model's "loaded" state.
151
- - Fixed a bug introduced in v1.0.0 in `RecordCard` when rendering a record that has a lookup field
152
- of an attachment field.
153
-
154
- ## [1.1.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.0.1...@airtable/blocks@1.1.0) - 2020-09-29
155
-
156
- - **DEPRECATED:** "blocks" as an icon name. Use `<Icon name="apps" .../>` instead.
157
- - Fixed bugs introduced in v1.0.0 that broke using lookup cell values with
158
- `Record.getCellValueAsString`, `aggregator.aggregate` and `aggregator.aggregateToString`
159
-
160
- ## [1.0.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.0.0...@airtable/blocks@1.0.1) - 2020-09-24
161
-
162
- - Fixed bug where `Select`, `SelectButtons`, and `Synced` variants behaved incorrectly when there
163
- were multiple items with the same value.
164
- - Fix a bug using lookup cell values with `<CellRenderer />` introduced in v1.0.0
165
-
166
- ## [1.0.0](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.55...@airtable/blocks@1.0.0) - 2020-09-14
167
-
168
- - **BREAKING:** The cell value format for lookup fields (`FieldType.MULTIPLE_LOOKUP_VALUES`) is
169
- now `Array<{linkedRecordId: RecordId, value: CellValue}>`
170
- - **BREAKING:** Remove `Record.primaryCellValue` and `Record.primaryCellValueAsString`, as well as
171
- the `primaryCellValue` watchable key on Record. These APIs were deprecated in v0.0.45
172
- - **BREAKING:** Remove legacy record creation format. All calls to `Table.createRecordAsync` /
173
- `Table.createRecordsAsync` must define record field mappings under a `fields` key. These APIs
174
- were deprecated in v0.0.41.
175
-
176
- ## [0.0.55](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.54...@airtable/blocks@0.0.55) - 2020-09-02
177
-
178
- No changes.
179
-
180
- ## [0.0.54](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.53...@airtable/blocks@0.0.54) - 2020-08-12
181
-
182
- - Remove `unstable_` prefix from `Field.updateOptionsAsync`, `Table.createFieldAsync`, and
183
- `Base.createTableAsync`. See
184
- [Changing base schema](https://airtable.com/developers/blocks/guides/changing-base-schema) for
185
- full details.
186
-
187
- ## [0.0.53](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.52...@airtable/blocks@0.0.53) - 2020-06-24
188
-
189
- - Fix a typo in the docs for `globalConfig.setAsync`.
190
- - Added an explicit `box-sizing: border-box;` to the inner div of ChoiceToken, to prevent
191
- accidentally inheriting different box-sizing values.
192
-
193
- ## [0.0.52](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.51...@airtable/blocks@0.0.52) - 2020-06-08
194
-
195
- - Add `FieldType.CREATED_BY`, `FieldType.LAST_MODIFIED_BY`, and `FieldType.BUTTON`.
196
- - Add record action APIs! Use one in your block to handle "open block" requests from a button
197
- field.
198
- - `useRecordActionData`
199
- - `registerRecordActionDataCallback`
200
-
201
- ## [0.0.51](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.50...@airtable/blocks@0.0.51) - 2020-05-28
202
-
203
- - Fix a bug introduced in 0.0.48 that caused typechecking errors for blocks using TypeScript.
204
-
205
- ## [0.0.50](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.49...@airtable/blocks@0.0.50) - 2020-05-28
206
-
207
- No changes.
208
-
209
- ## [0.0.49](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.48...@airtable/blocks@0.0.49) - 2020-05-21
210
-
211
- - Adds optional `renderInvalidCellValue` prop to `RecordCard` and `CellRenderer` to render a
212
- component if validation fails.
213
-
214
- ## [0.0.48](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.47...@airtable/blocks@0.0.48) - 2020-04-30
215
-
216
- No changes.
217
-
218
- ## [0.0.47](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.46...@airtable/blocks@0.0.47) - 2020-04-23
219
-
220
- - UI components that don't depend on base data can now be used outside of the blocks environment.
221
-
222
- ## [0.0.46](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.45...@airtable/blocks@0.0.46) - 2020-04-16
223
-
224
- - `FieldType.RICH_TEXT` has been added, which encompasses long text fields with the new rich text
225
- formatting option enabled. (See Airtable's announcement regarding
226
- [rich text formatting in long text fields](https://blog.airtable.com/4-workflows-for-rich-text-formatting/))
227
- - `Switch` and `SwitchSynced` now truncate the label.
228
- - Fix a bug where `RecordCard` performs the default expand record behavior, even if an `onClick`
229
- override is supplied. It now properly handles overrides as described in the documentation. This
230
- fix also applies to `onRecordClick` in `RecordCardList`.
231
- - Beta: New field and table writes API! You can now create tables and fields and update field
232
- options.
233
- - `base.unstable_createTableAsync`
234
- - `table.unstable_createFieldAsync`
235
- - `field.unstable_updateOptionsAsync`
236
- - These APIs are unstable and may have breaking changes in the future.
237
- - Not all field types are supported at this time. Refer to `FieldType` documentation for
238
- details.
239
-
240
- ## [0.0.45](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.44...@airtable/blocks@0.0.45) - 2020-03-31
241
-
242
- - **DEPRECATED:** `record.primaryCellValue` and `record.primaryCellValueAsString`.
243
- - The `primaryCellValue` watch key on `record` is also deprecated - use the `name` watch key
244
- instead.
245
- - Add the following APIs to match the new scripting block:
246
- - **Convenience model getters.** These are useful when you're working on a block for a
247
- specific base, but best-practice for more generic blocks is to prefer the existing
248
- `ById`/`ByName` methods.
249
- - `base.getCollaboratorIfExists`
250
- - `base.getCollaborator`
251
- - `base.getTableIfExists`
252
- - `base.getTable`
253
- - `table.getFieldIdExists`
254
- - `table.getField`
255
- - `table.getViewIfExists`
256
- - `table.getView`
257
- - **Async `select` queries.** For creating UIs from a query, the best practice is still to use
258
- `useRecords` etc. Directly querying data is useful for one-off data processing though.
259
- - `table.selectRecordsAsync`
260
- - `view.selectRecordsAsync`
261
- - `view.selectMetadataAsync`
262
- - `record.selectLinkedRecordsFromCellAsync`
263
- - **`record.name`** replaces `record.primaryCellValueAsString`.
264
- - Fix some incorrectly redacted internal typescript types
265
-
266
- ## [0.0.44](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.43...@airtable/blocks@0.0.44) - 2020-03-27
267
-
268
- - `TextButton` now supports including an icon without a label.
269
- - Properly export the `useSynced` hook.
270
- - Errors now output model names instead of IDs when available.
271
- - Fix a positioning bug with `SelectButtons` where unwanted empty space could appear when the
272
- component is used in a scrollable list.
273
-
274
- ## [0.0.43](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.42...@airtable/blocks@0.0.43) - 2020-02-28
275
-
276
- - Export the `useSynced` hook for syncing a component to `GlobalConfig`.
277
-
278
- ## [0.0.42](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.41...@airtable/blocks@0.0.42) - 2020-02-10
279
-
280
- - **BREAKING**: Field type and view type enums are now exported from '@airtable/blocks/models' as
281
- `FieldType` and `ViewType` (previously `fieldTypes` and `viewTypes`). Relatedly, these types are
282
- no longer exported from '@airtable/blocks/types', as they can now be referenced from the model
283
- exports.
284
- - Updates to record convenience hooks
285
- - `useRecords` now accepts a `Table` or `View` and optional `RecordQueryResultOpts`. Passing a
286
- `RecordQueryResult` is still supported.
287
- - `useRecordIds` now accepts a `Table` or `View` and optional `RecordIdQueryResultOpts`.
288
- Passing a `RecordQueryResult` is still supported.
289
- - `useRecordById` now accepts a `Table` or `View` and optional `SingleRecordQueryResultOpts`.
290
- Passing a `RecordQueryResult` is still supported.
291
- - Added `cursor.selectedFieldIds` which returns the field IDs that are selected in grid view
292
-
293
- ## [0.0.41](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.40...@airtable/blocks@0.0.41) - 2020-01-27
294
-
295
- - **BREAKING**: `useWatchable` will now throw an error if the second argument `keys` is
296
- `undefined`. Previously, this would no-op.
297
- - Added support for `setActiveTable` and `setActiveView` to the `cursor` API. These can be used to
298
- manipulate the current table and/or view on the main Airtable page from inside a block.
299
- - Table.createRecordsAsync now accepts an array of objects containing a `fields` object of field
300
- \-> cell value mappings, rather an accepting field -> cell value mappings directly. This brings
301
- its API in line with `updateRecordsAsync` and other Airtable APIs. The old behavior is still
302
- supported but has been deprecated and will be removed in a future version.
303
- - Fixed issue where blocks would crash in MS Edge due to a browser bug with `super` method calls.
304
- - Changed default Tooltip `placementOffsetX` and `placementOffsetY` to `8` pixels. `undefined`.
305
- Previously, this would no-op.
306
- - Added default blue `barColor` to `ProgressBar`.
307
-
308
- ## [0.0.40](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.39...@airtable/blocks@0.0.40) - 2020-01-09
309
-
310
- - Added permission checks that don't require specifying a table to `session`:
311
- - `session.checkPermissionsForUpdateRecords()`
312
- - `session.hasPermissionToUpdateRecords()`
313
- - `session.checkPermissionsForCreateRecords()`
314
- - `session.hasPermissionToCreateRecords()`
315
- - `session.checkPermissionsForDeleteRecords()`
316
- - `session.hasPermissionToDeleteRecords()`
317
-
318
- ## [0.0.39](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.38...@airtable/blocks@0.0.39) - 2019-12-12
319
-
320
- - Changed the font sizes for the `size` variants of `Select` and `Button`.
321
- - `useWatchable` now supports single string watch keys being passed in (as well as the existing
322
- array support)
323
- - Fixed bug where `shouldAllowPickingNone` didn't work in `FieldPicker` and `FieldPickerSynced`.
324
- - Updated `fullscreen` and `fullscreenMicro` icons.
325
- - Updated UI.Button component to better support icon buttons containing no text. An error is now
326
- logged to the console if you attempt to use a UI.Button component with no text/children and no
327
- aria-label.
328
-
329
- ## [0.0.36](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.35...@airtable/blocks@0.0.36) - 2019-11-18
330
-
331
- - Added `table.description` and `field.description`, and `description` watch key on `table` and
332
- `field`.
333
-
334
- ## [0.0.35](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.34...@airtable/blocks@0.0.35) - 2019-11-11
335
-
336
- - UI library
337
- - New API for styling UI components. Each component now exposes a certain set of CSS
338
- properties as React props. Styling via the `className` and `style` props is still supported
339
- but is no longer recommended. For more information, see the documentation for
340
- [style props](https://github.com/Airtable/blocks/blob/master/packages/sdk/docs/api/modules/_airtable_blocks_ui_system__all_style_props.md#allstylesprops).
341
- - New components:
342
- - `Text` and `Heading` for typography.
343
- - `Label` and `FormField` for labeling controls or form fields.
344
- - `TextButton` for buttons that can be rendered inline with text.
345
- - **BREAKING**: `Toggle` has been renamed to `Switch`.
346
- - **BREAKING**: `Button` and `Switch` no longer accept the `theme` prop. Instead, you can
347
- specify the colors for these components with the `variant` prop.
348
- - `Link` also supports the `variant` prop, which determines the text color of the link.
349
- - `Button`, `Input`, `Link`, `SelectButtons`, `Select`, `Switch`, and the model picker
350
- components can now be resized via the `size` prop (one of `small`, `default`, or `large`).
351
- - `Button`, `Icon`, `Input`, `Link`, `SelectButtons`, `Select`, `Switch`, and the model picker
352
- components are now functional components that use the
353
- [`React.forwardRef`](https://reactjs.org/docs/forwarding-refs.html) API.
354
- - `SelectButtons` is now keyboard/screenreader accessible.
355
- - Typescript
356
- - **BREAKING** The SDK has been migrated from Flow to TypeScript. We no longer provide flow
357
- type definitions with the release of the SDK. TypeScript definitions are provided instead.
358
-
359
- ## [0.0.34](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.33...@airtable/blocks@0.0.34) - 2019-10-04
360
-
361
- - Fix a regression where `UI.ConfirmationDialog` would crash the block.
362
- - Allow passing an array of models to `useWatchable` to watch several models at once.
363
- - **BREAKING**: `fieldTypes.LOOKUP` is now `fieldTypes.MULTIPLE_LOOKUP_VALUES`. The underlying
364
- string has also changed from `lookup` to `multipleLookupValues`.
365
- - Fix a regression where cover images in `UI.RecordCard` would render as `[Object object]`.
366
-
367
- ## [0.0.33](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.32...@airtable/blocks@0.0.33) - 2019-09-26
368
-
369
- - New settings button helpers: `useSettingsButton`, `settingsButton.show()` and
370
- `settingsButton.hide()`.
371
- - **BREAKING**: `settingsButton.isVisible` is no longer settable. Use `settingsButton.show()` and
372
- `settingsButton.hide()` instead.
373
-
374
- ## [0.0.32](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.31...@airtable/blocks@0.0.32) - 2019-09-20
375
-
376
- - **BREAKING:** Removed `localStorage` and `sessionStorage` wrappers.
377
- - Fix a bug where the `value` prop wouldn't get correctly passed through to `Input`
378
-
379
- ## [0.0.31](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.30...@airtable/blocks@0.0.31) - 2019-09-18
380
-
381
- - New record writes API! You can now create, update, and delete records directly from your block.
382
- Check out the new
383
- [writes guide](https://github.com/Airtable/blocks/blob/master/packages/sdk/docs/guide_writes.md)
384
- for more information.
385
- - **BREAKING**: several `globalConfig` APIs have changed to be consistent with the new record
386
- writes & permissions APIs:
387
- - `globalConfig.set()` has been removed - use the new `globalConfig.setAsync()` method
388
- instead.
389
- - `globalConfig.canSet()` has been renamed to `globalConfig.hasPermissionToSet()`.
390
- - `globalConfig.setPaths()` has been removed - use the new `globalConfig.setPathsAsync()`
391
- method instead.
392
- - `globalConfig.canSetPaths()` has been renamed to `globalConfig.hasPermissionToSetPaths()`.
393
- - **BREAKING:** Remove `models.generateGuid()`. Use an ID generator like
394
- [`uuid`](https://www.npmjs.com/package/uuid) instead.
395
- - **BREAKING:** Deprecated `UI.AutocompletePopover`.
396
- - Upgrade flow to 0.106.3
397
- - Fix a flow error with `react-window`.
398
- - `view.selectRecords()` now colors records according to that view by default.
399
- - Allow passing an array of models to `useLoadable` to load several things at once.
400
-
401
- ## [0.0.30](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.29...@airtable/blocks@0.0.30) - 2019-08-26
402
-
403
- No changes.
404
-
405
- ## [0.0.29](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.28...@airtable/blocks@0.0.29) - 2019-08-22
406
-
407
- No changes.
408
-
409
- ## [0.0.28](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.27...@airtable/blocks@0.0.28) - 2019-08-21
410
-
411
- No changes.
412
-
413
- ## [0.0.27](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.26...@airtable/blocks@0.0.27) - 2019-08-21
414
-
415
- No changes.
416
-
417
- ## [0.0.26](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.25...@airtable/blocks@0.0.26) - 2019-08-19
418
-
419
- - UI.RecordCardList: fixed a bug where records weren't expanded by default when clicked.
420
-
421
- ## [0.0.25](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.24...@airtable/blocks@0.0.25) - 2019-08-19
422
-
423
- - Add Print Records block docs example block
424
-
425
- ## [0.0.24](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.23...@airtable/blocks@0.0.24) - 2019-08-14
426
-
427
- No changes.
428
-
429
- ## [0.0.23](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.22...@airtable/blocks@0.0.23) - 2019-08-09
430
-
431
- ### Fixed
432
-
433
- - The `disabled` attribute on `<Select>` components (including model pickers and synced model
434
- pickers) now correctly disables the element
435
-
436
- ## [0.0.22](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.21...@airtable/blocks@0.0.22) - 2019-07-18
437
-
438
- No changes.
439
-
440
- ## [0.0.21](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.20...@airtable/blocks@0.0.21) - 2019-07-18
441
-
442
- No changes.
443
-
444
- ## [0.0.20](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.19...@airtable/blocks@0.0.20) - 2019-07-15
445
-
446
- ### Fixed
447
-
448
- - A bug with UI.Toggle that made it difficult to style
449
-
450
- ## [0.0.19](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.18...@airtable/blocks@0.0.19) - 2019-07-11
451
-
452
- No changes.
453
-
454
- ## [0.0.18](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.17...@airtable/blocks@0.0.18) - 2019-07-10
455
-
456
- - Update documentation links & eslint-plugin-blocks
457
-
458
- ## [0.0.17](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.16...@airtable/blocks@0.0.17) - 2019-07-09
459
-
460
- No changes.
461
-
462
- ## [0.0.16](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.15...@airtable/blocks@0.0.16) - 2019-07-05
463
-
464
- - **BREAKING:** Removed view.visibleFields and view.allFields - use view.selectMetadata instead
465
- - Added view.selectMetadata() for querying a view's field order and list of visible fields
466
-
467
- ## [0.0.15](https://github.com/airtable/blocks/compare/v0.0.14...@airtable/blocks@0.0.15) - 2019-07-03
468
-
469
- No changes.
470
-
471
- ## [0.0.14](https://github.com/airtable/blocks/compare/v0.0.13...v0.0.14) - 2019-07-02
472
-
473
- - **BREAKING:** Removed `currentUser` from `Base` since it is now accessible through `Session`.
474
- - **BREAKING:** Renamed QueryResult to RecordQueryResult
475
- - Added base.watch('schema') to get notified when base schema changes.
476
- - Added Session to expose data about the current user's session.
477
- - Added globalConfig.watch('\*') to get notified of any global config key change.
478
- - Added useGlobalConfig() to subscribe to global config changes from a react component.
479
-
480
- ## [0.0.13](https://github.com/airtable/blocks/releases/tag/v0.0.13) - 2019-06-21
481
-
482
- ### Removed
483
-
484
- - **BREAKING:** Removed `createDataContainer`. Use `useWatchable` or other hooks instead.
485
- - **BREAKING:** FieldIcon no longer accepts arbitrary props - only those in it's propTypes can be
486
- used.
487
-
488
- ### Added
489
-
490
- - This changelog!
491
-
492
- ### Fixed
493
-
494
- - FieldPicker placeholder typo
495
- - SVGElement flow error