@jsonpages/core 1.0.42 → 1.0.43
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/index.d.ts +12 -4
- package/dist/jsonpages-core.js +5164 -5176
- package/dist/jsonpages-core.umd.cjs +50 -50
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -178,10 +178,6 @@ declare interface FormFactoryProps {
|
|
|
178
178
|
fieldKey: string;
|
|
179
179
|
itemId?: string;
|
|
180
180
|
}> | null;
|
|
181
|
-
/** When user selects an item on the Stage, expand that array item (fieldKey -> itemId). */
|
|
182
|
-
expandedItemIdByField?: Record<string, string>;
|
|
183
|
-
/** When user clicks a field on the Stage, show it at top / scroll to it (simple field key). */
|
|
184
|
-
focusedFieldKey?: string | null;
|
|
185
181
|
/** Called when user expands/collapses an array item in the sidebar (so parent can drive fade). */
|
|
186
182
|
onSidebarExpandedItemChange?: (item: {
|
|
187
183
|
fieldKey: string;
|
|
@@ -367,6 +363,15 @@ declare interface SelectedSectionInfo {
|
|
|
367
363
|
scope: string;
|
|
368
364
|
}
|
|
369
365
|
|
|
366
|
+
/** v1.3 strict Studio path for field/item focus synchronization. */
|
|
367
|
+
export declare type SelectionPath = SelectionPathSegment[];
|
|
368
|
+
|
|
369
|
+
/** v1.3 strict Studio path segment (root -> leaf). */
|
|
370
|
+
export declare interface SelectionPathSegment {
|
|
371
|
+
fieldKey: string;
|
|
372
|
+
itemId?: string;
|
|
373
|
+
}
|
|
374
|
+
|
|
370
375
|
export declare interface SiteConfig {
|
|
371
376
|
identity: SiteIdentity;
|
|
372
377
|
header?: Section;
|
|
@@ -394,7 +399,10 @@ export declare const STUDIO_EVENTS: {
|
|
|
394
399
|
readonly REQUEST_CLEAN_HTML: "jsonpages:request-clean-html";
|
|
395
400
|
readonly SEND_CLEAN_HTML: "jsonpages:send-clean-html";
|
|
396
401
|
readonly SECTION_SELECT: "jsonpages:section-select";
|
|
402
|
+
readonly INLINE_FIELD_UPDATE: "jsonpages:inline-field-update";
|
|
403
|
+
readonly INLINE_FLUSHED: "jsonpages:inline-flushed";
|
|
397
404
|
readonly REQUEST_SCROLL_TO_SECTION: "jsonpages:request-scroll-to-section";
|
|
405
|
+
readonly REQUEST_INLINE_FLUSH: "jsonpages:request-inline-flush";
|
|
398
406
|
readonly ACTIVE_SECTION_CHANGED: "jsonpages:active-section-changed";
|
|
399
407
|
readonly STAGE_READY: "jsonpages:stage-ready";
|
|
400
408
|
};
|