@ada-support/embed2 1.1.1 → 1.1.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.
@@ -1,5 +1,6 @@
1
- import { ComponentType, h } from "preact";
2
- import { ActionCreators } from "common/constants/actions";
3
- import { Dispatch, MapDispatchToProps, MapStateToProps } from "common/types/store";
1
+ import type { ComponentType } from "preact";
2
+ import { h } from "preact";
3
+ import type { ActionCreators } from "common/constants/actions";
4
+ import type { Dispatch, MapDispatchToProps, MapStateToProps } from "common/types/store";
4
5
  export declare function connect<MSP extends MapStateToProps, MDP extends MapDispatchToProps>(mapStateToProps?: MSP, mapDispatchToProps?: MDP): <O>(WrappedComponent: ComponentType<O & ReturnType<MSP> & ReturnType<MDP>>) => (ownProps: O) => h.JSX.Element;
5
6
  export declare function bindActionCreators(action: Partial<ActionCreators>, dispatch: Dispatch): (payload?: object) => Promise<import("../../common/types/store-state").StoreState>;
@@ -1,8 +1,8 @@
1
- import { ActionCreators } from "common/constants/actions";
2
- import { MessagePayload } from "common/types/events";
3
- import { StoreAction } from "common/types/index";
4
- import { DirectDispatch } from "common/types/store";
5
- import { StoreState } from "common/types/store-state";
1
+ import type { ActionCreators } from "common/constants/actions";
2
+ import type { MessagePayload } from "common/types/events";
3
+ import type { StoreAction } from "common/types/index";
4
+ import type { DirectDispatch } from "common/types/store";
5
+ import type { StoreState } from "common/types/store-state";
6
6
  declare const actions: {
7
7
  [key in ActionCreators]: ({ currentState, payload, dispatch }: {
8
8
  payload?: MessagePayload;
@@ -1,2 +1,2 @@
1
- import { StartOptions } from "common/types/store-state";
1
+ import type { StartOptions } from "common/types/store-state";
2
2
  export declare function getAlignment(adaSettings: StartOptions): "right" | "left";
@@ -1,6 +1,7 @@
1
- import { Component, ComponentType, h } from "preact";
2
- import { MapDispatchToProps, MapStateToProps, StoreProxyInterface } from "common/types/store";
3
- import { StoreState } from "common/types/store-state";
1
+ import type { ComponentType } from "preact";
2
+ import { Component, h } from "preact";
3
+ import type { MapDispatchToProps, MapStateToProps, StoreProxyInterface } from "common/types/store";
4
+ import type { StoreState } from "common/types/store-state";
4
5
  declare type Props<O, MSP extends MapStateToProps, MDP extends MapDispatchToProps> = {
5
6
  store: StoreProxyInterface;
6
7
  WrappedComponent: ComponentType<O & ReturnType<MSP> & ReturnType<MDP>>;
@@ -1,4 +1,4 @@
1
- import { FetchEventStatusType } from "common/constants/events";
1
+ import type { FetchEventStatusType } from "common/constants/events";
2
2
  import type { EmbedEvent, EmbedRequestEvent, PayloadByEvent } from "common/lib/channel";
3
3
  export interface MessagePayload {
4
4
  [key: string]: any;
@@ -1,7 +1,7 @@
1
- import { EventSubscriptionCallback } from "client/helpers/event-subscriptions";
2
- import { ActionTypes } from "common/constants/actions";
3
- import { MetaFieldPayload } from "common/types/store";
4
- import { StartOptions, StoreState } from "./store-state";
1
+ import type { EventSubscriptionCallback } from "client/helpers/event-subscriptions";
2
+ import type { ActionTypes } from "common/constants/actions";
3
+ import type { MetaFieldPayload } from "common/types/store";
4
+ import type { StartOptions, StoreState } from "./store-state";
5
5
  export interface StoreAction {
6
6
  [key: string]: string | object | number;
7
7
  type: ActionTypes;
@@ -1,4 +1,4 @@
1
- import { StoreState } from "./store-state";
1
+ import type { StoreState } from "./store-state";
2
2
  export declare type Get = <K extends keyof StoreState>(key: K) => Promise<StoreState[K]>;
3
3
  export declare type GetState = () => Promise<StoreState>;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { CHATTER_CREATED_STORAGE_KEY, CHATTER_TOKEN_STORAGE_KEY, IN_LIVE_CHAT_STORAGE_KEY, ZD_MESSAGING_CHATTER_CREATED_STORAGE_KEY, ZD_MESSAGING_EXTERNAL_USER_ID_STORAGE_KEY, ZD_PREVIOUS_TAGS_STORAGE_KEY, ZD_SESSION_STORAGE_KEY } from "common/constants/storage-keys";
1
+ import type { CHATTER_CREATED_STORAGE_KEY, CHATTER_TOKEN_STORAGE_KEY, IN_LIVE_CHAT_STORAGE_KEY, ZD_MESSAGING_CHATTER_CREATED_STORAGE_KEY, ZD_MESSAGING_EXTERNAL_USER_ID_STORAGE_KEY, ZD_PREVIOUS_TAGS_STORAGE_KEY, ZD_SESSION_STORAGE_KEY } from "common/constants/storage-keys";
2
2
  export declare enum StorageTypes {
3
3
  Local = "local",
4
4
  Session = "session"
@@ -8788,7 +8788,7 @@ var client = new error_tracker_BrowserClient({
8788
8788
  return event;
8789
8789
  },
8790
8790
  environment: "production",
8791
- release: "1.1.1-cce9ad0",
8791
+ release: "1.1.2-c955770",
8792
8792
  sampleRate: 0.25,
8793
8793
  autoSessionTracking: false,
8794
8794
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -9490,7 +9490,7 @@ function getEmbedURL(_ref) {
9490
9490
  polyfillVersionString = "legacy";
9491
9491
  }
9492
9492
 
9493
- return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "cce9ad0", "/index.html");
9493
+ return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "c955770", "/index.html");
9494
9494
  }
9495
9495
  /**
9496
9496
  * Generate the Chat / API URL
@@ -9663,7 +9663,6 @@ var CHATTER_STORAGE_KEY = CHATTER_TOKEN_STORAGE_KEY;
9663
9663
 
9664
9664
 
9665
9665
 
9666
-
9667
9666
  var StorageTypes;
9668
9667
 
9669
9668
  (function (StorageTypes) {
@@ -14380,7 +14379,7 @@ window.__AdaEmbedConstructor = Embed;
14380
14379
  /* harmony export */ });
14381
14380
  var isModern = new RegExp("((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(15|(1[6-9]|[2-9]\\d|\\d{3,}))[_.]\\d+(?:[_.]\\d+)?)|((Chromium|Chrome)\\/(99|([1-9]\\d\\d|\\d{4,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(15|(1[6-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(98|(99|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(98|(99|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
14382
14381
  var isProduction = "production" === "production";
14383
- var embed2Version = "cce9ad0";
14382
+ var embed2Version = "c955770";
14384
14383
 
14385
14384
  /***/ }),
14386
14385
 
@@ -14726,9 +14725,9 @@ function _log() {
14726
14725
  service: "embed",
14727
14726
  env: "production",
14728
14727
  embedVersion: 2,
14729
- version: "1.1.1",
14728
+ version: "1.1.2",
14730
14729
  isNpm: true,
14731
- commitHash: "cce9ad0"
14730
+ commitHash: "c955770"
14732
14731
  }))
14733
14732
  });
14734
14733
 
@@ -25669,7 +25668,7 @@ function _loadClientChunk() {
25669
25668
  polyfillVersionString = "legacy";
25670
25669
  }
25671
25670
 
25672
- clientScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "cce9ad0", "/index.js");
25671
+ clientScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "c955770", "/index.js");
25673
25672
  } // `window.__AdaEmbedConstructor` gets created in the "client" bundle
25674
25673
 
25675
25674
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",