@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.
- package/dist/editor.js +35991 -0
- package/package.json +12 -11
- package/src/dev-middleware.ts +82 -2
- package/src/editor/components/block-editor.tsx +48 -57
- package/src/editor/components/outline.tsx +42 -35
- package/src/editor/components/toolbar.tsx +7 -4
- package/src/editor/hooks/useBlockEditorHandlers.ts +5 -5
- package/src/editor/hooks/useElementDetection.ts +2 -2
- package/src/editor/index.tsx +3 -2
- package/src/handlers/array-ops.ts +4 -4
- package/src/index.ts +54 -28
- package/dist/src/build-processor.d.ts +0 -20
- package/dist/src/build-processor.d.ts.map +0 -1
- package/dist/src/collection-scanner.d.ts +0 -6
- package/dist/src/collection-scanner.d.ts.map +0 -1
- package/dist/src/component-registry.d.ts +0 -67
- package/dist/src/component-registry.d.ts.map +0 -1
- package/dist/src/config.d.ts +0 -24
- package/dist/src/config.d.ts.map +0 -1
- package/dist/src/dev-middleware.d.ts +0 -20
- package/dist/src/dev-middleware.d.ts.map +0 -1
- package/dist/src/editor/ai.d.ts +0 -60
- package/dist/src/editor/ai.d.ts.map +0 -1
- package/dist/src/editor/api.d.ts +0 -154
- package/dist/src/editor/api.d.ts.map +0 -1
- package/dist/src/editor/color-utils.d.ts +0 -106
- package/dist/src/editor/color-utils.d.ts.map +0 -1
- package/dist/src/editor/components/ai-chat.d.ts +0 -11
- package/dist/src/editor/components/ai-chat.d.ts.map +0 -1
- package/dist/src/editor/components/ai-tooltip.d.ts +0 -12
- package/dist/src/editor/components/ai-tooltip.d.ts.map +0 -1
- package/dist/src/editor/components/attribute-editor.d.ts +0 -5
- package/dist/src/editor/components/attribute-editor.d.ts.map +0 -1
- package/dist/src/editor/components/block-editor.d.ts +0 -12
- package/dist/src/editor/components/block-editor.d.ts.map +0 -1
- package/dist/src/editor/components/collections-browser.d.ts +0 -2
- package/dist/src/editor/components/collections-browser.d.ts.map +0 -1
- package/dist/src/editor/components/color-toolbar.d.ts +0 -12
- package/dist/src/editor/components/color-toolbar.d.ts.map +0 -1
- package/dist/src/editor/components/confirm-dialog.d.ts +0 -2
- package/dist/src/editor/components/confirm-dialog.d.ts.map +0 -1
- package/dist/src/editor/components/create-page-modal.d.ts +0 -2
- package/dist/src/editor/components/create-page-modal.d.ts.map +0 -1
- package/dist/src/editor/components/editable-highlights.d.ts +0 -9
- package/dist/src/editor/components/editable-highlights.d.ts.map +0 -1
- package/dist/src/editor/components/error-boundary.d.ts +0 -32
- package/dist/src/editor/components/error-boundary.d.ts.map +0 -1
- package/dist/src/editor/components/fields.d.ts +0 -75
- package/dist/src/editor/components/fields.d.ts.map +0 -1
- package/dist/src/editor/components/frontmatter-fields.d.ts +0 -29
- package/dist/src/editor/components/frontmatter-fields.d.ts.map +0 -1
- package/dist/src/editor/components/highlight-overlay.d.ts +0 -64
- package/dist/src/editor/components/highlight-overlay.d.ts.map +0 -1
- package/dist/src/editor/components/image-overlay.d.ts +0 -12
- package/dist/src/editor/components/image-overlay.d.ts.map +0 -1
- package/dist/src/editor/components/markdown-editor-overlay.d.ts +0 -6
- package/dist/src/editor/components/markdown-editor-overlay.d.ts.map +0 -1
- package/dist/src/editor/components/markdown-inline-editor.d.ts +0 -10
- package/dist/src/editor/components/markdown-inline-editor.d.ts.map +0 -1
- package/dist/src/editor/components/media-library.d.ts +0 -2
- package/dist/src/editor/components/media-library.d.ts.map +0 -1
- package/dist/src/editor/components/outline.d.ts +0 -21
- package/dist/src/editor/components/outline.d.ts.map +0 -1
- package/dist/src/editor/components/redirect-countdown.d.ts +0 -2
- package/dist/src/editor/components/redirect-countdown.d.ts.map +0 -1
- package/dist/src/editor/components/seo-editor.d.ts +0 -2
- package/dist/src/editor/components/seo-editor.d.ts.map +0 -1
- package/dist/src/editor/components/text-style-toolbar.d.ts +0 -8
- package/dist/src/editor/components/text-style-toolbar.d.ts.map +0 -1
- package/dist/src/editor/components/toast/toast-container.d.ts +0 -7
- package/dist/src/editor/components/toast/toast-container.d.ts.map +0 -1
- package/dist/src/editor/components/toast/toast.d.ts +0 -7
- package/dist/src/editor/components/toast/toast.d.ts.map +0 -1
- package/dist/src/editor/components/toast/types.d.ts +0 -7
- package/dist/src/editor/components/toast/types.d.ts.map +0 -1
- package/dist/src/editor/components/toolbar.d.ts +0 -21
- package/dist/src/editor/components/toolbar.d.ts.map +0 -1
- package/dist/src/editor/config.d.ts +0 -4
- package/dist/src/editor/config.d.ts.map +0 -1
- package/dist/src/editor/constants.d.ts +0 -102
- package/dist/src/editor/constants.d.ts.map +0 -1
- package/dist/src/editor/context.d.ts +0 -14
- package/dist/src/editor/context.d.ts.map +0 -1
- package/dist/src/editor/dom.d.ts +0 -86
- package/dist/src/editor/dom.d.ts.map +0 -1
- package/dist/src/editor/editor.d.ts +0 -64
- package/dist/src/editor/editor.d.ts.map +0 -1
- package/dist/src/editor/history.d.ts +0 -20
- package/dist/src/editor/history.d.ts.map +0 -1
- package/dist/src/editor/hooks/index.d.ts +0 -14
- package/dist/src/editor/hooks/index.d.ts.map +0 -1
- package/dist/src/editor/hooks/useAIHandlers.d.ts +0 -22
- package/dist/src/editor/hooks/useAIHandlers.d.ts.map +0 -1
- package/dist/src/editor/hooks/useBlockEditorHandlers.d.ts +0 -18
- package/dist/src/editor/hooks/useBlockEditorHandlers.d.ts.map +0 -1
- package/dist/src/editor/hooks/useElementDetection.d.ts +0 -26
- package/dist/src/editor/hooks/useElementDetection.d.ts.map +0 -1
- package/dist/src/editor/hooks/useImageHoverDetection.d.ts +0 -12
- package/dist/src/editor/hooks/useImageHoverDetection.d.ts.map +0 -1
- package/dist/src/editor/hooks/useTextSelection.d.ts +0 -23
- package/dist/src/editor/hooks/useTextSelection.d.ts.map +0 -1
- package/dist/src/editor/hooks/useTooltipState.d.ts +0 -19
- package/dist/src/editor/hooks/useTooltipState.d.ts.map +0 -1
- package/dist/src/editor/hooks/utils.d.ts +0 -32
- package/dist/src/editor/hooks/utils.d.ts.map +0 -1
- package/dist/src/editor/index.d.ts +0 -12
- package/dist/src/editor/index.d.ts.map +0 -1
- package/dist/src/editor/lib/cn.d.ts +0 -3
- package/dist/src/editor/lib/cn.d.ts.map +0 -1
- package/dist/src/editor/manifest.d.ts +0 -19
- package/dist/src/editor/manifest.d.ts.map +0 -1
- package/dist/src/editor/markdown-api.d.ts +0 -36
- package/dist/src/editor/markdown-api.d.ts.map +0 -1
- package/dist/src/editor/signals.d.ts +0 -242
- package/dist/src/editor/signals.d.ts.map +0 -1
- package/dist/src/editor/storage.d.ts +0 -29
- package/dist/src/editor/storage.d.ts.map +0 -1
- package/dist/src/editor/text-styling.d.ts +0 -350
- package/dist/src/editor/text-styling.d.ts.map +0 -1
- package/dist/src/editor/themes.d.ts +0 -38
- package/dist/src/editor/themes.d.ts.map +0 -1
- package/dist/src/editor/types.d.ts +0 -454
- package/dist/src/editor/types.d.ts.map +0 -1
- package/dist/src/error-collector.d.ts +0 -56
- package/dist/src/error-collector.d.ts.map +0 -1
- package/dist/src/handlers/array-ops.d.ts +0 -59
- package/dist/src/handlers/array-ops.d.ts.map +0 -1
- package/dist/src/handlers/component-ops.d.ts +0 -60
- package/dist/src/handlers/component-ops.d.ts.map +0 -1
- package/dist/src/handlers/markdown-ops.d.ts +0 -41
- package/dist/src/handlers/markdown-ops.d.ts.map +0 -1
- package/dist/src/handlers/request-utils.d.ts +0 -20
- package/dist/src/handlers/request-utils.d.ts.map +0 -1
- package/dist/src/handlers/source-writer.d.ts +0 -51
- package/dist/src/handlers/source-writer.d.ts.map +0 -1
- package/dist/src/html-processor.d.ts +0 -63
- package/dist/src/html-processor.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -41
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/manifest-writer.d.ts +0 -111
- package/dist/src/manifest-writer.d.ts.map +0 -1
- package/dist/src/media/contember.d.ts +0 -15
- package/dist/src/media/contember.d.ts.map +0 -1
- package/dist/src/media/local.d.ts +0 -9
- package/dist/src/media/local.d.ts.map +0 -1
- package/dist/src/media/s3.d.ts +0 -12
- package/dist/src/media/s3.d.ts.map +0 -1
- package/dist/src/media/types.d.ts +0 -40
- package/dist/src/media/types.d.ts.map +0 -1
- package/dist/src/preview-generator.d.ts +0 -19
- package/dist/src/preview-generator.d.ts.map +0 -1
- package/dist/src/seo-processor.d.ts +0 -23
- package/dist/src/seo-processor.d.ts.map +0 -1
- package/dist/src/source-finder/ast-extractors.d.ts +0 -35
- package/dist/src/source-finder/ast-extractors.d.ts.map +0 -1
- package/dist/src/source-finder/ast-parser.d.ts +0 -18
- package/dist/src/source-finder/ast-parser.d.ts.map +0 -1
- package/dist/src/source-finder/cache.d.ts +0 -18
- package/dist/src/source-finder/cache.d.ts.map +0 -1
- package/dist/src/source-finder/collection-finder.d.ts +0 -29
- package/dist/src/source-finder/collection-finder.d.ts.map +0 -1
- package/dist/src/source-finder/cross-file-tracker.d.ts +0 -39
- package/dist/src/source-finder/cross-file-tracker.d.ts.map +0 -1
- package/dist/src/source-finder/element-finder.d.ts +0 -42
- package/dist/src/source-finder/element-finder.d.ts.map +0 -1
- package/dist/src/source-finder/image-finder.d.ts +0 -24
- package/dist/src/source-finder/image-finder.d.ts.map +0 -1
- package/dist/src/source-finder/index.d.ts +0 -9
- package/dist/src/source-finder/index.d.ts.map +0 -1
- package/dist/src/source-finder/search-index.d.ts +0 -27
- package/dist/src/source-finder/search-index.d.ts.map +0 -1
- package/dist/src/source-finder/snippet-utils.d.ts +0 -96
- package/dist/src/source-finder/snippet-utils.d.ts.map +0 -1
- package/dist/src/source-finder/source-lookup.d.ts +0 -16
- package/dist/src/source-finder/source-lookup.d.ts.map +0 -1
- package/dist/src/source-finder/types.d.ts +0 -167
- package/dist/src/source-finder/types.d.ts.map +0 -1
- package/dist/src/source-finder/variable-extraction.d.ts +0 -37
- package/dist/src/source-finder/variable-extraction.d.ts.map +0 -1
- package/dist/src/tailwind-colors.d.ts +0 -54
- package/dist/src/tailwind-colors.d.ts.map +0 -1
- package/dist/src/tsconfig.tsbuildinfo +0 -1
- package/dist/src/types.d.ts +0 -367
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/utils.d.ts +0 -61
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/vite-plugin.d.ts +0 -14
- package/dist/src/vite-plugin.d.ts.map +0 -1
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { CmsConfig, CmsThemeConfig, CmsThemePreset } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Theme presets for CMS UI
|
|
4
|
-
*/
|
|
5
|
-
export declare const THEME_PRESETS: Record<CmsThemePreset, CmsThemeConfig>;
|
|
6
|
-
/**
|
|
7
|
-
* Resolved theme with all values computed from preset + overrides
|
|
8
|
-
*/
|
|
9
|
-
export interface ResolvedTheme {
|
|
10
|
-
primary: string;
|
|
11
|
-
primaryHover: string;
|
|
12
|
-
primaryText: string;
|
|
13
|
-
secondary: string;
|
|
14
|
-
secondaryHover: string;
|
|
15
|
-
background: string;
|
|
16
|
-
card: string;
|
|
17
|
-
text: string;
|
|
18
|
-
textMuted: string;
|
|
19
|
-
border: string;
|
|
20
|
-
radiusSm: string;
|
|
21
|
-
radiusMd: string;
|
|
22
|
-
radiusLg: string;
|
|
23
|
-
radiusXl: string;
|
|
24
|
-
radiusPill: string;
|
|
25
|
-
shadowSm: string;
|
|
26
|
-
shadowMd: string;
|
|
27
|
-
shadowLg: string;
|
|
28
|
-
preset: CmsThemePreset;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Resolve theme from config (preset + overrides)
|
|
32
|
-
*/
|
|
33
|
-
export declare function resolveTheme(config: CmsConfig): ResolvedTheme;
|
|
34
|
-
/**
|
|
35
|
-
* Generate CSS variable overrides from resolved theme
|
|
36
|
-
*/
|
|
37
|
-
export declare function generateCSSVariables(theme: ResolvedTheme): string;
|
|
38
|
-
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../src/editor/themes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,cAAc,EAAE,cAAc,CAyBhE,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAE7B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IAGd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAGlB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAGhB,MAAM,EAAE,cAAc,CAAA;CACtB;AAqFD;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,aAAa,CA4B7D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CA0BjE"}
|
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
import type { Attribute, CmsManifest, CollectionDefinition, ComponentInstance } from '../types';
|
|
2
|
-
export type { Attribute, AvailableColors, AvailableTextStyles, CanonicalUrl, CmsManifest, CollectionDefinition, CollectionEntry, CollectionEntryInfo, ComponentDefinition, ComponentInstance, FieldDefinition, FieldType, JsonLdEntry, ManifestEntry, OpenGraphData, PageSeoData, SeoFavicon, SeoKeywords, SeoMetaTag, SeoOptions, SeoSourceInfo, SeoTitle, TailwindColor, TextStyleValue, TwitterCardData, } from '../types';
|
|
3
|
-
export interface CmsThemeConfig {
|
|
4
|
-
primary?: string;
|
|
5
|
-
secondary?: string;
|
|
6
|
-
background?: string;
|
|
7
|
-
card?: string;
|
|
8
|
-
borderRadius?: 'sharp' | 'soft' | 'rounded';
|
|
9
|
-
shadowStyle?: 'none' | 'soft' | 'brutalist';
|
|
10
|
-
}
|
|
11
|
-
export type CmsThemePreset = 'soft' | 'brutalist' | 'minimal';
|
|
12
|
-
export interface CmsConfig {
|
|
13
|
-
apiBase: string;
|
|
14
|
-
highlightColor: string;
|
|
15
|
-
debug: boolean;
|
|
16
|
-
theme?: CmsThemeConfig;
|
|
17
|
-
themePreset?: CmsThemePreset;
|
|
18
|
-
}
|
|
19
|
-
export interface ComponentProp {
|
|
20
|
-
name: string;
|
|
21
|
-
type: string;
|
|
22
|
-
required: boolean;
|
|
23
|
-
defaultValue?: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ChildCmsElement {
|
|
27
|
-
id: string;
|
|
28
|
-
placeholder: string;
|
|
29
|
-
currentHTML?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface PendingChange {
|
|
32
|
-
element: HTMLElement;
|
|
33
|
-
originalHTML: string;
|
|
34
|
-
originalText: string;
|
|
35
|
-
newText: string;
|
|
36
|
-
currentHTML: string;
|
|
37
|
-
isDirty: boolean;
|
|
38
|
-
childCmsElements?: ChildCmsElement[];
|
|
39
|
-
hasStyledContent?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface PendingImageChange {
|
|
42
|
-
element: HTMLImageElement;
|
|
43
|
-
originalSrc: string;
|
|
44
|
-
newSrc: string;
|
|
45
|
-
originalAlt: string;
|
|
46
|
-
newAlt: string;
|
|
47
|
-
originalSrcSet: string;
|
|
48
|
-
isDirty: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface PendingColorChange {
|
|
51
|
-
element: HTMLElement;
|
|
52
|
-
cmsId: string;
|
|
53
|
-
originalClasses: Record<string, Attribute>;
|
|
54
|
-
newClasses: Record<string, Attribute>;
|
|
55
|
-
isDirty: boolean;
|
|
56
|
-
}
|
|
57
|
-
export interface ColorEditorState {
|
|
58
|
-
isOpen: boolean;
|
|
59
|
-
targetElementId: string | null;
|
|
60
|
-
targetRect: DOMRect | null;
|
|
61
|
-
}
|
|
62
|
-
export interface SavedEdit {
|
|
63
|
-
originalText: string;
|
|
64
|
-
newText: string;
|
|
65
|
-
currentHTML: string;
|
|
66
|
-
hasStyledContent?: boolean;
|
|
67
|
-
}
|
|
68
|
-
export interface SavedEdits {
|
|
69
|
-
[cmsId: string]: SavedEdit;
|
|
70
|
-
}
|
|
71
|
-
export interface SavedImageEdit {
|
|
72
|
-
originalSrc: string;
|
|
73
|
-
newSrc: string;
|
|
74
|
-
originalAlt: string;
|
|
75
|
-
newAlt: string;
|
|
76
|
-
originalSrcSet: string;
|
|
77
|
-
}
|
|
78
|
-
export interface SavedImageEdits {
|
|
79
|
-
[cmsId: string]: SavedImageEdit;
|
|
80
|
-
}
|
|
81
|
-
export interface SavedColorEdit {
|
|
82
|
-
originalClasses: Record<string, Attribute>;
|
|
83
|
-
newClasses: Record<string, Attribute>;
|
|
84
|
-
}
|
|
85
|
-
export interface SavedColorEdits {
|
|
86
|
-
[cmsId: string]: SavedColorEdit;
|
|
87
|
-
}
|
|
88
|
-
/** Color change details for updating element color classes */
|
|
89
|
-
export interface ColorChangePayload {
|
|
90
|
-
/** The color class to replace (e.g., 'bg-blue-500') */
|
|
91
|
-
oldClass: string;
|
|
92
|
-
/** The new color class (e.g., 'bg-red-500') */
|
|
93
|
-
newClass: string;
|
|
94
|
-
/** Type of color change: 'bg' | 'text' | 'border' | 'hoverBg' | 'hoverText' */
|
|
95
|
-
type: 'bg' | 'text' | 'border' | 'hoverBg' | 'hoverText';
|
|
96
|
-
/** Path to the source file where the color class is defined */
|
|
97
|
-
sourcePath?: string;
|
|
98
|
-
/** Line number where the color class is defined */
|
|
99
|
-
sourceLine?: number;
|
|
100
|
-
/** The source code snippet containing the color class */
|
|
101
|
-
sourceSnippet?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface ChangePayload {
|
|
104
|
-
cmsId: string;
|
|
105
|
-
newValue: string;
|
|
106
|
-
/** Original value to find and replace within the source snippet */
|
|
107
|
-
originalValue: string;
|
|
108
|
-
/** Path to the source file */
|
|
109
|
-
sourcePath: string;
|
|
110
|
-
/** Line number in the source file (for disambiguation) */
|
|
111
|
-
sourceLine: number;
|
|
112
|
-
/** The source code snippet containing the text to replace */
|
|
113
|
-
sourceSnippet: string;
|
|
114
|
-
/** HTML content when the element contains styled text (spans with Tailwind classes) */
|
|
115
|
-
htmlValue?: string;
|
|
116
|
-
childCmsIds?: string[];
|
|
117
|
-
/** Whether this change contains styled inline text */
|
|
118
|
-
hasStyledContent?: boolean;
|
|
119
|
-
/** Image change details when replacing an image */
|
|
120
|
-
imageChange?: {
|
|
121
|
-
newSrc: string;
|
|
122
|
-
newAlt?: string;
|
|
123
|
-
};
|
|
124
|
-
/** Color class change (for buttons, etc.) */
|
|
125
|
-
colorChange?: ColorChangePayload;
|
|
126
|
-
/** Attribute changes (for links, forms, etc.) */
|
|
127
|
-
attributeChanges?: AttributeChangePayload[];
|
|
128
|
-
}
|
|
129
|
-
export interface SaveBatchRequest {
|
|
130
|
-
changes: ChangePayload[];
|
|
131
|
-
meta: {
|
|
132
|
-
source: string;
|
|
133
|
-
url: string;
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
export interface SaveBatchResponse {
|
|
137
|
-
updated: number;
|
|
138
|
-
errors?: Array<{
|
|
139
|
-
cmsId: string;
|
|
140
|
-
error: string;
|
|
141
|
-
}>;
|
|
142
|
-
}
|
|
143
|
-
export interface ChatMessage {
|
|
144
|
-
id: string;
|
|
145
|
-
role: 'user' | 'assistant';
|
|
146
|
-
content: string;
|
|
147
|
-
elementId?: string;
|
|
148
|
-
timestamp: number;
|
|
149
|
-
}
|
|
150
|
-
export type AIStatusType = 'thinking' | 'coding' | 'building' | 'deploying' | 'complete' | null;
|
|
151
|
-
export interface AIState {
|
|
152
|
-
isPromptVisible: boolean;
|
|
153
|
-
isProcessing: boolean;
|
|
154
|
-
targetElementId: string | null;
|
|
155
|
-
streamingContent: string | null;
|
|
156
|
-
error: string | null;
|
|
157
|
-
isChatOpen: boolean;
|
|
158
|
-
chatMessages: ChatMessage[];
|
|
159
|
-
chatContextElementId: string | null;
|
|
160
|
-
currentStatus: AIStatusType;
|
|
161
|
-
statusMessage: string | null;
|
|
162
|
-
}
|
|
163
|
-
export interface BlockEditorState {
|
|
164
|
-
isOpen: boolean;
|
|
165
|
-
currentComponentId: string | null;
|
|
166
|
-
mode: 'edit' | 'add' | 'picker';
|
|
167
|
-
}
|
|
168
|
-
export type InsertPosition = 'before' | 'after';
|
|
169
|
-
export interface PendingComponentInsert {
|
|
170
|
-
id: string;
|
|
171
|
-
position: InsertPosition;
|
|
172
|
-
referenceComponentId: string;
|
|
173
|
-
componentName: string;
|
|
174
|
-
props: Record<string, any>;
|
|
175
|
-
previewElement?: HTMLElement;
|
|
176
|
-
}
|
|
177
|
-
export interface ComponentInsertRequest {
|
|
178
|
-
position: InsertPosition;
|
|
179
|
-
referenceComponentId: string;
|
|
180
|
-
componentName: string;
|
|
181
|
-
props: Record<string, any>;
|
|
182
|
-
}
|
|
183
|
-
export interface ComponentInsertResponse {
|
|
184
|
-
success: boolean;
|
|
185
|
-
insertedId?: string;
|
|
186
|
-
error?: string;
|
|
187
|
-
diff?: {
|
|
188
|
-
file: string;
|
|
189
|
-
before: string;
|
|
190
|
-
after: string;
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
export interface ComponentInsertOperation {
|
|
194
|
-
position: InsertPosition;
|
|
195
|
-
referenceComponentId: string;
|
|
196
|
-
componentName: string;
|
|
197
|
-
props: Record<string, any>;
|
|
198
|
-
}
|
|
199
|
-
export interface EditorState {
|
|
200
|
-
isEnabled: boolean;
|
|
201
|
-
isEditing: boolean;
|
|
202
|
-
showingOriginal: boolean;
|
|
203
|
-
currentEditingId: string | null;
|
|
204
|
-
currentComponentId: string | null;
|
|
205
|
-
pendingChanges: Map<string, PendingChange>;
|
|
206
|
-
pendingComponentChanges: Map<string, ComponentInstance>;
|
|
207
|
-
pendingInserts: Map<string, PendingComponentInsert>;
|
|
208
|
-
manifest: CmsManifest;
|
|
209
|
-
ai: AIState;
|
|
210
|
-
blockEditor: BlockEditorState;
|
|
211
|
-
}
|
|
212
|
-
export interface TextStyleDefinition {
|
|
213
|
-
class: string;
|
|
214
|
-
label: string;
|
|
215
|
-
}
|
|
216
|
-
export interface TextStyleCategory {
|
|
217
|
-
[key: string]: TextStyleDefinition;
|
|
218
|
-
}
|
|
219
|
-
export interface BlogFrontmatter {
|
|
220
|
-
title: string;
|
|
221
|
-
date: string;
|
|
222
|
-
author?: string;
|
|
223
|
-
categories?: string[];
|
|
224
|
-
excerpt?: string;
|
|
225
|
-
featuredImage?: string;
|
|
226
|
-
draft?: boolean;
|
|
227
|
-
[key: string]: unknown;
|
|
228
|
-
}
|
|
229
|
-
export interface MarkdownPageEntry {
|
|
230
|
-
filePath: string;
|
|
231
|
-
slug: string;
|
|
232
|
-
frontmatter: Record<string, unknown>;
|
|
233
|
-
content: string;
|
|
234
|
-
isDirty: boolean;
|
|
235
|
-
}
|
|
236
|
-
export interface MarkdownEditorState {
|
|
237
|
-
isOpen: boolean;
|
|
238
|
-
currentPage: MarkdownPageEntry | null;
|
|
239
|
-
activeElementId: string | null;
|
|
240
|
-
mode: 'edit' | 'create';
|
|
241
|
-
collectionDefinition?: CollectionDefinition;
|
|
242
|
-
createOptions?: {
|
|
243
|
-
collectionName: string;
|
|
244
|
-
collectionDefinition: CollectionDefinition;
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
export interface MediaItem {
|
|
248
|
-
id: string;
|
|
249
|
-
url: string;
|
|
250
|
-
filename: string;
|
|
251
|
-
annotation?: string;
|
|
252
|
-
contentType: string;
|
|
253
|
-
width?: number;
|
|
254
|
-
height?: number;
|
|
255
|
-
uploadedAt?: string;
|
|
256
|
-
}
|
|
257
|
-
export interface MediaLibraryState {
|
|
258
|
-
isOpen: boolean;
|
|
259
|
-
items: MediaItem[];
|
|
260
|
-
isLoading: boolean;
|
|
261
|
-
selectedItem: MediaItem | null;
|
|
262
|
-
insertCallback: ((url: string, alt: string) => void) | null;
|
|
263
|
-
}
|
|
264
|
-
export interface CreatePageState {
|
|
265
|
-
isOpen: boolean;
|
|
266
|
-
isCreating: boolean;
|
|
267
|
-
selectedCollection: string | null;
|
|
268
|
-
}
|
|
269
|
-
export interface CollectionsBrowserState {
|
|
270
|
-
isOpen: boolean;
|
|
271
|
-
selectedCollection: string | null;
|
|
272
|
-
}
|
|
273
|
-
export interface CreateMarkdownPageRequest {
|
|
274
|
-
/** Collection name (e.g., 'blog', 'services') */
|
|
275
|
-
collection: string;
|
|
276
|
-
/** URL-friendly slug for the page */
|
|
277
|
-
slug: string;
|
|
278
|
-
/** Page title */
|
|
279
|
-
title: string;
|
|
280
|
-
/** Optional frontmatter fields */
|
|
281
|
-
frontmatter?: Partial<BlogFrontmatter>;
|
|
282
|
-
/** Optional markdown content */
|
|
283
|
-
content?: string;
|
|
284
|
-
}
|
|
285
|
-
export interface CreateMarkdownPageResponse {
|
|
286
|
-
success: boolean;
|
|
287
|
-
filePath?: string;
|
|
288
|
-
slug?: string;
|
|
289
|
-
url?: string;
|
|
290
|
-
error?: string;
|
|
291
|
-
}
|
|
292
|
-
export interface UpdateMarkdownPageRequest {
|
|
293
|
-
filePath: string;
|
|
294
|
-
frontmatter?: Partial<BlogFrontmatter>;
|
|
295
|
-
content?: string;
|
|
296
|
-
}
|
|
297
|
-
export interface UpdateMarkdownPageResponse {
|
|
298
|
-
success: boolean;
|
|
299
|
-
commit?: string;
|
|
300
|
-
commitMessage?: string;
|
|
301
|
-
error?: string;
|
|
302
|
-
}
|
|
303
|
-
export interface MediaUploadResponse {
|
|
304
|
-
success: boolean;
|
|
305
|
-
url?: string;
|
|
306
|
-
filename?: string;
|
|
307
|
-
annotation?: string;
|
|
308
|
-
id?: string;
|
|
309
|
-
error?: string;
|
|
310
|
-
}
|
|
311
|
-
export type DeploymentStatusType = 'pending' | 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
312
|
-
export interface DeploymentStatusResponse {
|
|
313
|
-
currentDeployment: {
|
|
314
|
-
id: string;
|
|
315
|
-
status: DeploymentStatusType;
|
|
316
|
-
createdAt: string;
|
|
317
|
-
startedAt: string | null;
|
|
318
|
-
commitMessage: string | null;
|
|
319
|
-
} | null;
|
|
320
|
-
lastSuccessfulDeployment: {
|
|
321
|
-
completedAt: string;
|
|
322
|
-
publishedUrl: string;
|
|
323
|
-
} | null;
|
|
324
|
-
pendingCount: number;
|
|
325
|
-
}
|
|
326
|
-
export interface DeploymentState {
|
|
327
|
-
status: DeploymentStatusType | null;
|
|
328
|
-
lastDeployedAt: string | null;
|
|
329
|
-
isPolling: boolean;
|
|
330
|
-
error: string | null;
|
|
331
|
-
}
|
|
332
|
-
export interface ConfirmDialogState {
|
|
333
|
-
isOpen: boolean;
|
|
334
|
-
title: string;
|
|
335
|
-
message: string;
|
|
336
|
-
confirmLabel: string;
|
|
337
|
-
cancelLabel: string;
|
|
338
|
-
variant: 'danger' | 'warning' | 'info';
|
|
339
|
-
onConfirm: (() => void) | null;
|
|
340
|
-
onCancel: (() => void) | null;
|
|
341
|
-
}
|
|
342
|
-
export interface CmsSettings {
|
|
343
|
-
showEditableHighlights: boolean;
|
|
344
|
-
}
|
|
345
|
-
export interface SeoEditorState {
|
|
346
|
-
isOpen: boolean;
|
|
347
|
-
}
|
|
348
|
-
/** Represents a pending SEO field change */
|
|
349
|
-
export interface PendingSeoChange {
|
|
350
|
-
/** The SEO element's id */
|
|
351
|
-
id: string;
|
|
352
|
-
/** Original value */
|
|
353
|
-
originalValue: string;
|
|
354
|
-
/** New value */
|
|
355
|
-
newValue: string;
|
|
356
|
-
/** Whether this change is dirty (modified) */
|
|
357
|
-
isDirty: boolean;
|
|
358
|
-
}
|
|
359
|
-
/** Represents a pending attribute change */
|
|
360
|
-
export interface PendingAttributeChange {
|
|
361
|
-
element: HTMLElement;
|
|
362
|
-
cmsId: string;
|
|
363
|
-
/** Original attribute values from manifest */
|
|
364
|
-
originalAttributes: Record<string, Attribute>;
|
|
365
|
-
/** Current (possibly modified) attribute values */
|
|
366
|
-
newAttributes: Record<string, Attribute>;
|
|
367
|
-
/** Whether this change is dirty */
|
|
368
|
-
isDirty: boolean;
|
|
369
|
-
}
|
|
370
|
-
/** Attribute change payload for API */
|
|
371
|
-
export interface AttributeChangePayload {
|
|
372
|
-
/** The attribute name being changed */
|
|
373
|
-
attributeName: string;
|
|
374
|
-
/** Old value */
|
|
375
|
-
oldValue: string | undefined;
|
|
376
|
-
/** New value */
|
|
377
|
-
newValue: string | undefined;
|
|
378
|
-
/** Path to the source file where the attribute is defined */
|
|
379
|
-
sourcePath?: string;
|
|
380
|
-
/** Line number where the attribute is defined */
|
|
381
|
-
sourceLine?: number;
|
|
382
|
-
/** The source code snippet containing the attribute */
|
|
383
|
-
sourceSnippet?: string;
|
|
384
|
-
}
|
|
385
|
-
/** Editor state for attribute editor */
|
|
386
|
-
export interface AttributeEditorState {
|
|
387
|
-
isOpen: boolean;
|
|
388
|
-
targetElementId: string | null;
|
|
389
|
-
targetRect: DOMRect | null;
|
|
390
|
-
}
|
|
391
|
-
/** Saved attribute edit for storage persistence */
|
|
392
|
-
export interface SavedAttributeEdit {
|
|
393
|
-
originalAttributes: Record<string, Attribute>;
|
|
394
|
-
newAttributes: Record<string, Attribute>;
|
|
395
|
-
}
|
|
396
|
-
/** Saved attribute edits indexed by CMS ID */
|
|
397
|
-
export interface SavedAttributeEdits {
|
|
398
|
-
[cmsId: string]: SavedAttributeEdit;
|
|
399
|
-
}
|
|
400
|
-
export interface UndoTextAction {
|
|
401
|
-
type: 'text';
|
|
402
|
-
cmsId: string;
|
|
403
|
-
element: HTMLElement;
|
|
404
|
-
previousHTML: string;
|
|
405
|
-
previousText: string;
|
|
406
|
-
currentHTML: string;
|
|
407
|
-
currentText: string;
|
|
408
|
-
wasDirty: boolean;
|
|
409
|
-
}
|
|
410
|
-
export interface UndoImageAction {
|
|
411
|
-
type: 'image';
|
|
412
|
-
cmsId: string;
|
|
413
|
-
element: HTMLImageElement;
|
|
414
|
-
previousSrc: string;
|
|
415
|
-
previousAlt: string;
|
|
416
|
-
currentSrc: string;
|
|
417
|
-
currentAlt: string;
|
|
418
|
-
wasDirty: boolean;
|
|
419
|
-
}
|
|
420
|
-
export interface UndoColorAction {
|
|
421
|
-
type: 'color';
|
|
422
|
-
cmsId: string;
|
|
423
|
-
element: HTMLElement;
|
|
424
|
-
previousClassName: string;
|
|
425
|
-
currentClassName: string;
|
|
426
|
-
previousStyleCssText: string;
|
|
427
|
-
currentStyleCssText: string;
|
|
428
|
-
previousClasses: Record<string, Attribute>;
|
|
429
|
-
currentClasses: Record<string, Attribute>;
|
|
430
|
-
wasDirty: boolean;
|
|
431
|
-
}
|
|
432
|
-
export interface UndoAttributeAction {
|
|
433
|
-
type: 'attribute';
|
|
434
|
-
cmsId: string;
|
|
435
|
-
element: HTMLElement;
|
|
436
|
-
previousAttributes: Record<string, Attribute>;
|
|
437
|
-
currentAttributes: Record<string, Attribute>;
|
|
438
|
-
wasDirty: boolean;
|
|
439
|
-
}
|
|
440
|
-
export interface UndoSeoAction {
|
|
441
|
-
type: 'seo';
|
|
442
|
-
cmsId: string;
|
|
443
|
-
previousValue: string;
|
|
444
|
-
currentValue: string;
|
|
445
|
-
originalValue: string;
|
|
446
|
-
wasDirty: boolean;
|
|
447
|
-
}
|
|
448
|
-
export type UndoAction = UndoTextAction | UndoImageAction | UndoColorAction | UndoAttributeAction | UndoSeoAction;
|
|
449
|
-
declare global {
|
|
450
|
-
interface Window {
|
|
451
|
-
NuaCmsConfig?: Partial<CmsConfig>;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAG/F,YAAY,EACX,SAAS,EACT,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,aAAa,EACb,QAAQ,EACR,aAAa,EACb,cAAc,EACd,eAAe,GACf,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,cAAc;IAE9B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IAGb,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;IAC3C,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAA;CAC3C;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAA;AAE7D,MAAM,WAAW,SAAS;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,WAAW,CAAC,EAAE,cAAc,CAAA;CAC5B;AAED,MAAM,WAAW,aAAa;IAC7B,IAAI,E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AY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,MAAM,UAAU,GACnB,cAAc,GACd,eAAe,GACf,eAAe,GACf,mBAAmB,GACnB,aAAa,CAAA;AAEhB,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;KACjC;CACD"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Collects errors during processing for aggregated reporting.
|
|
3
|
-
* This allows the build to continue while tracking what failed.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ErrorCollector {
|
|
6
|
-
private errors;
|
|
7
|
-
private warnings;
|
|
8
|
-
/**
|
|
9
|
-
* Record an error with context about where it occurred.
|
|
10
|
-
*/
|
|
11
|
-
addError(context: string, error: Error): void;
|
|
12
|
-
/**
|
|
13
|
-
* Record a warning (non-fatal issue).
|
|
14
|
-
*/
|
|
15
|
-
addWarning(context: string, message: string): void;
|
|
16
|
-
/**
|
|
17
|
-
* Check if any errors were recorded.
|
|
18
|
-
*/
|
|
19
|
-
hasErrors(): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Check if any warnings were recorded.
|
|
22
|
-
*/
|
|
23
|
-
hasWarnings(): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Get all recorded errors.
|
|
26
|
-
*/
|
|
27
|
-
getErrors(): ReadonlyArray<{
|
|
28
|
-
context: string;
|
|
29
|
-
error: Error;
|
|
30
|
-
}>;
|
|
31
|
-
/**
|
|
32
|
-
* Get all recorded warnings.
|
|
33
|
-
*/
|
|
34
|
-
getWarnings(): ReadonlyArray<{
|
|
35
|
-
context: string;
|
|
36
|
-
message: string;
|
|
37
|
-
}>;
|
|
38
|
-
/**
|
|
39
|
-
* Get a summary of all errors and warnings.
|
|
40
|
-
*/
|
|
41
|
-
getSummary(): string;
|
|
42
|
-
/**
|
|
43
|
-
* Clear all recorded errors and warnings.
|
|
44
|
-
*/
|
|
45
|
-
clear(): void;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Get the global error collector instance.
|
|
49
|
-
* Creates one if it doesn't exist.
|
|
50
|
-
*/
|
|
51
|
-
export declare function getErrorCollector(): ErrorCollector;
|
|
52
|
-
/**
|
|
53
|
-
* Reset the global error collector (call at start of each build).
|
|
54
|
-
*/
|
|
55
|
-
export declare function resetErrorCollector(): void;
|
|
56
|
-
//# sourceMappingURL=error-collector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-collector.d.ts","sourceRoot":"","sources":["../../src/error-collector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,cAAc;IAC1B,OAAO,CAAC,MAAM,CAA+C;IAC7D,OAAO,CAAC,QAAQ,CAAkD;IAElE;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAI7C;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAIlD;;OAEG;IACH,SAAS,IAAI,OAAO;IAIpB;;OAEG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,SAAS,IAAI,aAAa,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC;IAI7D;;OAEG;IACH,WAAW,IAAI,aAAa,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAIlE;;OAEG;IACH,UAAU,IAAI,MAAM;IAoBpB;;OAEG;IACH,KAAK,IAAI,IAAI;CAIb;AAKD;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAKlD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAM1C"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { ManifestWriter } from '../manifest-writer';
|
|
2
|
-
export interface AddArrayItemRequest {
|
|
3
|
-
referenceComponentId: string;
|
|
4
|
-
position: 'before' | 'after';
|
|
5
|
-
props: Record<string, unknown>;
|
|
6
|
-
meta?: {
|
|
7
|
-
source: string;
|
|
8
|
-
url: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface AddArrayItemResponse {
|
|
12
|
-
success: boolean;
|
|
13
|
-
message?: string;
|
|
14
|
-
sourceFile?: string;
|
|
15
|
-
error?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface RemoveArrayItemRequest {
|
|
18
|
-
componentId: string;
|
|
19
|
-
meta?: {
|
|
20
|
-
source: string;
|
|
21
|
-
url: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export interface RemoveArrayItemResponse {
|
|
25
|
-
success: boolean;
|
|
26
|
-
message?: string;
|
|
27
|
-
sourceFile?: string;
|
|
28
|
-
error?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Scan backwards from a component invocation line to find a `.map(` pattern
|
|
32
|
-
* and extract the array variable name.
|
|
33
|
-
*
|
|
34
|
-
* Looks for patterns like:
|
|
35
|
-
* {packages.map((pkg) => <PackageCard {...pkg} />)}
|
|
36
|
-
* {items.map(item => (
|
|
37
|
-
*/
|
|
38
|
-
export declare function detectArrayPattern(lines: string[], invocationLineIndex: number): {
|
|
39
|
-
arrayVarName: string;
|
|
40
|
-
mapLineIndex: number;
|
|
41
|
-
} | null;
|
|
42
|
-
interface ArrayElementBounds {
|
|
43
|
-
startLine: number;
|
|
44
|
-
endLine: number;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Parse frontmatter with Babel, walk the AST to find the array variable declaration,
|
|
48
|
-
* and return the line bounds of each element.
|
|
49
|
-
*
|
|
50
|
-
* @param frontmatterContent - The raw frontmatter code (between --- delimiters)
|
|
51
|
-
* @param frontmatterStartLine - The 0-indexed line where frontmatter content starts in the file
|
|
52
|
-
* (line after the opening `---`)
|
|
53
|
-
* @param arrayVarName - The variable name of the array to find
|
|
54
|
-
*/
|
|
55
|
-
export declare function findArrayDeclaration(frontmatterContent: string, frontmatterStartLine: number, arrayVarName: string): ArrayElementBounds[] | null;
|
|
56
|
-
export declare function handleRemoveArrayItem(request: RemoveArrayItemRequest, manifestWriter: ManifestWriter): Promise<RemoveArrayItemResponse>;
|
|
57
|
-
export declare function handleAddArrayItem(request: AddArrayItemRequest, manifestWriter: ManifestWriter): Promise<AddArrayItemResponse>;
|
|
58
|
-
export {};
|
|
59
|
-
//# sourceMappingURL=array-ops.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array-ops.d.ts","sourceRoot":"","sources":["../../../src/handlers/array-ops.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAYxD,MAAM,WAAW,mBAAmB;IACnC,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACtC;AAED,MAAM,WAAW,oBAAoB;IACpC,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,sBAAsB;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACtC;AAED,MAAM,WAAW,uBAAuB;IACvC,OAAO,EAAE,OAAO,CAAA;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