@airtable/blocks 0.0.0-experimental-f1c9010b3-20250609 → 0.0.0-experimental-15dc8a3ea-20250616
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/base/models/linked_records_query_result.js +2 -2
- package/dist/cjs/base/models/models.js +5 -5
- package/dist/cjs/base/models/mutations.js +86 -264
- package/dist/cjs/base/models/record_query_result.js +5 -5
- package/dist/cjs/base/models/table.js +1 -1070
- package/dist/cjs/base/types/field.js +1 -0
- package/dist/cjs/base/types/mutations.js +0 -27
- package/dist/cjs/base/ui/cell_renderer.js +2 -2
- package/dist/cjs/base/ui/field_picker.js +2 -2
- package/dist/cjs/base/ui/record_card.js +13 -13
- package/dist/cjs/base/unstable_testing_utils.js +3 -2
- package/dist/cjs/interface/models/models.js +5 -5
- package/dist/cjs/interface/models/mutations.js +40 -26
- package/dist/cjs/interface/models/record.js +27 -2
- package/dist/cjs/interface/types/airtable_interface.js +1 -0
- package/dist/cjs/interface/types/field.js +1 -0
- package/dist/cjs/shared/models/field_core.js +3 -3
- package/dist/cjs/shared/models/mutations_core.js +268 -0
- package/dist/cjs/shared/models/record_core.js +4 -4
- package/dist/cjs/shared/models/table_core.js +1070 -0
- package/dist/cjs/shared/types/mutations_core.js +28 -1
- package/dist/types/src/base/models/base.d.ts +1 -1
- package/dist/types/src/base/models/base.d.ts.map +1 -1
- package/dist/types/src/base/models/field.d.ts +1 -1
- package/dist/types/src/base/models/field.d.ts.map +1 -1
- package/dist/types/src/base/models/models.d.ts +1 -1
- package/dist/types/src/base/models/models.d.ts.map +1 -1
- package/dist/types/src/base/models/mutations.d.ts.map +1 -1
- package/dist/types/src/base/models/record.d.ts +5 -1
- package/dist/types/src/base/models/record.d.ts.map +1 -1
- package/dist/types/src/base/models/table.d.ts +3 -836
- package/dist/types/src/base/models/table.d.ts.map +1 -1
- package/dist/types/src/base/types/airtable_interface.d.ts +1 -1
- package/dist/types/src/base/types/airtable_interface.d.ts.map +1 -1
- package/dist/types/src/base/types/base.d.ts +5 -2
- package/dist/types/src/base/types/base.d.ts.map +1 -1
- package/dist/types/src/base/types/field.d.ts +8 -0
- package/dist/types/src/base/types/field.d.ts.map +1 -0
- package/dist/types/src/base/types/mutations.d.ts +7 -90
- package/dist/types/src/base/types/mutations.d.ts.map +1 -1
- package/dist/types/src/base/types/table.d.ts +8 -2
- package/dist/types/src/base/types/table.d.ts.map +1 -1
- package/dist/types/src/base/ui/field_picker.d.ts +1 -1
- package/dist/types/src/base/ui/field_picker.d.ts.map +1 -1
- package/dist/types/src/base/unstable_testing_utils.d.ts +2 -1
- package/dist/types/src/base/unstable_testing_utils.d.ts.map +1 -1
- package/dist/types/src/interface/models/models.d.ts +1 -1
- package/dist/types/src/interface/models/models.d.ts.map +1 -1
- package/dist/types/src/interface/models/mutations.d.ts.map +1 -1
- package/dist/types/src/interface/models/record.d.ts +17 -0
- package/dist/types/src/interface/models/record.d.ts.map +1 -1
- package/dist/types/src/interface/types/airtable_interface.d.ts +12 -2
- package/dist/types/src/interface/types/airtable_interface.d.ts.map +1 -1
- package/dist/types/src/interface/types/base.d.ts +5 -2
- package/dist/types/src/interface/types/base.d.ts.map +1 -1
- package/dist/types/src/interface/types/field.d.ts +10 -0
- package/dist/types/src/interface/types/field.d.ts.map +1 -0
- package/dist/types/src/interface/types/mutations.d.ts +3 -0
- package/dist/types/src/interface/types/mutations.d.ts.map +1 -1
- package/dist/types/src/interface/types/table.d.ts +14 -2
- package/dist/types/src/interface/types/table.d.ts.map +1 -1
- package/dist/types/src/sdk_mode.d.ts +8 -2
- package/dist/types/src/sdk_mode.d.ts.map +1 -1
- package/dist/types/src/shared/models/field_core.d.ts +2 -2
- package/dist/types/src/shared/models/field_core.d.ts.map +1 -1
- package/dist/types/src/shared/models/mutations_core.d.ts.map +1 -1
- package/dist/types/src/shared/models/table_core.d.ts +835 -2
- package/dist/types/src/shared/models/table_core.d.ts.map +1 -1
- package/dist/types/src/shared/types/airtable_interface_core.d.ts +9 -9
- package/dist/types/src/shared/types/airtable_interface_core.d.ts.map +1 -1
- package/dist/types/src/shared/types/base_core.d.ts +3 -3
- package/dist/types/src/shared/types/base_core.d.ts.map +1 -1
- package/dist/types/src/shared/types/{field.d.ts → field_core.d.ts} +3 -3
- package/dist/types/src/shared/types/field_core.d.ts.map +1 -0
- package/dist/types/src/shared/types/mutations_core.d.ts +90 -2
- package/dist/types/src/shared/types/mutations_core.d.ts.map +1 -1
- package/dist/types/src/shared/types/table_core.d.ts +3 -8
- package/dist/types/src/shared/types/table_core.d.ts.map +1 -1
- package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts +1 -1
- package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts.map +1 -1
- package/package.json +2 -16
- package/CHANGELOG.md +0 -561
- package/dist/types/src/shared/types/field.d.ts.map +0 -1
- package/dist/types/stories/all_controls.stories.d.ts +0 -10
- package/dist/types/stories/all_controls.stories.d.ts.map +0 -1
- package/dist/types/stories/box/appearance.stories.d.ts +0 -21
- package/dist/types/stories/box/appearance.stories.d.ts.map +0 -1
- package/dist/types/stories/box/box.stories.d.ts +0 -45
- package/dist/types/stories/box/box.stories.d.ts.map +0 -1
- package/dist/types/stories/box/dimensions.stories.d.ts +0 -24
- package/dist/types/stories/box/dimensions.stories.d.ts.map +0 -1
- package/dist/types/stories/box/flex_container.stories.d.ts +0 -24
- package/dist/types/stories/box/flex_container.stories.d.ts.map +0 -1
- package/dist/types/stories/box/flex_item.stories.d.ts +0 -25
- package/dist/types/stories/box/flex_item.stories.d.ts.map +0 -1
- package/dist/types/stories/box/position.stories.d.ts +0 -25
- package/dist/types/stories/box/position.stories.d.ts.map +0 -1
- package/dist/types/stories/box/spacing.stories.d.ts +0 -39
- package/dist/types/stories/box/spacing.stories.d.ts.map +0 -1
- package/dist/types/stories/box/typography.stories.d.ts +0 -33
- package/dist/types/stories/box/typography.stories.d.ts.map +0 -1
- package/dist/types/stories/button.stories.d.ts +0 -48
- package/dist/types/stories/button.stories.d.ts.map +0 -1
- package/dist/types/stories/cell_renderer.stories.d.ts +0 -11
- package/dist/types/stories/cell_renderer.stories.d.ts.map +0 -1
- package/dist/types/stories/choice_token.stories.d.ts +0 -24
- package/dist/types/stories/choice_token.stories.d.ts.map +0 -1
- package/dist/types/stories/collaborator_token.stories.d.ts +0 -29
- package/dist/types/stories/collaborator_token.stories.d.ts.map +0 -1
- package/dist/types/stories/color_palette.stories.d.ts +0 -12
- package/dist/types/stories/color_palette.stories.d.ts.map +0 -1
- package/dist/types/stories/confirmation_dialog.stories.d.ts +0 -10
- package/dist/types/stories/confirmation_dialog.stories.d.ts.map +0 -1
- package/dist/types/stories/dialog.stories.d.ts +0 -10
- package/dist/types/stories/dialog.stories.d.ts.map +0 -1
- package/dist/types/stories/field_icon.stories.d.ts +0 -10
- package/dist/types/stories/field_icon.stories.d.ts.map +0 -1
- package/dist/types/stories/field_picker.stories.d.ts +0 -12
- package/dist/types/stories/field_picker.stories.d.ts.map +0 -1
- package/dist/types/stories/form_field.stories.d.ts +0 -33
- package/dist/types/stories/form_field.stories.d.ts.map +0 -1
- package/dist/types/stories/heading.size.stories.d.ts +0 -19
- package/dist/types/stories/heading.size.stories.d.ts.map +0 -1
- package/dist/types/stories/heading.stories.d.ts +0 -33
- package/dist/types/stories/heading.stories.d.ts.map +0 -1
- package/dist/types/stories/helpers/attachments.d.ts +0 -4
- package/dist/types/stories/helpers/attachments.d.ts.map +0 -1
- package/dist/types/stories/helpers/categorize_style_props.d.ts +0 -14
- package/dist/types/stories/helpers/categorize_style_props.d.ts.map +0 -1
- package/dist/types/stories/helpers/choice_options.d.ts +0 -7
- package/dist/types/stories/helpers/choice_options.d.ts.map +0 -1
- package/dist/types/stories/helpers/code_block.d.ts +0 -5
- package/dist/types/stories/helpers/code_block.d.ts.map +0 -1
- package/dist/types/stories/helpers/code_utils.d.ts +0 -32
- package/dist/types/stories/helpers/code_utils.d.ts.map +0 -1
- package/dist/types/stories/helpers/collaborator_options.d.ts +0 -7
- package/dist/types/stories/helpers/collaborator_options.d.ts.map +0 -1
- package/dist/types/stories/helpers/example.d.ts +0 -39
- package/dist/types/stories/helpers/example.d.ts.map +0 -1
- package/dist/types/stories/helpers/example_code_panel.d.ts +0 -10
- package/dist/types/stories/helpers/example_code_panel.d.ts.map +0 -1
- package/dist/types/stories/helpers/fake_cell_renderer.d.ts +0 -7
- package/dist/types/stories/helpers/fake_cell_renderer.d.ts.map +0 -1
- package/dist/types/stories/helpers/fake_foreign_record.d.ts +0 -5
- package/dist/types/stories/helpers/fake_foreign_record.d.ts.map +0 -1
- package/dist/types/stories/helpers/fake_record_card.d.ts +0 -13
- package/dist/types/stories/helpers/fake_record_card.d.ts.map +0 -1
- package/dist/types/stories/helpers/field_type.d.ts +0 -6
- package/dist/types/stories/helpers/field_type.d.ts.map +0 -1
- package/dist/types/stories/helpers/raf_throttle.d.ts +0 -5
- package/dist/types/stories/helpers/raf_throttle.d.ts.map +0 -1
- package/dist/types/stories/helpers/style_prop_list.d.ts +0 -9
- package/dist/types/stories/helpers/style_prop_list.d.ts.map +0 -1
- package/dist/types/stories/helpers/sync_source_options.d.ts +0 -7
- package/dist/types/stories/helpers/sync_source_options.d.ts.map +0 -1
- package/dist/types/stories/helpers/use_resizable_panel.d.ts +0 -27
- package/dist/types/stories/helpers/use_resizable_panel.d.ts.map +0 -1
- package/dist/types/stories/icon.stories.d.ts +0 -18
- package/dist/types/stories/icon.stories.d.ts.map +0 -1
- package/dist/types/stories/icon_example.d.ts +0 -3
- package/dist/types/stories/icon_example.d.ts.map +0 -1
- package/dist/types/stories/input.stories.d.ts +0 -27
- package/dist/types/stories/input.stories.d.ts.map +0 -1
- package/dist/types/stories/label.stories.d.ts +0 -36
- package/dist/types/stories/label.stories.d.ts.map +0 -1
- package/dist/types/stories/link.stories.d.ts +0 -45
- package/dist/types/stories/link.stories.d.ts.map +0 -1
- package/dist/types/stories/loader.stories.d.ts +0 -21
- package/dist/types/stories/loader.stories.d.ts.map +0 -1
- package/dist/types/stories/progress_bar.stories.d.ts +0 -27
- package/dist/types/stories/progress_bar.stories.d.ts.map +0 -1
- package/dist/types/stories/record_card.stories.d.ts +0 -9
- package/dist/types/stories/record_card.stories.d.ts.map +0 -1
- package/dist/types/stories/record_card_list.stories.d.ts +0 -9
- package/dist/types/stories/record_card_list.stories.d.ts.map +0 -1
- package/dist/types/stories/select.stories.d.ts +0 -30
- package/dist/types/stories/select.stories.d.ts.map +0 -1
- package/dist/types/stories/select_buttons.stories.d.ts +0 -30
- package/dist/types/stories/select_buttons.stories.d.ts.map +0 -1
- package/dist/types/stories/switch.stories.d.ts +0 -48
- package/dist/types/stories/switch.stories.d.ts.map +0 -1
- package/dist/types/stories/table_picker.stories.d.ts +0 -12
- package/dist/types/stories/table_picker.stories.d.ts.map +0 -1
- package/dist/types/stories/text.size.stories.d.ts +0 -16
- package/dist/types/stories/text.size.stories.d.ts.map +0 -1
- package/dist/types/stories/text.stories.d.ts +0 -36
- package/dist/types/stories/text.stories.d.ts.map +0 -1
- package/dist/types/stories/text_button.stories.d.ts +0 -45
- package/dist/types/stories/text_button.stories.d.ts.map +0 -1
- package/dist/types/stories/tooltip.stories.d.ts +0 -10
- package/dist/types/stories/tooltip.stories.d.ts.map +0 -1
- package/dist/types/stories/view_picker.stories.d.ts +0 -12
- package/dist/types/stories/view_picker.stories.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts +0 -122
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts +0 -4
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts +0 -60
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts +0 -4
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts.map +0 -1
- package/dist/types/test/error_utils.test.d.ts +0 -2
- package/dist/types/test/error_utils.test.d.ts.map +0 -1
- package/dist/types/test/get_style_props_for_responsive_prop.test.d.ts +0 -2
- package/dist/types/test/get_style_props_for_responsive_prop.test.d.ts.map +0 -1
- package/dist/types/test/index.test.d.ts +0 -2
- package/dist/types/test/index.test.d.ts.map +0 -1
- package/dist/types/test/models/base.test.d.ts +0 -2
- package/dist/types/test/models/base.test.d.ts.map +0 -1
- package/dist/types/test/models/cursor.test.d.ts +0 -2
- package/dist/types/test/models/cursor.test.d.ts.map +0 -1
- package/dist/types/test/models/field.test.d.ts +0 -2
- package/dist/types/test/models/field.test.d.ts.map +0 -1
- package/dist/types/test/models/linked_records_query_result.test.d.ts +0 -2
- package/dist/types/test/models/linked_records_query_result.test.d.ts.map +0 -1
- package/dist/types/test/models/mutations.test.d.ts +0 -2
- package/dist/types/test/models/mutations.test.d.ts.map +0 -1
- package/dist/types/test/models/object_pool.test.d.ts +0 -2
- package/dist/types/test/models/object_pool.test.d.ts.map +0 -1
- package/dist/types/test/models/record.test.d.ts +0 -2
- package/dist/types/test/models/record.test.d.ts.map +0 -1
- package/dist/types/test/models/session.test.d.ts +0 -2
- package/dist/types/test/models/session.test.d.ts.map +0 -1
- package/dist/types/test/models/table.test.d.ts +0 -2
- package/dist/types/test/models/table.test.d.ts.map +0 -1
- package/dist/types/test/models/table_mutations.test.d.ts +0 -2
- package/dist/types/test/models/table_mutations.test.d.ts.map +0 -1
- package/dist/types/test/models/table_or_view_query_result.test.d.ts +0 -2
- package/dist/types/test/models/table_or_view_query_result.test.d.ts.map +0 -1
- package/dist/types/test/models/view.test.d.ts +0 -2
- package/dist/types/test/models/view.test.d.ts.map +0 -1
- package/dist/types/test/models/view_metadata_query_result.test.d.ts +0 -2
- package/dist/types/test/models/view_metadata_query_result.test.d.ts.map +0 -1
- package/dist/types/test/private_utils.test.d.ts +0 -2
- package/dist/types/test/private_utils.test.d.ts.map +0 -1
- package/dist/types/test/sdk.test.d.ts +0 -2
- package/dist/types/test/sdk.test.d.ts.map +0 -1
- package/dist/types/test/setup_enzyme.d.ts +0 -2
- package/dist/types/test/setup_enzyme.d.ts.map +0 -1
- package/dist/types/test/test_helpers.d.ts +0 -11
- package/dist/types/test/test_helpers.d.ts.map +0 -1
- package/dist/types/test/ui/base_provider.test.d.ts +0 -2
- package/dist/types/test/ui/base_provider.test.d.ts.map +0 -1
- package/dist/types/test/ui/block_wrapper.test.d.ts +0 -2
- package/dist/types/test/ui/block_wrapper.test.d.ts.map +0 -1
- package/dist/types/test/ui/box.test.d.ts +0 -2
- package/dist/types/test/ui/box.test.d.ts.map +0 -1
- package/dist/types/test/ui/button.test.d.ts +0 -2
- package/dist/types/test/ui/button.test.d.ts.map +0 -1
- package/dist/types/test/ui/cell_renderer.test.d.ts +0 -2
- package/dist/types/test/ui/cell_renderer.test.d.ts.map +0 -1
- package/dist/types/test/ui/choice_token.test.d.ts +0 -2
- package/dist/types/test/ui/choice_token.test.d.ts.map +0 -1
- package/dist/types/test/ui/collaborator_token.test.d.ts +0 -2
- package/dist/types/test/ui/collaborator_token.test.d.ts.map +0 -1
- package/dist/types/test/ui/color_palette.test.d.ts +0 -2
- package/dist/types/test/ui/color_palette.test.d.ts.map +0 -1
- package/dist/types/test/ui/color_palette_synced.test.d.ts +0 -2
- package/dist/types/test/ui/color_palette_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/confirmation_dialog.test.d.ts +0 -2
- package/dist/types/test/ui/confirmation_dialog.test.d.ts.map +0 -1
- package/dist/types/test/ui/dialog.test.d.ts +0 -2
- package/dist/types/test/ui/dialog.test.d.ts.map +0 -1
- package/dist/types/test/ui/expand_record.test.d.ts +0 -2
- package/dist/types/test/ui/expand_record.test.d.ts.map +0 -1
- package/dist/types/test/ui/expand_record_list.test.d.ts +0 -2
- package/dist/types/test/ui/expand_record_list.test.d.ts.map +0 -1
- package/dist/types/test/ui/expand_record_picker_async.test.d.ts +0 -2
- package/dist/types/test/ui/expand_record_picker_async.test.d.ts.map +0 -1
- package/dist/types/test/ui/field_icon.test.d.ts +0 -2
- package/dist/types/test/ui/field_icon.test.d.ts.map +0 -1
- package/dist/types/test/ui/field_picker.test.d.ts +0 -2
- package/dist/types/test/ui/field_picker.test.d.ts.map +0 -1
- package/dist/types/test/ui/field_picker_synced.test.d.ts +0 -2
- package/dist/types/test/ui/field_picker_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/form_field.test.d.ts +0 -2
- package/dist/types/test/ui/form_field.test.d.ts.map +0 -1
- package/dist/types/test/ui/global_alert.test.d.ts +0 -2
- package/dist/types/test/ui/global_alert.test.d.ts.map +0 -1
- package/dist/types/test/ui/heading.test.d.ts +0 -2
- package/dist/types/test/ui/heading.test.d.ts.map +0 -1
- package/dist/types/test/ui/icon.test.d.ts +0 -2
- package/dist/types/test/ui/icon.test.d.ts.map +0 -1
- package/dist/types/test/ui/initialize_block.test.d.ts +0 -2
- package/dist/types/test/ui/initialize_block.test.d.ts.map +0 -1
- package/dist/types/test/ui/input.test.d.ts +0 -2
- package/dist/types/test/ui/input.test.d.ts.map +0 -1
- package/dist/types/test/ui/input_synced.test.d.ts +0 -2
- package/dist/types/test/ui/input_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/label.test.d.ts +0 -2
- package/dist/types/test/ui/label.test.d.ts.map +0 -1
- package/dist/types/test/ui/link.test.d.ts +0 -2
- package/dist/types/test/ui/link.test.d.ts.map +0 -1
- package/dist/types/test/ui/loader.test.d.ts +0 -2
- package/dist/types/test/ui/loader.test.d.ts.map +0 -1
- package/dist/types/test/ui/modal.test.d.ts +0 -2
- package/dist/types/test/ui/modal.test.d.ts.map +0 -1
- package/dist/types/test/ui/popover.test.d.ts +0 -2
- package/dist/types/test/ui/popover.test.d.ts.map +0 -1
- package/dist/types/test/ui/progress_bar.test.d.ts +0 -2
- package/dist/types/test/ui/progress_bar.test.d.ts.map +0 -1
- package/dist/types/test/ui/record_card.test.d.ts +0 -2
- package/dist/types/test/ui/record_card.test.d.ts.map +0 -1
- package/dist/types/test/ui/record_card_list.test.d.ts +0 -2
- package/dist/types/test/ui/record_card_list.test.d.ts.map +0 -1
- package/dist/types/test/ui/remote_utils.test.d.ts +0 -2
- package/dist/types/test/ui/remote_utils.test.d.ts.map +0 -1
- package/dist/types/test/ui/select.test.d.ts +0 -2
- package/dist/types/test/ui/select.test.d.ts.map +0 -1
- package/dist/types/test/ui/select_buttons.test.d.ts +0 -2
- package/dist/types/test/ui/select_buttons.test.d.ts.map +0 -1
- package/dist/types/test/ui/select_buttons_synced.test.d.ts +0 -2
- package/dist/types/test/ui/select_buttons_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/select_synced.test.d.ts +0 -2
- package/dist/types/test/ui/select_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/switch.test.d.ts +0 -2
- package/dist/types/test/ui/switch.test.d.ts.map +0 -1
- package/dist/types/test/ui/switch_synced.test.d.ts +0 -2
- package/dist/types/test/ui/switch_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/synced.test.d.ts +0 -2
- package/dist/types/test/ui/synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/table_picker.test.d.ts +0 -2
- package/dist/types/test/ui/table_picker.test.d.ts.map +0 -1
- package/dist/types/test/ui/table_picker_synced.test.d.ts +0 -2
- package/dist/types/test/ui/table_picker_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/text.test.d.ts +0 -2
- package/dist/types/test/ui/text.test.d.ts.map +0 -1
- package/dist/types/test/ui/text_button.test.d.ts +0 -2
- package/dist/types/test/ui/text_button.test.d.ts.map +0 -1
- package/dist/types/test/ui/tooltip.test.d.ts +0 -2
- package/dist/types/test/ui/tooltip.test.d.ts.map +0 -1
- package/dist/types/test/ui/ui.test.d.ts +0 -2
- package/dist/types/test/ui/ui.test.d.ts.map +0 -1
- package/dist/types/test/ui/unstable_standalone_ui.test.d.ts +0 -1
- package/dist/types/test/ui/unstable_standalone_ui.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_array_identity.test.d.ts +0 -2
- package/dist/types/test/ui/use_array_identity.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_color_scheme.test.d.ts +0 -2
- package/dist/types/test/ui/use_color_scheme.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_loadable.test.d.ts +0 -2
- package/dist/types/test/ui/use_loadable.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_record_action_data.test.d.ts +0 -2
- package/dist/types/test/ui/use_record_action_data.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_records.test.d.ts +0 -2
- package/dist/types/test/ui/use_records.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_view_metadata.test.d.ts +0 -2
- package/dist/types/test/ui/use_view_metadata.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_watchable.test.d.ts +0 -2
- package/dist/types/test/ui/use_watchable.test.d.ts.map +0 -1
- package/dist/types/test/ui/view_picker.test.d.ts +0 -2
- package/dist/types/test/ui/view_picker.test.d.ts.map +0 -1
- package/dist/types/test/ui/view_picker_synced.test.d.ts +0 -2
- package/dist/types/test/ui/view_picker_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/viewport_constraint.test.d.ts +0 -2
- package/dist/types/test/ui/viewport_constraint.test.d.ts.map +0 -1
- package/dist/types/test/unstable_private_utils.test.d.ts +0 -1
- package/dist/types/test/unstable_private_utils.test.d.ts.map +0 -1
- /package/dist/cjs/shared/types/{field.js → field_core.js} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
component: React.ForwardRefExoticComponent<import("../src/base/ui/text").TextProps & React.RefAttributes<HTMLElement>>;
|
|
4
|
-
title: string;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const DefaultSizes: {
|
|
8
|
-
render: () => React.JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export declare const ParagraphSizes: {
|
|
11
|
-
render: () => React.JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
export declare const ResponsiveSize: {
|
|
14
|
-
render: () => React.JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=text.size.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.size.stories.d.ts","sourceRoot":"","sources":["../../../stories/text.size.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;AAM1B,wBAGE;AAEF,eAAO,MAAM,YAAY;;CAUxB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAoB1B,CAAC;AAEF,eAAO,MAAM,cAAc;;CAkB1B,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
component: React.ForwardRefExoticComponent<import("../src/base/ui/text").TextProps & React.RefAttributes<HTMLElement>>;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const _Example: {
|
|
7
|
-
render: () => React.JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
export declare const As: {
|
|
10
|
-
render: () => React.JSX.Element;
|
|
11
|
-
};
|
|
12
|
-
export declare const TextColor: {
|
|
13
|
-
render: () => React.JSX.Element;
|
|
14
|
-
};
|
|
15
|
-
export declare const Ref: {
|
|
16
|
-
render: () => React.JSX.Element;
|
|
17
|
-
};
|
|
18
|
-
export declare const CustomClassName: {
|
|
19
|
-
render: () => React.JSX.Element;
|
|
20
|
-
};
|
|
21
|
-
export declare const IdAttribute: {
|
|
22
|
-
render: () => React.JSX.Element;
|
|
23
|
-
};
|
|
24
|
-
export declare const StyleAttribute: {
|
|
25
|
-
render: () => React.JSX.Element;
|
|
26
|
-
};
|
|
27
|
-
export declare const DataAttributes: {
|
|
28
|
-
render: () => React.JSX.Element;
|
|
29
|
-
};
|
|
30
|
-
export declare const RoleAttribute: {
|
|
31
|
-
render: () => React.JSX.Element;
|
|
32
|
-
};
|
|
33
|
-
export declare const AriaAttributes: {
|
|
34
|
-
render: () => React.JSX.Element;
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=text.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.stories.d.ts","sourceRoot":"","sources":["../../../stories/text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;AAQ1B,wBAEE;AAqDF,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AAEF,eAAO,MAAM,EAAE;;CAiCd,CAAC;AAEF,eAAO,MAAM,SAAS;;CAOrB,CAAC;AAEF,eAAO,MAAM,GAAG;;CAaf,CAAC;AAEF,eAAO,MAAM,eAAe;;CAM3B,CAAC;AAEF,eAAO,MAAM,WAAW;;CAMvB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAY1B,CAAC;AAEF,eAAO,MAAM,cAAc;;CAa1B,CAAC;AAEF,eAAO,MAAM,aAAa;;CAMzB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAiB1B,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
component: React.ForwardRefExoticComponent<import("../src/base/ui/text_button").TextButtonProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const _Example: {
|
|
7
|
-
render: () => React.JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
export declare const Variants: {
|
|
10
|
-
render: () => React.JSX.Element;
|
|
11
|
-
};
|
|
12
|
-
export declare const Sizes: {
|
|
13
|
-
render: () => React.JSX.Element;
|
|
14
|
-
};
|
|
15
|
-
export declare const InsideOfText: {
|
|
16
|
-
render: () => React.JSX.Element;
|
|
17
|
-
};
|
|
18
|
-
export declare const WithIcon: {
|
|
19
|
-
render: () => React.JSX.Element;
|
|
20
|
-
};
|
|
21
|
-
export declare const WithAllIcons: {
|
|
22
|
-
render: () => React.JSX.Element;
|
|
23
|
-
};
|
|
24
|
-
export declare const WithIconNoChildren: {
|
|
25
|
-
render: () => React.JSX.Element;
|
|
26
|
-
};
|
|
27
|
-
export declare const Disabled: {
|
|
28
|
-
render: () => React.JSX.Element;
|
|
29
|
-
};
|
|
30
|
-
export declare const Truncate: {
|
|
31
|
-
render: () => React.JSX.Element;
|
|
32
|
-
};
|
|
33
|
-
export declare const ResponsiveSizeWithIcon: {
|
|
34
|
-
render: () => React.JSX.Element;
|
|
35
|
-
};
|
|
36
|
-
export declare const Flex: {
|
|
37
|
-
render: () => React.JSX.Element;
|
|
38
|
-
};
|
|
39
|
-
export declare const CustomIcon: {
|
|
40
|
-
render: () => React.JSX.Element;
|
|
41
|
-
};
|
|
42
|
-
export declare const WithTooltip: {
|
|
43
|
-
render: () => React.JSX.Element;
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=text_button.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text_button.stories.d.ts","sourceRoot":"","sources":["../../../stories/text_button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;AAY1B,wBAEE;AA4EF,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAcpB,CAAC;AAEF,eAAO,MAAM,KAAK;;CAiBjB,CAAC;AAEF,eAAO,MAAM,YAAY;;CAWxB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAWpB,CAAC;AAEF,eAAO,MAAM,YAAY;;CAaxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;CAE9B,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAMpB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CAclC,CAAC;AAEF,eAAO,MAAM,IAAI;;CAUhB,CAAC;AAEF,eAAO,MAAM,UAAU;;CA0BtB,CAAC;AAEF,eAAO,MAAM,WAAW;;CAYvB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Tooltip from '../src/base/ui/tooltip';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
component: typeof Tooltip;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const _Example: {
|
|
8
|
-
render: () => React.JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=tooltip.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.stories.d.ts","sourceRoot":"","sources":["../../../stories/tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,OAAO,MAAM,wBAAwB,CAAC;;;;AAM7C,wBAEE;AA8DF,eAAO,MAAM,QAAQ;;CAEpB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
component: React.ForwardRefExoticComponent<import("../src/base/ui/view_picker").ViewPickerProps & React.RefAttributes<HTMLSelectElement>>;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const _ViewPickerExample: {
|
|
7
|
-
render: () => React.JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
export declare const _ViewPickerSyncedExample: {
|
|
10
|
-
render: () => React.JSX.Element;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=view_picker.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"view_picker.stories.d.ts","sourceRoot":"","sources":["../../../stories/view_picker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;;;;AAQtC,wBAEE;AA4EF,eAAO,MAAM,kBAAkB;;CAE9B,CAAC;AAgDF,eAAO,MAAM,wBAAwB;;CAEpC,CAAC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { BaseId, TableId, FieldId, ViewId, RecordId } from '../../src/shared/types/hyper_ids';
|
|
2
|
-
import { FieldType } from '../../src/shared/types/field';
|
|
3
|
-
import { ViewType } from '../../src/base/types/view';
|
|
4
|
-
import { CollaboratorData } from '../../src/shared/types/collaborator';
|
|
5
|
-
import { Color } from '../../src/shared/colors';
|
|
6
|
-
import { ObjectMap } from '../../src/shared/private_utils';
|
|
7
|
-
import { SdkInitData } from '../../src/base/types/airtable_interface';
|
|
8
|
-
export declare function convertFixtureDataToSdkInitData(fixtureData: FixtureData): SdkInitData;
|
|
9
|
-
/**
|
|
10
|
-
* A complete set of information necessary to initialize a simulated Airtable
|
|
11
|
-
* Base in automated test environments. This is currently copied from
|
|
12
|
-
* block-testing.
|
|
13
|
-
* TODO(fredz): consider moving this into src/testing and exporting it as
|
|
14
|
-
* part of unstable_testing_utils.
|
|
15
|
-
*
|
|
16
|
-
* Unlike SdkInitData which does not contain record data by design,
|
|
17
|
-
* FixtureData contains it in fixtureData.base.tables[number].records,
|
|
18
|
-
* and relies on dependent modules to simulate the hyperbase behavior of
|
|
19
|
-
* only making those records after corresponding necessary calls to
|
|
20
|
-
* AirtableInterface.
|
|
21
|
-
*/
|
|
22
|
-
export interface FixtureData {
|
|
23
|
-
/** A representation of the state of an Airtable Base */
|
|
24
|
-
base: {
|
|
25
|
-
id: BaseId;
|
|
26
|
-
name: string;
|
|
27
|
-
color?: string;
|
|
28
|
-
tables: Array<TableFixtureData>;
|
|
29
|
-
collaborators: Array<CollaboratorData & {
|
|
30
|
-
isActive: boolean;
|
|
31
|
-
}>;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/** A representation of the state of a Table */
|
|
35
|
-
interface TableFixtureData {
|
|
36
|
-
/** A unique identifier for the simulated Table */
|
|
37
|
-
id: TableId;
|
|
38
|
-
/** The name to assign to the simulated Table */
|
|
39
|
-
name: string;
|
|
40
|
-
/** The description to assign to the simulated Table */
|
|
41
|
-
description: string | null;
|
|
42
|
-
/**
|
|
43
|
-
* Fixture data for the simulated Fields that should be present in the
|
|
44
|
-
* simulated Table when it is initialized.
|
|
45
|
-
*/
|
|
46
|
-
fields: Array<FieldFixtureData>;
|
|
47
|
-
/**
|
|
48
|
-
* Fixture data for the simulated Views that should be present in the
|
|
49
|
-
* simulated Table when it is initialized.
|
|
50
|
-
*/
|
|
51
|
-
views: Array<ViewFixtureData>;
|
|
52
|
-
/**
|
|
53
|
-
* Fixture data for the simulated Records that should be present in the
|
|
54
|
-
* simulated Table when it is initialized.
|
|
55
|
-
*/
|
|
56
|
-
records: Array<RecordFixtureData>;
|
|
57
|
-
}
|
|
58
|
-
/** A representation of the state of a Field */
|
|
59
|
-
interface FieldFixtureData {
|
|
60
|
-
/** A unique identifier for the simulated Field */
|
|
61
|
-
id: FieldId;
|
|
62
|
-
/** The name to assign to the simulated Field */
|
|
63
|
-
name: string;
|
|
64
|
-
/** The description to assign to the simulated Field */
|
|
65
|
-
description: string | null;
|
|
66
|
-
/** The type of the simulated Field */
|
|
67
|
-
type: FieldType;
|
|
68
|
-
/** Options associated with the simulated Field */
|
|
69
|
-
options: null | {
|
|
70
|
-
[key: string]: unknown;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
/** A representation of the state of a View */
|
|
74
|
-
interface ViewFixtureData {
|
|
75
|
-
/** A unique identifier for the simulated View */
|
|
76
|
-
id: ViewId;
|
|
77
|
-
/** The name to assign to the simulated View */
|
|
78
|
-
name: string;
|
|
79
|
-
/** The type of the simulated view */
|
|
80
|
-
type: ViewType;
|
|
81
|
-
/**
|
|
82
|
-
* A description of how simulated Fields should be sequenced within the
|
|
83
|
-
* simulated View
|
|
84
|
-
*/
|
|
85
|
-
fieldOrder: {
|
|
86
|
-
fieldIds: Array<FieldId>;
|
|
87
|
-
visibleFieldCount: number;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* A set of references to Records contained within the simulated view. This
|
|
91
|
-
* is distinct from the complete fixture data for the simulated Records.
|
|
92
|
-
*/
|
|
93
|
-
records: Array<ViewRecordFixtureData>;
|
|
94
|
-
/**
|
|
95
|
-
* Optional boolean denoting if the view is locked. By default tests assume
|
|
96
|
-
* the view is unlocked if undefined.
|
|
97
|
-
*/
|
|
98
|
-
isLockedView?: boolean;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* A reference to Record contained within a simulated view. This is disctinct
|
|
102
|
-
* from the complete fixture data for the simulated Record.
|
|
103
|
-
*/
|
|
104
|
-
interface ViewRecordFixtureData {
|
|
105
|
-
/** A value which uniquely identifies a Record within a base. */
|
|
106
|
-
id: RecordId;
|
|
107
|
-
/** The color associated with a Record's membership in a View. */
|
|
108
|
-
color: Color | null;
|
|
109
|
-
}
|
|
110
|
-
/** A representation of the state of a Record */
|
|
111
|
-
interface RecordFixtureData {
|
|
112
|
-
/** A unique identifier for the simulated Record */
|
|
113
|
-
id: RecordId;
|
|
114
|
-
/** The number of comments to assign to the simulated record */
|
|
115
|
-
commentCount: number;
|
|
116
|
-
/** The time the simulated record should appear to have been created */
|
|
117
|
-
createdTime: string;
|
|
118
|
-
/** A mapping of field identifiers to cell values */
|
|
119
|
-
cellValuesByFieldId: ObjectMap<FieldId, unknown>;
|
|
120
|
-
}
|
|
121
|
-
export {};
|
|
122
|
-
//# sourceMappingURL=fixture_data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fixture_data.d.ts","sourceRoot":"","sources":["../../../../test/airtable_interface_mocks/fixture_data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE5F,OAAO,EAAC,SAAS,EAAY,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAW,QAAQ,EAAC,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAC,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAe,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAsB,WAAW,EAAC,MAAM,yCAAyC,CAAC;AAYzF,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAyCrF;AAuCD;;;;;;;;;;;;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,UAAU,gBAAgB;IACtB,kDAAkD;IAClD,EAAE,EAAE,OAAO,CAAC;IACZ,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChC;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAC9B;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACrC;AAED,+CAA+C;AAC/C,UAAU,gBAAgB;IACtB,kDAAkD;IAClD,EAAE,EAAE,OAAO,CAAC;IACZ,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,sCAAsC;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,kDAAkD;IAClD,OAAO,EAAE,IAAI,GAAG;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;CAC5C;AAED,8CAA8C;AAC9C,UAAU,eAAe;IACrB,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE;QACR,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACtC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,UAAU,qBAAqB;IAC3B,gEAAgE;IAChE,EAAE,EAAE,QAAQ,CAAC;IACb,iEAAiE;IACjE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAED,gDAAgD;AAChD,UAAU,iBAAiB;IACvB,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 +0,0 @@
|
|
|
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,60 +0,0 @@
|
|
|
1
|
-
import { Aggregators, FieldTypeProvider, UrlConstructor, IdGenerator, VisList, PartialViewData } from '../../src/base/types/airtable_interface';
|
|
2
|
-
import { AbstractMockAirtableInterface } from '../../src/testing/abstract_mock_airtable_interface';
|
|
3
|
-
import { TableId, FieldId } from '../../src/shared/types/hyper_ids';
|
|
4
|
-
import { CursorData } from '../../src/base/types/cursor';
|
|
5
|
-
import { RecordData } from '../../src/base/types/record';
|
|
6
|
-
import { RecordActionData } from '../../src/base/types/record_action_data';
|
|
7
|
-
import { RequestJson, ResponseJson } from '../../src/base/types/backend_fetch_types';
|
|
8
|
-
import { GlobalConfigHelpers } from '../../src/shared/types/airtable_interface_core';
|
|
9
|
-
import { FixtureData } from './fixture_data';
|
|
10
|
-
/**
|
|
11
|
-
* An implementation of the AbstractMockAirtableInterface designed for use in the
|
|
12
|
-
* Blocks SDK internal automated test suite. Provides Jest spies for all
|
|
13
|
-
* available methods (and which resets the state of those spies with every call
|
|
14
|
-
* to `reset`).
|
|
15
|
-
*/
|
|
16
|
-
export declare class MockAirtableInterface extends AbstractMockAirtableInterface {
|
|
17
|
-
static projectTrackerExample(): jest.Mocked<MockAirtableInterface>;
|
|
18
|
-
static linkedRecordsExample(): jest.Mocked<MockAirtableInterface>;
|
|
19
|
-
static createFromFixtureData(fixtureData: FixtureData): jest.Mocked<MockAirtableInterface>;
|
|
20
|
-
get aggregators(): jest.Mocked<Aggregators>;
|
|
21
|
-
get fieldTypeProvider(): jest.Mocked<FieldTypeProvider>;
|
|
22
|
-
get urlConstructor(): jest.Mocked<UrlConstructor>;
|
|
23
|
-
get globalConfigHelpers(): jest.Mocked<GlobalConfigHelpers>;
|
|
24
|
-
get idGenerator(): jest.Mocked<IdGenerator>;
|
|
25
|
-
/**
|
|
26
|
-
* Revert the mock interface to its initial state. This includes:
|
|
27
|
-
*
|
|
28
|
-
* - removing all event listeners
|
|
29
|
-
* - restoring the database schema
|
|
30
|
-
* - recreating the Jest "spies" for every instance method
|
|
31
|
-
*/
|
|
32
|
-
reset(): void;
|
|
33
|
-
createVisList(...args: Parameters<AbstractMockAirtableInterface['createVisList']>): jest.Mocked<VisList>;
|
|
34
|
-
fetchAndSubscribeToCellValuesInFieldsAsync(tableId: TableId, fieldIds: Array<FieldId>): Promise<any>;
|
|
35
|
-
fetchAndSubscribeToCursorDataAsync(): Promise<CursorData>;
|
|
36
|
-
fetchAndSubscribeToTableDataAsync(tableId: string): Promise<{
|
|
37
|
-
recordsById: {
|
|
38
|
-
[recordId: string]: RecordData;
|
|
39
|
-
};
|
|
40
|
-
}>;
|
|
41
|
-
fetchAndSubscribeToViewDataAsync(tableId: string, viewId: string): Promise<PartialViewData>;
|
|
42
|
-
fetchDefaultCellValuesByFieldIdAsync(): Promise<{
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
}>;
|
|
45
|
-
expandRecord(tableId: string, recordId: string, recordIds: Array<string> | null): void;
|
|
46
|
-
expandRecordList(): void;
|
|
47
|
-
expandRecordPickerAsync(): Promise<string | null>;
|
|
48
|
-
reloadFrame(): void;
|
|
49
|
-
setSettingsButtonVisibility(): void;
|
|
50
|
-
setUndoRedoMode(): void;
|
|
51
|
-
setFullscreenMaxSize(): void;
|
|
52
|
-
enterFullscreen(): void;
|
|
53
|
-
exitFullscreen(): void;
|
|
54
|
-
fetchAndSubscribeToPerformRecordActionAsync(): Promise<RecordActionData | null>;
|
|
55
|
-
trackEvent(): void;
|
|
56
|
-
trackExposure(): void;
|
|
57
|
-
sendStat(): void;
|
|
58
|
-
performBackendFetchAsync(requestJson: RequestJson): Promise<ResponseJson>;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=mock_airtable_interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,WAAW,EACX,OAAO,EACP,eAAe,EAClB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,6BAA6B,EAAC,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gDAAgD,CAAC;AAGnF,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,GAEA,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAGvF,IAAI,WAAW,IACiB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CACvD;IAED,IAAI,iBAAiB,IACiB,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CACnE;IAED,IAAI,cAAc,IACiB,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAC7D;IAED,IAAI,mBAAmB,IACiB,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,CACvE;IAED,IAAI,WAAW,IACiB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CACvD;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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error_utils.test.d.ts","sourceRoot":"","sources":["../../../test/error_utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_style_props_for_responsive_prop.test.d.ts","sourceRoot":"","sources":["../../../test/get_style_props_for_responsive_prop.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../test/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.test.d.ts","sourceRoot":"","sources":["../../../../test/models/base.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.test.d.ts","sourceRoot":"","sources":["../../../../test/models/cursor.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field.test.d.ts","sourceRoot":"","sources":["../../../../test/models/field.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linked_records_query_result.test.d.ts","sourceRoot":"","sources":["../../../../test/models/linked_records_query_result.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.test.d.ts","sourceRoot":"","sources":["../../../../test/models/mutations.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object_pool.test.d.ts","sourceRoot":"","sources":["../../../../test/models/object_pool.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record.test.d.ts","sourceRoot":"","sources":["../../../../test/models/record.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.test.d.ts","sourceRoot":"","sources":["../../../../test/models/session.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.test.d.ts","sourceRoot":"","sources":["../../../../test/models/table.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table_mutations.test.d.ts","sourceRoot":"","sources":["../../../../test/models/table_mutations.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table_or_view_query_result.test.d.ts","sourceRoot":"","sources":["../../../../test/models/table_or_view_query_result.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"view.test.d.ts","sourceRoot":"","sources":["../../../../test/models/view.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"view_metadata_query_result.test.d.ts","sourceRoot":"","sources":["../../../../test/models/view_metadata_query_result.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"private_utils.test.d.ts","sourceRoot":"","sources":["../../../test/private_utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.test.d.ts","sourceRoot":"","sources":["../../../test/sdk.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup_enzyme.d.ts","sourceRoot":"","sources":["../../../test/setup_enzyme.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactWrapper } from 'enzyme';
|
|
2
|
-
import Watchable from '../src/shared/watchable';
|
|
3
|
-
/**
|
|
4
|
-
* include a section of code that must pass flow but shouldn't actually be executed. Use it along
|
|
5
|
-
* with '// flow-expect-error' to write tests for flow-type definitions that won't be run by jest.
|
|
6
|
-
*/
|
|
7
|
-
export declare function flowTest(description: string, fn: () => unknown): void;
|
|
8
|
-
export declare function getComputedStylePropValue<Props extends {}>(wrapper: ReactWrapper<Props>, styleProp: string): string;
|
|
9
|
-
export declare function waitForWatchKeyAsync<Key extends string>(model: Watchable<Key>, key: Key): Promise<void>;
|
|
10
|
-
export declare function simulateTimersAndClearAfterEachTest(): void;
|
|
11
|
-
//# sourceMappingURL=test_helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,yBAAyB,CAAC;AAEhD;;;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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base_provider.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/base_provider.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"block_wrapper.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/block_wrapper.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/box.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/button.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell_renderer.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/cell_renderer.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"choice_token.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/choice_token.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaborator_token.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/collaborator_token.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"color_palette.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/color_palette.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"color_palette_synced.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/color_palette_synced.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmation_dialog.test.d.ts","sourceRoot":"","sources":["../../../../test/ui/confirmation_dialog.test.tsx"],"names":[],"mappings":""}
|