@heycater/qualification-funnel 1.8.1 → 1.8.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/dist/index.esm.js CHANGED
@@ -10085,7 +10085,7 @@ function trackAnswerSelected(context, answer) {
10085
10085
  if (context.city) {
10086
10086
  properties.city = context.city;
10087
10087
  }
10088
- captureEvent("qf_v6_answer_selected", properties);
10088
+ captureEvent("qf_v7_answer_selected", properties);
10089
10089
  }
10090
10090
  function trackFormSubmitted(context, metadata) {
10091
10091
  if (!context.session_id) {
@@ -10103,7 +10103,7 @@ function trackFormSubmitted(context, metadata) {
10103
10103
  if (context.city) {
10104
10104
  properties.city = context.city;
10105
10105
  }
10106
- captureEvent("qf_v6_form_submitted", properties);
10106
+ captureEvent("qf_v7_form_submitted", properties);
10107
10107
  }
10108
10108
  function trackCompleted(context) {
10109
10109
  if (!context.session_id) {
@@ -10120,7 +10120,7 @@ function trackCompleted(context) {
10120
10120
  if (context.city) {
10121
10121
  properties.city = context.city;
10122
10122
  }
10123
- captureEvent("qf_v6_completed", properties);
10123
+ captureEvent("qf_v7_completed", properties);
10124
10124
  }
10125
10125
  function trackAbandoned(context, lastStep) {
10126
10126
  if (!context.session_id) {
@@ -10139,7 +10139,7 @@ function trackAbandoned(context, lastStep) {
10139
10139
  if (context.city) {
10140
10140
  properties.city = context.city;
10141
10141
  }
10142
- captureEvent("qf_v6_abandoned", properties);
10142
+ captureEvent("qf_v7_abandoned", properties);
10143
10143
  }
10144
10144
  function trackStarted(context, initialStepId) {
10145
10145
  const properties = {
@@ -10147,7 +10147,7 @@ function trackStarted(context, initialStepId) {
10147
10147
  session_id: context.session_id,
10148
10148
  initial_step: initialStepId
10149
10149
  };
10150
- captureEvent("qf_v6_started", properties);
10150
+ captureEvent("qf_v7_started", properties);
10151
10151
  }
10152
10152
  const TrackingContext = createContext(null);
10153
10153
  function TrackingProvider({
@@ -10168,7 +10168,7 @@ function TrackingProvider({
10168
10168
  const questions2 = (schemaStep == null ? void 0 : schemaStep.questions) || [];
10169
10169
  const questionIndex = questions2.findIndex((q2) => q2.id === questionId);
10170
10170
  const isLastQuestion = questionIndex === questions2.length - 1;
10171
- const sessionKey = `qf_v6_started_${funnelContextRef.current.session_id}`;
10171
+ const sessionKey = `qf_v7_started_${funnelContextRef.current.session_id}`;
10172
10172
  if (typeof sessionStorage !== "undefined") {
10173
10173
  const hasStarted = sessionStorage.getItem(sessionKey);
10174
10174
  if (!hasStarted) {
@@ -12303,7 +12303,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
12303
12303
  var ys = arrObjKeys(obj, inspect2);
12304
12304
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
12305
12305
  var protoTag = obj instanceof Object ? "" : "null prototype";
12306
- var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
12306
+ var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
12307
12307
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
12308
12308
  var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
12309
12309
  if (ys.length === 0) {
@@ -12328,25 +12328,25 @@ function canTrustToString(obj) {
12328
12328
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
12329
12329
  }
12330
12330
  function isArray$3(obj) {
12331
- return toStr(obj) === "[object Array]" && canTrustToString(obj);
12331
+ return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
12332
12332
  }
12333
12333
  function isDate(obj) {
12334
- return toStr(obj) === "[object Date]" && canTrustToString(obj);
12334
+ return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
12335
12335
  }
12336
12336
  function isRegExp$1(obj) {
12337
- return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
12337
+ return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
12338
12338
  }
12339
12339
  function isError(obj) {
12340
- return toStr(obj) === "[object Error]" && canTrustToString(obj);
12340
+ return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
12341
12341
  }
12342
12342
  function isString(obj) {
12343
- return toStr(obj) === "[object String]" && canTrustToString(obj);
12343
+ return toStr$1(obj) === "[object String]" && canTrustToString(obj);
12344
12344
  }
12345
12345
  function isNumber(obj) {
12346
- return toStr(obj) === "[object Number]" && canTrustToString(obj);
12346
+ return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
12347
12347
  }
12348
12348
  function isBoolean(obj) {
12349
- return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
12349
+ return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
12350
12350
  }
12351
12351
  function isSymbol(obj) {
12352
12352
  if (hasShammedSymbols) {
@@ -12382,7 +12382,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
12382
12382
  function has$4(obj, key) {
12383
12383
  return hasOwn$1.call(obj, key);
12384
12384
  }
12385
- function toStr(obj) {
12385
+ function toStr$1(obj) {
12386
12386
  return objectToString.call(obj);
12387
12387
  }
12388
12388
  function nameOf(f) {
@@ -12691,7 +12691,7 @@ var syntax = SyntaxError;
12691
12691
  var uri = URIError;
12692
12692
  var abs$1 = Math.abs;
12693
12693
  var floor$1 = Math.floor;
12694
- var max$1 = Math.max;
12694
+ var max$2 = Math.max;
12695
12695
  var min$1 = Math.min;
12696
12696
  var pow$1 = Math.pow;
12697
12697
  var round$2 = Math.round;
@@ -12820,99 +12820,78 @@ function requireObject_getPrototypeOf() {
12820
12820
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
12821
12821
  return Object_getPrototypeOf;
12822
12822
  }
12823
- var implementation;
12824
- var hasRequiredImplementation;
12825
- function requireImplementation() {
12826
- if (hasRequiredImplementation) return implementation;
12827
- hasRequiredImplementation = 1;
12828
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
12829
- var toStr2 = Object.prototype.toString;
12830
- var max2 = Math.max;
12831
- var funcType = "[object Function]";
12832
- var concatty = function concatty2(a3, b2) {
12833
- var arr = [];
12834
- for (var i2 = 0; i2 < a3.length; i2 += 1) {
12835
- arr[i2] = a3[i2];
12836
- }
12837
- for (var j = 0; j < b2.length; j += 1) {
12838
- arr[j + a3.length] = b2[j];
12839
- }
12840
- return arr;
12841
- };
12842
- var slicy = function slicy2(arrLike, offset2) {
12843
- var arr = [];
12844
- for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
12845
- arr[j] = arrLike[i2];
12823
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
12824
+ var toStr = Object.prototype.toString;
12825
+ var max$1 = Math.max;
12826
+ var funcType = "[object Function]";
12827
+ var concatty = function concatty2(a3, b2) {
12828
+ var arr = [];
12829
+ for (var i2 = 0; i2 < a3.length; i2 += 1) {
12830
+ arr[i2] = a3[i2];
12831
+ }
12832
+ for (var j = 0; j < b2.length; j += 1) {
12833
+ arr[j + a3.length] = b2[j];
12834
+ }
12835
+ return arr;
12836
+ };
12837
+ var slicy = function slicy2(arrLike, offset2) {
12838
+ var arr = [];
12839
+ for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
12840
+ arr[j] = arrLike[i2];
12841
+ }
12842
+ return arr;
12843
+ };
12844
+ var joiny = function(arr, joiner) {
12845
+ var str = "";
12846
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
12847
+ str += arr[i2];
12848
+ if (i2 + 1 < arr.length) {
12849
+ str += joiner;
12846
12850
  }
12847
- return arr;
12848
- };
12849
- var joiny = function(arr, joiner) {
12850
- var str = "";
12851
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
12852
- str += arr[i2];
12853
- if (i2 + 1 < arr.length) {
12854
- str += joiner;
12851
+ }
12852
+ return str;
12853
+ };
12854
+ var implementation$1 = function bind(that) {
12855
+ var target = this;
12856
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
12857
+ throw new TypeError(ERROR_MESSAGE + target);
12858
+ }
12859
+ var args = slicy(arguments, 1);
12860
+ var bound;
12861
+ var binder = function() {
12862
+ if (this instanceof bound) {
12863
+ var result = target.apply(
12864
+ this,
12865
+ concatty(args, arguments)
12866
+ );
12867
+ if (Object(result) === result) {
12868
+ return result;
12855
12869
  }
12870
+ return this;
12856
12871
  }
12857
- return str;
12872
+ return target.apply(
12873
+ that,
12874
+ concatty(args, arguments)
12875
+ );
12858
12876
  };
12859
- implementation = function bind2(that) {
12860
- var target = this;
12861
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
12862
- throw new TypeError(ERROR_MESSAGE + target);
12863
- }
12864
- var args = slicy(arguments, 1);
12865
- var bound;
12866
- var binder = function() {
12867
- if (this instanceof bound) {
12868
- var result = target.apply(
12869
- this,
12870
- concatty(args, arguments)
12871
- );
12872
- if (Object(result) === result) {
12873
- return result;
12874
- }
12875
- return this;
12876
- }
12877
- return target.apply(
12878
- that,
12879
- concatty(args, arguments)
12880
- );
12877
+ var boundLength = max$1(0, target.length - args.length);
12878
+ var boundArgs = [];
12879
+ for (var i2 = 0; i2 < boundLength; i2++) {
12880
+ boundArgs[i2] = "$" + i2;
12881
+ }
12882
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
12883
+ if (target.prototype) {
12884
+ var Empty = function Empty2() {
12881
12885
  };
12882
- var boundLength = max2(0, target.length - args.length);
12883
- var boundArgs = [];
12884
- for (var i2 = 0; i2 < boundLength; i2++) {
12885
- boundArgs[i2] = "$" + i2;
12886
- }
12887
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
12888
- if (target.prototype) {
12889
- var Empty = function Empty2() {
12890
- };
12891
- Empty.prototype = target.prototype;
12892
- bound.prototype = new Empty();
12893
- Empty.prototype = null;
12894
- }
12895
- return bound;
12896
- };
12897
- return implementation;
12898
- }
12899
- var functionBind;
12900
- var hasRequiredFunctionBind;
12901
- function requireFunctionBind() {
12902
- if (hasRequiredFunctionBind) return functionBind;
12903
- hasRequiredFunctionBind = 1;
12904
- var implementation2 = requireImplementation();
12905
- functionBind = Function.prototype.bind || implementation2;
12906
- return functionBind;
12907
- }
12908
- var functionCall;
12909
- var hasRequiredFunctionCall;
12910
- function requireFunctionCall() {
12911
- if (hasRequiredFunctionCall) return functionCall;
12912
- hasRequiredFunctionCall = 1;
12913
- functionCall = Function.prototype.call;
12914
- return functionCall;
12915
- }
12886
+ Empty.prototype = target.prototype;
12887
+ bound.prototype = new Empty();
12888
+ Empty.prototype = null;
12889
+ }
12890
+ return bound;
12891
+ };
12892
+ var implementation = implementation$1;
12893
+ var functionBind = Function.prototype.bind || implementation;
12894
+ var functionCall = Function.prototype.call;
12916
12895
  var functionApply;
12917
12896
  var hasRequiredFunctionApply;
12918
12897
  function requireFunctionApply() {
@@ -12922,14 +12901,14 @@ function requireFunctionApply() {
12922
12901
  return functionApply;
12923
12902
  }
12924
12903
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
12925
- var bind$2 = requireFunctionBind();
12904
+ var bind$2 = functionBind;
12926
12905
  var $apply$1 = requireFunctionApply();
12927
- var $call$2 = requireFunctionCall();
12906
+ var $call$2 = functionCall;
12928
12907
  var $reflectApply = reflectApply;
12929
12908
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
12930
- var bind$1 = requireFunctionBind();
12909
+ var bind$1 = functionBind;
12931
12910
  var $TypeError$4 = type;
12932
- var $call$1 = requireFunctionCall();
12911
+ var $call$1 = functionCall;
12933
12912
  var $actualApply = actualApply;
12934
12913
  var callBindApplyHelpers = function callBindBasic(args) {
12935
12914
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -12995,8 +12974,8 @@ function requireHasown() {
12995
12974
  hasRequiredHasown = 1;
12996
12975
  var call = Function.prototype.call;
12997
12976
  var $hasOwn = Object.prototype.hasOwnProperty;
12998
- var bind2 = requireFunctionBind();
12999
- hasown = bind2.call(call, $hasOwn);
12977
+ var bind3 = functionBind;
12978
+ hasown = bind3.call(call, $hasOwn);
13000
12979
  return hasown;
13001
12980
  }
13002
12981
  var undefined$1;
@@ -13010,7 +12989,7 @@ var $TypeError$3 = type;
13010
12989
  var $URIError = uri;
13011
12990
  var abs = abs$1;
13012
12991
  var floor = floor$1;
13013
- var max = max$1;
12992
+ var max = max$2;
13014
12993
  var min = min$1;
13015
12994
  var pow = pow$1;
13016
12995
  var round$1 = round$2;
@@ -13044,7 +13023,7 @@ var getProto = requireGetProto();
13044
13023
  var $ObjectGPO = requireObject_getPrototypeOf();
13045
13024
  var $ReflectGPO = requireReflect_getPrototypeOf();
13046
13025
  var $apply = requireFunctionApply();
13047
- var $call = requireFunctionCall();
13026
+ var $call = functionCall;
13048
13027
  var needsEval = {};
13049
13028
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
13050
13029
  var INTRINSICS = {
@@ -13215,13 +13194,13 @@ var LEGACY_ALIASES = {
13215
13194
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
13216
13195
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
13217
13196
  };
13218
- var bind = requireFunctionBind();
13197
+ var bind2 = functionBind;
13219
13198
  var hasOwn = requireHasown();
13220
- var $concat = bind.call($call, Array.prototype.concat);
13221
- var $spliceApply = bind.call($apply, Array.prototype.splice);
13222
- var $replace = bind.call($call, String.prototype.replace);
13223
- var $strSlice = bind.call($call, String.prototype.slice);
13224
- var $exec = bind.call($call, RegExp.prototype.exec);
13199
+ var $concat = bind2.call($call, Array.prototype.concat);
13200
+ var $spliceApply = bind2.call($apply, Array.prototype.splice);
13201
+ var $replace = bind2.call($call, String.prototype.replace);
13202
+ var $strSlice = bind2.call($call, String.prototype.slice);
13203
+ var $exec = bind2.call($call, RegExp.prototype.exec);
13225
13204
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
13226
13205
  var reEscapeChar = /\\(\\)?/g;
13227
13206
  var stringToPath = function stringToPath2(string2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycater/qualification-funnel",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "type": "module",
5
5
  "description": "Heycater embedded qualification funnel widget",
6
6
  "main": "dist/index.cjs.js",