@amp-labs/react 2.11.2 → 2.12.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/build/index.d.ts CHANGED
@@ -78,6 +78,12 @@ declare interface BackfillConfig {
78
78
  * @memberof BackfillConfig
79
79
  */
80
80
  defaultPeriod: DefaultPeriodConfig;
81
+ /**
82
+ * Filters to apply only during backfill. Multiple conditions are joined by AND. Use this when you want different filter behavior for backfill vs. incremental reads.
83
+ * @type {Array<ReadFilter>}
84
+ * @memberof BackfillConfig
85
+ */
86
+ filter?: Array<ReadFilter>;
81
87
  }
82
88
 
83
89
  /**
@@ -195,6 +201,12 @@ export declare interface BaseReadConfigObject {
195
201
  * @memberof BaseReadConfigObject
196
202
  */
197
203
  backfill?: BackfillConfig;
204
+ /**
205
+ * Filters to apply when reading records during incremental reads and backfill. Multiple conditions are joined by AND. Each field can only have one condition.
206
+ * @type {Array<ReadFilter>}
207
+ * @memberof BaseReadConfigObject
208
+ */
209
+ filter?: Array<ReadFilter>;
198
210
  }
199
211
 
200
212
  /**
@@ -581,7 +593,7 @@ declare const ConnectionStatusEnum: {
581
593
 
582
594
  declare type ConnectionStatusEnum = typeof ConnectionStatusEnum[keyof typeof ConnectionStatusEnum];
583
595
 
584
- export declare function ConnectProvider({ provider, consumerRef, consumerName, groupRef, groupName, redirectUrl, onSuccess, onDisconnectSuccess, onConnectSuccess, }: ConnectProviderProps): JSX_2.Element;
596
+ export declare function ConnectProvider({ provider, consumerRef, consumerName, groupRef, groupName, redirectUrl, module, onSuccess, onDisconnectSuccess, onConnectSuccess, }: ConnectProviderProps): JSX_2.Element;
585
597
 
586
598
  declare interface ConnectProviderProps {
587
599
  provider: string;
@@ -590,6 +602,12 @@ declare interface ConnectProviderProps {
590
602
  groupRef: string;
591
603
  groupName?: string;
592
604
  redirectUrl?: string;
605
+ /**
606
+ * The module to use for this connection. If the provider has modules defined,
607
+ * this determines which module-specific metadata to collect.
608
+ * Falls back to the provider's defaultModule if not specified.
609
+ */
610
+ module?: string;
593
611
  /**
594
612
  * Use `onConnectSuccess` instead of `onSuccess`. `onSuccess` will soon be deprecated.
595
613
  * @deprecated
@@ -823,6 +841,9 @@ declare interface ErrorBoundaryState {
823
841
  error: Error | null;
824
842
  }
825
843
 
844
+ /** Filter for getRequiredFields / getOptionalFields: raw (all), no-mappings (existent only), or mappings only. */
845
+ declare type FieldInclude = "raw" | "no-mappings" | "mappings";
846
+
826
847
  /**
827
848
  * A map of object names to DynamicMappingsInputEntry arrays, with each DynamicMappingsInputEntry representing a field.
828
849
  */
