@lotte-innovate/ui-component-test 0.2.7 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/README.md +53 -0
  2. package/dist/lib/components/Editor/index.d.ts +1 -1
  3. package/dist/lib/components/Editor/index.js +1 -1
  4. package/dist/lib/components/Editor/index.mjs +1 -1
  5. package/dist/lib/constants.d.ts +0 -647
  6. package/dist/lib/constants.js +0 -895
  7. package/dist/lib/constants.mjs.map +1 -1
  8. package/dist/lib/index.d.ts +0 -1
  9. package/dist/lib/index.js +0 -1
  10. package/dist/lib/index.mjs +1 -1
  11. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  12. package/dist/tailwind.config.js +0 -42
  13. package/dist/tsconfig.tsbuildinfo +1 -1
  14. package/package.json +5 -11
  15. package/post-tinymce.js +18 -0
  16. package/dist/lib/color/alpha.d.ts +0 -784
  17. package/dist/lib/color/alpha.js +0 -784
  18. package/dist/lib/color/constants.d.ts +0 -15
  19. package/dist/lib/color/constants.js +0 -265
  20. package/dist/lib/color/dark.d.ts +0 -392
  21. package/dist/lib/color/dark.js +0 -392
  22. package/dist/lib/color/krdsColors.d.ts +0 -309
  23. package/dist/lib/color/krdsColors.js +0 -309
  24. package/dist/lib/color/light.d.ts +0 -392
  25. package/dist/lib/color/light.js +0 -393
  26. package/dist/lib/theme/ThemeProvider.d.ts +0 -16
  27. package/dist/lib/theme/ThemeProvider.js +0 -29
  28. package/dist/lib/theme/ThemeProvider.mjs +0 -3
  29. package/dist/lib/theme/ThemeProvider.mjs.map +0 -1
  30. package/dist/lib/theme/index.d.ts +0 -2
  31. package/dist/lib/theme/index.js +0 -2
  32. package/dist/lib/types.d.ts +0 -90
  33. package/dist/lib/types.js +0 -1
  34. package/public/tinymce/CHANGELOG.md +0 -3453
  35. package/public/tinymce/README.md +0 -73
  36. package/public/tinymce/bower.json +0 -27
  37. package/public/tinymce/composer.json +0 -52
  38. package/public/tinymce/icons/default/icons.js +0 -194
  39. package/public/tinymce/icons/default/icons.min.js +0 -1
  40. package/public/tinymce/icons/default/icons.mjs +0 -2
  41. package/public/tinymce/icons/default/icons.mjs.map +0 -1
  42. package/public/tinymce/icons/default/index.d.ts +0 -1
  43. package/public/tinymce/icons/default/index.js +0 -7
  44. package/public/tinymce/icons/default/index.mjs +0 -2
  45. package/public/tinymce/icons/default/index.mjs.map +0 -1
  46. package/public/tinymce/license.txt +0 -21
  47. package/public/tinymce/models/dom/index.d.ts +0 -1
  48. package/public/tinymce/models/dom/index.js +0 -7
  49. package/public/tinymce/models/dom/index.mjs +0 -2
  50. package/public/tinymce/models/dom/index.mjs.map +0 -1
  51. package/public/tinymce/models/dom/model.js +0 -8040
  52. package/public/tinymce/models/dom/model.min.js +0 -4
  53. package/public/tinymce/models/dom/model.mjs +0 -2
  54. package/public/tinymce/models/dom/model.mjs.map +0 -1
  55. package/public/tinymce/package.json +0 -32
  56. package/public/tinymce/plugins/advlist/index.d.ts +0 -1
  57. package/public/tinymce/plugins/advlist/index.js +0 -7
  58. package/public/tinymce/plugins/advlist/index.mjs +0 -2
  59. package/public/tinymce/plugins/advlist/index.mjs.map +0 -1
  60. package/public/tinymce/plugins/advlist/plugin.js +0 -259
  61. package/public/tinymce/plugins/advlist/plugin.min.js +0 -4
  62. package/public/tinymce/plugins/advlist/plugin.mjs +0 -2
  63. package/public/tinymce/plugins/advlist/plugin.mjs.map +0 -1
  64. package/public/tinymce/plugins/autolink/index.js +0 -7
  65. package/public/tinymce/plugins/autolink/plugin.js +0 -228
  66. package/public/tinymce/plugins/autolink/plugin.min.js +0 -4
  67. package/public/tinymce/plugins/code/index.d.ts +0 -1
  68. package/public/tinymce/plugins/code/index.js +0 -7
  69. package/public/tinymce/plugins/code/index.mjs +0 -2
  70. package/public/tinymce/plugins/code/index.mjs.map +0 -1
  71. package/public/tinymce/plugins/code/plugin.js +0 -85
  72. package/public/tinymce/plugins/code/plugin.min.js +0 -4
  73. package/public/tinymce/plugins/code/plugin.mjs +0 -2
  74. package/public/tinymce/plugins/code/plugin.mjs.map +0 -1
  75. package/public/tinymce/plugins/codesample/index.d.ts +0 -1
  76. package/public/tinymce/plugins/codesample/index.js +0 -7
  77. package/public/tinymce/plugins/codesample/index.mjs +0 -2
  78. package/public/tinymce/plugins/codesample/index.mjs.map +0 -1
  79. package/public/tinymce/plugins/codesample/plugin.d.ts +0 -45
  80. package/public/tinymce/plugins/codesample/plugin.js +0 -2463
  81. package/public/tinymce/plugins/codesample/plugin.min.js +0 -4
  82. package/public/tinymce/plugins/codesample/plugin.mjs +0 -2
  83. package/public/tinymce/plugins/codesample/plugin.mjs.map +0 -1
  84. package/public/tinymce/plugins/image/index.d.ts +0 -1
  85. package/public/tinymce/plugins/image/index.js +0 -7
  86. package/public/tinymce/plugins/image/index.mjs +0 -2
  87. package/public/tinymce/plugins/image/index.mjs.map +0 -1
  88. package/public/tinymce/plugins/image/plugin.js +0 -1505
  89. package/public/tinymce/plugins/image/plugin.min.js +0 -4
  90. package/public/tinymce/plugins/image/plugin.mjs +0 -2
  91. package/public/tinymce/plugins/image/plugin.mjs.map +0 -1
  92. package/public/tinymce/plugins/link/index.d.ts +0 -1
  93. package/public/tinymce/plugins/link/index.js +0 -7
  94. package/public/tinymce/plugins/link/index.mjs +0 -2
  95. package/public/tinymce/plugins/link/index.mjs.map +0 -1
  96. package/public/tinymce/plugins/link/plugin.js +0 -1242
  97. package/public/tinymce/plugins/link/plugin.min.js +0 -4
  98. package/public/tinymce/plugins/link/plugin.mjs +0 -2
  99. package/public/tinymce/plugins/link/plugin.mjs.map +0 -1
  100. package/public/tinymce/plugins/lists/index.d.ts +0 -1
  101. package/public/tinymce/plugins/lists/index.js +0 -7
  102. package/public/tinymce/plugins/lists/index.mjs +0 -2
  103. package/public/tinymce/plugins/lists/index.mjs.map +0 -1
  104. package/public/tinymce/plugins/lists/plugin.js +0 -2172
  105. package/public/tinymce/plugins/lists/plugin.min.js +0 -4
  106. package/public/tinymce/plugins/lists/plugin.mjs +0 -2
  107. package/public/tinymce/plugins/lists/plugin.mjs.map +0 -1
  108. package/public/tinymce/plugins/table/index.d.ts +0 -1
  109. package/public/tinymce/plugins/table/index.js +0 -7
  110. package/public/tinymce/plugins/table/index.mjs +0 -2
  111. package/public/tinymce/plugins/table/index.mjs.map +0 -1
  112. package/public/tinymce/plugins/table/plugin.js +0 -3462
  113. package/public/tinymce/plugins/table/plugin.min.js +0 -4
  114. package/public/tinymce/plugins/table/plugin.mjs +0 -2
  115. package/public/tinymce/plugins/table/plugin.mjs.map +0 -1
  116. package/public/tinymce/skins/content/default/content.css +0 -61
  117. package/public/tinymce/skins/content/default/content.js +0 -2
  118. package/public/tinymce/skins/content/default/content.min.css +0 -1
  119. package/public/tinymce/skins/content/default/content.mjs +0 -2
  120. package/public/tinymce/skins/content/default/content.mjs.map +0 -1
  121. package/public/tinymce/skins/ui/oxide/content.css +0 -785
  122. package/public/tinymce/skins/ui/oxide/content.inline.css +0 -779
  123. package/public/tinymce/skins/ui/oxide/content.inline.js +0 -2
  124. package/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
  125. package/public/tinymce/skins/ui/oxide/content.js +0 -2
  126. package/public/tinymce/skins/ui/oxide/content.min.css +0 -1
  127. package/public/tinymce/skins/ui/oxide/content.mjs +0 -2
  128. package/public/tinymce/skins/ui/oxide/content.mjs.map +0 -1
  129. package/public/tinymce/skins/ui/oxide/skin.css +0 -3763
  130. package/public/tinymce/skins/ui/oxide/skin.js +0 -2
  131. package/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  132. package/public/tinymce/skins/ui/oxide/skin.mjs +0 -2
  133. package/public/tinymce/skins/ui/oxide/skin.mjs.map +0 -1
  134. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  135. package/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
  136. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  137. package/public/tinymce/skins/ui/oxide-dark/content.css +0 -766
  138. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
  139. package/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -2
  140. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
  141. package/public/tinymce/skins/ui/oxide-dark/content.js +0 -2
  142. package/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
  143. package/public/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
  144. package/public/tinymce/skins/ui/oxide-dark/skin.js +0 -2
  145. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  146. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  147. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
  148. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  149. package/public/tinymce/themes/silver/index.d.ts +0 -1
  150. package/public/tinymce/themes/silver/index.js +0 -7
  151. package/public/tinymce/themes/silver/index.mjs +0 -2
  152. package/public/tinymce/themes/silver/index.mjs.map +0 -1
  153. package/public/tinymce/themes/silver/theme.js +0 -30775
  154. package/public/tinymce/themes/silver/theme.min.js +0 -384
  155. package/public/tinymce/themes/silver/theme.mjs +0 -2
  156. package/public/tinymce/themes/silver/theme.mjs.map +0 -1
  157. package/public/tinymce/tinymce.d.ts +0 -3238
  158. package/public/tinymce/tinymce.js +0 -31779
  159. package/public/tinymce/tinymce.min.js +0 -384
  160. package/public/tinymce/tinymce.mjs +0 -2
  161. package/public/tinymce/tinymce.mjs.map +0 -1
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # LOTTE UI COMPONENT LIBRARY
2
+
3
+ <br />
4
+
5
+ ## 목차
6
+
7
+ - [Introduction](#introduction)
8
+ - [Installation](#installation)
9
+ - [Usage](#usage)
10
+ - [License](#license)
11
+
12
+ ## Introduction
13
+
14
+ L-UI 에디터를 포함한 단일 패키지입니다.
15
+
16
+ 에디터 컴포넌트는 웹 애플리케이션에서 사용할 수 있는 WYSIWYG HTML 편집기입니다.
17
+
18
+ 다양한 플러그인을 통해 기능을 확장할 수 있으며 상세 기능은 이 [링크](https://www.tiny.cloud/docs/tinymce/6/examples/)에서 확인 가능합니다.
19
+
20
+ ## Installation
21
+
22
+ 패키지를 설치하기 위해 아래 명령어를 사용합니다.
23
+
24
+ ```bash
25
+ npm i @lotte-innovate/lui-editor
26
+ ```
27
+
28
+ ```bash
29
+ yarn add @lotte-innovate/lui-editor
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ React 프로젝트에서 에디터를 사용하는 방법에 대한 예시입니다.
35
+
36
+ ```javascript
37
+ import React from 'react';
38
+ import { Editor } from '@lotte-innovate/lui-editor';
39
+
40
+ const App = () => {
41
+ return (
42
+ <div>
43
+ <Editor />
44
+ </div>
45
+ );
46
+ };
47
+
48
+ export default App;
49
+ ```
50
+
51
+ ## License
52
+
53
+ @lotte-innovate
@@ -18,7 +18,7 @@ import 'tinymce/skins/ui/oxide/content';
18
18
  export interface EditorProps extends VariantProps<typeof editorVariants> {
19
19
  }
20
20
  declare const editorVariants: (props?: ({
21
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
21
+ scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
22
22
  size?: "small" | "medium" | "large" | null | undefined;
23
23
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
24
24
  export declare const Editor: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & EditorProps & IAllProps & React.RefAttributes<HTMLDivElement>>;
@@ -64,7 +64,7 @@ export var Editor = forwardRef(function (_a, ref) {
64
64
  height: '100%',
65
65
  plugins: 'link table code lists codesample',
66
66
  menubar: false,
67
- toolbar: 'blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown',
67
+ toolbar: 'blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat markdown',
68
68
  content_style: 'body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }',
69
69
  setup: function (editor) {
70
70
  editor.ui.registry.addButton('inlinecode', {
@@ -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 code lists 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 i}from"react";import{Editor as e}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 i,e=1,n=arguments.length;e<n;e++)for(var o in i=arguments[e])Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o]);return t},m.apply(this,arguments)},a=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)i.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e},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=i((function(i,n){var o=i.className,l=i.size,p=i.scaling,u=a(i,["className","size","scaling"]);return t("div",{className:r(c({size:l,scaling:p}),o),ref:n,children:t(e,m({init:{base_url:"tinymce",width:"100%",height:"100%",plugins:"link table code lists codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat 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 i=t.getContent({format:"text"}),e=s(i);t.setContent(e)}})}}},u))})}));l.displayName="Editor";export{l as Editor,l as default};
3
3
  //# sourceMappingURL=index.mjs.map