@lotte-innovate/ui-component-test 0.1.125 → 0.1.127-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/README.md +222 -222
  2. package/dist/globals.css +4 -4
  3. package/dist/lib/color/alpha.mjs.map +1 -1
  4. package/dist/lib/color/constants.mjs.map +1 -1
  5. package/dist/lib/color/light.mjs.map +1 -1
  6. package/dist/lib/components/AlertDialog/index.mjs.map +1 -1
  7. package/dist/lib/components/BarChart/index.mjs.map +1 -1
  8. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -1
  9. package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
  10. package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
  11. package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -1
  12. package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
  13. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -1
  14. package/dist/lib/components/Breadcrumb/index.mjs.map +1 -1
  15. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  16. package/dist/lib/components/Callout/index.mjs.map +1 -1
  17. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +6 -2
  18. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +18 -3
  19. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
  20. package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -1
  21. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
  22. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
  23. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
  24. package/dist/lib/components/ContextMenu/index.mjs.map +1 -1
  25. package/dist/lib/components/DataList/index.mjs.map +1 -1
  26. package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
  27. package/dist/lib/components/Dialog/index.mjs.map +1 -1
  28. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
  29. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
  30. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
  31. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
  32. package/dist/lib/components/DropdownMenu/index.mjs.map +1 -1
  33. package/dist/lib/components/Editor/index.d.ts +14 -14
  34. package/dist/lib/components/Editor/index.js +15 -15
  35. package/dist/lib/components/Gnb/GnbLogo.js +0 -1
  36. package/dist/lib/components/Gnb/GnbLogo.mjs +0 -1
  37. package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
  38. package/dist/lib/components/Gnb/index.mjs.map +1 -1
  39. package/dist/lib/components/Grid/Pagination.mjs.map +1 -1
  40. package/dist/lib/components/Grid/useGrid.js +8 -4
  41. package/dist/lib/components/Grid/useGrid.mjs +1 -1
  42. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
  43. package/dist/lib/components/HoverCard/index.mjs.map +1 -1
  44. package/dist/lib/components/Label/index.d.ts +2 -0
  45. package/dist/lib/components/Label/index.js +3 -3
  46. package/dist/lib/components/Label/index.mjs +1 -1
  47. package/dist/lib/components/LineChart/index.mjs.map +1 -1
  48. package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
  49. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
  50. package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
  51. package/dist/lib/components/Menubar/index.mjs.map +1 -1
  52. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
  53. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
  54. package/dist/lib/components/NavigationMenu/index.mjs.map +1 -1
  55. package/dist/lib/components/PieChart/index.mjs.map +1 -1
  56. package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
  57. package/dist/lib/components/Popover/index.mjs.map +1 -1
  58. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  59. package/dist/lib/components/RadioCards/index.mjs.map +1 -1
  60. package/dist/lib/components/RadioGroup/index.mjs.map +1 -1
  61. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
  62. package/dist/lib/components/SegmentedControl/index.mjs.map +1 -1
  63. package/dist/lib/components/SideBar/index.d.ts +21 -0
  64. package/dist/lib/components/SideBar/index.js +71 -0
  65. package/dist/lib/components/Timeline/TimelineConnector.js +1 -3
  66. package/dist/lib/components/Timeline/TimelineConnector.mjs +2 -0
  67. package/dist/lib/components/Timeline/TimelineConnector.mjs.map +1 -0
  68. package/dist/lib/components/Timeline/TimelineContent.mjs +2 -0
  69. package/dist/lib/components/Timeline/TimelineContent.mjs.map +1 -0
  70. package/dist/lib/components/Timeline/TimelineDescription.mjs +2 -0
  71. package/dist/lib/components/Timeline/TimelineDescription.mjs.map +1 -0
  72. package/dist/lib/components/Timeline/TimelineHeader.mjs +2 -0
  73. package/dist/lib/components/Timeline/TimelineHeader.mjs.map +1 -0
  74. package/dist/lib/components/Timeline/TimelineIcon.js +4 -3
  75. package/dist/lib/components/Timeline/TimelineIcon.mjs +3 -0
  76. package/dist/lib/components/Timeline/TimelineIcon.mjs.map +1 -0
  77. package/dist/lib/components/Timeline/TimelineItem.js +1 -1
  78. package/dist/lib/components/Timeline/TimelineItem.mjs +2 -0
  79. package/dist/lib/components/Timeline/TimelineItem.mjs.map +1 -0
  80. package/dist/lib/components/Timeline/TimelineRoot.js +5 -5
  81. package/dist/lib/components/Timeline/TimelineRoot.mjs +3 -0
  82. package/dist/lib/components/Timeline/TimelineRoot.mjs.map +1 -0
  83. package/dist/lib/components/Timeline/TimelineTime.d.ts +3 -1
  84. package/dist/lib/components/Timeline/TimelineTime.js +16 -4
  85. package/dist/lib/components/Timeline/TimelineTime.mjs +3 -0
  86. package/dist/lib/components/Timeline/TimelineTime.mjs.map +1 -0
  87. package/dist/lib/components/Timeline/TimelineTitle.d.ts +3 -1
  88. package/dist/lib/components/Timeline/TimelineTitle.js +16 -4
  89. package/dist/lib/components/Timeline/TimelineTitle.mjs +3 -0
  90. package/dist/lib/components/Timeline/TimelineTitle.mjs.map +1 -0
  91. package/dist/lib/components/Timeline/index.mjs +2 -0
  92. package/dist/lib/components/Timeline/index.mjs.map +1 -0
  93. package/dist/lib/components/Toast/index.mjs.map +1 -1
  94. package/dist/lib/components/ToggleGroup/index.mjs.map +1 -1
  95. package/dist/lib/components/index.d.ts +1 -1
  96. package/dist/lib/components/index.js +1 -1
  97. package/dist/lib/constants.mjs +1 -1
  98. package/dist/lib/constants.mjs.map +1 -1
  99. package/dist/lib/index.mjs +1 -1
  100. package/dist/lib/tailwind.config.d.ts +3 -0
  101. package/dist/lib/tsconfig.tsbuildinfo +1 -0
  102. package/dist/lib/utils/useWindowSize.d.ts +1 -0
  103. package/dist/lib/utils/useWindowSize.js +17 -0
  104. package/dist/lib/utils/utils.mjs.map +1 -1
  105. package/dist/tailwind.config.js +3 -0
  106. package/dist/tsconfig.tsbuildinfo +1 -1
  107. package/package.json +147 -147
  108. package/dist/lib/components/Editor/index copy.d.ts +0 -26
  109. package/dist/lib/components/Editor/index copy.js +0 -120
  110. package/dist/lib/components/Editor/index.mjs +0 -3
  111. package/dist/lib/components/Editor/index.mjs.map +0 -1
