@lotte-innovate/ui-component-test 0.1.117 → 0.1.119

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/package.json +2 -1
  2. package/public/tinymce/CHANGELOG.md +3453 -0
  3. package/public/tinymce/README.md +73 -0
  4. package/public/tinymce/bower.json +27 -0
  5. package/public/tinymce/composer.json +52 -0
  6. package/public/tinymce/icons/default/icons.js +194 -0
  7. package/public/tinymce/icons/default/icons.min.js +1 -0
  8. package/public/tinymce/icons/default/index.js +7 -0
  9. package/public/tinymce/license.txt +21 -0
  10. package/public/tinymce/models/dom/index.js +7 -0
  11. package/public/tinymce/models/dom/model.js +8040 -0
  12. package/public/tinymce/models/dom/model.min.js +4 -0
  13. package/public/tinymce/package.json +32 -0
  14. package/public/tinymce/plugins/advlist/index.js +7 -0
  15. package/public/tinymce/plugins/advlist/plugin.js +259 -0
  16. package/public/tinymce/plugins/advlist/plugin.min.js +4 -0
  17. package/public/tinymce/plugins/autolink/index.js +7 -0
  18. package/public/tinymce/plugins/autolink/plugin.js +228 -0
  19. package/public/tinymce/plugins/autolink/plugin.min.js +4 -0
  20. package/public/tinymce/plugins/code/index.js +7 -0
  21. package/public/tinymce/plugins/code/plugin.js +85 -0
  22. package/public/tinymce/plugins/code/plugin.min.js +4 -0
  23. package/public/tinymce/plugins/codesample/index.js +7 -0
  24. package/public/tinymce/plugins/codesample/plugin.js +2463 -0
  25. package/public/tinymce/plugins/codesample/plugin.min.js +4 -0
  26. package/public/tinymce/plugins/image/index.js +7 -0
  27. package/public/tinymce/plugins/image/plugin.js +1505 -0
  28. package/public/tinymce/plugins/image/plugin.min.js +4 -0
  29. package/public/tinymce/plugins/link/index.js +7 -0
  30. package/public/tinymce/plugins/link/plugin.js +1242 -0
  31. package/public/tinymce/plugins/link/plugin.min.js +4 -0
  32. package/public/tinymce/plugins/lists/index.js +7 -0
  33. package/public/tinymce/plugins/lists/plugin.js +2172 -0
  34. package/public/tinymce/plugins/lists/plugin.min.js +4 -0
  35. package/public/tinymce/plugins/table/index.js +7 -0
  36. package/public/tinymce/plugins/table/plugin.js +3462 -0
  37. package/public/tinymce/plugins/table/plugin.min.js +4 -0
  38. package/public/tinymce/skins/content/default/content.css +61 -0
  39. package/public/tinymce/skins/content/default/content.js +2 -0
  40. package/public/tinymce/skins/content/default/content.min.css +1 -0
  41. package/public/tinymce/skins/ui/oxide/content.css +785 -0
  42. package/public/tinymce/skins/ui/oxide/content.inline.css +779 -0
  43. package/public/tinymce/skins/ui/oxide/content.inline.js +2 -0
  44. package/public/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
  45. package/public/tinymce/skins/ui/oxide/content.js +2 -0
  46. package/public/tinymce/skins/ui/oxide/content.min.css +1 -0
  47. package/public/tinymce/skins/ui/oxide/skin.css +3763 -0
  48. package/public/tinymce/skins/ui/oxide/skin.js +2 -0
  49. package/public/tinymce/skins/ui/oxide/skin.min.css +1 -0
  50. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
  51. package/public/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  52. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  53. package/public/tinymce/skins/ui/oxide-dark/content.css +766 -0
  54. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +779 -0
  55. package/public/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  56. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
  57. package/public/tinymce/skins/ui/oxide-dark/content.js +2 -0
  58. package/public/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
  59. package/public/tinymce/skins/ui/oxide-dark/skin.css +3766 -0
  60. package/public/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  61. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  62. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
  63. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  64. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  65. package/public/tinymce/themes/silver/index.js +7 -0
  66. package/public/tinymce/themes/silver/theme.js +30775 -0
  67. package/public/tinymce/themes/silver/theme.min.js +384 -0
  68. package/public/tinymce/tinymce.d.ts +3238 -0
  69. package/public/tinymce/tinymce.js +31779 -0
  70. package/public/tinymce/tinymce.min.js +384 -0
  71. package/dist/lib/components/Editor/index copy.d.ts +0 -26
  72. package/dist/lib/components/Editor/index copy.js +0 -120
  73. /package/dist/{lib/_virtual → _virtual}/icons.mjs +0 -0
  74. /package/dist/{lib/_virtual → _virtual}/icons.mjs.map +0 -0
  75. /package/dist/{lib/_virtual → _virtual}/index.mjs +0 -0
  76. /package/dist/{lib/_virtual → _virtual}/index.mjs.map +0 -0
  77. /package/dist/{lib/_virtual → _virtual}/index10.mjs +0 -0
  78. /package/dist/{lib/_virtual → _virtual}/index10.mjs.map +0 -0
  79. /package/dist/{lib/_virtual → _virtual}/index11.mjs +0 -0
  80. /package/dist/{lib/_virtual → _virtual}/index11.mjs.map +0 -0
  81. /package/dist/{lib/_virtual → _virtual}/index12.mjs +0 -0
  82. /package/dist/{lib/_virtual → _virtual}/index12.mjs.map +0 -0
  83. /package/dist/{lib/_virtual → _virtual}/index13.mjs +0 -0
  84. /package/dist/{lib/_virtual → _virtual}/index13.mjs.map +0 -0
  85. /package/dist/{lib/_virtual → _virtual}/index14.mjs +0 -0
  86. /package/dist/{lib/_virtual → _virtual}/index14.mjs.map +0 -0
  87. /package/dist/{lib/_virtual → _virtual}/index15.mjs +0 -0
  88. /package/dist/{lib/_virtual → _virtual}/index15.mjs.map +0 -0
  89. /package/dist/{lib/_virtual → _virtual}/index16.mjs +0 -0
  90. /package/dist/{lib/_virtual → _virtual}/index16.mjs.map +0 -0
  91. /package/dist/{lib/_virtual → _virtual}/index17.mjs +0 -0
  92. /package/dist/{lib/_virtual → _virtual}/index17.mjs.map +0 -0
  93. /package/dist/{lib/_virtual → _virtual}/index18.mjs +0 -0
  94. /package/dist/{lib/_virtual → _virtual}/index18.mjs.map +0 -0
  95. /package/dist/{lib/_virtual → _virtual}/index19.mjs +0 -0
  96. /package/dist/{lib/_virtual → _virtual}/index19.mjs.map +0 -0
  97. /package/dist/{lib/_virtual → _virtual}/index2.mjs +0 -0
  98. /package/dist/{lib/_virtual → _virtual}/index2.mjs.map +0 -0
  99. /package/dist/{lib/_virtual → _virtual}/index20.mjs +0 -0
  100. /package/dist/{lib/_virtual → _virtual}/index20.mjs.map +0 -0
  101. /package/dist/{lib/_virtual → _virtual}/index3.mjs +0 -0
  102. /package/dist/{lib/_virtual → _virtual}/index3.mjs.map +0 -0
  103. /package/dist/{lib/_virtual → _virtual}/index4.mjs +0 -0
  104. /package/dist/{lib/_virtual → _virtual}/index4.mjs.map +0 -0
  105. /package/dist/{lib/_virtual → _virtual}/index5.mjs +0 -0
  106. /package/dist/{lib/_virtual → _virtual}/index5.mjs.map +0 -0
  107. /package/dist/{lib/_virtual → _virtual}/index6.mjs +0 -0
  108. /package/dist/{lib/_virtual → _virtual}/index6.mjs.map +0 -0
  109. /package/dist/{lib/_virtual → _virtual}/index7.mjs +0 -0
  110. /package/dist/{lib/_virtual → _virtual}/index7.mjs.map +0 -0
  111. /package/dist/{lib/_virtual → _virtual}/index8.mjs +0 -0
  112. /package/dist/{lib/_virtual → _virtual}/index8.mjs.map +0 -0
  113. /package/dist/{lib/_virtual → _virtual}/index9.mjs +0 -0
  114. /package/dist/{lib/_virtual → _virtual}/index9.mjs.map +0 -0
  115. /package/dist/{lib/_virtual → _virtual}/model.mjs +0 -0
  116. /package/dist/{lib/_virtual → _virtual}/model.mjs.map +0 -0
  117. /package/dist/{lib/_virtual → _virtual}/plugin.mjs +0 -0
  118. /package/dist/{lib/_virtual → _virtual}/plugin.mjs.map +0 -0
  119. /package/dist/{lib/_virtual → _virtual}/plugin2.mjs +0 -0
  120. /package/dist/{lib/_virtual → _virtual}/plugin2.mjs.map +0 -0
  121. /package/dist/{lib/_virtual → _virtual}/plugin3.mjs +0 -0
  122. /package/dist/{lib/_virtual → _virtual}/plugin3.mjs.map +0 -0
  123. /package/dist/{lib/_virtual → _virtual}/plugin4.mjs +0 -0
  124. /package/dist/{lib/_virtual → _virtual}/plugin4.mjs.map +0 -0
  125. /package/dist/{lib/_virtual → _virtual}/plugin5.mjs +0 -0
  126. /package/dist/{lib/_virtual → _virtual}/plugin5.mjs.map +0 -0
  127. /package/dist/{lib/_virtual → _virtual}/plugin6.mjs +0 -0
  128. /package/dist/{lib/_virtual → _virtual}/plugin6.mjs.map +0 -0
  129. /package/dist/{lib/_virtual → _virtual}/plugin7.mjs +0 -0
  130. /package/dist/{lib/_virtual → _virtual}/plugin7.mjs.map +0 -0
  131. /package/dist/{lib/_virtual → _virtual}/theme.mjs +0 -0
  132. /package/dist/{lib/_virtual → _virtual}/theme.mjs.map +0 -0
  133. /package/dist/{lib/_virtual → _virtual}/tinymce.mjs +0 -0
  134. /package/dist/{lib/_virtual → _virtual}/tinymce.mjs.map +0 -0
  135. /package/dist/{lib/_virtual → _virtual}/tinymce2.mjs +0 -0
  136. /package/dist/{lib/_virtual → _virtual}/tinymce2.mjs.map +0 -0
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { IAllProps } from '@tinymce/tinymce-react';
3
- import { VariantProps } from 'class-variance-authority';
4
- import 'tinymce/icons/default';
5
- import 'tinymce/themes/silver';
6
- import 'tinymce/models/dom';
7
- import 'tinymce/skins/ui/oxide/skin.css';
8
- import 'tinymce/plugins/advlist';
9
- import 'tinymce/plugins/code';
10
- import 'tinymce/plugins/codesample';
11
- import 'tinymce/plugins/link';
12
- import 'tinymce/plugins/lists';
13
- import 'tinymce/plugins/table';
14
- import 'tinymce/plugins/image';
15
- import 'tinymce/skins/ui/oxide/content.css';
16
- export interface EditorProps extends VariantProps<typeof editorVariants> {
17
- width?: string | number;
18
- height?: string | number;
19
- }
20
- declare const editorVariants: (props?: ({
21
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
22
- size?: "small" | "medium" | "large" | null | undefined;
23
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
24
- export declare const initTinyMCE: ({ width, height }: EditorProps) => void;
25
- export declare const Editor: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & EditorProps & IAllProps & React.RefAttributes<HTMLTextAreaElement>>;
26
- export default Editor;
@@ -1,120 +0,0 @@
1
- 'use client';
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __rest = (this && this.__rest) || function (s, e) {
14
- var t = {};
15
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
- t[p] = s[p];
17
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
- t[p[i]] = s[p[i]];
21
- }
22
- return t;
23
- };
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { forwardRef, useEffect } from 'react';
26
- import { cva } from 'class-variance-authority';
27
- import { scalingVariants } from '../../../lib/constants';
28
- import { cn } from '../../../lib/utils/utils';
29
- import { marked } from 'marked';
30
- import tinymce from 'tinymce';
31
- /* Default icons are required. After that, import custom icons if applicable */
32
- import 'tinymce/icons/default';
33
- /* Required TinyMCE components */
34
- import 'tinymce/themes/silver';
35
- import 'tinymce/models/dom';
36
- /* Import a skin (can be a custom skin instead of the default) */
37
- import 'tinymce/skins/ui/oxide/skin.css';
38
- /* Import plugins */
39
- import 'tinymce/plugins/advlist';
40
- import 'tinymce/plugins/code';
41
- import 'tinymce/plugins/codesample';
42
- import 'tinymce/plugins/link';
43
- import 'tinymce/plugins/lists';
44
- import 'tinymce/plugins/table';
45
- import 'tinymce/plugins/image';
46
- /* content UI CSS is required */
47
- import 'tinymce/skins/ui/oxide/content.css';
48
- var editorVariants = cva('', {
49
- variants: {
50
- scaling: __assign({}, scalingVariants),
51
- size: {
52
- small: 'w-[500px] h-[350px]',
53
- medium: 'w-[550px] h-[400px]',
54
- large: 'w-[600px] h-[450px]',
55
- },
56
- },
57
- defaultVariants: {
58
- scaling: '100%',
59
- size: 'medium',
60
- },
61
- });
62
- export var initTinyMCE = function (_a) {
63
- var width = _a.width, height = _a.height;
64
- console.log('width', width, height);
65
- tinymce.init({
66
- width: width,
67
- height: height,
68
- selector: '#tinymce',
69
- plugins: 'link table code lists codesample',
70
- menubar: false,
71
- toolbar: 'blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown',
72
- skin: false,
73
- content_css: false,
74
- setup: function (editor) {
75
- editor.ui.registry.addButton('inlinecode', {
76
- icon: 'sourcecode',
77
- tooltip: 'Inline code',
78
- onAction: function () {
79
- editor.formatter.toggle('code');
80
- },
81
- });
82
- editor.on('init', function () {
83
- editor.formatter.register('code', {
84
- inline: 'code',
85
- remove: 'all',
86
- });
87
- });
88
- editor.ui.registry.addButton('markdown', {
89
- text: 'Markdown',
90
- onAction: function () {
91
- var content = editor.getContent({ format: 'text' });
92
- var html = marked(content);
93
- editor.setContent(html);
94
- },
95
- });
96
- },
97
- });
98
- };
99
- export var Editor = forwardRef(function (_a, ref) {
100
- var className = _a.className, size = _a.size, scaling = _a.scaling, width = _a.width, height = _a.height, props = __rest(_a, ["className", "size", "scaling", "width", "height"]);
101
- useEffect(function () {
102
- initTinyMCE({ width: width, height: height });
103
- }, [size]);
104
- switch (size) {
105
- case 'small':
106
- (width = 500), (height = 350);
107
- break;
108
- case 'medium':
109
- (width = 550), (height = 400);
110
- break;
111
- case 'large':
112
- (width = 600), (height = 450);
113
- break;
114
- default:
115
- (width = 550), (height = 400);
116
- }
117
- return (_jsx("textarea", { id: "tinymce", ref: ref, className: cn(editorVariants({ size: size, scaling: scaling })) }));
118
- });
119
- Editor.displayName = 'Editor';
120
- export default Editor;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes