@airtable/blocks 1.10.2 → 1.11.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/cjs/models/base.js +15 -0
- package/dist/cjs/models/field.js +99 -4
- package/dist/cjs/models/linked_records_query_result.js +17 -8
- package/dist/cjs/models/mutations.js +80 -43
- package/dist/cjs/sdk.js +1 -1
- package/dist/cjs/types/mutations.js +1 -0
- package/dist/types/src/models/base.d.ts +10 -0
- package/dist/types/src/models/base.d.ts.map +1 -1
- package/dist/types/src/models/field.d.ts +58 -0
- package/dist/types/src/models/field.d.ts.map +1 -1
- package/dist/types/src/models/linked_records_query_result.d.ts.map +1 -1
- package/dist/types/src/models/mutations.d.ts.map +1 -1
- package/dist/types/src/types/base.d.ts +1 -0
- package/dist/types/src/types/base.d.ts.map +1 -1
- package/dist/types/src/types/mutations.d.ts +25 -2
- package/dist/types/src/types/mutations.d.ts.map +1 -1
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -484
package/dist/cjs/models/base.js
CHANGED
|
@@ -864,6 +864,21 @@ function (_AbstractModel) {
|
|
|
864
864
|
get: function get() {
|
|
865
865
|
return this._data.name;
|
|
866
866
|
}
|
|
867
|
+
/**
|
|
868
|
+
* The workspace id of the base.
|
|
869
|
+
*
|
|
870
|
+
* @example
|
|
871
|
+
* ```js
|
|
872
|
+
* import {base} from '@airtable/blocks';
|
|
873
|
+
* console.log('The workspace id of your base is', base.workspaceId);
|
|
874
|
+
* ```
|
|
875
|
+
*/
|
|
876
|
+
|
|
877
|
+
}, {
|
|
878
|
+
key: "workspaceId",
|
|
879
|
+
get: function get() {
|
|
880
|
+
return this._data.workspaceId;
|
|
881
|
+
}
|
|
867
882
|
/**
|
|
868
883
|
* The color of the base.
|
|
869
884
|
*
|
package/dist/cjs/models/field.js
CHANGED
|
@@ -279,6 +279,101 @@ function (_AbstractModel) {
|
|
|
279
279
|
}
|
|
280
280
|
}, null, this);
|
|
281
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* Checks whether the current user has permission to perform the given name update.
|
|
284
|
+
*
|
|
285
|
+
* Accepts partial input, in the same format as {@link updateNameAsync}.
|
|
286
|
+
*
|
|
287
|
+
* Returns `{hasPermission: true}` if the current user can update the specified field,
|
|
288
|
+
* `{hasPermission: false, reasonDisplayString: string}` otherwise. `reasonDisplayString` may be
|
|
289
|
+
* used to display an error message to the user.
|
|
290
|
+
*
|
|
291
|
+
* @param name new name for the field
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* ```js
|
|
295
|
+
* const updateFieldCheckResult = field.checkPermissionsForUpdateName();
|
|
296
|
+
*
|
|
297
|
+
* if (!updateFieldCheckResult.hasPermission) {
|
|
298
|
+
* alert(updateFieldCheckResult.reasonDisplayString);
|
|
299
|
+
* }
|
|
300
|
+
* ```
|
|
301
|
+
*/
|
|
302
|
+
|
|
303
|
+
}, {
|
|
304
|
+
key: "checkPermissionsForUpdateName",
|
|
305
|
+
value: function checkPermissionsForUpdateName(name) {
|
|
306
|
+
return this._sdk.__mutations.checkPermissionsForMutation({
|
|
307
|
+
type: _mutations.MutationTypes.UPDATE_SINGLE_FIELD_NAME,
|
|
308
|
+
tableId: this.parentTable.id,
|
|
309
|
+
id: this.id,
|
|
310
|
+
name
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* An alias for `checkPermissionsForUpdateName(options).hasPermission`.
|
|
315
|
+
*
|
|
316
|
+
* Checks whether the current user has permission to perform the name update.
|
|
317
|
+
*
|
|
318
|
+
* Accepts partial input, in the same format as {@link updateNameAsync}.
|
|
319
|
+
*
|
|
320
|
+
* @param name new name for the field
|
|
321
|
+
*
|
|
322
|
+
* @example
|
|
323
|
+
* ```js
|
|
324
|
+
* const canUpdateField = field.hasPermissionToUpdateName();
|
|
325
|
+
*
|
|
326
|
+
* if (!canUpdateField) {
|
|
327
|
+
* alert('not allowed!');
|
|
328
|
+
* }
|
|
329
|
+
* ```
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
}, {
|
|
333
|
+
key: "hasPermissionToUpdateName",
|
|
334
|
+
value: function hasPermissionToUpdateName(name) {
|
|
335
|
+
return this.checkPermissionsForUpdateName(name).hasPermission;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Updates the name for this field.
|
|
339
|
+
*
|
|
340
|
+
* Throws an error if the user does not have permission to update the field, or if an invalid
|
|
341
|
+
* name is provided.
|
|
342
|
+
*
|
|
343
|
+
* This action is asynchronous. Unlike updates to cell values, updates to field name are
|
|
344
|
+
* **not** applied optimistically locally. You must `await` the returned promise before
|
|
345
|
+
* relying on the change in your app.
|
|
346
|
+
*
|
|
347
|
+
* @param name new name for the field
|
|
348
|
+
*
|
|
349
|
+
* @example
|
|
350
|
+
* ```js
|
|
351
|
+
* await myTextField.updateNameAsync('My New Name');
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
|
|
355
|
+
}, {
|
|
356
|
+
key: "updateNameAsync",
|
|
357
|
+
value: function updateNameAsync(name) {
|
|
358
|
+
return _regenerator.default.async(function updateNameAsync$(_context2) {
|
|
359
|
+
while (1) {
|
|
360
|
+
switch (_context2.prev = _context2.next) {
|
|
361
|
+
case 0:
|
|
362
|
+
_context2.next = 2;
|
|
363
|
+
return _regenerator.default.awrap(this._sdk.__mutations.applyMutationAsync({
|
|
364
|
+
type: _mutations.MutationTypes.UPDATE_SINGLE_FIELD_NAME,
|
|
365
|
+
tableId: this.parentTable.id,
|
|
366
|
+
id: this.id,
|
|
367
|
+
name
|
|
368
|
+
}));
|
|
369
|
+
|
|
370
|
+
case 2:
|
|
371
|
+
case "end":
|
|
372
|
+
return _context2.stop();
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}, null, this);
|
|
376
|
+
}
|
|
282
377
|
/**
|
|
283
378
|
* Checks whether the current user has permission to perform the given description update.
|
|
284
379
|
*
|
|
@@ -358,11 +453,11 @@ function (_AbstractModel) {
|
|
|
358
453
|
}, {
|
|
359
454
|
key: "updateDescriptionAsync",
|
|
360
455
|
value: function updateDescriptionAsync(description) {
|
|
361
|
-
return _regenerator.default.async(function updateDescriptionAsync$(
|
|
456
|
+
return _regenerator.default.async(function updateDescriptionAsync$(_context3) {
|
|
362
457
|
while (1) {
|
|
363
|
-
switch (
|
|
458
|
+
switch (_context3.prev = _context3.next) {
|
|
364
459
|
case 0:
|
|
365
|
-
|
|
460
|
+
_context3.next = 2;
|
|
366
461
|
return _regenerator.default.awrap(this._sdk.__mutations.applyMutationAsync({
|
|
367
462
|
type: _mutations.MutationTypes.UPDATE_SINGLE_FIELD_DESCRIPTION,
|
|
368
463
|
tableId: this.parentTable.id,
|
|
@@ -372,7 +467,7 @@ function (_AbstractModel) {
|
|
|
372
467
|
|
|
373
468
|
case 2:
|
|
374
469
|
case "end":
|
|
375
|
-
return
|
|
470
|
+
return _context3.stop();
|
|
376
471
|
}
|
|
377
472
|
}
|
|
378
473
|
}, null, this);
|
|
@@ -520,12 +520,17 @@ function (_RecordQueryResult) {
|
|
|
520
520
|
}, {
|
|
521
521
|
key: "_onLinkedRecordIdsChange",
|
|
522
522
|
value: function _onLinkedRecordIdsChange() {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
523
|
+
if (!this.isDataLoaded || this._record.isDeleted) {
|
|
524
|
+
//TODO(jamesmoody-at): Adding this._dataOrNullIfDeleted as an exit condition here is a temporary fix to address an issue where
|
|
525
|
+
// we are not reseting isValid to true while restoring deleted records that contain linked record fields. It seems the only way
|
|
526
|
+
// to do this is by creating a new LinkRecordsQueryResult instance but it seems like we might be reusing the original instance
|
|
527
|
+
// that we've already set isValid to false with. We'll need to do more investigating to figure out the right way to restore these
|
|
528
|
+
// records while keeping the behavior of isValid consistent
|
|
526
529
|
return;
|
|
527
530
|
}
|
|
528
531
|
|
|
532
|
+
(0, _error_utils.invariant)(this.isValid, 'watch key change event whilst invalid');
|
|
533
|
+
|
|
529
534
|
this._invalidateComputedData(); // we don't actually know at this stage whether anything changed or
|
|
530
535
|
// not. it may have done though, so notify watchers
|
|
531
536
|
|
|
@@ -610,15 +615,19 @@ function (_RecordQueryResult) {
|
|
|
610
615
|
}, {
|
|
611
616
|
key: "_onOriginCellValueChange",
|
|
612
617
|
value: function _onOriginCellValueChange() {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
618
|
+
if (!this.isDataLoaded || this._field.isDeleted) {
|
|
619
|
+
//TODO(jamesmoody-at): Adding this._dataOrNullIfDeleted as an exit condition here is a temporary fix to address an issue where
|
|
620
|
+
// we are not resetting isValid to true while restoring deleted records that contain linked record fields. It seems the only way
|
|
621
|
+
// to do this is by creating a new LinkRecordsQueryResult instance but it seems like we might be reusing the original instance
|
|
622
|
+
// that we've already set isValid to false with. We'll need to do more investigating to figure out the right way to restore these
|
|
623
|
+
// records while keeping the behavior of isValid consistent
|
|
616
624
|
return;
|
|
617
|
-
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
(0, _error_utils.invariant)(this.isValid, 'watch key change event whilst invalid'); // when the origin cell value (listing all the linked records) changes,
|
|
618
628
|
// invalidate all the data we have stored - we need to completely
|
|
619
629
|
// regenerate it
|
|
620
630
|
|
|
621
|
-
|
|
622
631
|
this._invalidateComputedData(); // notify watchers that our set of linked records has changed
|
|
623
632
|
|
|
624
633
|
|
|
@@ -231,6 +231,26 @@ function () {
|
|
|
231
231
|
}
|
|
232
232
|
/** @internal */
|
|
233
233
|
|
|
234
|
+
}, {
|
|
235
|
+
key: "_assertFieldNameIsValidForMutation",
|
|
236
|
+
value: function _assertFieldNameIsValidForMutation(name, table) {
|
|
237
|
+
if (!name) {
|
|
238
|
+
throw (0, _error_utils.spawnError)("Can't create or update field: must provide non-empty name");
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if (name.length > _mutation_constants.MAX_FIELD_NAME_LENGTH) {
|
|
242
|
+
throw (0, _error_utils.spawnError)("Can't create or update field: name '%s' exceeds maximum length of %s characters", name, _mutation_constants.MAX_FIELD_NAME_LENGTH);
|
|
243
|
+
} // Verify the new name doesn't collide with any existing field name.
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
var existingLowercaseFieldNames = table.fields.map(field => field.name.toLowerCase());
|
|
247
|
+
|
|
248
|
+
if (existingLowercaseFieldNames.includes(name.toLowerCase())) {
|
|
249
|
+
throw (0, _error_utils.spawnError)("Can't create or update field: field with name '%s' already exists", name);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/** @internal */
|
|
253
|
+
|
|
234
254
|
}, {
|
|
235
255
|
key: "_assertMutationIsValid",
|
|
236
256
|
value: function _assertMutationIsValid(mutation) {
|
|
@@ -455,19 +475,7 @@ function () {
|
|
|
455
475
|
throw (0, _error_utils.spawnError)("Can't create field: table already has the maximum of %s fields", _mutation_constants.MAX_NUM_FIELDS_PER_TABLE);
|
|
456
476
|
}
|
|
457
477
|
|
|
458
|
-
|
|
459
|
-
throw (0, _error_utils.spawnError)("Can't create field: must provide non-empty name");
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
if (name.length > _mutation_constants.MAX_FIELD_NAME_LENGTH) {
|
|
463
|
-
throw (0, _error_utils.spawnError)("Can't create field: name '%s' exceeds maximum length of %s characters", name, _mutation_constants.MAX_FIELD_NAME_LENGTH);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
var existingLowercaseFieldNames = _table3.fields.map(field => field.name.toLowerCase());
|
|
467
|
-
|
|
468
|
-
if (existingLowercaseFieldNames.includes(name.toLowerCase())) {
|
|
469
|
-
throw (0, _error_utils.spawnError)("Can't create field: field with name '%s' already exists", name);
|
|
470
|
-
} // Current config / field data is null since the field doesn't exist.
|
|
478
|
+
this._assertFieldNameIsValidForMutation(name, _table3); // Current config / field data is null since the field doesn't exist.
|
|
471
479
|
|
|
472
480
|
|
|
473
481
|
var _validationResult2 = this._airtableInterface.fieldTypeProvider.validateConfigForUpdate(appInterface, config, null, null, billingPlanGrouping);
|
|
@@ -541,23 +549,51 @@ function () {
|
|
|
541
549
|
return;
|
|
542
550
|
}
|
|
543
551
|
|
|
552
|
+
case _mutations.MutationTypes.UPDATE_SINGLE_FIELD_NAME:
|
|
553
|
+
{
|
|
554
|
+
var _tableId6 = mutation.tableId,
|
|
555
|
+
_id2 = mutation.id,
|
|
556
|
+
_name = mutation.name;
|
|
557
|
+
|
|
558
|
+
var _table6 = this._base.getTableByIdIfExists(_tableId6);
|
|
559
|
+
|
|
560
|
+
if (!_table6) {
|
|
561
|
+
throw (0, _error_utils.spawnError)("Can't update field: No table with id %s exists", _tableId6);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
var _field4 = _table6.getFieldByIdIfExists(_id2);
|
|
565
|
+
|
|
566
|
+
if (!_field4) {
|
|
567
|
+
throw (0, _error_utils.spawnError)("Can't update field: No field with id %s exists", _id2);
|
|
568
|
+
} // We skip name validation if it's the same name:
|
|
569
|
+
// If it's exactly same name, this will result in no-op;
|
|
570
|
+
// If it's only case change, we allow update and we know this name is already validated before;
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
if (_field4.name.toLowerCase() !== _name.toLowerCase()) {
|
|
574
|
+
this._assertFieldNameIsValidForMutation(_name, _table6);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
return;
|
|
578
|
+
}
|
|
579
|
+
|
|
544
580
|
case _mutations.MutationTypes.CREATE_SINGLE_TABLE:
|
|
545
581
|
{
|
|
546
|
-
var
|
|
582
|
+
var _name2 = mutation.name,
|
|
547
583
|
fields = mutation.fields;
|
|
548
584
|
|
|
549
|
-
if (!
|
|
585
|
+
if (!_name2) {
|
|
550
586
|
throw (0, _error_utils.spawnError)("Can't create table: must provide non-empty name");
|
|
551
587
|
}
|
|
552
588
|
|
|
553
|
-
if (
|
|
554
|
-
throw (0, _error_utils.spawnError)("Can't create table: name '%s' exceeds maximum length of %s characters",
|
|
589
|
+
if (_name2.length > _mutation_constants.MAX_TABLE_NAME_LENGTH) {
|
|
590
|
+
throw (0, _error_utils.spawnError)("Can't create table: name '%s' exceeds maximum length of %s characters", _name2, _mutation_constants.MAX_TABLE_NAME_LENGTH);
|
|
555
591
|
}
|
|
556
592
|
|
|
557
593
|
var existingLowercaseTableNames = this._base.tables.map(table => table.name.toLowerCase());
|
|
558
594
|
|
|
559
|
-
if (existingLowercaseTableNames.includes(
|
|
560
|
-
throw (0, _error_utils.spawnError)("Can't create table: table with name '%s' already exists",
|
|
595
|
+
if (existingLowercaseTableNames.includes(_name2.toLowerCase())) {
|
|
596
|
+
throw (0, _error_utils.spawnError)("Can't create table: table with name '%s' already exists", _name2);
|
|
561
597
|
}
|
|
562
598
|
|
|
563
599
|
if (fields.length === 0) {
|
|
@@ -575,32 +611,32 @@ function () {
|
|
|
575
611
|
|
|
576
612
|
try {
|
|
577
613
|
for (var _iterator4 = fields[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
|
|
578
|
-
var
|
|
614
|
+
var _field5 = _step4.value;
|
|
579
615
|
|
|
580
|
-
if (!
|
|
616
|
+
if (!_field5.name) {
|
|
581
617
|
throw (0, _error_utils.spawnError)("Can't create table: must provide non-empty name for every field");
|
|
582
618
|
}
|
|
583
619
|
|
|
584
|
-
if (
|
|
585
|
-
throw (0, _error_utils.spawnError)("Can't create table: field name '%s' exceeds maximum length of %s characters",
|
|
620
|
+
if (_field5.name.length > _mutation_constants.MAX_FIELD_NAME_LENGTH) {
|
|
621
|
+
throw (0, _error_utils.spawnError)("Can't create table: field name '%s' exceeds maximum length of %s characters", _field5.name, _mutation_constants.MAX_FIELD_NAME_LENGTH);
|
|
586
622
|
}
|
|
587
623
|
|
|
588
|
-
var lowercaseFieldName =
|
|
624
|
+
var lowercaseFieldName = _field5.name.toLowerCase();
|
|
589
625
|
|
|
590
626
|
if (lowercaseFieldNames.has(lowercaseFieldName)) {
|
|
591
|
-
throw (0, _error_utils.spawnError)("Can't create table: duplicate field name '%s'",
|
|
627
|
+
throw (0, _error_utils.spawnError)("Can't create table: duplicate field name '%s'", _field5.name);
|
|
592
628
|
}
|
|
593
629
|
|
|
594
630
|
lowercaseFieldNames.add(lowercaseFieldName); // Current config / field data is null since the field doesn't exist.
|
|
595
631
|
|
|
596
|
-
var _validationResult4 = this._airtableInterface.fieldTypeProvider.validateConfigForUpdate(appInterface,
|
|
632
|
+
var _validationResult4 = this._airtableInterface.fieldTypeProvider.validateConfigForUpdate(appInterface, _field5.config, null, null, billingPlanGrouping);
|
|
597
633
|
|
|
598
634
|
if (!_validationResult4.isValid) {
|
|
599
|
-
throw (0, _error_utils.spawnError)("Can't create table: invalid field config for field '%s'.\n%s",
|
|
635
|
+
throw (0, _error_utils.spawnError)("Can't create table: invalid field config for field '%s'.\n%s", _field5.name, _validationResult4.reason);
|
|
600
636
|
}
|
|
601
637
|
|
|
602
|
-
if (
|
|
603
|
-
throw (0, _error_utils.spawnError)("Can't create table: description for field '%s' exceeds maximum length of %s characters",
|
|
638
|
+
if (_field5.description && _field5.description.length > _mutation_constants.MAX_FIELD_DESCRIPTION_LENGTH) {
|
|
639
|
+
throw (0, _error_utils.spawnError)("Can't create table: description for field '%s' exceeds maximum length of %s characters", _field5.name, _mutation_constants.MAX_FIELD_DESCRIPTION_LENGTH);
|
|
604
640
|
}
|
|
605
641
|
}
|
|
606
642
|
} catch (err) {
|
|
@@ -629,7 +665,7 @@ function () {
|
|
|
629
665
|
|
|
630
666
|
case _mutations.MutationTypes.UPDATE_VIEW_METADATA:
|
|
631
667
|
{
|
|
632
|
-
var
|
|
668
|
+
var _tableId7 = mutation.tableId,
|
|
633
669
|
viewId = mutation.viewId;
|
|
634
670
|
var runContext = this._airtableInterface.sdkInitData.runContext;
|
|
635
671
|
|
|
@@ -637,17 +673,17 @@ function () {
|
|
|
637
673
|
throw (0, _error_utils.spawnError)('Setting view metadata is only valid for views');
|
|
638
674
|
}
|
|
639
675
|
|
|
640
|
-
if (runContext.viewId !== viewId || runContext.tableId !==
|
|
676
|
+
if (runContext.viewId !== viewId || runContext.tableId !== _tableId7) {
|
|
641
677
|
throw (0, _error_utils.spawnError)('Custom views can only set view metadata on themselves');
|
|
642
678
|
}
|
|
643
679
|
|
|
644
|
-
var
|
|
680
|
+
var _table7 = this._base.getTableByIdIfExists(_tableId7);
|
|
645
681
|
|
|
646
|
-
if (!
|
|
647
|
-
throw (0, _error_utils.spawnError)("Can't update metadata: No table with id %s exists",
|
|
682
|
+
if (!_table7) {
|
|
683
|
+
throw (0, _error_utils.spawnError)("Can't update metadata: No table with id %s exists", _tableId7);
|
|
648
684
|
}
|
|
649
685
|
|
|
650
|
-
var view =
|
|
686
|
+
var view = _table7.getViewByIdIfExists(viewId);
|
|
651
687
|
|
|
652
688
|
if (!view) {
|
|
653
689
|
throw (0, _error_utils.spawnError)("Can't update metadata: No view with id %s exists", viewId);
|
|
@@ -705,19 +741,19 @@ function () {
|
|
|
705
741
|
|
|
706
742
|
case _mutations.MutationTypes.DELETE_MULTIPLE_RECORDS:
|
|
707
743
|
{
|
|
708
|
-
var
|
|
744
|
+
var _tableId8 = mutation.tableId,
|
|
709
745
|
recordIds = mutation.recordIds;
|
|
710
746
|
|
|
711
|
-
var _recordStore2 = this._base.__getRecordStore(
|
|
747
|
+
var _recordStore2 = this._base.__getRecordStore(_tableId8);
|
|
712
748
|
|
|
713
749
|
if (!_recordStore2.isRecordMetadataLoaded) {
|
|
714
750
|
return [];
|
|
715
751
|
}
|
|
716
752
|
|
|
717
753
|
return [...recordIds.map(recordId => ({
|
|
718
|
-
path: ['tablesById',
|
|
754
|
+
path: ['tablesById', _tableId8, 'recordsById', recordId],
|
|
719
755
|
value: undefined
|
|
720
|
-
})), ...this._base.getTableById(
|
|
756
|
+
})), ...this._base.getTableById(_tableId8).views.flatMap(view => {
|
|
721
757
|
var viewDataStore = _recordStore2.getViewDataStore(view.id);
|
|
722
758
|
|
|
723
759
|
if (!viewDataStore.isDataLoaded) {
|
|
@@ -730,10 +766,10 @@ function () {
|
|
|
730
766
|
|
|
731
767
|
case _mutations.MutationTypes.CREATE_MULTIPLE_RECORDS:
|
|
732
768
|
{
|
|
733
|
-
var
|
|
769
|
+
var _tableId9 = mutation.tableId,
|
|
734
770
|
_records2 = mutation.records;
|
|
735
771
|
|
|
736
|
-
var _recordStore3 = this._base.__getRecordStore(
|
|
772
|
+
var _recordStore3 = this._base.__getRecordStore(_tableId9);
|
|
737
773
|
|
|
738
774
|
if (!_recordStore3.isRecordMetadataLoaded) {
|
|
739
775
|
return [];
|
|
@@ -772,7 +808,7 @@ function () {
|
|
|
772
808
|
}
|
|
773
809
|
|
|
774
810
|
return {
|
|
775
|
-
path: ['tablesById',
|
|
811
|
+
path: ['tablesById', _tableId9, 'recordsById', record.id],
|
|
776
812
|
value: {
|
|
777
813
|
id: record.id,
|
|
778
814
|
cellValuesByFieldId: filteredCellValuesByFieldId,
|
|
@@ -780,7 +816,7 @@ function () {
|
|
|
780
816
|
createdTime: new Date().toJSON()
|
|
781
817
|
}
|
|
782
818
|
};
|
|
783
|
-
}), ...this._base.getTableById(
|
|
819
|
+
}), ...this._base.getTableById(_tableId9).views.flatMap(view => {
|
|
784
820
|
var viewDataStore = _recordStore3.getViewDataStore(view.id);
|
|
785
821
|
|
|
786
822
|
if (!viewDataStore.isDataLoaded) {
|
|
@@ -802,6 +838,7 @@ function () {
|
|
|
802
838
|
case _mutations.MutationTypes.CREATE_SINGLE_FIELD:
|
|
803
839
|
case _mutations.MutationTypes.UPDATE_SINGLE_FIELD_CONFIG:
|
|
804
840
|
case _mutations.MutationTypes.UPDATE_SINGLE_FIELD_DESCRIPTION:
|
|
841
|
+
case _mutations.MutationTypes.UPDATE_SINGLE_FIELD_NAME:
|
|
805
842
|
case _mutations.MutationTypes.UPDATE_VIEW_METADATA:
|
|
806
843
|
case _mutations.MutationTypes.CREATE_SINGLE_TABLE:
|
|
807
844
|
{
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -18,6 +18,7 @@ var MutationTypes = Object.freeze({
|
|
|
18
18
|
CREATE_SINGLE_FIELD: 'createSingleField',
|
|
19
19
|
UPDATE_SINGLE_FIELD_CONFIG: 'updateSingleFieldConfig',
|
|
20
20
|
UPDATE_SINGLE_FIELD_DESCRIPTION: 'updateSingleFieldDescription',
|
|
21
|
+
UPDATE_SINGLE_FIELD_NAME: 'updateSingleFieldName',
|
|
21
22
|
CREATE_SINGLE_TABLE: 'createSingleTable',
|
|
22
23
|
UPDATE_VIEW_METADATA: 'updateViewMetadata'
|
|
23
24
|
});
|
|
@@ -48,6 +48,16 @@ declare class Base extends AbstractModel<BaseData, WatchableBaseKey> {
|
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
50
|
get name(): string;
|
|
51
|
+
/**
|
|
52
|
+
* The workspace id of the base.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```js
|
|
56
|
+
* import {base} from '@airtable/blocks';
|
|
57
|
+
* console.log('The workspace id of your base is', base.workspaceId);
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
get workspaceId(): string;
|
|
51
61
|
/**
|
|
52
62
|
* The color of the base.
|
|
53
63
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/models/base.ts"],"names":[],"mappings":"AAAA,4CAA4C,CAAC,MAAM;AACnD,OAAO,EAAC,QAAQ,EAAc,MAAM,eAAe,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAgB,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAoC,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAGjG,OAAO,KAAK,MAAM,SAAS,CA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O,CAAC,EAAE;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAC,GAAG,IAAI,CAAC;QAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B,CAAC,GACH,OAAO;IAIV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACG,gBAAgB,CAClB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAC;QACV,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,CAAC,EAAE;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAC,GAAG,IAAI,CAAC;QAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B,CAAC,GACH,OAAO,CAAC,KAAK,CAAC;IA4BjB;;OAEG;IACH,qBAAqB,IAAI,MAAM;CAsHlC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -168,6 +168,64 @@ declare class Field extends AbstractModel<FieldData, WatchableFieldKey> {
|
|
|
168
168
|
* ```
|
|
169
169
|
*/
|
|
170
170
|
updateOptionsAsync(options: FieldOptions, opts?: UpdateFieldOptionsOpts): Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* Checks whether the current user has permission to perform the given name update.
|
|
173
|
+
*
|
|
174
|
+
* Accepts partial input, in the same format as {@link updateNameAsync}.
|
|
175
|
+
*
|
|
176
|
+
* Returns `{hasPermission: true}` if the current user can update the specified field,
|
|
177
|
+
* `{hasPermission: false, reasonDisplayString: string}` otherwise. `reasonDisplayString` may be
|
|
178
|
+
* used to display an error message to the user.
|
|
179
|
+
*
|
|
180
|
+
* @param name new name for the field
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```js
|
|
184
|
+
* const updateFieldCheckResult = field.checkPermissionsForUpdateName();
|
|
185
|
+
*
|
|
186
|
+
* if (!updateFieldCheckResult.hasPermission) {
|
|
187
|
+
* alert(updateFieldCheckResult.reasonDisplayString);
|
|
188
|
+
* }
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
checkPermissionsForUpdateName(name?: string): PermissionCheckResult;
|
|
192
|
+
/**
|
|
193
|
+
* An alias for `checkPermissionsForUpdateName(options).hasPermission`.
|
|
194
|
+
*
|
|
195
|
+
* Checks whether the current user has permission to perform the name update.
|
|
196
|
+
*
|
|
197
|
+
* Accepts partial input, in the same format as {@link updateNameAsync}.
|
|
198
|
+
*
|
|
199
|
+
* @param name new name for the field
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* ```js
|
|
203
|
+
* const canUpdateField = field.hasPermissionToUpdateName();
|
|
204
|
+
*
|
|
205
|
+
* if (!canUpdateField) {
|
|
206
|
+
* alert('not allowed!');
|
|
207
|
+
* }
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
hasPermissionToUpdateName(name?: string): boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Updates the name for this field.
|
|
213
|
+
*
|
|
214
|
+
* Throws an error if the user does not have permission to update the field, or if an invalid
|
|
215
|
+
* name is provided.
|
|
216
|
+
*
|
|
217
|
+
* This action is asynchronous. Unlike updates to cell values, updates to field name are
|
|
218
|
+
* **not** applied optimistically locally. You must `await` the returned promise before
|
|
219
|
+
* relying on the change in your app.
|
|
220
|
+
*
|
|
221
|
+
* @param name new name for the field
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```js
|
|
225
|
+
* await myTextField.updateNameAsync('My New Name');
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
updateNameAsync(name: string): Promise<void>;
|
|
171
229
|
/**
|
|
172
230
|
* Checks whether the current user has permission to perform the given description update.
|
|
173
231
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/models/field.ts"],"names":[],"mappings":"AAAA,6CAA6C,CAAC,MAAM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;;;;;;;;;OAmBG;IACH,oCAAoC,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,qBAAqB;IASxF;;;;;;;;;;;;;;;;;OAiBG;IACH,gCAAgC,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO;IAItE;;;;;;;;;;;;;;;;;;;OAmBG;IACG,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IASvE;;;;;;;;;;;;OAYG;IACH,IAAI,UAAU,IAAI,OAAO,CAGxB;IACD;;;OAGG;IACH,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;;;;;;;OAQG;IACH,IAAI,WAAW,IAAI,MAAM,GAAG,IAAI,CAE/B;IAID;;;;;;;OAOG;IACH,IAAI,oBAAoB,IAAI,KAAK,CAAC,UAAU,CAAC,CAU5C;IAID;;;;;;;;;;;;;;;;;OAiBG;IACH,qBAAqB,CAAC,UAAU,EAAE,UAAU,GAAG,aAAa,GAAG,OAAO;IAUtE;;;;;;;;;;;;OAYG;IACH,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAwDpD;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linked_records_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/linked_records_query_result.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAE,aAAa,EAAY,MAAM,kBAAkB,CAAC;AAG3E,OAAO,iBAAiB,EAAE,EACtB,6BAA6B,EAEhC,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,eAAO,MAAM,gBAAgB,0BAM5B,CAAC;AAEF,eAAe;AACf,UAAU,4BAA4B;CAAG;AAEzC;;;;;;;;GAQG;AACH,cAAM,wBAAyB,SAAQ,iBAAiB,CAAC,4BAA4B,CAAC;IA2ElF;;;;;;;;OAQG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAYD;;OAEG;IACH,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,CAS7B;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,CAQ3B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAIhC;IAED,kBAAkB;IAClB,KAAK,CACD,IAAI,EAAE,6BAA6B,GAAG,aAAa,CAAC,6BAA6B,CAAC,EAClF,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,6BAA6B,CAAC;IAmBvC,kBAAkB;IAClB,OAAO,CACH,IAAI,EAAE,6BAA6B,GAAG,aAAa,CAAC,6BAA6B,CAAC,EAClF,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,6BAA6B,CAAC;IAqBvC,kBAAkB;IACZ,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAuEpC;;;;OAIG;IACH,IAAI,SAAS,WAEZ;
|
|
1
|
+
{"version":3,"file":"linked_records_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/linked_records_query_result.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAE,aAAa,EAAY,MAAM,kBAAkB,CAAC;AAG3E,OAAO,iBAAiB,EAAE,EACtB,6BAA6B,EAEhC,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,eAAO,MAAM,gBAAgB,0BAM5B,CAAC;AAEF,eAAe;AACf,UAAU,4BAA4B;CAAG;AAEzC;;;;;;;;GAQG;AACH,cAAM,wBAAyB,SAAQ,iBAAiB,CAAC,4BAA4B,CAAC;IA2ElF;;;;;;;;OAQG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAYD;;OAEG;IACH,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,CAS7B;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,CAQ3B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAIhC;IAED,kBAAkB;IAClB,KAAK,CACD,IAAI,EAAE,6BAA6B,GAAG,aAAa,CAAC,6BAA6B,CAAC,EAClF,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,6BAA6B,CAAC;IAmBvC,kBAAkB;IAClB,OAAO,CACH,IAAI,EAAE,6BAA6B,GAAG,aAAa,CAAC,6BAA6B,CAAC,EAClF,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,6BAA6B,CAAC;IAqBvC,kBAAkB;IACZ,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAuEpC;;;;OAIG;IACH,IAAI,SAAS,WAEZ;CAkXJ;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/models/mutations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/models/mutations.ts"],"names":[],"mappings":"AAwtBA,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/types/base.ts"],"names":[],"mappings":"AAAA,4CAA4C,CAAC,MAAM;AACnD,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAC,eAAe,EAAC,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AQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;CAChE"}
|
|
@@ -15,6 +15,7 @@ export declare const MutationTypes: Readonly<{
|
|
|
15
15
|
CREATE_SINGLE_FIELD: "createSingleField";
|
|
16
16
|
UPDATE_SINGLE_FIELD_CONFIG: "updateSingleFieldConfig";
|
|
17
17
|
UPDATE_SINGLE_FIELD_DESCRIPTION: "updateSingleFieldDescription";
|
|
18
|
+
UPDATE_SINGLE_FIELD_NAME: "updateSingleFieldName";
|
|
18
19
|
CREATE_SINGLE_TABLE: "createSingleTable";
|
|
19
20
|
UPDATE_VIEW_METADATA: "updateViewMetadata";
|
|
20
21
|
}>;
|
|
@@ -184,6 +185,28 @@ export interface PartialUpdateSingleFieldDescriptionMutation {
|
|
|
184
185
|
readonly id: FieldId | undefined;
|
|
185
186
|
readonly description: string | null | undefined;
|
|
186
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* The Mutation emitted when the App modifies the name of a {@link Field}.
|
|
190
|
+
*
|
|
191
|
+
* @docsPath testing/mutations/UpdateSingleFieldNameMutation
|
|
192
|
+
*/
|
|
193
|
+
export interface UpdateSingleFieldNameMutation {
|
|
194
|
+
/** This Mutation's [discriminant property](https://www.typescriptlang.org/docs/handbook/2/narrowing.html) */
|
|
195
|
+
readonly type: typeof MutationTypes.UPDATE_SINGLE_FIELD_NAME;
|
|
196
|
+
/** The identifier for the Table in which a Field is being modified */
|
|
197
|
+
readonly tableId: TableId;
|
|
198
|
+
/** The identifier for the Field being modified */
|
|
199
|
+
readonly id: FieldId;
|
|
200
|
+
/** The new name for the Field being updated */
|
|
201
|
+
readonly name: string;
|
|
202
|
+
}
|
|
203
|
+
/** @hidden */
|
|
204
|
+
export interface PartialUpdateSingleFieldNameMutation {
|
|
205
|
+
readonly type: typeof MutationTypes.UPDATE_SINGLE_FIELD_NAME;
|
|
206
|
+
readonly tableId: TableId | undefined;
|
|
207
|
+
readonly id: FieldId | undefined;
|
|
208
|
+
readonly name: string | undefined;
|
|
209
|
+
}
|
|
187
210
|
/**
|
|
188
211
|
* Options that affect the behavior of an `UpdateSingleFieldConfigMutation`
|
|
189
212
|
*/
|
|
@@ -249,9 +272,9 @@ export interface PartialUpdateViewMetadataMutation {
|
|
|
249
272
|
readonly metadata: NormalizedViewMetadata | undefined;
|
|
250
273
|
}
|
|
251
274
|
/** @hidden */
|
|
252
|
-
export declare type Mutation = SetMultipleRecordsCellValuesMutation | DeleteMultipleRecordsMutation | CreateMultipleRecordsMutation | SetMultipleGlobalConfigPathsMutation | CreateSingleFieldMutation | UpdateSingleFieldConfigMutation | UpdateSingleFieldDescriptionMutation | CreateSingleTableMutation | UpdateViewMetadataMutation;
|
|
275
|
+
export declare type Mutation = SetMultipleRecordsCellValuesMutation | DeleteMultipleRecordsMutation | CreateMultipleRecordsMutation | SetMultipleGlobalConfigPathsMutation | CreateSingleFieldMutation | UpdateSingleFieldConfigMutation | UpdateSingleFieldDescriptionMutation | UpdateSingleFieldNameMutation | CreateSingleTableMutation | UpdateViewMetadataMutation;
|
|
253
276
|
/** @hidden */
|
|
254
|
-
export declare type PartialMutation = PartialSetMultipleRecordsCellValuesMutation | PartialDeleteMultipleRecordsMutation | PartialCreateMultipleRecordsMutation | PartialSetMultipleGlobalConfigPathsMutation | PartialCreateSingleFieldMutation | PartialUpdateSingleFieldConfigMutation | PartialUpdateSingleFieldDescriptionMutation | PartialCreateSingleTableMutation | PartialUpdateViewMetadataMutation;
|
|
277
|
+
export declare type PartialMutation = PartialSetMultipleRecordsCellValuesMutation | PartialDeleteMultipleRecordsMutation | PartialCreateMultipleRecordsMutation | PartialSetMultipleGlobalConfigPathsMutation | PartialCreateSingleFieldMutation | PartialUpdateSingleFieldConfigMutation | PartialUpdateSingleFieldDescriptionMutation | PartialUpdateSingleFieldNameMutation | PartialCreateSingleTableMutation | PartialUpdateViewMetadataMutation;
|
|
255
278
|
/** */
|
|
256
279
|
export interface SuccessfulPermissionCheckResult {
|
|
257
280
|
/** */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/types/mutations.ts"],"names":[],"mappings":"AAAA,0CAA0C,CAAC,MAAM;AACjD,OAAO,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAC,eAAe,EAAE,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAChC,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAChC,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAC,QAAQ,EAAC,MAAM,UAAU,CAAC;AAElC,cAAc;AACd,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/types/mutations.ts"],"names":[],"mappings":"AAAA,0CAA0C,CAAC,MAAM;AACjD,OAAO,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAC,eAAe,EAAE,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAChC,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAChC,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAC,QAAQ,EAAC,MAAM,UAAU,CAAC;AAElC,cAAc;AACd,eAAO,MAAM,aAAa;;;;;;;;;;;EAWxB,CAAC;AAEH,cAAc;AACd,oBAAY,YAAY,GAAG,YAAY,CAAC,OAAO,a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,mBAAmB,EAAE,MAAM,CAAC;CAC/B;AAED,iGAAiG;AACjG,oBAAY,qBAAqB,GAC3B,+BAA+B,GAC/B,iCAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixture_data.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/fixture_data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,OAAO,EAAY,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,OAAO,EAAE,SAAS,EAAY,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAe,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAsB,WAAW,EAAC,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"fixture_data.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/fixture_data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,OAAO,EAAY,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,OAAO,EAAE,SAAS,EAAY,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAe,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iD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE;QACR,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CACzC;AAED;;;GAGG;AACH,UAAU,qBAAqB;IAC3B,gEAAgE;IAChE,EAAE,EAAE,QAAQ,CAAC;IACb,iEAAiE;IACjE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAED,gDAAgD;AAChD,UAAU,iBAAiB;IACvB,mDAAmD;IACnD,EAAE,EAAE,QAAQ,CAAC;IACb,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,mBAAmB,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;CACpD"}
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,484 +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.10.2...HEAD)
|
|
13
|
-
|
|
14
|
-
No changes.
|
|
15
|
-
|
|
16
|
-
## [1.10.2](https://github.com/airtable/blocks/compare/@airtable/blocks@1.10.1...@airtable/blocks@1.10.2) - 2022-01-25
|
|
17
|
-
|
|
18
|
-
- Rare invariant failure addressed
|
|
19
|
-
|
|
20
|
-
## [1.10.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.10.0...@airtable/blocks@1.10.1) - 2021-12-22
|
|
21
|
-
|
|
22
|
-
- Update examples for table, view and field URLs.
|
|
23
|
-
- Use `keyof any` instead of `PropertyKey` in type definition to avoid incompatibility with the
|
|
24
|
-
"[keyofStringsOnly](https://www.typescriptlang.org/tsconfig#keyofStringsOnly)" tsconfig option
|
|
25
|
-
|
|
26
|
-
## [1.10.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.9.0...@airtable/blocks@1.10.0) - 2021-11-03
|
|
27
|
-
|
|
28
|
-
- Fix typo in cursor.ts documentation - thanks @m2creates!
|
|
29
|
-
- Add new `calendarDay` icon (and micro variant)
|
|
30
|
-
- Update documentation to include attachment url guidance
|
|
31
|
-
- Update field metadata writes documentation to mention that `null` will be coerced to `''`
|
|
32
|
-
- Fix a bug when unloading data from a `linkedRecordQueryResult` after a table deletion
|
|
33
|
-
- Update `children` prop of `Link` component to be optional
|
|
34
|
-
|
|
35
|
-
## [1.9.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.8.0...@airtable/blocks@1.9.0) - 2021-09-15
|
|
36
|
-
|
|
37
|
-
- Update documentation for `FieldType.CHECKBOX` cell read & write types to be more accurate.
|
|
38
|
-
- Fetching field types & configs is now cached, making it more performant.
|
|
39
|
-
- Field descriptions can now be edited and specified when creating a new field:
|
|
40
|
-
- Added `field.updateDescriptionAsync`.
|
|
41
|
-
- Added optional `description` argument to `table.createFieldAsync`.
|
|
42
|
-
- Added optional `description` property to `field` objects accepted by
|
|
43
|
-
`base.createTableAsync`.
|
|
44
|
-
|
|
45
|
-
## [1.8.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.7.2...@airtable/blocks@1.8.0) - 2021-07-12
|
|
46
|
-
|
|
47
|
-
- Add `opts` argument to `Field.updateOptionsAsync` with `enableSelectFieldChoiceDeletion` opt.
|
|
48
|
-
- Add `prefersSingleRecordLink` to `field.options` for `MULTIPLE_RECORD_LINKS` type fields.
|
|
49
|
-
- Add new timeline icon (and micro variant).
|
|
50
|
-
|
|
51
|
-
## [1.7.2](https://github.com/airtable/blocks/compare/@airtable/blocks@1.7.1...@airtable/blocks@1.7.2) - 2021-05-26
|
|
52
|
-
|
|
53
|
-
- Add `FieldType.EXTERNAL_SYNC_SOURCE`.
|
|
54
|
-
|
|
55
|
-
## [1.7.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.7.0...@airtable/blocks@1.7.1) - 2021-05-21
|
|
56
|
-
|
|
57
|
-
No changes.
|
|
58
|
-
|
|
59
|
-
## [1.7.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.6.0...@airtable/blocks@1.7.0) - 2021-05-13
|
|
60
|
-
|
|
61
|
-
- Add `onBlur` and `onFocus` support to `Input` and `InputSynced` UI components.
|
|
62
|
-
|
|
63
|
-
## [1.6.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.5.1...@airtable/blocks@1.6.0) - 2021-05-12
|
|
64
|
-
|
|
65
|
-
- Add `color` property to `base` to access the background color of the base, as well as the
|
|
66
|
-
`color` watch key
|
|
67
|
-
- Update documentation text for `GlobalConfig` with increased 150kb limit.
|
|
68
|
-
- Add `getMaxRecordsPerTable` to `base`
|
|
69
|
-
|
|
70
|
-
## [1.5.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.5.0...@airtable/blocks@1.5.1) - 2021-03-04
|
|
71
|
-
|
|
72
|
-
No changes.
|
|
73
|
-
|
|
74
|
-
## [1.5.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.4.1...@airtable/blocks@1.5.0) - 2021-02-25
|
|
75
|
-
|
|
76
|
-
- Add type exports for `Cursor` & `Session` to `@airtable/blocks/models`.
|
|
77
|
-
- Add type exports for `GlobalConfig`, `Watchable`, & `Viewport` to `@airtable/blocks/types`.
|
|
78
|
-
- Add `boltList`, `boltListMicro`, `contacts`, `contactsMicro`, `megaphone`, `megaphoneMicro`,
|
|
79
|
-
`shareWithBolt` and `shareWithBoltMicro` icons.
|
|
80
|
-
- Increase spacing between `label` and `description` nodes in `FormField`.
|
|
81
|
-
- Support creating (but not updating) `MULTIPLE_RECORD_LINKS` fields using
|
|
82
|
-
`table.createFieldAsync`.
|
|
83
|
-
- Add `isCancelButtonDisabled` and `isConfirmButtonDisabled` props to `ConfirmationDialog`.
|
|
84
|
-
- Add `config` property to `Field`, which is a new `FieldConfig` discriminated union type that
|
|
85
|
-
provides easier access to field options.
|
|
86
|
-
- Improve type definitions for `getHexForColor` and `getRgbForColor`.
|
|
87
|
-
|
|
88
|
-
## [1.4.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.4.0...@airtable/blocks@1.4.1) - 2021-01-21
|
|
89
|
-
|
|
90
|
-
No changes.
|
|
91
|
-
|
|
92
|
-
## [1.4.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.3.0...@airtable/blocks@1.4.0) - 2021-01-19
|
|
93
|
-
|
|
94
|
-
- **DEPRECATED:** importing the Base's Cursor instance from the main entrypoint, e.g.
|
|
95
|
-
`import {cursor} from '@airtable/blocks';`. Use the `useCursor` React Hook instead.
|
|
96
|
-
- **DEPRECATED:** importing the Base's Session instance from the main entrypoint, e.g.
|
|
97
|
-
`import {session} from '@airtable/blocks';`. Use the `useSession` React Hook instead.
|
|
98
|
-
|
|
99
|
-
## [1.3.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.5...@airtable/blocks@1.3.0) - 2021-01-07
|
|
100
|
-
|
|
101
|
-
- Fix crash when deleting views.
|
|
102
|
-
- Add BaseProvider to allow rendering Components outside of the App's React tree
|
|
103
|
-
|
|
104
|
-
## [1.2.5](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.4...@airtable/blocks@1.2.5) - 2020-12-10
|
|
105
|
-
|
|
106
|
-
No changes.
|
|
107
|
-
|
|
108
|
-
## [1.2.4](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.3...@airtable/blocks@1.2.4) - 2020-12-10
|
|
109
|
-
|
|
110
|
-
No changes.
|
|
111
|
-
|
|
112
|
-
## [1.2.3](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.2...@airtable/blocks@1.2.3) - 2020-12-09
|
|
113
|
-
|
|
114
|
-
- Stopped exporting an internal class that was causing typescript checking to fail on version
|
|
115
|
-
1.2.2
|
|
116
|
-
|
|
117
|
-
## [1.2.2](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.1...@airtable/blocks@1.2.2) - 2020-12-08
|
|
118
|
-
|
|
119
|
-
- Fixed a bug in useRecordActionData that caused it to crash on version 1.2.1
|
|
120
|
-
|
|
121
|
-
## [1.2.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.2.0...@airtable/blocks@1.2.1) - 2020-11-23
|
|
122
|
-
|
|
123
|
-
- Fixed a bug that prevented TableOrViewQueryResult from notifying watchers about the
|
|
124
|
-
creation/deletion of sorted fields.
|
|
125
|
-
- Fixed a bug where deleting and undeleting a table that was already loaded caused the App to
|
|
126
|
-
crash.
|
|
127
|
-
- **DEPRECATED:** importing the UI namespace from the main entrypoint, e.g.
|
|
128
|
-
`import {UI} from '@airtable/blocks';`. Use `import * as UI from '@airtable/blocks/ui/ui';`
|
|
129
|
-
instead.
|
|
130
|
-
- **DEPRECATED:** importing the models namespace from the main entrypoint, e.g.
|
|
131
|
-
`import {models} from '@airtable/blocks';`. Use
|
|
132
|
-
`import * as models from '@airtable/blocks/models/models';` instead.
|
|
133
|
-
|
|
134
|
-
## [1.2.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.1.0...@airtable/blocks@1.2.0) - 2020-10-23
|
|
135
|
-
|
|
136
|
-
- Added `automations` and fixed the SVG path for `personalAuto` in `Icon`.
|
|
137
|
-
- Fixed a bug that caused an App to crash when creating a new table before the App has loaded.
|
|
138
|
-
- Fixed a bug in watching/unwatching keys of LinkedRecordQueryResult models. Watching/unwatching
|
|
139
|
-
`isDataLoaded` no longer affects the model's "loaded" state.
|
|
140
|
-
- Fixed a bug introduced in v1.0.0 in `RecordCard` when rendering a record that has a lookup field
|
|
141
|
-
of an attachment field.
|
|
142
|
-
|
|
143
|
-
## [1.1.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.0.1...@airtable/blocks@1.1.0) - 2020-09-29
|
|
144
|
-
|
|
145
|
-
- **DEPRECATED:** "blocks" as an icon name. Use `<Icon name="apps" .../>` instead.
|
|
146
|
-
- Fixed bugs introduced in v1.0.0 that broke using lookup cell values with
|
|
147
|
-
`Record.getCellValueAsString`, `aggregator.aggregate` and `aggregator.aggregateToString`
|
|
148
|
-
|
|
149
|
-
## [1.0.1](https://github.com/airtable/blocks/compare/@airtable/blocks@1.0.0...@airtable/blocks@1.0.1) - 2020-09-24
|
|
150
|
-
|
|
151
|
-
- Fixed bug where `Select`, `SelectButtons`, and `Synced` variants behaved incorrectly when there
|
|
152
|
-
were multiple items with the same value.
|
|
153
|
-
- Fix a bug using lookup cell values with `<CellRenderer />` introduced in v1.0.0
|
|
154
|
-
|
|
155
|
-
## [1.0.0](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.55...@airtable/blocks@1.0.0) - 2020-09-14
|
|
156
|
-
|
|
157
|
-
- **BREAKING:** The cell value format for lookup fields (`FieldType.MULTIPLE_LOOKUP_VALUES`) is
|
|
158
|
-
now `Array<{linkedRecordId: RecordId, value: CellValue}>`
|
|
159
|
-
- **BREAKING:** Remove `Record.primaryCellValue` and `Record.primaryCellValueAsString`, as well as
|
|
160
|
-
the `primaryCellValue` watchable key on Record. These APIs were deprecated in v0.0.45
|
|
161
|
-
- **BREAKING:** Remove legacy record creation format. All calls to `Table.createRecordAsync` /
|
|
162
|
-
`Table.createRecordsAsync` must define record field mappings under a `fields` key. These APIs
|
|
163
|
-
were deprecated in v0.0.41.
|
|
164
|
-
|
|
165
|
-
## [0.0.55](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.54...@airtable/blocks@0.0.55) - 2020-09-02
|
|
166
|
-
|
|
167
|
-
No changes.
|
|
168
|
-
|
|
169
|
-
## [0.0.54](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.53...@airtable/blocks@0.0.54) - 2020-08-12
|
|
170
|
-
|
|
171
|
-
- Remove `unstable_` prefix from `Field.updateOptionsAsync`, `Table.createFieldAsync`, and
|
|
172
|
-
`Base.createTableAsync`. See
|
|
173
|
-
[Changing base schema](https://airtable.com/developers/blocks/guides/changing-base-schema) for
|
|
174
|
-
full details.
|
|
175
|
-
|
|
176
|
-
## [0.0.53](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.52...@airtable/blocks@0.0.53) - 2020-06-24
|
|
177
|
-
|
|
178
|
-
- Fix a typo in the docs for `globalConfig.setAsync`.
|
|
179
|
-
- Added an explicit `box-sizing: border-box;` to the inner div of ChoiceToken, to prevent
|
|
180
|
-
accidentally inheriting different box-sizing values.
|
|
181
|
-
|
|
182
|
-
## [0.0.52](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.51...@airtable/blocks@0.0.52) - 2020-06-08
|
|
183
|
-
|
|
184
|
-
- Add `FieldType.CREATED_BY`, `FieldType.LAST_MODIFIED_BY`, and `FieldType.BUTTON`.
|
|
185
|
-
- Add record action APIs! Use one in your block to handle "open block" requests from a button
|
|
186
|
-
field.
|
|
187
|
-
- `useRecordActionData`
|
|
188
|
-
- `registerRecordActionDataCallback`
|
|
189
|
-
|
|
190
|
-
## [0.0.51](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.50...@airtable/blocks@0.0.51) - 2020-05-28
|
|
191
|
-
|
|
192
|
-
- Fix a bug introduced in 0.0.48 that caused typechecking errors for blocks using TypeScript.
|
|
193
|
-
|
|
194
|
-
## [0.0.50](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.49...@airtable/blocks@0.0.50) - 2020-05-28
|
|
195
|
-
|
|
196
|
-
No changes.
|
|
197
|
-
|
|
198
|
-
## [0.0.49](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.48...@airtable/blocks@0.0.49) - 2020-05-21
|
|
199
|
-
|
|
200
|
-
- Adds optional `renderInvalidCellValue` prop to `RecordCard` and `CellRenderer` to render a
|
|
201
|
-
component if validation fails.
|
|
202
|
-
|
|
203
|
-
## [0.0.48](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.47...@airtable/blocks@0.0.48) - 2020-04-30
|
|
204
|
-
|
|
205
|
-
No changes.
|
|
206
|
-
|
|
207
|
-
## [0.0.47](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.46...@airtable/blocks@0.0.47) - 2020-04-23
|
|
208
|
-
|
|
209
|
-
- UI components that don't depend on base data can now be used outside of the blocks environment.
|
|
210
|
-
|
|
211
|
-
## [0.0.46](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.45...@airtable/blocks@0.0.46) - 2020-04-16
|
|
212
|
-
|
|
213
|
-
- `FieldType.RICH_TEXT` has been added, which encompasses long text fields with the new rich text
|
|
214
|
-
formatting option enabled. (See Airtable's announcement regarding
|
|
215
|
-
[rich text formatting in long text fields](https://blog.airtable.com/4-workflows-for-rich-text-formatting/))
|
|
216
|
-
- `Switch` and `SwitchSynced` now truncate the label.
|
|
217
|
-
- Fix a bug where `RecordCard` performs the default expand record behavior, even if an `onClick`
|
|
218
|
-
override is supplied. It now properly handles overrides as described in the documentation. This
|
|
219
|
-
fix also applies to `onRecordClick` in `RecordCardList`.
|
|
220
|
-
- Beta: New field and table writes API! You can now create tables and fields and update field
|
|
221
|
-
options.
|
|
222
|
-
- `base.unstable_createTableAsync`
|
|
223
|
-
- `table.unstable_createFieldAsync`
|
|
224
|
-
- `field.unstable_updateOptionsAsync`
|
|
225
|
-
- These APIs are unstable and may have breaking changes in the future.
|
|
226
|
-
- Not all field types are supported at this time. Refer to `FieldType` documentation for
|
|
227
|
-
details.
|
|
228
|
-
|
|
229
|
-
## [0.0.45](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.44...@airtable/blocks@0.0.45) - 2020-03-31
|
|
230
|
-
|
|
231
|
-
- **DEPRECATED:** `record.primaryCellValue` and `record.primaryCellValueAsString`.
|
|
232
|
-
- The `primaryCellValue` watch key on `record` is also deprecated - use the `name` watch key
|
|
233
|
-
instead.
|
|
234
|
-
- Add the following APIs to match the new scripting block:
|
|
235
|
-
- **Convenience model getters.** These are useful when you're working on a block for a
|
|
236
|
-
specific base, but best-practice for more generic blocks is to prefer the existing
|
|
237
|
-
`ById`/`ByName` methods.
|
|
238
|
-
- `base.getCollaboratorIfExists`
|
|
239
|
-
- `base.getCollaborator`
|
|
240
|
-
- `base.getTableIfExists`
|
|
241
|
-
- `base.getTable`
|
|
242
|
-
- `table.getFieldIdExists`
|
|
243
|
-
- `table.getField`
|
|
244
|
-
- `table.getViewIfExists`
|
|
245
|
-
- `table.getView`
|
|
246
|
-
- **Async `select` queries.** For creating UIs from a query, the best practice is still to use
|
|
247
|
-
`useRecords` etc. Directly querying data is useful for one-off data processing though.
|
|
248
|
-
- `table.selectRecordsAsync`
|
|
249
|
-
- `view.selectRecordsAsync`
|
|
250
|
-
- `view.selectMetadataAsync`
|
|
251
|
-
- `record.selectLinkedRecordsFromCellAsync`
|
|
252
|
-
- **`record.name`** replaces `record.primaryCellValueAsString`.
|
|
253
|
-
- Fix some incorrectly redacted internal typescript types
|
|
254
|
-
|
|
255
|
-
## [0.0.44](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.43...@airtable/blocks@0.0.44) - 2020-03-27
|
|
256
|
-
|
|
257
|
-
- `TextButton` now supports including an icon without a label.
|
|
258
|
-
- Properly export the `useSynced` hook.
|
|
259
|
-
- Errors now output model names instead of IDs when available.
|
|
260
|
-
- Fix a positioning bug with `SelectButtons` where unwanted empty space could appear when the
|
|
261
|
-
component is used in a scrollable list.
|
|
262
|
-
|
|
263
|
-
## [0.0.43](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.42...@airtable/blocks@0.0.43) - 2020-02-28
|
|
264
|
-
|
|
265
|
-
- Export the `useSynced` hook for syncing a component to `GlobalConfig`.
|
|
266
|
-
|
|
267
|
-
## [0.0.42](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.41...@airtable/blocks@0.0.42) - 2020-02-10
|
|
268
|
-
|
|
269
|
-
- **BREAKING**: Field type and view type enums are now exported from '@airtable/blocks/models' as
|
|
270
|
-
`FieldType` and `ViewType` (previously `fieldTypes` and `viewTypes`). Relatedly, these types are
|
|
271
|
-
no longer exported from '@airtable/blocks/types', as they can now be referenced from the model
|
|
272
|
-
exports.
|
|
273
|
-
- Updates to record convenience hooks
|
|
274
|
-
- `useRecords` now accepts a `Table` or `View` and optional `RecordQueryResultOpts`. Passing a
|
|
275
|
-
`RecordQueryResult` is still supported.
|
|
276
|
-
- `useRecordIds` now accepts a `Table` or `View` and optional `RecordIdQueryResultOpts`.
|
|
277
|
-
Passing a `RecordQueryResult` is still supported.
|
|
278
|
-
- `useRecordById` now accepts a `Table` or `View` and optional `SingleRecordQueryResultOpts`.
|
|
279
|
-
Passing a `RecordQueryResult` is still supported.
|
|
280
|
-
- Added `cursor.selectedFieldIds` which returns the field IDs that are selected in grid view
|
|
281
|
-
|
|
282
|
-
## [0.0.41](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.40...@airtable/blocks@0.0.41) - 2020-01-27
|
|
283
|
-
|
|
284
|
-
- **BREAKING**: `useWatchable` will now throw an error if the second argument `keys` is
|
|
285
|
-
`undefined`. Previously, this would no-op.
|
|
286
|
-
- Added support for `setActiveTable` and `setActiveView` to the `cursor` API. These can be used to
|
|
287
|
-
manipulate the current table and/or view on the main Airtable page from inside a block.
|
|
288
|
-
- Table.createRecordsAsync now accepts an array of objects containing a `fields` object of field
|
|
289
|
-
\-> cell value mappings, rather an accepting field -> cell value mappings directly. This brings
|
|
290
|
-
its API in line with `updateRecordsAsync` and other Airtable APIs. The old behavior is still
|
|
291
|
-
supported but has been deprecated and will be removed in a future version.
|
|
292
|
-
- Fixed issue where blocks would crash in MS Edge due to a browser bug with `super` method calls.
|
|
293
|
-
- Changed default Tooltip `placementOffsetX` and `placementOffsetY` to `8` pixels. `undefined`.
|
|
294
|
-
Previously, this would no-op.
|
|
295
|
-
- Added default blue `barColor` to `ProgressBar`.
|
|
296
|
-
|
|
297
|
-
## [0.0.40](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.39...@airtable/blocks@0.0.40) - 2020-01-09
|
|
298
|
-
|
|
299
|
-
- Added permission checks that don't require specifying a table to `session`:
|
|
300
|
-
- `session.checkPermissionsForUpdateRecords()`
|
|
301
|
-
- `session.hasPermissionToUpdateRecords()`
|
|
302
|
-
- `session.checkPermissionsForCreateRecords()`
|
|
303
|
-
- `session.hasPermissionToCreateRecords()`
|
|
304
|
-
- `session.checkPermissionsForDeleteRecords()`
|
|
305
|
-
- `session.hasPermissionToDeleteRecords()`
|
|
306
|
-
|
|
307
|
-
## [0.0.39](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.38...@airtable/blocks@0.0.39) - 2019-12-12
|
|
308
|
-
|
|
309
|
-
- Changed the font sizes for the `size` variants of `Select` and `Button`.
|
|
310
|
-
- `useWatchable` now supports single string watch keys being passed in (as well as the existing
|
|
311
|
-
array support)
|
|
312
|
-
- Fixed bug where `shouldAllowPickingNone` didn't work in `FieldPicker` and `FieldPickerSynced`.
|
|
313
|
-
- Updated `fullscreen` and `fullscreenMicro` icons.
|
|
314
|
-
- Updated UI.Button component to better support icon buttons containing no text. An error is now
|
|
315
|
-
logged to the console if you attempt to use a UI.Button component with no text/children and no
|
|
316
|
-
aria-label.
|
|
317
|
-
|
|
318
|
-
## [0.0.36](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.35...@airtable/blocks@0.0.36) - 2019-11-18
|
|
319
|
-
|
|
320
|
-
- Added `table.description` and `field.description`, and `description` watch key on `table` and
|
|
321
|
-
`field`.
|
|
322
|
-
|
|
323
|
-
## [0.0.35](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.34...@airtable/blocks@0.0.35) - 2019-11-11
|
|
324
|
-
|
|
325
|
-
- UI library
|
|
326
|
-
- New API for styling UI components. Each component now exposes a certain set of CSS
|
|
327
|
-
properties as React props. Styling via the `className` and `style` props is still supported
|
|
328
|
-
but is no longer recommended. For more information, see the documentation for
|
|
329
|
-
[style props](https://github.com/Airtable/blocks/blob/master/packages/sdk/docs/api/modules/_airtable_blocks_ui_system__all_style_props.md#allstylesprops).
|
|
330
|
-
- New components:
|
|
331
|
-
- `Text` and `Heading` for typography.
|
|
332
|
-
- `Label` and `FormField` for labeling controls or form fields.
|
|
333
|
-
- `TextButton` for buttons that can be rendered inline with text.
|
|
334
|
-
- **BREAKING**: `Toggle` has been renamed to `Switch`.
|
|
335
|
-
- **BREAKING**: `Button` and `Switch` no longer accept the `theme` prop. Instead, you can
|
|
336
|
-
specify the colors for these components with the `variant` prop.
|
|
337
|
-
- `Link` also supports the `variant` prop, which determines the text color of the link.
|
|
338
|
-
- `Button`, `Input`, `Link`, `SelectButtons`, `Select`, `Switch`, and the model picker
|
|
339
|
-
components can now be resized via the `size` prop (one of `small`, `default`, or `large`).
|
|
340
|
-
- `Button`, `Icon`, `Input`, `Link`, `SelectButtons`, `Select`, `Switch`, and the model picker
|
|
341
|
-
components are now functional components that use the
|
|
342
|
-
[`React.forwardRef`](https://reactjs.org/docs/forwarding-refs.html) API.
|
|
343
|
-
- `SelectButtons` is now keyboard/screenreader accessible.
|
|
344
|
-
- Typescript
|
|
345
|
-
- **BREAKING** The SDK has been migrated from Flow to TypeScript. We no longer provide flow
|
|
346
|
-
type definitions with the release of the SDK. TypeScript definitions are provided instead.
|
|
347
|
-
|
|
348
|
-
## [0.0.34](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.33...@airtable/blocks@0.0.34) - 2019-10-04
|
|
349
|
-
|
|
350
|
-
- Fix a regression where `UI.ConfirmationDialog` would crash the block.
|
|
351
|
-
- Allow passing an array of models to `useWatchable` to watch several models at once.
|
|
352
|
-
- **BREAKING**: `fieldTypes.LOOKUP` is now `fieldTypes.MULTIPLE_LOOKUP_VALUES`. The underlying
|
|
353
|
-
string has also changed from `lookup` to `multipleLookupValues`.
|
|
354
|
-
- Fix a regression where cover images in `UI.RecordCard` would render as `[Object object]`.
|
|
355
|
-
|
|
356
|
-
## [0.0.33](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.32...@airtable/blocks@0.0.33) - 2019-09-26
|
|
357
|
-
|
|
358
|
-
- New settings button helpers: `useSettingsButton`, `settingsButton.show()` and
|
|
359
|
-
`settingsButton.hide()`.
|
|
360
|
-
- **BREAKING**: `settingsButton.isVisible` is no longer settable. Use `settingsButton.show()` and
|
|
361
|
-
`settingsButton.hide()` instead.
|
|
362
|
-
|
|
363
|
-
## [0.0.32](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.31...@airtable/blocks@0.0.32) - 2019-09-20
|
|
364
|
-
|
|
365
|
-
- **BREAKING:** Removed `localStorage` and `sessionStorage` wrappers.
|
|
366
|
-
- Fix a bug where the `value` prop wouldn't get correctly passed through to `Input`
|
|
367
|
-
|
|
368
|
-
## [0.0.31](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.30...@airtable/blocks@0.0.31) - 2019-09-18
|
|
369
|
-
|
|
370
|
-
- New record writes API! You can now create, update, and delete records directly from your block.
|
|
371
|
-
Check out the new
|
|
372
|
-
[writes guide](https://github.com/Airtable/blocks/blob/master/packages/sdk/docs/guide_writes.md)
|
|
373
|
-
for more information.
|
|
374
|
-
- **BREAKING**: several `globalConfig` APIs have changed to be consistent with the new record
|
|
375
|
-
writes & permissions APIs:
|
|
376
|
-
- `globalConfig.set()` has been removed - use the new `globalConfig.setAsync()` method
|
|
377
|
-
instead.
|
|
378
|
-
- `globalConfig.canSet()` has been renamed to `globalConfig.hasPermissionToSet()`.
|
|
379
|
-
- `globalConfig.setPaths()` has been removed - use the new `globalConfig.setPathsAsync()`
|
|
380
|
-
method instead.
|
|
381
|
-
- `globalConfig.canSetPaths()` has been renamed to `globalConfig.hasPermissionToSetPaths()`.
|
|
382
|
-
- **BREAKING:** Remove `models.generateGuid()`. Use an ID generator like
|
|
383
|
-
[`uuid`](https://www.npmjs.com/package/uuid) instead.
|
|
384
|
-
- **BREAKING:** Deprecated `UI.AutocompletePopover`.
|
|
385
|
-
- Upgrade flow to 0.106.3
|
|
386
|
-
- Fix a flow error with `react-window`.
|
|
387
|
-
- `view.selectRecords()` now colors records according to that view by default.
|
|
388
|
-
- Allow passing an array of models to `useLoadable` to load several things at once.
|
|
389
|
-
|
|
390
|
-
## [0.0.30](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.29...@airtable/blocks@0.0.30) - 2019-08-26
|
|
391
|
-
|
|
392
|
-
No changes.
|
|
393
|
-
|
|
394
|
-
## [0.0.29](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.28...@airtable/blocks@0.0.29) - 2019-08-22
|
|
395
|
-
|
|
396
|
-
No changes.
|
|
397
|
-
|
|
398
|
-
## [0.0.28](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.27...@airtable/blocks@0.0.28) - 2019-08-21
|
|
399
|
-
|
|
400
|
-
No changes.
|
|
401
|
-
|
|
402
|
-
## [0.0.27](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.26...@airtable/blocks@0.0.27) - 2019-08-21
|
|
403
|
-
|
|
404
|
-
No changes.
|
|
405
|
-
|
|
406
|
-
## [0.0.26](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.25...@airtable/blocks@0.0.26) - 2019-08-19
|
|
407
|
-
|
|
408
|
-
- UI.RecordCardList: fixed a bug where records weren't expanded by default when clicked.
|
|
409
|
-
|
|
410
|
-
## [0.0.25](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.24...@airtable/blocks@0.0.25) - 2019-08-19
|
|
411
|
-
|
|
412
|
-
- Add Print Records block docs example block
|
|
413
|
-
|
|
414
|
-
## [0.0.24](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.23...@airtable/blocks@0.0.24) - 2019-08-14
|
|
415
|
-
|
|
416
|
-
No changes.
|
|
417
|
-
|
|
418
|
-
## [0.0.23](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.22...@airtable/blocks@0.0.23) - 2019-08-09
|
|
419
|
-
|
|
420
|
-
### Fixed
|
|
421
|
-
|
|
422
|
-
- The `disabled` attribute on `<Select>` components (including model pickers and synced model
|
|
423
|
-
pickers) now correctly disables the element
|
|
424
|
-
|
|
425
|
-
## [0.0.22](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.21...@airtable/blocks@0.0.22) - 2019-07-18
|
|
426
|
-
|
|
427
|
-
No changes.
|
|
428
|
-
|
|
429
|
-
## [0.0.21](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.20...@airtable/blocks@0.0.21) - 2019-07-18
|
|
430
|
-
|
|
431
|
-
No changes.
|
|
432
|
-
|
|
433
|
-
## [0.0.20](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.19...@airtable/blocks@0.0.20) - 2019-07-15
|
|
434
|
-
|
|
435
|
-
### Fixed
|
|
436
|
-
|
|
437
|
-
- A bug with UI.Toggle that made it difficult to style
|
|
438
|
-
|
|
439
|
-
## [0.0.19](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.18...@airtable/blocks@0.0.19) - 2019-07-11
|
|
440
|
-
|
|
441
|
-
No changes.
|
|
442
|
-
|
|
443
|
-
## [0.0.18](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.17...@airtable/blocks@0.0.18) - 2019-07-10
|
|
444
|
-
|
|
445
|
-
- Update documentation links & eslint-plugin-blocks
|
|
446
|
-
|
|
447
|
-
## [0.0.17](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.16...@airtable/blocks@0.0.17) - 2019-07-09
|
|
448
|
-
|
|
449
|
-
No changes.
|
|
450
|
-
|
|
451
|
-
## [0.0.16](https://github.com/airtable/blocks/compare/@airtable/blocks@0.0.15...@airtable/blocks@0.0.16) - 2019-07-05
|
|
452
|
-
|
|
453
|
-
- **BREAKING:** Removed view.visibleFields and view.allFields - use view.selectMetadata instead
|
|
454
|
-
- Added view.selectMetadata() for querying a view's field order and list of visible fields
|
|
455
|
-
|
|
456
|
-
## [0.0.15](https://github.com/airtable/blocks/compare/v0.0.14...@airtable/blocks@0.0.15) - 2019-07-03
|
|
457
|
-
|
|
458
|
-
No changes.
|
|
459
|
-
|
|
460
|
-
## [0.0.14](https://github.com/airtable/blocks/compare/v0.0.13...v0.0.14) - 2019-07-02
|
|
461
|
-
|
|
462
|
-
- **BREAKING:** Removed `currentUser` from `Base` since it is now accessible through `Session`.
|
|
463
|
-
- **BREAKING:** Renamed QueryResult to RecordQueryResult
|
|
464
|
-
- Added base.watch('schema') to get notified when base schema changes.
|
|
465
|
-
- Added Session to expose data about the current user's session.
|
|
466
|
-
- Added globalConfig.watch('\*') to get notified of any global config key change.
|
|
467
|
-
- Added useGlobalConfig() to subscribe to global config changes from a react component.
|
|
468
|
-
|
|
469
|
-
## [0.0.13](https://github.com/airtable/blocks/releases/tag/v0.0.13) - 2019-06-21
|
|
470
|
-
|
|
471
|
-
### Removed
|
|
472
|
-
|
|
473
|
-
- **BREAKING:** Removed `createDataContainer`. Use `useWatchable` or other hooks instead.
|
|
474
|
-
- **BREAKING:** FieldIcon no longer accepts arbitrary props - only those in it's propTypes can be
|
|
475
|
-
used.
|
|
476
|
-
|
|
477
|
-
### Added
|
|
478
|
-
|
|
479
|
-
- This changelog!
|
|
480
|
-
|
|
481
|
-
### Fixed
|
|
482
|
-
|
|
483
|
-
- FieldPicker placeholder typo
|
|
484
|
-
- SVGElement flow error
|