@pygmalionjs/pygmalion 0.5.33 → 0.5.34
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-lib/pygmalion.js +3420 -3408
- package/dist-lib/types/editor/editModePolicy.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
/** Explains a control that is inert because the editor is in view-only. */
|
|
2
2
|
export declare const VIEW_ONLY_REASON = "View only \u2014 switch to Editing to change this.";
|
|
3
|
+
export type ImportedRoutePresentation = 'editable-layers' | 'source-preview';
|
|
4
|
+
/**
|
|
5
|
+
* Chooses the visible surface for a route whose DOM has already been imported.
|
|
6
|
+
*
|
|
7
|
+
* Imported layers are an editing model, not the source screen itself. View-only
|
|
8
|
+
* therefore keeps the captured source preview on screen whenever one exists;
|
|
9
|
+
* switching to Editing is the explicit hand-off to the reconstructed layers.
|
|
10
|
+
* A missing preview falls back to layers instead of turning the frame blank.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveImportedRoutePresentation({ editMode, sourcePreviewAvailable, }: {
|
|
13
|
+
editMode: boolean;
|
|
14
|
+
sourcePreviewAvailable: boolean;
|
|
15
|
+
}): ImportedRoutePresentation;
|
|
3
16
|
interface ModeKeyEvent {
|
|
4
17
|
key: string;
|
|
5
18
|
code?: string;
|