@nuasite/cms 0.3.0 → 0.5.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 (188) hide show
  1. package/dist/editor.js +35991 -0
  2. package/package.json +12 -11
  3. package/src/dev-middleware.ts +82 -2
  4. package/src/editor/components/block-editor.tsx +48 -57
  5. package/src/editor/components/outline.tsx +42 -35
  6. package/src/editor/components/toolbar.tsx +7 -4
  7. package/src/editor/hooks/useBlockEditorHandlers.ts +5 -5
  8. package/src/editor/hooks/useElementDetection.ts +2 -2
  9. package/src/editor/index.tsx +3 -2
  10. package/src/handlers/array-ops.ts +4 -4
  11. package/src/index.ts +54 -28
  12. package/dist/src/build-processor.d.ts +0 -20
  13. package/dist/src/build-processor.d.ts.map +0 -1
  14. package/dist/src/collection-scanner.d.ts +0 -6
  15. package/dist/src/collection-scanner.d.ts.map +0 -1
  16. package/dist/src/component-registry.d.ts +0 -67
  17. package/dist/src/component-registry.d.ts.map +0 -1
  18. package/dist/src/config.d.ts +0 -24
  19. package/dist/src/config.d.ts.map +0 -1
  20. package/dist/src/dev-middleware.d.ts +0 -20
  21. package/dist/src/dev-middleware.d.ts.map +0 -1
  22. package/dist/src/editor/ai.d.ts +0 -60
  23. package/dist/src/editor/ai.d.ts.map +0 -1
  24. package/dist/src/editor/api.d.ts +0 -154
  25. package/dist/src/editor/api.d.ts.map +0 -1
  26. package/dist/src/editor/color-utils.d.ts +0 -106
  27. package/dist/src/editor/color-utils.d.ts.map +0 -1
  28. package/dist/src/editor/components/ai-chat.d.ts +0 -11
  29. package/dist/src/editor/components/ai-chat.d.ts.map +0 -1
  30. package/dist/src/editor/components/ai-tooltip.d.ts +0 -12
  31. package/dist/src/editor/components/ai-tooltip.d.ts.map +0 -1
  32. package/dist/src/editor/components/attribute-editor.d.ts +0 -5
  33. package/dist/src/editor/components/attribute-editor.d.ts.map +0 -1
  34. package/dist/src/editor/components/block-editor.d.ts +0 -12
  35. package/dist/src/editor/components/block-editor.d.ts.map +0 -1
  36. package/dist/src/editor/components/collections-browser.d.ts +0 -2
  37. package/dist/src/editor/components/collections-browser.d.ts.map +0 -1
  38. package/dist/src/editor/components/color-toolbar.d.ts +0 -12
  39. package/dist/src/editor/components/color-toolbar.d.ts.map +0 -1
  40. package/dist/src/editor/components/confirm-dialog.d.ts +0 -2
  41. package/dist/src/editor/components/confirm-dialog.d.ts.map +0 -1
  42. package/dist/src/editor/components/create-page-modal.d.ts +0 -2
  43. package/dist/src/editor/components/create-page-modal.d.ts.map +0 -1
  44. package/dist/src/editor/components/editable-highlights.d.ts +0 -9
  45. package/dist/src/editor/components/editable-highlights.d.ts.map +0 -1
  46. package/dist/src/editor/components/error-boundary.d.ts +0 -32
  47. package/dist/src/editor/components/error-boundary.d.ts.map +0 -1
  48. package/dist/src/editor/components/fields.d.ts +0 -75
  49. package/dist/src/editor/components/fields.d.ts.map +0 -1
  50. package/dist/src/editor/components/frontmatter-fields.d.ts +0 -29
  51. package/dist/src/editor/components/frontmatter-fields.d.ts.map +0 -1
  52. package/dist/src/editor/components/highlight-overlay.d.ts +0 -64
  53. package/dist/src/editor/components/highlight-overlay.d.ts.map +0 -1
  54. package/dist/src/editor/components/image-overlay.d.ts +0 -12
  55. package/dist/src/editor/components/image-overlay.d.ts.map +0 -1
  56. package/dist/src/editor/components/markdown-editor-overlay.d.ts +0 -6
  57. package/dist/src/editor/components/markdown-editor-overlay.d.ts.map +0 -1
  58. package/dist/src/editor/components/markdown-inline-editor.d.ts +0 -10
  59. package/dist/src/editor/components/markdown-inline-editor.d.ts.map +0 -1
  60. package/dist/src/editor/components/media-library.d.ts +0 -2
  61. package/dist/src/editor/components/media-library.d.ts.map +0 -1
  62. package/dist/src/editor/components/outline.d.ts +0 -21
  63. package/dist/src/editor/components/outline.d.ts.map +0 -1
  64. package/dist/src/editor/components/redirect-countdown.d.ts +0 -2
  65. package/dist/src/editor/components/redirect-countdown.d.ts.map +0 -1
  66. package/dist/src/editor/components/seo-editor.d.ts +0 -2
  67. package/dist/src/editor/components/seo-editor.d.ts.map +0 -1
  68. package/dist/src/editor/components/text-style-toolbar.d.ts +0 -8
  69. package/dist/src/editor/components/text-style-toolbar.d.ts.map +0 -1
  70. package/dist/src/editor/components/toast/toast-container.d.ts +0 -7
  71. package/dist/src/editor/components/toast/toast-container.d.ts.map +0 -1
  72. package/dist/src/editor/components/toast/toast.d.ts +0 -7
  73. package/dist/src/editor/components/toast/toast.d.ts.map +0 -1
  74. package/dist/src/editor/components/toast/types.d.ts +0 -7
  75. package/dist/src/editor/components/toast/types.d.ts.map +0 -1
  76. package/dist/src/editor/components/toolbar.d.ts +0 -21
  77. package/dist/src/editor/components/toolbar.d.ts.map +0 -1
  78. package/dist/src/editor/config.d.ts +0 -4
  79. package/dist/src/editor/config.d.ts.map +0 -1
  80. package/dist/src/editor/constants.d.ts +0 -102
  81. package/dist/src/editor/constants.d.ts.map +0 -1
  82. package/dist/src/editor/context.d.ts +0 -14
  83. package/dist/src/editor/context.d.ts.map +0 -1
  84. package/dist/src/editor/dom.d.ts +0 -86
  85. package/dist/src/editor/dom.d.ts.map +0 -1
  86. package/dist/src/editor/editor.d.ts +0 -64
  87. package/dist/src/editor/editor.d.ts.map +0 -1
  88. package/dist/src/editor/history.d.ts +0 -20
  89. package/dist/src/editor/history.d.ts.map +0 -1
  90. package/dist/src/editor/hooks/index.d.ts +0 -14
  91. package/dist/src/editor/hooks/index.d.ts.map +0 -1
  92. package/dist/src/editor/hooks/useAIHandlers.d.ts +0 -22
  93. package/dist/src/editor/hooks/useAIHandlers.d.ts.map +0 -1
  94. package/dist/src/editor/hooks/useBlockEditorHandlers.d.ts +0 -18
  95. package/dist/src/editor/hooks/useBlockEditorHandlers.d.ts.map +0 -1
  96. package/dist/src/editor/hooks/useElementDetection.d.ts +0 -26
  97. package/dist/src/editor/hooks/useElementDetection.d.ts.map +0 -1
  98. package/dist/src/editor/hooks/useImageHoverDetection.d.ts +0 -12
  99. package/dist/src/editor/hooks/useImageHoverDetection.d.ts.map +0 -1
  100. package/dist/src/editor/hooks/useTextSelection.d.ts +0 -23
  101. package/dist/src/editor/hooks/useTextSelection.d.ts.map +0 -1
  102. package/dist/src/editor/hooks/useTooltipState.d.ts +0 -19
  103. package/dist/src/editor/hooks/useTooltipState.d.ts.map +0 -1
  104. package/dist/src/editor/hooks/utils.d.ts +0 -32
  105. package/dist/src/editor/hooks/utils.d.ts.map +0 -1
  106. package/dist/src/editor/index.d.ts +0 -12
  107. package/dist/src/editor/index.d.ts.map +0 -1
  108. package/dist/src/editor/lib/cn.d.ts +0 -3
  109. package/dist/src/editor/lib/cn.d.ts.map +0 -1
  110. package/dist/src/editor/manifest.d.ts +0 -19
  111. package/dist/src/editor/manifest.d.ts.map +0 -1
  112. package/dist/src/editor/markdown-api.d.ts +0 -36
  113. package/dist/src/editor/markdown-api.d.ts.map +0 -1
  114. package/dist/src/editor/signals.d.ts +0 -242
  115. package/dist/src/editor/signals.d.ts.map +0 -1
  116. package/dist/src/editor/storage.d.ts +0 -29
  117. package/dist/src/editor/storage.d.ts.map +0 -1
  118. package/dist/src/editor/text-styling.d.ts +0 -350
  119. package/dist/src/editor/text-styling.d.ts.map +0 -1
  120. package/dist/src/editor/themes.d.ts +0 -38
  121. package/dist/src/editor/themes.d.ts.map +0 -1
  122. package/dist/src/editor/types.d.ts +0 -454
  123. package/dist/src/editor/types.d.ts.map +0 -1
  124. package/dist/src/error-collector.d.ts +0 -56
  125. package/dist/src/error-collector.d.ts.map +0 -1
  126. package/dist/src/handlers/array-ops.d.ts +0 -59
  127. package/dist/src/handlers/array-ops.d.ts.map +0 -1
  128. package/dist/src/handlers/component-ops.d.ts +0 -60
  129. package/dist/src/handlers/component-ops.d.ts.map +0 -1
  130. package/dist/src/handlers/markdown-ops.d.ts +0 -41
  131. package/dist/src/handlers/markdown-ops.d.ts.map +0 -1
  132. package/dist/src/handlers/request-utils.d.ts +0 -20
  133. package/dist/src/handlers/request-utils.d.ts.map +0 -1
  134. package/dist/src/handlers/source-writer.d.ts +0 -51
  135. package/dist/src/handlers/source-writer.d.ts.map +0 -1
  136. package/dist/src/html-processor.d.ts +0 -63
  137. package/dist/src/html-processor.d.ts.map +0 -1
  138. package/dist/src/index.d.ts +0 -41
  139. package/dist/src/index.d.ts.map +0 -1
  140. package/dist/src/manifest-writer.d.ts +0 -111
  141. package/dist/src/manifest-writer.d.ts.map +0 -1
  142. package/dist/src/media/contember.d.ts +0 -15
  143. package/dist/src/media/contember.d.ts.map +0 -1
  144. package/dist/src/media/local.d.ts +0 -9
  145. package/dist/src/media/local.d.ts.map +0 -1
  146. package/dist/src/media/s3.d.ts +0 -12
  147. package/dist/src/media/s3.d.ts.map +0 -1
  148. package/dist/src/media/types.d.ts +0 -40
  149. package/dist/src/media/types.d.ts.map +0 -1
  150. package/dist/src/preview-generator.d.ts +0 -19
  151. package/dist/src/preview-generator.d.ts.map +0 -1
  152. package/dist/src/seo-processor.d.ts +0 -23
  153. package/dist/src/seo-processor.d.ts.map +0 -1
  154. package/dist/src/source-finder/ast-extractors.d.ts +0 -35
  155. package/dist/src/source-finder/ast-extractors.d.ts.map +0 -1
  156. package/dist/src/source-finder/ast-parser.d.ts +0 -18
  157. package/dist/src/source-finder/ast-parser.d.ts.map +0 -1
  158. package/dist/src/source-finder/cache.d.ts +0 -18
  159. package/dist/src/source-finder/cache.d.ts.map +0 -1
  160. package/dist/src/source-finder/collection-finder.d.ts +0 -29
  161. package/dist/src/source-finder/collection-finder.d.ts.map +0 -1
  162. package/dist/src/source-finder/cross-file-tracker.d.ts +0 -39
  163. package/dist/src/source-finder/cross-file-tracker.d.ts.map +0 -1
  164. package/dist/src/source-finder/element-finder.d.ts +0 -42
  165. package/dist/src/source-finder/element-finder.d.ts.map +0 -1
  166. package/dist/src/source-finder/image-finder.d.ts +0 -24
  167. package/dist/src/source-finder/image-finder.d.ts.map +0 -1
  168. package/dist/src/source-finder/index.d.ts +0 -9
  169. package/dist/src/source-finder/index.d.ts.map +0 -1
  170. package/dist/src/source-finder/search-index.d.ts +0 -27
  171. package/dist/src/source-finder/search-index.d.ts.map +0 -1
  172. package/dist/src/source-finder/snippet-utils.d.ts +0 -96
  173. package/dist/src/source-finder/snippet-utils.d.ts.map +0 -1
  174. package/dist/src/source-finder/source-lookup.d.ts +0 -16
  175. package/dist/src/source-finder/source-lookup.d.ts.map +0 -1
  176. package/dist/src/source-finder/types.d.ts +0 -167
  177. package/dist/src/source-finder/types.d.ts.map +0 -1
  178. package/dist/src/source-finder/variable-extraction.d.ts +0 -37
  179. package/dist/src/source-finder/variable-extraction.d.ts.map +0 -1
  180. package/dist/src/tailwind-colors.d.ts +0 -54
  181. package/dist/src/tailwind-colors.d.ts.map +0 -1
  182. package/dist/src/tsconfig.tsbuildinfo +0 -1
  183. package/dist/src/types.d.ts +0 -367
  184. package/dist/src/types.d.ts.map +0 -1
  185. package/dist/src/utils.d.ts +0 -61
  186. package/dist/src/utils.d.ts.map +0 -1
  187. package/dist/src/vite-plugin.d.ts +0 -14
  188. package/dist/src/vite-plugin.d.ts.map +0 -1
