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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/error_utils.js +1 -19
  3. package/dist/cjs/global_config.js +3 -3
  4. package/dist/cjs/injected/airtable_interface.js +1 -1
  5. package/dist/cjs/models/base.js +9 -9
  6. package/dist/cjs/models/cursor.js +3 -3
  7. package/dist/cjs/models/field.js +3 -3
  8. package/dist/cjs/models/grouped_record_query_result.js +14 -5
  9. package/dist/cjs/models/linked_records_query_result.js +27 -78
  10. package/dist/cjs/models/mutations.js +163 -18
  11. package/dist/cjs/models/record.js +55 -310
  12. package/dist/cjs/models/record_query_result.js +2 -5
  13. package/dist/cjs/models/record_store.js +829 -555
  14. package/dist/cjs/models/session.js +3 -3
  15. package/dist/cjs/models/table.js +31 -31
  16. package/dist/cjs/models/table_or_view_query_result.js +419 -526
  17. package/dist/cjs/models/view.js +23 -1
  18. package/dist/cjs/models/view_data_store.js +295 -255
  19. package/dist/cjs/private_utils.js +0 -40
  20. package/dist/cjs/sdk.js +9 -12
  21. package/dist/cjs/settings_button.js +1 -1
  22. package/dist/cjs/testing/abstract_mock_airtable_interface.js +11 -57
  23. package/dist/cjs/types/airtable_interface.js +2 -17
  24. package/dist/cjs/ui/block_wrapper.js +2 -5
  25. package/dist/cjs/ui/expand_record_picker_async.js +1 -1
  26. package/dist/cjs/ui/global_config_synced_component_helpers.js +6 -0
  27. package/dist/cjs/ui/initialize_block.js +3 -3
  28. package/dist/cjs/ui/use_global_config.js +1 -1
  29. package/dist/cjs/ui/use_loadable.js +3 -3
  30. package/dist/cjs/ui/use_record_action_data.js +11 -11
  31. package/dist/cjs/ui/use_records.js +1 -5
  32. package/dist/cjs/ui/use_settings_button.js +1 -1
  33. package/dist/cjs/ui/viewport_constraint.js +1 -1
  34. package/dist/cjs/unstable_testing_utils.js +1 -61
  35. package/dist/cjs/viewport.js +9 -9
  36. package/dist/cjs/watchable.js +1 -15
  37. package/dist/types/src/error_utils.d.ts +1 -2
  38. package/dist/types/src/error_utils.d.ts.map +1 -1
  39. package/dist/types/src/global_config.d.ts +3 -3
  40. package/dist/types/src/models/base.d.ts +9 -9
  41. package/dist/types/src/models/cursor.d.ts +3 -3
  42. package/dist/types/src/models/field.d.ts +3 -3
  43. package/dist/types/src/models/grouped_record_query_result.d.ts +3 -3
  44. package/dist/types/src/models/grouped_record_query_result.d.ts.map +1 -1
  45. package/dist/types/src/models/linked_records_query_result.d.ts.map +1 -1
  46. package/dist/types/src/models/mutations.d.ts.map +1 -1
  47. package/dist/types/src/models/record.d.ts +3 -12
  48. package/dist/types/src/models/record.d.ts.map +1 -1
  49. package/dist/types/src/models/record_query_result.d.ts +4 -5
  50. package/dist/types/src/models/record_query_result.d.ts.map +1 -1
  51. package/dist/types/src/models/record_store.d.ts.map +1 -1
  52. package/dist/types/src/models/session.d.ts +3 -3
  53. package/dist/types/src/models/table.d.ts +25 -25
  54. package/dist/types/src/models/table_or_view_query_result.d.ts +5 -3
  55. package/dist/types/src/models/table_or_view_query_result.d.ts.map +1 -1
  56. package/dist/types/src/models/view.d.ts +11 -0
  57. package/dist/types/src/models/view.d.ts.map +1 -1
  58. package/dist/types/src/models/view_data_store.d.ts +1 -0
  59. package/dist/types/src/models/view_data_store.d.ts.map +1 -1
  60. package/dist/types/src/models/view_metadata_query_result.d.ts +1 -1
  61. package/dist/types/src/models/view_metadata_query_result.d.ts.map +1 -1
  62. package/dist/types/src/private_utils.d.ts +1 -24
  63. package/dist/types/src/private_utils.d.ts.map +1 -1
  64. package/dist/types/src/sdk.d.ts +3 -1
  65. package/dist/types/src/sdk.d.ts.map +1 -1
  66. package/dist/types/src/settings_button.d.ts +1 -1
  67. package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts +11 -11
  68. package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts.map +1 -1
  69. package/dist/types/src/types/airtable_interface.d.ts +20 -59
  70. package/dist/types/src/types/airtable_interface.d.ts.map +1 -1
  71. package/dist/types/src/types/field.d.ts +10 -5
  72. package/dist/types/src/types/field.d.ts.map +1 -1
  73. package/dist/types/src/types/table.d.ts +2 -0
  74. package/dist/types/src/types/table.d.ts.map +1 -1
  75. package/dist/types/src/types/view.d.ts +9 -3
  76. package/dist/types/src/types/view.d.ts.map +1 -1
  77. package/dist/types/src/ui/block_wrapper.d.ts.map +1 -1
  78. package/dist/types/src/ui/expand_record_picker_async.d.ts +1 -1
  79. package/dist/types/src/ui/global_config_synced_component_helpers.d.ts.map +1 -1
  80. package/dist/types/src/ui/initialize_block.d.ts +1 -1
  81. package/dist/types/src/ui/record_card.d.ts +1 -1
  82. package/dist/types/src/ui/use_global_config.d.ts +1 -1
  83. package/dist/types/src/ui/use_loadable.d.ts +2 -2
  84. package/dist/types/src/ui/use_record_action_data.d.ts +11 -11
  85. package/dist/types/src/ui/use_settings_button.d.ts +1 -1
  86. package/dist/types/src/ui/viewport_constraint.d.ts +3 -3
  87. package/dist/types/src/ui/viewport_constraint.d.ts.map +1 -1
  88. package/dist/types/src/unstable_testing_utils.d.ts +1 -4
  89. package/dist/types/src/unstable_testing_utils.d.ts.map +1 -1
  90. package/dist/types/src/viewport.d.ts +9 -9
  91. package/dist/types/src/watchable.d.ts.map +1 -1
  92. package/dist/types/{src/testing → test/airtable_interface_mocks}/fixture_data.d.ts +25 -44
  93. package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts.map +1 -0
  94. package/dist/types/test/airtable_interface_mocks/linked_records.d.ts +1 -1
  95. package/dist/types/test/airtable_interface_mocks/linked_records.d.ts.map +1 -1
  96. package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts +12 -19
  97. package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts.map +1 -1
  98. package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts +1 -1
  99. package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts.map +1 -1
  100. package/dist/types/test/test_helpers.d.ts +0 -2
  101. package/dist/types/test/test_helpers.d.ts.map +1 -1
  102. package/package.json +2 -3
  103. package/dist/cjs/models/query_manager.js +0 -328
  104. package/dist/cjs/testing/fixture_data.js +0 -271
  105. package/dist/cjs/testing/mock_base_data_stores.js +0 -891
  106. package/dist/cjs/types/block_query_spec.js +0 -85
  107. package/dist/types/src/models/query_manager.d.ts +0 -2
  108. package/dist/types/src/models/query_manager.d.ts.map +0 -1
  109. package/dist/types/src/testing/fixture_data.d.ts.map +0 -1
  110. package/dist/types/src/testing/mock_base_data_stores.d.ts +0 -59
  111. package/dist/types/src/testing/mock_base_data_stores.d.ts.map +0 -1
  112. package/dist/types/src/types/block_query_spec.d.ts +0 -139
  113. package/dist/types/src/types/block_query_spec.d.ts.map +0 -1
  114. package/dist/types/test/testing/fixture_data.test.d.ts +0 -2
  115. package/dist/types/test/testing/fixture_data.test.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  /** @module @airtable/blocks/ui: useGlobalConfig */ /** */
