@inappstory/js-sdk 3.13.1 → 3.14.1

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.
@@ -664,245 +664,6 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
664
664
  }
665
665
 
666
666
 
667
- /***/ },
668
-
669
- /***/ 650
670
- (module, __unused_webpack_exports, __webpack_require__) {
671
-
672
- var root = __webpack_require__(942);
673
-
674
- /** Built-in value references. */
675
- var Symbol = root.Symbol;
676
-
677
- module.exports = Symbol;
678
-
679
-
680
- /***/ },
681
-
682
- /***/ 379
683
- (module, __unused_webpack_exports, __webpack_require__) {
684
-
685
- var Symbol = __webpack_require__(650),
686
- getRawTag = __webpack_require__(870),
687
- objectToString = __webpack_require__(5);
688
-
689
- /** `Object#toString` result references. */
690
- var nullTag = '[object Null]',
691
- undefinedTag = '[object Undefined]';
692
-
693
- /** Built-in value references. */
694
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
695
-
696
- /**
697
- * The base implementation of `getTag` without fallbacks for buggy environments.
698
- *
699
- * @private
700
- * @param {*} value The value to query.
701
- * @returns {string} Returns the `toStringTag`.
702
- */
703
- function baseGetTag(value) {
704
- if (value == null) {
705
- return value === undefined ? undefinedTag : nullTag;
706
- }
707
- return (symToStringTag && symToStringTag in Object(value))
708
- ? getRawTag(value)
709
- : objectToString(value);
710
- }
711
-
712
- module.exports = baseGetTag;
713
-
714
-
715
- /***/ },
716
-
717
- /***/ 967
718
- (module, __unused_webpack_exports, __webpack_require__) {
719
-
720
- /** Detect free variable `global` from Node.js. */
721
- var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
722
-
723
- module.exports = freeGlobal;
724
-
725
-
726
- /***/ },
727
-
728
- /***/ 870
729
- (module, __unused_webpack_exports, __webpack_require__) {
730
-
731
- var Symbol = __webpack_require__(650);
732
-
733
- /** Used for built-in method references. */
734
- var objectProto = Object.prototype;
735
-
736
- /** Used to check objects for own properties. */
737
- var hasOwnProperty = objectProto.hasOwnProperty;
738
-
739
- /**
740
- * Used to resolve the
741
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
742
- * of values.
743
- */
744
- var nativeObjectToString = objectProto.toString;
745
-
746
- /** Built-in value references. */
747
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
748
-
749
- /**
750
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
751
- *
752
- * @private
753
- * @param {*} value The value to query.
754
- * @returns {string} Returns the raw `toStringTag`.
755
- */
756
- function getRawTag(value) {
757
- var isOwn = hasOwnProperty.call(value, symToStringTag),
758
- tag = value[symToStringTag];
759
-
760
- try {
761
- value[symToStringTag] = undefined;
762
- var unmasked = true;
763
- } catch (e) {}
764
-
765
- var result = nativeObjectToString.call(value);
766
- if (unmasked) {
767
- if (isOwn) {
768
- value[symToStringTag] = tag;
769
- } else {
770
- delete value[symToStringTag];
771
- }
772
- }
773
- return result;
774
- }
775
-
776
- module.exports = getRawTag;
777
-
778
-
779
- /***/ },
780
-
781
- /***/ 5
782
- (module) {
783
-
784
- /** Used for built-in method references. */
785
- var objectProto = Object.prototype;
786
-
787
- /**
788
- * Used to resolve the
789
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
790
- * of values.
791
- */
792
- var nativeObjectToString = objectProto.toString;
793
-
794
- /**
795
- * Converts `value` to a string using `Object.prototype.toString`.
796
- *
797
- * @private
798
- * @param {*} value The value to convert.
799
- * @returns {string} Returns the converted string.
800
- */
801
- function objectToString(value) {
802
- return nativeObjectToString.call(value);
803
- }
804
-
805
- module.exports = objectToString;
806
-
807
-
808
- /***/ },
809
-
810
- /***/ 942
811
- (module, __unused_webpack_exports, __webpack_require__) {
812
-
813
- var freeGlobal = __webpack_require__(967);
814
-
815
- /** Detect free variable `self`. */
816
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
817
-
818
- /** Used as a reference to the global object. */
819
- var root = freeGlobal || freeSelf || Function('return this')();
820
-
821
- module.exports = root;
822
-
823
-
824
- /***/ },
825
-
826
- /***/ 655
827
- (module, __unused_webpack_exports, __webpack_require__) {
828
-
829
- var baseGetTag = __webpack_require__(379),
830
- isObject = __webpack_require__(580);
831
-
832
- /** `Object#toString` result references. */
833
- var asyncTag = '[object AsyncFunction]',
834
- funcTag = '[object Function]',
835
- genTag = '[object GeneratorFunction]',
836
- proxyTag = '[object Proxy]';
837
-
838
- /**
839
- * Checks if `value` is classified as a `Function` object.
840
- *
841
- * @static
842
- * @memberOf _
843
- * @since 0.1.0
844
- * @category Lang
845
- * @param {*} value The value to check.
846
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
847
- * @example
848
- *
849
- * _.isFunction(_);
850
- * // => true
851
- *
852
- * _.isFunction(/abc/);
853
- * // => false
854
- */
855
- function isFunction(value) {
856
- if (!isObject(value)) {
857
- return false;
858
- }
859
- // The use of `Object#toString` avoids issues with the `typeof` operator
860
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
861
- var tag = baseGetTag(value);
862
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
863
- }
864
-
865
- module.exports = isFunction;
866
-
867
-
868
- /***/ },
869
-
870
- /***/ 580
871
- (module) {
872
-
873
- /**
874
- * Checks if `value` is the
875
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
876
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
877
- *
878
- * @static
879
- * @memberOf _
880
- * @since 0.1.0
881
- * @category Lang
882
- * @param {*} value The value to check.
883
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
884
- * @example
885
- *
886
- * _.isObject({});
887
- * // => true
888
- *
889
- * _.isObject([1, 2, 3]);
890
- * // => true
891
- *
892
- * _.isObject(_.noop);
893
- * // => true
894
- *
895
- * _.isObject(null);
896
- * // => false
897
- */
898
- function isObject(value) {
899
- var type = typeof value;
900
- return value != null && (type == 'object' || type == 'function');
901
- }
902
-
903
- module.exports = isObject;
904
-
905
-
906
667
  /***/ },
