@wscsports/blaze-web-sdk 0.1.91 → 0.1.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -8,8 +8,9 @@ export declare function Theme(theme: ThemeType): IWidgetTheme;
8
8
  export declare function addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
9
9
  export declare const Delegations: typeof Delegation;
10
10
  export declare function LabelBuilder(): IWidgetLabelBuilder;
11
- export declare function pause(): void;
12
- export declare function resume(): void;
11
+ export declare function pauseCurrentPlayer(): void;
12
+ export declare function resumeCurrentPlayer(): void;
13
+ export declare function setGoogleCustomNativeAdsHandler(handler: CustomNativeAdHandler): void;
13
14
  declare const _default: {
14
15
  Initialize: typeof Initialize;
15
16
  WidgetGridView: typeof WidgetGridView;
@@ -20,8 +21,9 @@ declare const _default: {
20
21
  setGeoLocation: typeof setGeoLocation;
21
22
  LabelBuilder: typeof LabelBuilder;
22
23
  Delegations: typeof Delegation;
23
- pause: typeof pause;
24
- resume: typeof resume;
24
+ setGoogleCustomNativeAdsHandler: typeof setGoogleCustomNativeAdsHandler;
25
+ pauseCurrentPlayer: typeof pauseCurrentPlayer;
26
+ resumeCurrentPlayer: typeof resumeCurrentPlayer;
25
27
  };
26
28
  export default _default;
27
29
 
@@ -262,6 +264,7 @@ export declare class BlazeTypography extends BaseWidget {
262
264
  type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color';
263
265
  export declare class BlazeButton extends BaseWidget {
264
266
  buttonElement: HTMLButtonElement;
267
+ get refElement(): ShadowRoot | this;
265
268
  constructor();
266
269
  static observedAttributes: string[];
267
270
  connectedCallback(): void;
@@ -653,6 +656,14 @@ export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgi
653
656
  export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
654
657
  export declare const externalLinkIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CjxwYXRoIGQ9Im0xMiAwYzYuNiAwIDEyIDUuNCAxMiAxMnMtNS40IDEyLTEyIDEyLTEyLTUuNC0xMi0xMiA1LjQtMTIgMTItMTJ6IiBmaWxsLW9wYWNpdHk9Ii4xIi8+CjxwYXRoIGQ9Im0xMy44IDE0LjYgMC4yIDAuNS0wLjIgMC41LTEuNSAxLjRjLTAuNyAwLjctMS43IDEuMS0yLjcgMS4xYTQgNCAwIDAgMS0yLjctMS4xIDMuOSAzLjkgMCAwIDEtMS4xLTIuNyA0IDQgMCAwIDEgMS4xLTIuN2wxLjUtMS41IDAuNS0wLjEgMC41IDAuMiAwLjIgMC41LTAuMiAwLjUtMS41IDEuNWMtMC41IDAuNS0wLjcgMS4xLTAuNyAxLjdzMC4zIDEuMyAwLjcgMS43YzAuNSAwLjUgMS4xIDAuNyAxLjcgMC43czEuMy0wLjMgMS43LTAuN2wxLjUtMS41YzAuMy0wLjMgMC43LTAuMyAxIDB6bTMuMi03LjZhMy45IDMuOSAwIDAgMC0yLjctMS4xIDQgNCAwIDAgMC0yLjcgMS4xbC0xLjUgMS41LTAuMSAwLjQgMC4yIDAuNSAwLjUgMC4yIDAuNS0wLjIgMS41LTEuNWMwLjUtMC41IDEuMS0wLjcgMS43LTAuN3MxLjMgMC4zIDEuNyAwLjdjMC41IDAuNSAwLjcgMS4xIDAuNyAxLjdzLTAuMyAxLjMtMC43IDEuN2wtMS41IDEuNS0wLjIgMC41IDAuMiAwLjUgMC41IDAuMiAwLjUtMC4yIDEuNS0xLjVjMC43LTAuNyAxLjEtMS43IDEuMS0yLjctMC4xLTEtMC41LTEuOS0xLjItMi42em0tNy45IDcuMiAwLjIgMC41IDAuNSAwLjIgMC41LTAuMiA0LjUtNC41IDAuMi0wLjUtMC4yLTAuNWMtMC4zLTAuMi0wLjgtMC4yLTEgMC4xbC00LjUgNC41eiIvPgo8L3N2Zz4K";
655
658
 
659
+ type CustomNativeTargeting = Record<string, string | string[]>;
660
+ type CustomNativeArgs = {
661
+ path: string;
662
+ };
663
+ export interface CustomNativeAdHandler {
664
+ provideAdExtraParams?: (args: CustomNativeArgs) => CustomNativeTargeting;
665
+ }
666
+
656
667
  export type EnvironmentType = 'prod' | 'uat';
657
668
  export interface IBlazeSDKOptions {
658
669
  apiKey: string;
@@ -664,6 +675,7 @@ export interface IBlazeSDKOptions {
664
675
  externalUserId?: string;
665
676
  geoLocation?: string;
666
677
  staticContent?: boolean;
678
+ runInShadowDom?: boolean;
667
679
  }
668
680
 
669
681
  export interface IDatabase {
@@ -1032,6 +1044,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1032
1044
  private _externalUserId;
1033
1045
  private _geoLocation;
1034
1046
  private _staticContent;
1047
+ private _runInShadowDom;
1048
+ private _googleCustomNativeAdHandler?;
1035
1049
  protected constructor();
1036
1050
  init(options: IBlazeSDKOptions): Promise<void>;
1037
1051
  private _urls;
@@ -1053,6 +1067,9 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1053
1067
  get apiKey(): string;
1054
1068
  get previewUrl(): string;
1055
1069
  get previewMomentsUrl(): string;
1070
+ get runInShadowDom(): boolean;
1071
+ get googleCustomNativeAdHandler(): CustomNativeAdHandler | undefined;
1072
+ set googleCustomNativeAdHandler(value: CustomNativeAdHandler | undefined);
1056
1073
  }
1057
1074
  export declare const ConfigService: ConfigServiceClass;
1058
1075
 
@@ -1977,6 +1994,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
1977
1994
  private badge;
1978
1995
  private isLive;
1979
1996
  private analyticsCalls;
1997
+ get parentRef(): BlazeWidgetLayout;
1980
1998
  private statusIndicatorSettings;
1981
1999
  paddingItem: PositionOffset;
1982
2000
  content: IStory;
@@ -2048,6 +2066,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
2048
2066
  analyticsStack: Record<WidgetAction, boolean>;
2049
2067
  onResizeEvent: (this: Window, ev: UIEvent) => void;
2050
2068
  shouldReloadWhenPlayerIsClosed: boolean;
2069
+ get refElement(): ShadowRoot | this;
2051
2070
  constructor();
2052
2071
  onResizeEventDelay(): void;
2053
2072
  onResize(): void;
@@ -2427,6 +2446,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
2427
2446
  onStoryChange?: (mode: StoryDirectionType) => void;
2428
2447
  hammer: HammerManager | null;
2429
2448
  isMultiTouch: boolean;
2449
+ get refElement(): this;
2430
2450
  constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
2431
2451
  handleOnStoryChange(mode: StoryDirectionType): void;
2432
2452
  setTheme(theme: IWidgetTheme): void;