@@ -923,6 +944,9 @@ export declare interface FieldSetting {
923
944
  writeOnCreate?: FieldSettingWriteOnCreateEnum;
924
945
  /**
925
946
  * Whether the default value should be applied when updating a record.
947
+ * - always: Always write to the field on update
948
+ * - never: Never write to the field on update
949
+ * - ifEmpty: Only write to the field if it's currently empty (unset or empty string).
926
950
  * @type {string}
927
951
  * @memberof FieldSetting
928
952
  */
@@ -982,6 +1006,7 @@ export declare type FieldSettingWriteOnCreateEnum = typeof FieldSettingWriteOnCr
982
1006
  export declare const FieldSettingWriteOnUpdateEnum: {
983
1007
  readonly Always: "always";
984
1008
  readonly Never: "never";
1009
+ readonly IfEmpty: "ifEmpty";
985
1010
  };
986
1011
 
987
1012
  export declare type FieldSettingWriteOnUpdateEnum = typeof FieldSettingWriteOnUpdateEnum[keyof typeof FieldSettingWriteOnUpdateEnum];
@@ -1532,7 +1557,7 @@ declare interface InstallIntegrationProps {
1532
1557
  * @export
1533
1558
  * @interface IntegrationFieldMapping
1534
1559
  */
1535
- declare interface IntegrationFieldMapping {
1560
+ export declare interface IntegrationFieldMapping {
1536
1561
  /**
1537
1562
  *
1538
1563
  * @type {string}
@@ -1560,10 +1585,21 @@ declare interface IntegrationFieldMapping {
1560
1585
  }
1561
1586
 
1562
1587
  export declare interface Manifest {
1588
+ getReadObjects: () => HydratedIntegrationObject[];
1563
1589
  getReadObject: (objectName: string) => {
1564
1590
  object: HydratedIntegrationObject | null;
1565
- getRequiredFields: () => HydratedIntegrationField[] | null;
1566
- getOptionalFields: () => HydratedIntegrationField[] | null;
1591
+ /**
1592
+ * Required fields. Default "raw" (existent + mappings). Use "no-mappings" or "mappings" to filter.
1593
+ */
1594
+ getRequiredFields: (include?: FieldInclude) => HydratedIntegrationField[] | IntegrationFieldMapping[] | null;
1595
+ /**
1596
+ * Optional fields. Default "raw" (existent + mappings). Use "no-mappings" or "mappings" to filter.
1597
+ */
1598
+ getOptionalFields: (include?: FieldInclude) => HydratedIntegrationField[] | IntegrationFieldMapping[] | null;
1599
+ /** Required mapping fields. Same as getRequiredFields('mappings'). */
1600
+ getRequiredMapFields: () => IntegrationFieldMapping[] | null;
1601
+ /** Optional mapping fields. Same as getOptionalFields('mappings'). */
1602
+ getOptionalMapFields: () => IntegrationFieldMapping[] | null;
1567
1603
  };
1568
1604
  getWriteObject: (objectName: string) => {
1569
1605
  object: HydratedIntegrationWriteObject | null;
@@ -1898,10 +1934,64 @@ declare interface ReadConfigObject {
1898
1934
  * @memberof ReadConfigObject
1899
1935
  */
1900
1936
  backfill?: BackfillConfig;
1937
+ /**
1938
+ * Filters to apply when reading records during incremental reads and backfill. Multiple conditions are joined by AND. Each field can only have one condition.
1939
+ * @type {Array<ReadFilter>}
1940
+ * @memberof ReadConfigObject
1941
+ */
1942
+ filter?: Array<ReadFilter>;
1943
+ }
1944
+
1945
+ /**
1946
+ * Ampersand public API
1947
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1948
+ *
1949
+ * The version of the OpenAPI document: 1.0.0
1950
+ *
1951
+ *
1952
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1953
+ * https://openapi-generator.tech
1954
+ * Do not edit the class manually.
1955
+ */
1956
+ /**
1957
+ *
1958
+ * @export
1959
+ * @interface ReadFilter
1960
+ */
1961
+ declare interface ReadFilter {
1962
+ /**
1963
+ * The name of the field to filter on.
1964
+ * @type {string}
1965
+ * @memberof ReadFilter
1966
+ */
1967
+ fieldName: string;
1968
+ /**
1969
+ * The comparison operator.
1970
+ * @type {string}
1971
+ * @memberof ReadFilter
1972
+ */
1973
+ operator: ReadFilterOperatorEnum;
1974
+ /**
1975
+ * The value to filter on. Allowed types are string, boolean, and number.
1976
+ * @type {any}
1977
+ * @memberof ReadFilter
1978
+ */
1979
+ value?: any | null;
1901
1980
  }
1902
1981
 
1982
+ /**
1983
+ * @export
1984
+ */
1985
+ declare const ReadFilterOperatorEnum: {
1986
+ readonly Eq: "eq";
1987
+ };
1988
+
1989
+ declare type ReadFilterOperatorEnum = typeof ReadFilterOperatorEnum[keyof typeof ReadFilterOperatorEnum];
1990
+
1903
1991
  export declare type ReadObjectHandlers = {
1904
1992
  object: BaseReadConfigObject | undefined;
1993
+ setEnableRead: () => void;
1994
+ setDisableRead: () => void;
1905
1995
  getSelectedField: (fieldName: string) => boolean;
1906
1996
  setSelectedField: (params: {
1907
1997
  fieldName: string;
@@ -1983,6 +2073,12 @@ declare interface SubscribeConfigObject {
1983
2073
  * @memberof SubscribeConfigObject
1984
2074
  */
1985
2075
  deleteEvent?: ConfigDeleteEvent;
2076
+ /**
2077
+ *
2078
+ * @type {Array<string>}
2079
+ * @memberof SubscribeConfigObject
2080
+ */
2081
+ otherEvents?: Array<string>;
1986
2082
  }
1987
2083
 
1988
2084
  /**
@@ -2029,6 +2125,7 @@ export declare function useConfig(): {
2029
2125
  get: () => Partial<ConfigContent>;
2030
2126
  reset: () => void;
2031
2127
  setDraft: Dispatch<SetStateAction<Partial<ConfigContent>>>;
2128
+ removeObject: (objectName: string) => void;
2032
2129
  readObject: (objectName: string) => ReadObjectHandlers;
2033
2130
  writeObject: (objectName: string) => WriteObjectHandlers;
2034
2131
  proxy: () => ProxyHandlers;
@@ -2153,6 +2250,7 @@ declare interface UseIsIntegrationInstalledResult {
2153
2250
  get: () => Partial<ConfigContent>;
2154
2251
  reset: () => void;
2155
2252
  setDraft: Dispatch<SetStateAction<Partial<ConfigContent>>>;
2253
+ removeObject: (objectName: string) => void;
2156
2254
  readObject: (objectName: string) => ReadObjectHandlers;
2157
2255
  writeObject: (objectName: string) => WriteObjectHandlers;
2158
2256
  proxy: () => ProxyHandlers;
@@ -2167,10 +2265,21 @@ declare interface UseIsIntegrationInstalledResult {
2167
2265
  *
2168
2266
  */
2169
2267
  export declare function useManifest(): {
2268
+ getReadObjects: () => HydratedIntegrationObject[];
2170
2269
  getReadObject: (objectName: string) => {
2171
2270
  object: HydratedIntegrationObject | null;
2172
- getRequiredFields: () => HydratedIntegrationField[] | null;
2173
- getOptionalFields: () => HydratedIntegrationField[] | null;
2271
+ /**
2272
+ * Required fields. Default "raw" (existent + mappings). Use "no-mappings" or "mappings" to filter.
2273
+ */
2274
+ getRequiredFields: (include?: FieldInclude) => HydratedIntegrationField[] | IntegrationFieldMapping[] | null;
2275
+ /**
2276
+ * Optional fields. Default "raw" (existent + mappings). Use "no-mappings" or "mappings" to filter.
2277
+ */
2278
+ getOptionalFields: (include?: FieldInclude) => HydratedIntegrationField[] | IntegrationFieldMapping[] | null;
2279
+ /** Required mapping fields. Same as getRequiredFields('mappings'). */
2280
+ getRequiredMapFields: () => IntegrationFieldMapping[] | null;
2281
+ /** Optional mapping fields. Same as getOptionalFields('mappings'). */
2282
+ getOptionalMapFields: () => IntegrationFieldMapping[] | null;
2174
2283
  };
2175
2284
  getWriteObject: (objectName: string) => {
2176
2285
  object: HydratedIntegrationWriteObject | null;
package/build/style.css CHANGED
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap";:root{--amp-font-family: "DM Sans", Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;--amp-colors-white: #ffffff;--amp-colors-black: #111111;--amp-colors-primary: #000000;--amp-colors-neutral-25: #FEFEFE;--amp-colors-neutral-50: #FDFCFD;--amp-colors-neutral-100: #FAFAFC;--amp-colors-neutral-200: #F6F5F9;--amp-colors-neutral-300: #F1EFF5;--amp-colors-neutral-400: #EDEAF2;--amp-colors-neutral-500: #E8E5EF;--amp-colors-neutral-600: #918E95;--amp-colors-neutral-700: #646266;--amp-colors-neutral-800: #363638;--amp-colors-neutral-900: #1D1D1D;--amp-colors-text-standout: light-dark(var(--amp-colors-black), var(--amp-colors-white));--amp-colors-text-regular: light-dark(var(--amp-colors-neutral-900), var(--amp-colors-neutral-100));--amp-colors-text-muted: light-dark(var(--amp-colors-neutral-700), var(--amp-colors-neutral-200));--amp-colors-bg-primary: light-dark(var(--amp-colors-white), var(--amp-colors-neutral-800));--amp-colors-bg-secondary: light-dark(var(--amp-colors-neutral-50), var(--amp-colors-neutral-900));--amp-colors-bg-highlight: light-dark(var(--amp-colors-neutral-300), var(--amp-colors-neutral-700));--amp-colors-border: light-dark(var(--amp-colors-neutral-300), var(--amp-colors-neutral-700));--amp-default-border-radius: 6px;--amp-colors-status-critical-dark: #702525;--amp-colors-status-critical: #E73D3D;--amp-colors-status-critical-muted: #FFD9D9;--amp-colors-status-success-dark: #2A704A;--amp-colors-status-success: #49E792;--amp-colors-status-success-muted: #DCFFEC;--amp-colors-link-text: light-dark(var(--amp-colors-neutral-900), var(--amp-colors-neutral-50));--amp-colors-link-focus: light-dark(var(--amp-colors-neutral-700), var(--amp-colors-neutral-700));--amp-colors-link-active: light-dark(var(--amp-colors-neutral-700), var(--amp-colors-neutral-200));--amp-colors-button-primary: var(--amp-colors-primary);--amp-colors-button-text: var(--amp-colors-white);--amp-button-font-size: 1rem;--amp-colors-input-border-default: light-dark(var(--amp-colors-neutral-500), var(--amp-colors-neutral-700));--amp-colors-input-border-disabled: light-dark(var(--amp-colors-neutral-500), var(--amp-colors-neutral-600));--amp-colors-input-border-focus: light-dark(var(--amp-colors-neutral-900), var(--amp-colors-neutral-50));--amp-colors-input-border-hover: light-dark(var(--amp-colors-neutral-500), var(--amp-colors-neutral-600));--amp-colors-input-content-default: light-dark(var(--amp-colors-black), var(--amp-colors-white));--amp-colors-input-content-disabled: var(--amp-colors-neutral-600);--amp-colors-input-content-placeholder-text: var(--amp-colors-neutral-600);--amp-colors-input-surface-default: light-dark(var(--amp-colors-white), var(--amp-colors-neutral-900));--amp-colors-input-surface-disabled: light-dark(var(--amp-colors-neutral-200), var(--amp-colors-neutral-700));--amp-colors-input-surface-focus: light-dark(var(--amp-colors-white), var(--amp-colors-black));--amp-colors-input-surface-hover: light-dark(var(--amp-colors-neutral-200), var(--amp-colors-neutral-800))}._box_1p7c5_1{border-radius:var(--amp-default-border-radius);background-color:var(--amp-colors-bg-primary);border:1px solid var(--amp-colors-border)}._container_1wvzr_1{max-width:60ch;margin-left:auto;margin-right:auto}._errorBoxContainer_19655_1{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px 32px;min-height:300px}._errorBox_19655_1{display:flex;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;border-radius:var(--amp-default-border-radius);background-color:var(--amp-colors-status-critical-muted);border:1px solid var(--amp-colors-status-critical-muted);max-width:500px;width:100%;box-shadow:0 1px 3px #0000000d}._errorIconWrapper_19655_23{display:flex;align-items:center;justify-content:center;flex-shrink:0}._errorIcon_19655_23{color:var(--amp-colors-status-critical-dark)}._errorText_19655_34{color:var(--amp-colors-status-critical-dark);margin:0;line-height:1.5;font-size:1rem;flex:1}._loader_6ubm6_1{animation:_rotate_6ubm6_1 1s infinite;height:50px;width:50px}._loader_6ubm6_1:before,._loader_6ubm6_1:after{border-radius:50%;content:"";display:block;height:20px;width:20px}._loader_6ubm6_1:before{animation:_ball1_6ubm6_1 1s infinite;background-color:var(--amp-colors-primary);box-shadow:30px 0 0 var(--amp-colors-neutral-700);margin-bottom:10px}._loader_6ubm6_1:after{animation:_ball2_6ubm6_1 1s infinite;background-color:var(--amp-colors-neutral-700);box-shadow:30px 0 0 var(--amp-colors-primary)}@keyframes _rotate_6ubm6_1{0%{transform:rotate(0) scale(.8)}50%{transform:rotate(360deg) scale(1.2)}to{transform:rotate(720deg) scale(.8)}}@keyframes _ball1_6ubm6_1{0%{box-shadow:30px 0 0 var(--amp-colors-neutral-700)}50%{box-shadow:0 0 0 var(--amp-colors-neutral-700);margin-bottom:0;transform:translate(15px,15px)}to{box-shadow:30px 0 0 var(--amp-colors-neutral-700);margin-bottom:10px}}@keyframes _ball2_6ubm6_1{0%{box-shadow:30px 0 0 var(--amp-colors-primary)}50%{box-shadow:0 0 0 var(--amp-colors-primary);margin-top:-20px;transform:translate(15px,15px)}to{box-shadow:30px 0 0 var(--amp-colors-primary);margin-top:0}}._button_kwfiu_1{color:var(--amp-colors-button-text);background-color:var(--amp-colors-button-primary);border-radius:var(--amp-default-border-radius);border:1px solid;border-color:var(--amp-colors-border);height:2.5rem;font-size:var(--amp-button-font-size);font-weight:500;line-height:1.5rem;padding:0 1rem;transition:all .1s ease}._button_kwfiu_1:hover{opacity:.8}._button_kwfiu_1:focus{outline:none}._button_kwfiu_1:focus-visible{outline:none}._buttonError_kwfiu_28{border:1px solid var(--amp-colors-status-critical)}._button_kwfiu_1:focus:enabled{outline:none}._button_kwfiu_1:disabled{opacity:.5;cursor:not-allowed}._danger_kwfiu_42{color:var(--amp-colors-status-critical);background-color:var(--amp-colors-bg-secondary)}._ghost_kwfiu_47{border-color:var(--amp-colors-border);background-color:var(--amp-colors-bg-secondary);color:var(--amp-colors-text-regular)}._input_1ymb7_1{border-radius:var(--amp-default-border-radius);border:1px solid;border-color:var(--amp-colors-input-border-default);height:2.5rem;transition:all .2s ease-in;color:var(--amp-colors-input-content-default);background-color:var(--amp-colors-input-surface-default);font-size:1rem;font-weight:400;line-height:1.5rem;padding:0 1rem;width:100%;transition:all .1s ease}._input_1ymb7_1:hover{border-color:var(--amp-colors-input-border-hover);background-color:var(--amp-colors-input-surface-hover)}._input_1ymb7_1::placeholder{color:var(--amp-colors-input-content-placeholder-text)}._inputError_1ymb7_27{border:1px solid var(--amp-colors-status-critical)}._input_1ymb7_1:focus:enabled{border:1px solid var(--amp-colors-input-border-focus);outline:none;background-color:var(--amp-colors-input-surface-focus)}._input_1ymb7_1:disabled{background-color:var(--amp-colors-input-surface-disabled);border:1px solid var(--amp-colors-input-border-disabled);color:var(--amp-colors-input-content-disabled)}._error_1ymb7_43{color:var(--amp-colors-status-critical);font-size:.875rem;font-weight:400;line-height:1.25rem}._textarea_18zl4_1{border-radius:var(--amp-default-border-radius);border:1px solid;border-color:var(--amp-colors-input-border-default);background-color:var(--amp-colors-input-surface-default);color:var(--amp-colors-input-content-default);font-size:1rem;font-weight:400;line-height:1.5rem;padding:.5rem 1rem;transition:all .05s ease-in}._textareaError_18zl4_14{border-color:var(--amp-colors-status-critical)}._textarea_18zl4_1:focus:enabled{border:2px solid var(--amp-colors-input-border-focus);outline:none}._textarea_18zl4_1:disabled{color:var(--amp-colors-input-content-disabled);background-color:var(--amp-colors-input-surface-disabled);border:1px solid var(--amp-colors-input-border-disabled)}._error_18zl4_29{color:var(--amp-colors-status-critical-dark);font-size:.875rem;font-weight:400;line-height:1.25rem}._link_oo2kv_1{color:var(--amp-colors-link-text);text-decoration:none;font-weight:500}._link_oo2kv_1:hover,._link_oo2kv_1:focus{text-decoration:underline;outline:none}._link_oo2kv_1:focus{outline:2px solid var(--amp-colors-link-focus);outline-offset:2px}._link_oo2kv_1:active{color:var(--amp-colors-link-active)}._container_r1dnc_1{color:var(--amp-colors-text-muted);font-size:.8125rem;margin-top:.375rem;margin-bottom:.75rem;line-height:1.5}._code_r1dnc_9{background-color:var(--amp-colors-background-muted, #f5f5f5);padding:.125rem .25rem;border-radius:.25rem;font-family:monospace;font-size:.875em}._metadataInputWrapper_1266b_1:not(:last-child){margin-bottom:1.5rem}._divider_1kmoj_1{border:none;height:1px;background:var(--amp-colors-border)}._comboboxContainer_1lcc8_1{width:100%;display:flex;flex-direction:column;gap:.5rem}._label_1lcc8_8{font-size:1rem}._inputContainer_1lcc8_12{display:flex;border:1px solid;border-color:var(--amp-colors-input-border-default);border-radius:var(--amp-default-border-radius)}._input_1lcc8_12{padding:.5rem;width:100%;font-size:1rem;background-color:var(--amp-colors-input-surface-default);color:var(--amp-colors-input-content-default);border-top-left-radius:var(--amp-default-border-radius);border-bottom-left-radius:var(--amp-default-border-radius)}._input_1lcc8_12:focus-visible{outline:1px solid var(--amp-colors-input-border-focus)}._toggleButton_1lcc8_33{padding:.5rem;cursor:pointer;background-color:var(--amp-colors-bg-highlight)}._menu_1lcc8_39{position:absolute;background-color:var(--amp-colors-input-surface-default);width:100%;max-height:120px;overflow-y:auto;margin-top:.25rem;border:1px solid;border-color:var(--amp-colors-input-border-default);z-index:10;border-radius:var(--amp-default-border-radius);padding:0;font-size:.8rem}._menuBottom_1lcc8_55{top:100%;margin-top:4px}._menuTop_1lcc8_61{bottom:100%;margin-bottom:4px}._menuItem_1lcc8_66{padding:.5rem;display:flex;flex-direction:column}._menuItem_1lcc8_66:hover,._highlighted_1lcc8_73{background-color:var(--amp-colors-input-surface-hover)}._selected_1lcc8_77{font-weight:700}._hidden_1lcc8_81{display:none}._formControl_9qd8d_1{margin-bottom:.25rem}._formLabel_9qd8d_5{font-weight:700;margin-bottom:.5rem;display:block}._formLabelRequired_9qd8d_11:after{content:" *";color:var(--amp-colors-status-critical-dark)}._formInput_9qd8d_16{position:relative}._formInputInvalid_9qd8d_20 input{border-color:var(--amp-colors-status-critical)}._formError_9qd8d_24{color:var(--amp-colors-status-critical-dark);font-size:.875rem;margin-top:.5rem}._disabled_9qd8d_30{opacity:.6;pointer-events:none}._checkboxGroupContainer_hqfeu_1{margin-bottom:10px;border:1px solid var(--amp-colors-border);border-radius:var(--amp-default-border-radius)}._stack_hqfeu_6{height:fit-content}._selectAllContainer_hqfeu_10{background-color:var(--amp-colors-bg-highlight);padding:8px 10px;display:flex;align-items:center}._fieldContainer_hqfeu_17{padding:8px 10px;border-bottom:1px solid var(--amp-colors-border);display:flex;align-items:center}._checkbox_hqfeu_1{margin-right:10px;background-color:var(--amp-colors-bg-primary);width:20px;height:20px;border-radius:4px;display:flex;justify-content:center;border:1px solid var(--amp-colors-input-border-default);cursor:pointer;flex:none}._checkbox_hqfeu_1:hover{background-color:var(--amp-colors-input-surface-hover);border-color:var(--amp-colors-input-border-hover)}._checkbox_hqfeu_1:focus{box-shadow:0 0 0 2px var(--amp-colors-focus-border);border-color:var(--amp-colors-input-border-focus)}._paginationContainer_1p51x_1{display:flex;justify-content:space-between;padding:.25rem .5rem}._pageInfo_1p51x_7{display:flex;align-items:center;color:var(--amp-colors-text-muted)}._searchContainer_1p51x_13{padding:.5rem}._searchInput_1p51x_17{width:100%}._noResults_1p51x_21{text-align:center;padding:1rem;color:var(--amp-colors-text-muted);font-style:italic}._errorAlert_1tcao_1{display:flex;flex-direction:column;gap:.5rem;padding:.875rem 1rem;border-radius:var(--amp-default-border-radius);background-color:var(--amp-colors-status-critical-muted);border-left:3px solid var(--amp-colors-status-critical)}._errorHeader_1tcao_11{display:flex;align-items:center;gap:.5rem}._errorIcon_1tcao_17{color:var(--amp-colors-status-critical);width:16px;height:16px;flex-shrink:0}._errorTitle_1tcao_24{font-weight:600;font-size:.875rem;color:var(--amp-colors-status-critical-dark)}._errorMessage_1tcao_30{font-size:.8125rem;color:var(--amp-colors-status-critical-dark);line-height:1.5;padding-left:1.5rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;word-break:break-word}._authenticationRow_1g2ms_1{display:flex;justify-content:space-between;padding:.5rem 0;font-size:1rem}._field_1g2ms_8{color:var(--amp-colors-text-muted)}._value_1g2ms_12{color:var(--amp-colors-text-regular);text-align:right}._tabsRoot_ktpr0_1{display:flex;width:100%}._tabsList_ktpr0_6{display:flex;flex-direction:column;width:100%}._tabTrigger_ktpr0_12{all:unset;padding:10px;cursor:pointer;background-color:var(--amp-colors-tabs-background);border-radius:var(--amp-default-border-radius);margin-bottom:5px}._tabTrigger_ktpr0_12:hover,._tabTrigger_ktpr0_12[data-state=active]{background-color:var(--amp-colors-bg-highlight)}._danger_ktpr0_29{color:var(--amp-colors-status-critical)}._resetContainer_lkwv9_4 *,._resetContainer_lkwv9_4 *:before,._resetContainer_lkwv9_4 *:after{box-sizing:border-box}._resetContainer_lkwv9_4 *{font-family:var(--amp-font-family)}._resetContainer_lkwv9_4 body,._resetContainer_lkwv9_4 h1,._resetContainer_lkwv9_4 h2,._resetContainer_lkwv9_4 h3,._resetContainer_lkwv9_4 h4,._resetContainer_lkwv9_4 h5,._resetContainer_lkwv9_4 h6,._resetContainer_lkwv9_4 p{margin:0;padding:0}._resetContainer_lkwv9_4 button{cursor:pointer}
1
+ @import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap";:root{--amp-font-family: "DM Sans", Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;--amp-colors-white: #ffffff;--amp-colors-black: #111111;--amp-colors-primary: #000000;--amp-colors-neutral-25: #FEFEFE;--amp-colors-neutral-50: #FDFCFD;--amp-colors-neutral-100: #FAFAFC;--amp-colors-neutral-200: #F6F5F9;--amp-colors-neutral-300: #F1EFF5;--amp-colors-neutral-400: #EDEAF2;--amp-colors-neutral-500: #E8E5EF;--amp-colors-neutral-600: #918E95;--amp-colors-neutral-700: #646266;--amp-colors-neutral-800: #363638;--amp-colors-neutral-900: #1D1D1D;--amp-colors-status-critical-dark: #702525;--amp-colors-status-critical: #E73D3D;--amp-colors-status-critical-muted: #FFD9D9;--amp-colors-status-success-dark: #2A704A;--amp-colors-status-success: #49E792;--amp-colors-status-success-muted: #DCFFEC;--amp-surface-primary: light-dark(var(--amp-colors-white), var(--amp-colors-neutral-800));--amp-surface-secondary: light-dark(var(--amp-colors-neutral-50), var(--amp-colors-neutral-900));--amp-surface-sunken: light-dark(var(--amp-colors-neutral-100), var(--amp-colors-neutral-900));--amp-surface-hover: light-dark(#FAFAFA, var(--amp-colors-neutral-900));--amp-surface-selected: light-dark(#F5F5F5, var(--amp-colors-neutral-800));--amp-surface-highlight: light-dark(var(--amp-colors-neutral-300), var(--amp-colors-neutral-700));--amp-text-primary: light-dark(var(--amp-colors-black), var(--amp-colors-white));--amp-text-secondary: light-dark(var(--amp-colors-neutral-900), var(--amp-colors-neutral-100));--amp-text-muted: light-dark(var(--amp-colors-neutral-700), var(--amp-colors-neutral-200));--amp-text-on-emphasis: var(--amp-colors-white);--amp-border-default: light-dark(var(--amp-colors-neutral-300), var(--amp-colors-neutral-700));--amp-border-emphasis: light-dark(#E5E5E5, var(--amp-colors-neutral-600));--amp-border-strong: light-dark(var(--amp-colors-neutral-900), var(--amp-colors-neutral-50));--amp-accent: var(--amp-colors-primary);--amp-accent-hover: light-dark(#333333, #CCCCCC);--amp-accent-text: var(--amp-colors-white);--amp-status-success: var(--amp-colors-status-success);--amp-status-success-subtle: var(--amp-colors-status-success-muted);--amp-status-success-text: var(--amp-colors-status-success-dark);--amp-status-error: var(--amp-colors-status-critical);--amp-status-error-subtle: var(--amp-colors-status-critical-muted);--amp-status-error-text: var(--amp-colors-status-critical-dark);--amp-status-warning: #E8A230;--amp-status-warning-subtle: light-dark(#FFF4D9, #704A25);--amp-status-warning-text: light-dark(#704A25, #FFF4D9);--amp-disabled-opacity: .5;--amp-space-1: .25rem;--amp-space-2: .5rem;--amp-space-3: .75rem;--amp-space-4: 1rem;--amp-space-5: 1.5rem;--amp-space-6: 2rem;--amp-space-7: 2.5rem;--amp-font-size-xs: .8125rem;--amp-font-size-sm: .875rem;--amp-font-size-md: .9375rem;--amp-font-size-lg: 1.25rem;--amp-font-size-xl: 1.5rem;--amp-font-normal: 400;--amp-font-medium: 500;--amp-font-semibold: 600;--amp-radius-sm: 4px;--amp-radius-md: 6px;--amp-radius-lg: 12px;--amp-shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);--amp-shadow-md: 0 2px 16px rgba(0, 0, 0, .08);--amp-duration-fast: .15s;--amp-duration-normal: .25s;--amp-colors-text-standout: var(--amp-text-primary);--amp-colors-text-regular: var(--amp-text-secondary);--amp-colors-text-muted: var(--amp-text-muted);--amp-colors-bg-primary: var(--amp-surface-primary);--amp-colors-bg-secondary: var(--amp-surface-secondary);--amp-colors-bg-highlight: var(--amp-surface-highlight);--amp-colors-border: var(--amp-border-default);--amp-default-border-radius: var(--amp-radius-md);--amp-colors-link-text: light-dark(var(--amp-colors-neutral-900), var(--amp-colors-neutral-50));--amp-colors-link-focus: light-dark(var(--amp-colors-neutral-700), var(--amp-colors-neutral-700));--amp-colors-link-active: light-dark(var(--amp-colors-neutral-700), var(--amp-colors-neutral-200));--amp-colors-button-primary: var(--amp-accent);--amp-colors-button-text: var(--amp-accent-text);--amp-button-font-size: 1rem;--amp-colors-input-border-default: light-dark(var(--amp-colors-neutral-500), var(--amp-colors-neutral-700));--amp-colors-input-border-disabled: light-dark(var(--amp-colors-neutral-500), var(--amp-colors-neutral-600));--amp-colors-input-border-focus: light-dark(var(--amp-colors-neutral-900), var(--amp-colors-neutral-50));--amp-colors-input-border-hover: light-dark(var(--amp-colors-neutral-500), var(--amp-colors-neutral-600));--amp-colors-input-content-default: light-dark(var(--amp-colors-black), var(--amp-colors-white));--amp-colors-input-content-disabled: var(--amp-colors-neutral-600);--amp-colors-input-content-placeholder-text: var(--amp-colors-neutral-600);--amp-colors-input-surface-default: light-dark(var(--amp-colors-white), var(--amp-colors-neutral-900));--amp-colors-input-surface-disabled: light-dark(var(--amp-colors-neutral-200), var(--amp-colors-neutral-700));--amp-colors-input-surface-focus: light-dark(var(--amp-colors-white), var(--amp-colors-black));--amp-colors-input-surface-hover: light-dark(var(--amp-colors-neutral-200), var(--amp-colors-neutral-800));--amp-colors-tabs-background: transparent;--amp-colors-focus-border: var(--amp-accent);--amp-colors-background-muted: var(--amp-surface-secondary)}._box_1p7c5_1{border-radius:var(--amp-default-border-radius);background-color:var(--amp-colors-bg-primary);border:1px solid var(--amp-colors-border)}._container_1wvzr_1{max-width:60ch;margin-left:auto;margin-right:auto}._errorBoxContainer_19655_1{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px 32px;min-height:300px}._errorBox_19655_1{display:flex;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;border-radius:var(--amp-default-border-radius);background-color:var(--amp-colors-status-critical-muted);border:1px solid var(--amp-colors-status-critical-muted);max-width:500px;width:100%;box-shadow:0 1px 3px #0000000d}._errorIconWrapper_19655_23{display:flex;align-items:center;justify-content:center;flex-shrink:0}._errorIcon_19655_23{color:var(--amp-colors-status-critical-dark)}._errorText_19655_34{color:var(--amp-colors-status-critical-dark);margin:0;line-height:1.5;font-size:1rem;flex:1}._loader_6ubm6_1{animation:_rotate_6ubm6_1 1s infinite;height:50px;width:50px}._loader_6ubm6_1:before,._loader_6ubm6_1:after{border-radius:50%;content:"";display:block;height:20px;width:20px}._loader_6ubm6_1:before{animation:_ball1_6ubm6_1 1s infinite;background-color:var(--amp-colors-primary);box-shadow:30px 0 0 var(--amp-colors-neutral-700);margin-bottom:10px}._loader_6ubm6_1:after{animation:_ball2_6ubm6_1 1s infinite;background-color:var(--amp-colors-neutral-700);box-shadow:30px 0 0 var(--amp-colors-primary)}@keyframes _rotate_6ubm6_1{0%{transform:rotate(0) scale(.8)}50%{transform:rotate(360deg) scale(1.2)}to{transform:rotate(720deg) scale(.8)}}@keyframes _ball1_6ubm6_1{0%{box-shadow:30px 0 0 var(--amp-colors-neutral-700)}50%{box-shadow:0 0 0 var(--amp-colors-neutral-700);margin-bottom:0;transform:translate(15px,15px)}to{box-shadow:30px 0 0 var(--amp-colors-neutral-700);margin-bottom:10px}}@keyframes _ball2_6ubm6_1{0%{box-shadow:30px 0 0 var(--amp-colors-primary)}50%{box-shadow:0 0 0 var(--amp-colors-primary);margin-top:-20px;transform:translate(15px,15px)}to{box-shadow:30px 0 0 var(--amp-colors-primary);margin-top:0}}._button_kwfiu_1{color:var(--amp-colors-button-text);background-color:var(--amp-colors-button-primary);border-radius:var(--amp-default-border-radius);border:1px solid;border-color:var(--amp-colors-border);height:2.5rem;font-size:var(--amp-button-font-size);font-weight:500;line-height:1.5rem;padding:0 1rem;transition:all .1s ease}._button_kwfiu_1:hover{opacity:.8}._button_kwfiu_1:focus{outline:none}._button_kwfiu_1:focus-visible{outline:none}._buttonError_kwfiu_28{border:1px solid var(--amp-colors-status-critical)}._button_kwfiu_1:focus:enabled{outline:none}._button_kwfiu_1:disabled{opacity:.5;cursor:not-allowed}._danger_kwfiu_42{color:var(--amp-colors-status-critical);background-color:var(--amp-colors-bg-secondary)}._ghost_kwfiu_47{border-color:var(--amp-colors-border);background-color:var(--amp-colors-bg-secondary);color:var(--amp-colors-text-regular)}._input_1ymb7_1{border-radius:var(--amp-default-border-radius);border:1px solid;border-color:var(--amp-colors-input-border-default);height:2.5rem;transition:all .2s ease-in;color:var(--amp-colors-input-content-default);background-color:var(--amp-colors-input-surface-default);font-size:1rem;font-weight:400;line-height:1.5rem;padding:0 1rem;width:100%;transition:all .1s ease}._input_1ymb7_1:hover{border-color:var(--amp-colors-input-border-hover);background-color:var(--amp-colors-input-surface-hover)}._input_1ymb7_1::placeholder{color:var(--amp-colors-input-content-placeholder-text)}._inputError_1ymb7_27{border:1px solid var(--amp-colors-status-critical)}._input_1ymb7_1:focus:enabled{border:1px solid var(--amp-colors-input-border-focus);outline:none;background-color:var(--amp-colors-input-surface-focus)}._input_1ymb7_1:disabled{background-color:var(--amp-colors-input-surface-disabled);border:1px solid var(--amp-colors-input-border-disabled);color:var(--amp-colors-input-content-disabled)}._error_1ymb7_43{color:var(--amp-colors-status-critical);font-size:.875rem;font-weight:400;line-height:1.25rem}._textarea_18zl4_1{border-radius:var(--amp-default-border-radius);border:1px solid;border-color:var(--amp-colors-input-border-default);background-color:var(--amp-colors-input-surface-default);color:var(--amp-colors-input-content-default);font-size:1rem;font-weight:400;line-height:1.5rem;padding:.5rem 1rem;transition:all .05s ease-in}._textareaError_18zl4_14{border-color:var(--amp-colors-status-critical)}._textarea_18zl4_1:focus:enabled{border:2px solid var(--amp-colors-input-border-focus);outline:none}._textarea_18zl4_1:disabled{color:var(--amp-colors-input-content-disabled);background-color:var(--amp-colors-input-surface-disabled);border:1px solid var(--amp-colors-input-border-disabled)}._error_18zl4_29{color:var(--amp-colors-status-critical-dark);font-size:.875rem;font-weight:400;line-height:1.25rem}._link_oo2kv_1{color:var(--amp-colors-link-text);text-decoration:none;font-weight:500}._link_oo2kv_1:hover,._link_oo2kv_1:focus{text-decoration:underline;outline:none}._link_oo2kv_1:focus{outline:2px solid var(--amp-colors-link-focus);outline-offset:2px}._link_oo2kv_1:active{color:var(--amp-colors-link-active)}._container_r1dnc_1{color:var(--amp-colors-text-muted);font-size:.8125rem;margin-top:.375rem;margin-bottom:.75rem;line-height:1.5}._code_r1dnc_9{background-color:var(--amp-colors-background-muted, #f5f5f5);padding:.125rem .25rem;border-radius:.25rem;font-family:monospace;font-size:.875em}._metadataInputWrapper_1266b_1:not(:last-child){margin-bottom:1.5rem}._divider_1kmoj_1{border:none;height:1px;background:var(--amp-colors-border)}._comboboxContainer_1lcc8_1{width:100%;display:flex;flex-direction:column;gap:.5rem}._label_1lcc8_8{font-size:1rem}._inputContainer_1lcc8_12{display:flex;border:1px solid;border-color:var(--amp-colors-input-border-default);border-radius:var(--amp-default-border-radius)}._input_1lcc8_12{padding:.5rem;width:100%;font-size:1rem;background-color:var(--amp-colors-input-surface-default);color:var(--amp-colors-input-content-default);border-top-left-radius:var(--amp-default-border-radius);border-bottom-left-radius:var(--amp-default-border-radius)}._input_1lcc8_12:focus-visible{outline:1px solid var(--amp-colors-input-border-focus)}._toggleButton_1lcc8_33{padding:.5rem;cursor:pointer;background-color:var(--amp-colors-bg-highlight)}._menu_1lcc8_39{position:absolute;background-color:var(--amp-colors-input-surface-default);width:100%;max-height:120px;overflow-y:auto;margin-top:.25rem;border:1px solid;border-color:var(--amp-colors-input-border-default);z-index:10;border-radius:var(--amp-default-border-radius);padding:0;font-size:.8rem}._menuBottom_1lcc8_55{top:100%;margin-top:4px}._menuTop_1lcc8_61{bottom:100%;margin-bottom:4px}._menuItem_1lcc8_66{padding:.5rem;display:flex;flex-direction:column}._menuItem_1lcc8_66:hover,._highlighted_1lcc8_73{background-color:var(--amp-colors-input-surface-hover)}._selected_1lcc8_77{font-weight:700}._hidden_1lcc8_81{display:none}._formControl_9qd8d_1{margin-bottom:.25rem}._formLabel_9qd8d_5{font-weight:700;margin-bottom:.5rem;display:block}._formLabelRequired_9qd8d_11:after{content:" *";color:var(--amp-colors-status-critical-dark)}._formInput_9qd8d_16{position:relative}._formInputInvalid_9qd8d_20 input{border-color:var(--amp-colors-status-critical)}._formError_9qd8d_24{color:var(--amp-colors-status-critical-dark);font-size:.875rem;margin-top:.5rem}._disabled_9qd8d_30{opacity:.6;pointer-events:none}._checkboxGroupContainer_hqfeu_1{margin-bottom:10px;border:1px solid var(--amp-colors-border);border-radius:var(--amp-default-border-radius)}._stack_hqfeu_6{height:fit-content}._selectAllContainer_hqfeu_10{background-color:var(--amp-colors-bg-highlight);padding:8px 10px;display:flex;align-items:center}._fieldContainer_hqfeu_17{padding:8px 10px;border-bottom:1px solid var(--amp-colors-border);display:flex;align-items:center}._checkbox_hqfeu_1{margin-right:10px;background-color:var(--amp-colors-bg-primary);width:20px;height:20px;border-radius:4px;display:flex;justify-content:center;border:1px solid var(--amp-colors-input-border-default);cursor:pointer;flex:none}._checkbox_hqfeu_1:hover{background-color:var(--amp-colors-input-surface-hover);border-color:var(--amp-colors-input-border-hover)}._checkbox_hqfeu_1:focus{box-shadow:0 0 0 2px var(--amp-colors-focus-border);border-color:var(--amp-colors-input-border-focus)}._paginationContainer_1p51x_1{display:flex;justify-content:space-between;padding:.25rem .5rem}._pageInfo_1p51x_7{display:flex;align-items:center;color:var(--amp-colors-text-muted)}._searchContainer_1p51x_13{padding:.5rem}._searchInput_1p51x_17{width:100%}._noResults_1p51x_21{text-align:center;padding:1rem;color:var(--amp-colors-text-muted);font-style:italic}._errorAlert_1tcao_1{display:flex;flex-direction:column;gap:.5rem;padding:.875rem 1rem;border-radius:var(--amp-default-border-radius);background-color:var(--amp-colors-status-critical-muted);border-left:3px solid var(--amp-colors-status-critical)}._errorHeader_1tcao_11{display:flex;align-items:center;gap:.5rem}._errorIcon_1tcao_17{color:var(--amp-colors-status-critical);width:16px;height:16px;flex-shrink:0}._errorTitle_1tcao_24{font-weight:600;font-size:.875rem;color:var(--amp-colors-status-critical-dark)}._errorMessage_1tcao_30{font-size:.8125rem;color:var(--amp-colors-status-critical-dark);line-height:1.5;padding-left:1.5rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;word-break:break-word}._authenticationRow_1g2ms_1{display:flex;justify-content:space-between;padding:.5rem 0;font-size:1rem}._field_1g2ms_8{color:var(--amp-colors-text-muted)}._value_1g2ms_12{color:var(--amp-colors-text-regular);text-align:right}._tabsRoot_ktpr0_1{display:flex;width:100%}._tabsList_ktpr0_6{display:flex;flex-direction:column;width:100%}._tabTrigger_ktpr0_12{all:unset;padding:10px;cursor:pointer;background-color:var(--amp-colors-tabs-background);border-radius:var(--amp-default-border-radius);margin-bottom:5px}._tabTrigger_ktpr0_12:hover,._tabTrigger_ktpr0_12[data-state=active]{background-color:var(--amp-colors-bg-highlight)}._danger_ktpr0_29{color:var(--amp-colors-status-critical)}@layer reset{._resetContainer_1d2b0_4 *,._resetContainer_1d2b0_4 *:before,._resetContainer_1d2b0_4 *:after{box-sizing:border-box}._resetContainer_1d2b0_4 *{font-family:var(--amp-font-family)}._resetContainer_1d2b0_4 :where(h1,h2,h3,h4,h5,h6,p){margin:0;padding:0}._resetContainer_1d2b0_4 :where(button){cursor:pointer}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amp-labs/react",
3
- "version": "2.11.2",
3
+ "version": "2.12.1",
4
4
  "description": "Ampersand React library.",
5
5
  "author": {
6
6
  "name": "Ampersand Labs",