@xapp/chat-widget 1.37.1 → 1.37.4

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/dist/index.js CHANGED
@@ -22,8 +22,7 @@ var ActionButton = function (props) {
22
22
  return (React__default$1["default"].createElement("button", { type: props.type, className: "action-button ".concat(props.addClass), onClick: handleClick }, props.label));
23
23
  };
24
24
 
25
- var defaultServerUrl = process.env.SERVER_URL;
26
- process.env.ACCOUNT_KEY;
25
+ var defaultServerUrl = "";
27
26
  var ChatConfigContext = React$1.createContext(null);
28
27
  function useWidgetEnv() {
29
28
  var ctx = React$1.useContext(ChatConfigContext);
@@ -8734,7 +8733,7 @@ function memberLeave(state, detail) {
8734
8733
 
8735
8734
  function resetReducer(state) {
8736
8735
  if (state === void 0) { state = DEFAULT_STATE; }
8737
- return __assign(__assign({}, createDefaultState()), { connection: __assign(__assign({}, state.connection), { nonce: uuid_1() }), visitor: state.visitor, visitorId: state.visitorId });
8736
+ return __assign(__assign({}, createDefaultState()), { connection: __assign(__assign({}, state.connection), { greetingRequested: false, nonce: uuid_1() }), visitor: state.visitor, visitorId: state.visitorId });
8738
8737
  }
8739
8738
 
8740
8739
  // todo: create reducer (requires redux-thunk dependncy)