@yoopta/table 4.9.4 → 4.9.6

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/index.js +4 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import{generateId as e,Blocks as t,Elements as n,UI as r,useYooptaEditor as o,useBlockData as i,deserializeTextNodes as a,serializeTextNodes as s,serializeTextNodesIntoMarkdown as l,YooptaPlugin as c}from"@yoopta/editor";import{jsxs as d,jsx as u,Fragment as f}from"react/jsx-runtime";import*as p from"react";import{forwardRef as h,createElement as m,useRef as y,useEffect as b,useLayoutEffect as g,useState as v,useMemo as w}from"react";import*as x from"react-dom";function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".yoo-table-mr-2{margin-right:.5rem}.yoo-table-block{display:block}.yoo-table-flex{display:flex}.yoo-table-h-4{height:1rem}.yoo-table-h-\\[14px\\]{height:14px}.yoo-table-w-4{width:1rem}.yoo-table-w-\\[14px\\]{width:14px}.yoo-table-flex-shrink-0{flex-shrink:0}.yoo-table-rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yoo-table-justify-between{justify-content:space-between}.yoopta-table-block{overflow-x:auto;overflow-y:hidden;padding-bottom:.5rem;padding-top:.5rem;position:relative;width:100%}.yoopta-table-block .yoopta-table-options{opacity:0;top:12px;transition:opacity .15s ease-in-out}.yoopta-table-block:hover .yoopta-table-options{opacity:1}.yoopta-table{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-collapse:collapse;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);caption-side:bottom;font-size:.875rem;line-height:1.25rem;table-layout:fixed;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto}.yoopta-table-selecting ::-moz-selection{background:none}.yoopta-table-selecting ::selection{background:none}.yoopta-table tbody{-webkit-user-select:none;-moz-user-select:none;user-select:none}.yoopta-table-row{position:relative;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.yoopta-table-row-selected{border-color:#73b6db;border-width:2px}.yoopta-table-data-cell{fill:currentColor;border-width:1px;border:1px solid #e9e9e7;color:inherit;min-height:32px;position:relative;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);vertical-align:top}.yoopta-table-data-cell[data-cell-selected=true]{background-color:#37352f14}.yoopta-table-data-cell-head{background-color:#f7f6f3}.yoopta-table-data-cell:hover .yoopta-table-column-button,.yoopta-table-data-cell:hover .yoopta-table-row-button{opacity:1}.yoopta-table-data-cell-content{background-color:transparent;caret-color:#37352f;font-size:14px;line-height:20px;max-width:100%;overflow-wrap:break-word;padding:7px 9px;white-space:pre-wrap;width:100%}.yoopta-table-column-button{height:16px;left:calc(50% - 13px);padding:2px 4px;top:-8px;width:26px}.yoopta-table-column-button,.yoopta-table-row-button{--tw-bg-opacity:1;composes:yoopta-button;fill:rgba(55,53,47,.35);align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:4px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),hsla(0,0%,6%,.1) 0 0 0 1px,hsla(0,0%,6%,.1) 0 2px 4px;cursor:pointer;display:flex;justify-content:center;opacity:0;position:absolute;transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:4}.yoopta-table-row-button{height:26px;left:-8px;padding:4px 2px;top:calc(50% - 13px);width:16px}.yoopta-table-icons{height:1rem;margin-right:.5rem;width:1rem}.yoopta-table-resize-handle{flex-grow:0;height:100%;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:0;z-index:1}.yoopta-table-resize-handle-inner{background-color:#2383e200;cursor:col-resize;height:calc(100% + 2px);margin-left:-1px;margin-top:-1px;position:absolute;transition-delay:50ms;transition-duration:.15s;transition-property:background;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:3px}.yoopta-table-resize-handle-inner:hover{background-color:#74b6db}"),"function"==typeof SuppressedError&&SuppressedError;
2
2
  /**
3
- * @license lucide-react v0.436.0 - ISC
3
+ * @license lucide-react v0.453.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
7
  */
8
8
  const O=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ")
9
9
  /**
10
- * @license lucide-react v0.436.0 - ISC
10
+ * @license lucide-react v0.453.0 - ISC
11
11
  *
12
12
  * This source code is licensed under the ISC license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
14
  */;var E={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
15
15
  /**
16
- * @license lucide-react v0.436.0 - ISC
16
+ * @license lucide-react v0.453.0 - ISC
17
17
  *
18
18
  * This source code is licensed under the ISC license.
19
19
  * See the LICENSE file in the root directory of this source tree.
20
20
  */const _=h((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>m("svg",{ref:l,...E,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:O("lucide",o),...s},[...a.map((([e,t])=>m(e,t))),...Array.isArray(i)?i:[i]]))),P=(e,t)=>{const n=h((({className:n,...r},o)=>{return m(_,{ref:o,iconNode:t,className:O(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i}));return n.displayName=`${e}`,n},j=P("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),N=P("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),S=P("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),C=P("CornerDownRight",[["polyline",{points:"15 10 20 15 15 20",key:"1q7qjw"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]),R=P("CornerUpRight",[["polyline",{points:"15 14 20 9 15 4",key:"1tbx3s"}],["path",{d:"M4 20v-7a4 4 0 0 1 4-4h12",key:"1lu4f8"}]]),T=P("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]),A=P("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]),M=P("MoveRight",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]]),z=P("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]),D=P("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]),L=P("TableProperties",[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]),B=P("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);
21
21
  /**
22
- * @license lucide-react v0.436.0 - ISC
22
+ * @license lucide-react v0.453.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/table",
3
- "version": "4.9.4",
3
+ "version": "4.9.6",
4
4
  "description": "Table plugin for Yoopta Editor [IN PROGRESS]",
5
5
  "author": "Darginec05 <devopsbanda@gmail.com>",
6
6
  "homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
@@ -37,5 +37,5 @@
37
37
  "dependencies": {
38
38
  "lucide-react": "^0.436.0"
39
39
  },
40
- "gitHead": "1127f8813a7c0110a4fb304c92be6c88a6972464"
40
+ "gitHead": "a7fca97f9c9d1368491ff4a2694b34ee3f012b61"
41
41
  }