@gilav21/shadcn-angular-rte 0.1.1

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.
@@ -0,0 +1,2 @@
1
+ export { A as ACTION_ATTRS, a as ACTION_PARAMS, b as AddonSlotRegistry, D as DEFAULT_COLOR_PALETTE, c as DEFAULT_FONT_FAMILIES, d as DEFAULT_HIGHLIGHT_PALETTE, e as DEFAULT_LINK_SCHEMES, f as DEFAULT_TOOLBAR_ITEMS, g as DOCUMENT_IMPORT_ACCEPT, h as DOCX_MIME, E as EMPTINESS_FIXTURES, F as FIND_MAX_PAINTED_RECTS, j as FIND_MAX_QUERY_LENGTH, H as HEADER_BYTES, I as IMAGE_IMPORT_ACCEPT, k as INLINE_RULE_LOOKBEHIND, P as PDF_MIME, l as PresetDialogComponent, m as PresetHoverCardComponent, R as RICH_TEXT_ACTIONS_SANITIZER_RULES, n as RICH_TEXT_AI_CONTEXT, o as RICH_TEXT_AI_LOCALES, p as RICH_TEXT_COLORS_LOCALES, q as RICH_TEXT_COLOR_BUTTON_CONTEXT, r as RICH_TEXT_EMOJI_CONTEXT, s as RICH_TEXT_EMOJI_LOCALES, t as RICH_TEXT_FILE_IMPORT_BUTTON_CONTEXT, u as RICH_TEXT_FILE_IMPORT_LOCALES, v as RICH_TEXT_HISTORY_LOCALES, w as RICH_TEXT_IMAGES_BUTTON_CONTEXT, x as RICH_TEXT_IMAGES_LOCALES, y as RICH_TEXT_LINKS_BUTTON_CONTEXT, z as RICH_TEXT_LINKS_LOCALES, B as RICH_TEXT_LOCALES, C as RICH_TEXT_MENTIONS_LOCALES, G as RICH_TEXT_OUTLINE_CONTEXT, J as RICH_TEXT_OUTLINE_LOCALES, K as RICH_TEXT_PROSE_CLASSES, L as RICH_TEXT_SHORTCUT_DEFINITIONS, M as RICH_TEXT_SLASH_COMMANDS_LOCALES, N as RICH_TEXT_TABLES_BUTTON_CONTEXT, O as RICH_TEXT_TABLES_LOCALES, Q as RICH_TEXT_TYPOGRAPHY_BUTTON_CONTEXT, S as RICH_TEXT_TYPOGRAPHY_LOCALES, T as RTE_FULL, U as RichTextActionsBindDirective, V as RichTextActionsDirective, W as RichTextAiChipComponent, X as RichTextAiDirective, Y as RichTextAiPanelComponent, Z as RichTextAllowDirective, _ as RichTextAllowHost, $ as RichTextColorsButtonComponent, a0 as RichTextColorsDirective, a1 as RichTextCommandRegistry, a2 as RichTextEditorAddonHost, a3 as RichTextEditorComponent, a4 as RichTextEmojiButtonComponent, a5 as RichTextEmojiDirective, a6 as RichTextFileImportButtonComponent, a7 as RichTextFileImportDirective, a8 as RichTextFileImportOverlayComponent, a9 as RichTextHistoryDirective, aa as RichTextHistoryPanelComponent, ab as RichTextImageResizerComponent, ac as RichTextImagesButtonComponent, ad as RichTextImagesDirective, ae as RichTextImagesOverlayComponent, af as RichTextLinksButtonComponent, ag as RichTextLinksDirective, ah as RichTextLinksFormComponent, ai as RichTextMarkdownService, aj as RichTextMentionPopoverComponent, ak as RichTextMentionsDirective, al as RichTextOutlineDirective, am as RichTextOutlinePanelComponent, an as RichTextPasteNormalizerService, ao as RichTextSanitizerService, ap as RichTextSlashCommandsDirective, aq as RichTextSlashCommandsMenuComponent, ar as RichTextTablesButtonComponent, as as RichTextTablesDirective, at as RichTextToolbarComponent, au as RichTextToolbarViewContext, av as RichTextTypographyButtonComponent, aw as RichTextTypographyDirective, ax as TEXT_STYLE_OPTIONS, ay as TOOLBAR_BUTTONS, az as TRANSPARENT_PIXEL, aA as addonSetting, aB as anchorOverlay, aC as applyImageAlignment, aD as applyStarterStyle, aE as assertFlatParams, aF as bindRichTextActions, aG as buildDefaultSlashCommands, aH as buildEntityInsertNode, aI as buildEntityRenderContext, aJ as buildFindIndex, aK as buildLineIndex, aL as caretPosition, aM as classifyImport, aN as compileFindRegex, aO as computeSeedStyleString, aP as containsCssUrl, aQ as createImageElement, aR as cssFunctionCalls, aS as dataUrlToFile, aT as decodeCssEscapes, aU as detectTrigger, aV as directionOf, aW as dragHasSupportedDocument, aX as extractCssUrls, aY as flattenIntoRowText, aZ as hasUnsafeCssFunction, a_ as holdsNothing, a$ as hostOf, b0 as hoverCardAction, b1 as hoverCardHandlers, b2 as isCombinedOnElement, b3 as isHostAllowed, b4 as isHostBearingUrl, b5 as isInlineHoldingBlock, b6 as isLineOwner, b7 as isNestedList, b8 as isPdfHeader, b9 as isPhrasing, ba as isRichTextEmpty, bb as isSupportedDocumentFile, bc as isZipHeader, bd as labelBlockedImages, be as lastOwnInlineNode, bf as lineAbove, bg as lineBelow, bh as lineIsEmpty, bi as lineIsTextOnly, bj as lineKeepsItsElement, bk as lineOf, bl as lineOwnNodes, bm as lineTagIsFixed, bn as lineText, bo as linesBetween, bp as linesMayJoin, bq as linkedPreviewDialogAction, br as linkedPreviewDialogHandlers, bs as matchBlockInputRule, bt as matchInlineInputRule, bu as mountTopLayer, bv as nodeShowsNothing, bw as normalizeHostEntry, bx as offsetToPosition, by as openDialogAction, bz as openDialogHandlers, bA as parseImageSize, bB as placeCaretIn, bC as placeImageAtSelection, bD as positionAfterLine, bE as rangeShowsNothing, bF as readActions, bG as readFileAsDataUrl, bH as remoteHostOf, bI as removeAction, bJ as reportResourceDecisions, bK as resolveFromPage, bL as richTextHasMedia, bM as richTextMaxLength, bN as richTextMinWords, bO as richTextRequired, bP as richTextVisibleText, bQ as rowRunsOf, bR as selectTriggerRange, bS as separateListKinds, bT as simpleHash, bU as stripCssComments, bV as stripStyleIfMatches, bW as structureAround, bX as validateActionId, bY as validateActionParams, bZ as writeAction, b_ as writeCombined } from './gilav21-shadcn-angular-rte-gilav21-shadcn-angular-rte-DWSBW7Gw.mjs';
2
+ //# sourceMappingURL=gilav21-shadcn-angular-rte.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gilav21-shadcn-angular-rte.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@gilav21/shadcn-angular-rte",
3
+ "version": "0.1.1",
4
+ "description": "Compiled Angular rich-text editor from shadcn-angular: base editor + all 13 addons (RTE_FULL). Same ui-* selectors and inputs as the CLI copy model.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/gilav21/shadcn-angular.git",
9
+ "directory": "packages/rte-package"
10
+ },
11
+ "keywords": [
12
+ "angular",
13
+ "shadcn",
14
+ "rich-text-editor",
15
+ "wysiwyg",
16
+ "tailwind"
17
+ ],
18
+ "sideEffects": false,
19
+ "exports": {
20
+ "./theme.css": "./theme.css",
21
+ "./package.json": {
22
+ "default": "./package.json"
23
+ },
24
+ ".": {
25
+ "types": "./types/gilav21-shadcn-angular-rte.d.ts",
26
+ "default": "./fesm2022/gilav21-shadcn-angular-rte.mjs"
27
+ }
28
+ },
29
+ "peerDependencies": {
30
+ "@angular/common": ">=20.0.0 <22.0.0",
31
+ "@angular/core": ">=20.0.0 <22.0.0",
32
+ "@angular/forms": ">=20.0.0 <22.0.0",
33
+ "@angular/platform-browser": ">=20.0.0 <22.0.0",
34
+ "rxjs": "^7.8.0"
35
+ },
36
+ "dependencies": {
37
+ "class-variance-authority": "^0.7.1",
38
+ "clsx": "^2.1.1",
39
+ "tailwind-merge": "^3.4.0",
40
+ "tslib": "^2.3.0"
41
+ },
42
+ "module": "fesm2022/gilav21-shadcn-angular-rte.mjs",
43
+ "typings": "types/gilav21-shadcn-angular-rte.d.ts",
44
+ "type": "module"
45
+ }
package/theme.css ADDED
@@ -0,0 +1,159 @@
1
+ @custom-variant dark (&:is(.dark *));
2
+
3
+ :root {
4
+ --radius: 0.625rem;
5
+ --background: oklch(1 0 0);
6
+ --foreground: oklch(0.145 0 0);
7
+ --card: oklch(1 0 0);
8
+ --card-foreground: oklch(0.145 0 0);
9
+ --popover: oklch(1 0 0);
10
+ --popover-foreground: oklch(0.145 0 0);
11
+ --secondary: oklch(0.97 0 0);
12
+ --secondary-foreground: oklch(0.205 0 0);
13
+ --muted: oklch(0.97 0 0);
14
+ --muted-foreground: oklch(0.556 0 0);
15
+ --accent: oklch(0.922 0 0);
16
+ --accent-foreground: oklch(0.205 0 0);
17
+ --destructive: oklch(0.577 0.245 27.325);
18
+ --border: oklch(0.922 0 0);
19
+ --input: oklch(0.922 0 0);
20
+ --primary: oklch(0.205 0 0);
21
+ --primary-foreground: oklch(0.985 0 0);
22
+ --ring: oklch(0.708 0 0);
23
+ --chart-1: oklch(0.646 0.222 41.116);
24
+ --chart-2: oklch(0.6 0.118 184.704);
25
+ --chart-3: oklch(0.398 0.07 227.392);
26
+ --chart-4: oklch(0.828 0.189 84.429);
27
+ --chart-5: oklch(0.769 0.188 70.08);
28
+ --sidebar: oklch(0.985 0 0);
29
+ --sidebar-foreground: oklch(0.145 0 0);
30
+ --sidebar-primary: oklch(0.205 0 0);
31
+ --sidebar-primary-foreground: oklch(0.985 0 0);
32
+ --sidebar-accent: oklch(0.97 0 0);
33
+ --sidebar-accent-foreground: oklch(0.205 0 0);
34
+ --sidebar-border: oklch(0.922 0 0);
35
+ --sidebar-ring: oklch(0.708 0 0);
36
+ }
37
+
38
+ .dark {
39
+ --background: oklch(0.145 0 0);
40
+ --foreground: oklch(0.985 0 0);
41
+ --card: oklch(0.205 0 0);
42
+ --card-foreground: oklch(0.985 0 0);
43
+ --popover: oklch(0.269 0 0);
44
+ --popover-foreground: oklch(0.985 0 0);
45
+ --secondary: oklch(0.269 0 0);
46
+ --secondary-foreground: oklch(0.985 0 0);
47
+ --muted: oklch(0.269 0 0);
48
+ --muted-foreground: oklch(0.708 0 0);
49
+ --accent: oklch(0.371 0 0);
50
+ --accent-foreground: oklch(0.985 0 0);
51
+ --destructive: oklch(0.704 0.191 22.216);
52
+ --border: oklch(1 0 0 / 10%);
53
+ --input: oklch(1 0 0 / 15%);
54
+ --primary: oklch(0.985 0 0);
55
+ --primary-foreground: oklch(0.205 0 0);
56
+ --ring: oklch(0.708 0 0);
57
+ --chart-1: oklch(0.488 0.243 264.376);
58
+ --chart-2: oklch(0.696 0.17 162.48);
59
+ --chart-3: oklch(0.769 0.188 70.08);
60
+ --chart-4: oklch(0.627 0.265 303.9);
61
+ --chart-5: oklch(0.645 0.246 16.439);
62
+ --sidebar: oklch(0.205 0 0);
63
+ --sidebar-foreground: oklch(0.985 0 0);
64
+ --sidebar-primary: oklch(0.488 0.243 264.376);
65
+ --sidebar-primary-foreground: oklch(0.985 0 0);
66
+ --sidebar-accent: oklch(0.269 0 0);
67
+ --sidebar-accent-foreground: oklch(0.985 0 0);
68
+ --sidebar-border: oklch(1 0 0 / 10%);
69
+ --sidebar-ring: oklch(0.439 0 0);
70
+ }
71
+
72
+ @theme inline {
73
+ --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
74
+ --color-background: var(--background);
75
+ --color-foreground: var(--foreground);
76
+ --color-card: var(--card);
77
+ --color-card-foreground: var(--card-foreground);
78
+ --color-popover: var(--popover);
79
+ --color-popover-foreground: var(--popover-foreground);
80
+ --color-primary: var(--primary);
81
+ --color-primary-foreground: var(--primary-foreground);
82
+ --color-secondary: var(--secondary);
83
+ --color-secondary-foreground: var(--secondary-foreground);
84
+ --color-muted: var(--muted);
85
+ --color-muted-foreground: var(--muted-foreground);
86
+ --color-accent: var(--accent);
87
+ --color-accent-foreground: var(--accent-foreground);
88
+ --color-destructive: var(--destructive);
89
+ --color-border: var(--border);
90
+ --color-input: var(--input);
91
+ --color-ring: var(--ring);
92
+ --color-chart-1: var(--chart-1);
93
+ --color-chart-2: var(--chart-2);
94
+ --color-chart-3: var(--chart-3);
95
+ --color-chart-4: var(--chart-4);
96
+ --color-chart-5: var(--chart-5);
97
+ --color-sidebar: var(--sidebar);
98
+ --color-sidebar-foreground: var(--sidebar-foreground);
99
+ --color-sidebar-primary: var(--sidebar-primary);
100
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
101
+ --color-sidebar-accent: var(--sidebar-accent);
102
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
103
+ --color-sidebar-border: var(--sidebar-border);
104
+ --color-sidebar-ring: var(--sidebar-ring);
105
+ --radius-sm: calc(var(--radius) - 4px);
106
+ --radius-md: calc(var(--radius) - 2px);
107
+ --radius-lg: var(--radius);
108
+ --radius-xl: calc(var(--radius) + 4px);
109
+ --radius-2xl: calc(var(--radius) + 8px);
110
+ --radius-3xl: calc(var(--radius) + 12px);
111
+ --radius-4xl: calc(var(--radius) + 16px);
112
+ }
113
+
114
+ @layer base {
115
+ * {
116
+ border-color: var(--border);
117
+ outline-color: color-mix(in oklch, var(--ring) 50%, transparent);
118
+ }
119
+ body {
120
+ font-family: var(--font-sans);
121
+ background-color: var(--background);
122
+ color: var(--foreground);
123
+ }
124
+ html {
125
+ font-family: var(--font-sans);
126
+ font-size: 16px;
127
+ }
128
+ button:not(:disabled),
129
+ [role="button"]:not(:disabled) {
130
+ cursor: pointer;
131
+ }
132
+
133
+ /* Prevent media elements from causing horizontal overflow */
134
+ img, video, canvas {
135
+ max-width: 100%;
136
+ height: auto;
137
+ }
138
+
139
+ /* Minimum touch target size (WCAG 2.5.8) */
140
+ @media (pointer: coarse) {
141
+ button:not([data-slot]),
142
+ [role="button"]:not([data-slot]),
143
+ input,
144
+ select,
145
+ textarea {
146
+ min-height: 44px;
147
+ }
148
+ }
149
+
150
+ /* Show hover-dependent controls on touch devices */
151
+ @media (hover: none) {
152
+ .hover-only {
153
+ display: none;
154
+ }
155
+ .touch-visible {
156
+ opacity: 1 !important;
157
+ }
158
+ }
159
+ }