@lotte-innovate/ui-component-test 0.1.99 → 0.1.101

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/dist/globals.css +3 -3
  2. package/dist/lib/_virtual/tinymce.mjs +2 -0
  3. package/dist/lib/_virtual/tinymce.mjs.map +1 -0
  4. package/dist/lib/_virtual/tinymce2.mjs +2 -0
  5. package/dist/lib/_virtual/tinymce2.mjs.map +1 -0
  6. package/dist/lib/components/Editor/index.d.ts +2 -0
  7. package/dist/lib/components/Editor/index.js +12 -2
  8. package/dist/lib/components/Gnb/GnbLogo.js +1 -0
  9. package/dist/lib/dist/lib/components/Editor/index.mjs +1 -1
  10. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs +1 -0
  11. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
  12. package/dist/lib/node_modules/tinymce/tinymce.mjs +2 -0
  13. package/dist/lib/node_modules/tinymce/tinymce.mjs.map +1 -0
  14. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  15. package/dist/tsconfig.tsbuildinfo +1 -1
  16. package/package.json +2 -1
  17. package/dist/tinymce/CHANGELOG.md +0 -3453
  18. package/dist/tinymce/README.md +0 -73
  19. package/dist/tinymce/bower.json +0 -27
  20. package/dist/tinymce/composer.json +0 -52
  21. package/dist/tinymce/icons/default/icons.js +0 -194
  22. package/dist/tinymce/icons/default/icons.min.js +0 -1
  23. package/dist/tinymce/icons/default/index.js +0 -7
  24. package/dist/tinymce/license.txt +0 -21
  25. package/dist/tinymce/models/dom/index.js +0 -7
  26. package/dist/tinymce/models/dom/model.js +0 -8040
  27. package/dist/tinymce/models/dom/model.min.js +0 -4
  28. package/dist/tinymce/package.json +0 -32
  29. package/dist/tinymce/plugins/advlist/index.js +0 -7
  30. package/dist/tinymce/plugins/advlist/plugin.js +0 -259
  31. package/dist/tinymce/plugins/advlist/plugin.min.js +0 -4
  32. package/dist/tinymce/plugins/autolink/index.js +0 -7
  33. package/dist/tinymce/plugins/autolink/plugin.js +0 -228
  34. package/dist/tinymce/plugins/autolink/plugin.min.js +0 -4
  35. package/dist/tinymce/plugins/code/index.js +0 -7
  36. package/dist/tinymce/plugins/code/plugin.js +0 -85
  37. package/dist/tinymce/plugins/code/plugin.min.js +0 -4
  38. package/dist/tinymce/plugins/codesample/index.js +0 -7
  39. package/dist/tinymce/plugins/codesample/plugin.js +0 -2463
  40. package/dist/tinymce/plugins/codesample/plugin.min.js +0 -4
  41. package/dist/tinymce/plugins/image/index.js +0 -7
  42. package/dist/tinymce/plugins/image/plugin.js +0 -1505
  43. package/dist/tinymce/plugins/image/plugin.min.js +0 -4
  44. package/dist/tinymce/plugins/link/index.js +0 -7
  45. package/dist/tinymce/plugins/link/plugin.js +0 -1242
  46. package/dist/tinymce/plugins/link/plugin.min.js +0 -4
  47. package/dist/tinymce/plugins/lists/index.js +0 -7
  48. package/dist/tinymce/plugins/lists/plugin.js +0 -2172
  49. package/dist/tinymce/plugins/lists/plugin.min.js +0 -4
  50. package/dist/tinymce/plugins/table/index.js +0 -7
  51. package/dist/tinymce/plugins/table/plugin.js +0 -3462
  52. package/dist/tinymce/plugins/table/plugin.min.js +0 -4
  53. package/dist/tinymce/skins/content/default/content.css +0 -61
  54. package/dist/tinymce/skins/content/default/content.js +0 -2
  55. package/dist/tinymce/skins/content/default/content.min.css +0 -1
  56. package/dist/tinymce/skins/ui/oxide/content.css +0 -785
  57. package/dist/tinymce/skins/ui/oxide/content.inline.css +0 -779
  58. package/dist/tinymce/skins/ui/oxide/content.inline.js +0 -2
  59. package/dist/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
  60. package/dist/tinymce/skins/ui/oxide/content.js +0 -2
  61. package/dist/tinymce/skins/ui/oxide/content.min.css +0 -1
  62. package/dist/tinymce/skins/ui/oxide/skin.css +0 -3763
  63. package/dist/tinymce/skins/ui/oxide/skin.js +0 -2
  64. package/dist/tinymce/skins/ui/oxide/skin.min.css +0 -1
  65. package/dist/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  66. package/dist/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
  67. package/dist/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  68. package/dist/tinymce/skins/ui/oxide-dark/content.css +0 -766
  69. package/dist/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
  70. package/dist/tinymce/skins/ui/oxide-dark/content.inline.js +0 -2
  71. package/dist/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
  72. package/dist/tinymce/skins/ui/oxide-dark/content.js +0 -2
  73. package/dist/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
  74. package/dist/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
  75. package/dist/tinymce/skins/ui/oxide-dark/skin.js +0 -2
  76. package/dist/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  77. package/dist/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  78. package/dist/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
  79. package/dist/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  80. package/dist/tinymce/themes/silver/index.js +0 -7
  81. package/dist/tinymce/themes/silver/theme.js +0 -30775
  82. package/dist/tinymce/themes/silver/theme.min.js +0 -384
  83. package/dist/tinymce/tinymce.d.ts +0 -3238
  84. package/dist/tinymce/tinymce.js +0 -31779
  85. package/dist/tinymce/tinymce.min.js +0 -384
