@airtable/blocks 1.11.0 → 1.11.1-experimental-68738f2-20220526

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 (80) hide show
  1. package/dist/cjs/error_utils.js +27 -17
  2. package/dist/cjs/models/base.js +1 -1
  3. package/dist/cjs/models/cursor.js +4 -6
  4. package/dist/cjs/models/grouped_record_query_result.js +5 -14
  5. package/dist/cjs/models/linked_records_query_result.js +78 -27
  6. package/dist/cjs/models/mutations.js +18 -163
  7. package/dist/cjs/models/query_manager.js +328 -0
  8. package/dist/cjs/models/record.js +310 -55
  9. package/dist/cjs/models/record_query_result.js +4 -1
  10. package/dist/cjs/models/record_store.js +557 -775
  11. package/dist/cjs/models/table.js +6 -6
  12. package/dist/cjs/models/table_or_view_query_result.js +526 -419
  13. package/dist/cjs/models/view_data_store.js +255 -295
  14. package/dist/cjs/private_utils.js +40 -0
  15. package/dist/cjs/sdk.js +12 -2
  16. package/dist/cjs/testing/abstract_mock_airtable_interface.js +57 -11
  17. package/dist/cjs/testing/fixture_data.js +271 -0
  18. package/dist/cjs/testing/mock_base_data_stores.js +891 -0
  19. package/dist/cjs/types/airtable_interface.js +17 -2
  20. package/dist/cjs/types/block_query_spec.js +85 -0
  21. package/dist/cjs/ui/icon_config.js +4 -2
  22. package/dist/cjs/ui/use_records.js +5 -1
  23. package/dist/cjs/unstable_testing_utils.js +61 -1
  24. package/dist/cjs/watchable.js +15 -1
  25. package/dist/types/src/error_utils.d.ts +5 -2
  26. package/dist/types/src/error_utils.d.ts.map +1 -1
  27. package/dist/types/src/models/cursor.d.ts +4 -6
  28. package/dist/types/src/models/cursor.d.ts.map +1 -1
  29. package/dist/types/src/models/grouped_record_query_result.d.ts +3 -3
  30. package/dist/types/src/models/grouped_record_query_result.d.ts.map +1 -1
  31. package/dist/types/src/models/linked_records_query_result.d.ts.map +1 -1
  32. package/dist/types/src/models/mutations.d.ts.map +1 -1
  33. package/dist/types/src/models/query_manager.d.ts +2 -0
  34. package/dist/types/src/models/query_manager.d.ts.map +1 -0
  35. package/dist/types/src/models/record.d.ts +12 -3
  36. package/dist/types/src/models/record.d.ts.map +1 -1
  37. package/dist/types/src/models/record_query_result.d.ts +3 -2
  38. package/dist/types/src/models/record_query_result.d.ts.map +1 -1
  39. package/dist/types/src/models/record_store.d.ts.map +1 -1
  40. package/dist/types/src/models/table_or_view_query_result.d.ts +3 -5
  41. package/dist/types/src/models/table_or_view_query_result.d.ts.map +1 -1
  42. package/dist/types/src/models/view_data_store.d.ts +0 -1
  43. package/dist/types/src/models/view_data_store.d.ts.map +1 -1
  44. package/dist/types/src/models/view_metadata_query_result.d.ts +1 -1
  45. package/dist/types/src/models/view_metadata_query_result.d.ts.map +1 -1
  46. package/dist/types/src/private_utils.d.ts +24 -1
  47. package/dist/types/src/private_utils.d.ts.map +1 -1
  48. package/dist/types/src/sdk.d.ts.map +1 -1
  49. package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts +11 -11
  50. package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts.map +1 -1
  51. package/dist/types/{test/airtable_interface_mocks → src/testing}/fixture_data.d.ts +43 -19
  52. package/dist/types/src/testing/fixture_data.d.ts.map +1 -0
  53. package/dist/types/src/testing/mock_base_data_stores.d.ts +59 -0
  54. package/dist/types/src/testing/mock_base_data_stores.d.ts.map +1 -0
  55. package/dist/types/src/types/airtable_interface.d.ts +59 -20
  56. package/dist/types/src/types/airtable_interface.d.ts.map +1 -1
  57. package/dist/types/src/types/block_query_spec.d.ts +139 -0
  58. package/dist/types/src/types/block_query_spec.d.ts.map +1 -0
  59. package/dist/types/src/types/table.d.ts +0 -2
  60. package/dist/types/src/types/table.d.ts.map +1 -1
  61. package/dist/types/src/types/view.d.ts +3 -8
  62. package/dist/types/src/types/view.d.ts.map +1 -1
  63. package/dist/types/src/ui/icon_config.d.ts +5 -3
  64. package/dist/types/src/ui/icon_config.d.ts.map +1 -1
  65. package/dist/types/src/ui/record_card.d.ts +1 -1
  66. package/dist/types/src/unstable_testing_utils.d.ts +4 -1
  67. package/dist/types/src/unstable_testing_utils.d.ts.map +1 -1
  68. package/dist/types/src/watchable.d.ts.map +1 -1
  69. package/dist/types/test/airtable_interface_mocks/linked_records.d.ts +1 -1
  70. package/dist/types/test/airtable_interface_mocks/linked_records.d.ts.map +1 -1
  71. package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts +19 -12
  72. package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts.map +1 -1
  73. package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts +1 -1
  74. package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts.map +1 -1
  75. package/dist/types/test/test_helpers.d.ts +2 -0
  76. package/dist/types/test/test_helpers.d.ts.map +1 -1
  77. package/dist/types/test/testing/fixture_data.test.d.ts +2 -0
  78. package/dist/types/test/testing/fixture_data.test.d.ts.map +1 -0
  79. package/package.json +3 -2
  80. package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts.map +0 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.BlockRunContextType = void 0;
6
+ exports.BlockQueryCallbackPriority = exports.BlockRunContextType = void 0;
7
7
  // BlockRunContextType, BlockInstallationPageBlockRunContext, ViewBlockRunContext, BlockRunContext
8
8
  // must be kept in sync with block_run_context.tsx in hyperbase repo
9
9
 
@@ -16,4 +16,19 @@ exports.BlockRunContextType = BlockRunContextType;
16
16
  (function (BlockRunContextType) {
17
17
  BlockRunContextType["DASHBOARD_APP"] = "dashboardApp";
18
18
  BlockRunContextType["VIEW"] = "view";
19
- })(BlockRunContextType || (exports.BlockRunContextType = BlockRunContextType = {}));
19
+ })(BlockRunContextType || (exports.BlockRunContextType = BlockRunContextType = {}));
20
+
21
+ /**
22
+ * Callback priority - SDK priority is called before Block Code priority
23
+ *
24
+ * @hidden
25
+ */
26
+ var BlockQueryCallbackPriority;
27
+ /** @hidden */
28
+
29
+ exports.BlockQueryCallbackPriority = BlockQueryCallbackPriority;
30
+
31
+ (function (BlockQueryCallbackPriority) {
32
+ BlockQueryCallbackPriority["SDK"] = "sdk";
33
+ BlockQueryCallbackPriority["BLOCK_CODE"] = "blockCode";
34
+ })(BlockQueryCallbackPriority || (exports.BlockQueryCallbackPriority = BlockQueryCallbackPriority = {}));
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BlockQuerySubscriptionChangeType = exports.BlockFieldSelectionSpecType = exports.BlockQuerySourceType = void 0;
7
+
8
+ /**
9
+ * Specification for data needed by both the Blocks SDK and the blocks iframe
10
+ * that spans across a few repos and run environments:
11
+ * +--------------------+--------------------+--------------------+
12
+ * | airtable.com | blocks iframe | blocks sdk |
13
+ * +--------------------+--------------------+--------------------+
14
+ * | repo: hyperbase | repo: hyperbase | repo: blocks-sdk |
15
+ * | run: airtable.com | run: iframe | run: iframe |
16
+ * +--------------------+--------------------+--------------------+
17
+ *
18
+ * A BlockQuerySpec has a required `source` and one or more `selection`s.
19
+ * The `source` is a top-level concept that defines where the data comes
20
+ * from, while the `selection`s define desired properties from the data.
21
+ * In other words, think of the data as a tree, the `source` defines the
22
+ * root, and the `selection`s define the branches and leaves.
23
+ *
24
+ * Note that instead of a sub-object `source`, we use `source`-prefixed
25
+ * properties for the same effect. This works around a TypeScript limitation
26
+ * of not being able to discriminate between the unions for BlockQuerySpec.
27
+ *
28
+ * The specification will be used for two parts of the data lifecycle:
29
+ * 1. An initial response, via BlockQuerySpecResponseForAirtableInterface
30
+ * 2. Subsequent updates to keep the date updated, via BlockQueryUpdate
31
+ *
32
+ * NOTE: Keep this in sync with the hyperbase repo's block_query_spec.tsx file!
33
+ *
34
+ * @hidden
35
+ */
36
+
37
+ /** @hidden */
38
+
39
+ /** @hidden */
40
+
41
+ /** @hidden */
42
+ var BlockQuerySourceType;
43
+ /** @hidden */
44
+
45
+ exports.BlockQuerySourceType = BlockQuerySourceType;
46
+
47
+ (function (BlockQuerySourceType) {
48
+ BlockQuerySourceType["TABLE"] = "table";
49
+ BlockQuerySourceType["VIEW"] = "view";
50
+ })(BlockQuerySourceType || (exports.BlockQuerySourceType = BlockQuerySourceType = {}));
51
+
52
+ /**
53
+ * The different ways fields can be queried
54
+ *
55
+ * @hidden
56
+ */
57
+ var BlockFieldSelectionSpecType;
58
+ /**
59
+ * Allows querying for all fields, or a specified set of fields. In the latter
60
+ * case, we also allow specifying properties of a record like commentCount and
61
+ * recordCreatedTime that don't have fieldIds (ALL_FIELDS implies including all
62
+ * of these properties).
63
+ *
64
+ * @hidden
65
+ */
66
+
67
+ exports.BlockFieldSelectionSpecType = BlockFieldSelectionSpecType;
68
+
69
+ (function (BlockFieldSelectionSpecType) {
70
+ BlockFieldSelectionSpecType["SPECIFIED_FIELDS"] = "specifiedFields";
71
+ BlockFieldSelectionSpecType["ALL_FIELDS_FROM_TABLE"] = "allFieldsFromTable";
72
+ })(BlockFieldSelectionSpecType || (exports.BlockFieldSelectionSpecType = BlockFieldSelectionSpecType = {}));
73
+
74
+ /** @hidden */
75
+ var BlockQuerySubscriptionChangeType;
76
+ /** @hidden */
77
+
78
+ exports.BlockQuerySubscriptionChangeType = BlockQuerySubscriptionChangeType;
79
+
80
+ (function (BlockQuerySubscriptionChangeType) {
81
+ BlockQuerySubscriptionChangeType["ADDED_RECORD_IDS"] = "addedRecordIds";
82
+ BlockQuerySubscriptionChangeType["REMOVED_RECORD_IDS"] = "removedRecordIds";
83
+ BlockQuerySubscriptionChangeType["MODIFIED_CELL_VALUES_FOR_TABLE"] = "modifiedCellValuesForTable";
84
+ BlockQuerySubscriptionChangeType["CHANGED_COLORS_BY_RECORD_ID_FOR_VIEW"] = "changedColorsByRecordIdForView";
85
+ })(BlockQuerySubscriptionChangeType || (exports.BlockQuerySubscriptionChangeType = BlockQuerySubscriptionChangeType = {}));
@@ -39,7 +39,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
39
39
  // In the UI kit we need more specific types to allow proper autocomplete and prop types.
