@lotte-innovate/ui-component-test 0.2.45 → 0.2.47
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/node_modules/next/dist/shared/lib/dynamic.mjs +1 -1
- package/dist/lib/node_modules/next/dist/shared/lib/dynamic.mjs.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/lib/utils/utils.mjs.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- 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"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__module as e}from"../../../../../_virtual/dynamic2.mjs";import{__require as t}from"../../../../@swc/helpers/cjs/_interop_require_default.mjs";import r from"react
|
1
|
+
import{__module as e}from"../../../../../_virtual/dynamic2.mjs";import{__require as t}from"../../../../@swc/helpers/cjs/_interop_require_default.mjs";import r from"react";import{__require as l}from"./loadable.shared-runtime.mjs";var n;function o(){return n||(n=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(n,{noSSR:function(){return f},default:function(){return s}});const o=t(),u=o._(r),a=o._(l()),d="undefined"==typeof window;function i(e){return{default:(null==e?void 0:e.default)||e}}function f(e,t){if(delete t.webpack,delete t.modules,!d)return e(t);const r=t.loading;return()=>u.default.createElement(r,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function s(e,t){let r=a.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;if(!l)return null;if("production"!==process.env.NODE_ENV){if(r)return null;if(t)return u.default.createElement("p",null,t.message,u.default.createElement("br",null),t.stack)}return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e}),l={...l,...t};const n=l.loader;return l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr?r({...l,loader:()=>null!=n?n().then(i):Promise.resolve(i((()=>null)))}):(delete l.webpack,delete l.modules,f(r,l))}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)}(e,e.exports)),e.exports}e.exports;export{o as __require};
|
2
2
|
//# sourceMappingURL=dynamic.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dynamic.mjs","sources":["../../../../../../../node_modules/next/dist/shared/lib/dynamic.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n noSSR: null,\n default: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n noSSR: function() {\n return noSSR;\n },\n default: function() {\n return dynamic;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst
|
1
|
+
{"version":3,"file":"dynamic.mjs","sources":["../../../../../../../node_modules/next/dist/shared/lib/dynamic.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n noSSR: null,\n default: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n noSSR: function() {\n return noSSR;\n },\n default: function() {\n return dynamic;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst _loadablesharedruntime = /*#__PURE__*/ _interop_require_default._(require(\"./loadable.shared-runtime\"));\nconst isServerSide = typeof window === \"undefined\";\n// Normalize loader to return the module as form { default: Component } for `React.lazy`.\n// Also for backward compatible since next/dynamic allows to resolve a component directly with loader\n// Client component reference proxy need to be converted to a module.\nfunction convertModule(mod) {\n return {\n default: (mod == null ? void 0 : mod.default) || mod\n };\n}\nfunction noSSR(LoadableInitializer, loadableOptions) {\n // Removing webpack and modules means react-loadable won't try preloading\n delete loadableOptions.webpack;\n delete loadableOptions.modules;\n // This check is necessary to prevent react-loadable from initializing on the server\n if (!isServerSide) {\n return LoadableInitializer(loadableOptions);\n }\n const Loading = loadableOptions.loading;\n // This will only be rendered on the server side\n return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {\n error: null,\n isLoading: true,\n pastDelay: false,\n timedOut: false\n });\n}\nfunction dynamic(dynamicOptions, options) {\n let loadableFn = _loadablesharedruntime.default;\n let loadableOptions = {\n // A loading component is not required, so we default it\n loading: (param)=>{\n let { error, isLoading, pastDelay } = param;\n if (!pastDelay) return null;\n if (process.env.NODE_ENV !== \"production\") {\n if (isLoading) {\n return null;\n }\n if (error) {\n return /*#__PURE__*/ _react.default.createElement(\"p\", null, error.message, /*#__PURE__*/ _react.default.createElement(\"br\", null), error.stack);\n }\n }\n return null;\n }\n };\n // Support for direct import(), eg: dynamic(import('../hello-world'))\n // Note that this is only kept for the edge case where someone is passing in a promise as first argument\n // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))\n // To make sure we don't execute the import without rendering first\n if (dynamicOptions instanceof Promise) {\n loadableOptions.loader = ()=>dynamicOptions;\n // Support for having import as a function, eg: dynamic(() => import('../hello-world'))\n } else if (typeof dynamicOptions === \"function\") {\n loadableOptions.loader = dynamicOptions;\n // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})\n } else if (typeof dynamicOptions === \"object\") {\n loadableOptions = {\n ...loadableOptions,\n ...dynamicOptions\n };\n }\n // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})\n loadableOptions = {\n ...loadableOptions,\n ...options\n };\n const loaderFn = loadableOptions.loader;\n const loader = ()=>loaderFn != null ? loaderFn().then(convertModule) : Promise.resolve(convertModule(()=>null));\n // coming from build/babel/plugins/react-loadable-plugin.js\n if (loadableOptions.loadableGenerated) {\n loadableOptions = {\n ...loadableOptions,\n ...loadableOptions.loadableGenerated\n };\n delete loadableOptions.loadableGenerated;\n }\n // support for disabling server side rendering, eg: dynamic(() => import('../hello-world'), {ssr: false}).\n if (typeof loadableOptions.ssr === \"boolean\" && !loadableOptions.ssr) {\n delete loadableOptions.webpack;\n delete loadableOptions.modules;\n return noSSR(loadableFn, loadableOptions);\n }\n return loadableFn({\n ...loadableOptions,\n loader: loader\n });\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=dynamic.js.map"],"names":["Object","defineProperty","exports","value","target","all","name","enumerable","get","_export","noSSR","default","dynamic","_interop_require_default","require$$0","_react","_","require$$1","_loadablesharedruntime","require$$2","isServerSide","window","convertModule","mod","LoadableInitializer","loadableOptions","webpack","modules","Loading","loading","createElement","error","isLoading","pastDelay","timedOut","dynamicOptions","options","loadableFn","param","process","env","NODE_ENV","message","stack","Promise","loader","loaderFn","loadableGenerated","ssr","then","resolve","__esModule","assign","module"],"mappings":"qRACAA,OAAOC,eAAwBC,EAAA,aAAc,CACzCC,OAAO,IAMX,SAAiBC,EAAQC,GACrB,IAAI,IAAIC,KAAQD,EAAIL,OAAOC,eAAeG,EAAQE,EAAM,CACpDC,YAAY,EACZC,IAAKH,EAAIC,IAEjB,CACAG,CAAQP,EAAS,CACbQ,MAAO,WACH,OAAOA,CACV,EACDC,QAAS,WACL,OAAOC,CACf,IAEA,MAAMC,EAA6EC,IAC7EC,EAAuBF,EAAyBG,EAAEC,GAClDC,EAAuCL,EAAyBG,EAAEG,KAClEC,EAAiC,oBAAXC,OAI5B,SAASC,EAAcC,GACnB,MAAO,CACHZ,SAAiB,MAAPY,OAAc,EAASA,EAAIZ,UAAYY,EAEzD,CACA,SAASb,EAAMc,EAAqBC,GAKhC,UAHOA,EAAgBC,eAChBD,EAAgBE,SAElBP,EACD,OAAOI,EAAoBC,GAE/B,MAAMG,EAAUH,EAAgBI,QAEhC,MAAO,IAAkBd,EAAOJ,QAAQmB,cAAcF,EAAS,CACvDG,MAAO,KACPC,WAAW,EACXC,WAAW,EACXC,UAAU,GAEtB,CACA,SAAStB,EAAQuB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