@atomic.io/action-cards-web-sdk-cdn-icons 25.2.0 → 25.2.2

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/public/sdk.d.ts CHANGED
@@ -299,6 +299,7 @@ declare class AtomicSDK {
299
299
  * Method to simulate WebSocket errors on the platform:
300
300
  * https://github.com/atomic-app/action-cards/blob/development/services/client-api/readme.md#error-simulation
301
301
  * @param errorString string of format SOURCE_EVENT_CODE to be passed as error param on WebSocket URL
302
+ * @param recreateConnection whether to attempt to create a new WebSocket connection after simulating the error, defaults to true
302
303
  */
303
304
  private static simulateWebSocketError;
304
305
  /**
@@ -312,6 +313,7 @@ declare class AtomicSDK {
312
313
  */
313
314
  static setTestHostHeader(testHost?: string): void;
314
315
  static setClientAppVersion(version: string): void;
316
+ static setTokenUserIdAttribute(attributeName: string): void;
315
317
  /**
316
318
  * If there has been a token retry interval set, creates a timer to wait for before allowing a subsequent auth token request
317
319
  */
@@ -765,16 +767,16 @@ export declare interface HeadlessSDKConfiguration {
765
767
  onRuntimeVariablesRequested?: RuntimeVariableResolverCallback;
766
768
  runtimeVariableResolutionTimeout?: number;
767
769
  onCardCountChanged?: (cardCount: number, totalCards: number) => void;
768
- features?: Pick<FeatureFlags, "runtimeVariableAnalytics">;
770
+ features?: Pick<FeatureFlags, 'runtimeVariableAnalytics'>;
769
771
  }
770
772
 
771
773
  export declare interface HorizontalContainerConfig {
772
774
  enabled: boolean;
773
775
  cardWidth: number;
774
- emptyStyle?: ('standard' | 'shrink');
775
- headerAlignment?: ('center' | 'left');
776
- scrollMode?: ('snap' | 'free');
777
- lastCardAlignment?: ('left' | 'center');
776
+ emptyStyle?: 'standard' | 'shrink';
777
+ headerAlignment?: 'center' | 'left';
778
+ scrollMode?: 'snap' | 'free';
779
+ lastCardAlignment?: 'left' | 'center';
778
780
  }
779
781
 
780
782
  export declare type InterfaceStyle = 'light' | 'dark' | 'automatic';
@@ -786,6 +788,7 @@ export declare interface InternalConfiguration {
786
788
  autosizeFrame?: Boolean;
787
789
  testHost?: string;
788
790
  clientAppVersion?: string;
791
+ tokenUserIdAttribute?: string;
789
792
  webSocketDisabled?: boolean;
790
793
  pollingFallbackDisabled?: boolean;
791
794
  }