@layers-app/editor 0.0.14 → 0.0.15-swagger

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 +1 @@
1
- "use strict";const c=require("./layers.Dyb1dHPy.js"),i=require("react"),_=require("react/jsx-runtime");function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k=E(function(e){const t=new URLSearchParams;t.append("code",e);for(let o=1;o<arguments.length;o++)t.append("v",arguments[o]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function m(e){const t=e.transform();return t!==null?new Set([t]):new Set}function O({initialEditor:e,children:t,initialNodes:o,initialTheme:g,skipCollabChecks:x}){const p=i.useRef(!1),u=i.useContext(c.l$2);u==null&&k(9);const[l,{getTheme:v}]=u,w=i.useMemo(()=>{const s=g||v()||void 0,y=c.o$2(u,s);if(s!==void 0&&(e._config.theme=s),e._parentEditor=l,o)for(let n of o){let a=null,r=null;if(typeof n!="function"){const f=n;n=f.replace,a=f.with,r=f.withKlass||null}const h=e._nodes.get(n.getType());e._nodes.set(n.getType(),{exportDOM:h?h.exportDOM:void 0,klass:n,replace:a,replaceWithKlass:r,transforms:m(n)})}else{const n=e._nodes=new Map(l._nodes);for(const[a,r]of n)e._nodes.set(a,{exportDOM:r.exportDOM,klass:r.klass,replace:r.replace,replaceWithKlass:r.replaceWithKlass,transforms:m(r.klass)})}return e._config.namespace=l._config.namespace,e._editable=l._editable,[e,y]},[]),{isCollabActive:M,yjsDocMap:b}=c.l(),d=x||p.current||b.has(e.getKey());return i.useEffect(()=>{d&&(p.current=!0)},[d]),i.useEffect(()=>l.registerEditableListener(s=>{e.setEditable(s)}),[e,l]),_.jsx(c.l$2.Provider,{value:w,children:!M||d?t:null})}function P({children:e,className:t}){return _.jsx("div",{className:t||"Placeholder__root",children:e})}exports.Placeholder=P;exports.d=O;
1
+ "use strict";const c=require("./layers.D1A3jNDb.js"),i=require("react"),_=require("react/jsx-runtime");function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k=E(function(e){const t=new URLSearchParams;t.append("code",e);for(let o=1;o<arguments.length;o++)t.append("v",arguments[o]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function m(e){const t=e.transform();return t!==null?new Set([t]):new Set}function O({initialEditor:e,children:t,initialNodes:o,initialTheme:g,skipCollabChecks:x}){const p=i.useRef(!1),u=i.useContext(c.l$2);u==null&&k(9);const[l,{getTheme:v}]=u,w=i.useMemo(()=>{const s=g||v()||void 0,y=c.o$2(u,s);if(s!==void 0&&(e._config.theme=s),e._parentEditor=l,o)for(let n of o){let a=null,r=null;if(typeof n!="function"){const f=n;n=f.replace,a=f.with,r=f.withKlass||null}const h=e._nodes.get(n.getType());e._nodes.set(n.getType(),{exportDOM:h?h.exportDOM:void 0,klass:n,replace:a,replaceWithKlass:r,transforms:m(n)})}else{const n=e._nodes=new Map(l._nodes);for(const[a,r]of n)e._nodes.set(a,{exportDOM:r.exportDOM,klass:r.klass,replace:r.replace,replaceWithKlass:r.replaceWithKlass,transforms:m(r.klass)})}return e._config.namespace=l._config.namespace,e._editable=l._editable,[e,y]},[]),{isCollabActive:M,yjsDocMap:b}=c.l(),d=x||p.current||b.has(e.getKey());return i.useEffect(()=>{d&&(p.current=!0)},[d]),i.useEffect(()=>l.registerEditableListener(s=>{e.setEditable(s)}),[e,l]),_.jsx(c.l$2.Provider,{value:w,children:!M||d?t:null})}function P({children:e,className:t}){return _.jsx("div",{className:t||"Placeholder__root",children:e})}exports.Placeholder=P;exports.d=O;
@@ -1,7 +1,7 @@
1
1
  import { jsx as g, jsxs as $, Fragment as F } from "react/jsx-runtime";
2
2
  import { useState as Y, useMemo as V, useLayoutEffect as I, useEffect as b, Suspense as q, useRef as A } from "react";
3
- import { N as T, D as G, g as i, y as c, z as u, A as J, G as Q, H as W, J as Z, M as ee, O as te, P as ne, j as re, Q as z, m as oe, S, k as se, T as ae, U as M, V as O, W as ie, X as ce, Y as le, Z as ue, _ as de, a0 as fe, a1 as me, a2 as ge, u as B, a3 as pe, a4 as Ce, a5 as he, a6 as ye, a7 as ve, a8 as Ee, a9 as we, l as ke, a as De, aa as be, ab as Le, q as Re, s as Se, c as x, ac as P } from "./layers.B3PKFuLO.js";
4
- import { d as xe, P as Pe } from "./layers.CovbS90x.js";
3
+ import { N as T, D as G, g as i, y as c, z as u, A as J, G as Q, H as W, J as Z, M as ee, O as te, P as ne, j as re, Q as z, m as oe, S, k as se, T as ae, U as M, V as O, W as ie, X as ce, Y as le, Z as ue, _ as de, a0 as fe, a1 as me, a2 as ge, u as B, a3 as pe, a4 as Ce, a5 as he, a6 as ye, a7 as ve, a8 as Ee, a9 as we, l as ke, a as De, aa as be, ab as Le, q as Re, s as Se, c as x, ac as P } from "./layers.36_3ol3v.js";
4
+ import { d as xe, P as Pe } from "./layers.Di1ekcMX.js";
5
5
  import { flushSync as $e, createPortal as Ne } from "react-dom";
6
6
  const E = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Te = E && "documentMode" in document ? document.documentMode : null, Be = !(!E || !("InputEvent" in window) || Te) && "getTargetRanges" in new window.InputEvent("input"), _e = E && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), X = E && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Ae = E && /^(?=.*Chrome).*/i.test(navigator.userAgent), We = E && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Ae;
7
7
  function K(n, t) {