@lotte-innovate/ui-component-test 0.2.47 → 0.2.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/dist/lib/components/Editor/index.js +1 -4
  2. package/dist/lib/components/Editor/index.mjs +1 -1
  3. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/package.json +1 -1
  6. package/dist/lib/_virtual/_commonjs-dynamic-modules.mjs +0 -2
  7. package/dist/lib/_virtual/_commonjs-dynamic-modules.mjs.map +0 -1
  8. package/dist/lib/_virtual/_commonjsHelpers.mjs +0 -2
  9. package/dist/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
  10. package/dist/lib/_virtual/_interop_require_default.mjs +0 -2
  11. package/dist/lib/_virtual/_interop_require_default.mjs.map +0 -1
  12. package/dist/lib/_virtual/dynamic.mjs +0 -2
  13. package/dist/lib/_virtual/dynamic.mjs.map +0 -1
  14. package/dist/lib/_virtual/dynamic2.mjs +0 -2
  15. package/dist/lib/_virtual/dynamic2.mjs.map +0 -1
  16. package/dist/lib/_virtual/loadable-context.shared-runtime.mjs +0 -2
  17. package/dist/lib/_virtual/loadable-context.shared-runtime.mjs.map +0 -1
  18. package/dist/lib/_virtual/loadable.shared-runtime.mjs +0 -2
  19. package/dist/lib/_virtual/loadable.shared-runtime.mjs.map +0 -1
  20. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_default.mjs +0 -2
  21. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_default.mjs.map +0 -1
  22. package/dist/lib/node_modules/next/dist/shared/lib/dynamic.mjs +0 -2
  23. package/dist/lib/node_modules/next/dist/shared/lib/dynamic.mjs.map +0 -1
  24. package/dist/lib/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.mjs +0 -2
  25. package/dist/lib/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.mjs.map +0 -1
  26. package/dist/lib/node_modules/next/dist/shared/lib/loadable.shared-runtime.mjs +0 -2
  27. package/dist/lib/node_modules/next/dist/shared/lib/loadable.shared-runtime.mjs.map +0 -1
  28. package/dist/lib/node_modules/next/dynamic.mjs +0 -2
  29. package/dist/lib/node_modules/next/dynamic.mjs.map +0 -1
@@ -59,10 +59,10 @@ var __rest = (this && this.__rest) || function (s, e) {
59
59
  };
60
60
  import { jsx as _jsx } from "react/jsx-runtime";
61
61
  import { forwardRef, useEffect, useState, } from 'react';
62
+ import { Editor as EditorUI } from '@tinymce/tinymce-react';
62
63
  import { cva } from 'class-variance-authority';
63
64
  import { scalingVariants } from '../../../lib/constants';
64
65
  import { cn } from '../../../lib/utils/utils';
65
- import dynamic from 'next/dynamic';
66
66
  import { marked } from 'marked';
