@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.
- package/README.md +2 -2
- package/dist/cjs/error_utils.js +1 -19
- package/dist/cjs/global_config.js +3 -3
- package/dist/cjs/injected/airtable_interface.js +1 -1
- package/dist/cjs/models/base.js +9 -9
- package/dist/cjs/models/cursor.js +3 -3
- package/dist/cjs/models/field.js +3 -3
- package/dist/cjs/models/grouped_record_query_result.js +14 -5
- package/dist/cjs/models/linked_records_query_result.js +27 -78
- package/dist/cjs/models/mutations.js +163 -18
- package/dist/cjs/models/record.js +55 -310
- package/dist/cjs/models/record_query_result.js +2 -5
- package/dist/cjs/models/record_store.js +829 -555
- package/dist/cjs/models/session.js +3 -3
- package/dist/cjs/models/table.js +31 -31
- package/dist/cjs/models/table_or_view_query_result.js +419 -526
- package/dist/cjs/models/view.js +23 -1
- package/dist/cjs/models/view_data_store.js +295 -255
- package/dist/cjs/private_utils.js +0 -40
- package/dist/cjs/sdk.js +9 -12
- package/dist/cjs/settings_button.js +1 -1
- package/dist/cjs/testing/abstract_mock_airtable_interface.js +11 -57
- package/dist/cjs/types/airtable_interface.js +2 -17
- package/dist/cjs/ui/block_wrapper.js +2 -5
- package/dist/cjs/ui/expand_record_picker_async.js +1 -1
- package/dist/cjs/ui/global_config_synced_component_helpers.js +6 -0
- package/dist/cjs/ui/initialize_block.js +3 -3
- package/dist/cjs/ui/use_global_config.js +1 -1
- package/dist/cjs/ui/use_loadable.js +3 -3
- package/dist/cjs/ui/use_record_action_data.js +11 -11
- package/dist/cjs/ui/use_records.js +1 -5
- package/dist/cjs/ui/use_settings_button.js +1 -1
- package/dist/cjs/ui/viewport_constraint.js +1 -1
- package/dist/cjs/unstable_testing_utils.js +1 -61
- package/dist/cjs/viewport.js +9 -9
- package/dist/cjs/watchable.js +1 -15
- package/dist/types/src/error_utils.d.ts +1 -2
- package/dist/types/src/error_utils.d.ts.map +1 -1
- package/dist/types/src/global_config.d.ts +3 -3
- package/dist/types/src/models/base.d.ts +9 -9
- package/dist/types/src/models/cursor.d.ts +3 -3
- package/dist/types/src/models/field.d.ts +3 -3
- package/dist/types/src/models/grouped_record_query_result.d.ts +3 -3
- package/dist/types/src/models/grouped_record_query_result.d.ts.map +1 -1
- package/dist/types/src/models/linked_records_query_result.d.ts.map +1 -1
- package/dist/types/src/models/mutations.d.ts.map +1 -1
- package/dist/types/src/models/record.d.ts +3 -12
- package/dist/types/src/models/record.d.ts.map +1 -1
- package/dist/types/src/models/record_query_result.d.ts +4 -5
- package/dist/types/src/models/record_query_result.d.ts.map +1 -1
- package/dist/types/src/models/record_store.d.ts.map +1 -1
- package/dist/types/src/models/session.d.ts +3 -3
- package/dist/types/src/models/table.d.ts +25 -25
- package/dist/types/src/models/table_or_view_query_result.d.ts +5 -3
- package/dist/types/src/models/table_or_view_query_result.d.ts.map +1 -1
- package/dist/types/src/models/view.d.ts +11 -0
- package/dist/types/src/models/view.d.ts.map +1 -1
- package/dist/types/src/models/view_data_store.d.ts +1 -0
- package/dist/types/src/models/view_data_store.d.ts.map +1 -1
- package/dist/types/src/models/view_metadata_query_result.d.ts +1 -1
- package/dist/types/src/models/view_metadata_query_result.d.ts.map +1 -1
- package/dist/types/src/private_utils.d.ts +1 -24
- package/dist/types/src/private_utils.d.ts.map +1 -1
- package/dist/types/src/sdk.d.ts +3 -1
- package/dist/types/src/sdk.d.ts.map +1 -1
- package/dist/types/src/settings_button.d.ts +1 -1
- package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts +11 -11
- package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts.map +1 -1
- package/dist/types/src/types/airtable_interface.d.ts +20 -59
- package/dist/types/src/types/airtable_interface.d.ts.map +1 -1
- package/dist/types/src/types/field.d.ts +10 -5
- package/dist/types/src/types/field.d.ts.map +1 -1
- package/dist/types/src/types/table.d.ts +2 -0
- package/dist/types/src/types/table.d.ts.map +1 -1
- package/dist/types/src/types/view.d.ts +9 -3
- package/dist/types/src/types/view.d.ts.map +1 -1
- package/dist/types/src/ui/block_wrapper.d.ts.map +1 -1
- package/dist/types/src/ui/expand_record_picker_async.d.ts +1 -1
- package/dist/types/src/ui/global_config_synced_component_helpers.d.ts.map +1 -1
- package/dist/types/src/ui/initialize_block.d.ts +1 -1
- package/dist/types/src/ui/record_card.d.ts +1 -1
- package/dist/types/src/ui/use_global_config.d.ts +1 -1
- package/dist/types/src/ui/use_loadable.d.ts +2 -2
- package/dist/types/src/ui/use_record_action_data.d.ts +11 -11
- package/dist/types/src/ui/use_settings_button.d.ts +1 -1
- package/dist/types/src/ui/viewport_constraint.d.ts +3 -3
- package/dist/types/src/ui/viewport_constraint.d.ts.map +1 -1
- package/dist/types/src/unstable_testing_utils.d.ts +1 -4
- package/dist/types/src/unstable_testing_utils.d.ts.map +1 -1
- package/dist/types/src/viewport.d.ts +9 -9
- package/dist/types/src/watchable.d.ts.map +1 -1
- package/dist/types/{src/testing → test/airtable_interface_mocks}/fixture_data.d.ts +25 -44
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts.map +1 -0
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts +1 -1
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts.map +1 -1
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts +12 -19
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts.map +1 -1
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts +1 -1
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts.map +1 -1
- package/dist/types/test/test_helpers.d.ts +0 -2
- package/dist/types/test/test_helpers.d.ts.map +1 -1
- package/package.json +2 -3
- package/dist/cjs/models/query_manager.js +0 -328
- package/dist/cjs/testing/fixture_data.js +0 -271
- package/dist/cjs/testing/mock_base_data_stores.js +0 -891
- package/dist/cjs/types/block_query_spec.js +0 -85
- package/dist/types/src/models/query_manager.d.ts +0 -2
- package/dist/types/src/models/query_manager.d.ts.map +0 -1
- package/dist/types/src/testing/fixture_data.d.ts.map +0 -1
- package/dist/types/src/testing/mock_base_data_stores.d.ts +0 -59
- package/dist/types/src/testing/mock_base_data_stores.d.ts.map +0 -1
- package/dist/types/src/types/block_query_spec.d.ts +0 -139
- package/dist/types/src/types/block_query_spec.d.ts.map +0 -1
- package/dist/types/test/testing/fixture_data.test.d.ts +0 -2
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
7
|
-
* clicked while the
|
|
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
|
|
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
|
|
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
|
|
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
|
|
19
|
+
* level component of your extension. Similarly, using both `registerRecordActionDataCallback` and
|
|
20
20
|
* `useRecordActionData` is not supported.
|
|
21
21
|
*
|
|
22
|
-
* You can test your
|
|
23
|
-
* in the "Advanced" panel of the
|
|
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
|
|
26
|
-
*
|
|
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
|
|
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
|
|
16
|
+
/** The minimum viewport size of the extension. */
|
|
17
17
|
minSize?: ViewportSizeConstraintProp;
|
|
18
|
-
/** The maximum viewport size of the
|
|
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
|
|
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,CAAC,sBAAsB,CAAC,CAAC;AAElE;;;;GAIG;AACH,UAAU,uBAAuB;IAC7B,
|
|
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,CAAC,sBAAsB,CAAC,CAAC;AAElE;;;;GAIG;AACH,UAAU,uBAAuB;IAC7B,kDAAkD;IAClD,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,0BAA0B,CAAC;IAC/C,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAG9B;AASD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,cAAM,kBAAmB,SAAQ,KAAK,CAAC,SAAS,CAAC,uBAAuB,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,
|
|
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,EACnB,WAAW,EACX,eAAe,
|
|
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,EACnB,WAAW,EACX,eAAe,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,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
|
|
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
|
|
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
|
|
67
|
-
* size, an overlay will be shown asking the user to resize the
|
|
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
|
|
78
|
-
* minimum size, the
|
|
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
|
|
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
|
|
92
|
+
* `true` if the extension is fullscreen, `false` otherwise.
|
|
93
93
|
*/
|
|
94
94
|
get isFullscreen(): boolean;
|
|
95
95
|
/**
|
|
96
|
-
* The current size of the
|
|
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;
|
|
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 '
|
|
2
|
-
import { TableId } from '
|
|
3
|
-
import { FieldId, FieldType } from '
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
113
|
-
|
|
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
|
-
|
|
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 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixture_data.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/fixture_data.ts"],"names":[],"mappings":"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"}
|
|
@@ -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,
|
|
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,
|
|
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 {
|
|
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 {
|
|
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
|
-
|
|
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,
|
|
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,WAAW,6BAEd;IAED,IAAI,iBAAiB,mCAEpB;IAED,IAAI,cAAc,gCAEjB;IAED,IAAI,mBAAmB,qCAEtB;IAED,IAAI,WAAW,6BAEd;IAED;;;;;;OAMG;IACH,KAAK;IAWL,aAAa,CACT,GAAG,IAAI,EAAE,UAAU,CAAC,6BAA6B,CAAC,eAAe,CAAC,CAAC,GACpE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAMvB,0CAA0C,CACtC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,GACzB,OAAO,CAAC,GAAG,CAAC;IAGf,kCAAkC,IAAI,OAAO,CAAC,UAAU,CAAC;IAGzD,iCAAiC,CAC7B,OAAO,EAAE,MAAM,GAChB,OAAO,CAAC;QAAC,WAAW,EAAE;YAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAA;SAAC,CAAA;KAAC,CAAC;IAGrD,gCAAgC,CAClC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,CAAC;IAG3B,oCAAoC,IAAI,OAAO,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;IAGzE,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,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 +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,
|
|
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;
|
|
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.
|
|
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
|
+
}
|