40
40
  // To achieve this we run the original `iconConfig` object from Hyperbase through an utility.
41
41
  // You can find the utility here: https://codesandbox.io/s/winter-sound-f4p2l?fontsize=14
42
- var iconNamesArray = ['android', 'apple', 'apps', 'ascending', 'attachment', 'automations', 'autonumber', 'barcode', 'bell', 'blocks', 'bold', 'bolt', 'boltList', 'book', 'calendar', 'calendarDay', 'caret', 'chart', 'chat', 'check', 'checkbox', 'checkboxChecked', 'checkboxUnchecked', 'checklist', 'chevronDown', 'chevronLeft', 'chevronRight', 'chevronUp', 'clipboard', 'code', 'cog', 'collapse', 'collapseSidebar', 'contacts', 'count', 'count1', 'cube', 'cursor', 'day', 'dayAuto', 'dedent', 'descending', 'dollar', 'down', 'download', 'dragHandle', 'drive', 'duplicate', 'edit', 'envelope', 'envelope1', 'expand', 'expand1', 'expandSidebar', 'feed', 'file', 'filter', 'flag', 'form', 'formula', 'fullscreen', 'gallery', 'gantt', 'gift', 'grid', 'grid1', 'group', 'heart', 'help', 'hide', 'hide1', 'history', 'home', 'hyperlink', 'hyperlinkCancel', 'indent', 'info', 'italic', 'kanban', 'laptop', 'left', 'lightbulb', 'link', 'link1', 'lock', 'logout', 'lookup', 'mapPin', 'markdown', 'megaphone', 'menu', 'minus', 'mobile', 'multicollaborator', 'multiselect', 'number', 'ol', 'overflow', 'paint', 'paragraph', 'paragraph1', 'pause', 'percent', 'personal', 'personalAuto', 'phone', 'pivot', 'play', 'plus', 'plusFilled', 'premium', 'print', 'public', 'publish', 'quote', 'quote1', 'radio', 'radioSelected', 'redo', 'redo1', 'richText', 'right', 'rollup', 'rollup1', 'rowHeightSmall', 'rowHeightMedium', 'rowHeightLarge', 'rowHeightExtraLarge', 'search', 'select', 'selectCaret', 'settings', 'shapes', 'share', 'share1', 'shareWithBolt', 'show', 'show1', 'slack', 'smiley', 'sort', 'stack', 'star', 'strikethrough', 'switcher', 'tabs', 'team', 'teamLocked', 'text', 'thumbsUp', 'time', 'timeline', 'toggle', 'trash', 'twitter', 'ul', 'underline', 'undo', 'up', 'upload', 'video', 'view', 'warning', 'windows', 'x'];
42
+ var iconNamesArray = ['android', 'apple', 'apps', 'ascending', 'attachment', 'automations', 'autonumber', 'barcode', 'bell', 'blocks', 'bold', 'bolt', 'boltList', 'book', 'calendar', 'calendarDay', 'caret', 'chart', 'chat', 'check', 'checkbox', 'checkboxChecked', 'checkboxUnchecked', 'checklist', 'chevronDown', 'chevronLeft', 'chevronRight', 'chevronUp', 'clipboard', 'code', 'cog', 'collapse', 'collapseSidebar', 'contacts', 'count', 'count1', 'cube', 'cursor', 'day', 'dayAuto', 'dedent', 'descending', 'dollar', 'down', 'download', 'dragHandle', 'drive', 'duplicate', 'edit', 'envelope', 'envelope1', 'expand', 'expand1', 'expandSidebar', 'feed', 'file', 'filter', 'flag', 'form', 'formula', 'fullscreen', 'gallery', 'gantt', 'gift', 'grid', 'grid1', 'group', 'heart', 'help', 'hide', 'hide1', 'history', 'home', 'hyperlink', 'hyperlinkCancel', 'indent', 'info', 'italic', 'kanban', 'laptop', 'left', 'lightbulb', 'link', 'link1', 'lock', 'logout', 'lookup', 'mapPin', 'markdown', 'megaphone', 'menu', 'minus', 'mobile', 'multicollaborator', 'multiselect', 'number', 'ol', 'overflow', 'overlay', 'paint', 'paragraph', 'paragraph1', 'pause', 'percent', 'personal', 'personalAuto', 'phone', 'pivot', 'play', 'plus', 'plusFilled', 'premium', 'print', 'public', 'publish', 'quote', 'quote1', 'radio', 'radioSelected', 'redo', 'redo1', 'richText', 'right', 'rollup', 'rollup1', 'rowHeightSmall', 'rowHeightMedium', 'rowHeightLarge', 'rowHeightExtraLarge', 'search', 'select', 'selectCaret', 'settings', 'shapes', 'share', 'share1', 'shareWithBolt', 'show', 'show1', 'slack', 'smiley', 'sort', 'stack', 'star', 'strikethrough', 'switcher', 'tabs', 'team', 'teamLocked', 'text', 'thumbsUp', 'time', 'timeline', 'toggle', 'trash', 'twitter', 'ul', 'underline', 'undo', 'up', 'upload', 'video', 'view', 'warning', 'windows', 'x'];
43
43
  exports.iconNamesArray = iconNamesArray;
44
44
  var iconNames = (0, _private_utils.createEnum)(...iconNamesArray);
45
45
  exports.iconNames = iconNames;
@@ -53,7 +53,7 @@ var deprecatedIconNameToReplacementName = new Map([['blocks', 'apps']]);
53
53
  exports.deprecatedIconNameToReplacementName = deprecatedIconNameToReplacementName;
54
54
  var iconNamePropType = (0, _private_utils.createPropTypeFromEnum)(iconNames);
55
55
  exports.iconNamePropType = iconNamePropType;