@@ -0,0 +1,2 @@
1
+ import{__require as e}from"../node_modules/tinymce/tinymce.mjs";e();
2
+ //# sourceMappingURL=tinymce.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tinymce.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={exports:{}};export{e as __module};
2
+ //# sourceMappingURL=tinymce2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tinymce2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -2,10 +2,12 @@ import React from 'react';
2
2
  import { IAllProps } from '@tinymce/tinymce-react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  export interface EditorProps extends VariantProps<typeof editorVariants> {
5
+ tinymceScriptSrc?: string;
5
6
  }
6
7
  declare const editorVariants: (props?: ({
7
8
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
8
9
  size?: "small" | "medium" | "large" | null | undefined;
9
10
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
+ export declare const initTinyMCE: () => void;
10
12
  export declare const Editor: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & EditorProps & IAllProps & React.RefAttributes<HTMLDivElement>>;
11
13
  export default Editor;
@@ -28,6 +28,7 @@ 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 from 'tinymce/tinymce';
31
32
  var editorVariants = cva('', {
32
33
  variants: {
33
34
  scaling: __assign({}, scalingVariants),
@@ -42,11 +43,20 @@ var editorVariants = cva('', {
42
43
  size: 'medium',
43
44
  },
44
45
  });
46
+ export var initTinyMCE = function () {
47
+ tinymce.init({
48
+ selector: '#editor',
49
+ plugins: 'link table image code',
50
+ toolbar: 'undo redo | formatselect | bold italic | alignleft aligncenter alignright | code',
51
+ script_url: '/tinymce/tinymce.min.js',
52
+ });
53
+ };
45
54
  export var Editor = forwardRef(function (_a, ref) {
46
- var className = _a.className, size = _a.size, scaling = _a.scaling, props = __rest(_a, ["className", "size", "scaling"]);
47
- return (_jsx("div", { ref: ref, className: cn(editorVariants({ size: size, scaling: scaling }), className), children: _jsx(EditorUI, __assign({ tinymceScriptSrc: "./tinymce/tinymce.min.js", initialValue: "", init: {
55
+ var className = _a.className, size = _a.size, scaling = _a.scaling, tinymceScriptSrc = _a.tinymceScriptSrc, props = __rest(_a, ["className", "size", "scaling", "tinymceScriptSrc"]);
56
+ return (_jsx("div", { ref: ref, className: cn(editorVariants({ size: size, scaling: scaling }), className), children: _jsx(EditorUI, __assign({ tinymceScriptSrc: tinymceScriptSrc !== null && tinymceScriptSrc !== void 0 ? tinymceScriptSrc : "/tinymce/tinymce.min.js", initialValue: "", init: {
48
57
  height: '100%',
49
58
  menubar: false,
59
+ // plugins: ['image', 'code', 'link', 'table'],
50
60
  plugins: ['advlist', 'autolink', 'lists', 'link', 'image', 'code', 'table', 'codesample'],
51
61
  toolbar: 'undo redo | blocks | ' +
52
62
  'bold italic forecolor strikethrough | hr blockquote | ' +
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -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 o}from"../../../../node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.mjs";import{cva as i}from"class-variance-authority";import{scalingVariants as n}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as a}from"../../../../node_modules/marked/lib/marked.esm.mjs";var s=function(){return s=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},s.apply(this,arguments)},l=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(o[i[n]]=t[i[n]])}return o},c=i("",{variants:{scaling:s({},n),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),m=e((function(e,i){var n=e.className,m=e.size,u=e.scaling,d=l(e,["className","size","scaling"]);return t("div",{ref:i,className:r(c({size:m,scaling:u}),n),children:t(o,s({tinymceScriptSrc:"./tinymce/tinymce.min.js",initialValue:"",init:{height:"100%",menubar:!1,plugins:["advlist","autolink","lists","link","image","code","table","codesample"],toolbar:"undo redo | blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | codeformat codesample | markdown",content_style:"body { font-family:Noto Sans KR,sans-serif,Nunito Sans,Helvetica Neue,Helvetica; font-size:14px }",setup:function(t){t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var e=t.getContent({format:"text"}),o=a(e);t.setContent(o)}}),t.ui.registry.addButton("codeformat",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}})}}},d))})}));m.displayName="Editor";export{m as Editor,m as default};
2
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Editor as o}from"../../../../node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.mjs";import{cva as i}from"class-variance-authority";import{scalingVariants as n}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as a}from"../../../../node_modules/marked/lib/marked.esm.mjs";import"../../../../_virtual/tinymce.mjs";var s=function(){return s=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},s.apply(this,arguments)},l=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(o[i[n]]=t[i[n]])}return o},c=i("",{variants:{scaling:s({},n),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),m=e((function(e,i){var n=e.className,m=e.size,u=e.scaling,p=e.tinymceScriptSrc,d=l(e,["className","size","scaling","tinymceScriptSrc"]);return t("div",{ref:i,className:r(c({size:m,scaling:u}),n),children:t(o,s({tinymceScriptSrc:null!=p?p:"/tinymce/tinymce.min.js",initialValue:"",init:{height:"100%",menubar:!1,plugins:["advlist","autolink","lists","link","image","code","table","codesample"],toolbar:"undo redo | blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | codeformat codesample | markdown",content_style:"body { font-family:Noto Sans KR,sans-serif,Nunito Sans,Helvetica Neue,Helvetica; font-size:14px }",setup:function(t){t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var e=t.getContent({format:"text"}),o=a(e);t.setContent(o)}}),t.ui.registry.addButton("codeformat",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}})}}},d))})}));m.displayName="Editor";export{m as Editor,m as default};
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,3 @@
1
+ "use client";
1
2
  import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{cva as a}from"class-variance-authority";import{GnbContext as o}from"./GnbRoot.mjs";import{cn as n}from"../../utils/utils.mjs";import"../../Typography/Header/index.mjs";import{Text as i}from"../../Typography/Text/index.mjs";var s=function(){return s=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},s.apply(this,arguments)},l=function(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(r);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(r,a[o])&&(t[a[o]]=r[a[o]])}return t},p=a("mr-4 flex items-center space-x-2 lg:mr-6 text-slate-12 dark:text-slateDark-12",{variants:{size:{small:"text-xs w-[140px] h-[15px]",medium:"text-sm w-[150px] h-[20px]",large:"text-base w-[160px] h-[25px]"}},defaultVariants:{size:"medium"}}),m=e((function(e,a){var m=e.children,c=e.className,f=l(e,["children","className"]),x=t(o).size;return r("a",s({href:"/",className:n(p({size:x}),c)},f,{children:null!=m?m:r(i,{children:"LOGO 영역"})}))}));m.displayName="Gnb.Logo";export{m as GnbLogo};
2
3
  //# sourceMappingURL=GnbLogo.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"GnbLogo.mjs","sources":["../../../../../lib/components/Gnb/GnbLogo.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useContext } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { GnbContext } from './GnbRoot';\nimport { cn } from '../../../lib/utils/utils';\nimport { Text } from '../../../lib/Typography';\nvar gnbLogoVariants = cva('mr-4 flex items-center space-x-2 lg:mr-6 text-slate-12 dark:text-slateDark-12', {\n variants: {\n size: {\n small: 'text-xs w-[140px] h-[15px]',\n medium: 'text-sm w-[150px] h-[20px]',\n large: 'text-base w-[160px] h-[25px]',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var GnbLogo = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n var size = useContext(GnbContext).size;\n return (_jsx(\"a\", __assign({ href: \"/\", className: cn(gnbLogoVariants({ size: size }), className) }, props, { children: children !== null && children !== void 0 ? children : _jsx(Text, { children: \"LOGO \\uC601\\uC5ED\" }) })));\n});\nGnbLogo.displayName = 'Gnb.Logo';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","gnbLogoVariants","cva","variants","size","small","medium","large","defaultVariants","GnbLogo","forwardRef","_a","ref","children","className","props","useContext","GnbContext","_jsx","href","cn","Text","displayName"],"mappings":"iUAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAkBC,EAAI,gFAAiF,CACvGC,SAAU,CACNC,KAAM,CACFC,MAAO,6BACPC,OAAQ,6BACRC,MAAO,iCAGfC,gBAAiB,CACbJ,KAAM,YAGHK,EAAUC,GAAW,SAAUC,EAAIC,GAC1C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAQnB,EAAOe,EAAI,CAAC,WAAY,cAClFP,EAAOY,EAAWC,GAAYb,KAClC,OAAQc,EAAK,IAAKrC,EAAS,CAAEsC,KAAM,IAAKL,UAAWM,EAAGnB,EAAgB,CAAEG,KAAMA,IAASU,IAAcC,EAAO,CAAEF,SAAUA,QAA2CA,EAAWK,EAAKG,EAAM,CAAER,SAAU,cACzM,IACAJ,EAAQa,YAAc"}
1
+ {"version":3,"file":"GnbLogo.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}