@semantic-components/editor 0.4.0 → 0.61.0

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 (45) hide show
  1. package/README.md +11 -4
  2. package/eslint.config.mjs +48 -0
  3. package/ng-package.json +7 -0
  4. package/package.json +10 -134
  5. package/project.json +28 -0
  6. package/src/index.ts +1 -0
  7. package/src/lib/components/editor/README.md +354 -0
  8. package/src/lib/components/editor/editor-align-center-button.ts +45 -0
  9. package/src/lib/components/editor/editor-align-justify-button.ts +45 -0
  10. package/src/lib/components/editor/editor-align-left-button.ts +44 -0
  11. package/src/lib/components/editor/editor-align-right-button.ts +44 -0
  12. package/src/lib/components/editor/editor-blockquote-button.ts +44 -0
  13. package/src/lib/components/editor/editor-bold-button.ts +44 -0
  14. package/src/lib/components/editor/editor-bullet-list-button.ts +44 -0
  15. package/src/lib/components/editor/editor-char-count.ts +42 -0
  16. package/src/lib/components/editor/editor-clear-formatting-button.ts +42 -0
  17. package/src/lib/components/editor/editor-code-button.ts +52 -0
  18. package/src/lib/components/editor/editor-content.ts +107 -0
  19. package/src/lib/components/editor/editor-count.ts +28 -0
  20. package/src/lib/components/editor/editor-footer.ts +30 -0
  21. package/src/lib/components/editor/editor-header.ts +27 -0
  22. package/src/lib/components/editor/editor-heading-select.ts +48 -0
  23. package/src/lib/components/editor/editor-horizontal-rule-button.ts +42 -0
  24. package/src/lib/components/editor/editor-italic-button.ts +44 -0
  25. package/src/lib/components/editor/editor-link-button.ts +58 -0
  26. package/src/lib/components/editor/editor-numbered-list-button.ts +44 -0
  27. package/src/lib/components/editor/editor-redo-button.ts +42 -0
  28. package/src/lib/components/editor/editor-separator.ts +25 -0
  29. package/src/lib/components/editor/editor-strikethrough-button.ts +44 -0
  30. package/src/lib/components/editor/editor-toolbar-group.ts +27 -0
  31. package/src/lib/components/editor/editor-toolbar.ts +32 -0
  32. package/src/lib/components/editor/editor-underline-button.ts +44 -0
  33. package/src/lib/components/editor/editor-undo-button.ts +42 -0
  34. package/src/lib/components/editor/editor-word-count.ts +43 -0
  35. package/src/lib/components/editor/editor.ts +211 -0
  36. package/src/lib/components/editor/index.ts +45 -0
  37. package/src/lib/components/index.ts +1 -0
  38. package/src/lib/styles/editor.css +94 -0
  39. package/src/lib/styles/index.css +1 -0
  40. package/tsconfig.json +28 -0
  41. package/tsconfig.lib.json +12 -0
  42. package/tsconfig.lib.prod.json +7 -0
  43. package/fesm2022/semantic-components-editor.mjs +0 -4721
  44. package/fesm2022/semantic-components-editor.mjs.map +0 -1
  45. package/index.d.ts +0 -385
