@machinemetrics/mm-react-embeddable 0.9.13 → 0.9.14

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.
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),b=require("prop-types"),h=require("styled-components"),g=e.createContext(null),w=({children:r})=>{const[n,i]=e.useState({}),o=e.useRef({}),u=e.useCallback((s,t,c)=>{i(a=>({...a,[s]:{origin:t,frameRef:c}}))},[]);e.useEffect(()=>{const s=t=>{var a,l;if(!((a=t==null?void 0:t.data)!=null&&a.instanceId))return;(((l=o.current[t.data.instanceId])==null?void 0:l[t.data.type])||[]).forEach(M=>M(t.data))};return window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}},[n]);const d=e.useCallback((s,t,c)=>{const a=n[s];if(!a){console.warn(`Origin not set for id: ${s}. Unable to send message.`);return}a.frameRef.current.contentWindow.postMessage({type:t,...c,instanceId:s},a.origin)},[n]),f={testIsEmbeddable:R,registerFrame:u,sendMessage:d,addListener:(s,t,c)=>(o.current[s]||(o.current[s]={}),o.current[s][t]||(o.current[s][t]=[]),o.current[s][t].push(c),()=>{o.current[s][t]=o.current[s][t].filter(a=>a!==c)})};return e.createElement(g.Provider,{value:f},r)},E={},R=async r=>{try{const n=new URL(r).origin;if(E[n]!==void 0)return E[n];if(!(await(await fetch(`${n}/mm-app-manifest.json`)).json()).version)throw new Error("Invalid manifest");return E[n]=!0,!0}catch{}return E[origin]=!1,!1},I=(r,n,i)=>{const o=e.useContext(g);if(o===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddableZoneProvider");const u=e.useRef(i);return e.useEffect(()=>{u.current=i},[i]),e.useEffect(()=>{if(!(!r||!n))return o.addListener(r,n,(...d)=>u.current(...d))},[o,r,n]),e.useCallback((d,f)=>o.sendMessage(r,d,f),[o,r])};w.propTypes={children:b.node.isRequired};const P=h.default||h,S=P.iframe`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),m=require("prop-types"),h=require("styled-components"),M=e.createContext(null),w=({children:t})=>{const[n,d]=e.useState({}),o=e.useRef({}),c=e.useCallback((r,s,a)=>{d(i=>({...i,[r]:{origin:s,frameRef:a}}))},[]);e.useEffect(()=>{const r=s=>{var i,l;if(!((i=s==null?void 0:s.data)!=null&&i.instanceId))return;(((l=o.current[s.data.instanceId])==null?void 0:l[s.data.type])||[]).forEach(b=>b(s.data))};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},[n]);const f=e.useCallback((r,s,a)=>{const i=n[r];if(!i){console.warn(`Origin not set for id: ${r}. Unable to send message.`);return}i.frameRef.current.contentWindow.postMessage({type:s,...a,instanceId:r},i.origin)},[n]),u={testIsEmbeddable:R,registerFrame:c,sendMessage:f,addListener:(r,s,a)=>(o.current[r]||(o.current[r]={}),o.current[r][s]||(o.current[r][s]=[]),o.current[r][s].push(a),()=>{o.current[r][s]=o.current[r][s].filter(i=>i!==a)})};return e.createElement(M.Provider,{value:u},t)},g={},R=async t=>{try{const n=new URL(t).origin;if(g[n]!==void 0)return g[n];if(!(await(await fetch(`${n}/mm-app-manifest.json`)).json()).version)throw new Error("Invalid manifest");return g[n]=!0,!0}catch{}return g[origin]=!1,!1},I=(t,n,d,o=[])=>{const c=e.useContext(M);if(c===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddableZoneProvider");const f=e.useRef(d);return e.useEffect(()=>{f.current=d},[d,...o]),e.useEffect(()=>{if(!(!t||!n))return c.addListener(t,n,(...u)=>f.current(...u))},[c,t,n]),e.useCallback((u,r)=>c.sendMessage(t,u,r),[c,t])};w.propTypes={children:m.node.isRequired};const S=h.default||h,Z=S.iframe`
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border: none;
5
- visibility: ${r=>r.isready?"visible":"hidden"};
6
- `,C=({id:r,src:n,path:i,onInit:o=()=>{},...u})=>{const d=e.useRef(),[f,s]=e.useState(),[t,c]=e.useState(0),{registerFrame:a,sendMessage:l,testIsEmbeddable:M}=e.useContext(g),[v,x]=e.useState(!0),[p,L]=e.useState();return e.useEffect(()=>{i!==void 0&&L(i)},[i]),e.useEffect(()=>{p===void 0||!t||l(r,"navigate",{path:p})},[p,t,r,l]),e.useEffect(()=>{!n||!r||!d||(async()=>{const m=M(n);if(x(m),m){const y=new URL(n);a(r,y.origin,d),o(),s(`${y.origin}/mm-embedded-interop?id=${r}`);return}})()},[n,r,a,d]),I(r,"ready",()=>c(m=>m+1)),v?e.createElement(S,{isready:t,ref:d,src:f,...u}):e.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{style:{textAlign:"center"}},"Application must adhere to the MM App Manifest specification to be embedded."))};C.propTypes={id:b.string,src:b.string.isRequired,path:b.string,onInit:b.func};exports.MMEmbeddableZone=C;exports.MMEmbeddableZoneContext=g;exports.MMEmbeddableZoneProvider=w;exports.testIsEmbeddable=R;exports.useEmbeddedEffect=I;
5
+ visibility: ${t=>t.isready?"visible":"hidden"};
6
+ `,C=({id:t,src:n,path:d,onInit:o=()=>{},context:c,...f})=>{const u=e.useRef(),[r,s]=e.useState(),[a,i]=e.useState(0),{registerFrame:l,sendMessage:b,testIsEmbeddable:v}=e.useContext(M),[x,L]=e.useState(!0),[p,P]=e.useState();return e.useEffect(()=>{a&&b(t,"set-context",{context:c})},[c,t,a]),e.useEffect(()=>{d!==void 0&&P(d)},[d]),e.useEffect(()=>{p===void 0||!a||b(t,"navigate",{path:p})},[p,a,t,b]),e.useEffect(()=>{!n||!t||!u||(async()=>{const E=v(n);if(L(E),E){const y=new URL(n);l(t,y.origin,u),o(),s(`${y.origin}/mm-embedded-interop?id=${t}`);return}})()},[n,t,l,u]),I(t,"ready",()=>i(E=>E+1)),x?e.createElement(Z,{isready:a,ref:u,src:r,...f}):e.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{style:{textAlign:"center"}},"Application must adhere to the MM App Manifest specification to be embedded."))};C.propTypes={id:m.string,src:m.string.isRequired,path:m.string,onInit:m.func};exports.MMEmbeddableZone=C;exports.MMEmbeddableZoneContext=M;exports.MMEmbeddableZoneProvider=w;exports.testIsEmbeddable=R;exports.useEmbeddedEffect=I;
@@ -1,102 +1,104 @@
1
- import E, { createContext as $, useState as m, useRef as M, useCallback as w, useEffect as u, useContext as x } from "react";
2
- import b from "prop-types";
1
+ import h, { createContext as F, useState as b, useRef as M, useCallback as w, useEffect as u, useContext as x } from "react";
2
+ import g from "prop-types";
3
3
  import L from "styled-components";
4
- const R = $(null), F = ({ children: t }) => {
5
- const [r, i] = m({}), s = M({}), c = w((n, e, d) => {
6
- i((o) => ({ ...o, [n]: { origin: e, frameRef: d } }));
4
+ const R = F(null), U = ({ children: e }) => {
5
+ const [r, a] = b({}), s = M({}), d = w((t, n, o) => {
6
+ a((i) => ({ ...i, [t]: { origin: n, frameRef: o } }));
7
7
  }, []);
8
8
  u(() => {
9
- const n = (e) => {
10
- var o, l;
11
- if (!((o = e == null ? void 0 : e.data) != null && o.instanceId))
9
+ const t = (n) => {
10
+ var i, l;
11
+ if (!((i = n == null ? void 0 : n.data) != null && i.instanceId))
12
12
  return;
13
- (((l = s.current[e.data.instanceId]) == null ? void 0 : l[e.data.type]) || []).forEach((h) => h(e.data));
13
+ (((l = s.current[n.data.instanceId]) == null ? void 0 : l[n.data.type]) || []).forEach((m) => m(n.data));
14
14
  };
15
- return window.addEventListener("message", n), () => {
16
- window.removeEventListener("message", n);
15
+ return window.addEventListener("message", t), () => {
16
+ window.removeEventListener("message", t);
17
17
  };
18
18
  }, [r]);
19
- const a = w(
20
- (n, e, d) => {
21
- const o = r[n];
22
- if (!o) {
23
- console.warn(`Origin not set for id: ${n}. Unable to send message.`);
19
+ const f = w(
20
+ (t, n, o) => {
21
+ const i = r[t];
22
+ if (!i) {
23
+ console.warn(`Origin not set for id: ${t}. Unable to send message.`);
24
24
  return;
25
25
  }
26
- o.frameRef.current.contentWindow.postMessage(
27
- { type: e, ...d, instanceId: n },
28
- o.origin
26
+ i.frameRef.current.contentWindow.postMessage(
27
+ { type: n, ...o, instanceId: t },
28
+ i.origin
29
29
  );
30
30
  },
31
31
  [r]
32
- ), f = {
33
- testIsEmbeddable: U,
34
- registerFrame: c,
35
- sendMessage: a,
36
- addListener: (n, e, d) => (s.current[n] || (s.current[n] = {}), s.current[n][e] || (s.current[n][e] = []), s.current[n][e].push(d), () => {
37
- s.current[n][e] = s.current[n][e].filter((o) => o !== d);
32
+ ), c = {
33
+ testIsEmbeddable: Z,
34
+ registerFrame: d,
35
+ sendMessage: f,
36
+ addListener: (t, n, o) => (s.current[t] || (s.current[t] = {}), s.current[t][n] || (s.current[t][n] = []), s.current[t][n].push(o), () => {
37
+ s.current[t][n] = s.current[t][n].filter((i) => i !== o);
38
38
  })
39
39
  };
40
- return /* @__PURE__ */ E.createElement(R.Provider, { value: f }, t);
41
- }, p = {}, U = async (t) => {
40
+ return /* @__PURE__ */ h.createElement(R.Provider, { value: c }, e);
41
+ }, E = {}, Z = async (e) => {
42
42
  try {
43
- const r = new URL(t).origin;
44
- if (p[r] !== void 0)
45
- return p[r];
43
+ const r = new URL(e).origin;
44
+ if (E[r] !== void 0)
45
+ return E[r];
46
46
  if (!(await (await fetch(`${r}/mm-app-manifest.json`)).json()).version)
47
47
  throw new Error("Invalid manifest");
48
- return p[r] = !0, !0;
48
+ return E[r] = !0, !0;
49
49
  } catch {
50
50
  }
51
- return p[origin] = !1, !1;
52
- }, Z = (t, r, i) => {
53
- const s = x(R);
54
- if (s === null)
51
+ return E[origin] = !1, !1;
52
+ }, j = (e, r, a, s = []) => {
53
+ const d = x(R);
54
+ if (d === null)
55
55
  throw new Error(
56
56
  "useEmbeddedEffect must be used within a MMEmbeddableZoneProvider"
57
57
  );
58
- const c = M(i);
58
+ const f = M(a);
59
59
  return u(() => {
60
- c.current = i;
61
- }, [i]), u(() => {
62
- if (!(!t || !r))
63
- return s.addListener(
64
- t,
60
+ f.current = a;
61
+ }, [a, ...s]), u(() => {
62
+ if (!(!e || !r))
63
+ return d.addListener(
64
+ e,
65
65
  r,
66
- (...a) => c.current(...a)
66
+ (...c) => f.current(...c)
67
67
  );
68
- }, [s, t, r]), w(
69
- (a, f) => s.sendMessage(t, a, f),
70
- [s, t]
68
+ }, [d, e, r]), w(
69
+ (c, t) => d.sendMessage(e, c, t),
70
+ [d, e]
71
71
  );
72
72
  };
73
- F.propTypes = {
74
- children: b.node.isRequired
73
+ U.propTypes = {
74
+ children: g.node.isRequired
75
75
  };
76
- const j = L.default || L, A = j.iframe`
76
+ const A = L.default || L, T = A.iframe`
77
77
  width: 100%;
78
78
  height: 100%;
79
79
  border: none;
80
- visibility: ${(t) => t.isready ? "visible" : "hidden"};
81
- `, T = ({ id: t, src: r, path: i, onInit: s = () => {
82
- }, ...c }) => {
83
- const a = M(), [f, n] = m(), [e, d] = m(0), { registerFrame: o, sendMessage: l, testIsEmbeddable: h } = x(
80
+ visibility: ${(e) => e.isready ? "visible" : "hidden"};
81
+ `, q = ({ id: e, src: r, path: a, onInit: s = () => {
82
+ }, context: d, ...f }) => {
83
+ const c = M(), [t, n] = b(), [o, i] = b(0), { registerFrame: l, sendMessage: m, testIsEmbeddable: v } = x(
84
84
  R
85
- ), [v, P] = m(!0), [y, C] = m();
85
+ ), [P, C] = b(!0), [y, $] = b();
86
86
  return u(() => {
87
- i !== void 0 && C(i);
88
- }, [i]), u(() => {
89
- y === void 0 || !e || l(t, "navigate", { path: y });
90
- }, [y, e, t, l]), u(() => {
91
- !r || !t || !a || (async () => {
92
- const g = h(r);
93
- if (P(g), g) {
87
+ o && m(e, "set-context", { context: d });
88
+ }, [d, e, o]), u(() => {
89
+ a !== void 0 && $(a);
90
+ }, [a]), u(() => {
91
+ y === void 0 || !o || m(e, "navigate", { path: y });
92
+ }, [y, o, e, m]), u(() => {
93
+ !r || !e || !c || (async () => {
94
+ const p = v(r);
95
+ if (C(p), p) {
94
96
  const I = new URL(r);
95
- o(t, I.origin, a), s(), n(`${I.origin}/mm-embedded-interop?id=${t}`);
97
+ l(e, I.origin, c), s(), n(`${I.origin}/mm-embedded-interop?id=${e}`);
96
98
  return;
97
99
  }
98
100
  })();
99
- }, [r, t, o, a]), Z(t, "ready", () => d((g) => g + 1)), v ? /* @__PURE__ */ E.createElement(A, { isready: e, ref: a, src: f, ...c }) : /* @__PURE__ */ E.createElement(
101
+ }, [r, e, l, c]), j(e, "ready", () => i((p) => p + 1)), P ? /* @__PURE__ */ h.createElement(T, { isready: o, ref: c, src: t, ...f }) : /* @__PURE__ */ h.createElement(
100
102
  "div",
101
103
  {
102
104
  style: {
@@ -106,19 +108,19 @@ const j = L.default || L, A = j.iframe`
106
108
  justifyContent: "center"
107
109
  }
108
110
  },
