attio 0.0.1-experimental.20250725 → 0.0.1-experimental.20250729.1
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/lib/client/alert.d.ts +1 -29
- package/lib/client/alert.d.ts.map +1 -0
- package/lib/client/alert.js +3 -0
- package/lib/client/alert.js.map +1 -0
- package/lib/client/bulk-record-action.d.ts +1 -45
- package/lib/client/bulk-record-action.d.ts.map +1 -0
- package/lib/client/bulk-record-action.js +3 -0
- package/lib/client/bulk-record-action.js.map +1 -0
- package/lib/client/call-recording-insight-text-selection-action.d.ts +1 -42
- package/lib/client/call-recording-insight-text-selection-action.d.ts.map +1 -0
- package/lib/client/call-recording-insight-text-selection-action.js +3 -0
- package/lib/client/call-recording-insight-text-selection-action.js.map +1 -0
- package/lib/client/call-recording-summary-text-selection-action.d.ts +1 -42
- package/lib/client/call-recording-summary-text-selection-action.d.ts.map +1 -0
- package/lib/client/call-recording-summary-text-selection-action.js +3 -0
- package/lib/client/call-recording-summary-text-selection-action.js.map +1 -0
- package/lib/client/call-recording-transcript-text-selection-action.d.ts +1 -50
- package/lib/client/call-recording-transcript-text-selection-action.d.ts.map +1 -0
- package/lib/client/call-recording-transcript-text-selection-action.js +3 -0
- package/lib/client/call-recording-transcript-text-selection-action.js.map +1 -0
- package/lib/client/components/avatar.d.ts +1 -24
- package/lib/client/components/avatar.d.ts.map +1 -0
- package/lib/client/components/avatar.js +3 -0
- package/lib/client/components/avatar.js.map +1 -0
- package/lib/client/components/badge.d.ts +1 -4
- package/lib/client/components/badge.d.ts.map +1 -0
- package/lib/client/components/badge.js +3 -0
- package/lib/client/components/badge.js.map +1 -0
- package/lib/client/components/button.d.ts +1 -25
- package/lib/client/components/button.d.ts.map +1 -0
- package/lib/client/components/button.js +3 -0
- package/lib/client/components/button.js.map +1 -0
- package/lib/client/components/column.d.ts +1 -8
- package/lib/client/components/column.d.ts.map +1 -0
- package/lib/client/components/column.js +3 -0
- package/lib/client/components/column.js.map +1 -0
- package/lib/client/components/combobox.d.ts +1 -57
- package/lib/client/components/combobox.d.ts.map +1 -0
- package/lib/client/components/combobox.js +3 -0
- package/lib/client/components/combobox.js.map +1 -0
- package/lib/client/components/dialog-list.d.ts +1 -22
- package/lib/client/components/dialog-list.d.ts.map +1 -0
- package/lib/client/components/dialog-list.js +3 -0
- package/lib/client/components/dialog-list.js.map +1 -0
- package/lib/client/components/divider.d.ts +1 -3
- package/lib/client/components/divider.d.ts.map +1 -0
- package/lib/client/components/divider.js +3 -0
- package/lib/client/components/divider.js.map +1 -0
- package/lib/client/components/index.d.ts +1 -0
- package/lib/client/components/index.d.ts.map +1 -0
- package/lib/client/components/index.js +30 -0
- package/lib/client/components/index.js.map +1 -0
- package/lib/client/components/json.d.ts +1 -3
- package/lib/client/components/json.d.ts.map +1 -0
- package/lib/client/components/json.js +3 -0
- package/lib/client/components/json.js.map +1 -0
- package/lib/client/components/keyboard-key.d.ts +2 -7
- package/lib/client/components/keyboard-key.d.ts.map +1 -0
- package/lib/client/components/keyboard-key.js +3 -0
- package/lib/client/components/keyboard-key.js.map +1 -0
- package/lib/client/components/link.d.ts +1 -9
- package/lib/client/components/link.d.ts.map +1 -0
- package/lib/client/components/link.js +3 -0
- package/lib/client/components/link.js.map +1 -0
- package/lib/client/components/row.d.ts +1 -13
- package/lib/client/components/row.d.ts.map +1 -0
- package/lib/client/components/row.js +3 -0
- package/lib/client/components/row.js.map +1 -0
- package/lib/client/components/section.d.ts +1 -11
- package/lib/client/components/section.d.ts.map +1 -0
- package/lib/client/components/section.js +3 -0
- package/lib/client/components/section.js.map +1 -0
- package/lib/client/components/text-block.d.ts +1 -11
- package/lib/client/components/text-block.d.ts.map +1 -0
- package/lib/client/components/text-block.js +3 -0
- package/lib/client/components/text-block.js.map +1 -0
- package/lib/client/components/typography.d.ts +1 -13
- package/lib/client/components/typography.d.ts.map +1 -0
- package/lib/client/components/typography.js +3 -0
- package/lib/client/components/typography.js.map +1 -0
- package/lib/client/components/widget-badge.d.ts +1 -5
- package/lib/client/components/widget-badge.d.ts.map +1 -0
- package/lib/client/components/widget-badge.js +3 -0
- package/lib/client/components/widget-badge.js.map +1 -0
- package/lib/client/components/widget-loading.d.ts +1 -5
- package/lib/client/components/widget-loading.d.ts.map +1 -0
- package/lib/client/components/widget-loading.js +3 -0
- package/lib/client/components/widget-loading.js.map +1 -0
- package/lib/client/components/widget-text-primary.d.ts +1 -6
- package/lib/client/components/widget-text-primary.d.ts.map +1 -0
- package/lib/client/components/widget-text-primary.js +3 -0
- package/lib/client/components/widget-text-primary.js.map +1 -0
- package/lib/client/components/widget-text-secondary.d.ts +1 -6
- package/lib/client/components/widget-text-secondary.d.ts.map +1 -0
- package/lib/client/components/widget-text-secondary.js +3 -0
- package/lib/client/components/widget-text-secondary.js.map +1 -0
- package/lib/client/components/widget-text-widget.d.ts +1 -16
- package/lib/client/components/widget-text-widget.d.ts.map +1 -0
- package/lib/client/components/widget-text-widget.js +3 -0
- package/lib/client/components/widget-text-widget.js.map +1 -0
- package/lib/client/components/widget-title.d.ts +1 -6
- package/lib/client/components/widget-title.d.ts.map +1 -0
- package/lib/client/components/widget-title.js +3 -0
- package/lib/client/components/widget-title.js.map +1 -0
- package/lib/client/components/widget.d.ts +1 -4
- package/lib/client/components/widget.d.ts.map +1 -0
- package/lib/client/components/widget.js +3 -0
- package/lib/client/components/widget.js.map +1 -0
- package/lib/client/confirm.d.ts +1 -58
- package/lib/client/confirm.d.ts.map +1 -0
- package/lib/client/confirm.js +3 -0
- package/lib/client/confirm.js.map +1 -0
- package/lib/client/forms/array.d.ts +1 -9
- package/lib/client/forms/array.d.ts.map +1 -0
- package/lib/client/forms/array.js +3 -0
- package/lib/client/forms/array.js.map +1 -0
- package/lib/client/forms/boolean.d.ts +1 -6
- package/lib/client/forms/boolean.d.ts.map +1 -0
- package/lib/client/forms/boolean.js +3 -0
- package/lib/client/forms/boolean.js.map +1 -0
- package/lib/client/forms/index.d.ts +1 -0
- package/lib/client/forms/index.d.ts.map +1 -0
- package/lib/client/forms/index.js +12 -0
- package/lib/client/forms/index.js.map +1 -0
- package/lib/client/forms/number.d.ts +1 -24
- package/lib/client/forms/number.d.ts.map +1 -0
- package/lib/client/forms/number.js +3 -0
- package/lib/client/forms/number.js.map +1 -0
- package/lib/client/forms/path.d.ts +2 -1
- package/lib/client/forms/path.d.ts.map +1 -0
- package/lib/client/forms/path.js +3 -0
- package/lib/client/forms/path.js.map +1 -0
- package/lib/client/forms/string.d.ts +5 -39
- package/lib/client/forms/string.d.ts.map +1 -0
- package/lib/client/forms/string.js +3 -0
- package/lib/client/forms/string.js.map +1 -0
- package/lib/client/forms/value.d.ts +1 -8
- package/lib/client/forms/value.d.ts.map +1 -0
- package/lib/client/forms/value.js +3 -0
- package/lib/client/forms/value.js.map +1 -0
- package/lib/client/hooks/index.d.ts +3 -2
- package/lib/client/hooks/index.d.ts.map +1 -0
- package/lib/client/hooks/index.js +16 -0
- package/lib/client/hooks/index.js.map +1 -0
- package/lib/client/hooks/use-async-cache.d.ts +1 -62
- package/lib/client/hooks/use-async-cache.d.ts.map +1 -0
- package/lib/client/hooks/use-async-cache.js +3 -0
- package/lib/client/hooks/use-async-cache.js.map +1 -0
- package/lib/client/hooks/use-form.d.ts +5 -215
- package/lib/client/hooks/use-form.d.ts.map +1 -0
- package/lib/client/hooks/use-form.js +3 -0
- package/lib/client/hooks/use-form.js.map +1 -0
- package/lib/client/hooks/use-query.d.ts +1 -45
- package/lib/client/hooks/use-query.d.ts.map +1 -0
- package/lib/client/hooks/use-query.js +3 -0
- package/lib/client/hooks/use-query.js.map +1 -0
- package/lib/client/hooks/use-record.d.ts +1 -9
- package/lib/client/hooks/use-record.d.ts.map +1 -0
- package/lib/client/hooks/use-record.js +3 -0
- package/lib/client/hooks/use-record.js.map +1 -0
- package/lib/client/hooks/use-records.d.ts +1 -9
- package/lib/client/hooks/use-records.d.ts.map +1 -0
- package/lib/client/hooks/use-records.js +3 -0
- package/lib/client/hooks/use-records.js.map +1 -0
- package/lib/client/hooks/use-workspace.d.ts +1 -9
- package/lib/client/hooks/use-workspace.d.ts.map +1 -0
- package/lib/client/hooks/use-workspace.js +3 -0
- package/lib/client/hooks/use-workspace.js.map +1 -0
- package/lib/client/icon.d.ts +2 -1
- package/lib/client/icon.d.ts.map +1 -0
- package/lib/client/icon.js +3 -0
- package/lib/client/icon.js.map +1 -0
- package/lib/client/index.d.ts +2 -1
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +49 -0
- package/lib/client/index.js.map +1 -0
- package/lib/client/object-slug.d.ts +1 -0
- package/lib/client/object-slug.d.ts.map +1 -0
- package/lib/client/object-slug.js +3 -0
- package/lib/client/object-slug.js.map +1 -0
- package/lib/client/platform.d.ts +1 -0
- package/lib/client/platform.d.ts.map +1 -0
- package/lib/client/platform.js +3 -0
- package/lib/client/platform.js.map +1 -0
- package/lib/client/record-action.d.ts +1 -44
- package/lib/client/record-action.d.ts.map +1 -0
- package/lib/client/record-action.js +3 -0
- package/lib/client/record-action.js.map +1 -0
- package/lib/client/record-widget.d.ts +2 -52
- package/lib/client/record-widget.d.ts.map +1 -0
- package/lib/client/record-widget.js +3 -0
- package/lib/client/record-widget.js.map +1 -0
- package/lib/client/run-query.d.ts +2 -48
- package/lib/client/run-query.d.ts.map +1 -0
- package/lib/client/run-query.js +3 -0
- package/lib/client/run-query.js.map +1 -0
- package/lib/client/show-dialog.d.ts +1 -23
- package/lib/client/show-dialog.d.ts.map +1 -0
- package/lib/client/show-dialog.js +3 -0
- package/lib/client/show-dialog.js.map +1 -0
- package/lib/client/show-iframe.d.ts +1 -63
- package/lib/client/show-iframe.d.ts.map +1 -0
- package/lib/client/show-iframe.js +3 -0
- package/lib/client/show-iframe.js.map +1 -0
- package/lib/client/show-toast.d.ts +1 -48
- package/lib/client/show-toast.d.ts.map +1 -0
- package/lib/client/show-toast.js +3 -0
- package/lib/client/show-toast.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/array.d.ts +1 -5
- package/lib/client/workflow/block-config/config-schema/array.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/array.js +3 -0
- package/lib/client/workflow/block-config/config-schema/array.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/attio-record.d.ts +1 -8
- package/lib/client/workflow/block-config/config-schema/attio-record.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/attio-record.js +3 -0
- package/lib/client/workflow/block-config/config-schema/attio-record.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/attio-select.d.ts +1 -8
- package/lib/client/workflow/block-config/config-schema/attio-select.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/attio-select.js +3 -0
- package/lib/client/workflow/block-config/config-schema/attio-select.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/friendly-node.d.ts +1 -3
- package/lib/client/workflow/block-config/config-schema/friendly-node.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/friendly-node.js +3 -0
- package/lib/client/workflow/block-config/config-schema/friendly-node.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/index.d.ts +10 -9
- package/lib/client/workflow/block-config/config-schema/index.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/index.js +3 -0
- package/lib/client/workflow/block-config/config-schema/index.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/node.d.ts +1 -9
- package/lib/client/workflow/block-config/config-schema/node.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/node.js +3 -0
- package/lib/client/workflow/block-config/config-schema/node.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/number.d.ts +1 -8
- package/lib/client/workflow/block-config/config-schema/number.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/number.js +3 -0
- package/lib/client/workflow/block-config/config-schema/number.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/path.d.ts +1 -7
- package/lib/client/workflow/block-config/config-schema/path.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/path.js +3 -0
- package/lib/client/workflow/block-config/config-schema/path.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/string.d.ts +1 -8
- package/lib/client/workflow/block-config/config-schema/string.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/string.js +3 -0
- package/lib/client/workflow/block-config/config-schema/string.js.map +1 -0
- package/lib/client/workflow/block-config/config-schema/struct.d.ts +1 -5
- package/lib/client/workflow/block-config/config-schema/struct.d.ts.map +1 -0
- package/lib/client/workflow/block-config/config-schema/struct.js +3 -0
- package/lib/client/workflow/block-config/config-schema/struct.js.map +1 -0
- package/lib/client/workflow/block-config/index.d.ts +1 -0
- package/lib/client/workflow/block-config/index.d.ts.map +1 -0
- package/lib/client/workflow/block-config/index.js +19 -0
- package/lib/client/workflow/block-config/index.js.map +1 -0
- package/lib/client/workflow/block-config/inputs/attio-record.d.ts +1 -3
- package/lib/client/workflow/block-config/inputs/attio-record.d.ts.map +1 -0
- package/lib/client/workflow/block-config/inputs/attio-record.js +3 -0
- package/lib/client/workflow/block-config/inputs/attio-record.js.map +1 -0
- package/lib/client/workflow/block-config/inputs/attio-select.d.ts +1 -3
- package/lib/client/workflow/block-config/inputs/attio-select.d.ts.map +1 -0
- package/lib/client/workflow/block-config/inputs/attio-select.js +3 -0
- package/lib/client/workflow/block-config/inputs/attio-select.js.map +1 -0
- package/lib/client/workflow/block-config/inputs/get-inputs.d.ts +1 -5
- package/lib/client/workflow/block-config/inputs/get-inputs.d.ts.map +1 -0
- package/lib/client/workflow/block-config/inputs/get-inputs.js +3 -0
- package/lib/client/workflow/block-config/inputs/get-inputs.js.map +1 -0
- package/lib/client/workflow/block-config/inputs/number.d.ts +1 -3
- package/lib/client/workflow/block-config/inputs/number.d.ts.map +1 -0
- package/lib/client/workflow/block-config/inputs/number.js +3 -0
- package/lib/client/workflow/block-config/inputs/number.js.map +1 -0
- package/lib/client/workflow/block-config/inputs/text.d.ts +1 -3
- package/lib/client/workflow/block-config/inputs/text.d.ts.map +1 -0
- package/lib/client/workflow/block-config/inputs/text.js +3 -0
- package/lib/client/workflow/block-config/inputs/text.js.map +1 -0
- package/lib/client/workflow/index.d.ts +1 -9
- package/lib/client/workflow/index.d.ts.map +1 -0
- package/lib/client/workflow/index.js +18 -0
- package/lib/client/workflow/index.js.map +1 -0
- package/lib/client/workflow/schema-utils/array.d.ts +1 -0
- package/lib/client/workflow/schema-utils/array.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/array.js +3 -0
- package/lib/client/workflow/schema-utils/array.js.map +1 -0
- package/lib/client/workflow/schema-utils/attio-entity-reference.d.ts +1 -0
- package/lib/client/workflow/schema-utils/attio-entity-reference.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/attio-entity-reference.js +3 -0
- package/lib/client/workflow/schema-utils/attio-entity-reference.js.map +1 -0
- package/lib/client/workflow/schema-utils/attio-select.d.ts +1 -0
- package/lib/client/workflow/schema-utils/attio-select.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/attio-select.js +3 -0
- package/lib/client/workflow/schema-utils/attio-select.js.map +1 -0
- package/lib/client/workflow/schema-utils/base-node.d.ts +1 -3
- package/lib/client/workflow/schema-utils/base-node.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/base-node.js +10 -0
- package/lib/client/workflow/schema-utils/base-node.js.map +1 -0
- package/lib/client/workflow/schema-utils/friendly.d.ts +1 -4
- package/lib/client/workflow/schema-utils/friendly.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/friendly.js +3 -0
- package/lib/client/workflow/schema-utils/friendly.js.map +1 -0
- package/lib/client/workflow/schema-utils/index.d.ts +10 -12
- package/lib/client/workflow/schema-utils/index.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/index.js +3 -0
- package/lib/client/workflow/schema-utils/index.js.map +1 -0
- package/lib/client/workflow/schema-utils/normalize.d.ts +1 -3
- package/lib/client/workflow/schema-utils/normalize.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/normalize.js +3 -0
- package/lib/client/workflow/schema-utils/normalize.js.map +1 -0
- package/lib/client/workflow/schema-utils/number.d.ts +1 -0
- package/lib/client/workflow/schema-utils/number.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/number.js +3 -0
- package/lib/client/workflow/schema-utils/number.js.map +1 -0
- package/lib/client/workflow/schema-utils/path.d.ts +1 -7
- package/lib/client/workflow/schema-utils/path.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/path.js +3 -0
- package/lib/client/workflow/schema-utils/path.js.map +1 -0
- package/lib/client/workflow/schema-utils/string.d.ts +1 -0
- package/lib/client/workflow/schema-utils/string.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/string.js +3 -0
- package/lib/client/workflow/schema-utils/string.js.map +1 -0
- package/lib/client/workflow/schema-utils/struct.d.ts +1 -0
- package/lib/client/workflow/schema-utils/struct.d.ts.map +1 -0
- package/lib/client/workflow/schema-utils/struct.js +3 -0
- package/lib/client/workflow/schema-utils/struct.js.map +1 -0
- package/lib/client/workflow-block.d.ts +1 -0
- package/lib/client/workflow-block.d.ts.map +1 -0
- package/lib/client/workflow-block.js +3 -0
- package/lib/client/workflow-block.js.map +1 -0
- package/lib/server/attio-fetch.d.ts +1 -38
- package/lib/server/attio-fetch.d.ts.map +1 -0
- package/lib/server/attio-fetch.js +3 -0
- package/lib/server/attio-fetch.js.map +1 -0
- package/lib/server/connections.d.ts +1 -5
- package/lib/server/connections.d.ts.map +1 -0
- package/lib/server/connections.js +3 -0
- package/lib/server/connections.js.map +1 -0
- package/lib/server/env.d.ts +1 -0
- package/lib/server/env.d.ts.map +1 -0
- package/lib/server/env.js +5 -0
- package/lib/server/env.js.map +1 -0
- package/lib/server/experimental/index.d.ts +1 -1
- package/lib/server/experimental/index.d.ts.map +1 -0
- package/lib/server/experimental/index.js +6 -0
- package/lib/server/experimental/index.js.map +1 -0
- package/lib/server/experimental/kv-store.d.ts +1 -26
- package/lib/server/experimental/kv-store.d.ts.map +1 -0
- package/lib/server/experimental/kv-store.js +3 -0
- package/lib/server/experimental/kv-store.js.map +1 -0
- package/lib/server/index.d.ts +4 -3
- package/lib/server/index.d.ts.map +1 -0
- package/lib/server/index.js +22 -0
- package/lib/server/index.js.map +1 -0
- package/lib/server/webhook-handlers.d.ts +1 -11
- package/lib/server/webhook-handlers.d.ts.map +1 -0
- package/lib/server/webhook-handlers.js +3 -0
- package/lib/server/webhook-handlers.js.map +1 -0
- package/lib/shared/errors.d.ts +1 -12
- package/lib/shared/errors.d.ts.map +1 -0
- package/lib/shared/errors.js +3 -0
- package/lib/shared/errors.js.map +1 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.d.ts.map +1 -0
- package/lib/shared/index.js +18 -0
- package/lib/shared/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +18 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/{client/util → utils}/prettify.d.ts +1 -0
- package/lib/utils/prettify.d.ts.map +1 -0
- package/lib/utils/prettify.js +3 -0
- package/lib/utils/prettify.js.map +1 -0
- package/package.json +1 -1
|
@@ -3,221 +3,78 @@ import type { DecoratedComboboxOption, DecoratedComboboxOptionsProvider, PlainCo
|
|
|
3
3
|
import type { PathTo, ValueOf } from "../forms/path";
|
|
4
4
|
import type { FormValue } from "../forms/value";
|
|
5
5
|
export type FormSchema = Record<string, FormValue>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* <Form onSubmit={(values) => {
|
|
12
|
-
* console.log(values)
|
|
13
|
-
* }}>
|
|
14
|
-
* <TextInput name="name" label="Name" />
|
|
15
|
-
* <NumberInput name="age" label="Age" />
|
|
16
|
-
* <Checkbox name="isActive" label="Is Active" />
|
|
17
|
-
* <Toggle name="isExpress" label="Is Express" />
|
|
18
|
-
* <SubmitButton label="Submit" />
|
|
19
|
-
* </Form>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
6
|
+
export type ValidationErrors<T> = Partial<{
|
|
7
|
+
[K in keyof T]: T[K] extends object ? ValidationErrors<T[K]> : string;
|
|
8
|
+
}>;
|
|
22
9
|
type Form<TSchema extends FormSchema> = (props: {
|
|
23
|
-
/** The contents of the form, including layout and input components */
|
|
24
10
|
children: React.ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* The function to call when the form is submitted.
|
|
27
|
-
*
|
|
28
|
-
* `onSubmit` will NOT be called if there are validation errors.
|
|
29
|
-
*/
|
|
30
11
|
onSubmit: (values: ValueOf<TSchema>) => void | Promise<void>;
|
|
31
12
|
}) => JSX.Element;
|
|
32
|
-
/**
|
|
33
|
-
* A text input field.
|
|
34
|
-
*/
|
|
35
13
|
type TextInput<TSchema extends FormSchema> = (props: {
|
|
36
|
-
/** The type of the input field. Defaults to "text". */
|
|
37
14
|
type?: "text" | "email" | "password" | "tel" | "url";
|
|
38
|
-
/** The label of the input field */
|
|
39
15
|
label: string;
|
|
40
|
-
/**
|
|
41
|
-
* The path to the value of the input field, e.g. `"name"` or `"address.street"`
|
|
42
|
-
* @deprecated Use `name` instead
|
|
43
|
-
**/
|
|
44
16
|
data?: PathTo<TSchema, "string">;
|
|
45
|
-
/** The path to the value of the input field, e.g. `"name"` or `"address.street"` */
|
|
46
17
|
name: PathTo<TSchema, "string">;
|
|
47
|
-
/** The optional placeholder text of the input field */
|
|
48
18
|
placeholder?: string;
|
|
49
|
-
/** Whether the input field is disabled */
|
|
50
19
|
disabled?: boolean;
|
|
51
20
|
}) => JSX.Element;
|
|
52
|
-
/**
|
|
53
|
-
* A number input field.
|
|
54
|
-
*/
|
|
55
21
|
type NumberInput<TSchema extends FormSchema> = (props: {
|
|
56
|
-
/** The label of the input field */
|
|
57
22
|
label: string;
|
|
58
|
-
/**
|
|
59
|
-
* The path to the value of the input field, e.g. `"age"` or `"shipping.cost"`
|
|
60
|
-
* @deprecated Use `name` instead
|
|
61
|
-
**/
|
|
62
23
|
data?: PathTo<TSchema, "number">;
|
|
63
|
-
/** The path to the value of the input field, e.g. `"age"` or `"shipping.cost"` */
|
|
64
24
|
name: PathTo<TSchema, "number">;
|
|
65
|
-
/** The optional placeholder text of the input field */
|
|
66
25
|
placeholder?: string;
|
|
67
|
-
/** Whether the input field is disabled */
|
|
68
26
|
disabled?: boolean;
|
|
69
27
|
}) => JSX.Element;
|
|
70
|
-
/**
|
|
71
|
-
* A rich text input field.
|
|
72
|
-
*/
|
|
73
28
|
type RichTextInput<TSchema extends FormSchema> = (props: {
|
|
74
|
-
/** The label of the input field */
|
|
75
29
|
label: string;
|
|
76
|
-
/** The path to the value of the input field, e.g. `"name"` or `"address.street"` */
|
|
77
30
|
name: PathTo<TSchema, "string">;
|
|
78
|
-
/** The optional placeholder text of the input field */
|
|
79
31
|
placeholder?: string;
|
|
80
|
-
/** Whether the input field is disabled */
|
|
81
32
|
disabled?: boolean;
|
|
82
33
|
}) => JSX.Element;
|
|
83
|
-
/**
|
|
84
|
-
* A checkbox input field.
|
|
85
|
-
*/
|
|
86
34
|
type Checkbox<TSchema extends FormSchema> = (props: {
|
|
87
|
-
/** The label of the input field */
|
|
88
35
|
label: string;
|
|
89
|
-
/**
|
|
90
|
-
* The path to the value of the input field, e.g. `"is_active"` or `"shipping.is_express"`
|
|
91
|
-
* @deprecated Use `name` instead
|
|
92
|
-
**/
|
|
93
36
|
data?: PathTo<TSchema, "boolean">;
|
|
94
|
-
/** The path to the value of the input field, e.g. `"is_active"` or `"shipping.is_express"` */
|
|
95
37
|
name: PathTo<TSchema, "boolean">;
|
|
96
|
-
/** Whether the input field is disabled */
|
|
97
38
|
disabled?: boolean;
|
|
98
39
|
}) => JSX.Element;
|
|
99
|
-
/**
|
|
100
|
-
* A toggle input field.
|
|
101
|
-
*/
|
|
102
40
|
type Toggle<TSchema extends FormSchema> = (props: {
|
|
103
|
-
/** The label of the input field */
|
|
104
41
|
label: string;
|
|
105
|
-
/**
|
|
106
|
-
* The path to the value of the input field, e.g. `"is_active"` or `"shipping.is_express"`
|
|
107
|
-
* @deprecated Use `name` instead
|
|
108
|
-
**/
|
|
109
42
|
data?: PathTo<TSchema, "boolean">;
|
|
110
|
-
/** The path to the value of the input field, e.g. `"is_active"` or `"shipping.is_express"` */
|
|
111
43
|
name: PathTo<TSchema, "boolean">;
|
|
112
|
-
/** Whether the input field is disabled */
|
|
113
44
|
disabled?: boolean;
|
|
114
45
|
}) => JSX.Element;
|
|
115
|
-
/**
|
|
116
|
-
* Base props common to all combobox variants.
|
|
117
|
-
*/
|
|
118
46
|
export interface BaseComboboxProps<TSchema extends FormSchema> {
|
|
119
|
-
/** The label of the combobox field */
|
|
120
47
|
label: string;
|
|
121
|
-
/**
|
|
122
|
-
* The path to the value of the combobox field, e.g. `"mode"` or `"shipping.method"`
|
|
123
|
-
* @deprecated Use `name` instead
|
|
124
|
-
**/
|
|
125
48
|
data?: PathTo<TSchema, "string">;
|
|
126
|
-
/** The path to the value of the combobox field, e.g. `"mode"` or `"shipping.method"` */
|
|
127
49
|
name: PathTo<TSchema, "string">;
|
|
128
|
-
/**
|
|
129
|
-
* The optional placeholder text for the search input
|
|
130
|
-
*
|
|
131
|
-
* @default "Search..."
|
|
132
|
-
*/
|
|
133
50
|
searchPlaceholder?: string;
|
|
134
|
-
/** Whether the combobox field is disabled */
|
|
135
51
|
disabled?: boolean;
|
|
136
52
|
}
|
|
137
|
-
/**
|
|
138
|
-
* Props for decorated combobox variant.
|
|
139
|
-
*/
|
|
140
53
|
export interface DecoratedComboboxProps {
|
|
141
|
-
/**
|
|
142
|
-
* If decorated, the combobox will be require decorated options. Defaults to true.
|
|
143
|
-
*
|
|
144
|
-
* @deprecated This may change in the future.
|
|
145
|
-
*/
|
|
146
54
|
__experimental_decorated: true;
|
|
147
|
-
/**
|
|
148
|
-
* The options of the combobox field
|
|
149
|
-
*
|
|
150
|
-
* Either an array of options, or a provider that asynchronously fetches options.
|
|
151
|
-
*/
|
|
152
55
|
options: Array<DecoratedComboboxOption> | DecoratedComboboxOptionsProvider;
|
|
153
|
-
/**
|
|
154
|
-
* The optional placeholder text or option of the combobox field
|
|
155
|
-
**/
|
|
156
56
|
placeholder?: string | Omit<DecoratedComboboxOption, "value">;
|
|
157
57
|
}
|
|
158
|
-
/**
|
|
159
|
-
* Props for plain combobox variant.
|
|
160
|
-
*/
|
|
161
58
|
export interface PlainComboboxProps {
|
|
162
|
-
/**
|
|
163
|
-
* If not decorated, the combobox will be plain. Defaults to false.
|
|
164
|
-
*
|
|
165
|
-
* @deprecated This may change in the future.
|
|
166
|
-
*/
|
|
167
59
|
__experimental_decorated?: false;
|
|
168
|
-
/**
|
|
169
|
-
* The options of the combobox field
|
|
170
|
-
*
|
|
171
|
-
* Either an array of options, or a provider that asynchronously fetches options.
|
|
172
|
-
*/
|
|
173
60
|
options: Array<PlainComboboxOption> | PlainComboboxOptionsProvider;
|
|
174
|
-
/**
|
|
175
|
-
* The optional placeholder text or option of the combobox field
|
|
176
|
-
**/
|
|
177
61
|
placeholder?: string;
|
|
178
62
|
}
|
|
179
|
-
/**
|
|
180
|
-
* A combobox input field.
|
|
181
|
-
*/
|
|
182
63
|
type Combobox<TSchema extends FormSchema> = (props: BaseComboboxProps<TSchema> & (DecoratedComboboxProps | PlainComboboxProps)) => JSX.Element;
|
|
183
|
-
/**
|
|
184
|
-
* A component used to render a collection of inputs.
|
|
185
|
-
*/
|
|
186
64
|
type Collection<TSchema extends FormSchema, TPath extends PathTo<TSchema, "array">> = (props: {
|
|
187
|
-
/** The label of the collection field */
|
|
188
65
|
label: string;
|
|
189
|
-
/**
|
|
190
|
-
* The path to the value of the collection field, e.g. `"items"` or `"shipping.items"`
|
|
191
|
-
* @deprecated Use `name` instead
|
|
192
|
-
**/
|
|
193
66
|
data?: TPath;
|
|
194
|
-
/** The path to the value of the collection field, e.g. `"items"` or `"shipping.items"` */
|
|
195
67
|
name: TPath;
|
|
196
|
-
/**
|
|
197
|
-
* A render prop that receives the path and index of one of the items and renders
|
|
198
|
-
* the inputs for that item
|
|
199
|
-
*/
|
|
200
68
|
children: (args: {
|
|
201
69
|
path: `${TPath}.${number}`;
|
|
202
70
|
index: number;
|
|
203
71
|
}) => React.ReactNode;
|
|
204
72
|
}) => JSX.Element;
|
|
205
|
-
/**
|
|
206
|
-
* A component used to group inputs in a collection together
|
|
207
|
-
*/
|
|
208
73
|
type CollectionItem = (props: {
|
|
209
|
-
/** The label of the collection item */
|
|
210
74
|
label: string;
|
|
211
|
-
/** The inputs of the collection item */
|
|
212
75
|
children: React.ReactNode;
|
|
213
76
|
}) => JSX.Element;
|
|
214
|
-
/**
|
|
215
|
-
* A submit button for the form.
|
|
216
|
-
*
|
|
217
|
-
* If the form is rendered inside a dialog, the submit button will be placed at the bottom of the dialog.
|
|
218
|
-
*/
|
|
219
77
|
type SubmitButton = (props: {
|
|
220
|
-
/** The label of the submit button */
|
|
221
78
|
label: string;
|
|
222
79
|
}) => JSX.Element;
|
|
223
80
|
export interface WithStateProps<TSchema extends FormSchema, TValues extends boolean = false, TSubmitting extends boolean = false, TErrors extends boolean = false> {
|
|
@@ -230,89 +87,22 @@ export interface WithStateProps<TSchema extends FormSchema, TValues extends bool
|
|
|
230
87
|
errors: TErrors extends true ? Record<string, string> : never;
|
|
231
88
|
}) => JSX.Element;
|
|
232
89
|
}
|
|
233
|
-
/**
|
|
234
|
-
* A component that provides the form state via a render prop.
|
|
235
|
-
*
|
|
236
|
-
* You may specifically request various parts of form state, such as
|
|
237
|
-
* `values`, `submitting`, and `errors`. This component will rerender
|
|
238
|
-
* whenever any of the values requested change.
|
|
239
|
-
*/
|
|
240
90
|
type WithState<TSchema extends FormSchema> = (props: WithStateProps<TSchema> | WithStateProps<TSchema, true> | WithStateProps<TSchema, boolean, true> | WithStateProps<TSchema, boolean, boolean, true>) => JSX.Element;
|
|
241
91
|
export interface FormApi<TSchema extends FormSchema> {
|
|
242
|
-
/**
|
|
243
|
-
* Submits the form.
|
|
244
|
-
*
|
|
245
|
-
* This will validate the form and call the `onSubmit` handler.
|
|
246
|
-
*/
|
|
247
92
|
submit: () => void;
|
|
248
|
-
/**
|
|
249
|
-
* Changes the value of a field.
|
|
250
|
-
*/
|
|
251
93
|
change: <TPath extends PathTo<TSchema, "string" | "number">>(path: TPath, value: ValueOf<TSchema>[TPath]) => void;
|
|
252
|
-
/**
|
|
253
|
-
* The <Form> component to wrap the fields of this form and provide a submit handler.
|
|
254
|
-
*/
|
|
255
94
|
Form: Form<TSchema>;
|
|
256
|
-
/**
|
|
257
|
-
* A text input field.
|
|
258
|
-
*/
|
|
259
95
|
TextInput: TextInput<TSchema>;
|
|
260
|
-
/**
|
|
261
|
-
* A number input field.
|
|
262
|
-
*/
|
|
263
96
|
NumberInput: NumberInput<TSchema>;
|
|
264
|
-
/**
|
|
265
|
-
* A rich text input field.
|
|
266
|
-
*/
|
|
267
97
|
Experimental_RichTextInput: RichTextInput<TSchema>;
|
|
268
|
-
/**
|
|
269
|
-
* A checkbox input field.
|
|
270
|
-
*/
|
|
271
98
|
Checkbox: Checkbox<TSchema>;
|
|
272
|
-
/**
|
|
273
|
-
* A toggle input field.
|
|
274
|
-
*/
|
|
275
99
|
Toggle: Toggle<TSchema>;
|
|
276
|
-
/**
|
|
277
|
-
* A combobox input field.
|
|
278
|
-
*/
|
|
279
100
|
Combobox: Combobox<TSchema>;
|
|
280
|
-
/**
|
|
281
|
-
* A component used to render a collection of inputs.
|
|
282
|
-
* @deprecated This is not fully built yet.
|
|
283
|
-
*/
|
|
284
101
|
Collection: Collection<TSchema, any>;
|
|
285
|
-
/**
|
|
286
|
-
* A component used to group inputs in a collection together.
|
|
287
|
-
* @deprecated This is not fully built yet.
|
|
288
|
-
*/
|
|
289
102
|
CollectionItem: CollectionItem;
|
|
290
|
-
/**
|
|
291
|
-
* A submit button for the form.
|
|
292
|
-
*/
|
|
293
103
|
SubmitButton: SubmitButton;
|
|
294
|
-
/**
|
|
295
|
-
* A component that provides the form state via a render prop.
|
|
296
|
-
*/
|
|
297
104
|
WithState: WithState<TSchema>;
|
|
298
105
|
}
|
|
299
|
-
|
|
300
|
-
* Creates a form API for a given schema and initial values.
|
|
301
|
-
*
|
|
302
|
-
* @example
|
|
303
|
-
* ```tsx
|
|
304
|
-
* const api = useForm({
|
|
305
|
-
* name: Forms.string(),
|
|
306
|
-
* age: Forms.number(),
|
|
307
|
-
* isActive: Forms.boolean(),
|
|
308
|
-
* isExpress: Forms.boolean(),
|
|
309
|
-
* }, {
|
|
310
|
-
* name: "John",
|
|
311
|
-
* age: 30,
|
|
312
|
-
* isActive: true,
|
|
313
|
-
* isExpress: false,
|
|
314
|
-
* });
|
|
315
|
-
* ```
|
|
316
|
-
*/
|
|
317
|
-
export declare function useForm<TSchema extends FormSchema>(schema: TSchema, initialValues: Partial<ValueOf<TSchema>>): FormApi<TSchema>;
|
|
106
|
+
export declare function useForm<TSchema extends FormSchema>(schema: TSchema, initialValues: Partial<ValueOf<TSchema>>, validate?: (values: ValueOf<TSchema>) => ValidationErrors<ValueOf<TSchema>>): FormApi<TSchema>;
|
|
318
107
|
export {};
|
|
108
|
+
//# sourceMappingURL=use-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EACR,uBAAuB,EACvB,gCAAgC,EAChC,mBAAmB,EACnB,4BAA4B,EAC/B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAC,MAAM,EAAE,OAAO,EAAC,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAE7C,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;AAMlD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,OAAO,CAAC;KACrC,CAAC,IAAI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AQ,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAK3B,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;IAKvB,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAM3B,UAAU,EAAE,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;IAMpC,cAAc,EAAE,cAAc,CAAA;IAK9B,YAAY,EAAE,YAAY,CAAA;IAK1B,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;CAChC;AAoBD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,OAAO,SAAS,UAAU,EACtD,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAkBxC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAC5E,OAAO,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-form.js","sourceRoot":"","sources":["../../../src/client/hooks/use-form.ts"],"names":[],"mappings":""}
|
|
@@ -1,47 +1,3 @@
|
|
|
1
1
|
import type { Query } from "../run-query";
|
|
2
|
-
/**
|
|
3
|
-
* A hook that runs a GraphQL query and returns the result.
|
|
4
|
-
*
|
|
5
|
-
* Your component will suspend until the query completes.
|
|
6
|
-
*
|
|
7
|
-
* If you import the query from a `.graphql` file, and run `attio dev`,
|
|
8
|
-
* your query variables and result will be strongly typed.
|
|
9
|
-
*
|
|
10
|
-
* ## EXAMPLE USAGE
|
|
11
|
-
*
|
|
12
|
-
* ----
|
|
13
|
-
* ```graphql
|
|
14
|
-
* # get-person.graphql
|
|
15
|
-
* query getPerson($id: String!) {
|
|
16
|
-
* workspace {
|
|
17
|
-
* person(id: $id) {
|
|
18
|
-
* name {
|
|
19
|
-
* first
|
|
20
|
-
* last
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
* ----
|
|
27
|
-
* ```tsx
|
|
28
|
-
* // Component.tsx
|
|
29
|
-
* import { useQuery, useRecord } from "attio/client"
|
|
30
|
-
* import getPersonQuery from "./get-person.graphql"
|
|
31
|
-
*
|
|
32
|
-
* ...
|
|
33
|
-
*
|
|
34
|
-
* // in component:
|
|
35
|
-
* const { recordId } = useRecord()
|
|
36
|
-
* const result = useQuery(getPersonQuery, { id: recordId })
|
|
37
|
-
*
|
|
38
|
-
* const firstName : string | null = result.workspace?.person?.name?.first
|
|
39
|
-
* const lastName : string | null = result.workspace?.person?.name?.last
|
|
40
|
-
* ```
|
|
41
|
-
* ----
|
|
42
|
-
*
|
|
43
|
-
* @param query - The GraphQL query to run.
|
|
44
|
-
* @param variableValues - The variables to pass to the query.
|
|
45
|
-
* @returns The result of the query.
|
|
46
|
-
*/
|
|
47
2
|
export declare function useQuery<Variables extends Record<string, any> | never, Result>(query: Query<Variables, Result>, variableValues?: Variables extends never ? never : Variables): Result;
|
|
3
|
+
//# sourceMappingURL=use-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-query.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,cAAc,CAAA;AA+CvC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,EAAE,MAAM,EAClF,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,EAC/B,cAAc,CAAC,EAAE,SAAS,SAAS,KAAK,GAAG,KAAK,GAAG,SAAS,GAC7D,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-query.js","sourceRoot":"","sources":["../../../src/client/hooks/use-query.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { ObjectSlug } from "../object-slug.js";
|
|
2
|
-
/**
|
|
3
|
-
* Get information about the current record.
|
|
4
|
-
*/
|
|
5
2
|
export declare function useRecord(): {
|
|
6
|
-
/**
|
|
7
|
-
* The ID of the current record.
|
|
8
|
-
*/
|
|
9
3
|
recordId: string;
|
|
10
|
-
/**
|
|
11
|
-
* The object type of the current record.
|
|
12
|
-
*/
|
|
13
4
|
object: ObjectSlug;
|
|
14
5
|
};
|
|
6
|
+
//# sourceMappingURL=use-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-record.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAA;AAKjD,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI;IAIjC,QAAQ,EAAE,MAAM,CAAA;IAIhB,MAAM,EAAE,UAAU,CAAA;CACrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-record.js","sourceRoot":"","sources":["../../../src/client/hooks/use-record.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { ObjectSlug } from "../object-slug.js";
|
|
2
|
-
/**
|
|
3
|
-
* Get information about the currently selected records.
|
|
4
|
-
*/
|
|
5
2
|
export declare function useRecords(): {
|
|
6
|
-
/**
|
|
7
|
-
* The IDs of the selected records.
|
|
8
|
-
*/
|
|
9
3
|
recordIds: Array<string>;
|
|
10
|
-
/**
|
|
11
|
-
* The object type of the selected records.
|
|
12
|
-
*/
|
|
13
4
|
object: ObjectSlug;
|
|
14
5
|
};
|
|
6
|
+
//# sourceMappingURL=use-records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-records.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-records.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAA;AAKjD,MAAM,CAAC,OAAO,UAAU,UAAU,IAAI;IAIlC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAIxB,MAAM,EAAE,UAAU,CAAA;CACrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-records.js","sourceRoot":"","sources":["../../../src/client/hooks/use-records.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get information about the Attio workspace.
|
|
3
|
-
*/
|
|
4
1
|
export declare function useWorkspace(): {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the workspace.
|
|
7
|
-
*/
|
|
8
2
|
workspaceName: string;
|
|
9
|
-
/**
|
|
10
|
-
* The slug of the workspace
|
|
11
|
-
*/
|
|
12
3
|
workspaceSlug: string;
|
|
13
4
|
};
|
|
5
|
+
//# sourceMappingURL=use-workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-workspace.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-workspace.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,IAAI;IAIpC,aAAa,EAAE,MAAM,CAAA;IAIrB,aAAa,EAAE,MAAM,CAAA;CACxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-workspace.js","sourceRoot":"","sources":["../../../src/client/hooks/use-workspace.ts"],"names":[],"mappings":""}
|
package/lib/client/icon.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export type Icon = AttioIcon;
|
|
2
|
-
export type AttioIcon = "Activity" | "AlignArrowUp" | "AlignBlockCenter" | "AlignBlockLeft" | "AlignBlockRight" | "AlignCenter" | "AlignLeft" | "AlignRight" | "Apps" | "Archive" | "ArrowDown" | "ArrowDownLeft" | "ArrowDownRight" | "ArrowLeft" | "ArrowLeftRight" | "ArrowRight" | "ArrowsRefresh" | "ArrowUp" | "ArrowUpDown" | "ArrowUpLeft" | "ArrowUpRight" | "ArrowUpRightCircle" | "At" | "Attachment" | "Attributes" | "AttributesPlus" | "Bank" | "BarChart" | "Bold" | "Bolt" | "BracketsCross" | "Breakpoint" | "BrowserExtension" | "BulletList" | "Calendar" | "CalendarArrowLeft" | "CalendarArrowRight" | "CalendarClock" | "CalendarDay" | "CalendarMinus" | "CalendarPlus" | "Caption" | "Change" | "Changelog" | "Check" | "CheckCircle" | "CheckDouble" | "CheckSquare" | "CheckSquarePlus" | "ChevronDown" | "ChevronDownChevronUp" | "ChevronLeft" | "ChevronRight" | "ChevronRightDouble" | "ChevronUp" | "ChevronUpChevronDown" | "CircleEmpty" | "CircleFilled" | "ClassifyRecord" | "ClassifyText" | "Clock" | "ClockDelay" | "Code" | "CollapseScreen" | "ColumnPlus" | "Columns" | "ColumnsPlus" | "Command" | "Comment" | "CommentPlus" | "Comments" | "Community" | "Companies" | "Company" | "CompanyPlus" | "ConditionDown" | "Confetti" | "Copy" | "CreditCard" | "Cross" | "CrossCircle" | "Currency" | "CustomTemplates" | "Dashboard" | "DashboardPlus" | "Data" | "DataText" | "Description" | "Desktop" | "Dollar" | "DollarCircleArrowUp" | "DotsHorizontal" | "DotsVertical" | "Download" | "DragHandle" | "Duplicate" | "Edit" | "EditDisabled" | "Education" | "Email" | "EmailArrowLeft" | "EmailArrowRight" | "EmailDraft" | "EmailMass" | "EmailMassPlus" | "EmailMinus" | "EmailPlus" | "EmailTemplate" | "EmailTemplatePlus" | "EmojiAdd" | "EmptyCircle" | "Enter" | "Equals" | "Euro" | "EverythingBagel" | "ExpandScreen" | "Eye" | "EyeHide" | "Feedback" | "FileCsv" | "Filter" | "FilterFunnel" | "FilterPlus" | "Folder" | "FolderPlus" | "Forbid" | "FunnelChart" | "FunnelStepsChart" | "GalleryView" | "Gbp" | "GitBranch" | "Globe" | "GlobeHemisphereEast" | "Grid" | "Growth" | "Hand" | "Handshake" | "Hashtag" | "HelpCircle" | "Image" | "ImportExport" | "InboxNotification" | "InfoCircle" | "Input" | "Italic" | "Key" | "KKeyboardKey" | "LineChart" | "LineChartClock" | "Link" | "List" | "ListBolt" | "ListEdit" | "ListMinus" | "ListPlus" | "ListSearch" | "ListView" | "Location" | "Locked" | "LogOut" | "MapChart" | "Maximize" | "Merge" | "Message" | "Minimize" | "Minus" | "MinusSquare" | "MobilePhone" | "Moon" | "More" | "Move" | "MultiSelect" | "Name" | "None" | "Note" | "NotePlus" | "NoteTemplate" | "NoteTemplateArrowRight" | "NoteTemplatePlus" | "NumberList" | "Object" | "ObjectPlaceholder" | "ObjectPlus" | "PanelLeft" | "PanelRight" | "Paste" | "Pause" | "Percentage" | "Phone" | "PhoneArrowLeft" | "PhoneArrowRight" | "PhoneBusy" | "PhoneCancel" | "PhoneCheck" | "PhoneCross" | "PhoneMissed" | "PhoneNoAnswer" | "PieChart" | "Pin" | "Pinned" | "Placeholder" | "Play" | "Plus" | "PlusSquare" | "Pointer" | "PromptCompletion" | "Record" | "RecordBolt" | "RecordDetailEdit" | "RecordEdit" | "RecordPlus" | "RecordSearch" | "Reference" | "RelationshipConnect" | "RemoveCircle" | "Rename" | "Repeat" | "Replace" | "Reply" | "Report" | "ReportPlus" | "RingBell" | "Rocket" | "Rows" | "RowsPlus" | "Sales" | "Search" | "SearchMinus" | "SearchPlus" | "SectionArrowDown" | "SectionArrowUp" | "Select" | "SelfServed" | "Send" | "SendAdd" | "SendEdit" | "ServiceBell" | "Sessions" | "Settings" | "SettingsArrowRight" | "SettingsCheck" | "SettingsMinus" | "Share" | "ShieldLocker" | "ShowRightSidebar" | "Signature" | "SingleMetricChart" | "SnapGrid" | "SortAscending" | "SortDescending" | "SortPlus" | "Spreadsheet" | "SquareEmpty" | "SquareFilled" | "SquareStrength" | "Star" | "StarCross" | "Status" | "StatusArrow" | "StatusClock" | "Strength" | "Subscription" | "SummarizeRecord" | "Sun" | "Switch" | "Table" | "Tag" | "Templates" | "TemplatesCog" | "TemplatesEdit" | "TemplatesPlus" | "TestTube" | "Text" | "TextIndentLeft" | "TextIndentRight" | "ThumbsDown" | "ThumbsUp" | "TidyUp" | "Timestamp" | "Trash" | "Trigger" | "TriggerPlus" | "Undo" | "Unlink" | "Upload" | "User" | "UserArrowLeft" | "UserArrowRight" | "UserBolt" | "UserHeart" | "UserKey" | "UserMinus" | "UserPhone" | "UserPlaceholder" | "UserPlus" | "Users" | "VideoCamera" | "View" | "ViewPlus" | "Voicemail" | "WarningCircle" | "WarningTriangle" | "Webhooks" | "WorkflowCredit" | "WorkflowRun" | "Workflows" | "WorkflowsEdit" | "WorkflowsPlus" | "Workspace";
|
|
2
|
+
export type AttioIcon = "Activity" | "AlignArrowUp" | "AlignBlockCenter" | "AlignBlockLeft" | "AlignBlockRight" | "AlignCenter" | "AlignLeft" | "AlignRight" | "Apps" | "Archive" | "ArrowDown" | "ArrowDownLeft" | "ArrowDownRight" | "ArrowLeft" | "ArrowLeftRight" | "ArrowRight" | "ArrowsRefresh" | "ArrowUp" | "ArrowUpDown" | "ArrowUpLeft" | "ArrowUpRight" | "ArrowUpRightCircle" | "At" | "Attachment" | "Attributes" | "AttributesPlus" | "Bank" | "BarChart" | "Bold" | "Bolt" | "BracketsCross" | "Breakpoint" | "BrowserExtension" | "BulletList" | "Calendar" | "CalendarArrowLeft" | "CalendarArrowRight" | "CalendarClock" | "CalendarDay" | "CalendarMinus" | "CalendarPlus" | "Caption" | "Change" | "Changelog" | "Check" | "CheckCircle" | "CheckDouble" | "CheckSquare" | "CheckSquarePlus" | "ChevronDown" | "ChevronDownChevronUp" | "ChevronLeft" | "ChevronRight" | "ChevronRightDouble" | "ChevronUp" | "ChevronUpChevronDown" | "CircleEmpty" | "CircleFilled" | "ClassifyRecord" | "ClassifyText" | "Clock" | "ClockDelay" | "Code" | "CollapseScreen" | "ColumnPlus" | "Columns" | "ColumnsPlus" | "Command" | "Comment" | "CommentPlus" | "Comments" | "Community" | "Companies" | "Company" | "CompanyPlus" | "ConditionDown" | "Confetti" | "Copy" | "CreditCard" | "Cross" | "CrossCircle" | "Currency" | "CustomTemplates" | "Dashboard" | "DashboardPlus" | "Data" | "DataText" | "Description" | "Desktop" | "Dollar" | "DollarCircleArrowUp" | "DotsHorizontal" | "DotsVertical" | "Download" | "DragHandle" | "Duplicate" | "Edit" | "EditDisabled" | "Education" | "Email" | "EmailArrowLeft" | "EmailArrowRight" | "EmailDraft" | "EmailMass" | "EmailMassPlus" | "EmailMinus" | "EmailPlus" | "EmailTemplate" | "EmailTemplatePlus" | "EmojiAdd" | "EmptyCircle" | "Enter" | "Equals" | "Euro" | "EverythingBagel" | "ExpandScreen" | "Eye" | "EyeHide" | "Feedback" | "FileCsv" | "Filter" | "FilterFunnel" | "FilterPlus" | "Folder" | "FolderPlus" | "Forbid" | "FunnelChart" | "FunnelStepsChart" | "GalleryView" | "Gbp" | "GitBranch" | "Globe" | "GlobeHemisphereEast" | "Grid" | "Growth" | "Hand" | "Handshake" | "Hashtag" | "HelpCircle" | "Image" | "ImportExport" | "InboxNotification" | "InfoCircle" | "Input" | "Issue" | "Italic" | "Key" | "KKeyboardKey" | "LineChart" | "LineChartClock" | "Link" | "List" | "ListBolt" | "ListEdit" | "ListMinus" | "ListPlus" | "ListSearch" | "ListView" | "Location" | "Locked" | "LogOut" | "MapChart" | "Maximize" | "Merge" | "Message" | "Minimize" | "Minus" | "MinusSquare" | "MobilePhone" | "Moon" | "More" | "Move" | "MultiSelect" | "Name" | "None" | "Note" | "NotePlus" | "NoteTemplate" | "NoteTemplateArrowRight" | "NoteTemplatePlus" | "NumberList" | "Object" | "ObjectPlaceholder" | "ObjectPlus" | "PanelLeft" | "PanelRight" | "Paste" | "Pause" | "Percentage" | "Phone" | "PhoneArrowLeft" | "PhoneArrowRight" | "PhoneBusy" | "PhoneCancel" | "PhoneCheck" | "PhoneCross" | "PhoneMissed" | "PhoneNoAnswer" | "PieChart" | "Pin" | "Pinned" | "Placeholder" | "Play" | "Plus" | "PlusSquare" | "Pointer" | "PromptCompletion" | "Record" | "RecordBolt" | "RecordDetailEdit" | "RecordEdit" | "RecordPlus" | "RecordSearch" | "Reference" | "RelationshipConnect" | "RemoveCircle" | "Rename" | "Repeat" | "Replace" | "Reply" | "Report" | "ReportPlus" | "RingBell" | "Rocket" | "Rows" | "RowsPlus" | "Sales" | "Search" | "SearchMinus" | "SearchPlus" | "SectionArrowDown" | "SectionArrowUp" | "Select" | "SelfServed" | "Send" | "SendAdd" | "SendEdit" | "ServiceBell" | "Sessions" | "Settings" | "SettingsArrowRight" | "SettingsCheck" | "SettingsMinus" | "Share" | "ShieldLocker" | "ShowRightSidebar" | "Signature" | "SingleMetricChart" | "SnapGrid" | "SortAscending" | "SortDescending" | "SortPlus" | "Spreadsheet" | "SquareEmpty" | "SquareFilled" | "SquareStrength" | "Star" | "StarCross" | "Status" | "StatusArrow" | "StatusClock" | "Strength" | "Subscription" | "SummarizeRecord" | "Sun" | "Switch" | "Table" | "Tag" | "Templates" | "TemplatesCog" | "TemplatesEdit" | "TemplatesPlus" | "TestTube" | "Text" | "TextIndentLeft" | "TextIndentRight" | "ThumbsDown" | "ThumbsUp" | "TidyUp" | "Timestamp" | "Trash" | "Trigger" | "TriggerPlus" | "Undo" | "Unlink" | "Upload" | "User" | "UserArrowLeft" | "UserArrowRight" | "UserBolt" | "UserHeart" | "UserKey" | "UserMinus" | "UserPhone" | "UserPlaceholder" | "UserPlus" | "Users" | "VideoCamera" | "View" | "ViewPlus" | "Voicemail" | "WarningCircle" | "WarningTriangle" | "Webhooks" | "WorkflowCredit" | "WorkflowRun" | "Workflows" | "WorkflowsEdit" | "WorkflowsPlus" | "Workspace";
|
|
3
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/client/icon.ts"],"names":[],"mapp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1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/client/icon.ts"],"names":[],"mappings":""}
|
package/lib/client/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type { BulkRecordAction } from "./bulk-record-action.js";
|
|
|
2
2
|
export type { CallRecordingInsightTextSelectionAction } from "./call-recording-insight-text-selection-action.js";
|
|
3
3
|
export type { CallRecordingSummaryTextSelectionAction } from "./call-recording-summary-text-selection-action.js";
|
|
4
4
|
export type { CallRecordingTranscriptTextSelectionAction } from "./call-recording-transcript-text-selection-action.js";
|
|
5
|
-
export type { Attribute } from "./object-slug.js";
|
|
5
|
+
export type { Attribute, ObjectSlug, StandardObjectSlug, SystemObjectSlug } from "./object-slug.js";
|
|
6
6
|
export type { RecordAction } from "./record-action.js";
|
|
7
7
|
export type { RecordWidget } from "./record-widget.js";
|
|
8
8
|
export type { WorkflowBlock } from "./workflow-block.js";
|
|
@@ -24,3 +24,4 @@ export { type Dialog, showDialog } from "./show-dialog.js";
|
|
|
24
24
|
export { type IframeOptions, showIframe } from "./show-iframe.js";
|
|
25
25
|
export { showToast, ToastOptions, ToastVariant } from "./show-toast.js";
|
|
26
26
|
export * as experimental_Workflow from "./workflow/index.js";
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAA;AAC7D,YAAY,EAAC,uCAAuC,EAAC,MAAM,mDAAmD,CAAA;AAC9G,YAAY,EAAC,uCAAuC,EAAC,MAAM,mDAAmD,CAAA;AAC9G,YAAY,EAAC,0CAA0C,EAAC,MAAM,sDAAsD,CAAA;AACpH,YAAY,EAAC,SAAS,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAA;AACjG,YAAY,EAAC,YAAY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wnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.experimental_Workflow = exports.showToast = exports.showIframe = exports.showDialog = exports.runQuery = exports.platform = exports.Forms = exports.confirm = exports.alert = void 0;
|
|
30
|
+
var alert_js_1 = require("./alert.js");
|
|
31
|
+
Object.defineProperty(exports, "alert", { enumerable: true, get: function () { return alert_js_1.alert; } });
|
|
32
|
+
__exportStar(require("./components/index.js"), exports);
|
|
33
|
+
var confirm_js_1 = require("./confirm.js");
|
|
34
|
+
Object.defineProperty(exports, "confirm", { enumerable: true, get: function () { return confirm_js_1.confirm; } });
|
|
35
|
+
exports.Forms = __importStar(require("./forms/index.js"));
|
|
36
|
+
__exportStar(require("./forms/path.js"), exports);
|
|
37
|
+
__exportStar(require("./hooks/index.js"), exports);
|
|
38
|
+
var platform_js_1 = require("./platform.js");
|
|
39
|
+
Object.defineProperty(exports, "platform", { enumerable: true, get: function () { return platform_js_1.platform; } });
|
|
40
|
+
var run_query_js_1 = require("./run-query.js");
|
|
41
|
+
Object.defineProperty(exports, "runQuery", { enumerable: true, get: function () { return run_query_js_1.runQuery; } });
|
|
42
|
+
var show_dialog_js_1 = require("./show-dialog.js");
|
|
43
|
+
Object.defineProperty(exports, "showDialog", { enumerable: true, get: function () { return show_dialog_js_1.showDialog; } });
|
|
44
|
+
var show_iframe_js_1 = require("./show-iframe.js");
|
|
45
|
+
Object.defineProperty(exports, "showIframe", { enumerable: true, get: function () { return show_iframe_js_1.showIframe; } });
|
|
46
|
+
var show_toast_js_1 = require("./show-toast.js");
|
|
47
|
+
Object.defineProperty(exports, "showToast", { enumerable: true, get: function () { return show_toast_js_1.showToast; } });
|
|
48
|
+
exports.experimental_Workflow = __importStar(require("./workflow/index.js"));
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,uCAA8C;AAAxB,iGAAA,KAAK,OAAA;AAC3B,wDAAqC;AACrC,2CAAoD;AAA5B,qGAAA,OAAO,OAAA;AAG/B,0DAAyC;AAEzC,kDAA+B;AAG/B,mDAAgC;AAEhC,6CAAsC;AAA9B,uGAAA,QAAQ,OAAA;AAChB,+CAA8C;AAA/B,wGAAA,QAAQ,OAAA;AACvB,mDAAwD;AAAnC,4GAAA,UAAU,OAAA;AAC/B,mDAA+D;AAAnC,4GAAA,UAAU,OAAA;AACtC,iDAAqE;AAA7D,0GAAA,SAAS,OAAA;AAEjB,6EAA4D"}
|
|
@@ -6,3 +6,4 @@ export interface Attribute {
|
|
|
6
6
|
isUnique: boolean;
|
|
7
7
|
type: "text" | "number" | "checkbox" | "currency" | "date" | "timestamp" | "rating" | "pipeline" | "select" | "entity-reference" | "actor-reference" | "location" | "domain" | "email-address" | "phone-number" | "interaction" | "personal-name";
|
|
8
8
|
}
|
|
9
|
+
//# sourceMappingURL=object-slug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-slug.d.ts","sourceRoot":"","sources":["../../src/client/object-slug.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,WAAW,CAAA;AACrD,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,YAAY,GAAG,OAAO,CAAA;AAEjE,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAC9E,MAAM,WAAW,SAAS;IACtB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EACE,MAAM,GACN,QAAQ,GACR,UAAU,GACV,UAAU,GACV,MAAM,GACN,WAAW,GACX,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,kBAAkB,GAClB,iBAAiB,GACjB,UAAU,GACV,QAAQ,GACR,eAAe,GACf,cAAc,GACd,aAAa,GACb,eAAe,CAAA;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-slug.js","sourceRoot":"","sources":["../../src/client/object-slug.ts"],"names":[],"mappings":""}
|
package/lib/client/platform.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/client/platform.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,SAAS,GAAG,YAAY,CAAA"}
|