@@ -1,242 +0,0 @@
1
- import { batch, type Signal } from '@preact/signals';
2
- import type { ToastMessage, ToastType } from './components/toast/types';
3
- import type { AIState, AIStatusType, AttributeEditorState, BlockEditorState, ChatMessage, CmsConfig, CmsManifest, CmsSettings, CollectionDefinition, CollectionEntry, CollectionsBrowserState, ColorEditorState, ComponentInstance, ConfirmDialogState, CreatePageState, DeploymentState, DeploymentStatusType, EditorState, MarkdownEditorState, MarkdownPageEntry, MediaItem, MediaLibraryState, PendingAttributeChange, PendingChange, PendingColorChange, PendingComponentInsert, PendingImageChange, PendingSeoChange, SeoEditorState } from './types';
4
- export declare const isEnabled: Signal<boolean>;
5
- export declare const isEditing: Signal<boolean>;
6
- export declare const isSaving: Signal<boolean>;
7
- export declare const showingOriginal: Signal<boolean>;
8
- export declare const currentEditingId: Signal<string | null>;
9
- export declare const currentComponentId: Signal<string | null>;
10
- export declare const pendingChanges: Signal<Map<string, PendingChange>>;
11
- export declare const pendingComponentChanges: Signal<Map<string, ComponentInstance>>;
12
- export declare const pendingInserts: Signal<Map<string, PendingComponentInsert>>;
13
- export declare const pendingImageChanges: Signal<Map<string, PendingImageChange>>;
14
- export declare const pendingColorChanges: Signal<Map<string, PendingColorChange>>;
15
- export declare const manifest: Signal<CmsManifest>;
16
- export declare const currentPageCollection: import("@preact/signals-core").ReadonlySignal<CollectionEntry | null>;
17
- export declare const aiState: Signal<AIState>;
18
- export declare const isAIProcessing: import("@preact/signals-core").ReadonlySignal<boolean>;
19
- export declare const isChatOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
20
- export declare const chatMessages: import("@preact/signals-core").ReadonlySignal<ChatMessage[]>;
21
- export declare const chatContextElementId: import("@preact/signals-core").ReadonlySignal<string | null>;
22
- export declare const currentStatus: import("@preact/signals-core").ReadonlySignal<AIStatusType>;
23
- export declare const statusMessage: import("@preact/signals-core").ReadonlySignal<string | null>;
24
- export declare const blockEditorState: Signal<BlockEditorState>;
25
- export declare const isBlockEditorOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
26
- export declare const blockEditorMode: import("@preact/signals-core").ReadonlySignal<"edit" | "add" | "picker">;
27
- export declare const markdownEditorState: Signal<MarkdownEditorState>;
28
- export declare const isMarkdownEditorOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
29
- export declare const currentMarkdownPage: import("@preact/signals-core").ReadonlySignal<MarkdownPageEntry | null>;
30
- export declare const isMarkdownPreview: Signal<boolean>;
31
- export declare const mediaLibraryState: Signal<MediaLibraryState>;
32
- export declare const isMediaLibraryOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
33
- export declare const mediaLibraryItems: import("@preact/signals-core").ReadonlySignal<MediaItem[]>;
34
- export declare const isMediaLibraryLoading: import("@preact/signals-core").ReadonlySignal<boolean>;
35
- export declare const createPageState: Signal<CreatePageState>;
36
- export declare const isCreatePageOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
37
- export declare const isCreatingPage: import("@preact/signals-core").ReadonlySignal<boolean>;
38
- export declare const selectedCollection: import("@preact/signals-core").ReadonlySignal<string | null>;
39
- export declare const collectionsBrowserState: Signal<CollectionsBrowserState>;
40
- export declare const isCollectionsBrowserOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
41
- export declare const selectedBrowserCollection: import("@preact/signals-core").ReadonlySignal<string | null>;
42
- export declare const deploymentState: Signal<DeploymentState>;
43
- export declare const deploymentStatus: import("@preact/signals-core").ReadonlySignal<DeploymentStatusType | null>;
44
- export declare const isDeploymentPolling: import("@preact/signals-core").ReadonlySignal<boolean>;
45
- export declare const lastDeployedAt: import("@preact/signals-core").ReadonlySignal<string | null>;
46
- export interface RedirectCountdownState {
47
- url: string;
48
- label: string;
49
- secondsLeft: number;
50
- }
51
- export declare const redirectCountdown: Signal<RedirectCountdownState | null>;
52
- export declare function startRedirectCountdown(url: string, label: string, seconds?: number): void;
53
- export declare function stopRedirectCountdown(): void;
54
- export declare const colorEditorState: Signal<ColorEditorState>;
55
- export declare const isColorEditorOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
56
- export declare const colorEditorTargetId: import("@preact/signals-core").ReadonlySignal<string | null>;
57
- export declare const confirmDialogState: Signal<ConfirmDialogState>;
58
- export declare const isConfirmDialogOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
59
- export declare const settings: Signal<CmsSettings>;
60
- export declare const showEditableHighlights: import("@preact/signals-core").ReadonlySignal<boolean>;
61
- export declare const seoEditorState: Signal<SeoEditorState>;
62
- export declare const pendingSeoChanges: Signal<Map<string, PendingSeoChange>>;
63
- export declare const isSeoEditorOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
64
- export declare const attributeEditorState: Signal<AttributeEditorState>;
65
- export declare const pendingAttributeChanges: Signal<Map<string, PendingAttributeChange>>;
66
- export declare const isAttributeEditorOpen: import("@preact/signals-core").ReadonlySignal<boolean>;
67
- export declare const attributeEditorTargetId: import("@preact/signals-core").ReadonlySignal<string | null>;
68
- /** True when user is hovering over color swatches */
69
- export declare const isHoveringSwatches: Signal<boolean>;
70
- /** True when user is hovering over attribute edit button */
71
- export declare const isHoveringAttributeButton: Signal<boolean>;
72
- /** Computed: true when hovering over any outline UI element (swatches, attr button) */
73
- export declare const isHoveringOutlineUI: import("@preact/signals-core").ReadonlySignal<boolean>;
74
- export declare function setHoveringSwatches(hovering: boolean): void;
75
- export declare function setHoveringAttributeButton(hovering: boolean): void;
76
- export declare const config: Signal<CmsConfig>;
77
- export declare const toasts: Signal<ToastMessage[]>;
78
- export declare const dirtyChangesCount: import("@preact/signals-core").ReadonlySignal<number>;
79
- export declare const dirtyChanges: import("@preact/signals-core").ReadonlySignal<[string, PendingChange][]>;
80
- export declare const hasDirtyChanges: import("@preact/signals-core").ReadonlySignal<boolean>;
81
- export declare const dirtyImageChangesCount: import("@preact/signals-core").ReadonlySignal<number>;
82
- export declare const dirtyImageChanges: import("@preact/signals-core").ReadonlySignal<[string, PendingImageChange][]>;
83
- export declare const hasDirtyImageChanges: import("@preact/signals-core").ReadonlySignal<boolean>;
84
- export declare const dirtyColorChangesCount: import("@preact/signals-core").ReadonlySignal<number>;
85
- export declare const dirtyColorChanges: import("@preact/signals-core").ReadonlySignal<[string, PendingColorChange][]>;
86
- export declare const hasDirtyColorChanges: import("@preact/signals-core").ReadonlySignal<boolean>;
87
- export declare const dirtySeoChangesCount: import("@preact/signals-core").ReadonlySignal<number>;
88
- export declare const dirtySeoChanges: import("@preact/signals-core").ReadonlySignal<[string, PendingSeoChange][]>;
89
- export declare const hasDirtySeoChanges: import("@preact/signals-core").ReadonlySignal<boolean>;
90
- export declare const dirtyAttributeChangesCount: import("@preact/signals-core").ReadonlySignal<number>;
91
- export declare const dirtyAttributeChanges: import("@preact/signals-core").ReadonlySignal<[string, PendingAttributeChange][]>;
92
- export declare const hasDirtyAttributeChanges: import("@preact/signals-core").ReadonlySignal<boolean>;
93
- export declare const totalDirtyCount: import("@preact/signals-core").ReadonlySignal<number>;
94
- export declare const hasAnyDirtyChanges: import("@preact/signals-core").ReadonlySignal<boolean>;
95
- export declare const changeNavigationIndex: Signal<number>;
96
- export declare const allDirtyElements: import("@preact/signals-core").ReadonlySignal<{
97
- cmsId: string;
98
- element: HTMLElement;
99
- type: "text" | "image" | "color";
100
- }[]>;
101
- export declare function setManifest(newManifest: CmsManifest): void;
102
- export declare function setEnabled(enabled: boolean): void;
103
- export declare function setEditing(editing: boolean): void;
104
- export declare function setShowingOriginal(showing: boolean): void;
105
- export declare function setCurrentEditingId(id: string | null): void;
106
- export declare function setCurrentComponentId(componentId: string | null): void;
107
- export declare const setPendingChange: (id: string, value: PendingChange) => void;
108
- export declare const updatePendingChange: (id: string, updater: (value: PendingChange) => PendingChange) => void;
109
- export declare const deletePendingChange: (id: string) => void;
110
- export declare const clearPendingChanges: () => void;
111
- export declare const getPendingChange: (id: string) => PendingChange | undefined;
112
- export declare const setPendingComponentChange: (id: string, value: ComponentInstance) => void;
113
- export declare const deletePendingComponentChange: (id: string) => void;
114
- export declare const clearPendingComponentChanges: () => void;
115
- export declare const setPendingInsert: (id: string, value: PendingComponentInsert) => void;
116
- export declare const deletePendingInsert: (id: string) => void;
117
- export declare const clearPendingInserts: () => void;
118
- export declare const setPendingImageChange: (id: string, value: PendingImageChange) => void;
119
- export declare const updatePendingImageChange: (id: string, updater: (value: PendingImageChange) => PendingImageChange) => void;
120
- export declare const deletePendingImageChange: (id: string) => void;
121
- export declare const clearPendingImageChanges: () => void;
122
- export declare const getPendingImageChange: (id: string) => PendingImageChange | undefined;
123
- export declare const setPendingColorChange: (id: string, value: PendingColorChange) => void;
124
- export declare const updatePendingColorChange: (id: string, updater: (value: PendingColorChange) => PendingColorChange) => void;
125
- export declare const deletePendingColorChange: (id: string) => void;
126
- export declare const clearPendingColorChanges: () => void;
127
- export declare const getPendingColorChange: (id: string) => PendingColorChange | undefined;
128
- export declare const setPendingSeoChange: (id: string, value: PendingSeoChange) => void;
129
- export declare const updatePendingSeoChange: (id: string, updater: (value: PendingSeoChange) => PendingSeoChange) => void;
130
- export declare const deletePendingSeoChange: (id: string) => void;
131
- export declare const clearPendingSeoChanges: () => void;
132
- export declare const getPendingSeoChange: (id: string) => PendingSeoChange | undefined;
133
- export declare const setPendingAttributeChange: (id: string, value: PendingAttributeChange) => void;
134
- export declare const updatePendingAttributeChange: (id: string, updater: (value: PendingAttributeChange) => PendingAttributeChange) => void;
135
- export declare const deletePendingAttributeChange: (id: string) => void;
136
- export declare const clearPendingAttributeChanges: () => void;
137
- export declare const getPendingAttributeChange: (id: string) => PendingAttributeChange | undefined;
138
- export declare function setAIPromptVisible(visible: boolean): void;
139
- export declare function setAIProcessing(processing: boolean): void;
140
- export declare function setAIStatus(status: AIStatusType, message?: string): void;
141
- export declare function clearAIStatus(): void;
142
- export declare function setAITargetElement(elementId: string | null): void;
143
- export declare function setAIStreamingContent(content: string | null): void;
144
- export declare function setAIError(error: string | null): void;
145
- export declare function resetAIState(): void;
146
- export declare function setAIChatOpen(open: boolean): void;
147
- export declare function addChatMessage(message: ChatMessage): void;
148
- export declare function setChatMessages(messages: ChatMessage[]): void;
149
- export declare function updateChatMessage(messageId: string, content: string): void;
150
- export declare function setChatContextElement(elementId: string | null): void;
151
- export declare function clearChatMessages(): void;
152
- export declare function setBlockEditorOpen(open: boolean): void;
153
- export declare function setBlockEditorMode(mode: 'edit' | 'add' | 'picker'): void;
154
- export declare function resetBlockEditorState(): void;
155
- export declare function setMarkdownEditorOpen(open: boolean): void;
156
- export declare function setMarkdownPage(page: MarkdownPageEntry | null): void;
157
- export declare function updateMarkdownContent(content: string): void;
158
- export declare function setMarkdownActiveElement(elementId: string | null): void;
159
- export declare function updateMarkdownFrontmatter(updates: Partial<import('./types').BlogFrontmatter>): void;
160
- export declare function resetMarkdownEditorState(): void;
161
- /**
162
- * Open the markdown editor for the current page's collection entry.
163
- * Refreshes the manifest first to ensure we have the latest content.
164
- */
165
- export declare function openMarkdownEditorForCurrentPage(): Promise<boolean>;
166
- /**
167
- * Open the markdown editor in "create" mode for a new page in the given collection.
168
- * Builds initial frontmatter from the collection's field definitions.
169
- */
170
- export declare function openMarkdownEditorForNewPage(collectionName: string, collectionDefinition: CollectionDefinition): void;
171
- export declare function setMediaLibraryOpen(open: boolean): void;
172
- export declare function setMediaLibraryItems(items: MediaItem[]): void;
173
- export declare function setMediaLibraryLoading(loading: boolean): void;
174
- export declare function setMediaLibrarySelectedItem(item: MediaItem | null): void;
175
- export declare function setMediaLibraryInsertCallback(callback: ((url: string, alt: string) => void) | null): void;
176
- export declare function openMediaLibraryWithCallback(callback: (url: string, alt: string) => void): void;
177
- export declare function resetMediaLibraryState(): void;
178
- export declare function setCreatePageOpen(open: boolean): void;
179
- export declare function setCreatingPage(creating: boolean): void;
180
- export declare function setSelectedCollection(collection: string | null): void;
181
- export declare function resetCreatePageState(): void;
182
- export declare function openCollectionsBrowser(): void;
183
- export declare function selectBrowserCollection(name: string | null): void;
184
- export declare function closeCollectionsBrowser(): void;
185
- /**
186
- * Open the markdown editor for an existing collection entry.
187
- * Fetches markdown content via the API and opens in edit mode.
188
- */
189
- export declare function openMarkdownEditorForEntry(collectionName: string, slug: string, sourcePath: string, collectionDefinition: CollectionDefinition): Promise<void>;
190
- export declare function setDeploymentStatus(status: DeploymentStatusType | null): void;
191
- export declare function setDeploymentPolling(isPolling: boolean): void;
192
- export declare function setLastDeployedAt(timestamp: string | null): void;
193
- export declare function setDeploymentError(error: string | null): void;
194
- export declare function updateDeploymentState(update: Partial<DeploymentState>): void;
195
- export declare function resetDeploymentState(): void;
196
- export declare function setColorEditorOpen(open: boolean): void;
197
- export declare function setColorEditorTarget(elementId: string | null, rect: DOMRect | null): void;
198
- export declare function openColorEditor(elementId: string, rect: DOMRect): void;
199
- export declare function closeColorEditor(): void;
200
- export declare function resetColorEditorState(): void;
201
- export interface ShowConfirmOptions {
202
- title?: string;
203
- message: string;
204
- confirmLabel?: string;
205
- cancelLabel?: string;
206
- variant?: 'danger' | 'warning' | 'info';
207
- }
208
- export declare function showConfirmDialog(options: ShowConfirmOptions): Promise<boolean>;
209
- export declare function closeConfirmDialog(): void;
210
- export declare function setShowEditableHighlights(show: boolean): void;
211
- export declare function toggleShowEditableHighlights(): void;
212
- export declare function updateSettings(update: Partial<CmsSettings>): void;
213
- export declare function resetSettings(): void;
214
- export declare function setSeoEditorOpen(open: boolean): void;
215
- export declare function openSeoEditor(): void;
216
- export declare function closeSeoEditor(): void;
217
- export declare function resetSeoEditorState(): void;
218
- export declare function setAttributeEditorOpen(open: boolean): void;
219
- export declare function setAttributeEditorTarget(elementId: string | null, rect: DOMRect | null): void;
220
- export declare function openAttributeEditor(elementId: string, rect: DOMRect): void;
221
- export declare function closeAttributeEditor(): void;
222
- export declare function resetAttributeEditorState(): void;
223
- export declare function showToast(message: string, type?: ToastType): string;
224
- export declare function removeToast(id: string): void;
225
- export declare function setConfig(newConfig: CmsConfig): void;
226
- export declare function navigateToNextChange(): void;
227
- export declare function resetChangeNavigationIndex(): void;
228
- /**
229
- * Get a snapshot of the current state for legacy code paths.
230
- * Prefer using individual signals directly when possible.
231
- */
232
- export declare function getStateSnapshot(): EditorState;
233
- /**
234
- * Batch multiple state updates for performance.
235
- * Use this when updating multiple signals at once.
236
- */
237
- export { batch };
238
- /**
239
- * Reset all state to initial values.
240
- */
241
- export declare function resetAllState(): void;
242
- //# sourceMappingURL=signals.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/editor/signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAY,KAAK,MAAM,EAAU,MAAM,iBAAiB,CAAA;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEvE,OAAO,KAAK,EACX,OAAO,EACP,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,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AI,CAE3C;AAED,wBAAgB,yBAAyB,IAAI,IAAI,CAGhD;AAMD,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,SAAkB,GAAG,MAAM,CAI3E;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAE5C;AAMD,wBAAgB,SAAS,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAEpD;AAMD,wBAAgB,oBAAoB,IAAI,IAAI,CAgB3C;AAED,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,CAc9C;AAED;;;GAGG;AACH,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CA4BpC"}
@@ -1,29 +0,0 @@
1
- import type { CmsSettings, PendingAttributeChange, PendingChange, PendingColorChange, PendingImageChange, SavedAttributeEdits, SavedColorEdits, SavedEdits, SavedImageEdits } from './types';
2
- export declare function saveEditsToStorage(pendingChanges: Map<string, PendingChange>): void;
3
- export declare function loadEditsFromStorage(): SavedEdits;
4
- export declare function clearEditsFromStorage(): void;
5
- export declare function saveImageEditsToStorage(pendingImageChanges: Map<string, PendingImageChange>): void;
6
- export declare function loadImageEditsFromStorage(): SavedImageEdits;
7
- export declare function clearImageEditsFromStorage(): void;
8
- export declare function saveColorEditsToStorage(pendingColorChanges: Map<string, PendingColorChange>): void;
9
- export declare function loadColorEditsFromStorage(): SavedColorEdits;
10
- export declare function clearColorEditsFromStorage(): void;
11
- export declare function saveAttributeEditsToStorage(pendingAttributeChanges: Map<string, PendingAttributeChange>): void;
12
- export declare function loadAttributeEditsFromStorage(): SavedAttributeEdits;
13
- export declare function clearAttributeEditsFromStorage(): void;
14
- export declare function saveSettingsToStorage(settings: CmsSettings): void;
15
- export declare function loadSettingsFromStorage(): CmsSettings | null;
16
- export declare function clearSettingsFromStorage(): void;
17
- export interface PendingEntryNavigation {
18
- collectionName: string;
19
- slug: string;
20
- sourcePath: string;
21
- pathname: string;
22
- }
23
- export declare function savePendingEntryNavigation(entry: PendingEntryNavigation): void;
24
- export declare function hasPendingEntryNavigation(): boolean;
25
- export declare function loadPendingEntryNavigation(): PendingEntryNavigation | null;
26
- export declare function saveEditingState(isEditing: boolean): void;
27
- export declare function loadEditingState(): boolean;
28
- export declare function clearAllEditsFromStorage(): void;
29
- //# sourceMappingURL=storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/editor/storage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,eAAe,EACf,MAAM,SAAS,CAAA;AAMhB,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAmBnF;AAED,wBAAgB,oBAAoB,IAAI,UAAU,CAQjD;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAM5C;AAMD,wBAAgB,uBAAuB,CAAC,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,IAAI,CAoBlG;AAED,wBAAgB,yBAAyB,IAAI,eAAe,CAQ3D;AAED,wBAAgB,0BAA0B,IAAI,IAAI,CAMjD;AAMD,wBAAgB,uBAAuB,CAAC,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,IAAI,CAiBlG;AAED,wBAAgB,yBAAyB,IAAI,eAAe,CAQ3D;AAED,wBAAgB,0BAA0B,IAAI,IAAI,CAMjD;AAMD,wBAAgB,2BAA2B,CAAC,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,GAAG,IAAI,CAiB9G;AAED,wBAAgB,6BAA6B,IAAI,mBAAmB,CAQnE;AAED,wBAAgB,8BAA8B,IAAI,IAAI,CAMrD;AAMD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI,CAMjE;AAED,wBAAgB,uBAAuB,IAAI,WAAW,GAAG,IAAI,CAQ5D;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C;AAMD,MAAM,WAAW,sBAAsB;IACtC,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,sBAAsB,GAAG,IAAI,CAM9E;AAED,wBAAgB,yBAAyB,IAAI,OAAO,CASnD;AAED,wBAAgB,0BAA0B,IAAI,sBAAsB,GAAG,IAAI,CAY1E;AAMD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAUzD;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAM1C;AAMD,wBAAgB,wBAAwB,IAAI,IAAI,CAK/C"}
@@ -1,350 +0,0 @@
1
- /**
2
- * Text styling utilities for applying Tailwind classes to text selections.
3
- * Supports inline styling of partial text content within CMS elements.
4
- * Uses inline styles for immediate visual feedback.
5
- * CSS values can be overridden by AvailableTextStyles from the manifest.
6
- */
7
- import type { AvailableTextStyles } from './types';
8
- /**
9
- * Tailwind text style categories with their class mappings and CSS values.
10
- * These are fallback defaults when manifest styles are not available.
11
- */
12
- export declare const TAILWIND_STYLES: {
13
- readonly weight: {
14
- readonly normal: {
15
- readonly class: "font-normal";
16
- readonly label: "Normal";
17
- readonly css: {
18
- readonly fontWeight: "400";
19
- };
20
- };
21
- readonly medium: {
22
- readonly class: "font-medium";
23
- readonly label: "Medium";
24
- readonly css: {
25
- readonly fontWeight: "500";
26
- };
27
- };
28
- readonly semibold: {
29
- readonly class: "font-semibold";
30
- readonly label: "Semibold";
31
- readonly css: {
32
- readonly fontWeight: "600";
33
- };
34
- };
35
- readonly bold: {
36
- readonly class: "font-bold";
37
- readonly label: "Bold";
38
- readonly css: {
39
- readonly fontWeight: "700";
40
- };
41
- };
42
- };
43
- readonly decoration: {
44
- readonly none: {
45
- readonly class: "no-underline";
46
- readonly label: "None";
47
- readonly css: {
48
- readonly textDecoration: "none";
49
- };
50
- };
51
- readonly underline: {
52
- readonly class: "underline";
53
- readonly label: "Underline";
54
- readonly css: {
55
- readonly textDecoration: "underline";
56
- };
57
- };
58
- readonly lineThrough: {
59
- readonly class: "line-through";
60
- readonly label: "Strikethrough";
61
- readonly css: {
62
- readonly textDecoration: "line-through";
63
- };
64
- };
65
- };
66
- readonly style: {
67
- readonly normal: {
68
- readonly class: "not-italic";
69
- readonly label: "Normal";
70
- readonly css: {
71
- readonly fontStyle: "normal";
72
- };
73
- };
74
- readonly italic: {
75
- readonly class: "italic";
76
- readonly label: "Italic";
77
- readonly css: {
78
- readonly fontStyle: "italic";
79
- };
80
- };
81
- };
82
- readonly color: {
83
- readonly inherit: {
84
- readonly class: "text-inherit";
85
- readonly label: "Inherit";
86
- readonly css: {
87
- readonly color: "inherit";
88
- };
89
- };
90
- readonly slate: {
91
- readonly class: "text-slate-700";
92
- readonly label: "Slate";
93
- readonly css: {
94
- readonly color: "#334155";
95
- };
96
- };
97
- readonly gray: {
98
- readonly class: "text-gray-700";
99
- readonly label: "Gray";
100
- readonly css: {
101
- readonly color: "#374151";
102
- };
103
- };
104
- readonly red: {
105
- readonly class: "text-red-600";
106
- readonly label: "Red";
107
- readonly css: {
108
- readonly color: "#dc2626";
109
- };
110
- };
111
- readonly orange: {
112
- readonly class: "text-orange-600";
113
- readonly label: "Orange";
114
- readonly css: {
115
- readonly color: "#ea580c";
116
- };
117
- };
118
- readonly amber: {
119
- readonly class: "text-amber-600";
120
- readonly label: "Amber";
121
- readonly css: {
122
- readonly color: "#d97706";
123
- };
124
- };
125
- readonly green: {
126
- readonly class: "text-green-600";
127
- readonly label: "Green";
128
- readonly css: {
129
- readonly color: "#16a34a";
130
- };
131
- };
132
- readonly blue: {
133
- readonly class: "text-blue-600";
134
- readonly label: "Blue";
135
- readonly css: {
136
- readonly color: "#2563eb";
137
- };
138
- };
139
- readonly purple: {
140
- readonly class: "text-purple-600";
141
- readonly label: "Purple";
142
- readonly css: {
143
- readonly color: "#9333ea";
144
- };
145
- };
146
- };
147
- readonly highlight: {
148
- readonly none: {
149
- readonly class: "";
150
- readonly label: "None";
151
- readonly css: {
152
- readonly backgroundColor: "transparent";
153
- };
154
- };
155
- readonly yellow: {
156
- readonly class: "bg-yellow-200";
157
- readonly label: "Yellow";
158
- readonly css: {
159
- readonly backgroundColor: "#fef08a";
160
- };
161
- };
162
- readonly green: {
163
- readonly class: "bg-green-200";
164
- readonly label: "Green";
165
- readonly css: {
166
- readonly backgroundColor: "#bbf7d0";
167
- };
168
- };
169
- readonly blue: {
170
- readonly class: "bg-blue-200";
171
- readonly label: "Blue";
172
- readonly css: {
173
- readonly backgroundColor: "#bfdbfe";
174
- };
175
- };
176
- readonly pink: {
177
- readonly class: "bg-pink-200";
178
- readonly label: "Pink";
179
- readonly css: {
180
- readonly backgroundColor: "#fbcfe8";
181
- };
182
- };
183
- };
184
- readonly size: {
185
- readonly xs: {
186
- readonly class: "text-xs";
187
- readonly label: "XS";
188
- readonly css: {
189
- readonly fontSize: "0.75rem";
190
- readonly lineHeight: "1rem";
191
- };
192
- };
193
- readonly sm: {
194
- readonly class: "text-sm";
195
- readonly label: "SM";
196
- readonly css: {
197
- readonly fontSize: "0.875rem";
198
- readonly lineHeight: "1.25rem";
199
- };
200
- };
201
- readonly base: {
202
- readonly class: "text-base";
203
- readonly label: "Base";
204
- readonly css: {
205
- readonly fontSize: "1rem";
206
- readonly lineHeight: "1.5rem";
207
- };
208
- };
209
- readonly lg: {
210
- readonly class: "text-lg";
211
- readonly label: "LG";
212
- readonly css: {
213
- readonly fontSize: "1.125rem";
214
- readonly lineHeight: "1.75rem";
215
- };
216
- };
217
- readonly xl: {
218
- readonly class: "text-xl";
219
- readonly label: "XL";
220
- readonly css: {
221
- readonly fontSize: "1.25rem";
222
- readonly lineHeight: "1.75rem";
223
- };
224
- };
225
- readonly '2xl': {
226
- readonly class: "text-2xl";
227
- readonly label: "2XL";
228
- readonly css: {
229
- readonly fontSize: "1.5rem";
230
- readonly lineHeight: "2rem";
231
- };
232
- };
233
- };
234
- };
235
- export type StyleCategory = keyof typeof TAILWIND_STYLES;
236
- export type StyleValue<C extends StyleCategory> = keyof (typeof TAILWIND_STYLES)[C];
237
- export interface TextStyle {
238
- weight?: StyleValue<'weight'>;
239
- decoration?: StyleValue<'decoration'>;
240
- style?: StyleValue<'style'>;
241
- color?: StyleValue<'color'>;
242
- highlight?: StyleValue<'highlight'>;
243
- size?: StyleValue<'size'>;
244
- }
245
- export interface TextSelection {
246
- startOffset: number;
247
- endOffset: number;
248
- text: string;
249
- range: Range;
250
- anchorNode: Node;
251
- focusNode: Node;
252
- }
253
- /**
254
- * Get the current text selection within a CMS element
255
- */
256
- export declare function getTextSelection(cmsElement: HTMLElement): TextSelection | null;
257
- /**
258
- * Build the class string from a TextStyle object
259
- */
260
- export declare function buildStyleClasses(style: TextStyle): string;
261
- /**
262
- * Build inline CSS styles from a TextStyle object.
263
- * Uses manifest styles when available, falls back to hardcoded defaults.
264
- */
265
- export declare function buildInlineStyles(style: TextStyle, availableTextStyles?: AvailableTextStyles): Record<string, string>;
266
- /**
267
- * Set the available text styles from manifest.
268
- * Call this when manifest is loaded.
269
- */
270
- export declare function setAvailableTextStyles(styles: AvailableTextStyles | undefined): void;
271
- /**
272
- * Parse Tailwind classes from a class string back to TextStyle.
273
- * Uses O(n) lookup via pre-computed map instead of O(n*m) nested loops.
274
- */
275
- export declare function parseStyleClasses(classString: string): TextStyle;
276
- /**
277
- * Separate styling classes from non-styling classes
278
- */
279
- export declare function separateClasses(classString: string): {
280
- styleClasses: string[];
281
- otherClasses: string[];
282
- };
283
- /**
284
- * Check if an element is a styled span created by the CMS
285
- */
286
- export declare function isStyledSpan(element: Element | null): element is HTMLElement;
287
- /**
288
- * Get the styled span element if the selection is entirely within one.
289
- * Returns null if selection spans multiple elements or is not in a styled span.
290
- */
291
- export declare function getStyledSpanFromSelection(cmsElement: HTMLElement): HTMLElement | null;
292
- /**
293
- * Remove styling from a styled span element, keeping only the text content.
294
- * Used to "unstyle" previously styled text.
295
- */
296
- export declare function removeStyleFromElement(styledSpan: HTMLElement): void;
297
- /**
298
- * Update styles on an existing styled span.
299
- * Preserves non-styling classes and applies inline styles for immediate feedback.
300
- */
301
- export declare function updateStyledSpan(span: HTMLElement, newStyle: Partial<TextStyle>): void;
302
- /**
303
- * Remove empty styled spans from the element
304
- */
305
- export declare function cleanupEmptyStyledSpans(cmsElement: HTMLElement): void;
306
- /**
307
- * Merge adjacent styled spans that have the same classes
308
- */
309
- export declare function mergeAdjacentStyledSpans(cmsElement: HTMLElement): void;
310
- /**
311
- * Wrap selected text in a span with Tailwind classes.
312
- * If the selection is already inside a styled span, just update that span's classes.
313
- * Returns the styled span element or null if failed.
314
- */
315
- export declare function wrapSelectionWithStyle(cmsElement: HTMLElement, selection: TextSelection, style: TextStyle): HTMLSpanElement | null;
316
- /**
317
- * Apply a specific style category to the current selection.
318
- * This is a convenience function for single-style application.
319
- */
320
- export declare function applyStyleToSelection<C extends StyleCategory>(cmsElement: HTMLElement, category: C, value: StyleValue<C>): HTMLSpanElement | null;
321
- /**
322
- * Toggle a style value on the selection or styled element.
323
- * If the style is already applied, it removes it; otherwise applies it.
324
- */
325
- export declare function toggleStyle<C extends StyleCategory>(cmsElement: HTMLElement, category: C, value: StyleValue<C>): HTMLSpanElement | null;
326
- /**
327
- * Check if a specific style is currently applied to the selection
328
- */
329
- export declare function hasStyle<C extends StyleCategory>(cmsElement: HTMLElement, category: C, value: StyleValue<C>): boolean;
330
- /**
331
- * Get the current style of the selection
332
- */
333
- export declare function getCurrentStyle(cmsElement: HTMLElement): TextStyle;
334
- /**
335
- * Remove all styling from the current selection
336
- */
337
- export declare function clearAllStyles(cmsElement: HTMLElement): void;
338
- /**
339
- * Check if a style value is valid for a given category
340
- */
341
- export declare function isValidStyleValue<C extends StyleCategory>(category: C, value: unknown): value is StyleValue<C>;
342
- /**
343
- * Get the default value for a style category
344
- */
345
- export declare function getDefaultValue(category: StyleCategory): string;
346
- /**
347
- * Get all Tailwind classes used for text styling.
348
- */
349
- export declare function getAllStyleClasses(): string[];
350
- //# sourceMappingURL=text-styling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-styling.d.ts","sourceRoot":"","sources":["../../../src/editor/text-styling.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAA4C,MAAM,SAAS,CAAA;AAE5F;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ClB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,eAAe,CAAA;AACxD,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,aAAa,IAAI,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAA;AAEnF,MAAM,WAAW,SAAS;IACzB,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,CAAA;IACrC,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,UAAU,CAAC,WAAW,CAA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