@lotte-innovate/ui-component-test 0.2.24 → 0.2.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,17 @@
1
1
  import React from 'react';
2
2
  import { IAllProps } from '@tinymce/tinymce-react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import 'tinymce/tinymce';
5
- import 'tinymce/themes/silver';
6
- import 'tinymce/models/dom';
7
- import 'tinymce/icons/default';
8
- import 'tinymce/skins/ui/oxide/skin';
9
- import 'tinymce/plugins/advlist';
10
- import 'tinymce/plugins/code';
11
- import 'tinymce/plugins/codesample';
12
- import 'tinymce/plugins/link';
13
- import 'tinymce/plugins/lists';
14
- import 'tinymce/plugins/table';
15
- import 'tinymce/plugins/image';
16
- import 'tinymce/skins/content/default/content';
17
- import 'tinymce/skins/ui/oxide/content';
4
+ import 'tinymce/tinymce.js';
5
+ import 'tinymce/themes/silver/theme.js';
6
+ import 'tinymce/models/dom/model.js';
7
+ import 'tinymce/icons/default/icons.js';
8
+ import 'tinymce/plugins/advlist/plugin.js';
9
+ import 'tinymce/plugins/code/plugin.js';
10
+ import 'tinymce/plugins/codesample/plugin.js';
11
+ import 'tinymce/plugins/link/plugin.js';
12
+ import 'tinymce/plugins/lists/plugin.js';
13
+ import 'tinymce/plugins/table/plugin.js';
14
+ import 'tinymce/plugins/image/plugin.js';
18
15
  export interface EditorProps extends VariantProps<typeof editorVariants> {
19
16
  }
20
17
  declare const editorVariants: (props?: ({
@@ -28,20 +28,17 @@ import { cva } from 'class-variance-authority';
28
28
  import { scalingVariants } from '../../../lib/constants';
29
29
  import { cn } from '../../../lib/utils/utils';
30
30
  import { marked } from 'marked';
31
- import 'tinymce/tinymce';
32
- import 'tinymce/themes/silver';
33
- import 'tinymce/models/dom';
34
- import 'tinymce/icons/default';
35
- import 'tinymce/skins/ui/oxide/skin';
36
- import 'tinymce/plugins/advlist';
37
- import 'tinymce/plugins/code';
38
- import 'tinymce/plugins/codesample';
39
- import 'tinymce/plugins/link';
40
- import 'tinymce/plugins/lists';
41
- import 'tinymce/plugins/table';
42
- import 'tinymce/plugins/image';
43
- import 'tinymce/skins/content/default/content';
44
- import 'tinymce/skins/ui/oxide/content';
31
+ import 'tinymce/tinymce.js';
32
+ import 'tinymce/themes/silver/theme.js';
33
+ import 'tinymce/models/dom/model.js';
34
+ import 'tinymce/icons/default/icons.js';
35
+ import 'tinymce/plugins/advlist/plugin.js';
36
+ import 'tinymce/plugins/code/plugin.js';
37
+ import 'tinymce/plugins/codesample/plugin.js';
38
+ import 'tinymce/plugins/link/plugin.js';
39
+ import 'tinymce/plugins/lists/plugin.js';
40
+ import 'tinymce/plugins/table/plugin.js';
41
+ import 'tinymce/plugins/image/plugin.js';
45
42
  var editorVariants = cva('', {
46
43
  variants: {
47
44
  scaling: __assign({}, scalingVariants),
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Editor as i}from"@tinymce/tinymce-react";import{cva as n}from"class-variance-authority";import{scalingVariants as o}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as s}from"marked";import"tinymce/tinymce";import"tinymce/themes/silver";import"tinymce/models/dom";import"tinymce/icons/default";import"tinymce/skins/ui/oxide/skin";import"tinymce/plugins/advlist";import"tinymce/plugins/code";import"tinymce/plugins/codesample";import"tinymce/plugins/link";import"tinymce/plugins/lists";import"tinymce/plugins/table";import"tinymce/plugins/image";import"tinymce/skins/content/default/content";import"tinymce/skins/ui/oxide/content";var m=function(){return m=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},m.apply(this,arguments)},a=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},c=n("",{variants:{scaling:m({},o),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),l=e((function(e,n){var o=e.className,l=e.size,p=e.scaling,u=a(e,["className","size","scaling"]);return t("div",{className:r(c({size:l,scaling:p}),o),ref:n,children:t(i,m({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"}),i=s(e);t.setContent(i)}})}}},u))})}));l.displayName="Editor";export{l as Editor,l as default};
2
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Editor as i}from"@tinymce/tinymce-react";import{cva as n}from"class-variance-authority";import{scalingVariants as o}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as s}from"marked";import"tinymce/tinymce.js";import"tinymce/themes/silver/theme.js";import"tinymce/models/dom/model.js";import"tinymce/icons/default/icons.js";import"tinymce/plugins/advlist/plugin.js";import"tinymce/plugins/code/plugin.js";import"tinymce/plugins/codesample/plugin.js";import"tinymce/plugins/link/plugin.js";import"tinymce/plugins/lists/plugin.js";import"tinymce/plugins/table/plugin.js";import"tinymce/plugins/image/plugin.js";var l=function(){return l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)},a=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},m=n("",{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"}}),c=e((function(e,n){var o=e.className,c=e.size,p=e.scaling,u=a(e,["className","size","scaling"]);return t("div",{className:r(m({size:c,scaling:p}),o),ref:n,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"}),i=s(e);t.setContent(i)}})}}},u))})}));c.displayName="Editor";export{c as Editor,c as default};
3
3
  //# sourceMappingURL=index.mjs.map