@airtable/blocks 1.7.0 → 1.9.0-experimental
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/CHANGELOG.md +29 -3
- package/dist/cjs/error_utils.js +17 -0
- package/dist/cjs/models/base.js +16 -11
- package/dist/cjs/models/cursor.js +2 -0
- package/dist/cjs/models/field.js +157 -36
- package/dist/cjs/models/grouped_record_query_result.js +5 -14
- package/dist/cjs/models/linked_records_query_result.js +75 -27
- package/dist/cjs/models/mutation_constants.js +3 -1
- package/dist/cjs/models/mutations.js +70 -178
- package/dist/cjs/models/query_manager.js +327 -0
- package/dist/cjs/models/record.js +308 -55
- package/dist/cjs/models/record_query_result.js +4 -1
- package/dist/cjs/models/record_store.js +554 -765
- package/dist/cjs/models/table.js +22 -19
- package/dist/cjs/models/table_or_view_query_result.js +480 -414
- package/dist/cjs/models/view_data_store.js +243 -269
- package/dist/cjs/private_utils.js +50 -0
- package/dist/cjs/sdk.js +12 -2
- package/dist/cjs/testing/{mock_airtable_interface.js → abstract_mock_airtable_interface.js} +71 -22
- package/dist/cjs/types/block_query_spec.js +85 -0
- package/dist/cjs/types/field.js +1 -0
- package/dist/cjs/types/mutations.js +1 -0
- package/dist/cjs/ui/icon_config.js +6 -2
- package/dist/cjs/ui/use_global_config.js +1 -1
- package/dist/cjs/ui/use_records.js +5 -1
- package/dist/cjs/unstable_testing_utils.js +2 -2
- package/dist/cjs/watchable.js +123 -71
- package/dist/types/src/models/base.d.ts +10 -9
- package/dist/types/src/models/base.d.ts.map +1 -1
- package/dist/types/src/models/cursor.d.ts +2 -0
- package/dist/types/src/models/cursor.d.ts.map +1 -1
- package/dist/types/src/models/field.d.ts +71 -9
- package/dist/types/src/models/field.d.ts.map +1 -1
- 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/mutation_constants.d.ts +1 -0
- package/dist/types/src/models/mutation_constants.d.ts.map +1 -1
- package/dist/types/src/models/mutations.d.ts.map +1 -1
- package/dist/types/src/models/query_manager.d.ts +2 -0
- package/dist/types/src/models/query_manager.d.ts.map +1 -0
- package/dist/types/src/models/record.d.ts +12 -3
- package/dist/types/src/models/record.d.ts.map +1 -1
- package/dist/types/src/models/record_query_result.d.ts +3 -2
- 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/table.d.ts +8 -10
- package/dist/types/src/models/table.d.ts.map +1 -1
- package/dist/types/src/models/table_or_view_query_result.d.ts +3 -5
- package/dist/types/src/models/table_or_view_query_result.d.ts.map +1 -1
- package/dist/types/src/models/view_data_store.d.ts +0 -1
- 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 +30 -1
- package/dist/types/src/private_utils.d.ts.map +1 -1
- package/dist/types/src/sdk.d.ts.map +1 -1
- package/dist/types/src/testing/{mock_airtable_interface.d.ts → abstract_mock_airtable_interface.d.ts} +20 -15
- package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts.map +1 -0
- package/dist/types/src/types/airtable_interface.d.ts +45 -21
- package/dist/types/src/types/airtable_interface.d.ts.map +1 -1
- package/dist/types/src/types/block_query_spec.d.ts +139 -0
- package/dist/types/src/types/block_query_spec.d.ts.map +1 -0
- package/dist/types/src/types/field.d.ts +167 -51
- package/dist/types/src/types/field.d.ts.map +1 -1
- package/dist/types/src/types/mutations.d.ts +46 -3
- package/dist/types/src/types/mutations.d.ts.map +1 -1
- package/dist/types/src/types/table.d.ts +0 -2
- package/dist/types/src/types/table.d.ts.map +1 -1
- package/dist/types/src/types/view.d.ts +3 -8
- package/dist/types/src/types/view.d.ts.map +1 -1
- package/dist/types/src/ui/icon_config.d.ts +7 -3
- package/dist/types/src/ui/icon_config.d.ts.map +1 -1
- package/dist/types/src/ui/link.d.ts +1 -1
- package/dist/types/src/ui/link.d.ts.map +1 -1
- package/dist/types/src/ui/use_global_config.d.ts +1 -1
- package/dist/types/src/unstable_testing_utils.d.ts +1 -1
- package/dist/types/src/unstable_testing_utils.d.ts.map +1 -1
- package/dist/types/src/watchable.d.ts.map +1 -1
- package/dist/types/stories/helpers/fake_cell_renderer.d.ts.map +1 -1
- package/dist/types/stories/helpers/field_type.d.ts.map +1 -1
- package/dist/types/stories/helpers/sync_source_options.d.ts +7 -0
- package/dist/types/stories/helpers/sync_source_options.d.ts.map +1 -0
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts +121 -0
- 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 +2 -2
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts.map +1 -1
- package/dist/types/test/airtable_interface_mocks/{mock_airtable_interface_internal.d.ts → mock_airtable_interface.d.ts} +26 -18
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts.map +1 -0
- package/dist/types/test/airtable_interface_mocks/mock_base_data_stores.d.ts +51 -0
- package/dist/types/test/airtable_interface_mocks/mock_base_data_stores.d.ts.map +1 -0
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts +2 -2
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts.map +1 -1
- package/dist/types/test/test_helpers.d.ts +2 -0
- package/dist/types/test/test_helpers.d.ts.map +1 -1
- package/package.json +3 -1
- package/dist/types/src/testing/mock_airtable_interface.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface_internal.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/types/mutations.ts"],"names":[],"mappings":"AAAA,0CAA0C,CAAC,MAAM;AACjD,OAAO,EAAC,Y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ACzB,+BAA+B,GAC/B,oCAAoC,GACpC,yBAAyB,GACzB,0BAA0B,CAAC;AAEjC,cAAc;AACd,oBAAY,eAAe,GACrB,2CAA2C,GAC3C,oCAAoC,GACpC,oCAAoC,GACpC,2CAA2C,GAC3C,gCAAgC,GAChC,sCAAsC,GACtC,2CAA2C,GAC3C,gCAAgC,GAChC,iCAAiC,CAAC;AAExC,MAAM;AACN,MAAM,WAAW,+BAA+B;IAC5C,MAAM;IACN,aAAa,EAAE,IAAI,CAAC;CACvB;AAED,MAAM;AACN,MAAM,WAAW,iCAAiC;IAC9C,MAAM;IACN,aAAa,EAAE,KAAK,CAAC;IACrB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC/B;AAED,iGAAiG;AACjG,oBAAY,qBAAqB,GAC3B,+BAA+B,GAC/B,iCAAiC,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { ObjectMap } from '../private_utils';
|
|
3
3
|
import { FieldData, FieldPermissionData, FieldId } from './field';
|
|
4
4
|
import { ViewData, ViewId } from './view';
|
|
5
|
-
import { RecordData, RecordId } from './record';
|
|
6
5
|
/** */
|
|
7
6
|
export declare type TableId = string;
|
|
8
7
|
/** @hidden */
|
|
@@ -18,7 +17,6 @@ export interface TableData {
|
|
|
18
17
|
activeViewId: ViewId | null;
|
|
19
18
|
viewOrder: Array<ViewId>;
|
|
20
19
|
viewsById: ObjectMap<ViewId, ViewData>;
|
|
21
|
-
recordsById?: ObjectMap<RecordId, RecordData>;
|
|
22
20
|
description: string | null;
|
|
23
21
|
lock: TableLock | null;
|
|
24
22
|
externalSyncById: ExternalSyncById | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/types/table.ts"],"names":[],"mappings":"AAAA,6CAA6C,CAAC,MAAM;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,SAAS,EAAE,mBAA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AA;KAAC,CAAC;IACnE,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;CACnC"}
|
|
@@ -32,7 +32,7 @@ export declare enum ViewType {
|
|
|
32
32
|
}
|
|
33
33
|
/** @hidden */
|
|
34
34
|
export interface ViewFieldOrderData {
|
|
35
|
-
fieldIds:
|
|
35
|
+
fieldIds: ReadonlyArray<FieldId>;
|
|
36
36
|
visibleFieldCount: number;
|
|
37
37
|
}
|
|
38
38
|
/** @hidden */
|
|
@@ -43,11 +43,11 @@ export declare type ViewColorsByRecordIdData = ObjectMap<RecordId, Color | null
|
|
|
43
43
|
* @hidden
|
|
44
44
|
*/
|
|
45
45
|
export declare type GroupData = {
|
|
46
|
-
visibleRecordIds:
|
|
46
|
+
visibleRecordIds: ReadonlyArray<RecordId>;
|
|
47
47
|
groups: null;
|
|
48
48
|
} | {
|
|
49
49
|
visibleRecordIds: null;
|
|
50
|
-
groups:
|
|
50
|
+
groups: ReadonlyArray<GroupData>;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* GroupLevel provided by airtable - matches NormalizedGroupLevel
|
|
@@ -63,10 +63,5 @@ export interface ViewData {
|
|
|
63
63
|
id: ViewId;
|
|
64
64
|
name: string;
|
|
65
65
|
type: ViewType;
|
|
66
|
-
visibleRecordIds?: Array<RecordId>;
|
|
67
|
-
fieldOrder?: ViewFieldOrderData;
|
|
68
|
-
colorsByRecordId?: ViewColorsByRecordIdData;
|
|
69
|
-
groups?: Array<GroupData> | null;
|
|
70
|
-
groupLevels?: Array<GroupLevelData> | null;
|
|
71
66
|
}
|
|
72
67
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/types/view.ts"],"names":[],"mappings":"AAAA,4CAA4C,CAAC,MAAM;AACnD,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,KAAK,EAAC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S,CAAC,CAAC;AAErF;;;;GAIG;AACH,oBAAY,SAAS,GACf;IAGI,gBAAgB,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAE1C,MAAM,EAAE,IAAI,CAAC;CAChB,GACD;IAEI,gBAAgB,EAAE,IAAI,CAAC;IAEvB,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACpC,CAAC;AAER;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC7B;AAED,cAAc;AACd,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;CAElB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumType, ObjectMap } from '../private_utils';
|
|
2
|
-
export declare const iconNamesArray: readonly ["android", "apple", "apps", "ascending", "attachment", "automations", "autonumber", "barcode", "bell", "blocks", "bold", "bolt", "boltList", "book", "calendar", "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", "toggle", "trash", "twitter", "ul", "underline", "undo", "up", "upload", "video", "view", "warning", "windows", "x"];
|
|
2
|
+
export declare const iconNamesArray: readonly ["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"];
|
|
3
3
|
export declare const iconNames: {
|
|
4
4
|
number: "number";
|
|
5
5
|
search: "search";
|
|
@@ -65,6 +65,7 @@ export declare const iconNames: {
|
|
|
65
65
|
boltList: "boltList";
|
|
66
66
|
book: "book";
|
|
67
67
|
calendar: "calendar";
|
|
68
|
+
calendarDay: "calendarDay";
|
|
68
69
|
chart: "chart";
|
|
69
70
|
chat: "chat";
|
|
70
71
|
checkboxChecked: "checkboxChecked";
|
|
@@ -158,6 +159,7 @@ export declare const iconNames: {
|
|
|
158
159
|
tabs: "tabs";
|
|
159
160
|
team: "team";
|
|
160
161
|
teamLocked: "teamLocked";
|
|
162
|
+
timeline: "timeline";
|
|
161
163
|
trash: "trash";
|
|
162
164
|
twitter: "twitter";
|
|
163
165
|
undo: "undo";
|
|
@@ -172,7 +174,7 @@ export declare const deprecatedIconNameToReplacementName: Map<string, string>;
|
|
|
172
174
|
* [[ Story id="icon--example" title="Icon example" height="576px"]]
|
|
173
175
|
*/
|
|
174
176
|
export declare type IconName = EnumType<typeof iconNames>;
|
|
175
|
-
export declare const iconNamePropType: import("prop-types").Requireable<"number" | "search" | "bold" | "link" | "left" | "right" | "clipboard" | "show" | "hide" | "public" | "code" | "form" | "menu" | "ol" | "select" | "time" | "ul" | "video" | "filter" | "text" | "view" | "pause" | "play" | "toggle" | "up" | "down" | "day" | "lookup" | "group" | "checkbox" | "radio" | "collapse" | "paint" | "help" | "grid" | "italic" | "x" | "underline" | "caret" | "cursor" | "overflow" | "ascending" | "descending" | "edit" | "check" | "star" | "heart" | "thumbsUp" | "flag" | "lock" | "download" | "android" | "apple" | "apps" | "attachment" | "automations" | "autonumber" | "barcode" | "bell" | "blocks" | "bolt" | "boltList" | "book" | "calendar" | "chart" | "chat" | "checkboxChecked" | "checkboxUnchecked" | "checklist" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "cog" | "collapseSidebar" | "contacts" | "count" | "count1" | "cube" | "dayAuto" | "dedent" | "dollar" | "dragHandle" | "drive" | "duplicate" | "envelope" | "envelope1" | "expand" | "expand1" | "expandSidebar" | "feed" | "file" | "formula" | "fullscreen" | "gallery" | "gantt" | "gift" | "grid1" | "hide1" | "history" | "home" | "hyperlink" | "hyperlinkCancel" | "indent" | "info" | "kanban" | "laptop" | "lightbulb" | "link1" | "logout" | "mapPin" | "markdown" | "megaphone" | "minus" | "mobile" | "multicollaborator" | "multiselect" | "paragraph" | "paragraph1" | "percent" | "personal" | "personalAuto" | "phone" | "pivot" | "plus" | "plusFilled" | "premium" | "print" | "publish" | "quote" | "quote1" | "radioSelected" | "redo" | "redo1" | "richText" | "rollup" | "rollup1" | "rowHeightSmall" | "rowHeightMedium" | "rowHeightLarge" | "rowHeightExtraLarge" | "selectCaret" | "settings" | "shapes" | "share" | "share1" | "shareWithBolt" | "show1" | "slack" | "smiley" | "sort" | "stack" | "strikethrough" | "switcher" | "tabs" | "team" | "teamLocked" | "trash" | "twitter" | "undo" | "upload" | "warning" | "windows">;
|
|
177
|
+
export declare const iconNamePropType: import("prop-types").Requireable<"number" | "search" | "bold" | "link" | "left" | "right" | "clipboard" | "show" | "hide" | "public" | "code" | "form" | "menu" | "ol" | "select" | "time" | "ul" | "video" | "filter" | "text" | "view" | "pause" | "play" | "toggle" | "up" | "down" | "day" | "lookup" | "group" | "checkbox" | "radio" | "collapse" | "paint" | "help" | "grid" | "italic" | "x" | "underline" | "caret" | "cursor" | "overflow" | "ascending" | "descending" | "edit" | "check" | "star" | "heart" | "thumbsUp" | "flag" | "lock" | "download" | "android" | "apple" | "apps" | "attachment" | "automations" | "autonumber" | "barcode" | "bell" | "blocks" | "bolt" | "boltList" | "book" | "calendar" | "calendarDay" | "chart" | "chat" | "checkboxChecked" | "checkboxUnchecked" | "checklist" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "cog" | "collapseSidebar" | "contacts" | "count" | "count1" | "cube" | "dayAuto" | "dedent" | "dollar" | "dragHandle" | "drive" | "duplicate" | "envelope" | "envelope1" | "expand" | "expand1" | "expandSidebar" | "feed" | "file" | "formula" | "fullscreen" | "gallery" | "gantt" | "gift" | "grid1" | "hide1" | "history" | "home" | "hyperlink" | "hyperlinkCancel" | "indent" | "info" | "kanban" | "laptop" | "lightbulb" | "link1" | "logout" | "mapPin" | "markdown" | "megaphone" | "minus" | "mobile" | "multicollaborator" | "multiselect" | "paragraph" | "paragraph1" | "percent" | "personal" | "personalAuto" | "phone" | "pivot" | "plus" | "plusFilled" | "premium" | "print" | "publish" | "quote" | "quote1" | "radioSelected" | "redo" | "redo1" | "richText" | "rollup" | "rollup1" | "rowHeightSmall" | "rowHeightMedium" | "rowHeightLarge" | "rowHeightExtraLarge" | "selectCaret" | "settings" | "shapes" | "share" | "share1" | "shareWithBolt" | "show1" | "slack" | "smiley" | "sort" | "stack" | "strikethrough" | "switcher" | "tabs" | "team" | "teamLocked" | "timeline" | "trash" | "twitter" | "undo" | "upload" | "warning" | "windows">;
|
|
176
178
|
export declare const microIconNames: {
|
|
177
179
|
androidMicro: "androidMicro";
|
|
178
180
|
appleMicro: "appleMicro";
|
|
@@ -189,6 +191,7 @@ export declare const microIconNames: {
|
|
|
189
191
|
boltListMicro: "boltListMicro";
|
|
190
192
|
bookMicro: "bookMicro";
|
|
191
193
|
calendarMicro: "calendarMicro";
|
|
194
|
+
calendarDayMicro: "calendarDayMicro";
|
|
192
195
|
caretMicro: "caretMicro";
|
|
193
196
|
chartMicro: "chartMicro";
|
|
194
197
|
chatMicro: "chatMicro";
|
|
@@ -323,6 +326,7 @@ export declare const microIconNames: {
|
|
|
323
326
|
textMicro: "textMicro";
|
|
324
327
|
thumbsUpMicro: "thumbsUpMicro";
|
|
325
328
|
timeMicro: "timeMicro";
|
|
329
|
+
timelineMicro: "timelineMicro";
|
|
326
330
|
toggleMicro: "toggleMicro";
|
|
327
331
|
trashMicro: "trashMicro";
|
|
328
332
|
twitterMicro: "twitterMicro";
|
|
@@ -339,7 +343,7 @@ export declare const microIconNames: {
|
|
|
339
343
|
};
|
|
340
344
|
/** @hidden */
|
|
341
345
|
export declare type MicroIconName = EnumType<typeof microIconNames>;
|
|
342
|
-
export declare const microIconNamePropType: import("prop-types").Requireable<"androidMicro" | "appleMicro" | "appsMicro" | "ascendingMicro" | "attachmentMicro" | "automationsMicro" | "autonumberMicro" | "barcodeMicro" | "bellMicro" | "blocksMicro" | "boldMicro" | "boltMicro" | "boltListMicro" | "bookMicro" | "calendarMicro" | "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" | "toggleMicro" | "trashMicro" | "twitterMicro" | "ulMicro" | "underlineMicro" | "undoMicro" | "upMicro" | "uploadMicro" | "videoMicro" | "viewMicro" | "warningMicro" | "windowsMicro" | "xMicro">;
|
|
346
|
+
export declare const microIconNamePropType: import("prop-types").Requireable<"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">;
|
|
343
347
|
/** @hidden */
|
|
344
348
|
export declare type AllIconName = IconName & MicroIconName;
|
|
345
349
|
export declare const allIconPaths: ObjectMap<AllIconName, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon_config.d.ts","sourceRoot":"","sources":["../../../../src/ui/icon_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAA0B,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAMzF,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"icon_config.d.ts","sourceRoot":"","sources":["../../../../src/ui/icon_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAA0B,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAMzF,eAAO,MAAM,cAAc,4wDAsKjB,CAAC;AACX,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgC,CAAC;AACvD,eAAO,MAAM,mCAAmC,qBAAgC,CAAC;AACjF;;;;GAIG;AACH,oBAAY,QAAQ,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAClD,eAAO,MAAM,gBAAgB,u8DAAoC,CAAC;AAwKlE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqC,CAAC;AACjE,cAAc;AACd,oBAAY,aAAa,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,eAAO,MAAM,qBAAqB,yuFAAyC,CAAC;AA0pB5E,cAAc;AACd,oBAAY,WAAW,GAAG,QAAQ,GAAG,aAAa,CAAC;AACnD,eAAO,MAAM,YAAY,EAAE,SAAS,CAAC,WAAW,EAAE,MAAM,CAG7C,CAAC"}
|
|
@@ -81,7 +81,7 @@ interface LinkProps extends AriaProps, LinkStyleProps, TooltipAnchorProps<HTMLAn
|
|
|
81
81
|
/** Data attributes that are spread onto the element, e.g. `dataAttributes={{'data-*': '...'}}`. */
|
|
82
82
|
dataAttributes?: DataAttributesProp;
|
|
83
83
|
/** The contents of the link. */
|
|
84
|
-
children
|
|
84
|
+
children?: React.ReactNode | string;
|
|
85
85
|
}
|
|
86
86
|
declare const ForwardedRefLink: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
87
87
|
export default ForwardedRefLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/ui/link.tsx"],"names":[],"mappings":"AAAA,wCAAwC,CAAC,MAAM;AAC/C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAa,QAAQ,EAAyB,MAAM,kBAAkB,CAAC;AAG9E,OAAO,EAAgB,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAyB,kBAAkB,EAAC,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAGH,aAAa,EAGb,aAAa,EAGb,UAAU,EAGV,gBAAgB,EAGhB,gBAAgB,EAGhB,eAAe,EAGf,eAAe,EAElB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAyB,kBAAkB,EAAC,MAAM,8BAA8B,CAAC;AACx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,oFAAoF;IACpF,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,gHAAgH;IAChH,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC,YAAY,CAAC;IACrC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0BAA0B;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,mGAAmG;IACnG,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;CACvC;AA+ID,QAAA,MAAM,gBAAgB,qFAAuD,CAAC;AAoB9E,eAAe,gBAAgB,CAAC"}
|
|
@@ -20,7 +20,7 @@ import GlobalConfig from '../global_config';
|
|
|
20
20
|
* <React.Fragment>
|
|
21
21
|
* <Button icon="minus" onClick={decrement} disabled={!isEnabled} ariaLabel="decrease"/>
|
|
22
22
|
* {count}
|
|
23
|
-
* <Button icon="plus" onClick={increment} disabled={!isEnabled}
|
|
23
|
+
* <Button icon="plus" onClick={increment} disabled={!isEnabled} ariaLabel="increase"/>
|
|
24
24
|
* </React.Fragment>
|
|
25
25
|
* );
|
|
26
26
|
* }
|
|
@@ -9,5 +9,5 @@ export { ViewportSizeConstraint } from './types/viewport';
|
|
|
9
9
|
export { GlobalConfigUpdate, GlobalConfigData, GlobalConfigArray, GlobalConfigObject, } from './types/global_config';
|
|
10
10
|
export { RequestJson, ResponseJson } from './types/backend_fetch_types';
|
|
11
11
|
export { default as Sdk } from './sdk';
|
|
12
|
-
export {
|
|
12
|
+
export { AbstractMockAirtableInterface } from './testing/abstract_mock_airtable_interface';
|
|
13
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,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,
|
|
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"}
|
|
@@ -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;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake_cell_renderer.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/fake_cell_renderer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"fake_cell_renderer.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/fake_cell_renderer.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAIhD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,EAAE;IAAC,SAAS,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAA;CAAC,eAoI/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field_type.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/field_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD,eAAO,MAAM,kBAAkB,EAAE,SAAS,CAAC,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"field_type.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/field_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD,eAAO,MAAM,kBAAkB,EAAE,SAAS,CAAC,SAAS,EAAE,MAAM,CAiC3D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,SAAS,EAAE,QAAQ,CAiC/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync_source_options.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/sync_source_options.ts"],"names":[],"mappings":";;;;;AAAA,wBAWE"}
|
|
@@ -0,0 +1,121 @@
|
|
|
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, GroupData, GroupLevelData } 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';
|
|
10
|
+
export declare function convertFixtureDataToSdkInitData(fixtureData: FixtureData): SdkInitData;
|
|
11
|
+
/**
|
|
12
|
+
* A complete set of information necessary to initialize a simulated Airtable
|
|
13
|
+
* Base in automated test environments. This is currently copied from
|
|
14
|
+
* block-testing.
|
|
15
|
+
* TODO(fredz): consider moving this into src/testing and exporting it as
|
|
16
|
+
* part of unstable_testing_utils.
|
|
17
|
+
*
|
|
18
|
+
* Unlike SdkInitData which does not contain record data by design,
|
|
19
|
+
* FixtureData contains it in fixtureData.base.tables[number].records,
|
|
20
|
+
* and relies on dependent modules to simulate the hyperbase behavior of
|
|
21
|
+
* only making those records after corresponding necessary calls to
|
|
22
|
+
* AirtableInterface.
|
|
23
|
+
*/
|
|
24
|
+
export interface FixtureData {
|
|
25
|
+
/** A representation of the state of an Airtable Base */
|
|
26
|
+
base: {
|
|
27
|
+
id: BaseId;
|
|
28
|
+
name: string;
|
|
29
|
+
color?: string;
|
|
30
|
+
tables: Array<TableFixtureData>;
|
|
31
|
+
collaborators: Array<CollaboratorData & {
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/** A representation of the state of a Table */
|
|
37
|
+
export interface TableFixtureData {
|
|
38
|
+
/** A unique identifier for the simulated Tbale */
|
|
39
|
+
id: TableId;
|
|
40
|
+
/** The name to assign to the simulated Table */
|
|
41
|
+
name: string;
|
|
42
|
+
/** The description to assign to the simulated Table */
|
|
43
|
+
description: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Fixture data for the simulated Fields that should be present in the
|
|
46
|
+
* simulated Table when it is initialized.
|
|
47
|
+
*/
|
|
48
|
+
fields: Array<FieldFixtureData>;
|
|
49
|
+
/**
|
|
50
|
+
* Fixture data for the simulated Views that should be present in the
|
|
51
|
+
* simulated Table when it is initialized.
|
|
52
|
+
*/
|
|
53
|
+
views: Array<ViewFixtureData>;
|
|
54
|
+
/**
|
|
55
|
+
* Fixture data for the simulated Records that should be present in the
|
|
56
|
+
* simulated Table when it is initialized.
|
|
57
|
+
*/
|
|
58
|
+
records: Array<RecordFixtureData>;
|
|
59
|
+
}
|
|
60
|
+
/** A representation of the state of a Field */
|
|
61
|
+
export interface FieldFixtureData {
|
|
62
|
+
/** A unique identifier for the simulated Field */
|
|
63
|
+
id: FieldId;
|
|
64
|
+
/** The name to assign to the simulated Field */
|
|
65
|
+
name: string;
|
|
66
|
+
/** The description to assign to the simulated Field */
|
|
67
|
+
description: string | null;
|
|
68
|
+
/** The type of the simulated Field */
|
|
69
|
+
type: FieldType;
|
|
70
|
+
/** Options associated with the simulated Field */
|
|
71
|
+
options: null | {
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/** A representation of the state of a View */
|
|
76
|
+
export interface ViewFixtureData {
|
|
77
|
+
/** A unique identifier for the simulated View */
|
|
78
|
+
id: ViewId;
|
|
79
|
+
/** The name to assign to the simulated View */
|
|
80
|
+
name: string;
|
|
81
|
+
/** The type of the simulated view */
|
|
82
|
+
type: ViewType;
|
|
83
|
+
/**
|
|
84
|
+
* A description of how simulated Fields should be sequenced within the
|
|
85
|
+
* simulated View
|
|
86
|
+
*/
|
|
87
|
+
fieldOrder: {
|
|
88
|
+
fieldIds: Array<FieldId>;
|
|
89
|
+
visibleFieldCount: number;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* A set of references to Records contained within the simulated view. This
|
|
93
|
+
* is distinct from the complete fixture data for the simulated Records.
|
|
94
|
+
*/
|
|
95
|
+
records: Array<ViewRecordFixtureData>;
|
|
96
|
+
groups?: Array<GroupData>;
|
|
97
|
+
groupLevels?: Array<GroupLevelData>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A reference to Record contained within a simulated view. This is disctinct
|
|
101
|
+
* from the complete fixture data for the simulated Record.
|
|
102
|
+
*/
|
|
103
|
+
interface ViewRecordFixtureData {
|
|
104
|
+
/** A value which uniquely identifies a Record within a base. */
|
|
105
|
+
id: RecordId;
|
|
106
|
+
/** The color associated with a Record's membership in a View. */
|
|
107
|
+
color: Color | null;
|
|
108
|
+
}
|
|
109
|
+
/** A representation of the state of a Record */
|
|
110
|
+
export interface RecordFixtureData {
|
|
111
|
+
/** A unique identifier for the simulated Record */
|
|
112
|
+
id: RecordId;
|
|
113
|
+
/** The number of comments to assign to the simulated record */
|
|
114
|
+
commentCount: number;
|
|
115
|
+
/** The time the simulated record should appear to have been created */
|
|
116
|
+
createdTime: string;
|
|
117
|
+
/** A mapping of field identifiers to cell values */
|
|
118
|
+
cellValuesByFieldId: ObjectMap<FieldId, unknown>;
|
|
119
|
+
}
|
|
120
|
+
export {};
|
|
121
|
+
//# sourceMappingURL=fixture_data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixture_data.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/fixture_data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,OAAO,EAAY,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,OAAO,EAAE,SAAS,EAAY,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAe,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAsB,WAAW,EAAC,MAAM,oCAAoC,CAAC;AAWpF,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAwCrF;AA8BD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW;IACxB,wDAAwD;IACxD,IAAI,EAAE;QACF,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAChC,aAAa,EAAE,KAAK,CAAC,gBAAgB,GAAG;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,CAAC,CAAC;KAChE,CAAC;CACL;AAED,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC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CAAC;IACb,iEAAiE;IACjE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAED,gDAAgD;AAChD,MAAM,WAAW,iBAAiB;IAC9B,mDAAmD;IACnD,EAAE,EAAE,QAAQ,CAAC;IACb,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,mBAAmB,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;CACpD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const linkedRecords:
|
|
1
|
+
import { FixtureData } from './fixture_data';
|
|
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":"
|
|
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,26 +1,42 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import { Aggregators, FieldTypeProvider, UrlConstructor, GlobalConfigHelpers, IdGenerator, VisList,
|
|
3
|
-
import
|
|
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';
|
|
4
|
+
import { AbstractMockAirtableInterface } from '../../src/testing/abstract_mock_airtable_interface';
|
|
5
|
+
import { ModelChange } from '../../src/types/base';
|
|
4
6
|
import { TableId } from '../../src/types/table';
|
|
5
|
-
import {
|
|
7
|
+
import { ViewId } from '../../src/types/view';
|
|
6
8
|
import { CursorData } from '../../src/types/cursor';
|
|
7
|
-
import { RecordData } from '../../src/types/record';
|
|
8
9
|
import { RecordActionData } from '../../src/types/record_action_data';
|
|
9
10
|
import { RequestJson, ResponseJson } from '../../src/types/backend_fetch_types';
|
|
11
|
+
import { MockBaseDataStore } from './mock_base_data_stores';
|
|
12
|
+
import { FixtureData } from './fixture_data';
|
|
10
13
|
/**
|
|
11
|
-
* An implementation of the
|
|
14
|
+
* An implementation of the AbstractMockAirtableInterface designed for use in the
|
|
12
15
|
* Blocks SDK internal automated test suite. Provides Jest spies for all
|
|
13
16
|
* available methods (and which resets the state of those spies with every call
|
|
14
17
|
* to `reset`).
|
|
15
18
|
*/
|
|
16
|
-
declare class
|
|
17
|
-
static projectTrackerExample(): jest.Mocked<
|
|
18
|
-
static linkedRecordsExample(): jest.Mocked<
|
|
19
|
+
export declare class MockAirtableInterface extends AbstractMockAirtableInterface {
|
|
20
|
+
static projectTrackerExample(): jest.Mocked<MockAirtableInterface>;
|
|
21
|
+
static linkedRecordsExample(): jest.Mocked<MockAirtableInterface>;
|
|
22
|
+
static createFromFixtureData(fixtureData: FixtureData): jest.Mocked<MockAirtableInterface>;
|
|
23
|
+
_mockBaseDataStore: MockBaseDataStore;
|
|
24
|
+
_initialFixtureData: FixtureData;
|
|
25
|
+
constructor(fixtureData: FixtureData);
|
|
26
|
+
triggerModelUpdates(changes: ReadonlyArray<ModelChange>): void;
|
|
19
27
|
get aggregators(): jest.Mocked<Aggregators>;
|
|
20
28
|
get fieldTypeProvider(): jest.Mocked<FieldTypeProvider>;
|
|
21
29
|
get urlConstructor(): jest.Mocked<UrlConstructor>;
|
|
22
30
|
get globalConfigHelpers(): jest.Mocked<GlobalConfigHelpers>;
|
|
23
31
|
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;
|
|
24
40
|
/**
|
|
25
41
|
* Revert the mock interface to its initial state. This includes:
|
|
26
42
|
*
|
|
@@ -29,15 +45,8 @@ declare class MockAirtableInterfaceInternal extends MockAirtableInterface {
|
|
|
29
45
|
* - recreating the Jest "spies" for every instance method
|
|
30
46
|
*/
|
|
31
47
|
reset(): void;
|
|
32
|
-
|
|
33
|
-
fetchAndSubscribeToCellValuesInFieldsAsync(tableId: TableId, fieldIds: Array<FieldId>): Promise<any>;
|
|
48
|
+
createVisListWithRecordIds(...args: Parameters<AbstractMockAirtableInterface['createVisListWithRecordIds']>): jest.Mocked<VisList>;
|
|
34
49
|
fetchAndSubscribeToCursorDataAsync(): Promise<CursorData>;
|
|
35
|
-
fetchAndSubscribeToTableDataAsync(tableId: string): Promise<{
|
|
36
|
-
recordsById: {
|
|
37
|
-
[recordId: string]: RecordData;
|
|
38
|
-
};
|
|
39
|
-
}>;
|
|
40
|
-
fetchAndSubscribeToViewDataAsync(tableId: string, viewId: string): Promise<PartialViewData>;
|
|
41
50
|
fetchDefaultCellValuesByFieldIdAsync(): Promise<{
|
|
42
51
|
[key: string]: unknown;
|
|
43
52
|
}>;
|
|
@@ -56,5 +65,4 @@ declare class MockAirtableInterfaceInternal extends MockAirtableInterface {
|
|
|
56
65
|
sendStat(): void;
|
|
57
66
|
performBackendFetchAsync(requestJson: RequestJson): Promise<ResponseJson>;
|
|
58
67
|
}
|
|
59
|
-
|
|
60
|
-
//# sourceMappingURL=mock_airtable_interface_internal.d.ts.map
|
|
68
|
+
//# sourceMappingURL=mock_airtable_interface.d.ts.map
|
|
@@ -0,0 +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;AAG9E,OAAO,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAC1D,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;IAIrD,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,mBAAmB,EAAE,WAAW,CAAC;gB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O,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAG/E,UAAU;IAGV,aAAa;IAGb,QAAQ;IAGR,wBAAwB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;CAG5E"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BlockQuerySubscriptionOptions, RecordStoreForTable, ViewStore } from '../../src/types/airtable_interface';
|
|
2
|
+
import { BlockQuerySpec, BlockQueryId, BlockQuerySubscriptionOnChangeCallback, QuerySpecsResponse } from '../../src/types/block_query_spec';
|
|
3
|
+
import { Color } from '../../src/colors';
|
|
4
|
+
import { FieldId } from '../../src/types/field';
|
|
5
|
+
import { RecordId } from '../../src/types/record';
|
|
6
|
+
import { TableId } from '../../src/types/table';
|
|
7
|
+
import { ViewId } from '../../src/types/view';
|
|
8
|
+
import { ObjectMap } from '../../src/private_utils';
|
|
9
|
+
import { MockAirtableInterface } from './mock_airtable_interface';
|
|
10
|
+
import { FixtureData, TableFixtureData, RecordFixtureData, ViewFixtureData, FieldFixtureData } from './fixture_data';
|
|
11
|
+
export declare class MockBaseDataStore {
|
|
12
|
+
_mockAirtableInterface: MockAirtableInterface;
|
|
13
|
+
_fixtureData: FixtureData;
|
|
14
|
+
_tablesById: ObjectMap<TableId, TableFixtureData>;
|
|
15
|
+
_subscribedQuerySpecs: ObjectMap<BlockQueryId, {
|
|
16
|
+
querySpec: BlockQuerySpec;
|
|
17
|
+
onChangeCallback?: BlockQuerySubscriptionOnChangeCallback;
|
|
18
|
+
}>;
|
|
19
|
+
_deletedRecordIds: Array<RecordId>;
|
|
20
|
+
_onUnsubscribeFromQueryCallback: (() => void) | null;
|
|
21
|
+
_upperQueryIdsFromPreviousTests: number;
|
|
22
|
+
_shouldQueriesFail: boolean;
|
|
23
|
+
constructor(mockAirtableInterface: MockAirtableInterface, fixtureData: FixtureData);
|
|
24
|
+
setSubscribeToQueryFailureMode(shouldQueriesFail: boolean): void;
|
|
25
|
+
subscribeToQueryAndPopulateStoresAsync(querySpec: BlockQuerySpec, options: BlockQuerySubscriptionOptions): Promise<QuerySpecsResponse>;
|
|
26
|
+
unsubscribeFromQueryIdsAsync(querySpecIds: Array<BlockQueryId>): Promise<{
|
|
27
|
+
status: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
setTableRecordsAsync(tableId: TableId, fixtureRecords: Array<RecordFixtureData>): Promise<void>;
|
|
30
|
+
deleteRecordAsync(tableId: TableId, recordId: RecordId): Promise<void>;
|
|
31
|
+
createRecordAsync(tableId: TableId, initialFixtureRecord: RecordFixtureData): Promise<void>;
|
|
32
|
+
updateRecord(tableId: TableId, recordId: RecordId, fieldId: FieldId, newValue: unknown, opts?: {
|
|
33
|
+
allowUnexpected?: boolean;
|
|
34
|
+
shouldForceOnChangeCallbackWhenNoQueriesMatchRecord?: boolean;
|
|
35
|
+
shouldCallSubscriptionChangesWithEmptyArray?: boolean;
|
|
36
|
+
}): void;
|
|
37
|
+
updateCommentCount(tableId: TableId, recordId: RecordId, newCommentCount: number): void;
|
|
38
|
+
updateColorInView(tableId: TableId, viewId: ViewId, recordId: RecordId, newColor: Color | null): void;
|
|
39
|
+
getTableRecordStoreIfExists(tableId: TableId): RecordStoreForTable | null;
|
|
40
|
+
_getPartiallyLoadedRecordIds(fixtureTable: TableFixtureData): string[];
|
|
41
|
+
addFieldToFixtureTable(tableId: TableId, fieldFixtureData: FieldFixtureData): void;
|
|
42
|
+
_isRecordCellValueLoadedForFieldId(fixtureTable: TableFixtureData, recordId: RecordId, fieldId: FieldId): boolean;
|
|
43
|
+
_getRecordCellValueByFieldId(fixtureTable: TableFixtureData, recordId: RecordId, fieldId: FieldId): unknown;
|
|
44
|
+
_getRecordCommentCount(fixtureTable: TableFixtureData, recordId: RecordId): number;
|
|
45
|
+
_getRecordCreatedTime(fixtureTable: TableFixtureData, recordId: RecordId): Date;
|
|
46
|
+
setViewData(tableId: TableId, viewId: ViewId, viewFixtureData: Partial<ViewFixtureData>): void;
|
|
47
|
+
getViewMetadataStoreIfExists(tableId: TableId, viewId: ViewId): ViewStore | null;
|
|
48
|
+
getCountOfQueriesSubscribed(): number;
|
|
49
|
+
onUnsubscribeFromQuery(onUnsubscribeFromQueryCallback: () => void): void;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=mock_base_data_stores.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock_base_data_stores.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/mock_base_data_stores.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,6BAA6B,EAC7B,mBAAmB,EACnB,SAAS,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEH,cAAc,EAEd,YAAY,EAEZ,sCAAsC,EACtC,kBAAkB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACH,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EACnB,MAAM,gBAAgB,CAAC;AAIxB,qBAAa,iBAAiB;IAC1B,sBAAsB,EAAE,qBAAqB,CAAC;IAC9C,YAAY,EAAE,WAAW,CAAC;IAC1B,WAAW,EAAE,SAAS,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAM;IACvD,qBAAqB,EAAE,SAAS,CAC5B,YAAY,EACZ;QACI,SAAS,EAAE,cAAc,CAAC;QAC1B,gBAAgB,CAAC,EAAE,sCAAs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uC1B,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,GAAG,IAAI;IAsBzE,4BAA4B,CAAC,YAAY,EAAE,gBAAgB;IAyB3D,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB;IAsB3E,kCAAkC,CAC9B,YAAY,EAAE,gBAAgB,EAC9B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO;IAwBpB,4BAA4B,CACxB,YAAY,EAAE,gBAAgB,EAC9B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO;IAiBpB,sBAAsB,CAAC,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ;IAQzE,qBAAqB,CAAC,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ;IAQxE,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC;IAsCvF,4BAA4B,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAmBhF,2BAA2B,IAAI,MAAM;IAGrC,sBAAsB,CAAC,8BAA8B,EAAE,MAAM,IAAI,GAAG,IAAI;CAG3E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const projectTracker:
|
|
1
|
+
import { FixtureData } from './fixture_data';
|
|
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":"
|
|
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,10 +1,12 @@
|
|
|
1
1
|
import { ReactWrapper } from 'enzyme';
|
|
2
2
|
import Watchable from '../src/watchable';
|
|
3
|
+
import { MockAirtableInterface } from './airtable_interface_mocks/mock_airtable_interface';
|
|
3
4
|
/**
|
|
4
5
|
* include a section of code that must pass flow but shouldn't actually be executed. Use it along
|
|
5
6
|
* with '// flow-expect-error' to write tests for flow-type definitions that won't be run by jest.
|
|
6
7
|
*/
|
|
7
8
|
export declare function flowTest(description: string, fn: () => unknown): void;
|
|
9
|
+
export declare const waitForAllQueriesToFullyUnsubscribeAsync: (mockAirtableInterface: MockAirtableInterface) => Promise<unknown>;
|
|
8
10
|
export declare function getComputedStylePropValue<Props extends {}>(wrapper: ReactWrapper<Props>, styleProp: string): string;
|
|
9
11
|
export declare function waitForWatchKeyAsync<Key extends string>(model: Watchable<Key>, key: Key): Promise<void>;
|
|
10
12
|
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;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"}
|