@metapages/metapage 1.8.8 → 1.8.9

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.
@@ -2,8 +2,8 @@ import { e as I } from "../node_modules/eventemitter3/index.js";
2
2
  import { setHashParamInWindow as p, getHashParamFromWindow as P, setHashParamValueBooleanInWindow as f, getHashParamValueBooleanFromWindow as c, setHashParamValueJsonInWindow as b, getHashParamValueJsonFromWindow as _, setHashParamValueBase64EncodedInWindow as w, getHashParamValueBase64DecodedFromWindow as R, setHashParamValueFloatInWindow as S, getHashParamValueFloatFromWindow as V, setHashParamValueIntInWindow as v, getHashParamValueIntFromWindow as y } from "../node_modules/@metapages/hash-query/dist/core/index.js";
3
3
  import { VERSION_METAFRAME as C } from "./Constants.js";
4
4
  import { deserializeInputs as d, serializeInputs as g } from "./data.js";
5
- import { isDebugFromUrlsParams as l, pageLoaded as O, stringToRgb as E, log as L, merge as m } from "./MetapageTools.js";
6
- import { isIframe as H } from "./Shared.js";
5
+ import { isDebugFromUrlsParams as l, pageLoaded as O, stringToRgb as E, log as H, merge as m } from "./MetapageTools.js";
6
+ import { isIframe as L } from "./Shared.js";
7
7
  import { JsonRpcMethodsFromChild as o, JsonRpcMethodsFromParent as u } from "./jsonrpc.js";
8
8
  var r;
9
9
  (function(h) {
@@ -15,7 +15,7 @@ var i;
15
15
  })(i || (i = {}));
16
16
  class a extends I.EventEmitter {
17
17
  constructor(t) {
18
- if (super(), this._inputPipeValues = {}, this._outputPipeValues = {}, this._state = r.WaitingForPageLoad, this._messageSendCount = 0, this.debug = l(), this.isInputOutputBlobSerialization = !0, this.id = window.name, this.debug = l(), this._isIframe = H(), this.addListener = this.addListener.bind(this), this.dispose = this.dispose.bind(this), this.error = this.error.bind(this), this.getInput = this.getInput.bind(this), this.getInputs = this.getInputs.bind(this), this.log = this.log.bind(this), this.logInternal = this.logInternal.bind(this), this.onInput = this.onInput.bind(this), this.onInputs = this.onInputs.bind(this), this.onMessage = this.onMessage.bind(this), this.sendRpc = this.sendRpc.bind(this), this.setInput = this.setInput.bind(this), this.setInputs = this.setInputs.bind(this), this.setInternalInputsAndNotify = this.setInternalInputsAndNotify.bind(this), this.setOutput = this.setOutput.bind(this), this.setOutputs = this.setOutputs.bind(this), this.warn = this.warn.bind(this), this._resolveSetupIframeServerResponse = this._resolveSetupIframeServerResponse.bind(this), this.addListenerReturnDisposer = this.addListenerReturnDisposer.bind(this), this.connected = this.connected.bind(this), this.isConnected = this.isConnected.bind(this), this.disableNotifyOnHashUrlChange = this.disableNotifyOnHashUrlChange.bind(this), this._onHashUrlChange = this._onHashUrlChange.bind(this), this.setParameter = this.setParameter.bind(this), this.setParameterBoolean = this.setParameterBoolean.bind(this), this.setParameterJson = this.setParameterJson.bind(this), this.setParameterBase64 = this.setParameterBase64.bind(this), this.setParameterFloat = this.setParameterFloat.bind(this), this.setParameterInt = this.setParameterInt.bind(this), this.getParameter = this.getParameter.bind(this), this.getParameterBoolean = this.getParameterBoolean.bind(this), this.getParameterJson = this.getParameterJson.bind(this), this.getParameterBase64 = this.getParameterBase64.bind(this), this.getParameterFloat = this.getParameterFloat.bind(this), this.getParameterInt = this.getParameterInt.bind(this), this.deleteParameter = this.deleteParameter.bind(this), !this._isIframe) {
18
+ if (super(), this._inputPipeValues = {}, this._outputPipeValues = {}, this._state = r.WaitingForPageLoad, this._messageSendCount = 0, this.debug = l(), this.isInputOutputBlobSerialization = !0, this.id = window.name, this.debug = l(), this._isIframe = L(), this.addListener = this.addListener.bind(this), this.dispose = this.dispose.bind(this), this.error = this.error.bind(this), this.getInput = this.getInput.bind(this), this.getInputs = this.getInputs.bind(this), this.log = this.log.bind(this), this.logInternal = this.logInternal.bind(this), this.onInput = this.onInput.bind(this), this.onInputs = this.onInputs.bind(this), this.onMessage = this.onMessage.bind(this), this.sendRpc = this.sendRpc.bind(this), this.setInput = this.setInput.bind(this), this.setInputs = this.setInputs.bind(this), this.setInternalInputsAndNotify = this.setInternalInputsAndNotify.bind(this), this.setOutput = this.setOutput.bind(this), this.setOutputs = this.setOutputs.bind(this), this.warn = this.warn.bind(this), this._resolveSetupIframeServerResponse = this._resolveSetupIframeServerResponse.bind(this), this.addListenerReturnDisposer = this.addListenerReturnDisposer.bind(this), this.connected = this.connected.bind(this), this.isConnected = this.isConnected.bind(this), this.disableNotifyOnHashUrlChange = this.disableNotifyOnHashUrlChange.bind(this), this._onHashUrlChange = this._onHashUrlChange.bind(this), this.setParameter = this.setParameter.bind(this), this.setParameterBoolean = this.setParameterBoolean.bind(this), this.setParameterJson = this.setParameterJson.bind(this), this.setParameterBase64 = this.setParameterBase64.bind(this), this.setParameterFloat = this.setParameterFloat.bind(this), this.setParameterInt = this.setParameterInt.bind(this), this.getParameter = this.getParameter.bind(this), this.getParameterBoolean = this.getParameterBoolean.bind(this), this.getParameterJson = this.getParameterJson.bind(this), this.getParameterBase64 = this.getParameterBase64.bind(this), this.getParameterFloat = this.getParameterFloat.bind(this), this.getParameterInt = this.getParameterInt.bind(this), this.deleteParameter = this.deleteParameter.bind(this), !this._isIframe) {
19
19
  this.log("Not an iframe, metaframe code disabled");
20
20
  return;
21
21
  }
@@ -64,7 +64,7 @@ class a extends I.EventEmitter {
64
64
  }
65
65
  logInternal(t, e, s) {
66
66
  let n;
67
- typeof t == "string" ? n = t : typeof t == "number" ? n = t + "" : n = JSON.stringify(t), e = e && e + "", n = (this.id ? `Metaframe[${this.id}] ` : "") + `${n}`, L(n, e, s);
67
+ typeof t == "string" ? n = t : typeof t == "number" ? n = t + "" : n = JSON.stringify(t), e = e && e + "", n = (this.id ? `Metaframe[${this.id}] ` : "") + `${n}`, H(n, e, s);
68
68
  }
69
69
  dispose() {
70
70
  super.removeAllListeners(), window.removeEventListener("message", this.onMessage), this.disableNotifyOnHashUrlChange(), this._inputPipeValues = void 0, this._outputPipeValues = void 0;
@@ -36,10 +36,10 @@ const n = m(fetch), D = async (e, o) => {
36
36
  console.error(`Error fetching metaframe definition from ${t.href}: ${r}`);
37
37
  return;
38
38
  }
39
- }, U = (e) => e ? !(e != null && e.inputs && Object.keys(e.inputs).length > 0 || e != null && e.outputs && Object.keys(e.outputs).length > 0 || e != null && e.allow || e != null && e.metadata && Object.keys(e.metadata).length > 0) : !0;
39
+ }, W = (e) => e ? !(e != null && e.inputs && Object.keys(e.inputs).length > 0 || e != null && e.outputs && Object.keys(e.outputs).length > 0 || e != null && e.allow || e != null && e.metadata && Object.keys(e.metadata).length > 0) : !0;
40
40
  export {
41
41
  M as getMetaframeDefinitionFromUrl,
42
42
  D as getMetapageDefinitionFromUrl,
43
- U as isEmptyMetaframeDefinition
43
+ W as isEmptyMetaframeDefinition
44
44
  };
45
45
  //# sourceMappingURL=util.js.map
@@ -1,142 +1,145 @@
1
- function H(n) {
2
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
1
+ function y(r) {
2
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
3
3
  }
4
- var P = function(n, o) {
5
- o || (o = {}), typeof o == "function" && (o = { cmp: o });
6
- var t = typeof o.cycles == "boolean" ? o.cycles : !1, l = o.cmp && /* @__PURE__ */ function(r) {
4
+ var P = function(r, t) {
5
+ t || (t = {}), typeof t == "function" && (t = { cmp: t });
6
+ var a = typeof t.cycles == "boolean" ? t.cycles : !1, l = t.cmp && /* @__PURE__ */ function(o) {
7
7
  return function(e) {
8
- return function(i, s) {
9
- var c = { key: i, value: e[i] }, h = { key: s, value: e[s] };
10
- return r(c, h);
8
+ return function(s, i) {
9
+ var c = { key: s, value: e[s] }, u = { key: i, value: e[i] };
10
+ return o(c, u);
11
11
  };
12
12
  };
13
- }(o.cmp), a = [];
14
- return function r(e) {
13
+ }(t.cmp), n = [];
14
+ return function o(e) {
15
15
  if (e && e.toJSON && typeof e.toJSON == "function" && (e = e.toJSON()), e !== void 0) {
16
16
  if (typeof e == "number")
17
17
  return isFinite(e) ? "" + e : "null";
18
18
  if (typeof e != "object")
19
19
  return JSON.stringify(e);
20
- var i, s;
20
+ var s, i;
21
21
  if (Array.isArray(e)) {
22
- for (s = "[", i = 0; i < e.length; i++)
23
- i && (s += ","), s += r(e[i]) || "null";
24
- return s + "]";
22
+ for (i = "[", s = 0; s < e.length; s++)
23
+ s && (i += ","), i += o(e[s]) || "null";
24
+ return i + "]";
25
25
  }
26
26
  if (e === null)
27
27
  return "null";
28
- if (a.indexOf(e) !== -1) {
29
- if (t)
28
+ if (n.indexOf(e) !== -1) {
29
+ if (a)
30
30
  return JSON.stringify("__cycle__");
31
31
  throw new TypeError("Converting circular structure to JSON");
32
32
  }
33
- var c = a.push(e) - 1, h = Object.keys(e).sort(l && l(e));
34
- for (s = "", i = 0; i < h.length; i++) {
35
- var m = h[i], f = r(e[m]);
36
- f && (s && (s += ","), s += JSON.stringify(m) + ":" + f);
33
+ var c = n.push(e) - 1, u = Object.keys(e).sort(l && l(e));
34
+ for (i = "", s = 0; s < u.length; s++) {
35
+ var f = u[s], w = o(e[f]);
36
+ w && (i && (i += ","), i += JSON.stringify(f) + ":" + w);
37
37
  }
38
- return a.splice(c, 1), "{" + s + "}";
38
+ return n.splice(c, 1), "{" + i + "}";
39
39
  }
40
- }(n);
40
+ }(r);
41
41
  };
42
- const v = /* @__PURE__ */ H(P), F = (n) => w(v(n)), b = (n) => {
43
- if (n && n.length > 0)
44
- return JSON.parse(g(n));
45
- }, w = (n) => btoa(encodeURIComponent(n)), g = (n) => decodeURIComponent(atob(n)), p = (n) => {
46
- const o = new URL(n);
47
- return y(o.hash);
48
- }, y = (n) => {
49
- let o = n;
50
- for (; o.startsWith("#"); )
51
- o = o.substring(1);
52
- const t = o.indexOf("?");
53
- if (t === -1)
54
- return [o, {}];
55
- const l = o.substring(0, t);
56
- o = o.substring(t + 1);
57
- const a = {};
58
- return o.split("&").filter((r) => r.length > 0).map((r) => {
59
- const e = r.indexOf("=");
42
+ const v = /* @__PURE__ */ y(P), F = (r) => m(v(r)), b = (r) => {
43
+ if (r && r.length > 0)
44
+ return JSON.parse(g(r));
45
+ }, m = (r) => btoa(r), g = (r) => {
46
+ for (; r.endsWith("%3D"); )
47
+ r = r.slice(0, -3);
48
+ return atob(r);
49
+ }, H = (r) => {
50
+ const t = r instanceof URL ? r : new URL(r);
51
+ return p(t.hash);
52
+ }, p = (r) => {
53
+ let t = r;
54
+ for (; t.startsWith("#"); )
55
+ t = t.substring(1);
56
+ const a = t.indexOf("?");
57
+ if (a === -1)
58
+ return [t, {}];
59
+ const l = t.substring(0, a);
60
+ t = t.substring(a + 1);
61
+ const n = {};
62
+ return t.split("&").filter((o) => o.length > 0).map((o) => {
63
+ const e = o.indexOf("=");
60
64
  if (e === -1)
61
- return [r, ""];
62
- const i = r.substring(0, e), s = r.substring(e + 1);
63
- return [i, s];
64
- }).forEach(([r, e]) => {
65
- a[r] = e;
66
- }), Object.keys(a).forEach((r) => {
67
- try {
68
- a[r] = decodeURI(a[r]);
69
- } catch {
70
- a[r] = a[r];
71
- }
72
- }), [l, a];
73
- }, u = (n, o) => {
74
- const [t, l] = p(n);
75
- return l[o];
76
- }, N = (n) => V()[1][n], V = () => p(window.location.href), d = (n, o, t) => {
77
- const l = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, a = O(l, n, o);
78
- a !== l && (t != null && t.modifyHistory ? window.location.hash = a : (window.history.replaceState(null, document.title, `${window.location.pathname}${window.location.search}${a.startsWith("#") ? "" : "#"}${a}`), window.dispatchEvent(new HashChangeEvent("hashchange"))));
79
- }, O = (n, o, t) => {
80
- const [l, a] = y(n);
81
- let r = !1;
82
- if (a.hasOwnProperty(o) && t === null || t === void 0 ? (delete a[o], r = !0) : a[o] !== t && (a[o] = t, r = !0), !r)
83
- return n;
84
- const e = Object.keys(a);
65
+ return [o, ""];
66
+ const s = o.substring(0, e), i = o.substring(e + 1);
67
+ return [s, i];
68
+ }).forEach(([o, e]) => {
69
+ n[o] = e;
70
+ }), Object.keys(n).forEach((o) => {
71
+ n[o] = n[o];
72
+ }), [l, n];
73
+ }, h = (r, t) => {
74
+ const [a, l] = H(r);
75
+ return l[t];
76
+ }, U = (r) => V()[1][r], V = () => H(window.location.href), d = (r, t, a) => {
77
+ const l = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, n = W(l, r, t);
78
+ n !== l && (a != null && a.modifyHistory ? window.location.hash = n : (window.history.replaceState(null, document.title, `${window.location.pathname}${window.location.search}${n.startsWith("#") ? "" : "#"}${n}`), window.dispatchEvent(new HashChangeEvent("hashchange"))));
79
+ }, W = (r, t, a) => {
80
+ const [l, n] = p(r);
81
+ let o = !1;
82
+ if (n.hasOwnProperty(t) && a === null || a === void 0 ? (delete n[t], o = !0) : n[t] !== a && (n[t] = a, o = !0), !o)
83
+ return r;
84
+ const e = Object.keys(n);
85
85
  e.sort();
86
- const i = e.map((s, c) => `${s}=${encodeURI(a[s])}`).join("&");
87
- return `${l}?${i}`;
88
- }, S = (n, o) => {
89
- const t = u(n, o);
90
- if (t && t !== "")
91
- return b(t);
92
- }, $ = (n, o, t) => {
93
- const l = o ? F(o) : void 0;
94
- d(n, l, t);
95
- }, j = (n) => S(window.location.href, n), W = (n, o) => {
96
- const t = u(n, o);
97
- return t ? parseFloat(t) : void 0;
98
- }, I = (n, o, t) => {
99
- d(n, o != null ? o.toString() : void 0, t);
100
- }, E = (n) => W(window.location.href, n), U = (n, o) => {
101
- const t = u(n, o);
102
- return t ? parseInt(t) : void 0;
103
- }, _ = (n, o, t) => {
104
- I(n, o, t);
105
- }, R = (n) => U(window.location.href, n), J = (n, o) => u(n, o) === "true", k = (n, o, t) => {
106
- d(n, o ? "true" : void 0, t);
107
- }, x = (n) => J(window.location.href, n), B = (n, o) => {
108
- const t = u(n, o);
109
- return t && t !== "" ? g(t) : void 0;
110
- }, C = (n, o, t) => {
111
- const l = o == null ? void 0 : w(o);
112
- d(n, l, t);
113
- }, T = (n) => B(window.location.href, n);
86
+ const s = e.map((i, c) => {
87
+ const u = n[i];
88
+ return /^[A-Za-z0-9+/]+={0,2}$/.test(u) && u.length % 4, `${i}=${u}`;
89
+ }).join("&");
90
+ return !l && !s ? "" : `${l || ""}${s ? "?" + s : ""}`;
91
+ }, O = (r, t) => {
92
+ const a = h(r, t);
93
+ if (a && a !== "")
94
+ return b(a);
95
+ }, N = (r, t, a) => {
96
+ const l = t ? F(t) : void 0;
97
+ d(r, l, a);
98
+ }, j = (r) => O(window.location.href, r), S = (r, t) => {
99
+ const a = h(r, t);
100
+ return a ? parseFloat(a) : void 0;
101
+ }, I = (r, t, a) => {
102
+ d(r, t != null ? t.toString() : void 0, a);
103
+ }, E = (r) => S(window.location.href, r), J = (r, t) => {
104
+ const a = h(r, t);
105
+ return a ? parseInt(a) : void 0;
106
+ }, k = (r, t, a) => {
107
+ I(r, t, a);
108
+ }, _ = (r) => J(window.location.href, r), B = (r, t) => h(r, t) === "true", x = (r, t, a) => {
109
+ d(r, t ? "true" : void 0, a);
110
+ }, T = (r) => B(window.location.href, r), $ = (r, t) => {
111
+ const a = h(r, t);
112
+ return a && a !== "" ? g(a) : void 0;
113
+ }, A = (r, t, a) => {
114
+ const l = t == null ? void 0 : m(t);
115
+ d(r, l, a);
116
+ }, C = (r) => $(window.location.href, r);
114
117
  export {
115
118
  b as blobFromBase64String,
116
119
  F as blobToBase64String,
117
- N as getHashParamFromWindow,
118
- u as getHashParamValue,
119
- B as getHashParamValueBase64DecodedFromUrl,
120
- T as getHashParamValueBase64DecodedFromWindow,
121
- J as getHashParamValueBooleanFromUrl,
122
- x as getHashParamValueBooleanFromWindow,
123
- W as getHashParamValueFloatFromUrl,
120
+ U as getHashParamFromWindow,
121
+ h as getHashParamValue,
122
+ $ as getHashParamValueBase64DecodedFromUrl,
123
+ C as getHashParamValueBase64DecodedFromWindow,
124
+ B as getHashParamValueBooleanFromUrl,
125
+ T as getHashParamValueBooleanFromWindow,
126
+ S as getHashParamValueFloatFromUrl,
124
127
  E as getHashParamValueFloatFromWindow,
125
- U as getHashParamValueIntFromUrl,
126
- R as getHashParamValueIntFromWindow,
127
- S as getHashParamValueJsonFromUrl,
128
+ J as getHashParamValueIntFromUrl,
129
+ _ as getHashParamValueIntFromWindow,
130
+ O as getHashParamValueJsonFromUrl,
128
131
  j as getHashParamValueJsonFromWindow,
129
132
  V as getHashParamsFromWindow,
130
- p as getUrlHashParams,
131
- y as getUrlHashParamsFromHashString,
133
+ H as getUrlHashParams,
134
+ p as getUrlHashParamsFromHashString,
132
135
  d as setHashParamInWindow,
133
- C as setHashParamValueBase64EncodedInWindow,
134
- k as setHashParamValueBooleanInWindow,
136
+ A as setHashParamValueBase64EncodedInWindow,
137
+ x as setHashParamValueBooleanInWindow,
135
138
  I as setHashParamValueFloatInWindow,
136
- O as setHashParamValueInHashString,
137
- _ as setHashParamValueIntInWindow,
138
- $ as setHashParamValueJsonInWindow,
139
+ W as setHashParamValueInHashString,
140
+ k as setHashParamValueIntInWindow,
141
+ N as setHashParamValueJsonInWindow,
139
142
  g as stringFromBase64String,
140
- w as stringToBase64String
143
+ m as stringToBase64String
141
144
  };
142
145
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@metapages/hash-query/dist/core/index.js"],"sourcesContent":["function y(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\n}\nvar I = function(t, r) {\n r || (r = {}), typeof r == \"function\" && (r = { cmp: r });\n var n = typeof r.cycles == \"boolean\" ? r.cycles : !1, e = r.cmp && /* @__PURE__ */ function(s) {\n return function(a) {\n return function(c, i) {\n var m = { key: c, value: a[c] }, f = { key: i, value: a[i] };\n return s(m, f);\n };\n };\n }(r.cmp), o = [];\n return function s(a) {\n if (a && a.toJSON && typeof a.toJSON == \"function\" && (a = a.toJSON()), a !== void 0) {\n if (typeof a == \"number\") return isFinite(a) ? \"\" + a : \"null\";\n if (typeof a != \"object\") return JSON.stringify(a);\n var c, i;\n if (Array.isArray(a)) {\n for (i = \"[\", c = 0; c < a.length; c++)\n c && (i += \",\"), i += s(a[c]) || \"null\";\n return i + \"]\";\n }\n if (a === null) return \"null\";\n if (o.indexOf(a) !== -1) {\n if (n) return JSON.stringify(\"__cycle__\");\n throw new TypeError(\"Converting circular structure to JSON\");\n }\n var m = o.push(a) - 1, f = Object.keys(a).sort(e && e(a));\n for (i = \"\", c = 0; c < f.length; c++) {\n var w = f[c], H = s(a[w]);\n H && (i && (i += \",\"), i += JSON.stringify(w) + \":\" + H);\n }\n return o.splice(m, 1), \"{\" + i + \"}\";\n }\n }(t);\n};\nconst V = /* @__PURE__ */ y(I), P = (t) => d(V(t)), F = (t) => {\n if (t && t.length > 0)\n return JSON.parse(S(t));\n}, d = (t) => btoa(encodeURIComponent(t)), S = (t) => decodeURIComponent(atob(t)), b = (t) => {\n const r = new URL(t);\n return v(r.hash);\n}, v = (t) => {\n let r = t;\n for (; r.startsWith(\"#\"); )\n r = r.substring(1);\n const n = r.indexOf(\"?\");\n if (n === -1)\n return [r, {}];\n const e = r.substring(0, n);\n r = r.substring(n + 1);\n const o = {};\n return r.split(\"&\").filter((s) => s.length > 0).map((s) => {\n const a = s.indexOf(\"=\");\n if (a === -1)\n return [s, \"\"];\n const c = s.substring(0, a), i = s.substring(a + 1);\n return [c, i];\n }).forEach(([s, a]) => {\n o[s] = a;\n }), Object.keys(o).forEach((s) => {\n try {\n o[s] = decodeURI(o[s]);\n } catch {\n o[s] = o[s];\n }\n }), [e, o];\n}, l = (t, r) => {\n const [n, e] = b(t);\n return e[r];\n}, E = (t) => U()[1][t], U = () => b(window.location.href), u = (t, r, n) => {\n const e = window.location.hash.startsWith(\"#\") ? window.location.hash.substring(1) : window.location.hash, o = g(e, t, r);\n o !== e && (n != null && n.modifyHistory ? window.location.hash = o : (window.history.replaceState(null, document.title, `${window.location.pathname}${window.location.search}${o.startsWith(\"#\") ? \"\" : \"#\"}${o}`), window.dispatchEvent(new HashChangeEvent(\"hashchange\"))));\n}, g = (t, r, n) => {\n const [e, o] = v(t);\n let s = !1;\n if (o.hasOwnProperty(r) && n === null || n === void 0 ? (delete o[r], s = !0) : o[r] !== n && (o[r] = n, s = !0), !s)\n return t;\n const a = Object.keys(o);\n a.sort();\n const c = a.map((i, m) => `${i}=${encodeURI(o[i])}`).join(\"&\");\n return `${e}?${c}`;\n}, h = (t, r, n) => {\n const e = new URL(t), o = g(e.hash, r, n);\n return e.hash = o, e.href;\n}, $ = (t, r, n) => {\n const e = new URL(t);\n return e.hash = O(e.hash, r, n), e.href;\n}, p = (t, r) => {\n const n = l(t, r);\n if (n && n !== \"\")\n return F(n);\n}, R = (t, r, n) => {\n const e = r ? P(r) : void 0;\n u(t, e, n);\n}, _ = (t) => p(window.location.href, t), O = (t, r, n) => {\n const e = n ? P(n) : void 0;\n return g(t, r, e);\n}, C = (t, r, n) => h(t, r, n ? n.toString() : void 0), W = (t, r) => {\n const n = l(t, r);\n return n ? parseFloat(n) : void 0;\n}, B = (t, r, n) => {\n u(t, r != null ? r.toString() : void 0, n);\n}, x = (t) => W(window.location.href, t), D = (t, r, n) => h(t, r, n != null ? n.toString() : void 0), J = (t, r) => {\n const n = l(t, r);\n return n ? parseInt(n) : void 0;\n}, L = (t, r, n) => {\n B(t, r, n);\n}, T = (t) => J(window.location.href, t), A = (t, r, n) => h(t, r, n ? \"true\" : void 0), j = (t, r) => l(t, r) === \"true\", q = (t, r, n) => {\n u(t, r ? \"true\" : void 0, n);\n}, M = (t) => j(window.location.href, t), k = (t, r, n) => h(t, r, n == null ? void 0 : d(n)), N = (t, r) => {\n const n = l(t, r);\n return n && n !== \"\" ? S(n) : void 0;\n}, z = (t, r, n) => {\n const e = r == null ? void 0 : d(r);\n u(t, e, n);\n}, G = (t) => N(window.location.href, t), K = (t, r) => {\n u(t, void 0, r);\n}, Q = (t, r) => h(t, r, void 0);\nexport {\n F as blobFromBase64String,\n P as blobToBase64String,\n Q as deleteHashParamFromUrl,\n K as deleteHashParamFromWindow,\n E as getHashParamFromWindow,\n l as getHashParamValue,\n N as getHashParamValueBase64DecodedFromUrl,\n G as getHashParamValueBase64DecodedFromWindow,\n j as getHashParamValueBooleanFromUrl,\n M as getHashParamValueBooleanFromWindow,\n W as getHashParamValueFloatFromUrl,\n x as getHashParamValueFloatFromWindow,\n J as getHashParamValueIntFromUrl,\n T as getHashParamValueIntFromWindow,\n p as getHashParamValueJsonFromUrl,\n _ as getHashParamValueJsonFromWindow,\n U as getHashParamsFromWindow,\n b as getUrlHashParams,\n v as getUrlHashParamsFromHashString,\n u as setHashParamInWindow,\n k as setHashParamValueBase64EncodedInUrl,\n z as setHashParamValueBase64EncodedInWindow,\n A as setHashParamValueBooleanInUrl,\n q as setHashParamValueBooleanInWindow,\n C as setHashParamValueFloatInUrl,\n B as setHashParamValueFloatInWindow,\n g as setHashParamValueInHashString,\n h as setHashParamValueInUrl,\n D as setHashParamValueIntInUrl,\n L as setHashParamValueIntInWindow,\n O as setHashParamValueJsonInHashString,\n $ as setHashParamValueJsonInUrl,\n R as setHashParamValueJsonInWindow,\n S as stringFromBase64String,\n d as stringToBase64String\n};\n//# sourceMappingURL=index.js.map\n"],"names":["y","t","I","r","n","e","s","a","c","i","m","f","o","w","H","V","P","d","F","S","b","v","l","E","U","u","g","p","R","_","B","x","J","L","T","j","q","M","N","z","G"],"mappings":"AAAA,SAASA,EAAEC,GAAG;AACZ,SAAOA,KAAKA,EAAE,cAAc,OAAO,UAAU,eAAe,KAAKA,GAAG,SAAS,IAAIA,EAAE,UAAUA;AAC/F;AACA,IAAIC,IAAI,SAASD,GAAGE,GAAG;AACrB,EAAAA,MAAMA,IAAI,KAAK,OAAOA,KAAK,eAAeA,IAAI,EAAE,KAAKA,EAAC;AACtD,MAAIC,IAAI,OAAOD,EAAE,UAAU,YAAYA,EAAE,SAAS,IAAIE,IAAIF,EAAE,OAAuB,yBAASG,GAAG;AAC7F,WAAO,SAASC,GAAG;AACjB,aAAO,SAASC,GAAGC,GAAG;AACpB,YAAIC,IAAI,EAAE,KAAKF,GAAG,OAAOD,EAAEC,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AAExB,GAAGE,IAAI,SAAS,QAAQC,CAAC;AAC7B,GAAGiC,IAAI,CAACpC,MAAMkC,EAAE,OAAO,SAAS,MAAMlC,CAAC,GAAwDqC,IAAI,CAACrC,GAAGE,MAAM;AAC3G,QAAMC,IAAIkB,EAAErB,GAAGE,CAAC;AAChB,SAAOC,KAAKA,MAAM,KAAKe,EAAEf,CAAC,IAAI;AAChC,GAAGmC,IAAI,CAACtC,GAAGE,GAAGC,MAAM;AAClB,QAAMC,IAAIF,KAAK,OAAO,SAASc,EAAEd,CAAC;AAClC,EAAAsB,EAAExB,GAAGI,GAAGD,CAAC;AACX,GAAGoC,IAAI,CAACvC,MAAMqC,EAAE,OAAO,SAAS,MAAMrC,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@metapages/hash-query/dist/core/index.js"],"sourcesContent":["function V(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\n}\nvar I = function(t, n) {\n n || (n = {}), typeof n == \"function\" && (n = { cmp: n });\n var r = typeof n.cycles == \"boolean\" ? n.cycles : !1, e = n.cmp && /* @__PURE__ */ function(o) {\n return function(a) {\n return function(c, l) {\n var h = { key: c, value: a[c] }, i = { key: l, value: a[l] };\n return o(h, i);\n };\n };\n }(n.cmp), s = [];\n return function o(a) {\n if (a && a.toJSON && typeof a.toJSON == \"function\" && (a = a.toJSON()), a !== void 0) {\n if (typeof a == \"number\") return isFinite(a) ? \"\" + a : \"null\";\n if (typeof a != \"object\") return JSON.stringify(a);\n var c, l;\n if (Array.isArray(a)) {\n for (l = \"[\", c = 0; c < a.length; c++)\n c && (l += \",\"), l += o(a[c]) || \"null\";\n return l + \"]\";\n }\n if (a === null) return \"null\";\n if (s.indexOf(a) !== -1) {\n if (r) return JSON.stringify(\"__cycle__\");\n throw new TypeError(\"Converting circular structure to JSON\");\n }\n var h = s.push(a) - 1, i = Object.keys(a).sort(e && e(a));\n for (l = \"\", c = 0; c < i.length; c++) {\n var u = i[c], m = o(a[u]);\n m && (l && (l += \",\"), l += JSON.stringify(u) + \":\" + m);\n }\n return s.splice(h, 1), \"{\" + l + \"}\";\n }\n }(t);\n};\nconst F = /* @__PURE__ */ V(I), b = (t) => w(F(t)), S = (t) => {\n if (t && t.length > 0)\n return JSON.parse(v(t));\n}, w = (t) => btoa(t), v = (t) => {\n for (; t.endsWith(\"%3D\"); )\n t = t.slice(0, -3);\n return atob(t);\n}, y = (t) => {\n const n = t instanceof URL ? t : new URL(t);\n return H(n.hash);\n}, H = (t) => {\n let n = t;\n for (; n.startsWith(\"#\"); )\n n = n.substring(1);\n const r = n.indexOf(\"?\");\n if (r === -1)\n return [n, {}];\n const e = n.substring(0, r);\n n = n.substring(r + 1);\n const s = {};\n return n.split(\"&\").filter((o) => o.length > 0).map((o) => {\n const a = o.indexOf(\"=\");\n if (a === -1)\n return [o, \"\"];\n const c = o.substring(0, a), l = o.substring(a + 1);\n return [c, l];\n }).forEach(([o, a]) => {\n s[o] = a;\n }), Object.keys(s).forEach((o) => {\n s[o] = s[o];\n }), [e, s];\n}, d = (t, n) => {\n const [r, e] = y(t);\n return e[n];\n}, x = (t) => p()[1][t], p = () => y(window.location.href), f = (t, n, r) => {\n const e = window.location.hash.startsWith(\"#\") ? window.location.hash.substring(1) : window.location.hash, s = P(e, t, n);\n s !== e && (r != null && r.modifyHistory ? window.location.hash = s : (window.history.replaceState(null, document.title, `${window.location.pathname}${window.location.search}${s.startsWith(\"#\") ? \"\" : \"#\"}${s}`), window.dispatchEvent(new HashChangeEvent(\"hashchange\"))));\n}, P = (t, n, r) => {\n const [e, s] = H(t);\n let o = !1;\n if (s.hasOwnProperty(n) && r === null || r === void 0 ? (delete s[n], o = !0) : s[n] !== r && (s[n] = r, o = !0), !o)\n return t;\n const a = Object.keys(s);\n a.sort();\n const c = a.map((l, h) => {\n const i = s[l];\n return /^[A-Za-z0-9+/]+={0,2}$/.test(i) && i.length % 4, `${l}=${i}`;\n }).join(\"&\");\n return !e && !c ? \"\" : `${e || \"\"}${c ? \"?\" + c : \"\"}`;\n}, O = (t, n) => {\n let r = t;\n for (; r.startsWith(\"#\"); )\n r = r.substring(1);\n const e = r.indexOf(\"?\"), s = e === -1 ? r : r.substring(0, e), o = {};\n if (e !== -1) {\n const h = r.substring(e + 1);\n h.length > 0 && h.split(\"&\").forEach((i) => {\n if (i.length > 0) {\n const u = i.indexOf(\"=\");\n if (u === -1)\n o[i] = \"\";\n else {\n const m = i.substring(0, u), U = i.substring(u + 1);\n o[m] = U;\n }\n }\n });\n }\n let a = !1;\n for (const [h, i] of Object.entries(n))\n i == null ? o.hasOwnProperty(h) && (delete o[h], a = !0) : o[h] !== i && (o[h] = i, a = !0);\n if (!a)\n return t;\n const c = Object.keys(o);\n c.sort();\n const l = c.map((h) => {\n const i = o[h];\n return /^[A-Za-z0-9+/]+={0,2}$/.test(i) && i.length % 4, `${h}=${i}`;\n }).join(\"&\");\n return !s && !l ? \"\" : `${s || \"\"}${l ? \"?\" + l : \"\"}`;\n}, g = (t, n, r) => {\n const e = t instanceof URL ? t : new URL(t), s = P(e.hash, n, r);\n return e.hash = s, e;\n}, D = (t, n) => {\n const r = t instanceof URL ? t : new URL(t);\n let e = O(r.hash, n);\n return r.hash = e, r;\n}, L = (t, n, r) => {\n const e = t instanceof URL ? t : new URL(t);\n return e.hash = B(e.hash, n, r), e;\n}, W = (t, n) => {\n const r = d(t, n);\n if (r && r !== \"\")\n return S(r);\n}, _ = (t, n) => {\n const [r, e] = H(t), s = e[n];\n if (s && s !== \"\")\n return S(s);\n}, C = (t, n, r) => {\n const e = n ? b(n) : void 0;\n f(t, e, r);\n}, k = (t) => W(window.location.href, t), B = (t, n, r) => {\n const e = r ? b(r) : void 0;\n return P(t, n, e);\n}, A = (t, n, r) => g(t, n, r ? r.toString() : void 0), j = (t, n) => {\n const r = d(t, n);\n return r ? parseFloat(r) : void 0;\n}, J = (t, n, r) => {\n f(t, n != null ? n.toString() : void 0, r);\n}, T = (t) => j(window.location.href, t), q = (t, n, r) => g(t, n, r != null ? r.toString() : void 0), $ = (t, n) => {\n const r = d(t, n);\n return r ? parseInt(r) : void 0;\n}, z = (t, n, r) => {\n J(t, n, r);\n}, Z = (t) => $(window.location.href, t), M = (t, n, r) => g(t, n, r ? \"true\" : void 0), E = (t, n) => d(t, n) === \"true\", G = (t, n, r) => {\n f(t, n ? \"true\" : void 0, r);\n}, K = (t) => E(window.location.href, t), Q = (t, n, r) => g(t, n, r == null ? void 0 : w(r)), R = (t, n) => {\n const r = d(t, n);\n return r && r !== \"\" ? v(r) : void 0;\n}, X = (t, n, r) => {\n const e = n == null ? void 0 : w(n);\n f(t, e, r);\n}, Y = (t) => R(window.location.href, t), tt = (t, n, r) => g(t, n, r == null ? void 0 : encodeURIComponent(r)), N = (t, n) => {\n const r = d(t, n);\n return r && r !== \"\" ? decodeURIComponent(r) : void 0;\n}, nt = (t, n, r) => {\n const e = n == null ? void 0 : encodeURIComponent(n);\n f(t, e, r);\n}, rt = (t) => N(window.location.href, t), et = (t, n) => {\n f(t, void 0, n);\n}, at = (t, n) => g(t, n, void 0);\nexport {\n S as blobFromBase64String,\n b as blobToBase64String,\n O as createHashParamValuesInHashString,\n at as deleteHashParamFromUrl,\n et as deleteHashParamFromWindow,\n x as getHashParamFromWindow,\n d as getHashParamValue,\n R as getHashParamValueBase64DecodedFromUrl,\n Y as getHashParamValueBase64DecodedFromWindow,\n E as getHashParamValueBooleanFromUrl,\n K as getHashParamValueBooleanFromWindow,\n j as getHashParamValueFloatFromUrl,\n T as getHashParamValueFloatFromWindow,\n $ as getHashParamValueIntFromUrl,\n Z as getHashParamValueIntFromWindow,\n _ as getHashParamValueJsonFromHashString,\n W as getHashParamValueJsonFromUrl,\n k as getHashParamValueJsonFromWindow,\n N as getHashParamValueUriDecodedFromUrl,\n rt as getHashParamValueUriDecodedFromWindow,\n p as getHashParamsFromWindow,\n y as getUrlHashParams,\n H as getUrlHashParamsFromHashString,\n f as setHashParamInWindow,\n Q as setHashParamValueBase64EncodedInUrl,\n X as setHashParamValueBase64EncodedInWindow,\n M as setHashParamValueBooleanInUrl,\n G as setHashParamValueBooleanInWindow,\n A as setHashParamValueFloatInUrl,\n J as setHashParamValueFloatInWindow,\n P as setHashParamValueInHashString,\n g as setHashParamValueInUrl,\n q as setHashParamValueIntInUrl,\n z as setHashParamValueIntInWindow,\n B as setHashParamValueJsonInHashString,\n L as setHashParamValueJsonInUrl,\n C as setHashParamValueJsonInWindow,\n tt as setHashParamValueUriEncodedInUrl,\n nt as setHashParamValueUriEncodedInWindow,\n D as setHashParamsInUrl,\n v as stringFromBase64String,\n w as stringToBase64String\n};\n//# sourceMappingURL=index.js.map\n"],"names":["V","t","I","n","r","e","a","c","l","h","i","s","u","m","F","b","w","S","v","y","H","d","x","p","f","P","W","C","k","j","J","T","$","z","Z","E","G","K","R","X","Y"],"mappings":"AAAA,SAASA,EAAEC,GAAG;AACZ,SAAOA,KAAKA,EAAE,cAAc,OAAO,UAAU,eAAe,KAAKA,GAAG,SAAS,IAAIA,EAAE,UAAUA;AAC/F;AACA,IAAIC,IAAI,SAASD,GAAGE,GAAG;AACrB,EAAAA,MAAMA,IAAI,KAAK,OAAOA,KAAK,eAAeA,IAAI,EAAE,KAAKA,EAAC;AACtD,MAAIC,IAAI,OAAOD,EAAE,UAAU,YAAYA,EAAE,SAAS,IAAIE,IAAIF,EAAE,OAAuB,yBAAS,GAAG;AAC7F,WAAO,SAASG,GAAG;AACjB,aAAO,SAASC,GAAGC,GAAG;AACpB,YAAIC,IAAI,EAAE,KAAKF,GAAG,OAAOD,EAAEC,CAAC,EAAC,GAAIG,IAAI,EAAE,KAAKF,GAAG,OAAOF,EAAEE,CAAC;AACzD,eAAO,EAAEC,GAAGC,CAAC;AAAA,MACrB;AAAA,IACA;AAAA,EACG,EAACP,EAAE,GAAG,GAAGQ,IAAI,CAAA;AACd,SAAO,SAAS,EAAEL,GAAG;AACnB,QAAIA,KAAKA,EAAE,UAAU,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qC,IAAI,CAACrC,GAAGE,MAAM;AAC3G,QAAMC,IAAIiB,EAAEpB,GAAGE,CAAC;AAChB,SAAOC,KAAKA,MAAM,KAAKc,EAAEd,CAAC,IAAI;AAChC,GAAGmC,IAAI,CAACtC,GAAGE,GAAGC,MAAM;AAClB,QAAMC,IAAIF,KAAK,OAAO,SAASa,EAAEb,CAAC;AAClC,EAAAqB,EAAEvB,GAAGI,GAAGD,CAAC;AACX,GAAGoC,IAAI,CAACvC,MAAMqC,EAAE,OAAO,SAAS,MAAMrC,CAAC;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@metapages/metapage",
3
3
  "public": true,
4
- "version": "1.8.8",
4
+ "version": "1.8.9",
5
5
  "description": "Connect web pages together",
6
6
  "repository": "https://github.com/metapages/metapage",
7
7
  "homepage": "https://metapage.io/",
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "source": "src/index.ts",
25
25
  "dependencies": {
26
- "@metapages/hash-query": "^0.8.15",
26
+ "@metapages/hash-query": "^0.9.1",
27
27
  "base64-arraybuffer": "^1.0.2",
28
28
  "compare-versions": "^6.1.1",
29
29
  "eventemitter3": "^4.0.0",