@@ -0,0 +1,45 @@
1
+ // Root directive
2
+ export * from './editor';
3
+
4
+ // Content component
5
+ export * from './editor-content';
6
+
7
+ // Container components
8
+ export * from './editor-toolbar';
9
+ export * from './editor-toolbar-group';
10
+ export * from './editor-header';
11
+ export * from './editor-footer';
12
+ export * from './editor-separator';
13
+
14
+ // Formatting buttons
15
+ export * from './editor-bold-button';
16
+ export * from './editor-italic-button';
17
+ export * from './editor-underline-button';
18
+ export * from './editor-strikethrough-button';
19
+
20
+ // History buttons
21
+ export * from './editor-undo-button';
22
+ export * from './editor-redo-button';
23
+
24
+ // Alignment buttons
25
+ export * from './editor-align-left-button';
26
+ export * from './editor-align-center-button';
27
+ export * from './editor-align-right-button';
28
+ export * from './editor-align-justify-button';
29
+
30
+ // List buttons
31
+ export * from './editor-bullet-list-button';
32
+ export * from './editor-numbered-list-button';
33
+
34
+ // Content buttons
35
+ export * from './editor-link-button';
36
+ export * from './editor-blockquote-button';
37
+ export * from './editor-code-button';
38
+ export * from './editor-horizontal-rule-button';
39
+ export * from './editor-clear-formatting-button';
40
+
41
+ // Utility components
42
+ export * from './editor-heading-select';
43
+ export * from './editor-count';
44
+ export * from './editor-word-count';
45
+ export * from './editor-char-count';
@@ -0,0 +1 @@
1
+ export * from './editor';
@@ -0,0 +1,94 @@
1
+ /* Tiptap Editor Styles */
2
+
3
+ /* Tiptap ProseMirror wrapper */
4
+ .ProseMirror {
5
+ outline: none;
6
+ min-height: inherit;
7
+ max-height: inherit;
8
+ }
9
+
10
+ /* Placeholder handling */
11
+ .ProseMirror p.is-editor-empty:first-child::before {
12
+ content: attr(data-placeholder);
13
+ float: left;
14
+ color: var(--muted-foreground);
15
+ pointer-events: none;
16
+ height: 0;
17
+ }
18
+
19
+ /* Content styles */
20
+ .ProseMirror blockquote {
21
+ border-left: 4px solid var(--border);
22
+ padding-left: 1rem;
23
+ margin-left: 0;
24
+ font-style: italic;
25
+ color: var(--muted-foreground);
26
+ }
27
+
28
+ .ProseMirror code {
29
+ background: var(--muted);
30
+ padding: 0.125rem 0.375rem;
31
+ border-radius: 0.25rem;
32
+ font-family:
33
+ ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
34
+ font-size: 0.875em;
35
+ }
36
+
37
+ .ProseMirror pre {
38
+ background: var(--muted);
39
+ padding: 1rem;
40
+ border-radius: 0.5rem;
41
+ overflow-x: auto;
42
+ font-family:
43
+ ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
44
+ font-size: 0.875em;
45
+ }
46
+
47
+ .ProseMirror a {
48
+ color: var(--primary);
49
+ text-decoration: underline;
50
+ }
51
+
52
+ .ProseMirror hr {
53
+ border: none;
54
+ border-top: 1px solid var(--border);
55
+ margin: 1rem 0;
56
+ }
57
+
58
+ .ProseMirror h1 {
59
+ font-size: 2rem;
60
+ font-weight: 700;
61
+ margin: 1rem 0 0.5rem;
62
+ }
63
+
64
+ .ProseMirror h2 {
65
+ font-size: 1.5rem;
66
+ font-weight: 600;
67
+ margin: 1rem 0 0.5rem;
68
+ }
69
+
70
+ .ProseMirror h3 {
71
+ font-size: 1.25rem;
72
+ font-weight: 600;
73
+ margin: 0.75rem 0 0.5rem;
74
+ }
75
+
76
+ .ProseMirror h4 {
77
+ font-size: 1.125rem;
78
+ font-weight: 600;
79
+ margin: 0.75rem 0 0.5rem;
80
+ }
81
+
82
+ .ProseMirror ul,
83
+ .ProseMirror ol {
84
+ padding-left: 1.5rem;
85
+ margin: 0.5rem 0;
86
+ }
87
+
88
+ .ProseMirror li {
89
+ margin: 0.25rem 0;
90
+ }
91
+
92
+ .ProseMirror p {
93
+ margin: 0.5rem 0;
94
+ }
@@ -0,0 +1 @@
1
+ @import './editor.css';
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "isolatedModules": true,
5
+ "target": "es2022",
6
+ "moduleResolution": "bundler",
7
+ "strict": true,
8
+ "noImplicitOverride": true,
9
+ "noPropertyAccessFromIndexSignature": true,
10
+ "noImplicitReturns": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "emitDecoratorMetadata": false,
13
+ "module": "preserve"
14
+ },
15
+ "angularCompilerOptions": {
16
+ "enableI18nLegacyMessageIdFormat": false,
17
+ "strictInjectionParameters": true,
18
+ "strictInputAccessModifiers": true,
19
+ "strictTemplates": true
20
+ },
21
+ "files": [],
22
+ "include": [],
23
+ "references": [
24
+ {
25
+ "path": "./tsconfig.lib.json"
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "inlineSources": true,
8
+ "types": []
9
+ },
10
+ "include": ["src/**/*.ts"],
11
+ "exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"]
12
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.lib.json",
3
+ "compilerOptions": {
4
+ "declarationMap": false
5
+ },
6
+ "angularCompilerOptions": {}
7
+ }