2
2
  import GlobalConfig from '../global_config';
3
3
  /**
4
- * Returns the app's {@link GlobalConfig} and updates whenever any key in {@link GlobalConfig}
4
+ * Returns the extension's {@link GlobalConfig} and updates whenever any key in {@link GlobalConfig}
5
5
  * changes.
6
6
  *
7
7
  * @example
@@ -22,7 +22,7 @@ interface UseLoadableOpts {
22
22
  shouldSuspend?: boolean;
23
23
  }
24
24
  /**
25
- * When you're writing an app, not all of the data in your base is available to work with straight
25
+ * When you're writing an extension, not all of the data in your base is available to work with straight
26
26
  * away. We need to load it from Airtable first. This hook is a low-level tool for managing that.
27
27
  * You might not need to use it directly though - if you're working with a {@link RecordQueryResult}, try
28
28
  * {@link useRecords}, {@link useRecordIds}, or {@link useRecordById} first.
@@ -31,7 +31,7 @@ interface UseLoadableOpts {
31
31
  * loaded when your component mounts, and unloaded when your component unmounts. By default, you
32
32
  * don't need to worry about waiting for the data to load - the hook uses React Suspense to make
33
33
  * sure the rest of your component doesn't run until the data is loaded. Whilst the data is
34
- * loading, the entire app will show a loading indicator. If you want to change where that
34
+ * loading, the entire extension will show a loading indicator. If you want to change where that
35
35
  * indicator shows or how it looks, use [`<React.Suspense />`](https://reactjs.org/docs/react-api.html#reactsuspense|)
36
36
  * around the component that uses the hook.
37
37
  *
@@ -1,29 +1,29 @@
1
1
  /** @module @airtable/blocks/ui: useRecordActionData */ /** */
