fx-platform-ui 0.0.11 → 0.0.13-alpha1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/lib/fx-platform-ui.mjs +4493 -4493
  3. package/lib/fx-platform-ui.umd.js +7 -7
  4. package/lib/packages/components/editor/index.d.ts +2 -0
  5. package/lib/packages/components/table/src/hook/useTableMethods.d.ts +1 -1
  6. package/lib/tinymce/langs/zh-Hans.js +412 -0
  7. package/lib/tinymce/skins/content/dark/content.css +66 -0
  8. package/lib/tinymce/skins/content/dark/content.min.css +1 -0
  9. package/lib/tinymce/skins/content/default/content.css +61 -0
  10. package/lib/tinymce/skins/content/default/content.min.css +1 -0
  11. package/lib/tinymce/skins/content/document/content.css +66 -0
  12. package/lib/tinymce/skins/content/document/content.min.css +1 -0
  13. package/lib/tinymce/skins/content/tinymce-5/content.css +61 -0
  14. package/lib/tinymce/skins/content/tinymce-5/content.min.css +1 -0
  15. package/lib/tinymce/skins/content/tinymce-5-dark/content.css +66 -0
  16. package/lib/tinymce/skins/content/tinymce-5-dark/content.min.css +1 -0
  17. package/lib/tinymce/skins/content/writer/content.css +62 -0
  18. package/lib/tinymce/skins/content/writer/content.min.css +1 -0
  19. package/lib/tinymce/skins/ui/oxide/content.css +775 -0
  20. package/lib/tinymce/skins/ui/oxide/content.inline.css +769 -0
  21. package/lib/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
  22. package/lib/tinymce/skins/ui/oxide/content.min.css +1 -0
  23. package/lib/tinymce/skins/ui/oxide/skin.css +3109 -0
  24. package/lib/tinymce/skins/ui/oxide/skin.min.css +1 -0
  25. package/lib/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
  26. package/lib/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  27. package/lib/tinymce/skins/ui/oxide-dark/content.css +756 -0
  28. package/lib/tinymce/skins/ui/oxide-dark/content.inline.css +769 -0
  29. package/lib/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
  30. package/lib/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
  31. package/lib/tinymce/skins/ui/oxide-dark/skin.css +3112 -0
  32. package/lib/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  33. package/lib/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
  34. package/lib/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  35. package/lib/tinymce/skins/ui/tinymce-5/content.css +775 -0
  36. package/lib/tinymce/skins/ui/tinymce-5/content.inline.css +769 -0
  37. package/lib/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -0
  38. package/lib/tinymce/skins/ui/tinymce-5/content.min.css +1 -0
  39. package/lib/tinymce/skins/ui/tinymce-5/skin.css +3199 -0
  40. package/lib/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
  41. package/lib/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +30 -0
  42. package/lib/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  43. package/lib/tinymce/skins/ui/tinymce-5-dark/content.css +756 -0
  44. package/lib/tinymce/skins/ui/tinymce-5-dark/content.inline.css +769 -0
  45. package/lib/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  46. package/lib/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -0
  47. package/lib/tinymce/skins/ui/tinymce-5-dark/skin.css +3199 -0
  48. package/lib/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  49. package/lib/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +30 -0
  50. package/lib/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  51. package/package.json +4 -1
  52. package/packages/component.ts +1 -0
  53. package/packages/components/editor/index.ts +10 -0
  54. package/packages/components/editor/src/hook/index.ts +1 -0
  55. package/packages/components/editor/src/hook/useEditorState.ts +139 -0
  56. package/packages/components/editor/src/index.vue +84 -0
  57. package/packages/components/editor/src/plat-editor-emits.ts +1 -0
  58. package/packages/components/editor/src/plat-editor-props.ts +65 -0
  59. package/packages/components/editor/src/type/index.ts +11 -0
  60. package/packages/components/table/src/hook/useTableMethods.tsx +1 -1