56
- var microIconNamesArray = ['androidMicro', 'appleMicro', 'appsMicro', 'ascendingMicro', 'attachmentMicro', 'automationsMicro', 'autonumberMicro', 'barcodeMicro', 'bellMicro', 'blocksMicro', 'boldMicro', 'boltMicro', 'boltListMicro', 'bookMicro', 'calendarMicro', 'calendarDayMicro', 'caretMicro', 'chartMicro', 'chatMicro', 'checkMicro', 'checkboxCheckedMicro', 'checkboxMicro', 'checkboxUncheckedMicro', 'checklistMicro', 'chevronDownMicro', 'chevronLeftMicro', 'chevronRightMicro', 'chevronUpMicro', 'clipboardMicro', 'codeMicro', 'cogMicro', 'collapseMicro', 'collapseSidebarMicro', 'contactsMicro', 'countMicro', 'count1Micro', 'cubeMicro', 'cursorMicro', 'dayMicro', 'dayAutoMicro', 'dedentMicro', 'descendingMicro', 'dollarMicro', 'downMicro', 'downloadMicro', 'dragHandleMicro', 'driveMicro', 'duplicateMicro', 'editMicro', 'envelopeMicro', 'envelope1Micro', 'expandMicro', 'expand1Micro', 'expandSidebarMicro', 'feedMicro', 'fileMicro', 'filterMicro', 'flagMicro', 'formMicro', 'formulaMicro', 'fullscreenMicro', 'galleryMicro', 'ganttMicro', 'giftMicro', 'gridMicro', 'grid1Micro', 'groupMicro', 'heartMicro', 'helpMicro', 'hideMicro', 'hide1Micro', 'historyMicro', 'homeMicro', 'hyperlinkMicro', 'hyperlinkCancelMicro', 'indentMicro', 'infoMicro', 'italicMicro', 'kanbanMicro', 'laptopMicro', 'leftMicro', 'lightbulbMicro', 'link1Micro', 'linkMicro', 'lockMicro', 'logoutMicro', 'lookupMicro', 'mapPinMicro', 'markdownMicro', 'megaphoneMicro', 'menuMicro', 'minusMicro', 'mobileMicro', 'multicollaboratorMicro', 'multiselectMicro', 'numberMicro', 'olMicro', 'overflowMicro', 'paintMicro', 'paragraphMicro', 'paragraph1Micro', 'pauseMicro', 'percentMicro', 'personalMicro', 'personalAutoMicro', 'phoneMicro', 'pivotMicro', 'playMicro', 'plusFilledMicro', 'plusMicro', 'premiumMicro', 'printMicro', 'publicMicro', 'publishMicro', 'quoteMicro', 'quote1Micro', 'radioMicro', 'radioSelectedMicro', 'redoMicro', 'redo1Micro', 'richTextMicro', 'rightMicro', 'rollupMicro', 'rollup1Micro', 'rowHeightSmallMicro', 'rowHeightMediumMicro', 'rowHeightLargeMicro', 'rowHeightExtraLargeMicro', 'searchMicro', 'selectMicro', 'selectCaretMicro', 'settingsMicro', 'shapesMicro', 'share1Micro', 'shareMicro', 'showMicro', 'show1Micro', 'slackMicro', 'smileyMicro', 'sortMicro', 'stackMicro', 'starMicro', 'strikethroughMicro', 'switcherMicro', 'tabsMicro', 'teamMicro', 'teamLockedMicro', 'textMicro', 'thumbsUpMicro', 'timeMicro', 'timelineMicro', 'toggleMicro', 'trashMicro', 'twitterMicro', 'ulMicro', 'underlineMicro', 'undoMicro', 'upMicro', 'uploadMicro', 'videoMicro', 'viewMicro', 'warningMicro', 'windowsMicro', 'xMicro'];
56
+ var microIconNamesArray = ['androidMicro', 'appleMicro', 'appsMicro', 'ascendingMicro', 'attachmentMicro', 'automationsMicro', 'autonumberMicro', 'barcodeMicro', 'bellMicro', 'blocksMicro', 'boldMicro', 'boltMicro', 'boltListMicro', 'bookMicro', 'calendarMicro', 'calendarDayMicro', 'caretMicro', 'chartMicro', 'chatMicro', 'checkMicro', 'checkboxCheckedMicro', 'checkboxMicro', 'checkboxUncheckedMicro', 'checklistMicro', 'chevronDownMicro', 'chevronLeftMicro', 'chevronRightMicro', 'chevronUpMicro', 'clipboardMicro', 'codeMicro', 'cogMicro', 'collapseMicro', 'collapseSidebarMicro', 'contactsMicro', 'countMicro', 'count1Micro', 'cubeMicro', 'cursorMicro', 'dayMicro', 'dayAutoMicro', 'dedentMicro', 'descendingMicro', 'dollarMicro', 'downMicro', 'downloadMicro', 'dragHandleMicro', 'driveMicro', 'duplicateMicro', 'editMicro', 'envelopeMicro', 'envelope1Micro', 'expandMicro', 'expand1Micro', 'expandSidebarMicro', 'feedMicro', 'fileMicro', 'filterMicro', 'flagMicro', 'formMicro', 'formulaMicro', 'fullscreenMicro', 'galleryMicro', 'ganttMicro', 'giftMicro', 'gridMicro', 'grid1Micro', 'groupMicro', 'heartMicro', 'helpMicro', 'hideMicro', 'hide1Micro', 'historyMicro', 'homeMicro', 'hyperlinkMicro', 'hyperlinkCancelMicro', 'indentMicro', 'infoMicro', 'italicMicro', 'kanbanMicro', 'laptopMicro', 'leftMicro', 'lightbulbMicro', 'link1Micro', 'linkMicro', 'lockMicro', 'logoutMicro', 'lookupMicro', 'mapPinMicro', 'markdownMicro', 'megaphoneMicro', 'menuMicro', 'minusMicro', 'mobileMicro', 'multicollaboratorMicro', 'multiselectMicro', 'numberMicro', 'olMicro', 'overflowMicro', 'overlayMicro', 'paintMicro', 'paragraphMicro', 'paragraph1Micro', 'pauseMicro', 'percentMicro', 'personalMicro', 'personalAutoMicro', 'phoneMicro', 'pivotMicro', 'playMicro', 'plusFilledMicro', 'plusMicro', 'premiumMicro', 'printMicro', 'publicMicro', 'publishMicro', 'quoteMicro', 'quote1Micro', 'radioMicro', 'radioSelectedMicro', 'redoMicro', 'redo1Micro', 'richTextMicro', 'rightMicro', 'rollupMicro', 'rollup1Micro', 'rowHeightSmallMicro', 'rowHeightMediumMicro', 'rowHeightLargeMicro', 'rowHeightExtraLargeMicro', 'searchMicro', 'selectMicro', 'selectCaretMicro', 'settingsMicro', 'shapesMicro', 'share1Micro', 'shareMicro', 'showMicro', 'show1Micro', 'slackMicro', 'smileyMicro', 'sortMicro', 'stackMicro', 'starMicro', 'strikethroughMicro', 'switcherMicro', 'tabsMicro', 'teamMicro', 'teamLockedMicro', 'textMicro', 'thumbsUpMicro', 'timeMicro', 'timelineMicro', 'toggleMicro', 'trashMicro', 'twitterMicro', 'ulMicro', 'underlineMicro', 'undoMicro', 'upMicro', 'uploadMicro', 'videoMicro', 'viewMicro', 'warningMicro', 'windowsMicro', 'xMicro'];
57
57
  var microIconNames = (0, _private_utils.createEnum)(...microIconNamesArray);
58
58
  /** @hidden */
59
59
 