2
2
  import { RecordActionData } from '../types/record_action_data';
3
3
  /**
4
- * A hook to watch "open app" / "perform record action" events (from button field). Returns
4
+ * A hook to watch "open extension" / "perform record action" events (from button field). Returns
5
5
  * the data corresponding to the latest action, or `null` if no actions have occurred yet. If there
6
- * was a pending event for the app (for example, because a button that opens this app was
7
- * clicked while the apps dashboard was closed) it will be returned as the initial value.
6
+ * was a pending event for the extension (for example, because a button that opens this extension was
7
+ * clicked while the extensions dashboard was closed) it will be returned as the initial value.
8
8
  *
9
- * Like {@link useLoadable}, this hook puts the app in suspense while subscribing to events and
9
+ * Like {@link useLoadable}, this hook puts the extension in suspense while subscribing to events and
10
10
  * fetching the initial data.
11
11
  *
12
12
  * Also see {@link registerRecordActionDataCallback}, which subscribes to the same events in an
13
13
  * asynchronous (callback based) way. An advantage of using this hook over the callback is that you
14
- * immediately can handle any pending events when your app opens - with a callback, your app
14
+ * immediately can handle any pending events when your extension opens - with a callback, your extension
15
15
  * will finish it's initial render before handling the event.
16
16
  *
17
- * Like {@link registerRecordActionDataCallback}, your app won't receive events until this hook is
17
+ * Like {@link registerRecordActionDataCallback}, your extension won't receive events until this hook is
18
18
  * used for the first time. Because of that, we recommend only using this hook once, in the top
19
- * level component of your app. Similarly, using both `registerRecordActionDataCallback` and
19
+ * level component of your extension. Similarly, using both `registerRecordActionDataCallback` and
20
20
  * `useRecordActionData` is not supported.
21
21
  *
22
- * You can test your app in development by sending "perform record action" events to your app
23
- * in the "Advanced" panel of the app developer tools.
22
+ * You can test your extension in development by sending "perform record action" events to your extension
23
+ * in the "Advanced" panel of the extension developer tools.
24
24
  *
25
- * After releasing your app, you can use it with a button field by choosing the "Open custom
26
- * app" action and selecting your app.
25
+ * After releasing your extension, you can use it with a button field by choosing the "Open custom
26
+ * extension" action and selecting your extension.
27
27
  *
28
28
  * @example
29
29
  * ```js
@@ -1,6 +1,6 @@
1
1
  import { FlowAnyFunction } from '../private_utils';
2
2
  /**
3
- * A hook for using the settings button that lives outside the app's viewport. It will show
3
+ * A hook for using the settings button that lives outside the extension's viewport. It will show
4
4
  * the settings button (hidden by default) and call the provided callback whenever the settings
5
5
  * button is clicked. It will also re-render your component when the settings button is clicked.
6
6
  *
@@ -13,16 +13,16 @@ declare type ViewportSizeConstraintProp = Partial<ViewportSizeConstraint>;
13
13
  * @docsPath UI/components/ViewportConstraint
14
14
  */
15
15
  interface ViewportConstraintProps {
16
- /** The minimum viewport size of the app. */
16
+ /** The minimum viewport size of the extension. */
17
17
  minSize?: ViewportSizeConstraintProp;
18
- /** The maximum viewport size of the app when it is in fullscreen mode. */
18
+ /** The maximum viewport size of the extension when it is in fullscreen mode. */
19
19
  maxFullscreenSize?: ViewportSizeConstraintProp;
20
20
  /** The contents of the viewport constraint. */
21
21
  children?: React.ReactNode;
22
22
  }
