@airtable/blocks 1.14.0 → 1.16.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/field.js +6 -2
- package/dist/cjs/models/table.js +8 -2
- package/dist/cjs/sdk.js +1 -1
- package/dist/cjs/ui/icon.js +4 -7
- package/dist/cjs/ui/icon_config.js +407 -370
- package/dist/types/src/models/field.d.ts +1 -1
- package/dist/types/src/models/field.d.ts.map +1 -1
- package/dist/types/src/models/table.d.ts.map +1 -1
- package/dist/types/src/types/airtable_interface.d.ts +3 -1
- package/dist/types/src/types/airtable_interface.d.ts.map +1 -1
- package/dist/types/src/types/field.d.ts +6 -3
- package/dist/types/src/types/field.d.ts.map +1 -1
- package/dist/types/src/types/mutations.d.ts +14 -0
- package/dist/types/src/types/mutations.d.ts.map +1 -1
- package/dist/types/src/ui/icon.d.ts.map +1 -1
- package/dist/types/src/ui/icon_config.d.ts +243 -176
- package/dist/types/src/ui/icon_config.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/cjs/models/field.js
CHANGED
|
@@ -478,7 +478,7 @@ function (_AbstractModel) {
|
|
|
478
478
|
* "synced" if it's source is from another airtable base or external data source
|
|
479
479
|
* like Google Calendar, Jira, etc..
|
|
480
480
|
*
|
|
481
|
-
*
|
|
481
|
+
* @hidden
|
|
482
482
|
*/
|
|
483
483
|
|
|
484
484
|
}, {
|
|
@@ -530,7 +530,11 @@ function (_AbstractModel) {
|
|
|
530
530
|
value: function convertStringToCellValue(string) {
|
|
531
531
|
var airtableInterface = this._sdk.__airtableInterface;
|
|
532
532
|
var appInterface = this._sdk.__appInterface;
|
|
533
|
-
var cellValue = airtableInterface.fieldTypeProvider.convertStringToCellValue(appInterface, string, this._data
|
|
533
|
+
var cellValue = airtableInterface.fieldTypeProvider.convertStringToCellValue(appInterface, string, this._data, // The opt parseDateCellValueInColumnTimeZone is used here to ensure date string
|
|
534
|
+
// inputs are interpreted correctly according to the `timeZone` of the dateTime field.
|
|
535
|
+
{
|
|
536
|
+
parseDateCellValueInColumnTimeZone: this.type === _field.FieldType.DATE_TIME
|
|
537
|
+
}); // Temporarily bail out of validating computed values (since validation will crash)
|
|
534
538
|
// while we work out if we actually have to validate or not. Ideally we just delete all
|
|
535
539
|
// the validation
|
|
536
540
|
// TODO(emma): delete me or tidy me up
|
package/dist/cjs/models/table.js
CHANGED
|
@@ -942,7 +942,10 @@ function (_AbstractModel) {
|
|
|
942
942
|
return _regenerator.default.awrap(this._sdk.__mutations.applyMutationAsync({
|
|
943
943
|
type: _mutations.MutationTypes.SET_MULTIPLE_RECORDS_CELL_VALUES,
|
|
944
944
|
tableId: this.id,
|
|
945
|
-
records: recordsWithCellValuesByFieldId
|
|
945
|
+
records: recordsWithCellValuesByFieldId,
|
|
946
|
+
opts: {
|
|
947
|
+
parseDateCellValueInColumnTimeZone: true
|
|
948
|
+
}
|
|
946
949
|
}));
|
|
947
950
|
|
|
948
951
|
case 3:
|
|
@@ -1593,7 +1596,10 @@ function (_AbstractModel) {
|
|
|
1593
1596
|
return _regenerator.default.awrap(this._sdk.__mutations.applyMutationAsync({
|
|
1594
1597
|
type: _mutations.MutationTypes.CREATE_MULTIPLE_RECORDS,
|
|
1595
1598
|
tableId: this.id,
|
|
1596
|
-
records: recordsToCreate
|
|
1599
|
+
records: recordsToCreate,
|
|
1600
|
+
opts: {
|
|
1601
|
+
parseDateCellValueInColumnTimeZone: true
|
|
1602
|
+
}
|
|
1597
1603
|
}));
|
|
1598
1604
|
|
|
1599
1605
|
case 3:
|
package/dist/cjs/sdk.js
CHANGED
package/dist/cjs/ui/icon.js
CHANGED
|
@@ -100,11 +100,9 @@ var Icon = (props, ref) => {
|
|
|
100
100
|
var classNameForStyleProps = (0, _use_styled_system.default)(_objectSpread({}, styleProps, {
|
|
101
101
|
width: size,
|
|
102
102
|
height: size
|
|
103
|
-
}), styleParser);
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
var iconName = "".concat(name).concat(isMicro ? 'Micro' : '');
|
|
107
|
-
var pathData = _icon_config.allIconPaths[iconName];
|
|
103
|
+
}), styleParser);
|
|
104
|
+
var phosphorIconName = _icon_config.legacyIconNameToPhosphorIconName[name];
|
|
105
|
+
var pathData = phosphorIconName ? _icon_config.phosphorIconConfig[phosphorIconName] : null;
|
|
108
106
|
|
|
109
107
|
if (!pathData) {
|
|
110
108
|
return null;
|
|
@@ -122,10 +120,9 @@ var Icon = (props, ref) => {
|
|
|
122
120
|
(0, _warning.default)("'".concat(name, "' as an icon name is deprecated. ").concat(alternativeText));
|
|
123
121
|
}
|
|
124
122
|
|
|
125
|
-
var originalSize = isMicro ? 12 : 16;
|
|
126
123
|
return _react.default.createElement("svg", {
|
|
127
124
|
ref: ref,
|
|
128
|
-
viewBox: "0 0
|
|
125
|
+
viewBox: "0 0 16 16" // TODO (stephen): remove tooltip anchor props
|
|
129
126
|
,
|
|
130
127
|
onMouseEnter: onMouseEnter,
|
|
131
128
|
onMouseLeave: onMouseLeave,
|