67
67
  var editorVariants = cva('', {
68
68
  variants: {
@@ -131,9 +131,6 @@ export var Editor = forwardRef(function (_a, ref) {
131
131
  if (!isClient) {
132
132
  return null;
133
133
  }
134
- var EditorUI = dynamic(function () { return import('@tinymce/tinymce-react').then(function (mod) { return mod.Editor; }); }, {
135
- ssr: false,
136
- });
137
134
  return (_jsx("div", { className: cn(editorVariants({ size: size, scaling: scaling }), className), ref: ref, children: _jsx(EditorUI, __assign({ init: {
138
135
  base_url: 'tinymce',
139
136
  width: '100%',
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useState as n,useEffect as r}from"react";import{cva as i}from"class-variance-authority";import{scalingVariants as o}from"../../constants.mjs";import{cn as s}from"../../utils/utils.mjs";import a from"../../_virtual/dynamic.mjs";import{marked as c}from"marked";var l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l.apply(this,arguments)},u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},p=function(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},f=i("",{variants:{scaling:l({},o),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),d=e((function(e,i){var o=e.className,d=e.size,y=e.scaling,g=m(e,["className","size","scaling"]),b=n(!1),h=b[0],v=b[1];if(r((function(){if("undefined"!=typeof window){u(void 0,void 0,void 0,(function(){return p(this,(function(t){switch(t.label){case 0:return[4,import("tinymce/tinymce.js")];case 1:return t.sent(),[4,import("tinymce/themes/silver/theme.js")];case 2:return t.sent(),[4,import("tinymce/models/dom/model.js")];case 3:return t.sent(),[4,import("tinymce/icons/default/icons.js")];case 4:return t.sent(),[4,import("tinymce/plugins/advlist/plugin.js")];case 5:return t.sent(),[4,import("tinymce/plugins/code/plugin.js")];case 6:return t.sent(),[4,import("tinymce/plugins/codesample/plugin.js")];case 7:return t.sent(),[4,import("tinymce/plugins/link/plugin.js")];case 8:return t.sent(),[4,import("tinymce/plugins/lists/plugin.js")];case 9:return t.sent(),[4,import("tinymce/plugins/table/plugin.js")];case 10:return t.sent(),[4,import("tinymce/plugins/image/plugin.js")];case 11:return t.sent(),[2]}}))})).then((function(){v(!0)}))}}),[]),!h)return null;var w=a((function(){return import("@tinymce/tinymce-react").then((function(t){return t.Editor}))}),{ssr:!1});return t("div",{className:s(f({size:d,scaling:y}),o),ref:i,children:t(w,l({init:{base_url:"tinymce",width:"100%",height:"100%",plugins:"link table lists code codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var e=t.getContent({format:"text"}),n=c(e);t.setContent(n)}})}}},g))})}));d.displayName="Editor";export{d as Editor,d as default};
2
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useState as n,useEffect as r}from"react";import{Editor as i}from"@tinymce/tinymce-react";import{cva as o}from"class-variance-authority";import{scalingVariants as s}from"../../constants.mjs";import{cn as a}from"../../utils/utils.mjs";import{marked as c}from"marked";var l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l.apply(this,arguments)},u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},p=function(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},f=o("",{variants:{scaling:l({},s),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),d=e((function(e,o){var s=e.className,d=e.size,y=e.scaling,g=m(e,["className","size","scaling"]),b=n(!1),h=b[0],v=b[1];return r((function(){if("undefined"!=typeof window){u(void 0,void 0,void 0,(function(){return p(this,(function(t){switch(t.label){case 0:return[4,import("tinymce/tinymce.js")];case 1:return t.sent(),[4,import("tinymce/themes/silver/theme.js")];case 2:return t.sent(),[4,import("tinymce/models/dom/model.js")];case 3:return t.sent(),[4,import("tinymce/icons/default/icons.js")];case 4:return t.sent(),[4,import("tinymce/plugins/advlist/plugin.js")];case 5:return t.sent(),[4,import("tinymce/plugins/code/plugin.js")];case 6:return t.sent(),[4,import("tinymce/plugins/codesample/plugin.js")];case 7:return t.sent(),[4,import("tinymce/plugins/link/plugin.js")];case 8:return t.sent(),[4,import("tinymce/plugins/lists/plugin.js")];case 9:return t.sent(),[4,import("tinymce/plugins/table/plugin.js")];case 10:return t.sent(),[4,import("tinymce/plugins/image/plugin.js")];case 11:return t.sent(),[2]}}))})).then((function(){v(!0)}))}}),[]),h?t("div",{className:a(f({size:d,scaling:y}),s),ref:o,children:t(i,l({init:{base_url:"tinymce",width:"100%",height:"100%",plugins:"link table lists code codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var e=t.getContent({format:"text"}),n=c(e);t.setContent(n)}})}}},g))}):null}));d.displayName="Editor";export{d as Editor,d as default};
3
3
  //# sourceMappingURL=index.mjs.map