narraleaf-studio 1.4.0 → 1.4.1
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/_api.d.ts +28 -1
- package/package.json +1 -1
package/dist/_api.d.ts
CHANGED
|
@@ -10516,6 +10516,8 @@ declare const en: {
|
|
|
10516
10516
|
readonly history: {
|
|
10517
10517
|
readonly moveSurface: "move interface {name}";
|
|
10518
10518
|
readonly setEntryPage: "set entry page {name}";
|
|
10519
|
+
readonly setRootElement: "set root element {name}";
|
|
10520
|
+
readonly wrapRoot: "wrap {name} in a container";
|
|
10519
10521
|
readonly createComponent: "create component {name}";
|
|
10520
10522
|
readonly duplicateComponent: "duplicate component {name}";
|
|
10521
10523
|
readonly duplicateComponents: "duplicate {count} components";
|
|
@@ -10687,6 +10689,14 @@ declare const en: {
|
|
|
10687
10689
|
readonly showSelected: "Show selected";
|
|
10688
10690
|
readonly hideSelected: "Hide selected";
|
|
10689
10691
|
readonly addToComponentLibrary: "Add to Component Library";
|
|
10692
|
+
readonly setAsRoot: "Set as root element";
|
|
10693
|
+
readonly wrapRootInContainer: "Wrap in container";
|
|
10694
|
+
readonly setAsRootNotContainer: "Available when the root element is a container";
|
|
10695
|
+
readonly setAsRootNotAlone: "Available when this is the only element in the root container";
|
|
10696
|
+
readonly setAsRootNotFree: "Available when the root container's child layout is Free";
|
|
10697
|
+
readonly addedToComponentLibrary: "Added \u201C{name}\u201D to the Component Library.";
|
|
10698
|
+
readonly cannotHoldChildren: "{name} cannot contain child elements";
|
|
10699
|
+
readonly linkedInstanceContents: "The contents of a linked instance are edited in its component";
|
|
10690
10700
|
readonly group: "Group";
|
|
10691
10701
|
readonly ungroup: "Ungroup";
|
|
10692
10702
|
readonly addState: "Add state";
|
|
@@ -13197,7 +13207,7 @@ declare const en: {
|
|
|
13197
13207
|
readonly rootName: "Root";
|
|
13198
13208
|
readonly componentName: "Component";
|
|
13199
13209
|
readonly pageName: "Page";
|
|
13200
|
-
readonly
|
|
13210
|
+
readonly nameCopy: "{name} Copy";
|
|
13201
13211
|
readonly speaker: "Speaker";
|
|
13202
13212
|
readonly dialog: {
|
|
13203
13213
|
readonly interactionLayer: "Dialog Interaction Layer";
|
|
@@ -18107,6 +18117,23 @@ declare class UIDocumentService extends Service<UIDocumentService> implements IU
|
|
|
18107
18117
|
* document made of the component alone, as `moveComponentElements` does.
|
|
18108
18118
|
*/
|
|
18109
18119
|
groupComponentElements(componentId: string, elementIds: readonly string[]): string | null;
|
|
18120
|
+
/**
|
|
18121
|
+
* Make an element its definition's root, taking off the container it sat alone in.
|
|
18122
|
+
*
|
|
18123
|
+
* One step in the definition's history, and the one step there that reaches the pages: every
|
|
18124
|
+
* placement is given the box the element took up inside it (`promoteElementToComponentRoot`), and
|
|
18125
|
+
* taking the step back gives the boxes back with the definition.
|
|
18126
|
+
*/
|
|
18127
|
+
promoteComponentElementToRoot(componentId: string, elementId: string): boolean;
|
|
18128
|
+
/**
|
|
18129
|
+
* Put an empty container around a definition's root, as its new root. Returns the container's id.
|
|
18130
|
+
*
|
|
18131
|
+
* The container takes the root's size and draws nothing of its own, so the definition and every
|
|
18132
|
+
* placement look as they did, and the root can now be given siblings.
|
|
18133
|
+
*/
|
|
18134
|
+
wrapComponentRoot(componentId: string): string | null;
|
|
18135
|
+
/** An element as an Edit menu step names it: its own name, or its widget's. */
|
|
18136
|
+
private describeElementForHistory;
|
|
18110
18137
|
createComponentElement(componentId: string, parentId: string, type: string, layoutPatch?: Partial<UILayout>): UIElement | null;
|
|
18111
18138
|
pasteComponentClipboardPayload(componentId: string, targetParentId: string, beforeChildId: string | null, incoming: UIEditorClipboardPayload): {
|
|
18112
18139
|
ok: true;
|
package/package.json
CHANGED