package/package.json CHANGED
@@ -1,147 +1,147 @@
1
- {
2
- "name": "@lotte-innovate/ui-component-test",
3
- "description": "Lotte UI Library",
4
- "version": "0.1.125",
5
- "private": false,
6
- "type": "module",
7
- "files": [
8
- "dist",
9
- "dist/globals.css"
10
- ],
11
- "main": "dist/lib/index.js",
12
- "module": "dist/lib/index.mjs",
13
- "types": "dist/lib/index.d.ts",
14
- "publishConfig": {
15
- "access": "public"
16
- },
17
- "browser": "./browser/specific/main.js",
18
- "babel": {
19
- "presets": [
20
- "@babel/preset-react",
21
- "@babel/preset-env"
22
- ]
23
- },
24
- "browserslist": {
25
- "production": [
26
- ">0.2%",
27
- "not dead",
28
- "not op_mini all"
29
- ],
30
- "development": [
31
- "last 1 chrome version",
32
- "last 1 firefox version",
33
- "last 1 safari version"
34
- ]
35
- },
36
- "scripts": {
37
- "dev": "next dev",
38
- "lint": "next lint",
39
- "prepare": "next build",
40
- "start": "next start",
41
- "storybook": "cross-env NODE_OPTIONS='--max-old-space-size=8192' storybook dev -p 6006",
42
- "chromatic": "cross-env npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN",
43
- "compile": "tsc --jsx react-jsx",
44
- "build": "next build && npm run compile",
45
- "build-storybook": "storybook build",
46
- "clean": "rimraf dist && mkdir dist && rimraf .rollup.cache",
47
- "compile:typescript": "npm run compile && node src/utils/post-compile.js && tsc-alias",
48
- "bundle:rollup": "rollup -c && node src/utils/post-rollup.js",
49
- "build:css": "npx tailwindcss -i src/app/globals.css -o dist/globals.css --minify && node update-tailwind-import.js",
50
- "build:test": "npm run clean && npm run compile:typescript && npm run bundle:rollup && npm run build:css",
51
- "publish:dist": "node src/utils/prev-publish.js && npm publish && node src/utils/post-publish.js",
52
- "publish:test": "npm run clean && npm run compile:typescript && npm run bundle:rollup",
53
- "publish:npm": "npm run clean && npm run compile:typescript && npm run bundle:rollup && npm run build:css && npm run publish:dist"
54
- },
55
- "dependencies": {
56
- "@babel/runtime": "^7.24.7",
57
- "@babel/runtime-corejs3": "^7.24.7",
58
- "@radix-ui/colors": "^3.0.0",
59
- "@radix-ui/react-accordion": "^1.2.0",
60
- "@radix-ui/react-checkbox": "^1.0.4",
61
- "@radix-ui/react-dialog": "^1.1.1",
62
- "@radix-ui/react-dropdown-menu": "^2.1.1",
63
- "@radix-ui/react-hover-card": "^1.1.1",
64
- "@radix-ui/react-icons": "^1.3.0",
65
- "@radix-ui/react-label": "^2.1.0",
66
- "@radix-ui/react-menubar": "^1.1.1",
67
- "@radix-ui/react-navigation-menu": "^1.2.0",
68
- "@radix-ui/react-popover": "1.0.7",
69
- "@radix-ui/react-radio-group": "^1.1.3",
70
- "@radix-ui/react-select": "^2.1.1",
71
- "@radix-ui/react-separator": "^1.1.0",
72
- "@radix-ui/react-slider": "^1.2.0",
73
- "@radix-ui/react-switch": "^1.1.0",
74
- "@radix-ui/react-tabs": "^1.1.0",
75
- "@radix-ui/react-toast": "^1.2.1",
76
- "@radix-ui/react-tooltip": "^1.1.1",
77
- "@radix-ui/themes": "^3.1.1",
78
- "@stitches/core": "^1.2.8",
79
- "@stitches/react": "^1.2.8",
80
- "@storybook/addon-a11y": "^8.3.5",
81
- "@storybook/manager-api": "^8.3.5",
82
- "@tanstack/react-table": "^8.20.5",
83
- "@tinymce/tinymce-react": "^5.1.1",
84
- "chart.js": "^4.4.4",
85
- "chartjs-plugin-datalabels": "^2.2.0",
86
- "class-variance-authority": "^0.7.0",
87
- "clsx": "^2.1.0",
88
- "cross-env": "^7.0.3",
89
- "dotenv": "^16.4.5",
90
- "marked": "^14.1.3",
91
- "next": "14.1.4",
92
- "react": "^18",
93
- "react-chartjs-2": "^5.2.0",
94
- "react-dom": "^18",
95
- "react-tabs": "^6.0.2",
96
- "rollup-plugin-peer-deps-external": "^2.2.4",
97
- "rollup-plugin-preserve-directives": "^0.4.0",
98
- "storybook-addon-deep-controls": "^0.7.1",
99
- "storybook-dark-mode": "^4.0.2",
100
- "tailwind-merge": "^2.2.2",
101
- "tinymce": "^6.8.5"
102
- },
103
- "devDependencies": {
104
- "@babel/cli": "^7.24.7",
105
- "@babel/core": "^7.24.7",
106
- "@babel/plugin-transform-runtime": "^7.24.7",
107
- "@babel/preset-env": "^7.25.8",
108
- "@babel/preset-react": "^7.25.7",
109
- "@babel/preset-typescript": "^7.24.7",
110
- "@chromatic-com/storybook": "^1.2.25",
111
- "@rollup/plugin-babel": "^6.0.4",
112
- "@rollup/plugin-commonjs": "^28.0.0",
113
- "@rollup/plugin-node-resolve": "^15.3.0",
114
- "@rollup/plugin-typescript": "^12.1.0",
115
- "@storybook/addon-essentials": "^8.3.5",
116
- "@storybook/addon-interactions": "^8.3.5",
117
- "@storybook/addon-links": "^8.0.4",
118
- "@storybook/addon-styling-webpack": "^1.0.0",
119
- "@storybook/blocks": "^8.3.5",
120
- "@storybook/nextjs": "^8.3.5",
121
- "@storybook/react": "^8.3.5",
122
- "@storybook/test": "^8.3.5",
123
- "@storybook/theming": "^8.2.4",
124
- "@types/node": "^20",
125
- "@types/react": "^18",
126
- "@types/react-dom": "^18",
127
- "autoprefixer": "^10.0.1",
128
- "chromatic": "^11.5.4",
129
- "eslint": "^8",
130
- "eslint-config-next": "14.1.4",
131
- "eslint-plugin-storybook": "^0.8.0",
132
- "postcss": "^8.4.47",
133
- "prettier": "^3.3.3",
134
- "prettier-plugin-tailwindcss": "^0.6.6",
135
- "rimraf": "^6.0.1",
136
- "rollup-plugin-postcss": "^4.0.2",
137
- "rollup-plugin-terser": "^7.0.2",
138
- "storybook": "^8.3.5",
139
- "tailwindcss": "^3.3.0",
140
- "tsc-alias": "^1.8.10",
141
- "typescript": "^5"
142
- },
143
- "peerDependencies": {
144
- "react": "^18",
145
- "react-dom": "^18"
146
- }
147
- }
1
+ {
2
+ "name": "@lotte-innovate/ui-component-test",
3
+ "description": "Lotte UI Library",
4
+ "version": "0.1.127-beta.0",
5
+ "private": false,
6
+ "type": "module",
7
+ "files": [
8
+ "dist",
9
+ "dist/globals.css"
10
+ ],
11
+ "main": "dist/lib/index.js",
12
+ "module": "dist/lib/index.mjs",
13
+ "types": "dist/lib/index.d.ts",
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "browser": "./browser/specific/main.js",
18
+ "babel": {
19
+ "presets": [
20
+ "@babel/preset-react",
21
+ "@babel/preset-env"
22
+ ]
23
+ },
24
+ "browserslist": {
25
+ "production": [
26
+ ">0.2%",
27
+ "not dead",
28
+ "not op_mini all"
29
+ ],
30
+ "development": [
31
+ "last 1 chrome version",
32
+ "last 1 firefox version",
33
+ "last 1 safari version"
34
+ ]
35
+ },
36
+ "scripts": {
37
+ "dev": "next dev",
38
+ "lint": "next lint",
39
+ "prepare": "next build",
40
+ "start": "next start",
41
+ "storybook": "cross-env NODE_OPTIONS='--max-old-space-size=8192' storybook dev -p 6006",
42
+ "chromatic": "cross-env npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN",
43
+ "compile": "tsc --jsx react-jsx",
44
+ "build": "next build && npm run compile",
45
+ "build-storybook": "storybook build",
46
+ "clean": "rimraf dist && mkdir dist && rimraf .rollup.cache",
47
+ "compile:typescript": "npm run compile && node src/utils/post-compile.js && tsc-alias",
48
+ "bundle:rollup": "rollup -c && node src/utils/post-rollup.js",
49
+ "build:css": "npx tailwindcss -i src/app/globals.css -o dist/globals.css --minify && node update-tailwind-import.js",
50
+ "build:test": "npm run clean && npm run compile:typescript && npm run bundle:rollup && npm run build:css",
51
+ "publish:dist": "node src/utils/prev-publish.js && npm publish && node src/utils/post-publish.js",
52
+ "publish:npm": "npm run clean && npm run compile:typescript && npm run bundle:rollup && npm run build:css && npm run publish:dist"
53
+ },
54
+ "dependencies": {
55
+ "@babel/runtime": "^7.24.7",
56
+ "@babel/runtime-corejs3": "^7.24.7",
57
+ "@radix-ui/colors": "^3.0.0",
58
+ "@radix-ui/react-accordion": "^1.2.0",
59
+ "@radix-ui/react-checkbox": "^1.0.4",
60
+ "@radix-ui/react-dialog": "^1.1.1",
61
+ "@radix-ui/react-dropdown-menu": "^2.1.1",
62
+ "@radix-ui/react-hover-card": "^1.1.1",
63
+ "@radix-ui/react-icons": "^1.3.0",
64
+ "@radix-ui/react-label": "^2.1.0",
65
+ "@radix-ui/react-menubar": "^1.1.1",
66
+ "@radix-ui/react-navigation-menu": "^1.2.0",
67
+ "@radix-ui/react-popover": "1.0.7",
68
+ "@radix-ui/react-radio-group": "^1.1.3",
69
+ "@radix-ui/react-select": "^2.1.1",
70
+ "@radix-ui/react-separator": "^1.1.0",
71
+ "@radix-ui/react-slider": "^1.2.0",
72
+ "@radix-ui/react-switch": "^1.1.0",
73
+ "@radix-ui/react-tabs": "^1.1.0",
74
+ "@radix-ui/react-toast": "^1.2.1",
75
+ "@radix-ui/react-tooltip": "^1.1.1",
76
+ "@radix-ui/themes": "^3.1.1",
77
+ "@stitches/core": "^1.2.8",
78
+ "@stitches/react": "^1.2.8",
79
+ "@storybook/addon-a11y": "^8.3.5",
80
+ "@storybook/manager-api": "^8.3.5",
81
+ "@tanstack/react-table": "^8.20.5",
82
+ "@tinymce/tinymce-react": "^5.1.1",
83
+ "chart.js": "^4.4.4",
84
+ "chartjs-plugin-datalabels": "^2.2.0",
85
+ "class-variance-authority": "^0.7.0",
86
+ "clsx": "^2.1.0",
87
+ "cross-env": "^7.0.3",
88
+ "dotenv": "^16.4.5",
89
+ "marked": "^14.1.3",
90
+ "next": "14.1.4",
91
+ "react": "^18",
92
+ "react-chartjs-2": "^5.2.0",
93
+ "react-dom": "^18",
94
+ "react-pro-sidebar": "^1.1.0",
95
+ "react-tabs": "^6.0.2",
96
+ "rollup-plugin-peer-deps-external": "^2.2.4",
97
+ "rollup-plugin-preserve-directives": "^0.4.0",
98
+ "storybook-addon-deep-controls": "^0.7.1",
99
+ "storybook-dark-mode": "^4.0.2",
100
+ "tailwind-merge": "^2.2.2",
101
+ "tinymce": "^6.8.5"
102
+ },
103
+ "devDependencies": {
104
+ "@babel/cli": "^7.24.7",
105
+ "@babel/core": "^7.24.7",
106
+ "@babel/plugin-transform-runtime": "^7.24.7",
107
+ "@babel/preset-env": "^7.25.8",
108
+ "@babel/preset-react": "^7.25.7",
109
+ "@babel/preset-typescript": "^7.24.7",
110
+ "@chromatic-com/storybook": "^1.2.25",
111
+ "@rollup/plugin-babel": "^6.0.4",
112
+ "@rollup/plugin-commonjs": "^28.0.0",
113
+ "@rollup/plugin-node-resolve": "^15.3.0",
114
+ "@rollup/plugin-typescript": "^12.1.0",
115
+ "@storybook/addon-essentials": "^8.3.5",
116
+ "@storybook/addon-interactions": "^8.3.5",
117
+ "@storybook/addon-links": "^8.0.4",
118
+ "@storybook/addon-styling-webpack": "^1.0.0",
119
+ "@storybook/blocks": "^8.3.5",
120
+ "@storybook/nextjs": "^8.3.5",
121
+ "@storybook/react": "^8.3.5",
122
+ "@storybook/test": "^8.3.5",
123
+ "@storybook/theming": "^8.2.4",
124
+ "@types/node": "^20",
125
+ "@types/react": "^18",
126
+ "@types/react-dom": "^18",
127
+ "autoprefixer": "^10.0.1",
128
+ "chromatic": "^11.5.4",
129
+ "eslint": "^8",
130
+ "eslint-config-next": "14.1.4",
131
+ "eslint-plugin-storybook": "^0.8.0",
132
+ "postcss": "^8.4.47",
133
+ "prettier": "^3.3.3",
134
+ "prettier-plugin-tailwindcss": "^0.6.6",
135
+ "rimraf": "^6.0.1",
136
+ "rollup-plugin-postcss": "^4.0.2",
137
+ "rollup-plugin-terser": "^7.0.2",
138
+ "storybook": "^8.3.5",
139
+ "tailwindcss": "^3.3.0",
140
+ "tsc-alias": "^1.8.10",
141
+ "typescript": "^5"
142
+ },
143
+ "peerDependencies": {
144
+ "react": "^18",
145
+ "react-dom": "^18"
146
+ }
147
+ }
@@ -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;
@@ -1,3 +0,0 @@
1
- "use client";
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 o}from"class-variance-authority";import{scalingVariants as n}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as a}from"marked";import"../../../../_virtual/tinymce.mjs";import"../../../../_virtual/index19.mjs";import"../../../../_virtual/index15.mjs";import"../../../../_virtual/index9.mjs";import"../../../../public/tinymce/skins/ui/oxide/skin.mjs";import"../../../../_virtual/index.mjs";import"../../../../_virtual/index11.mjs";import"../../../../_virtual/index5.mjs";import"../../../../_virtual/index13.mjs";import"../../../../_virtual/index3.mjs";import"../../../../_virtual/index7.mjs";import"../../../../_virtual/index17.mjs";import"../../../../public/tinymce/skins/content/default/content.mjs";import"../../../../public/tinymce/skins/ui/oxide/content.mjs";var s=function(){return s=Object.assign||function(t){for(var i,e=1,o=arguments.length;e<o;e++)for(var n in i=arguments[e])Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);return t},s.apply(this,arguments)},m=function(t,i){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&i.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)i.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(e[o[n]]=t[o[n]])}return e},l=o("",{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"}}),c=i((function(i,o){var n=i.className,c=i.size,u=i.scaling,p=m(i,["className","size","scaling"]);return t("div",{className:r(l({size:c,scaling:u}),n),ref:o,children:t(e,s({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 i=t.getContent({format:"text"}),e=a(i);t.setContent(e)}})}}},p))})}));c.displayName="Editor";export{c as Editor,c as default};
3
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}