109
- /* @__PURE__ */ E.createElement("div", { style: { textAlign: "center" } }, "Application must adhere to the MM App Manifest specification to be embedded.")
111
+ /* @__PURE__ */ h.createElement("div", { style: { textAlign: "center" } }, "Application must adhere to the MM App Manifest specification to be embedded.")
110
112
  );
111
113
  };
112
- T.propTypes = {
113
- id: b.string,
114
- src: b.string.isRequired,
115
- path: b.string,
116
- onInit: b.func
114
+ q.propTypes = {
115
+ id: g.string,
116
+ src: g.string.isRequired,
117
+ path: g.string,
118
+ onInit: g.func
117
119
  };
118
120
  export {
119
- T as MMEmbeddableZone,
121
+ q as MMEmbeddableZone,
120
122
  R as MMEmbeddableZoneContext,
121
- F as MMEmbeddableZoneProvider,
122
- U as testIsEmbeddable,
123
- Z as useEmbeddedEffect
123
+ U as MMEmbeddableZoneProvider,
124
+ Z as testIsEmbeddable,
125
+ j as useEmbeddedEffect
124
126
  };
@@ -1,6 +1,6 @@
1
- (function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("react"),require("prop-types"),require("styled-components")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","styled-components"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o["mm-react-embeddable"]={},o.React,o.PropTypes,o.styled))})(this,function(o,e,l,M){"use strict";const E=e.createContext(null),w=({children:n})=>{const[r,u]=e.useState({}),i=e.useRef({}),c=e.useCallback((s,t,a)=>{u(d=>({...d,[s]:{origin:t,frameRef:a}}))},[]);e.useEffect(()=>{const s=t=>{var d,b;if(!((d=t==null?void 0:t.data)!=null&&d.instanceId))return;(((b=i.current[t.data.instanceId])==null?void 0:b[t.data.type])||[]).forEach(y=>y(t.data))};return window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}},[r]);const f=e.useCallback((s,t,a)=>{const d=r[s];if(!d){console.warn(`Origin not set for id: ${s}. Unable to send message.`);return}d.frameRef.current.contentWindow.postMessage({type:t,...a,instanceId:s},d.origin)},[r]),m={testIsEmbeddable:I,registerFrame:c,sendMessage:f,addListener:(s,t,a)=>(i.current[s]||(i.current[s]={}),i.current[s][t]||(i.current[s][t]=[]),i.current[s][t].push(a),()=>{i.current[s][t]=i.current[s][t].filter(d=>d!==a)})};return e.createElement(E.Provider,{value:m},n)},g={},I=async n=>{try{const r=new URL(n).origin;if(g[r]!==void 0)return g[r];if(!(await(await fetch(`${r}/mm-app-manifest.json`)).json()).version)throw new Error("Invalid manifest");return g[r]=!0,!0}catch{}return g[origin]=!1,!1},C=(n,r,u)=>{const i=e.useContext(E);if(i===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddableZoneProvider");const c=e.useRef(u);return e.useEffect(()=>{c.current=u},[u]),e.useEffect(()=>{if(!(!n||!r))return i.addListener(n,r,(...f)=>c.current(...f))},[i,n,r]),e.useCallback((f,m)=>i.sendMessage(n,f,m),[i,n])};w.propTypes={children:l.node.isRequired};const S=(M.default||M).iframe`
1
+ (function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("react"),require("prop-types"),require("styled-components")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","styled-components"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i["mm-react-embeddable"]={},i.React,i.PropTypes,i.styled))})(this,function(i,e,m,M){"use strict";const g=e.createContext(null),w=({children:t})=>{const[r,f]=e.useState({}),o=e.useRef({}),a=e.useCallback((n,s,d)=>{f(u=>({...u,[n]:{origin:s,frameRef:d}}))},[]);e.useEffect(()=>{const n=s=>{var u,b;if(!((u=s==null?void 0:s.data)!=null&&u.instanceId))return;(((b=o.current[s.data.instanceId])==null?void 0:b[s.data.type])||[]).forEach(E=>E(s.data))};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},[r]);const l=e.useCallback((n,s,d)=>{const u=r[n];if(!u){console.warn(`Origin not set for id: ${n}. Unable to send message.`);return}u.frameRef.current.contentWindow.postMessage({type:s,...d,instanceId:n},u.origin)},[r]),c={testIsEmbeddable:I,registerFrame:a,sendMessage:l,addListener:(n,s,d)=>(o.current[n]||(o.current[n]={}),o.current[n][s]||(o.current[n][s]=[]),o.current[n][s].push(d),()=>{o.current[n][s]=o.current[n][s].filter(u=>u!==d)})};return e.createElement(g.Provider,{value:c},t)},p={},I=async t=>{try{const r=new URL(t).origin;if(p[r]!==void 0)return p[r];if(!(await(await fetch(`${r}/mm-app-manifest.json`)).json()).version)throw new Error("Invalid manifest");return p[r]=!0,!0}catch{}return p[origin]=!1,!1},C=(t,r,f,o=[])=>{const a=e.useContext(g);if(a===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddableZoneProvider");const l=e.useRef(f);return e.useEffect(()=>{l.current=f},[f,...o]),e.useEffect(()=>{if(!(!t||!r))return a.addListener(t,r,(...c)=>l.current(...c))},[a,t,r]),e.useCallback((c,n)=>a.sendMessage(t,c,n),[a,t])};w.propTypes={children:m.node.isRequired};const S=(M.default||M).iframe`
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border: none;
5
- visibility: ${n=>n.isready?"visible":"hidden"};
6
- `,v=({id:n,src:r,path:u,onInit:i=()=>{},...c})=>{const f=e.useRef(),[m,s]=e.useState(),[t,a]=e.useState(0),{registerFrame:d,sendMessage:b,testIsEmbeddable:y}=e.useContext(E),[Z,x]=e.useState(!0),[h,j]=e.useState();return e.useEffect(()=>{u!==void 0&&j(u)},[u]),e.useEffect(()=>{h===void 0||!t||b(n,"navigate",{path:h})},[h,t,n,b]),e.useEffect(()=>{!r||!n||!f||(async()=>{const p=y(r);if(x(p),p){const L=new URL(r);d(n,L.origin,f),i(),s(`${L.origin}/mm-embedded-interop?id=${n}`);return}})()},[r,n,d,f]),C(n,"ready",()=>a(p=>p+1)),Z?e.createElement(S,{isready:t,ref:f,src:m,...c}):e.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{style:{textAlign:"center"}},"Application must adhere to the MM App Manifest specification to be embedded."))};v.propTypes={id:l.string,src:l.string.isRequired,path:l.string,onInit:l.func},o.MMEmbeddableZone=v,o.MMEmbeddableZoneContext=E,o.MMEmbeddableZoneProvider=w,o.testIsEmbeddable=I,o.useEmbeddedEffect=C,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
5
+ visibility: ${t=>t.isready?"visible":"hidden"};
6
+ `,v=({id:t,src:r,path:f,onInit:o=()=>{},context:a,...l})=>{const c=e.useRef(),[n,s]=e.useState(),[d,u]=e.useState(0),{registerFrame:b,sendMessage:E,testIsEmbeddable:Z}=e.useContext(g),[x,j]=e.useState(!0),[h,q]=e.useState();return e.useEffect(()=>{d&&E(t,"set-context",{context:a})},[a,t,d]),e.useEffect(()=>{f!==void 0&&q(f)},[f]),e.useEffect(()=>{h===void 0||!d||E(t,"navigate",{path:h})},[h,d,t,E]),e.useEffect(()=>{!r||!t||!c||(async()=>{const y=Z(r);if(j(y),y){const L=new URL(r);b(t,L.origin,c),o(),s(`${L.origin}/mm-embedded-interop?id=${t}`);return}})()},[r,t,b,c]),C(t,"ready",()=>u(y=>y+1)),x?e.createElement(S,{isready:d,ref:c,src:n,...l}):e.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{style:{textAlign:"center"}},"Application must adhere to the MM App Manifest specification to be embedded."))};v.propTypes={id:m.string,src:m.string.isRequired,path:m.string,onInit:m.func},i.MMEmbeddableZone=v,i.MMEmbeddableZoneContext=g,i.MMEmbeddableZoneProvider=w,i.testIsEmbeddable=I,i.useEmbeddedEffect=C,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@machinemetrics/mm-react-embeddable",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "license": "MIT",
5
5
  "module": "dist/mm-react-embeddable.es.js",
6
6
  "main": "dist/mm-react-embeddable.cjs.js",