907
668
 
908
669
  /***/ 591
@@ -1791,9 +1552,205 @@ class AppRuntime {
1791
1552
  }
1792
1553
  }
1793
1554
 
1794
- // EXTERNAL MODULE: ../../node_modules/lodash/isFunction.js
1795
- var isFunction = __webpack_require__(655);
1796
- var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction);
1555
+ ;// ../../node_modules/lodash-es/_freeGlobal.js
1556
+ /** Detect free variable `global` from Node.js. */
1557
+ var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
1558
+
1559
+ /* harmony default export */ const _freeGlobal = (freeGlobal);
1560
+
1561
+ ;// ../../node_modules/lodash-es/_root.js
1562
+
1563
+
1564
+ /** Detect free variable `self`. */
1565
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1566
+
1567
+ /** Used as a reference to the global object. */
1568
+ var root = _freeGlobal || freeSelf || Function('return this')();
1569
+
1570
+ /* harmony default export */ const _root = (root);
1571
+
1572
+ ;// ../../node_modules/lodash-es/_Symbol.js
1573
+
1574
+
1575
+ /** Built-in value references. */
1576
+ var _Symbol_Symbol = _root.Symbol;
1577
+
1578
+ /* harmony default export */ const _Symbol = (_Symbol_Symbol);
1579
+
1580
+ ;// ../../node_modules/lodash-es/_getRawTag.js
1581
+
1582
+
1583
+ /** Used for built-in method references. */
1584
+ var objectProto = Object.prototype;
1585
+
1586
+ /** Used to check objects for own properties. */
1587
+ var _getRawTag_hasOwnProperty = objectProto.hasOwnProperty;
1588
+
1589
+ /**
1590
+ * Used to resolve the
1591
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1592
+ * of values.
1593
+ */
1594
+ var nativeObjectToString = objectProto.toString;
1595
+
1596
+ /** Built-in value references. */
1597
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1598
+
1599
+ /**
1600
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1601
+ *
1602
+ * @private
1603
+ * @param {*} value The value to query.
1604
+ * @returns {string} Returns the raw `toStringTag`.
1605
+ */
1606
+ function getRawTag(value) {
1607
+ var isOwn = _getRawTag_hasOwnProperty.call(value, symToStringTag),
1608
+ tag = value[symToStringTag];
1609
+
1610
+ try {
1611
+ value[symToStringTag] = undefined;
1612
+ var unmasked = true;
1613
+ } catch (e) {}
1614
+
1615
+ var result = nativeObjectToString.call(value);
1616
+ if (unmasked) {
1617
+ if (isOwn) {
1618
+ value[symToStringTag] = tag;
1619
+ } else {
1620
+ delete value[symToStringTag];
1621
+ }
1622
+ }
1623
+ return result;
1624
+ }
1625
+
1626
+ /* harmony default export */ const _getRawTag = (getRawTag);
1627
+
1628
+ ;// ../../node_modules/lodash-es/_objectToString.js
1629
+ /** Used for built-in method references. */
1630
+ var _objectToString_objectProto = Object.prototype;
1631
+
1632
+ /**
1633
+ * Used to resolve the
1634
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1635
+ * of values.
1636
+ */
1637
+ var _objectToString_nativeObjectToString = _objectToString_objectProto.toString;
1638
+
1639
+ /**
1640
+ * Converts `value` to a string using `Object.prototype.toString`.
1641
+ *
1642
+ * @private
1643
+ * @param {*} value The value to convert.
1644
+ * @returns {string} Returns the converted string.
1645
+ */
1646
+ function objectToString(value) {
1647
+ return _objectToString_nativeObjectToString.call(value);
1648
+ }
1649
+
1650
+ /* harmony default export */ const _objectToString = (objectToString);
1651
+
1652
+ ;// ../../node_modules/lodash-es/_baseGetTag.js
1653
+
1654
+
1655
+
1656
+
1657
+ /** `Object#toString` result references. */
1658
+ var nullTag = '[object Null]',
1659
+ undefinedTag = '[object Undefined]';
1660
+
1661
+ /** Built-in value references. */
1662
+ var _baseGetTag_symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1663
+
1664
+ /**
1665
+ * The base implementation of `getTag` without fallbacks for buggy environments.
1666
+ *
1667
+ * @private
1668
+ * @param {*} value The value to query.
1669
+ * @returns {string} Returns the `toStringTag`.
1670
+ */
1671
+ function baseGetTag(value) {
1672
+ if (value == null) {
1673
+ return value === undefined ? undefinedTag : nullTag;
1674
+ }
1675
+ return (_baseGetTag_symToStringTag && _baseGetTag_symToStringTag in Object(value))
1676
+ ? _getRawTag(value)
1677
+ : _objectToString(value);
1678
+ }
1679
+
1680
+ /* harmony default export */ const _baseGetTag = (baseGetTag);
1681
+
1682
+ ;// ../../node_modules/lodash-es/isObject.js
1683
+ /**
1684
+ * Checks if `value` is the
1685
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1686
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1687
+ *
1688
+ * @static
1689
+ * @memberOf _
1690
+ * @since 0.1.0
1691
+ * @category Lang
1692
+ * @param {*} value The value to check.
1693
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1694
+ * @example
1695
+ *
1696
+ * _.isObject({});
1697
+ * // => true
1698
+ *
1699
+ * _.isObject([1, 2, 3]);
1700
+ * // => true
1701
+ *
1702
+ * _.isObject(_.noop);
1703
+ * // => true
1704
+ *
1705
+ * _.isObject(null);
1706
+ * // => false
1707
+ */
1708
+ function isObject(value) {
1709
+ var type = typeof value;
1710
+ return value != null && (type == 'object' || type == 'function');
1711
+ }
1712
+
1713
+ /* harmony default export */ const lodash_es_isObject = (isObject);
1714
+
1715
+ ;// ../../node_modules/lodash-es/isFunction.js
1716
+
1717
+
1718
+
1719
+ /** `Object#toString` result references. */
1720
+ var asyncTag = '[object AsyncFunction]',
1721
+ funcTag = '[object Function]',
1722
+ genTag = '[object GeneratorFunction]',
1723
+ proxyTag = '[object Proxy]';
1724
+
1725
+ /**
1726
+ * Checks if `value` is classified as a `Function` object.
1727
+ *
1728
+ * @static
1729
+ * @memberOf _
1730
+ * @since 0.1.0
1731
+ * @category Lang
1732
+ * @param {*} value The value to check.
1733
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1734
+ * @example
1735
+ *
1736
+ * _.isFunction(_);
1737
+ * // => true
1738
+ *
1739
+ * _.isFunction(/abc/);
1740
+ * // => false
1741
+ */
1742
+ function isFunction(value) {
1743
+ if (!lodash_es_isObject(value)) {
1744
+ return false;
1745
+ }
1746
+ // The use of `Object#toString` avoids issues with the `typeof` operator
1747
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
1748
+ var tag = _baseGetTag(value);
1749
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1750
+ }
1751
+
1752
+ /* harmony default export */ const lodash_es_isFunction = (isFunction);
1753
+
1797
1754
  ;// ./src/sharePage/sharePageAdapter.ts
