@airtable/blocks 1.18.1 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -1
- package/dist/cjs/color_utils.js +21 -23
- package/dist/cjs/colors.js +4 -60
- package/dist/cjs/error_utils.js +15 -25
- package/dist/cjs/event_tracker.js +5 -11
- package/dist/cjs/global_config.js +107 -188
- package/dist/cjs/index.js +16 -40
- package/dist/cjs/injected/airtable_interface.js +1 -6
- package/dist/cjs/models/abstract_model.js +50 -81
- package/dist/cjs/models/abstract_model_with_async_data.js +102 -177
- package/dist/cjs/models/base.js +211 -374
- package/dist/cjs/models/create_aggregators.js +53 -47
- package/dist/cjs/models/cursor.js +125 -201
- package/dist/cjs/models/field.js +256 -303
- package/dist/cjs/models/grouped_record_query_result.js +210 -286
- package/dist/cjs/models/linked_records_query_result.js +276 -454
- package/dist/cjs/models/models.js +36 -50
- package/dist/cjs/models/mutation_constants.js +5 -9
- package/dist/cjs/models/mutations.js +125 -338
- package/dist/cjs/models/object_pool.js +37 -94
- package/dist/cjs/models/record.js +132 -226
- package/dist/cjs/models/record_coloring.js +14 -19
- package/dist/cjs/models/record_query_result.js +323 -282
- package/dist/cjs/models/record_store.js +355 -688
- package/dist/cjs/models/session.js +99 -158
- package/dist/cjs/models/table.js +361 -549
- package/dist/cjs/models/table_or_view_query_result.js +410 -765
- package/dist/cjs/models/view.js +161 -204
- package/dist/cjs/models/view_data_store.js +177 -282
- package/dist/cjs/models/view_metadata_query_result.js +96 -127
- package/dist/cjs/perform_record_action.js +69 -103
- package/dist/cjs/private_utils.js +133 -223
- package/dist/cjs/sdk.js +97 -142
- package/dist/cjs/settings_button.js +30 -57
- package/dist/cjs/stats/block_stats.js +3 -15
- package/dist/cjs/testing/abstract_mock_airtable_interface.js +53 -97
- package/dist/cjs/types/airtable_interface.js +36 -8
- package/dist/cjs/types/field.js +66 -12
- package/dist/cjs/types/mutations.js +99 -6
- package/dist/cjs/types/permission_levels.js +2 -4
- package/dist/cjs/types/undo_redo.js +2 -3
- package/dist/cjs/types/view.js +16 -11
- package/dist/cjs/ui/base_provider.js +14 -9
- package/dist/cjs/ui/baymax_utils.js +107 -1102
- package/dist/cjs/ui/block_wrapper.js +30 -68
- package/dist/cjs/ui/box.js +52 -56
- package/dist/cjs/ui/button.js +60 -77
- package/dist/cjs/ui/cell_renderer.js +78 -139
- package/dist/cjs/ui/choice_token.js +45 -47
- package/dist/cjs/ui/collaborator_token.js +33 -54
- package/dist/cjs/ui/color_palette.js +58 -106
- package/dist/cjs/ui/color_palette_synced.js +41 -52
- package/dist/cjs/ui/confirmation_dialog.js +53 -69
- package/dist/cjs/ui/control_sizes.js +21 -46
- package/dist/cjs/ui/create_detect_element_resize.js +16 -50
- package/dist/cjs/ui/css_helpers.js +3 -10
- package/dist/cjs/ui/dialog.js +44 -71
- package/dist/cjs/ui/dialog_close_button.js +52 -72
- package/dist/cjs/ui/expand_record.js +4 -11
- package/dist/cjs/ui/expand_record_list.js +6 -11
- package/dist/cjs/ui/expand_record_picker_async.js +18 -35
- package/dist/cjs/ui/field_icon.js +25 -28
- package/dist/cjs/ui/field_picker.js +47 -81
- package/dist/cjs/ui/field_picker_synced.js +33 -44
- package/dist/cjs/ui/form_field.js +45 -64
- package/dist/cjs/ui/geometry/geometry.js +6 -10
- package/dist/cjs/ui/geometry/point.js +5 -13
- package/dist/cjs/ui/geometry/rect.js +7 -29
- package/dist/cjs/ui/geometry/size.js +5 -13
- package/dist/cjs/ui/global_alert.js +35 -61
- package/dist/cjs/ui/global_config_synced_component_helpers.js +4 -13
- package/dist/cjs/ui/heading.js +63 -92
- package/dist/cjs/ui/icon.js +44 -66
- package/dist/cjs/ui/icon_config.js +13 -24
- package/dist/cjs/ui/initialize_block.js +23 -36
- package/dist/cjs/ui/input.js +74 -87
- package/dist/cjs/ui/input_synced.js +34 -43
- package/dist/cjs/ui/key_codes.js +4 -9
- package/dist/cjs/ui/label.js +45 -50
- package/dist/cjs/ui/link.js +74 -89
- package/dist/cjs/ui/loader.js +26 -42
- package/dist/cjs/ui/modal.js +63 -89
- package/dist/cjs/ui/model_picker_select.js +29 -47
- package/dist/cjs/ui/popover.js +98 -180
- package/dist/cjs/ui/progress_bar.js +45 -51
- package/dist/cjs/ui/record_card.js +143 -278
- package/dist/cjs/ui/record_card_list.js +117 -165
- package/dist/cjs/ui/remote_utils.js +5 -13
- package/dist/cjs/ui/sdk_context.js +7 -9
- package/dist/cjs/ui/select.js +84 -118
- package/dist/cjs/ui/select_and_select_buttons_helpers.js +29 -45
- package/dist/cjs/ui/select_buttons.js +54 -90
- package/dist/cjs/ui/select_buttons_synced.js +32 -41
- package/dist/cjs/ui/select_synced.js +32 -42
- package/dist/cjs/ui/switch.js +66 -84
- package/dist/cjs/ui/switch_synced.js +32 -38
- package/dist/cjs/ui/synced.js +16 -43
- package/dist/cjs/ui/system/all_styles_set.js +89 -22
- package/dist/cjs/ui/system/appearance/appearance_set.js +15 -26
- package/dist/cjs/ui/system/appearance/background_color.js +6 -12
- package/dist/cjs/ui/system/appearance/border.js +6 -12
- package/dist/cjs/ui/system/appearance/border_radius.js +6 -12
- package/dist/cjs/ui/system/appearance/box_shadow.js +6 -12
- package/dist/cjs/ui/system/appearance/opacity.js +5 -11
- package/dist/cjs/ui/system/dimensions/dimensions_set.js +15 -27
- package/dist/cjs/ui/system/dimensions/height.js +5 -11
- package/dist/cjs/ui/system/dimensions/max_height.js +5 -11
- package/dist/cjs/ui/system/dimensions/max_width.js +5 -11
- package/dist/cjs/ui/system/dimensions/min_height.js +5 -11
- package/dist/cjs/ui/system/dimensions/min_width.js +5 -11
- package/dist/cjs/ui/system/dimensions/width.js +5 -11
- package/dist/cjs/ui/system/display.js +8 -9
- package/dist/cjs/ui/system/flex_container/align_content.js +6 -12
- package/dist/cjs/ui/system/flex_container/align_items.js +6 -12
- package/dist/cjs/ui/system/flex_container/flex_container_set.js +15 -27
- package/dist/cjs/ui/system/flex_container/flex_direction.js +5 -11
- package/dist/cjs/ui/system/flex_container/flex_wrap.js +5 -11
- package/dist/cjs/ui/system/flex_container/justify_content.js +5 -11
- package/dist/cjs/ui/system/flex_container/justify_items.js +5 -11
- package/dist/cjs/ui/system/flex_item/align_self.js +6 -12
- package/dist/cjs/ui/system/flex_item/flex.js +5 -11
- package/dist/cjs/ui/system/flex_item/flex_basis.js +5 -11
- package/dist/cjs/ui/system/flex_item/flex_grow.js +5 -11
- package/dist/cjs/ui/system/flex_item/flex_item_set.js +15 -28
- package/dist/cjs/ui/system/flex_item/flex_shrink.js +5 -11
- package/dist/cjs/ui/system/flex_item/justify_self.js +5 -11
- package/dist/cjs/ui/system/flex_item/order.js +5 -11
- package/dist/cjs/ui/system/index.js +310 -362
- package/dist/cjs/ui/system/overflow.js +8 -9
- package/dist/cjs/ui/system/position/bottom.js +6 -13
- package/dist/cjs/ui/system/position/left.js +5 -12
- package/dist/cjs/ui/system/position/position.js +5 -11
- package/dist/cjs/ui/system/position/position_set.js +15 -27
- package/dist/cjs/ui/system/position/right.js +5 -12
- package/dist/cjs/ui/system/position/top.js +5 -12
- package/dist/cjs/ui/system/position/z_index.js +5 -11
- package/dist/cjs/ui/system/spacing/margin.js +5 -12
- package/dist/cjs/ui/system/spacing/padding.js +5 -12
- package/dist/cjs/ui/system/spacing/spacing_set.js +15 -23
- package/dist/cjs/ui/system/typography/font_family.js +5 -11
- package/dist/cjs/ui/system/typography/font_size.js +5 -11
- package/dist/cjs/ui/system/typography/font_style.js +5 -11
- package/dist/cjs/ui/system/typography/font_weight.js +5 -11
- package/dist/cjs/ui/system/typography/letter_spacing.js +5 -11
- package/dist/cjs/ui/system/typography/line_height.js +5 -11
- package/dist/cjs/ui/system/typography/text_align.js +5 -11
- package/dist/cjs/ui/system/typography/text_color.js +5 -11
- package/dist/cjs/ui/system/typography/text_decoration.js +5 -11
- package/dist/cjs/ui/system/typography/text_transform.js +5 -11
- package/dist/cjs/ui/system/typography/typography_set.js +15 -31
- package/dist/cjs/ui/system/utils/create_responsive_prop_type.js +2 -4
- package/dist/cjs/ui/system/utils/create_style_prop_types.js +5 -13
- package/dist/cjs/ui/system/utils/ensure_numbers_are_within_scale.js +4 -14
- package/dist/cjs/ui/system/utils/get_style_props_for_responsive_prop.js +30 -70
- package/dist/cjs/ui/table_picker.js +26 -43
- package/dist/cjs/ui/table_picker_synced.js +33 -42
- package/dist/cjs/ui/text.js +59 -71
- package/dist/cjs/ui/text_button.js +80 -97
- package/dist/cjs/ui/theme/default_theme/button_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/control_sizes.js +29 -42
- package/dist/cjs/ui/theme/default_theme/heading_styles.js +4 -5
- package/dist/cjs/ui/theme/default_theme/index.js +15 -32
- package/dist/cjs/ui/theme/default_theme/input_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/link_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/select_buttons_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/select_variants.js +10 -21
- package/dist/cjs/ui/theme/default_theme/switch_variants.js +8 -20
- package/dist/cjs/ui/theme/default_theme/text_button_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/text_styles.js +1 -2
- package/dist/cjs/ui/theme/default_theme/tokens.js +33 -35
- package/dist/cjs/ui/theme/theme_context.js +3 -6
- package/dist/cjs/ui/theme/use_theme.js +1 -7
- package/dist/cjs/ui/tooltip.js +38 -79
- package/dist/cjs/ui/types/aria_props.js +3 -7
- package/dist/cjs/ui/types/data_attributes_prop.js +8 -6
- package/dist/cjs/ui/types/tooltip_anchor_props.js +4 -5
- package/dist/cjs/ui/ui.js +97 -130
- package/dist/cjs/ui/unstable_standalone_ui.js +18 -42
- package/dist/cjs/ui/use_array_identity.js +0 -4
- package/dist/cjs/ui/use_base.js +4 -13
- package/dist/cjs/ui/use_color_scheme.js +60 -0
- package/dist/cjs/ui/use_cursor.js +3 -12
- package/dist/cjs/ui/use_form_field.js +4 -6
- package/dist/cjs/ui/use_global_config.js +3 -10
- package/dist/cjs/ui/use_loadable.js +59 -132
- package/dist/cjs/ui/use_record_action_data.js +6 -12
- package/dist/cjs/ui/use_records.js +27 -28
- package/dist/cjs/ui/use_session.js +6 -15
- package/dist/cjs/ui/use_settings_button.js +4 -11
- package/dist/cjs/ui/use_styled_system.js +12 -21
- package/dist/cjs/ui/use_synced.js +0 -7
- package/dist/cjs/ui/use_text_color_for_background_color.js +1 -5
- package/dist/cjs/ui/use_view_metadata.js +5 -8
- package/dist/cjs/ui/use_viewport.js +1 -7
- package/dist/cjs/ui/use_watchable.js +36 -74
- package/dist/cjs/ui/view_picker.js +44 -78
- package/dist/cjs/ui/view_picker_synced.js +33 -44
- package/dist/cjs/ui/viewport_constraint.js +37 -64
- package/dist/cjs/ui/with_hooks.js +17 -22
- package/dist/cjs/ui/with_styled_system.js +33 -60
- package/dist/cjs/undo_redo.js +12 -32
- package/dist/cjs/unstable_private_utils.js +6 -8
- package/dist/cjs/unstable_testing_utils.js +44 -57
- package/dist/cjs/viewport.js +127 -189
- package/dist/cjs/warning.js +5 -6
- package/dist/cjs/watchable.js +66 -148
- package/dist/types/src/colors.d.ts +1 -1
- package/dist/types/src/colors.d.ts.map +1 -1
- package/dist/types/src/global_config.d.ts +1 -1
- package/dist/types/src/global_config.d.ts.map +1 -1
- package/dist/types/src/models/base.d.ts +1 -1
- package/dist/types/src/models/base.d.ts.map +1 -1
- package/dist/types/src/models/cursor.d.ts +1 -1
- package/dist/types/src/models/cursor.d.ts.map +1 -1
- package/dist/types/src/models/field.d.ts +1 -1
- package/dist/types/src/models/field.d.ts.map +1 -1
- package/dist/types/src/models/linked_records_query_result.d.ts.map +1 -1
- package/dist/types/src/models/models.d.ts.map +1 -1
- package/dist/types/src/models/record.d.ts +1 -1
- package/dist/types/src/models/record.d.ts.map +1 -1
- package/dist/types/src/models/record_coloring.d.ts +2 -2
- package/dist/types/src/models/record_coloring.d.ts.map +1 -1
- package/dist/types/src/models/record_query_result.d.ts +3 -3
- package/dist/types/src/models/record_query_result.d.ts.map +1 -1
- package/dist/types/src/models/session.d.ts +1 -1
- package/dist/types/src/models/session.d.ts.map +1 -1
- package/dist/types/src/models/table.d.ts +1 -1
- package/dist/types/src/models/table.d.ts.map +1 -1
- package/dist/types/src/models/view.d.ts +1 -1
- package/dist/types/src/models/view.d.ts.map +1 -1
- package/dist/types/src/models/view_metadata_query_result.d.ts +2 -2
- package/dist/types/src/models/view_metadata_query_result.d.ts.map +1 -1
- package/dist/types/src/perform_record_action.d.ts +1 -1
- package/dist/types/src/perform_record_action.d.ts.map +1 -1
- package/dist/types/src/private_utils.d.ts +8 -8
- package/dist/types/src/private_utils.d.ts.map +1 -1
- package/dist/types/src/sdk.d.ts +1 -1
- package/dist/types/src/sdk.d.ts.map +1 -1
- package/dist/types/src/settings_button.d.ts +1 -1
- package/dist/types/src/settings_button.d.ts.map +1 -1
- package/dist/types/src/types/aggregators.d.ts +1 -1
- package/dist/types/src/types/aggregators.d.ts.map +1 -1
- package/dist/types/src/types/airtable_interface.d.ts +6 -6
- package/dist/types/src/types/airtable_interface.d.ts.map +1 -1
- package/dist/types/src/types/attachment.d.ts +1 -1
- package/dist/types/src/types/attachment.d.ts.map +1 -1
- package/dist/types/src/types/base.d.ts +1 -1
- package/dist/types/src/types/base.d.ts.map +1 -1
- package/dist/types/src/types/block.d.ts +1 -1
- package/dist/types/src/types/block.d.ts.map +1 -1
- package/dist/types/src/types/collaborator.d.ts +1 -1
- package/dist/types/src/types/collaborator.d.ts.map +1 -1
- package/dist/types/src/types/field.d.ts +5 -5
- package/dist/types/src/types/field.d.ts.map +1 -1
- package/dist/types/src/types/global_config.d.ts +6 -6
- package/dist/types/src/types/global_config.d.ts.map +1 -1
- package/dist/types/src/types/mutations.d.ts +4 -4
- package/dist/types/src/types/mutations.d.ts.map +1 -1
- package/dist/types/src/types/permission_levels.d.ts +1 -1
- package/dist/types/src/types/permission_levels.d.ts.map +1 -1
- package/dist/types/src/types/record.d.ts +2 -2
- package/dist/types/src/types/record.d.ts.map +1 -1
- package/dist/types/src/types/record_action_data.d.ts +1 -1
- package/dist/types/src/types/record_action_data.d.ts.map +1 -1
- package/dist/types/src/types/table.d.ts +3 -3
- package/dist/types/src/types/table.d.ts.map +1 -1
- package/dist/types/src/types/undo_redo.d.ts +1 -1
- package/dist/types/src/types/undo_redo.d.ts.map +1 -1
- package/dist/types/src/types/view.d.ts +4 -4
- package/dist/types/src/types/view.d.ts.map +1 -1
- package/dist/types/src/ui/base_provider.d.ts +1 -1
- package/dist/types/src/ui/base_provider.d.ts.map +1 -1
- package/dist/types/src/ui/block_wrapper.d.ts +2 -2
- package/dist/types/src/ui/button.d.ts +2 -2
- package/dist/types/src/ui/button.d.ts.map +1 -1
- package/dist/types/src/ui/cell_renderer.d.ts +2 -2
- package/dist/types/src/ui/choice_token.d.ts +4 -4
- package/dist/types/src/ui/choice_token.d.ts.map +1 -1
- package/dist/types/src/ui/collaborator_token.d.ts +6 -6
- package/dist/types/src/ui/collaborator_token.d.ts.map +1 -1
- package/dist/types/src/ui/color_palette.d.ts +3 -3
- package/dist/types/src/ui/color_palette.d.ts.map +1 -1
- package/dist/types/src/ui/color_palette_synced.d.ts +2 -2
- package/dist/types/src/ui/confirmation_dialog.d.ts +1 -1
- package/dist/types/src/ui/control_sizes.d.ts +2 -2
- package/dist/types/src/ui/control_sizes.d.ts.map +1 -1
- package/dist/types/src/ui/dialog.d.ts +2 -2
- package/dist/types/src/ui/dialog.d.ts.map +1 -1
- package/dist/types/src/ui/dialog_close_button.d.ts +1 -1
- package/dist/types/src/ui/field_icon.d.ts +3 -3
- package/dist/types/src/ui/field_icon.d.ts.map +1 -1
- package/dist/types/src/ui/field_picker.d.ts +2 -2
- package/dist/types/src/ui/field_picker.d.ts.map +1 -1
- package/dist/types/src/ui/form_field.d.ts +1 -1
- package/dist/types/src/ui/form_field.d.ts.map +1 -1
- package/dist/types/src/ui/global_alert.d.ts +1 -1
- package/dist/types/src/ui/global_alert.d.ts.map +1 -1
- package/dist/types/src/ui/global_config_synced_component_helpers.d.ts +1 -1
- package/dist/types/src/ui/global_config_synced_component_helpers.d.ts.map +1 -1
- package/dist/types/src/ui/heading.d.ts +4 -4
- package/dist/types/src/ui/heading.d.ts.map +1 -1
- package/dist/types/src/ui/icon.d.ts +2 -2
- package/dist/types/src/ui/icon.d.ts.map +1 -1
- package/dist/types/src/ui/icon_config.d.ts +39 -39
- package/dist/types/src/ui/icon_config.d.ts.map +1 -1
- package/dist/types/src/ui/initialize_block.d.ts +3 -3
- package/dist/types/src/ui/initialize_block.d.ts.map +1 -1
- package/dist/types/src/ui/input.d.ts +16 -16
- package/dist/types/src/ui/input.d.ts.map +1 -1
- package/dist/types/src/ui/label.d.ts +1 -1
- package/dist/types/src/ui/label.d.ts.map +1 -1
- package/dist/types/src/ui/link.d.ts +2 -2
- package/dist/types/src/ui/link.d.ts.map +1 -1
- package/dist/types/src/ui/loader.d.ts +2 -2
- package/dist/types/src/ui/loader.d.ts.map +1 -1
- package/dist/types/src/ui/model_picker_select.d.ts +1 -1
- package/dist/types/src/ui/model_picker_select.d.ts.map +1 -1
- package/dist/types/src/ui/popover.d.ts +5 -5
- package/dist/types/src/ui/popover.d.ts.map +1 -1
- package/dist/types/src/ui/progress_bar.d.ts +2 -2
- package/dist/types/src/ui/progress_bar.d.ts.map +1 -1
- package/dist/types/src/ui/record_card.d.ts +3 -3
- package/dist/types/src/ui/record_card.d.ts.map +1 -1
- package/dist/types/src/ui/record_card_list.d.ts +3 -3
- package/dist/types/src/ui/record_card_list.d.ts.map +1 -1
- package/dist/types/src/ui/select.d.ts +4 -4
- package/dist/types/src/ui/select_and_select_buttons_helpers.d.ts +4 -4
- package/dist/types/src/ui/select_and_select_buttons_helpers.d.ts.map +1 -1
- package/dist/types/src/ui/select_buttons.d.ts +5 -5
- package/dist/types/src/ui/select_buttons.d.ts.map +1 -1
- package/dist/types/src/ui/switch.d.ts +2 -2
- package/dist/types/src/ui/switch.d.ts.map +1 -1
- package/dist/types/src/ui/synced.d.ts +3 -3
- package/dist/types/src/ui/system/all_styles_set.d.ts +0 -1
- package/dist/types/src/ui/system/all_styles_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/appearance_set.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/appearance_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/background_color.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/background_color.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/border.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/border.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/border_radius.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/border_radius.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/box_shadow.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/box_shadow.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/opacity.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/opacity.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/dimensions_set.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/dimensions_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/height.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/height.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/max_height.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/max_height.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/max_width.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/max_width.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/min_height.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/min_height.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/min_width.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/min_width.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/width.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/width.d.ts.map +1 -1
- package/dist/types/src/ui/system/display.d.ts +0 -1
- package/dist/types/src/ui/system/display.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/align_content.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/align_content.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/align_items.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/align_items.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/flex_container_set.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/flex_container_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/flex_direction.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/flex_direction.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/flex_wrap.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/flex_wrap.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/justify_content.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/justify_content.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/justify_items.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/justify_items.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/align_self.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/align_self.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex_basis.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex_basis.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex_grow.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex_grow.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex_item_set.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex_item_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex_shrink.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex_shrink.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/justify_self.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/justify_self.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/order.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/order.d.ts.map +1 -1
- package/dist/types/src/ui/system/overflow.d.ts +0 -1
- package/dist/types/src/ui/system/overflow.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/bottom.d.ts +0 -1
- package/dist/types/src/ui/system/position/bottom.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/left.d.ts +0 -1
- package/dist/types/src/ui/system/position/left.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/position.d.ts +0 -1
- package/dist/types/src/ui/system/position/position.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/position_set.d.ts +0 -1
- package/dist/types/src/ui/system/position/position_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/right.d.ts +0 -1
- package/dist/types/src/ui/system/position/right.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/top.d.ts +0 -1
- package/dist/types/src/ui/system/position/top.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/z_index.d.ts +0 -1
- package/dist/types/src/ui/system/position/z_index.d.ts.map +1 -1
- package/dist/types/src/ui/system/spacing/margin.d.ts +0 -1
- package/dist/types/src/ui/system/spacing/margin.d.ts.map +1 -1
- package/dist/types/src/ui/system/spacing/padding.d.ts +0 -1
- package/dist/types/src/ui/system/spacing/padding.d.ts.map +1 -1
- package/dist/types/src/ui/system/spacing/spacing_set.d.ts +0 -1
- package/dist/types/src/ui/system/spacing/spacing_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/font_family.d.ts +0 -1
- package/dist/types/src/ui/system/typography/font_family.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/font_size.d.ts +0 -1
- package/dist/types/src/ui/system/typography/font_size.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/font_style.d.ts +0 -1
- package/dist/types/src/ui/system/typography/font_style.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/font_weight.d.ts +0 -1
- package/dist/types/src/ui/system/typography/font_weight.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/letter_spacing.d.ts +0 -1
- package/dist/types/src/ui/system/typography/letter_spacing.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/line_height.d.ts +0 -1
- package/dist/types/src/ui/system/typography/line_height.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/text_align.d.ts +0 -1
- package/dist/types/src/ui/system/typography/text_align.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/text_color.d.ts +0 -1
- package/dist/types/src/ui/system/typography/text_color.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/text_decoration.d.ts +0 -1
- package/dist/types/src/ui/system/typography/text_decoration.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/text_transform.d.ts +0 -1
- package/dist/types/src/ui/system/typography/text_transform.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/typography_set.d.ts +0 -1
- package/dist/types/src/ui/system/typography/typography_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/utils/create_style_prop_types.d.ts +1 -1
- package/dist/types/src/ui/system/utils/create_style_prop_types.d.ts.map +1 -1
- package/dist/types/src/ui/system/utils/csstype.d.ts +578 -578
- package/dist/types/src/ui/system/utils/csstype.d.ts.map +1 -1
- package/dist/types/src/ui/system/utils/types.d.ts +4 -4
- package/dist/types/src/ui/system/utils/types.d.ts.map +1 -1
- package/dist/types/src/ui/table_picker.d.ts +1 -1
- package/dist/types/src/ui/table_picker.d.ts.map +1 -1
- package/dist/types/src/ui/text.d.ts +4 -4
- package/dist/types/src/ui/text.d.ts.map +1 -1
- package/dist/types/src/ui/text_button.d.ts +2 -2
- package/dist/types/src/ui/text_button.d.ts.map +1 -1
- package/dist/types/src/ui/theme/default_theme/heading_styles.d.ts +2 -2
- package/dist/types/src/ui/theme/default_theme/heading_styles.d.ts.map +1 -1
- package/dist/types/src/ui/theme/default_theme/index.d.ts +1 -1
- package/dist/types/src/ui/theme/theme_context.d.ts +1 -3
- package/dist/types/src/ui/theme/theme_context.d.ts.map +1 -1
- package/dist/types/src/ui/theme/use_theme.d.ts +1 -1
- package/dist/types/src/ui/tooltip.d.ts +3 -3
- package/dist/types/src/ui/types/data_attributes_prop.d.ts.map +1 -1
- package/dist/types/src/ui/types/tooltip_anchor_props.d.ts +0 -1
- package/dist/types/src/ui/types/tooltip_anchor_props.d.ts.map +1 -1
- package/dist/types/src/ui/ui.d.ts +1 -0
- package/dist/types/src/ui/ui.d.ts.map +1 -1
- package/dist/types/src/ui/use_base.d.ts.map +1 -1
- package/dist/types/src/ui/use_color_scheme.d.ts +28 -0
- package/dist/types/src/ui/use_color_scheme.d.ts.map +1 -0
- package/dist/types/src/ui/use_cursor.d.ts.map +1 -1
- package/dist/types/src/ui/use_form_field.d.ts +0 -2
- package/dist/types/src/ui/use_form_field.d.ts.map +1 -1
- package/dist/types/src/ui/use_records.d.ts +2 -2
- package/dist/types/src/ui/use_records.d.ts.map +1 -1
- package/dist/types/src/ui/use_session.d.ts.map +1 -1
- package/dist/types/src/ui/view_picker.d.ts +3 -3
- package/dist/types/src/ui/view_picker.d.ts.map +1 -1
- package/dist/types/src/ui/viewport_constraint.d.ts +3 -3
- package/dist/types/src/ui/viewport_constraint.d.ts.map +1 -1
- package/dist/types/src/viewport.d.ts +2 -2
- package/dist/types/src/viewport.d.ts.map +1 -1
- package/dist/types/src/warning.d.ts +1 -1
- package/dist/types/src/warning.d.ts.map +1 -1
- package/package.json +40 -34
- package/dist/types/stories/all_controls.stories.d.ts +0 -2
- package/dist/types/stories/all_controls.stories.d.ts.map +0 -1
- package/dist/types/stories/box.appearance.stories.d.ts +0 -2
- package/dist/types/stories/box.appearance.stories.d.ts.map +0 -1
- package/dist/types/stories/box.dimensions.stories.d.ts +0 -2
- package/dist/types/stories/box.dimensions.stories.d.ts.map +0 -1
- package/dist/types/stories/box.flex_container.stories.d.ts +0 -2
- package/dist/types/stories/box.flex_container.stories.d.ts.map +0 -1
- package/dist/types/stories/box.flex_item.stories.d.ts +0 -2
- package/dist/types/stories/box.flex_item.stories.d.ts.map +0 -1
- package/dist/types/stories/box.position.stories.d.ts +0 -2
- package/dist/types/stories/box.position.stories.d.ts.map +0 -1
- package/dist/types/stories/box.spacing.stories.d.ts +0 -2
- package/dist/types/stories/box.spacing.stories.d.ts.map +0 -1
- package/dist/types/stories/box.stories.d.ts +0 -2
- package/dist/types/stories/box.stories.d.ts.map +0 -1
- package/dist/types/stories/box.typography.stories.d.ts +0 -2
- package/dist/types/stories/box.typography.stories.d.ts.map +0 -1
- package/dist/types/stories/button.stories.d.ts +0 -2
- package/dist/types/stories/button.stories.d.ts.map +0 -1
- package/dist/types/stories/cell_renderer.stories.d.ts +0 -2
- package/dist/types/stories/cell_renderer.stories.d.ts.map +0 -1
- package/dist/types/stories/choice_token.stories.d.ts +0 -2
- package/dist/types/stories/choice_token.stories.d.ts.map +0 -1
- package/dist/types/stories/collaborator_token.stories.d.ts +0 -2
- package/dist/types/stories/collaborator_token.stories.d.ts.map +0 -1
- package/dist/types/stories/color_palette.stories.d.ts +0 -2
- package/dist/types/stories/color_palette.stories.d.ts.map +0 -1
- package/dist/types/stories/confirmation_dialog.stories.d.ts +0 -2
- package/dist/types/stories/confirmation_dialog.stories.d.ts.map +0 -1
- package/dist/types/stories/dialog.stories.d.ts +0 -2
- package/dist/types/stories/dialog.stories.d.ts.map +0 -1
- package/dist/types/stories/field_icon.stories.d.ts +0 -2
- package/dist/types/stories/field_icon.stories.d.ts.map +0 -1
- package/dist/types/stories/form_field.stories.d.ts +0 -2
- package/dist/types/stories/form_field.stories.d.ts.map +0 -1
- package/dist/types/stories/heading.size.stories.d.ts +0 -2
- package/dist/types/stories/heading.size.stories.d.ts.map +0 -1
- package/dist/types/stories/heading.stories.d.ts +0 -2
- 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 -2
- 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 -2
- package/dist/types/stories/input.stories.d.ts.map +0 -1
- package/dist/types/stories/label.stories.d.ts +0 -2
- package/dist/types/stories/label.stories.d.ts.map +0 -1
- package/dist/types/stories/link.stories.d.ts +0 -2
- package/dist/types/stories/link.stories.d.ts.map +0 -1
- package/dist/types/stories/loader.stories.d.ts +0 -2
- package/dist/types/stories/loader.stories.d.ts.map +0 -1
- package/dist/types/stories/model_pickers.stories.d.ts +0 -2
- package/dist/types/stories/model_pickers.stories.d.ts.map +0 -1
- package/dist/types/stories/progress_bar.stories.d.ts +0 -2
- package/dist/types/stories/progress_bar.stories.d.ts.map +0 -1
- package/dist/types/stories/record_card.stories.d.ts +0 -2
- package/dist/types/stories/record_card.stories.d.ts.map +0 -1
- package/dist/types/stories/record_card_list.stories.d.ts +0 -2
- package/dist/types/stories/record_card_list.stories.d.ts.map +0 -1
- package/dist/types/stories/select.stories.d.ts +0 -2
- package/dist/types/stories/select.stories.d.ts.map +0 -1
- package/dist/types/stories/select_buttons.stories.d.ts +0 -2
- package/dist/types/stories/select_buttons.stories.d.ts.map +0 -1
- package/dist/types/stories/switch.stories.d.ts +0 -2
- package/dist/types/stories/switch.stories.d.ts.map +0 -1
- package/dist/types/stories/text.size.stories.d.ts +0 -2
- package/dist/types/stories/text.size.stories.d.ts.map +0 -1
- package/dist/types/stories/text.stories.d.ts +0 -2
- package/dist/types/stories/text.stories.d.ts.map +0 -1
- package/dist/types/stories/text_button.stories.d.ts +0 -2
- package/dist/types/stories/text_button.stories.d.ts.map +0 -1
- package/dist/types/stories/tooltip.stories.d.ts +0 -2
- package/dist/types/stories/tooltip.stories.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts +0 -124
- 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 -61
- 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_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
|
@@ -1,79 +1,100 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.array.from.js");
|
|
6
|
+
require("core-js/modules/es.array.slice.js");
|
|
7
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
8
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
3
9
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.symbol");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.symbol.description");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.array.concat");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.array.filter");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.array.flat");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.array.iterator");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.array.unscopables.flat");
|
|
18
|
-
|
|
19
|
-
require("core-js/modules/es.object.entries");
|
|
20
|
-
|
|
21
|
-
require("core-js/modules/es.object.to-string");
|
|
22
|
-
|
|
23
|
-
require("core-js/modules/es.object.values");
|
|
24
|
-
|
|
25
|
-
require("core-js/modules/es.set");
|
|
26
|
-
|
|
27
|
-
require("core-js/modules/es.weak-map");
|
|
28
|
-
|
|
29
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
30
|
-
|
|
31
10
|
Object.defineProperty(exports, "__esModule", {
|
|
32
11
|
value: true
|
|
33
12
|
});
|
|
13
|
+
exports.arrayDifference = arrayDifference;
|
|
14
|
+
exports.assertEnumValue = assertEnumValue;
|
|
15
|
+
exports.cast = cast;
|
|
16
|
+
exports.clamp = clamp;
|
|
17
|
+
exports.cloneDeep = cloneDeep;
|
|
18
|
+
exports.compact = compact;
|
|
34
19
|
exports.createEnum = createEnum;
|
|
35
20
|
exports.createPropTypeFromEnum = createPropTypeFromEnum;
|
|
36
21
|
exports.createResponsivePropTypeFromEnum = createResponsivePropTypeFromEnum;
|
|
37
|
-
exports.
|
|
38
|
-
exports.cloneDeep = cloneDeep;
|
|
39
|
-
exports.keys = keys;
|
|
40
|
-
exports.values = values;
|
|
22
|
+
exports.debounce = debounce;
|
|
41
23
|
exports.entries = entries;
|
|
42
24
|
exports.fireAndForgetPromise = fireAndForgetPromise;
|
|
43
|
-
exports.has = has;
|
|
44
|
-
exports.getEnumValueIfExists = getEnumValueIfExists;
|
|
45
|
-
exports.assertEnumValue = assertEnumValue;
|
|
46
|
-
exports.isEnumValue = isEnumValue;
|
|
47
|
-
exports.isObjectEmpty = isObjectEmpty;
|
|
48
|
-
exports.isNullOrUndefinedOrEmpty = isNullOrUndefinedOrEmpty;
|
|
49
|
-
exports.compact = compact;
|
|
50
|
-
exports.clamp = clamp;
|
|
51
25
|
exports.flattenDeep = flattenDeep;
|
|
52
|
-
exports.
|
|
26
|
+
exports.getEnumValueIfExists = getEnumValueIfExists;
|
|
53
27
|
exports.getId = getId;
|
|
54
|
-
exports.
|
|
28
|
+
exports.getLocaleAndDefaultLocale = getLocaleAndDefaultLocale;
|
|
55
29
|
exports.getLocallyUniqueId = getLocallyUniqueId;
|
|
56
30
|
exports.getValueAtOwnPath = getValueAtOwnPath;
|
|
57
|
-
exports.
|
|
58
|
-
exports.debounce = debounce;
|
|
31
|
+
exports.has = has;
|
|
59
32
|
exports.isBlockDevelopmentRestrictionEnabled = isBlockDevelopmentRestrictionEnabled;
|
|
60
|
-
exports.getLocaleAndDefaultLocale = getLocaleAndDefaultLocale;
|
|
61
33
|
Object.defineProperty(exports, "isDeepEqual", {
|
|
62
34
|
enumerable: true,
|
|
63
35
|
get: function get() {
|
|
64
36
|
return _fastDeepEqual.default;
|
|
65
37
|
}
|
|
66
38
|
});
|
|
67
|
-
|
|
39
|
+
exports.isEnumValue = isEnumValue;
|
|
40
|
+
exports.isNullOrUndefinedOrEmpty = isNullOrUndefinedOrEmpty;
|
|
41
|
+
exports.isObjectEmpty = isObjectEmpty;
|
|
42
|
+
exports.keyBy = keyBy;
|
|
43
|
+
exports.keys = keys;
|
|
44
|
+
exports.uniqBy = uniqBy;
|
|
45
|
+
exports.values = values;
|
|
46
|
+
require("core-js/modules/es.array.concat.js");
|
|
47
|
+
require("core-js/modules/es.array.filter.js");
|
|
48
|
+
require("core-js/modules/es.array.flat.js");
|
|
49
|
+
require("core-js/modules/es.array.iterator.js");
|
|
50
|
+
require("core-js/modules/es.array.unscopables.flat.js");
|
|
51
|
+
require("core-js/modules/es.object.entries.js");
|
|
52
|
+
require("core-js/modules/es.object.to-string.js");
|
|
53
|
+
require("core-js/modules/es.object.values.js");
|
|
54
|
+
require("core-js/modules/es.set.js");
|
|
55
|
+
require("core-js/modules/es.weak-map.js");
|
|
56
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
68
57
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
69
|
-
|
|
70
58
|
var _airtable_interface = _interopRequireDefault(require("./injected/airtable_interface"));
|
|
71
|
-
|
|
72
59
|
var _error_utils = require("./error_utils");
|
|
73
|
-
|
|
74
60
|
var _create_responsive_prop_type = _interopRequireDefault(require("./ui/system/utils/create_responsive_prop_type"));
|
|
75
|
-
|
|
76
61
|
var _fastDeepEqual = _interopRequireDefault(require("fast-deep-equal"));
|
|
62
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
63
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
64
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
65
|
+
/** @hidden */
|
|
66
|
+
|
|
67
|
+
/** @hidden */
|
|
68
|
+
|
|
69
|
+
/** @hidden */
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Get the type of all the values of an object.
|
|
73
|
+
*
|
|
74
|
+
* Same as the legacy Flow `$Values<T>` type.
|
|
75
|
+
*
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/** @hidden */
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Extract the type of `ref` from a react component
|
|
83
|
+
*
|
|
84
|
+
* @hidden
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Allows creating an object map type with a dynamic key type.
|
|
89
|
+
*
|
|
90
|
+
* TypeScript only allows `string` for `K` in `{[key: K]: V}` so we need a utility to bridge
|
|
91
|
+
* the gap.
|
|
92
|
+
*
|
|
93
|
+
* This is an alias for TypeScript’s `Record` type, but the name “record” is confusing given our
|
|
94
|
+
* Airtable domain model.
|
|
95
|
+
*
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
77
98
|
|
|
78
99
|
/**
|
|
79
100
|
* Creates an enum from provided string arguments.
|
|
@@ -86,28 +107,25 @@ var _fastDeepEqual = _interopRequireDefault(require("fast-deep-equal"));
|
|
|
86
107
|
*/
|
|
87
108
|
function createEnum() {
|
|
88
109
|
var spec = {};
|
|
89
|
-
|
|
90
110
|
for (var _len = arguments.length, enumValues = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
91
111
|
enumValues[_key] = arguments[_key];
|
|
92
112
|
}
|
|
93
|
-
|
|
94
113
|
for (var _i = 0, _enumValues = enumValues; _i < _enumValues.length; _i++) {
|
|
95
114
|
var value = _enumValues[_i];
|
|
96
115
|
spec[value] = value;
|
|
97
116
|
}
|
|
98
|
-
|
|
99
117
|
return Object.freeze(spec);
|
|
100
118
|
}
|
|
119
|
+
|
|
101
120
|
/**
|
|
102
121
|
* Creates a React propType for a provided enum.
|
|
103
122
|
*
|
|
104
123
|
* @hidden
|
|
105
124
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
125
|
function createPropTypeFromEnum(enumData) {
|
|
109
126
|
return _propTypes.default.oneOf(values(enumData));
|
|
110
127
|
}
|
|
128
|
+
|
|
111
129
|
/**
|
|
112
130
|
* Creates a responsive React propType for a provided enum.
|
|
113
131
|
*
|
|
@@ -116,19 +134,17 @@ function createPropTypeFromEnum(enumData) {
|
|
|
116
134
|
*
|
|
117
135
|
* @hidden
|
|
118
136
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
137
|
function createResponsivePropTypeFromEnum(enumData) {
|
|
122
138
|
var propType = createPropTypeFromEnum(enumData);
|
|
123
139
|
return (0, _create_responsive_prop_type.default)(propType);
|
|
124
140
|
}
|
|
141
|
+
|
|
125
142
|
/**
|
|
126
143
|
* Creates a Type for an enum created using `createEnum`.
|
|
127
144
|
*
|
|
128
145
|
* @hidden
|
|
129
146
|
*/
|
|
130
147
|
|
|
131
|
-
|
|
132
148
|
/**
|
|
133
149
|
* Safely cast a value to the type passed in as a type parameter.
|
|
134
150
|
*
|
|
@@ -140,61 +156,54 @@ function createResponsivePropTypeFromEnum(enumData) {
|
|
|
140
156
|
function cast(x) {
|
|
141
157
|
return x;
|
|
142
158
|
}
|
|
159
|
+
|
|
143
160
|
/**
|
|
144
161
|
* @hidden
|
|
145
162
|
*/
|
|
146
|
-
|
|
147
|
-
|
|
148
163
|
function cloneDeep(obj) {
|
|
149
164
|
var jsonString = JSON.stringify(obj);
|
|
150
|
-
|
|
151
165
|
if (jsonString === undefined) {
|
|
152
166
|
return obj;
|
|
153
167
|
}
|
|
154
|
-
|
|
155
168
|
return JSON.parse(jsonString);
|
|
156
|
-
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// typescript has a stricter definition for Object.values and Object.entries that return mixed in place
|
|
157
172
|
// of the actual values. This is because for non-exact objects, that's the only sound definition.
|
|
158
173
|
// You can call Object.values with a value typed as {x: number} that actually looks like
|
|
159
174
|
// {x: number, y: string}, for example. Returning mixed isn't particularly useful though, so we
|
|
160
175
|
// provide these unsound wrappers instead.
|
|
161
176
|
// TODO: consider renaming these with unsound_ prefixes.
|
|
162
|
-
|
|
163
177
|
/**
|
|
164
178
|
* @hidden
|
|
165
179
|
*/
|
|
166
|
-
|
|
167
|
-
|
|
168
180
|
function keys(obj) {
|
|
169
181
|
return Object.keys(obj);
|
|
170
182
|
}
|
|
183
|
+
|
|
171
184
|
/**
|
|
172
185
|
* @hidden
|
|
173
186
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
176
187
|
function values(obj) {
|
|
177
188
|
return Object.values(obj);
|
|
178
189
|
}
|
|
190
|
+
|
|
179
191
|
/**
|
|
180
192
|
* @hidden
|
|
181
193
|
*/
|
|
182
|
-
|
|
183
|
-
|
|
184
194
|
function entries(obj) {
|
|
185
195
|
// @ts-ignore
|
|
186
196
|
return Object.entries(obj);
|
|
187
|
-
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Result values are discarded and errors are thrown asynchronously.
|
|
188
200
|
// NOTE: this is different from the one in u: the function passed
|
|
189
201
|
// in must be fully bound with all of its arguments and will be immediately
|
|
190
202
|
// called (this does not return a function). This makes it work better with
|
|
191
203
|
// Flow: you get argument type checking by using `.bind`.
|
|
192
|
-
|
|
193
204
|
/**
|
|
194
205
|
* @hidden
|
|
195
206
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
207
|
function fireAndForgetPromise(fn) {
|
|
199
208
|
fn().catch(err => {
|
|
200
209
|
// Defer til later, so the error doesn't cause the promise to be rejected.
|
|
@@ -203,157 +212,115 @@ function fireAndForgetPromise(fn) {
|
|
|
203
212
|
}, 0);
|
|
204
213
|
});
|
|
205
214
|
}
|
|
215
|
+
|
|
206
216
|
/**
|
|
207
217
|
* @hidden
|
|
208
218
|
*/
|
|
209
|
-
|
|
210
|
-
|
|
211
219
|
function has(obj, key) {
|
|
212
220
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
213
221
|
}
|
|
214
|
-
|
|
215
222
|
var invertedEnumCache = new WeakMap();
|
|
216
223
|
/**
|
|
217
224
|
* @hidden
|
|
218
225
|
*/
|
|
219
|
-
|
|
220
226
|
function getInvertedEnumMemoized(enumObj) {
|
|
221
227
|
var existingInvertedEnum = invertedEnumCache.get(enumObj);
|
|
222
|
-
|
|
223
228
|
if (existingInvertedEnum) {
|
|
224
229
|
// typescript can't type WeakMap precisely enough to know that it's being used as this sort of cache
|
|
225
230
|
return existingInvertedEnum;
|
|
226
231
|
}
|
|
227
|
-
|
|
228
232
|
var invertedEnum = {};
|
|
229
|
-
var
|
|
230
|
-
|
|
231
|
-
var _iteratorError = undefined;
|
|
232
|
-
|
|
233
|
+
var _iterator = _createForOfIteratorHelper(keys(enumObj)),
|
|
234
|
+
_step;
|
|
233
235
|
try {
|
|
234
|
-
for (
|
|
236
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
235
237
|
var enumKey = _step.value;
|
|
236
238
|
var enumValue = enumObj[enumKey];
|
|
237
239
|
invertedEnum[enumValue] = enumKey;
|
|
238
240
|
}
|
|
239
241
|
} catch (err) {
|
|
240
|
-
|
|
241
|
-
_iteratorError = err;
|
|
242
|
+
_iterator.e(err);
|
|
242
243
|
} finally {
|
|
243
|
-
|
|
244
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
245
|
-
_iterator.return();
|
|
246
|
-
}
|
|
247
|
-
} finally {
|
|
248
|
-
if (_didIteratorError) {
|
|
249
|
-
throw _iteratorError;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
244
|
+
_iterator.f();
|
|
252
245
|
}
|
|
253
|
-
|
|
254
246
|
invertedEnumCache.set(enumObj, invertedEnum);
|
|
255
247
|
return invertedEnum;
|
|
256
248
|
}
|
|
249
|
+
|
|
257
250
|
/**
|
|
258
251
|
* @hidden
|
|
259
252
|
*/
|
|
260
|
-
|
|
261
|
-
|
|
262
253
|
function getEnumValueIfExists(enumObj, valueToCheck) {
|
|
263
254
|
var invertedEnum = getInvertedEnumMemoized(enumObj);
|
|
264
|
-
|
|
265
255
|
if (has(invertedEnum, valueToCheck) && invertedEnum[valueToCheck]) {
|
|
266
256
|
var enumKey = invertedEnum[valueToCheck];
|
|
267
257
|
return enumObj[enumKey];
|
|
268
258
|
}
|
|
269
|
-
|
|
270
259
|
return null;
|
|
271
260
|
}
|
|
261
|
+
|
|
272
262
|
/**
|
|
273
263
|
* @hidden
|
|
274
264
|
*/
|
|
275
|
-
|
|
276
|
-
|
|
277
265
|
function assertEnumValue(enumObj, valueToCheck) {
|
|
278
266
|
var enumValue = getEnumValueIfExists(enumObj, valueToCheck);
|
|
279
|
-
|
|
280
267
|
if (!enumValue) {
|
|
281
268
|
throw (0, _error_utils.spawnError)('Unknown enum value %s', valueToCheck);
|
|
282
269
|
}
|
|
283
|
-
|
|
284
270
|
return enumValue;
|
|
285
271
|
}
|
|
272
|
+
|
|
286
273
|
/**
|
|
287
274
|
* @hidden
|
|
288
275
|
*/
|
|
289
|
-
|
|
290
|
-
|
|
291
276
|
function isEnumValue(enumObj, valueToCheck) {
|
|
292
277
|
return getEnumValueIfExists(enumObj, valueToCheck) !== null;
|
|
293
278
|
}
|
|
279
|
+
|
|
294
280
|
/**
|
|
295
281
|
* @hidden
|
|
296
282
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
299
283
|
function isObjectEmpty(obj) {
|
|
300
|
-
for (var
|
|
301
|
-
if (has(obj,
|
|
284
|
+
for (var key in obj) {
|
|
285
|
+
if (has(obj, key)) {
|
|
302
286
|
return false;
|
|
303
287
|
}
|
|
304
288
|
}
|
|
305
|
-
|
|
306
289
|
return true;
|
|
307
290
|
}
|
|
291
|
+
|
|
308
292
|
/**
|
|
309
293
|
* @hidden
|
|
310
294
|
*/
|
|
311
|
-
|
|
312
|
-
|
|
313
295
|
function isNullOrUndefinedOrEmpty(value) {
|
|
314
296
|
return value === null || value === undefined || (typeof value === 'string' || Array.isArray(value)) && value.length === 0 || typeof value === 'object' && value !== null && isObjectEmpty(value);
|
|
315
297
|
}
|
|
298
|
+
|
|
316
299
|
/**
|
|
317
300
|
* @hidden
|
|
318
301
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
321
302
|
function compact(array) {
|
|
322
303
|
var result = [];
|
|
323
|
-
var
|
|
324
|
-
|
|
325
|
-
var _iteratorError2 = undefined;
|
|
326
|
-
|
|
304
|
+
var _iterator2 = _createForOfIteratorHelper(array),
|
|
305
|
+
_step2;
|
|
327
306
|
try {
|
|
328
|
-
for (
|
|
307
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
329
308
|
var item = _step2.value;
|
|
330
|
-
|
|
331
309
|
if (item !== null && item !== undefined) {
|
|
332
310
|
result.push(item);
|
|
333
311
|
}
|
|
334
312
|
}
|
|
335
313
|
} catch (err) {
|
|
336
|
-
|
|
337
|
-
_iteratorError2 = err;
|
|
314
|
+
_iterator2.e(err);
|
|
338
315
|
} finally {
|
|
339
|
-
|
|
340
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
341
|
-
_iterator2.return();
|
|
342
|
-
}
|
|
343
|
-
} finally {
|
|
344
|
-
if (_didIteratorError2) {
|
|
345
|
-
throw _iteratorError2;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
316
|
+
_iterator2.f();
|
|
348
317
|
}
|
|
349
|
-
|
|
350
318
|
return result;
|
|
351
319
|
}
|
|
320
|
+
|
|
352
321
|
/**
|
|
353
322
|
* @hidden
|
|
354
323
|
*/
|
|
355
|
-
|
|
356
|
-
|
|
357
324
|
function clamp(n, lowerBound, upperBound) {
|
|
358
325
|
if (n < lowerBound) {
|
|
359
326
|
return lowerBound;
|
|
@@ -363,109 +330,77 @@ function clamp(n, lowerBound, upperBound) {
|
|
|
363
330
|
return n;
|
|
364
331
|
}
|
|
365
332
|
}
|
|
366
|
-
/** @hidden */
|
|
367
333
|
|
|
334
|
+
/** @hidden */
|
|
368
335
|
|
|
369
336
|
/**
|
|
370
337
|
* @hidden
|
|
371
338
|
*/
|
|
372
339
|
function flattenDeep(array) {
|
|
373
|
-
//
|
|
340
|
+
// @ts-ignore
|
|
374
341
|
return array.flat(Infinity);
|
|
375
|
-
}
|
|
376
|
-
// to convert them to strings in getKey, e.g. keyBy(collection, o => String(o.id))
|
|
342
|
+
}
|
|
377
343
|
|
|
344
|
+
// For cases where the object keys aren't strings, it's the consumer's responsibility
|
|
345
|
+
// to convert them to strings in getKey, e.g. keyBy(collection, o => String(o.id))
|
|
378
346
|
/**
|
|
379
347
|
* @hidden
|
|
380
348
|
*/
|
|
381
|
-
|
|
382
|
-
|
|
383
349
|
function keyBy(array, getKey) {
|
|
384
350
|
var result = {};
|
|
385
|
-
var
|
|
386
|
-
|
|
387
|
-
var _iteratorError3 = undefined;
|
|
388
|
-
|
|
351
|
+
var _iterator3 = _createForOfIteratorHelper(array),
|
|
352
|
+
_step3;
|
|
389
353
|
try {
|
|
390
|
-
for (
|
|
354
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
391
355
|
var item = _step3.value;
|
|
392
356
|
result[getKey(item)] = item;
|
|
393
357
|
}
|
|
394
358
|
} catch (err) {
|
|
395
|
-
|
|
396
|
-
_iteratorError3 = err;
|
|
359
|
+
_iterator3.e(err);
|
|
397
360
|
} finally {
|
|
398
|
-
|
|
399
|
-
if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
|
|
400
|
-
_iterator3.return();
|
|
401
|
-
}
|
|
402
|
-
} finally {
|
|
403
|
-
if (_didIteratorError3) {
|
|
404
|
-
throw _iteratorError3;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
361
|
+
_iterator3.f();
|
|
407
362
|
}
|
|
408
|
-
|
|
409
363
|
return result;
|
|
410
364
|
}
|
|
365
|
+
|
|
411
366
|
/**
|
|
412
367
|
* @hidden
|
|
413
368
|
*/
|
|
414
|
-
|
|
415
|
-
|
|
416
369
|
function getId(_ref) {
|
|
417
370
|
var id = _ref.id;
|
|
418
371
|
return id;
|
|
419
372
|
}
|
|
373
|
+
|
|
420
374
|
/**
|
|
421
375
|
* @hidden
|
|
422
376
|
*/
|
|
423
|
-
|
|
424
|
-
|
|
425
377
|
function uniqBy(array, getKey) {
|
|
426
378
|
var usedKeys = new Set();
|
|
427
379
|
var result = [];
|
|
428
|
-
var
|
|
429
|
-
|
|
430
|
-
var _iteratorError4 = undefined;
|
|
431
|
-
|
|
380
|
+
var _iterator4 = _createForOfIteratorHelper(array),
|
|
381
|
+
_step4;
|
|
432
382
|
try {
|
|
433
|
-
for (
|
|
383
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
434
384
|
var item = _step4.value;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
if (!usedKeys.has(_key3)) {
|
|
385
|
+
var key = getKey(item);
|
|
386
|
+
if (!usedKeys.has(key)) {
|
|
439
387
|
result.push(item);
|
|
440
|
-
usedKeys.add(
|
|
388
|
+
usedKeys.add(key);
|
|
441
389
|
}
|
|
442
390
|
}
|
|
443
391
|
} catch (err) {
|
|
444
|
-
|
|
445
|
-
_iteratorError4 = err;
|
|
392
|
+
_iterator4.e(err);
|
|
446
393
|
} finally {
|
|
447
|
-
|
|
448
|
-
if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
|
|
449
|
-
_iterator4.return();
|
|
450
|
-
}
|
|
451
|
-
} finally {
|
|
452
|
-
if (_didIteratorError4) {
|
|
453
|
-
throw _iteratorError4;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
394
|
+
_iterator4.f();
|
|
456
395
|
}
|
|
457
|
-
|
|
458
396
|
return result;
|
|
459
397
|
}
|
|
460
|
-
|
|
461
398
|
var idCount = 0;
|
|
462
399
|
/** @hidden */
|
|
463
|
-
|
|
464
400
|
function getLocallyUniqueId() {
|
|
465
401
|
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
466
402
|
return "".concat(prefix, ".").concat(idCount++);
|
|
467
403
|
}
|
|
468
|
-
|
|
469
404
|
var plainObjectPrototype = Object.getPrototypeOf({});
|
|
470
405
|
/**
|
|
471
406
|
* A more restrictive version of Lodash's `get`. Notable differences:
|
|
@@ -474,94 +409,69 @@ var plainObjectPrototype = Object.getPrototypeOf({});
|
|
|
474
409
|
*
|
|
475
410
|
* @hidden
|
|
476
411
|
*/
|
|
477
|
-
|
|
478
412
|
function getValueAtOwnPath(value, path) {
|
|
479
413
|
var currentValue = value;
|
|
480
|
-
var
|
|
481
|
-
|
|
482
|
-
var _iteratorError5 = undefined;
|
|
483
|
-
|
|
414
|
+
var _iterator5 = _createForOfIteratorHelper(path),
|
|
415
|
+
_step5;
|
|
484
416
|
try {
|
|
485
|
-
for (
|
|
417
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
486
418
|
var part = _step5.value;
|
|
487
|
-
|
|
488
419
|
if (currentValue === undefined) {
|
|
489
420
|
return undefined;
|
|
490
421
|
}
|
|
491
|
-
|
|
492
422
|
if (typeof currentValue !== 'object' || currentValue === null) {
|
|
493
423
|
throw (0, _error_utils.spawnError)("Cannot get '%s' in primitive value", part);
|
|
494
424
|
}
|
|
495
|
-
|
|
496
425
|
if (Array.isArray(currentValue)) {
|
|
497
426
|
throw (0, _error_utils.spawnError)("Cannot get '%s' in array", part);
|
|
498
427
|
}
|
|
499
|
-
|
|
500
428
|
var prototype = Object.getPrototypeOf(currentValue);
|
|
501
|
-
|
|
502
429
|
if (prototype !== null && prototype !== plainObjectPrototype) {
|
|
503
430
|
throw (0, _error_utils.spawnError)("Cannot get '%s' in non-plain object", part);
|
|
504
431
|
}
|
|
505
|
-
|
|
506
432
|
currentValue = has(currentValue, part) ? currentValue[part] : undefined;
|
|
507
433
|
}
|
|
508
434
|
} catch (err) {
|
|
509
|
-
|
|
510
|
-
_iteratorError5 = err;
|
|
435
|
+
_iterator5.e(err);
|
|
511
436
|
} finally {
|
|
512
|
-
|
|
513
|
-
if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
|
|
514
|
-
_iterator5.return();
|
|
515
|
-
}
|
|
516
|
-
} finally {
|
|
517
|
-
if (_didIteratorError5) {
|
|
518
|
-
throw _iteratorError5;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
437
|
+
_iterator5.f();
|
|
521
438
|
}
|
|
522
|
-
|
|
523
439
|
return currentValue;
|
|
524
440
|
}
|
|
525
|
-
/** @hidden */
|
|
526
|
-
|
|
527
441
|
|
|
442
|
+
/** @hidden */
|
|
528
443
|
function arrayDifference(a, b) {
|
|
529
444
|
var bSet = new Set(b);
|
|
530
445
|
return a.filter(item => !bSet.has(item));
|
|
531
446
|
}
|
|
532
|
-
/** @hidden */
|
|
533
|
-
|
|
534
447
|
|
|
448
|
+
/** @hidden */
|
|
535
449
|
function debounce(fn, timeoutMs) {
|
|
536
450
|
var lastTimeoutId = null;
|
|
537
451
|
return function () {
|
|
538
|
-
for (var _len2 = arguments.length, args = new Array(_len2),
|
|
539
|
-
args[
|
|
452
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
453
|
+
args[_key2] = arguments[_key2];
|
|
540
454
|
}
|
|
541
|
-
|
|
542
455
|
if (lastTimeoutId !== null) {
|
|
543
456
|
clearTimeout(lastTimeoutId);
|
|
544
457
|
}
|
|
545
|
-
|
|
546
458
|
lastTimeoutId = setTimeout(() => {
|
|
547
459
|
lastTimeoutId = null;
|
|
548
460
|
fn(...args);
|
|
549
461
|
}, timeoutMs);
|
|
550
462
|
};
|
|
551
463
|
}
|
|
552
|
-
/** @hidden */
|
|
553
|
-
|
|
554
464
|
|
|
465
|
+
/** @hidden */
|
|
555
466
|
function isBlockDevelopmentRestrictionEnabled() {
|
|
556
467
|
return (0, _airtable_interface.default)().sdkInitData.baseData.isBlockDevelopmentRestrictionEnabled;
|
|
557
468
|
}
|
|
469
|
+
|
|
558
470
|
/**
|
|
559
471
|
* Added for use in Gantt View, to enable i18n.
|
|
560
472
|
*
|
|
561
473
|
* @hidden
|
|
562
474
|
* */
|
|
563
|
-
|
|
564
|
-
|
|
565
475
|
function getLocaleAndDefaultLocale() {
|
|
566
476
|
var sdkInitData = (0, _airtable_interface.default)().sdkInitData;
|
|
567
477
|
return {
|