23
23
  /**
24
24
  * When mounted, this wrapper component applies size constraints to the {@link Viewport}.
25
- * Like {@link addMinSize}, this will fullscreen the app if necessary and possible when
25
+ * Like {@link addMinSize}, this will fullscreen the extension if necessary and possible when
26
26
  * `minSize` is updated.
27
27
  *
28
28
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"viewport_constraint.d.ts","sourceRoot":"","sources":["../../../../src/ui/viewport_constraint.tsx"],"names":[],"mappings":"AAAA;;;GAGG,CAAC,MAAM;AACV,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAKzD,2EAA2E;AAC3E,aAAK,0BAA0B,GAAG,OAAO,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B,CAAC;IACrE,cAAc;IACd,MAAM,CAAC,SAAS;;;;;;;;;;MAUd;IAOF,cAAc;IACd,iBAAiB;IAKjB,cAAc;IACd,qBAAqB,CAAC,SAAS,EAAE,uBAAuB;IAQxD,cAAc;IACd,kBAAkB,CAAC,SAAS,EAAE,uBAAuB;IASrD,cAAc;IACd,oBAAoB;IAyCpB,cAAc;IACd,MAAM;CAGT;;AAED,wBAOE"}
@@ -1,7 +1,6 @@
1
1
  export { BaseData, ModelChange } from './types/base';
2
2
  export { Mutation, MutationTypes } from './types/mutations';
3
- export { AppInterface, BlockRunContextType, SdkInitData, PartialViewData, BlockQuerySubscriptionOptions, } from './types/airtable_interface';
4
- export { BlockQuerySpec, BlockQueryId, QuerySpecsResponse, BlockQuerySubscriptionOnChangeCallback, } from './types/block_query_spec';
3
+ export { AppInterface, BlockRunContextType, SdkInitData, PartialViewData, } from './types/airtable_interface';
5
4
  export { RecordData } from './types/record';
6
5
  export { CursorData } from './types/cursor';
7
6
  export { FieldData, FieldType } from './types/field';
@@ -11,6 +10,4 @@ export { GlobalConfigUpdate, GlobalConfigData, GlobalConfigArray, GlobalConfigOb
11
10
  export { RequestJson, ResponseJson } from './types/backend_fetch_types';
12
11
  export { default as Sdk } from './sdk';
13
12
  export { AbstractMockAirtableInterface } from './testing/abstract_mock_airtable_interface';
14
- export { FixtureData, convertFixtureDataToSdkInitData } from './testing/fixture_data';
15
- export { MockBaseDataStore, TestRecordStoreForTable } from './testing/mock_base_data_stores';
16
13
  //# sourceMappingURL=unstable_testing_utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unstable_testing_utils.d.ts","sourceRoot":"","sources":["../../../src/unstable_testing_utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,WAAW,EAAC,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EACH,YAAY,EACZ,mBAAmB,EACn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E1C,OAAO,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAC,sBAAsB,EAAC,MAAM,kBAAkB,CAAC;AAExD,OAAO,EACH,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,6BAA6B,EAAC,MAAM,4CAA4C,CAAC"}
@@ -34,7 +34,7 @@ declare class Viewport extends Watchable<WatchableViewportKey> {
34
34
  /**
35
35
  * Request to enter fullscreen mode.
36
36
  *
37
- * May fail if another app is fullscreen or this app doesn't have
37
+ * May fail if another extension is fullscreen or this extension doesn't have
38
38
  * permission to fullscreen itself. Watch `isFullscreen` to know if the
39
39
  * request succeeded.
40
40
  */
