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