@nuasite/cms 0.9.3 → 0.10.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/README.md +21 -0
- package/dist/editor.js +6517 -6264
- package/package.json +1 -1
- package/src/editor/components/fields.tsx +48 -0
- package/src/editor/components/selection-highlight.tsx +200 -0
- package/src/editor/components/seo-editor.tsx +114 -17
- package/src/editor/components/toolbar.tsx +15 -15
- package/src/editor/hooks/useBlockEditorHandlers.ts +8 -1
- package/src/editor/hooks/useElementDetection.ts +26 -3
- package/src/editor/index.tsx +25 -2
- package/src/index.ts +2 -0
- package/src/seo-processor.ts +12 -0
- package/src/types.ts +16 -0
package/src/types.ts
CHANGED
|
@@ -420,6 +420,10 @@ export interface PageSeoData {
|
|
|
420
420
|
openGraph?: OpenGraphData
|
|
421
421
|
/** Twitter Card metadata */
|
|
422
422
|
twitterCard?: TwitterCardData
|
|
423
|
+
/** Browser theme color (meta name="theme-color") */
|
|
424
|
+
themeColor?: SeoMetaTag
|
|
425
|
+
/** Robots directives (meta name="robots") */
|
|
426
|
+
robots?: SeoMetaTag
|
|
423
427
|
/** JSON-LD structured data blocks */
|
|
424
428
|
jsonLd?: JsonLdEntry[]
|
|
425
429
|
}
|
|
@@ -568,3 +572,15 @@ export type CmsPostMessage =
|
|
|
568
572
|
| CmsReadyMessage
|
|
569
573
|
| CmsStateChangedMessage
|
|
570
574
|
| CmsPageNavigatedMessage
|
|
575
|
+
|
|
576
|
+
// ============================================================================
|
|
577
|
+
// Inbound messages (parent → editor iframe)
|
|
578
|
+
// ============================================================================
|
|
579
|
+
|
|
580
|
+
/** Message sent from parent to deselect the currently selected element/component */
|
|
581
|
+
export interface CmsDeselectElementMessage {
|
|
582
|
+
type: 'cms-deselect-element'
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** All possible CMS postMessage types sent from the parent to the editor iframe */
|
|
586
|
+
export type CmsInboundMessage = CmsDeselectElementMessage
|