waygo-maps 1.1.32 → 1.1.34

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.
Files changed (2) hide show
  1. package/dist/bundle.js +1 -1
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -900,7 +900,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
900
900
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
901
901
 
902
902
  "use strict";
903
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _core_Component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core/Component */ \"./src/core/Component.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n\nvar SetupView = /*#__PURE__*/function (_Component) {\n function SetupView() {\n var _this;\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _classCallCheck(this, SetupView);\n _this = _callSuper(this, SetupView, [options]);\n _this._initialize();\n _this.node = null;\n return _this;\n }\n _inherits(SetupView, _Component);\n return _createClass(SetupView, [{\n key: \"_initialize\",\n value: function _initialize() {\n var _this2 = this;\n this.element = document.createElement('div');\n this.element.className = 'setup-view';\n\n // Title\n this.titleElement = document.createElement('h3');\n this.titleElement.className = 'setup-title';\n this.setTitle('Kiosk setup');\n\n // Instructions container\n var instructionsContainer = document.createElement('div');\n instructionsContainer.className = 'setup-instructions';\n var instructions = document.createElement('p');\n instructions.innerText = 'Drag the red point on the map to set your kiosk position.';\n instructionsContainer.appendChild(instructions);\n\n // Code snippet container\n this.codeContainer = document.createElement('div');\n this.codeContainer.className = 'setup-code-container';\n this.codeSnippet = document.createElement('pre');\n this.codeSnippet.className = 'setup-code-snippet';\n if (this.map) {\n this.codeSnippet.innerHTML = \"https://waygomaps.com/\".concat(this.map.mapData.map_id, \"?location=\").concat(this.node.node_id);\n }\n this.copyButton = document.createElement('button');\n this.copyButton.className = 'setup-copy-button';\n this.copyButton.innerText = 'Copy';\n this.copyButton.addEventListener('click', function () {\n navigator.clipboard.writeText(_this2.codeSnippet.innerText);\n _this2.copyButton.innerText = 'Copied!';\n setTimeout(function () {\n copyButton.innerText = 'Copy';\n }, 2000);\n });\n this.codeContainer.appendChild(this.codeSnippet);\n this.codeContainer.appendChild(this.copyButton);\n\n // Buttons container\n var buttonsContainer = document.createElement('div');\n buttonsContainer.className = 'setup-buttons-container';\n var exitButton = document.createElement('button');\n exitButton.className = 'setup-button exit';\n exitButton.innerText = 'Exit';\n exitButton.addEventListener('click', function () {\n _this2.fire('exit');\n });\n var configureButton = document.createElement('button');\n configureButton.className = 'setup-button configure';\n configureButton.innerText = 'Configure Map';\n configureButton.addEventListener('click', function () {\n _this2.fire('configure');\n });\n buttonsContainer.appendChild(exitButton);\n buttonsContainer.appendChild(configureButton);\n\n // Append all elements\n this.element.appendChild(this.titleElement);\n this.element.appendChild(instructionsContainer);\n this.element.appendChild(this.codeContainer);\n this.element.appendChild(buttonsContainer);\n }\n\n // setNode(node) {\n // this.node = node;\n // this.codeSnippet.innerHTML = `https://waygomaps.com/${this.map.mapData.map_id}?location=${this.node.node_id}`;\n // }\n }, {\n key: \"setTitle\",\n value: function setTitle(title) {\n this.titleElement.innerText = title;\n }\n }, {\n key: \"show\",\n value: function show() {\n this.element.classList.add('visible');\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.element.classList.remove('visible');\n }\n }, {\n key: \"getElement\",\n value: function getElement() {\n return this.element;\n }\n }]);\n}(_core_Component__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SetupView);\n\n//# sourceURL=webpack://waygomaps/./src/components/SetupView/SetupView.js?");
903
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _core_Component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core/Component */ \"./src/core/Component.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n\nvar SetupView = /*#__PURE__*/function (_Component) {\n function SetupView() {\n var _this;\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _classCallCheck(this, SetupView);\n _this = _callSuper(this, SetupView, [options]);\n _this._initialize();\n _this.node = null;\n return _this;\n }\n _inherits(SetupView, _Component);\n return _createClass(SetupView, [{\n key: \"_initialize\",\n value: function _initialize() {\n var _this2 = this;\n this.element = document.createElement('div');\n this.element.className = 'setup-view';\n\n // Title\n this.titleElement = document.createElement('h3');\n this.titleElement.className = 'setup-title';\n this.setTitle('Kiosk setup');\n\n // Instructions container\n var instructionsContainer = document.createElement('div');\n instructionsContainer.className = 'setup-instructions';\n var instructions = document.createElement('p');\n instructions.innerHTML = 'In kiosk mode, navigation paths are set to start from the kiosk position, by default.<br><br><b>Drag the red point on the map to set your kiosk position.</b><br><br>Once you are done, click \"Configure Map\" to load the configured map in kiosk mode, or \"Exit\" to exit kiosk mode. <br><br>The kiosk URL displayed below can be copied to load this configuration at a later time.';\n instructionsContainer.appendChild(instructions);\n\n // Code snippet container\n this.codeContainer = document.createElement('div');\n this.codeContainer.className = 'setup-code-container';\n this.codeSnippet = document.createElement('pre');\n this.codeSnippet.className = 'setup-code-snippet';\n if (this.map) {\n this.codeSnippet.innerHTML = \"https://waygomaps.com/\".concat(this.map.mapData.map_id, \"?location=\").concat(this.node.node_id);\n }\n this.copyButton = document.createElement('button');\n this.copyButton.className = 'setup-copy-button';\n this.copyButton.innerText = 'Copy';\n this.copyButton.addEventListener('click', function () {\n navigator.clipboard.writeText(_this2.codeSnippet.innerText);\n _this2.copyButton.innerText = 'Copied!';\n setTimeout(function () {\n copyButton.innerText = 'Copy';\n }, 2000);\n });\n this.codeContainer.appendChild(this.codeSnippet);\n this.codeContainer.appendChild(this.copyButton);\n\n // Buttons container\n var buttonsContainer = document.createElement('div');\n buttonsContainer.className = 'setup-buttons-container';\n var exitButton = document.createElement('button');\n exitButton.className = 'setup-button exit';\n exitButton.innerText = 'Exit';\n exitButton.addEventListener('click', function () {\n _this2.fire('exit');\n });\n var configureButton = document.createElement('button');\n configureButton.className = 'setup-button configure';\n configureButton.innerText = 'Configure Map';\n configureButton.addEventListener('click', function () {\n _this2.fire('configure');\n });\n buttonsContainer.appendChild(exitButton);\n buttonsContainer.appendChild(configureButton);\n\n // Append all elements\n this.element.appendChild(this.titleElement);\n this.element.appendChild(instructionsContainer);\n this.element.appendChild(this.codeContainer);\n this.element.appendChild(buttonsContainer);\n }\n\n // setNode(node) {\n // this.node = node;\n // this.codeSnippet.innerHTML = `https://waygomaps.com/${this.map.mapData.map_id}?location=${this.node.node_id}`;\n // }\n }, {\n key: \"setTitle\",\n value: function setTitle(title) {\n this.titleElement.innerText = title;\n }\n }, {\n key: \"show\",\n value: function show() {\n this.element.classList.add('visible');\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.element.classList.remove('visible');\n }\n }, {\n key: \"getElement\",\n value: function getElement() {\n return this.element;\n }\n }]);\n}(_core_Component__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SetupView);\n\n//# sourceURL=webpack://waygomaps/./src/components/SetupView/SetupView.js?");
904
904
 
905
905
  /***/ }),
906
906
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waygo-maps",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
4
4
  "main": "dist/bundle.js",
5
5
  "files": [
6
6
  "dist/bundle.js",