@@ -159,6 +159,7 @@ var iconPaths = Object.freeze({
159
159
  [iconNames.number]: 'M4,10 L4,6.06298828 L2.01023277,6.06298828 C1.44124014,6.06298828 0.979980469,5.60514432 0.979980469,5.03149414 C0.979980469,4.46181566 1.446147,4 2.01023277,4 L4,4 L4,2.04301188 C4,1.50175979 4.43942184,1.06298828 4.98999023,1.06298828 C5.53674674,1.06298828 5.97998047,1.51091265 5.97998047,2.04301188 L5.97998047,4 L10.0200195,4 L10.0200195,2.04301188 C10.0200195,1.50175979 10.4594414,1.06298828 11.0100098,1.06298828 C11.5567663,1.06298828 12,1.51091265 12,2.04301188 L12,4 L13.9605924,4 C14.5295851,4 14.9908447,4.45784396 14.9908447,5.03149414 C14.9908447,5.60117262 14.5246782,6.06298828 13.9605924,6.06298828 L12,6.06298828 L12,10 L13.9605924,10 C14.5295851,10 14.9908447,10.457844 14.9908447,11.0314941 C14.9908447,11.6011726 14.5246782,12.0629883 13.9605924,12.0629883 L12,12.0629883 L12,14.0199764 C12,14.5612285 11.5605782,15 11.0100098,15 C10.4632533,15 10.0200195,14.5520756 10.0200195,14.0199764 L10.0200195,12.0629883 L5.97998047,12.0629883 L5.97998047,14.0199764 C5.97998047,14.5612285 5.54055863,15 4.98999023,15 C4.44323373,15 4,14.5520756 4,14.0199764 L4,12.0629883 L2.01023277,12.0629883 C1.44124014,12.0629883 0.979980469,11.6051443 0.979980469,11.0314941 C0.979980469,10.4618157 1.446147,10 2.01023277,10 L4,10 Z M5.97998047,10 L10.0200195,10 L10.0200195,6.06298828 L5.97998047,6.06298828 L5.97998047,10 Z',
160
160
  [iconNames.ol]: 'M5.59790039,3 C5.59790039,2.44771525 6.04963376,2 6.59472604,2 L13.0031744,2 C13.553706,2 14,2.44386482 14,3 C14,3.55228475 13.5482666,4 13.0031744,4 L6.59472604,4 C6.04419443,4 5.59790039,3.55613518 5.59790039,3 Z M5.59790039,8 C5.59790039,7.44771525 6.04963376,7 6.59472604,7 L13.0031744,7 C13.553706,7 14,7.44386482 14,8 C14,8.55228475 13.5482666,9 13.0031744,9 L6.59472604,9 C6.04419443,9 5.59790039,8.55613518 5.59790039,8 Z M5.59790039,13 C5.59790039,12.4477153 6.04963376,12 6.59472604,12 L13.0031744,12 C13.553706,12 14,12.4438648 14,13 C14,13.5522847 13.5482666,14 13.0031744,14 L6.59472604,14 C6.04419443,14 5.59790039,13.5561352 5.59790039,13 Z M3.47645621,7.50400204 C3.53705703,7.43789206 3.63071283,7.26159878 3.63071283,7.14590631 C3.63071283,6.92553971 3.48196538,6.74373727 3.23405295,6.74373727 C2.9585947,6.74373727 2.78230143,6.90350305 2.78230143,7.14590631 L2.78230143,7.23956212 C2.78230143,7.30016293 2.73271894,7.34974542 2.67211813,7.34974542 L2.14874745,7.34974542 C2.08814664,7.34974542 2.03856415,7.30016293 2.03856415,7.23956212 L2.03856415,7.15141548 C2.03856415,6.50684318 2.56744399,6 3.21201629,6 C3.86209776,6 4.3744501,6.50684318 4.3744501,7.15141548 C4.3744501,7.45441955 4.23672098,7.7464053 4.03288187,7.96677189 L2.99715886,9.06309572 C2.96410387,9.09615071 2.9585947,9.17327902 3.05225051,9.17327902 L4.26977597,9.17327902 C4.33037678,9.17327902 4.37995927,9.22286151 4.37995927,9.28346232 L4.37995927,9.80683299 C4.37995927,9.86743381 4.33037678,9.91701629 4.26977597,9.91701629 L2.1101833,9.91701629 C2.04958248,9.91701629 2,9.86743381 2,9.80683299 L2,9.15675153 C2,9.07411405 2.02754582,9.04105906 2.04958248,9.0190224 L3.47645621,7.50400204 Z M3.22717304,14.2381791 C3.51332998,14.2381791 3.70593561,14.0675855 3.70593561,13.7814286 C3.70593561,13.4952716 3.51332998,13.3246781 3.22717304,13.3246781 L3.16113682,13.3246781 C3.10060362,13.3246781 3.05107646,13.2751509 3.05107646,13.2146177 L3.05107646,12.697334 C3.05107646,12.6368008 3.10060362,12.5872736 3.16113682,12.5872736 L3.22717304,12.5872736 C3.48031187,12.5872736 3.65640845,12.4221831 3.65640845,12.1690443 C3.65640845,11.9214085 3.48031187,11.7618209 3.22717304,11.7618209 C2.97953722,11.7618209 2.79793763,11.9214085 2.79793763,12.1690443 L2.79793763,12.2515895 C2.79793763,12.3121227 2.74841046,12.3616499 2.68787726,12.3616499 L2.15958753,12.3616499 C2.09905433,12.3616499 2.04952716,12.3121227 2.04952716,12.2515895 L2.04952716,12.1690443 C2.04952716,11.5251911 2.58331992,11.0134105 3.22717304,11.0134105 C3.87652918,11.0134105 4.3993159,11.5251911 4.3993159,12.1690443 C4.3993159,12.4441952 4.27274648,12.70834 4.10765594,12.8899396 C4.07463783,12.9229577 4.07463783,12.9614789 4.10765594,12.988994 C4.32227364,13.1650905 4.45434608,13.4787626 4.45434608,13.7814286 C4.45434608,14.4582998 3.90404427,14.9865895 3.22717304,14.9865895 C2.55030181,14.9865895 2,14.4582998 2,13.7814286 L2,13.7263984 C2,13.6658652 2.04952716,13.616338 2.11006036,13.616338 L2.6383501,13.616338 C2.6988833,13.616338 2.74841046,13.6658652 2.74841046,13.7263984 L2.74841046,13.7814286 C2.74841046,14.0675855 2.93551308,14.2381791 3.22717304,14.2381791 Z M2.95787879,4.12853535 L2.95787879,2.17424242 C2.95787879,2.10267677 2.88631313,2.09717172 2.85328283,2.13020202 L2.18717172,2.75227273 C2.12111111,2.81833333 2,2.77429293 2,2.66419192 L2,2.13570707 C2,2.04762626 2.0110101,1.97606061 2.08808081,1.89348485 L2.72666667,1.20535354 C2.77621212,1.15030303 2.86429293,1.07323232 3.00191919,1.07323232 L3.6129798,1.07323232 C3.67353535,1.07323232 3.72308081,1.12277778 3.72308081,1.18333333 L3.72308081,4.12853535 C3.72308081,4.16156566 3.74510101,4.18358586 3.77813131,4.18358586 L4.38919192,4.18358586 C4.44974747,4.18358586 4.49929293,4.23313131 4.49929293,4.29368687 L4.49929293,4.81666667 C4.49929293,4.87722222 4.44974747,4.92676768 4.38919192,4.92676768 L2.13212121,4.92676768 C2.07156566,4.92676768 2.0220202,4.87722222 2.0220202,4.81666667 L2.0220202,4.29368687 C2.0220202,4.23313131 2.07156566,4.18358586 2.13212121,4.18358586 L2.90282828,4.18358586 C2.93585859,4.18358586 2.95787879,4.16156566 2.95787879,4.12853535 Z',
161
161
  [iconNames.overflow]: 'M3,6 C4.105,6 5,6.895 5,8 C5,9.105 4.105,10 3,10 C1.895,10 1,9.105 1,8 C1,6.895 1.895,6 3,6 Z M8,6 C9.105,6 10,6.895 10,8 C10,9.105 9.105,10 8,10 C6.895,10 6,9.105 6,8 C6,6.895 6.895,6 8,6 Z M13,6 C14.105,6 15,6.895 15,8 C15,9.105 14.105,10 13,10 C11.895,10 11,9.105 11,8 C11,6.895 11.895,6 13,6 Z',
162
+ [iconNames.overlay]: 'M8 8C8.733 8 9.333 8.6 9.333 9.333 9.333 9.333 9.333 13.333 9.333 13.333 9.333 14.067 8.733 14.667 8 14.667 8 14.667 2.667 14.667 2.667 14.667 1.933 14.667 1.333 14.067 1.333 13.333 1.333 13.333 1.333 9.333 1.333 9.333 1.333 8.6 1.933 8 2.667 8 2.667 8 8 8 8 8ZM5.333 4C5.333 4 5.333 5.333 5.333 5.333 5.333 6.067 4.733 6.667 4 6.667 3.267 6.667 2.667 6.067 2.667 5.333 2.667 5.333 2.667 3.333 2.667 3.333 2.667 2.227 3.56 1.333 4.667 1.333 4.667 1.333 12.667 1.333 12.667 1.333 13.773 1.333 14.667 2.227 14.667 3.333 14.667 3.333 14.667 11.333 14.667 11.333 14.667 12.44 13.773 13.333 12.667 13.333 12.667 13.333 12 13.333 12 13.333 11.267 13.333 10.667 12.733 10.667 12 10.667 11.267 11.267 10.667 12 10.667 12 10.667 12 4 12 4 12 4 5.333 4 5.333 4Z',
162
163
  [iconNames.paint]: 'M5.071 3H3.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3.086a1 1 0 0 1 .707.293l.228.228a1 1 0 0 1 .257.186l5.657 5.657a1 1 0 0 1 0 1.414l-5.657 5.657a1 1 0 0 1-1.414 0L.707 8.778a1 1 0 0 1 0-1.414L5.071 3zm2.707.778a1 1 0 0 0-1.414 0L3.071 7.071 11 7 7.778 3.778zm5.972 10.186c-.69 0-1.25-.56-1.25-1.25 0-.417.342-1.322 1.026-2.714a.25.25 0 0 1 .448 0C14.658 11.392 15 12.297 15 12.714c0 .69-.56 1.25-1.25 1.25z',
163
164
  [iconNames.paragraph]: 'M.063 8.502l2.816-7.04c.1-.249.41-.462.689-.462h.267c.282 0 .586.207.689.463l2.815 7.039c.1.25-.04.462-.319.462h-.84a.36.36 0 0 1-.327-.234l-.398-1.195a.731.731 0 0 0-.659-.482h-2.19c-.268 0-.57.216-.658.482L1.549 8.73a.364.364 0 0 1-.327.234h-.84c-.282 0-.42-.207-.319-.462zm2.552-3.193c-.104.26.03.47.303.47h1.566c.272 0 .408-.21.304-.47l-.719-1.795c-.203-.509-.535-.505-.737 0L2.615 5.31zM8 8c0-.552.453-1 .997-1h6.006c.55 0 .997.444.997 1 0 .552-.453 1-.997 1H8.997A.996.996 0 0 1 8 8zm0-3c0-.552.444-1 1-1h3c.552 0 1 .444 1 1 0 .552-.444 1-1 1H9c-.552 0-1-.444-1-1zm-8 6c0-.552.449-1 1.007-1h12.986c.556 0 1.007.444 1.007 1 0 .552-.449 1-1.007 1H1.007A1.001 1.001 0 0 1 0 11zm0 3a1 1 0 0 1 .999-1H12a1 1 0 1 1 0 2H1A.997.997 0 0 1 0 14z',
164
165
  [iconNames.paragraph1]: 'M7 13.5C7 13.7761 7.22386 14 7.5 14H8.5C8.77614 14 9 13.7761 9 13.5V2.5C9 2.22386 8.77614 2 8.5 2H6C3.79086 2 2 3.79086 2 6C2 8.20914 3.79086 10 6 10H7V13.5Z M10 13.5C10 13.7761 10.2239 14 10.5 14H11.5C11.7761 14 12 13.7761 12 13.5V2.5C12 2.22386 11.7761 2 11.5 2H10.5C10.2239 2 10 2.22386 10 2.5V13.5Z',
@@ -326,6 +327,7 @@ var microIconPaths = Object.freeze({
326
327
  [microIconNames.numberMicro]: 'M3.02001953,7 L3.02001953,5 L1.99539757,5 C1.44565467,5 1,4.55613518 1,4 C1,3.44771525 1.4556644,3 1.99539757,3 L3.02001953,3 L3.02001953,1.63502908 C3.02001953,1.08650905 3.46388435,0.641845703 4.02001953,0.641845703 C4.57230428,0.641845703 5.02001953,1.08692265 5.02001953,1.63502908 L5.02001953,3 L7.02001953,3 L7.02001953,1.63502908 C7.02001953,1.08650905 7.46388435,0.641845703 8.02001953,0.641845703 C8.57230428,0.641845703 9.02001953,1.08692265 9.02001953,1.63502908 L9.02001953,3 L10.0046024,3 C10.5543453,3 11,3.44386482 11,4 C11,4.55228475 10.5443356,5 10.0046024,5 L9.02001953,5 L9.02001953,7 L10.0046024,7 C10.5543453,7 11,7.44386482 11,8 C11,8.55228475 10.5443356,9 10.0046024,9 L9.02001953,9 L9.02001953,10.0068166 C9.02001953,10.5553367 8.57615471,11 8.02001953,11 C7.46773478,11 7.02001953,10.5549231 7.02001953,10.0068166 L7.02001953,9 L5.02001953,9 L5.02001953,10.0068166 C5.02001953,10.5553367 4.57615471,11 4.02001953,11 C3.46773478,11 3.02001953,10.5549231 3.02001953,10.0068166 L3.02001953,9 L1.99539757,9 C1.44565467,9 1,8.55613518 1,8 C1,7.44771525 1.4556644,7 1.99539757,7 L3.02001953,7 Z M5.02001953,7 L7.02001953,7 L7.02001953,5 L5.02001953,5 L5.02001953,7 Z',
327
328
  [microIconNames.olMicro]: 'M5,2 C5,1.44771525 5.45277405,1 5.9928529,1 L8.9133971,1 C9.46173462,1 9.90625,1.44386482 9.90625,2 C9.90625,2.55228475 9.45347595,3 8.9133971,3 L5.9928529,3 C5.44451538,3 5,2.55613518 5,2 Z M5,6 C5,5.44771525 5.45277405,5 5.9928529,5 L8.9133971,5 C9.46173462,5 9.90625,5.44386482 9.90625,6 C9.90625,6.55228475 9.45347595,7 8.9133971,7 L5.9928529,7 C5.44451538,7 5,6.55613518 5,6 Z M5,10 C5,9.44771525 5.45277405,9 5.9928529,9 L8.9133971,9 C9.46173462,9 9.90625,9.44386482 9.90625,10 C9.90625,10.5522847 9.45347595,11 8.9133971,11 L5.9928529,11 C5.44451538,11 5,10.5561352 5,10 Z M3.072,5.092 C3.116,5.044 3.184,4.916 3.184,4.832 C3.184,4.672 3.076,4.54 2.896,4.54 C2.696,4.54 2.568,4.656 2.568,4.832 L2.568,4.9 C2.568,4.944 2.532,4.98 2.488,4.98 L2.108,4.98 C2.064,4.98 2.028,4.944 2.028,4.9 L2.028,4.836 C2.028,4.368 2.412,4 2.88,4 C3.352,4 3.724,4.368 3.724,4.836 C3.724,5.056 3.624,5.268 3.476,5.428 L2.724,6.224 C2.7,6.248 2.696,6.304 2.764,6.304 L3.648,6.304 C3.692,6.304 3.728,6.34 3.728,6.384 L3.728,6.764 C3.728,6.808 3.692,6.844 3.648,6.844 L2.08,6.844 C2.036,6.844 2,6.808 2,6.764 L2,6.292 C2,6.232 2.02,6.208 2.036,6.192 L3.072,5.092 Z M3.24,10.012 C3.24,9.804 3.1,9.68 2.892,9.68 L2.844,9.68 C2.8,9.68 2.764,9.644 2.764,9.6 L2.764,9.224 C2.764,9.18 2.8,9.144 2.844,9.144 L2.892,9.144 C3.076,9.144 3.204,9.024 3.204,8.84 C3.204,8.66 3.076,8.544 2.892,8.544 C2.712,8.544 2.58,8.66 2.58,8.84 L2.58,8.9 C2.58,8.944 2.544,8.98 2.5,8.98 L2.116,8.98 C2.072,8.98 2.036,8.944 2.036,8.9 L2.036,8.84 C2.036,8.372 2.424,8 2.892,8 C3.364,8 3.744,8.372 3.744,8.84 C3.744,9.04 3.652,9.232 3.532,9.364 C3.508,9.388 3.508,9.416 3.532,9.436 C3.688,9.564 3.784,9.792 3.784,10.012 C3.784,10.504 3.384,10.888 2.892,10.888 C2.4,10.888 2,10.504 2,10.012 L2,9.972 C2,9.928 2.036,9.892 2.08,9.892 L2.464,9.892 C2.508,9.892 2.544,9.928 2.544,9.972 L2.544,10.012 C2.544,10.22 2.68,10.344 2.892,10.344 C3.1,10.344 3.24,10.22 3.24,10.012 Z M2.696,2.22 L2.696,0.8 C2.696,0.748 2.644,0.744 2.62,0.768 L2.136,1.22 C2.088,1.268 2,1.236 2,1.156 L2,0.772 C2,0.708 2.008,0.656 2.064,0.596 L2.528,0.096 C2.564,0.056 2.628,0 2.728,0 L3.172,0 C3.216,0 3.252,0.036 3.252,0.08 L3.252,2.22 C3.252,2.244 3.268,2.26 3.292,2.26 L3.736,2.26 C3.78,2.26 3.816,2.296 3.816,2.34 L3.816,2.72 C3.816,2.764 3.78,2.8 3.736,2.8 L2.096,2.8 C2.052,2.8 2.016,2.764 2.016,2.72 L2.016,2.34 C2.016,2.296 2.052,2.26 2.096,2.26 L2.656,2.26 C2.68,2.26 2.696,2.244 2.696,2.22 Z',
328
329
  [microIconNames.overflowMicro]: 'M10.5,8 C9.67157288,8 9,7.32842712 9,6.5 C9,5.67157288 9.67157288,5 10.5,5 C11.3284271,5 12,5.67157288 12,6.5 C12,7.32842712 11.3284271,8 10.5,8 Z M6,8 C5.17157288,8 4.5,7.32842712 4.5,6.5 C4.5,5.67157288 5.17157288,5 6,5 C6.82842712,5 7.5,5.67157288 7.5,6.5 C7.5,7.32842712 6.82842712,8 6,8 Z M1.5,8 C0.671572875,8 0,7.32842712 0,6.5 C0,5.67157288 0.671572875,5 1.5,5 C2.32842712,5 3,5.67157288 3,6.5 C3,7.32842712 2.32842712,8 1.5,8 Z',
330
+ [microIconNames.overlayMicro]: 'M 6.00,6.00 C 6.55,6.00 7.00,6.45 7.00,7.00 7.00,7.00 7.00,10.00 7.00,10.00 7.00,10.55 6.55,11.00 6.00,11.00 6.00,11.00 2.00,11.00 2.00,11.00 1.45,11.00 1.00,10.55 1.00,10.00 1.00,10.00 1.00,7.00 1.00,7.00 1.00,6.45 1.45,6.00 2.00,6.00 2.00,6.00 6.00,6.00 6.00,6.00 Z M 4.00,3.00 C 4.00,3.00 4.00,4.00 4.00,4.00 4.00,4.55 3.55,5.00 3.00,5.00 2.45,5.00 2.00,4.55 2.00,4.00 2.00,4.00 2.00,2.50 2.00,2.50 2.00,1.67 2.67,1.00 3.50,1.00 3.50,1.00 9.50,1.00 9.50,1.00 10.33,1.00 11.00,1.67 11.00,2.50 11.00,2.50 11.00,8.50 11.00,8.50 11.00,9.33 10.33,10.00 9.50,10.00 9.50,10.00 9.00,10.00 9.00,10.00 8.45,10.00 8.00,9.55 8.00,9.00 8.00,8.45 8.45,8.00 9.00,8.00 9.00,8.00 9.00,3.00 9.00,3.00 9.00,3.00 4.00,3.00 4.00,3.00 Z',
329
331
  [microIconNames.paintMicro]: 'M5.475.475l4.828 4.828a.5.5 0 0 1 0 .707l-4.621 4.622a.5.5 0 0 1-.707 0L.357 6.014a.5.5 0 0 1 .003-.71L3.728 2H2.5a.5.5 0 0 1-.5-.5V.828a.5.5 0 0 1 .5-.5h2.621a.5.5 0 0 1 .354.147zm.197 2.197a.5.5 0 0 0-.697-.01L2.5 5H8L5.672 2.672zm4.828 7.5a1 1 0 0 1-1-1c0-.325.258-1.018.775-2.08a.25.25 0 0 1 .45 0c.517 1.062.775 1.755.775 2.08a1 1 0 0 1-1 1z',
330
332
  [microIconNames.paragraphMicro]: 'M.09 5.53L2.115.47a.79.79 0 0 1 .69-.47H2.76c.28 0 .587.21.69.47l2.024 5.06c.108.27-.036.47-.314.47h-.443a.37.37 0 0 1-.334-.238l-.244-.73c-.086-.26-.385-.472-.666-.472H2.091a.737.737 0 0 0-.666.472l-.243.73A.382.382 0 0 1 .848 6H.404c-.27 0-.417-.21-.313-.47zm1.917-2.393c-.102.256.036.463.32.463h.91c.28 0 .423-.205.32-.463l-.445-1.111c-.182-.456-.48-.451-.66 0l-.445 1.111zM0 8c0-.552.456-1 1.002-1h9.996a.999.999 0 1 1 0 2H1.002A.999.999 0 0 1 0 8zm7-3a1 1 0 0 1 1.01-1h1.98a1 1 0 1 1 0 2H8.01C7.451 6 7 5.556 7 5zm-7 6c0-.552.453-1 .997-1h6.006c.55 0 .997.444.997 1 0 .552-.453 1-.997 1H.997A.996.996 0 0 1 0 11z',
331
333
  [microIconNames.paragraph1Micro]: 'M5.25 10.125C5.25 10.3321 5.41789 10.5 5.625 10.5H6.375C6.58211 10.5 6.75 10.3321 6.75 10.125V1.875C6.75 1.66789 6.58211 1.5 6.375 1.5H4.5C2.84315 1.5 1.5 2.84315 1.5 4.5C1.5 6.15685 2.84315 7.5 4.5 7.5H5.25V10.125Z M7.5 10.125C7.5 10.3321 7.66789 10.5 7.875 10.5H8.625C8.83211 10.5 9 10.3321 9 10.125V1.875C9 1.66789 8.83211 1.5 8.625 1.5H7.875C7.66789 1.5 7.5 1.66789 7.5 1.875V10.125Z',
@@ -4,6 +4,10 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
4
4
 
5
5
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
6
 
7
+ require("core-js/modules/es.array.iterator");
8
+
9
+ require("core-js/modules/web.dom-collections.iterator");
10
+
7
11
  Object.defineProperty(exports, "__esModule", {
8
12
  value: true
9
13
  });
@@ -104,7 +108,7 @@ function useRecordIds(tableOrViewOrQueryResult, opts) {
104
108
  var queryResult = _useUnwatchedRecordQueryResult(tableOrViewOrQueryResult, 'useRecordIds', generatedOpts);
105
109
 
106
110
  (0, _use_watchable.default)(queryResult, ['recordIds']);
107
- return queryResult ? queryResult.recordIds : null;
111
+ return queryResult ? [...queryResult.recordIds] : null;
108
112
  }
109
113
  /** */
110
114
 
@@ -53,6 +53,36 @@ Object.defineProperty(exports, "PartialViewData", {
53
53
  return _airtable_interface.PartialViewData;
54
54
  }
55
55
  });
56
+ Object.defineProperty(exports, "BlockQuerySubscriptionOptions", {
57
+ enumerable: true,
58
+ get: function get() {
59
+ return _airtable_interface.BlockQuerySubscriptionOptions;
60
+ }
61
+ });
62
+ Object.defineProperty(exports, "BlockQuerySpec", {
63
+ enumerable: true,
64
+ get: function get() {
65
+ return _block_query_spec.BlockQuerySpec;
66
+ }
67
+ });
68
+ Object.defineProperty(exports, "BlockQueryId", {
69
+ enumerable: true,
70
+ get: function get() {
71
+ return _block_query_spec.BlockQueryId;
72
+ }
73
+ });
74
+ Object.defineProperty(exports, "QuerySpecsResponse", {
75
+ enumerable: true,
76
+ get: function get() {
77
+ return _block_query_spec.QuerySpecsResponse;
78
+ }
79
+ });
80
+ Object.defineProperty(exports, "BlockQuerySubscriptionOnChangeCallback", {
81
+ enumerable: true,
82
+ get: function get() {
83
+ return _block_query_spec.BlockQuerySubscriptionOnChangeCallback;
84
+ }
85
+ });
56
86
  Object.defineProperty(exports, "RecordData", {
57
87
  enumerable: true,
58
88
  get: function get() {
@@ -137,6 +167,30 @@ Object.defineProperty(exports, "AbstractMockAirtableInterface", {
137
167
  return _abstract_mock_airtable_interface.AbstractMockAirtableInterface;
138
168
  }
139
169
  });
170
+ Object.defineProperty(exports, "FixtureData", {
171
+ enumerable: true,
172
+ get: function get() {
173
+ return _fixture_data.FixtureData;
174
+ }
175
+ });
176
+ Object.defineProperty(exports, "convertFixtureDataToSdkInitData", {
177
+ enumerable: true,
178
+ get: function get() {
179
+ return _fixture_data.convertFixtureDataToSdkInitData;
180
+ }
181
+ });
182
+ Object.defineProperty(exports, "MockBaseDataStore", {
183
+ enumerable: true,
184
+ get: function get() {
185
+ return _mock_base_data_stores.MockBaseDataStore;
186
+ }
187
+ });
188
+ Object.defineProperty(exports, "TestRecordStoreForTable", {
189
+ enumerable: true,
190
+ get: function get() {
191
+ return _mock_base_data_stores.TestRecordStoreForTable;
192
+ }
193
+ });
140
194
 
141
195
  var _base = require("./types/base");
142
196
 
@@ -144,6 +198,8 @@ var _mutations = require("./types/mutations");
144
198
 
145
199
  var _airtable_interface = require("./types/airtable_interface");
146
200
 
201
+ var _block_query_spec = require("./types/block_query_spec");
202
+
147
203
  var _record = require("./types/record");
148
204
 
149
205
  var _cursor = require("./types/cursor");
@@ -160,4 +216,8 @@ var _backend_fetch_types = require("./types/backend_fetch_types");
160
216
 
161
217
  var _sdk = _interopRequireDefault(require("./sdk"));
162
218
 
163
- var _abstract_mock_airtable_interface = require("./testing/abstract_mock_airtable_interface");
219
+ var _abstract_mock_airtable_interface = require("./testing/abstract_mock_airtable_interface");
220
+
221
+ var _fixture_data = require("./testing/fixture_data");
222
+
223
+ var _mock_base_data_stores = require("./testing/mock_base_data_stores");
@@ -84,6 +84,17 @@ function () {
84
84
  key: "__getWatchableKey",
85
85
  value: function __getWatchableKey() {
86
86
  return "".concat(this._watchableId, " ").concat(this._changeCount);
87
+ } // See above comment as to why changeCount needs to change when a mutation occurs (useSubscription)
88
+ // So this should be called whenever the model mutably changes
89
+
90
+ /**
91
+ * @internal
92
+ */
93
+
94
+ }, {
95
+ key: "__incrementOnChangeCount",
96
+ value: function __incrementOnChangeCount() {
97
+ this._changeCount += 1;
87
98
  }
88
99
  /**
89
100
  * Helper method to get only the valid watchable keys - or throw if a key is invalid
@@ -209,6 +220,8 @@ function () {
209
220
  }, {
210
221
  key: "unwatch",
211
222
  value: function unwatch(keys, callback, context) {
223
+ // We warn instead of throw here because we used to warn instead of throw and don't
224
+ // want to make a breaking change.
212
225
  var validKeys = this._getWatchableValidKeysOrThrow(keys, 'unwatch', true);
213
226
 
214
227
  var _iteratorNormalCompletion3 = true;
@@ -256,7 +269,8 @@ function () {
256
269
  }, {
257
270
  key: "_onChange",
258
271
  value: function _onChange(key) {
259
- this._changeCount += 1;
272
+ this.__incrementOnChangeCount();
273
+
260
274
  var watchers = this._changeWatchersByKey[key];
261
275
 
262
276
  if (watchers) {
@@ -3,11 +3,14 @@
3
3
  */
4
4
  export declare function spawnError(errorMessageFormat: string, ...errorMessageArgs: ReadonlyArray<unknown>): Error;
5
5
  /**
6
- * Logs an error to Rollbar
6
+ * Logs an error to Sentry. This is currently unused while the SDK is in the experimental status,
7
+ * but we leave the definition here for future usage needs.
7
8
  *
8
9
  * @hidden
9
10
  */
10
- export declare function logErrorToRollbar(errorMessageFormat: string, ...errorMessageArgs: ReadonlyArray<unknown>): void;
11
+ export declare function logErrorToSentry(errorMessage: string, metadata?: {
12
+ [key: string]: unknown;
13
+ }): void;
11
14
  /**
12
15
  * An alternative to facebook's invariant that's safe to use with base data
13
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"error_utils.d.ts","sourceRoot":"","sources":["../../../src/error_utils.ts"],"names":[],"mappings":"AAsCA;;GAEG;AACH,wBAAgB,UAAU,CACtB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,gBAAgB,EAAE,aAAa,CAAC,OAAO,CAAC,SAO9C;AAGD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC7B,kBAAkB,EAAE,MAAM,EAC1B,GAAG,gBAAgB,EAAE,aAAa,CAAC,OAAO,CAAC,QAO9C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACrB,SAAS,EAAE,OAAO,EAClB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,GACpC,OAAO,CAAC,SAAS,CAQnB"}
1
+ {"version":3,"file":"error_utils.d.ts","sourceRoot":"","sources":["../../../src/error_utils.ts"],"names":[],"mappings":"AAsCA;;GAEG;AACH,wBAAgB,UAAU,CACtB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,gBAAgB,EAAE,aAAa,CAAC,OAAO,CAAC,SAO9C;AAGD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAC,QAazF;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACrB,SAAS,EAAE,OAAO,EAClB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,GACpC,OAAO,CAAC,SAAS,CAQnB"}
@@ -127,17 +127,15 @@ declare class Cursor extends AbstractModelWithAsyncData<CursorData, WatchableCur
127
127
  */
128
128
  get activeViewId(): ViewId | null;
129
129
  /**
130
- * Sets the specified table to active in the Airtable UI. If the apps pane is fullscreen, the
131
- * table will still be set as active, but the apps pane will continue to be displayed
132
- * fullscreen.
130
+ * Sets the specified table to active in the Airtable UI. If the app installation or apps pane
131
+ * is fullscreen, fullscreen mode will be exited.
133
132
  *
134
133
  * @param tableOrTableId The target table or table ID to set as active in the Airtable main page.
135
134
  */
136
135
  setActiveTable(tableOrTableId: Table | TableId): void;
137
136
  /**
138
- * Sets the specified view (and corresponding table) to active in the Airtable UI. If the apps
139
- * pane is fullscreen, the view will still be set as active, but the apps pane will continue
140
- * to be displayed fullscreen.
137
+ * Sets the specified view (and corresponding table) to active in the Airtable UI. If the app
138
+ * installation or apps pane is fullscreen, fullscreen mode will be exited.
141
139
  *
142
140
  * @param tableOrTableId The table or table ID that the target view belongs to.
143
141
  * @param viewOrViewId The target view or view ID to set as active in the Airtable main page.
@@ -1 +1 @@
1
- {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../../src/models/cursor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAuB,YAAY,EAAE,SAAS,EAAC,MAAM,kBAAk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AAQ,CAAC,CAKtC;IACD;;;;;;;OAOG;IACH,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAW5D;;;;;;;;OAQG;IACH,IAAI,aAAa,IAAI,OAAO,GAAG,IAAI,CAElC;IACD;;;;;;;;;OASG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAEhC;IACD;;;;;OAKG;IACH,cAAc,CAAC,cAAc,EAAE,KAAK,GAAG,OAAO,GAAG,IAAI;IAIrD;;;;;;OAMG;IACH,aAAa,CAAC,cAAc,EAAE,KAAK,GAAG,OAAO,EAAE,YAAY,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI;CA+EpF;AAED,eAAe,MAAM,CAAC"}
@@ -9,7 +9,7 @@ import Field from './field';
9
9
  /** @hidden */
10
10
  interface GroupedRecordQueryResultData {
11
11
  groupData: GroupData;
12
- groupLevels: Array<NormalizedGroupLevel>;
12
+ groupLevels: ReadonlyArray<NormalizedGroupLevel>;
13
13
  }
14
14
  /**
15
15
  * Represents a group of records returned from a group query. See {@link RecordQueryResult} for main
@@ -22,7 +22,7 @@ interface GroupedRecordQueryResultData {
22
22
  * @hidden
23
23
  */
24
24
  declare class GroupedRecordQueryResult extends RecordQueryResult<GroupedRecordQueryResultData> {
25
- _orderedRecordIds: Array<RecordId> | null;
25
+ _orderedRecordIds: ReadonlyArray<RecordId> | null;
26
26
  /**
27
27
  * Gets children groups of this group (if any exist)
28
28
  */
@@ -40,7 +40,7 @@ declare class GroupedRecordQueryResult extends RecordQueryResult<GroupedRecordQu
40
40
  * This returns all recordIds of all children groups (in grouped order).
41
41
  * Watchable.
42
42
  */
43
- get recordIds(): Array<RecordId>;
43
+ get recordIds(): ReadonlyArray<RecordId>;
44
44
  /**
45
45
  * The fields that were used to create the parent RecordQueryResult that created this GroupedRecordQueryResult.
46
46
  * This is separate from the field/fieldId property - which is the field this grouping is based upon.
@@ -1 +1 @@
1
- {"version":3,"file":"grouped_record_query_result.d.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A6B,CAAC;IAQvC,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;IAIvC,kBAAkB;IACZ,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAsEpC,kBAAkB;IAClB,IAAI,YAAY,IAAI,OAAO,CAE1B;CA6BJ;AAED,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"grouped_record_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/grouped_record_query_result.ts"],"names":[],"mappings":"AAAA,yDAAyD,CAAC,MAAM;AAChE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAE,aAAa,EAAY,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AACjE,OAAO,iBAAiB,EAAE,EACtB,6BAA6B,EAEhC,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,MAAM,SAAS,CAAC;AAI5B,cAAc;AAGd,UAAU,4BAA4B;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;CACpD;AAED;;;;;;;;;GASG;AACH,cAAM,wBAAyB,SAAQ,iBAAiB,CAAC,4BAA4B,CAAC;IA2BlF,iBAAiB,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAQ;IAwCzD;;OAEG;IACH,IAAI,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAEnD;IAOD;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,KAAK,CAEjB;IAmDD;;;;OAIG;IACH,IAAI,SAAS,IAAI,aAAa,CAAC,QAAQ,CAAC,CAQvC;IAED;;;;;OAKG;IACH,IAAI,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAGhC;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;IAOvC,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;IAIvC,kBAAkB;IACZ,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAsDpC,kBAAkB;IAClB,IAAI,YAAY,IAAI,OAAO,CAE1B;CA6BJ;AAED,eAAe,wBAAwB,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;CAkXJ;AAED,eAAe,wBAAwB,CAAC"}
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;AAU3E,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;IA6ElF;;;;;;;;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;IAoFpC;;;;OAIG;IACH,IAAI,SAAS,WAEZ;CAkZJ;AAED,eAAe,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/models/mutations.ts"],"names":[],"mappings":"AAwtBA,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/models/mutations.ts"],"names":[],"mappings":"AA0mBA,eAAe,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=query_manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query_manager.d.ts","sourceRoot":"","sources":["../../../../src/models/query_manager.ts"],"names":[],"mappings":""}
@@ -1,9 +1,8 @@
1
1
  /** @module @airtable/blocks/models: Record */ /** */
2
2
  import { Color } from '../colors';
3
- import { RecordData } from '../types/record';
4
3
  import { FieldId } from '../types/field';
5
4
  import { ViewId } from '../types/view';
6
- import { ObjectValues } from '../private_utils';
5
+ import { ObjectValues, FlowAnyObject, FlowAnyFunction } from '../private_utils';
7
6
  import AbstractModel from './abstract_model';
8
7
  import Field from './field';
9
8
  import View from './view';
@@ -23,6 +22,12 @@ declare const WatchableRecordKeys: Readonly<{
23
22
  * - `'colorInView:' + someViewId`
24
23
  */
25
24
  declare type WatchableRecordKey = ObjectValues<typeof WatchableRecordKeys> | string;
25
+ /**
26
+ * TODO: (#proj-blocks-sdk-record-limits) Record should probably not be an AbstractModel,
27
+ * in the meantime it will return true if it's loaded, throwing/returning null
28
+ * if it's not loaded (returning null / throwing is how AbstractModel works).
29
+ */
30
+ declare type RecordStoreIsLoaded = true;
26
31
  /**
27
32
  * Model class representing a record in a table.
28
33
  *
@@ -31,7 +36,7 @@ declare type WatchableRecordKey = ObjectValues<typeof WatchableRecordKeys> | str
31
36
  *
32
37
  * @docsPath models/Record
33
38
  */
34
- declare class Record extends AbstractModel<RecordData, WatchableRecordKey> {
39
+ declare class Record extends AbstractModel<RecordStoreIsLoaded, WatchableRecordKey> {
35
40
  /**
36
41
  * Gets the cell value of the given field for this record.
37
42
  *
@@ -172,6 +177,10 @@ declare class Record extends AbstractModel<RecordData, WatchableRecordKey> {
172
177
  * ```
173
178
  */
174
179
  get createdTime(): Date;
180
+ /** @inheritdoc */
181
+ watch(keys: WatchableRecordKey | ReadonlyArray<WatchableRecordKey>, callbackForRegistration: FlowAnyFunction, context?: FlowAnyObject | null): Array<WatchableRecordKey>;
182
+ /** @inheritdoc */
183
+ unwatch(keys: WatchableRecordKey | ReadonlyArray<WatchableRecordKey>, callbackForRegistration: FlowAnyFunction, context?: FlowAnyObject | null): Array<WatchableRecordKey>;
175
184
  }
176
185
  export default Record;
177
186
  //# sourceMappingURL=record.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../src/models/record.ts"],"names":[],"mappings":"AAAA,8CAA8C,CAAC,MA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Ae,EACxC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,kBAAkB,CAAC;IA2C5B,kBAAkB;IAClB,OAAO,CACH,IAAI,EAAE,kBAAkB,GAAG,aAAa,CAAC,kBAAkB,CAAC,EAC5D,uBAAuB,EAAE,eAAe,EACxC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,kBAAkB,CAAC;CAsC/B;AAED,eAAe,MAAM,CAAC"}
@@ -7,7 +7,8 @@ import AbstractModelWithAsyncData from './abstract_model_with_async_data';
7
7
  import Field from './field';
8
8
  import Record from './record';
9
9
  import { RecordColorMode } from './record_coloring';
10
- declare const WatchableRecordQueryResultKeys: Readonly<{
10
+ /** @hidden */
11
+ export declare const WatchableRecordQueryResultKeys: Readonly<{
11
12
  records: "records";
12
13
  recordIds: "recordIds";
13
14
  cellValues: "cellValues";
@@ -256,7 +257,7 @@ declare abstract class RecordQueryResult<DataType = {}> extends AbstractModelWit
256
257
  * Throws if data is not loaded yet.
257
258
  * Can be watched.
258
259
  */
259
- abstract get recordIds(): Array<RecordId>;
260
+ abstract get recordIds(): ReadonlyArray<RecordId>;
260
261
  /**
261
262
  * The fields that were used to create this QueryResult.
262
263
  * Null if fields were not specified, which means the QueryResult
@@ -1 +1 @@
1
- {"version":3,"file":"record_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/record_query_result.ts"],"names":[],"mappings":"AAAA,yDAAyD,CAAC,MAAM;AAChE,OAAe,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAExC,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAY,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAIH,YAAY,EAGZ,eAAe,EACf,aAAa,EAChB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,0BAA0B,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO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O,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;CAoK1C;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"record_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/record_query_result.ts"],"names":[],"mappings":"AAAA,yDAAyD,CAAC,MAAM;AAChE,OAAe,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAExC,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAY,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAIH,YAAY,EAGZ,eAAe,EACf,aAAa,EAChB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,0BAA0B,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAIH,eAAe,EAClB,MAAM,mBAAmB,CAAC;AAE3B,cAAc;AACd,eAAO,MAAM,8BAA8B;;;;;;;;EAQzC,CAAC;AAIH;;;;;;;;GAQG;AACH,oBAAY,6BAA6B,GACnC,YAAY,CAAC,OAAO,8BAA8B,CAAC,GACnD,MAAM,CAAC;AAEb,MAAM;AACN,UAAU,UAAU;IAChB,wCAAwC;IACxC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;IAChC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC9B;AAED,cAAc;AACd,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC,wCAAwC;IACxC,KAAK,EAAE,KAAK,GAAG,OAAO,GA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;;OAIG;IACH,IAAI,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,CAM3B;IAED;;;;;OAKG;IACH,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI;IASxD;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM;IAiBzC;;;;;OAKG;IACH,SAAS,CAAC,gBAAgB,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO;IAMvD;;;;;;OAMG;IACH,cAAc,CAAC,gBAAgB,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI;IAsCjE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,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;IAUvC;;;;;;;;;;;;;OAaG;IACH,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;CAoK1C;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"record_store.d.ts","sourceRoot":"","sources":["../../../../src/models/record_store.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,wBAAwB;;;;EAInC,CAAC"}
1
+ {"version":3,"file":"record_store.d.ts","sourceRoot":"","sources":["../../../../src/models/record_store.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,wBAAwB;;;;EAInC,CAAC"}
@@ -1,14 +1,11 @@
1
1
  import { FlowAnyObject, FlowAnyFunction } from '../private_utils';
2
- import { NormalizedGroupLevel } from '../types/airtable_interface';
3
2
  import RecordQueryResult, { WatchableRecordQueryResultKey } from './record_query_result';
4
3
  import Field from './field';
5
4
  import GroupedRecordQueryResult from './grouped_record_query_result';
6
5
  import { GroupLevels } from './view_metadata_query_result';
7
6
  /** @hidden */
8
7
  interface TableOrViewQueryResultData {
9
- recordIds: Array<string> | null;
10
- groups: Array<GroupedRecordQueryResult> | null;
11
- groupLevels: Array<NormalizedGroupLevel> | null;
8
+ recordIds: ReadonlyArray<string> | null;
12
9
  }
13
10
  /**
14
11
  * Represents a set of records directly from a view or table. See {@link RecordQueryResult} for main
@@ -33,7 +30,7 @@ declare class TableOrViewQueryResult extends RecordQueryResult<TableOrViewQueryR
33
30
  *
34
31
  * @hidden
35
32
  */
36
- get groups(): Array<GroupedRecordQueryResult> | null;
33
+ get groups(): ReadonlyArray<GroupedRecordQueryResult> | null;
37
34
  /**
38
35
  * The GroupLevels in this RecordQueryResult.
39
36
  * Throws if data is not loaded yet.
@@ -56,6 +53,7 @@ declare class TableOrViewQueryResult extends RecordQueryResult<TableOrViewQueryR
56
53
  loadDataAsync(): Promise<void>;
57
54
  /** @inheritdoc */
58
55
  unloadData(): void;
56
+ _unloadDataAsync: () => Promise<void>;
59
57
  }
60
58
  export default TableOrViewQueryResult;
61
59
  //# sourceMappingURL=table_or_view_query_result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table_or_view_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/table_or_view_query_result.ts"],"names":[],"mappings":"AAGA,OAAO,EAGH,aAAa,EAEb,eAAe,EAElB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAU,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AAK1E,OAAO,iBAAiB,EAAE,EACtB,6BAA6B,EAGhC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,MAAM,SAAS,CAAC;AAK5B,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,cAAc;AACd,UAAU,0BAA0B;IAChC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IAC/C,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;CACnD;AAED;;;;;;;;GAQG;AACH,cAAM,sBAAuB,SAAQ,iBAAiB,CAAC,0BAA0B,CAAC;IA4J9E;;;;OAIG;IACH,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,CAO7B;IACD;;;;;;OAMG;IACH,IAAI,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAMnD;IACD;;;;;;OAMG;IACH,IAAI,WAAW,IAAI,WAAW,GAAG,IAAI,CASpC;IAkBD;;;;OAIG;IACH,IAAI,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAkBhC;IAqED,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;IA0CvC,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;IA8BvC,kBAAkB;IACZ,aAAa;IAyHnB,kBAAkB;IAClB,UAAU;CAqZb;AAED,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"table_or_view_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/table_or_view_query_result.ts"],"names":[],"mappings":"AAGA,OAAO,EAGH,aAAa,EACb,eAAe,EAGlB,MAAM,kBAAkB,CAAC;AAiB1B,OAAO,iBAAiB,EAAE,EACtB,6BAA6B,EAGhC,MAAM,uBAA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"groups";
5
4
  groupLevels: "groupLevels";
6
5
  recordColors: "recordColors";
@@ -1 +1 @@
1
- {"version":3,"file":"view_data_store.d.ts","sourceRoot":"","sources":["../../../../src/models/view_data_store.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,0BAA0B;;;;;;;;EAQrC,CAAC"}
1
+ {"version":3,"file":"view_data_store.d.ts","sourceRoot":"","sources":["../../../../src/models/view_data_store.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,0BAA0B;;;;;;;EAOrC,CAAC"}