@@ -0,0 +1,61 @@
1
+ body {
2
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
3
+ line-height: 1.4;
4
+ margin: 1rem;
5
+ }
6
+ table {
7
+ border-collapse: collapse;
8
+ }
9
+ /* Apply a default padding if legacy cellpadding attribute is missing */
10
+ table:not([cellpadding]) th,
11
+ table:not([cellpadding]) td {
12
+ padding: 0.4rem;
13
+ }
14
+ /* Set default table styles if a table has a positive border attribute
15
+ and no inline css */
16
+ table[border]:not([border="0"]):not([style*="border-width"]) th,
17
+ table[border]:not([border="0"]):not([style*="border-width"]) td {
18
+ border-width: 1px;
19
+ }
20
+ /* Set default table styles if a table has a positive border attribute
21
+ and no inline css */
22
+ table[border]:not([border="0"]):not([style*="border-style"]) th,
23
+ table[border]:not([border="0"]):not([style*="border-style"]) td {
24
+ border-style: solid;
25
+ }
26
+ /* Set default table styles if a table has a positive border attribute
27
+ and no inline css */
28
+ table[border]:not([border="0"]):not([style*="border-color"]) th,
29
+ table[border]:not([border="0"]):not([style*="border-color"]) td {
30
+ border-color: #ccc;
31
+ }
32
+ figure {
33
+ display: table;
34
+ margin: 1rem auto;
35
+ }
36
+ figure figcaption {
37
+ color: #999;
38
+ display: block;
39
+ margin-top: 0.25rem;
40
+ text-align: center;
41
+ }
42
+ hr {
43
+ border-color: #ccc;
44
+ border-style: solid;
45
+ border-width: 1px 0 0 0;
46
+ }
47
+ code {
48
+ background-color: #e8e8e8;
49
+ border-radius: 3px;
50
+ padding: 0.1rem 0.2rem;
51
+ }
52
+ .mce-content-body:not([dir=rtl]) blockquote {
53
+ border-left: 2px solid #ccc;
54
+ margin-left: 1.5rem;
55
+ padding-left: 1rem;
56
+ }
57
+ .mce-content-body[dir=rtl] blockquote {
58
+ border-right: 2px solid #ccc;
59
+ margin-right: 1.5rem;
60
+ padding-right: 1rem;
61
+ }
@@ -0,0 +1 @@
1
+ body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
@@ -0,0 +1,66 @@
1
+ body {
2
+ background-color: #2f3742;
3
+ color: #dfe0e4;
4
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
5
+ line-height: 1.4;
6
+ margin: 1rem;
7
+ }
8
+ a {
9
+ color: #4099ff;
10
+ }
11
+ table {
12
+ border-collapse: collapse;
13
+ }
14
+ /* Apply a default padding if legacy cellpadding attribute is missing */
15
+ table:not([cellpadding]) th,
16
+ table:not([cellpadding]) td {
17
+ padding: 0.4rem;
18
+ }
19
+ /* Set default table styles if a table has a positive border attribute
20
+ and no inline css */
21
+ table[border]:not([border="0"]):not([style*="border-width"]) th,
22
+ table[border]:not([border="0"]):not([style*="border-width"]) td {
23
+ border-width: 1px;
24
+ }
25
+ /* Set default table styles if a table has a positive border attribute
26
+ and no inline css */
27
+ table[border]:not([border="0"]):not([style*="border-style"]) th,
28
+ table[border]:not([border="0"]):not([style*="border-style"]) td {
29
+ border-style: solid;
30
+ }
31
+ /* Set default table styles if a table has a positive border attribute
32
+ and no inline css */
33
+ table[border]:not([border="0"]):not([style*="border-color"]) th,
34
+ table[border]:not([border="0"]):not([style*="border-color"]) td {
35
+ border-color: #6d737b;
36
+ }
37
+ figure {
38
+ display: table;
39
+ margin: 1rem auto;
40
+ }
41
+ figure figcaption {
42
+ color: #8a8f97;
43
+ display: block;
44
+ margin-top: 0.25rem;
45
+ text-align: center;
46
+ }
47
+ hr {
48
+ border-color: #6d737b;
49
+ border-style: solid;
50
+ border-width: 1px 0 0 0;
51
+ }
52
+ code {
53
+ background-color: #6d737b;
54
+ border-radius: 3px;
55
+ padding: 0.1rem 0.2rem;
56
+ }
57
+ .mce-content-body:not([dir=rtl]) blockquote {
58
+ border-left: 2px solid #6d737b;
59
+ margin-left: 1.5rem;
60
+ padding-left: 1rem;
61
+ }
62
+ .mce-content-body[dir=rtl] blockquote {
63
+ border-right: 2px solid #6d737b;
64
+ margin-right: 1.5rem;
65
+ padding-right: 1rem;
66
+ }
@@ -0,0 +1 @@
1
+ body{background-color:#2f3742;color:#dfe0e4;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}a{color:#4099ff}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#6d737b}figure{display:table;margin:1rem auto}figure figcaption{color:#8a8f97;display:block;margin-top:.25rem;text-align:center}hr{border-color:#6d737b;border-style:solid;border-width:1px 0 0 0}code{background-color:#6d737b;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #6d737b;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #6d737b;margin-right:1.5rem;padding-right:1rem}
@@ -0,0 +1,62 @@
1
+ body {
2
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
3
+ line-height: 1.4;
4
+ margin: 1rem auto;
5
+ max-width: 900px;
6
+ }
7
+ table {
8
+ border-collapse: collapse;
9
+ }
10
+ /* Apply a default padding if legacy cellpadding attribute is missing */
11
+ table:not([cellpadding]) th,
12
+ table:not([cellpadding]) td {
13
+ padding: 0.4rem;
14
+ }
15
+ /* Set default table styles if a table has a positive border attribute
16
+ and no inline css */
17
+ table[border]:not([border="0"]):not([style*="border-width"]) th,
18
+ table[border]:not([border="0"]):not([style*="border-width"]) td {
19
+ border-width: 1px;
20
+ }
21
+ /* Set default table styles if a table has a positive border attribute
22
+ and no inline css */
23
+ table[border]:not([border="0"]):not([style*="border-style"]) th,
24
+ table[border]:not([border="0"]):not([style*="border-style"]) td {
25
+ border-style: solid;
26
+ }
27
+ /* Set default table styles if a table has a positive border attribute
28
+ and no inline css */
29
+ table[border]:not([border="0"]):not([style*="border-color"]) th,
30
+ table[border]:not([border="0"]):not([style*="border-color"]) td {
31
+ border-color: #ccc;
32
+ }
33
+ figure {
34
+ display: table;
35
+ margin: 1rem auto;
36
+ }
37
+ figure figcaption {
38
+ color: #999;
39
+ display: block;
40
+ margin-top: 0.25rem;
41
+ text-align: center;
42
+ }
43
+ hr {
44
+ border-color: #ccc;
45
+ border-style: solid;
46
+ border-width: 1px 0 0 0;
47
+ }
48
+ code {
49
+ background-color: #e8e8e8;
50
+ border-radius: 3px;
51
+ padding: 0.1rem 0.2rem;
52
+ }
53
+ .mce-content-body:not([dir=rtl]) blockquote {
54
+ border-left: 2px solid #ccc;
55
+ margin-left: 1.5rem;
56
+ padding-left: 1rem;
57
+ }
58
+ .mce-content-body[dir=rtl] blockquote {
59
+ border-right: 2px solid #ccc;
60
+ margin-right: 1.5rem;
61
+ padding-right: 1rem;
62
+ }
@@ -0,0 +1 @@
1
+ body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem auto;max-width:900px}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}