1798
1755
 
1799
1756
 
@@ -1848,22 +1805,22 @@ class SharePageAdapter extends events.EventEmitter {
1848
1805
  setTimeout(() => {
1849
1806
  var _a;
1850
1807
  this.emit(SharePageEvents.START_LOADING);
1851
- if (isFunction_default()((_a = this.options) === null || _a === void 0 ? void 0 : _a.handleStartLoad))
1808
+ if (lodash_es_isFunction((_a = this.options) === null || _a === void 0 ? void 0 : _a.handleStartLoad))
1852
1809
  this.options.handleStartLoad();
1853
1810
  });
1854
1811
  }
1855
1812
  handleEndLoad(result) {
1856
1813
  var _a;
1857
1814
  this.emit(SharePageEvents.END_LOADING, { result });
1858
- if (isFunction_default()((_a = this.options) === null || _a === void 0 ? void 0 : _a.handleStopLoad))
1815
+ if (lodash_es_isFunction((_a = this.options) === null || _a === void 0 ? void 0 : _a.handleStopLoad))
1859
1816
  this.options.handleStopLoad(result);
1860
1817
  }
1861
1818
  handleCloseStoryReader() {
1862
1819
  var _a, _b, _c;
1863
- if (isFunction_default()((_a = this.options) === null || _a === void 0 ? void 0 : _a.handleStoryReaderClose) ||
1820
+ if (lodash_es_isFunction((_a = this.options) === null || _a === void 0 ? void 0 : _a.handleStoryReaderClose) ||
1864
1821
  this.listenerCount(SharePageEvents.CLOSE_STORY_READER) > 0) {
1865
1822
  try {
1866
- if (isFunction_default()((_b = this.options) === null || _b === void 0 ? void 0 : _b.handleStoryReaderClose)) {
1823
+ if (lodash_es_isFunction((_b = this.options) === null || _b === void 0 ? void 0 : _b.handleStoryReaderClose)) {
1867
1824
  (_c = this.options) === null || _c === void 0 ? void 0 : _c.handleStoryReaderClose();
1868
1825
  }
1869
1826
  this.emit(SharePageEvents.CLOSE_STORY_READER);
@@ -2088,11 +2045,11 @@ class StoryManagerAdapter {
2088
2045
  return StoryManagerAdapter.instance;
2089
2046
  }
2090
2047
  get sdkVersionName() {
2091
- const sdkVersionName = "3.13.1";
2048
+ const sdkVersionName = "3.14.1";
2092
2049
  return sdkVersionName || "0.0.0";
2093
2050
  }
2094
2051
  get sdkVersionCode() {
2095
- const sdkVersionCode = 31301;
2052
+ const sdkVersionCode = 31401;
2096
2053
  return sdkVersionCode ? parseInt(sdkVersionCode) : 0;
2097
2054
  }
2098
2055
  get deviceId() {