@@ -42,7 +42,7 @@ declare class Viewport extends Watchable<WatchableViewportKey> {
42
42
  /** Request to exit fullscreen mode */
43
43
  exitFullscreen(): void;
44
44
  /**
45
- * The maximum dimensions of the app when it is in
45
+ * The maximum dimensions of the extension when it is in
46
46
  * fullscreen mode. Returns the smallest set of dimensions added with
47
47
  * {@link addMaxFullscreenSize}.
48
48
  *
@@ -63,8 +63,8 @@ declare class Viewport extends Watchable<WatchableViewportKey> {
63
63
  */
64
64
  addMaxFullscreenSize(sizeConstraint: Partial<ViewportSizeConstraint>): UnsetFn;
65
65
  /**
66
- * The minimum dimensions of the app - if the viewport gets smaller than this
67
- * size, an overlay will be shown asking the user to resize the app to be bigger.
66
+ * The minimum dimensions of the extension - if the viewport gets smaller than this
67
+ * size, an overlay will be shown asking the user to resize the extension to be bigger.
68
68
  *
69
69
  * The largest set of dimensions added with addMinSize. If `width` or `height` is null, it means
70
70
  * there is no minSize constraint on that dimension.
@@ -74,8 +74,8 @@ declare class Viewport extends Watchable<WatchableViewportKey> {
74
74
  * Add a minimum frame size constraint. Use `.minSize`` to get the aggregate
75
75
  * of all added constraints.
76
76
  *
77
- * Upon adding a constraint, if the app is focused and the frame is smaller than the
78
- * minimum size, the app will enter fullscreen mode.
77
+ * Upon adding a constraint, if the extension is focused and the frame is smaller than the
78
+ * minimum size, the extension will enter fullscreen mode.
79
79
  *
80
80
  * Returns a function that can be called to remove the size constraint that was added.
81
81
  *
@@ -85,15 +85,15 @@ declare class Viewport extends Watchable<WatchableViewportKey> {
85
85
  */
86
86
  addMinSize(sizeConstraint: Partial<ViewportSizeConstraint>): UnsetFn;
87
87
  /**
88
- * `true` if the app frame is smaller than `minSize`, `false` otherwise.
88
+ * `true` if the extension frame is smaller than `minSize`, `false` otherwise.
89
89
  */
90
90
  get isSmallerThanMinSize(): boolean;
91
91
  /**
92
- * `true` if the app is fullscreen, `false` otherwise.
92
+ * `true` if the extension is fullscreen, `false` otherwise.
93
93
  */
94
94
  get isFullscreen(): boolean;
95
95
  /**
96
- * The current size of the app frame.
96
+ * The current size of the extension frame.
97
97
  *
98
98
  * Can be watched.
99
99
  */
@@ -1 +1 @@
1
- {"version":3,"file":"watchable.d.ts","sourceRoot":"","sources":["../../../src/watchable.ts"],"names":[],"mappings":"AAAA,uDAAuD,CAAC,MAAM;AAC9D,OAAO,EAAyC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAGtF;;;;;;;GAOG;AACH,cAAM,SAAS,CAAC,YAAY,SAAS,MAAM;IA+EvC;;;;;;;;;;OAUG;IACH,KAAK,CACD,IAAI,EAAE,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,EAChD,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,OAAO,EAC1E,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,YAAY,CAAC;IAqBtB;;;;;;;;;;OAUG;IACH,OAAO,CACH,IAAI,EAAE,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,EAChD,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,OAAO,EAC1E,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,YAAY,CAAC;CAgCzB;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"watchable.d.ts","sourceRoot":"","sources":["../../../src/watchable.ts"],"names":[],"mappings":"AAAA,uDAAuD,CAAC,MAAM;AAC9D,OAAO,EAAyC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAGtF;;;;;;;GAOG;AACH,cAAM,SAAS,CAAC,YAAY,SAAS,MAAM;IAuEvC;;;;;;;;;;OAUG;IACH,KAAK,CACD,IAAI,EAAE,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,EAChD,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,OAAO,EAC1E,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,YAAY,CAAC;IAqBtB;;;;;;;;;;OAUG;IACH,OAAO,CACH,IAAI,EAAE,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,EAChD,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,OAAO,EAC1E,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,YAAY,CAAC;CA8BzB;AAED,eAAe,SAAS,CAAC"}
@@ -1,27 +1,25 @@
1
- import { BaseId } from '../types/base';
2
- import { TableId } from '../types/table';
3
- import { FieldId, FieldType } from '../types/field';
4
- import { GlobalConfigData } from '../types/global_config';
5
- import { ViewId, ViewType, GroupData, GroupLevelData } from '../types/view';
6
- import { RecordId } from '../types/record';
7
- import { CollaboratorData } from '../types/collaborator';
8
- import { Color } from '../colors';
9
- import { ObjectMap } from '../private_utils';
10
- import { SdkInitData } from '../types/airtable_interface';
11
- /** @hidden */
1
+ import { BaseId } from '../../src/types/base';
2
+ import { TableId } from '../../src/types/table';
3
+ import { FieldId, FieldType } from '../../src/types/field';
4
+ import { ViewId, ViewType } from '../../src/types/view';
5
+ import { RecordId } from '../../src/types/record';
6
+ import { CollaboratorData } from '../../src/types/collaborator';
7
+ import { Color } from '../../src/colors';
8
+ import { ObjectMap } from '../../src/private_utils';
9
+ import { SdkInitData } from '../../src/types/airtable_interface';
12
10
  export declare function convertFixtureDataToSdkInitData(fixtureData: FixtureData): SdkInitData;
13
11
  /**
14
12
  * A complete set of information necessary to initialize a simulated Airtable
15
13
  * Base in automated test environments. This is currently copied from
16
14
  * block-testing.
15
+ * TODO(fredz): consider moving this into src/testing and exporting it as
16
+ * part of unstable_testing_utils.
17
17
  *
18
18
  * Unlike SdkInitData which does not contain record data by design,
19
19
  * FixtureData contains it in fixtureData.base.tables[number].records,
20
20
  * and relies on dependent modules to simulate the hyperbase behavior of
21
21
  * only making those records after corresponding necessary calls to
22
22
  * AirtableInterface.
23
- *
24
- * @hidden
25
23
  */
26
24
  export interface FixtureData {
27
25
  /** A representation of the state of an Airtable Base */
@@ -33,17 +31,11 @@ export interface FixtureData {
33
31
  collaborators: Array<CollaboratorData & {
34
32
  isActive: boolean;
35
33
  }>;
36
- workspaceId?: string;
37
34
  };
38
- globalConfig?: GlobalConfigData;
39
35
  }
40
- /**
41
- * A representation of the state of a Table
42
- *
43
- * @hidden
44
- * */
45
- export interface TableFixtureData {
46
- /** A unique identifier for the simulated Tbale */
36
+ /** A representation of the state of a Table */
37
+ interface TableFixtureData {
38
+ /** A unique identifier for the simulated Table */
47
39
  id: TableId;
48
40
  /** The name to assign to the simulated Table */
49
41
  name: string;
@@ -65,12 +57,8 @@ export interface TableFixtureData {
65
57
  */
66
58
  records: Array<RecordFixtureData>;
67
59
  }
68
- /**
69
- * A representation of the state of a Field
70
- *
71
- * @hidden
72
- */
73
- export interface FieldFixtureData {
60
+ /** A representation of the state of a Field */
61
+ interface FieldFixtureData {
74
62
  /** A unique identifier for the simulated Field */
75
63
  id: FieldId;
76
64
  /** The name to assign to the simulated Field */
@@ -84,12 +72,8 @@ export interface FieldFixtureData {
84
72
  [key: string]: unknown;
85
73
  };
86
74
  }
87
- /**
88
- * A representation of the state of a View
89
- *
90
- * @hidden
91
- */
92
- export interface ViewFixtureData {
75
+ /** A representation of the state of a View */
76
+ interface ViewFixtureData {
93
77
  /** A unique identifier for the simulated View */
94
78
  id: ViewId;
95
79
  /** The name to assign to the simulated View */
@@ -109,14 +93,15 @@ export interface ViewFixtureData {
109
93
  * is distinct from the complete fixture data for the simulated Records.
110
94
  */
111
95
  records: Array<ViewRecordFixtureData>;
112
- groups?: Array<GroupData>;
113
- groupLevels?: Array<GroupLevelData>;
96
+ /**
97
+ * Optional boolean denoting if the view is locked. By default tests assume
98
+ * the view is unlocked if undefined.
99
+ */
100
+ isLockedView?: boolean;
114
101
  }
115
102
  /**
116
103
  * A reference to Record contained within a simulated view. This is disctinct
117
104
  * from the complete fixture data for the simulated Record.
118
- *
119
- * @hidden
120
105
  */
121
106
  interface ViewRecordFixtureData {
122
107
  /** A value which uniquely identifies a Record within a base. */
@@ -124,12 +109,8 @@ interface ViewRecordFixtureData {
124
109
  /** The color associated with a Record's membership in a View. */
125
110
  color: Color | null;
126
111
  }
127
- /**
128
- * A representation of the state of a Record
129
- *
130
- * @hidden
131
- */
132
- export interface RecordFixtureData {
112
+ /** A representation of the state of a Record */
113
+ interface RecordFixtureData {
133
114
  /** A unique identifier for the simulated Record */
134
115
  id: RecordId;
135
116
  /** The number of comments to assign to the simulated record */
@@ -0,0 +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C,OAAO,EAAE,OAAO,CAAC,CAAC;CACpD"}
@@ -1,4 +1,4 @@
1
- import { FixtureData } from '../../src/testing/fixture_data';
1
+ import { FixtureData } from './fixture_data';
2
2
  declare const linkedRecords: FixtureData;
3
3
  export default linkedRecords;
4
4
  //# sourceMappingURL=linked_records.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"linked_records.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/linked_records.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,QAAA,MAAM,aAAa,EAAE,WA8GpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"linked_records.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/linked_records.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,QAAA,MAAM,aAAa,EAAE,WA8GpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,15 +1,13 @@
1
1
  /// <reference types="jest" />
2
- import { Aggregators, BlockQuerySubscriptionOptions, FieldTypeProvider, UrlConstructor, GlobalConfigHelpers, IdGenerator, VisList, RecordStoreForTable, ViewStore } from '../../src/types/airtable_interface';
3
- import { BlockQueryId, BlockQuerySpec, QuerySpecsResponse } from '../../src/types/block_query_spec';
2
+ import { Aggregators, FieldTypeProvider, UrlConstructor, GlobalConfigHelpers, IdGenerator, VisList, PartialViewData } from '../../src/types/airtable_interface';
4
3
  import { AbstractMockAirtableInterface } from '../../src/testing/abstract_mock_airtable_interface';
5
- import { ModelChange } from '../../src/types/base';
6
4
  import { TableId } from '../../src/types/table';
7
- import { ViewId } from '../../src/types/view';
5
+ import { FieldId } from '../../src/types/field';
8
6
  import { CursorData } from '../../src/types/cursor';
7
+ import { RecordData } from '../../src/types/record';
9
8
  import { RecordActionData } from '../../src/types/record_action_data';
10
9
  import { RequestJson, ResponseJson } from '../../src/types/backend_fetch_types';
11
- import { MockBaseDataStore } from '../../src/testing/mock_base_data_stores';
12
- import { FixtureData } from '../../src/testing/fixture_data';
10
+ import { FixtureData } from './fixture_data';
13
11
  /**
14
12
  * An implementation of the AbstractMockAirtableInterface designed for use in the
15
13
  * Blocks SDK internal automated test suite. Provides Jest spies for all
@@ -20,23 +18,11 @@ export declare class MockAirtableInterface extends AbstractMockAirtableInterface
20
18
  static projectTrackerExample(): jest.Mocked<MockAirtableInterface>;
21
19
  static linkedRecordsExample(): jest.Mocked<MockAirtableInterface>;
22
20
  static createFromFixtureData(fixtureData: FixtureData): jest.Mocked<MockAirtableInterface>;
23
- _mockBaseDataStore: MockBaseDataStore;
24
- _initialFixtureData: FixtureData;
25
- constructor(fixtureData: FixtureData);
26
- triggerModelUpdates(changes: ReadonlyArray<ModelChange>): void;
27
21
  get aggregators(): jest.Mocked<Aggregators>;
28
22
  get fieldTypeProvider(): jest.Mocked<FieldTypeProvider>;
29
23
  get urlConstructor(): jest.Mocked<UrlConstructor>;
30
24
  get globalConfigHelpers(): jest.Mocked<GlobalConfigHelpers>;
31
25
  get idGenerator(): jest.Mocked<IdGenerator>;
32
- getMockBaseDataStore(): MockBaseDataStore;
33
- subscribeToQueryAndPopulateStoresAsync(query: BlockQuerySpec, options: BlockQuerySubscriptionOptions): Promise<QuerySpecsResponse>;
34
- unsubscribeFromQueryIdsAsync(querySpecIds: Array<BlockQueryId>): Promise<{
35
- status: boolean;
36
- }>;
37
- getTableRecordStoreIfExists(tableId: TableId): RecordStoreForTable | null;
38
- getViewMetadataStoreIfExists(tableId: TableId, viewId: ViewId): ViewStore | null;
39
- getCountOfQueriesSubscribed(): number;
40
26
  /**
41
27
  * Revert the mock interface to its initial state. This includes:
42
28
  *
@@ -45,8 +31,15 @@ export declare class MockAirtableInterface extends AbstractMockAirtableInterface
45
31
  * - recreating the Jest "spies" for every instance method
46
32
  */
47
33
  reset(): void;
48
- createVisListWithRecordIds(...args: Parameters<AbstractMockAirtableInterface['createVisListWithRecordIds']>): jest.Mocked<VisList>;
34
+ createVisList(...args: Parameters<AbstractMockAirtableInterface['createVisList']>): jest.Mocked<VisList>;
35
+ fetchAndSubscribeToCellValuesInFieldsAsync(tableId: TableId, fieldIds: Array<FieldId>): Promise<any>;
49
36
  fetchAndSubscribeToCursorDataAsync(): Promise<CursorData>;
37
+ fetchAndSubscribeToTableDataAsync(tableId: string): Promise<{
38
+ recordsById: {
39
+ [recordId: string]: RecordData;
40
+ };
41
+ }>;
42
+ fetchAndSubscribeToViewDataAsync(tableId: string, viewId: string): Promise<PartialViewData>;
50
43
  fetchDefaultCellValuesByFieldIdAsync(): Promise<{
51
44
  [key: string]: unknown;
52
45
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"mock_airtable_interface.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/mock_airtable_interface.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,WAAW,EACX,6BAA6B,EAC7B,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,WAAW,EACX,OAAO,EACP,mBAAmB,EACnB,SAAS,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAClG,OAAO,EAAC,6BAA6B,EAAC,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAE5C,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAC,WAAW,EAA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AAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;IAG/E,gBAAgB;IAGhB,uBAAuB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAGjD,WAAW;IAGX,2BAA2B;IAG3B,eAAe;IAGf,oBAAoB;IAGpB,eAAe;IAGf,cAAc;IAGd,2CAA2C,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAG/E,UAAU;IAGV,aAAa;IAGb,QAAQ;IAGR,wBAAwB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;CAG5E"}
1
+ {"version":3,"file":"mock_airtable_interface.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/mock_airtable_interface.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,WAAW,EACX,OAAO,EACP,eAAe,EAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAC,6BAA6B,EAAC,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAG9E,OAAO,EAAC,WAAW,EAAkC,MAAM,gBAAgB,CAAC;AAuB5E;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,6BAA6B;IACpE,MAAM,CAAC,qBAAqB;IAI5B,MAAM,CAAC,oBAAoB;IAI3B,MAAM,CAAC,qBAAqB,CAAC,WAAW,EAAE,WAAW;IAKrD,IAAI,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FixtureData } from '../../src/testing/fixture_data';
1
+ import { FixtureData } from './fixture_data';
2
2
  declare const projectTracker: FixtureData;
3
3
  export default projectTracker;
4
4
  //# sourceMappingURL=project_tracker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"project_tracker.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/project_tracker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,QAAA,MAAM,cAAc,EAAE,WA6YrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"project_tracker.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/project_tracker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,QAAA,MAAM,cAAc,EAAE,WA6YrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,12 +1,10 @@
1
1
  import { ReactWrapper } from 'enzyme';
2
2
  import Watchable from '../src/watchable';
3
- import { MockAirtableInterface } from './airtable_interface_mocks/mock_airtable_interface';
4
3
  /**
5
4
  * include a section of code that must pass flow but shouldn't actually be executed. Use it along
6
5
  * with '// flow-expect-error' to write tests for flow-type definitions that won't be run by jest.
7
6
  */
8
7
  export declare function flowTest(description: string, fn: () => unknown): void;
9
- export declare const waitForAllQueriesToFullyUnsubscribeAsync: (mockAirtableInterface: MockAirtableInterface) => Promise<unknown>;
10
8
  export declare function getComputedStylePropValue<Props extends {}>(wrapper: ReactWrapper<Props>, styleProp: string): string;
11
9
  export declare function waitForWatchKeyAsync<Key extends string>(model: Watchable<Key>, key: Key): Promise<void>;
12
10
  export declare function simulateTimersAndClearAfterEachTest(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"test_helpers.d.ts","sourceRoot":"","sources":["../../../test/test_helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAC,qBAAqB,EAAC,MAAM,oDAAoD,CAAC;AAEzF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,GAAG,IAAI,CAErE;AAED,eAAO,MAAM,wCAAwC,oEAiBpD,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,EAAE,EACtD,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,EAC5B,SAAS,EAAE,MAAM,GAClB,MAAM,CAGR;AAED,wBAAgB,oBAAoB,CAAC,GAAG,SAAS,MAAM,EACnD,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,EACrB,GAAG,EAAE,GAAG,GACT,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAgB,mCAAmC,IAAI,IAAI,CAwB1D"}
1
+ {"version":3,"file":"test_helpers.d.ts","sourceRoot":"","sources":["../../../test/test_helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,SAAS,MAAM,kBAAkB,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,GAAG,IAAI,CAErE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,EAAE,EACtD,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,EAC5B,SAAS,EAAE,MAAM,GAClB,MAAM,CAGR;AAED,wBAAgB,oBAAoB,CAAC,GAAG,SAAS,MAAM,EACnD,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,EACrB,GAAG,EAAE,GAAG,GACT,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAgB,mCAAmC,IAAI,IAAI,CAwB1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtable/blocks",
3
- "version": "1.11.1-experimental-68738f2-20220526",
3
+ "version": "1.13.0",
4
4
  "description": "Airtable Blocks SDK",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,6 @@
28
28
  ],
29
29
  "scripts": {
30
30
  "ci": "yarn run build && yarn run test:coverage && ./scripts/check_typescript_when_installed_in_block.sh",
31
- "ci-partial": "yarn run ci",
32
31
  "pretest": "yarn run lint && yarn run types",
33
32
  "version": "changelog-publish --github-repo-url='https://github.com/airtable/blocks' --git-tag-prefix='@airtable/blocks@' && yarn run build:docs && git add CHANGELOG.md ../blocks-docs/docs.json",
34
33
  "release": "npm_config_registry=https://registry.npmjs.org/ release-it",
@@ -150,4 +149,4 @@
150
149
  "access": "public"
151
150
  }
152
151
  }
153
- }
152
+ }