@lotte-innovate/ui-component-test 0.2.45 → 0.2.46
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/components/Editor/index.mjs +3 -0
- package/dist/lib/constants.mjs.map +1 -0
- package/dist/lib/utils/utils.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/lib/dist/lib/components/Editor/index.mjs +0 -3
- package/dist/lib/dist/lib/constants.mjs.map +0 -1
- package/dist/lib/dist/lib/utils/utils.mjs.map +0 -1
- /package/dist/lib/{dist/lib/components → components}/Editor/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib/constants.mjs → constants.mjs} +0 -0
- /package/dist/lib/{dist/lib/index.mjs → index.mjs} +0 -0
- /package/dist/lib/{dist/lib/index.mjs.map → index.mjs.map} +0 -0
- /package/dist/lib/{dist/lib/utils → utils}/utils.mjs +0 -0
@@ -0,0 +1,3 @@
|
|
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};
|
3
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.mjs","sources":["../lib/constants.js"],"sourcesContent":["export var scalingVariants = {\n '90%': 'scale-90',\n '95%': 'scale-95',\n '100%': 'scale-100',\n '105%': 'scale-105',\n '110%': 'scale-110',\n};\n"],"names":["scalingVariants"],"mappings":"AAAU,IAACA,EAAkB,CACzB,MAAO,WACP,MAAO,WACP,OAAQ,YACR,OAAQ,YACR,OAAQ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../lib/utils/utils.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n// tailwind를 merge할 때 발생할 수 있는 클래스 충돌 문제 해결\nexport function cn() {\n var inputs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputs[_i] = arguments[_i];\n }\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","_i","arguments","length","twMerge","clsx"],"mappings":"qEAGO,SAASA,IAEZ,IADA,IAAIC,EAAS,GACJC,EAAK,EAAGA,EAAKC,UAAUC,OAAQF,IACpCD,EAAOC,GAAMC,UAAUD,GAE3B,OAAOG,EAAQC,EAAKL,GACxB"}
|
package/package.json
CHANGED
@@ -1,3 +0,0 @@
|
|
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};
|
3
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../lib/constants.js"],"sourcesContent":["export var scalingVariants = {\n '90%': 'scale-90',\n '95%': 'scale-95',\n '100%': 'scale-100',\n '105%': 'scale-105',\n '110%': 'scale-110',\n};\n"],"names":["scalingVariants"],"mappings":"AAAU,IAACA,EAAkB,CACzB,MAAO,WACP,MAAO,WACP,OAAQ,YACR,OAAQ,YACR,OAAQ"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../../../lib/utils/utils.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n// tailwind를 merge할 때 발생할 수 있는 클래스 충돌 문제 해결\nexport function cn() {\n var inputs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputs[_i] = arguments[_i];\n }\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","_i","arguments","length","twMerge","clsx"],"mappings":"qEAGO,SAASA,IAEZ,IADA,IAAIC,EAAS,GACJC,EAAK,EAAGA,EAAKC,UAAUC,OAAQF,IACpCD,EAAOC,GAAMC,UAAUD,GAE3B,OAAOG,EAAQC,EAAKL,GACxB"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|