@twip/web 0.0.0-canary-8cb8181 → 0.0.0-canary-05bfdb9
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/commands.d.ts +1 -1
- package/dist/events.d.ts +2 -3
- package/dist/services/elements.d.ts +1 -1
- package/dist/twip_wasm.wasm +0 -0
- package/package.json +1 -1
package/dist/commands.d.ts
CHANGED
|
@@ -623,7 +623,7 @@ export interface Commands {
|
|
|
623
623
|
selectNextPlaceholder(): Promise<void>;
|
|
624
624
|
/** Selects the previous placeholder in document order, wrapping; Shift+Tab while one is selected. View. */
|
|
625
625
|
selectPreviousPlaceholder(): Promise<void>;
|
|
626
|
-
/** Fills the selected placeholder, or every unfilled one with `key
|
|
626
|
+
/** Fills the selected placeholder, or every unfilled one with `key`: each becomes a plain picture, its content control removed. */
|
|
627
627
|
fillPlaceholder(options: {
|
|
628
628
|
key?: string;
|
|
629
629
|
image: Uint8Array;
|
package/dist/events.d.ts
CHANGED
|
@@ -22,8 +22,7 @@ export interface TwipEvents {
|
|
|
22
22
|
via: 'ctrlClick' | 'click';
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
-
* An unfilled picture placeholder was clicked, or one of its buttons (`action`: the button's id
|
|
26
|
-
* filled block's tab).
|
|
25
|
+
* An unfilled picture placeholder was clicked, or one of its buttons (`action`: the button's id).
|
|
27
26
|
*/
|
|
28
27
|
placeholderActivated: {
|
|
29
28
|
key: string;
|
|
@@ -159,7 +158,7 @@ export type HostCommand = 'save' | 'saveAs' | 'print' | 'open' | 'new' | 'find'
|
|
|
159
158
|
/** A hover tooltip to show. */
|
|
160
159
|
export interface Tooltip {
|
|
161
160
|
/** What is hovered. */
|
|
162
|
-
kind: 'link' | 'mark' | 'revision' | 'comment';
|
|
161
|
+
kind: 'link' | 'mark' | 'revision' | 'comment' | 'placeholder';
|
|
163
162
|
/** The text to show. */
|
|
164
163
|
text: string;
|
|
165
164
|
/** The pointer. */
|
|
@@ -37,7 +37,7 @@ export interface PlaceholderInfo {
|
|
|
37
37
|
key: string;
|
|
38
38
|
/** The control it is in. */
|
|
39
39
|
element: ElementId | null;
|
|
40
|
-
/** The input block's button pressed (its id)
|
|
40
|
+
/** The input block's button pressed (its id); absent: the block itself. */
|
|
41
41
|
action?: string;
|
|
42
42
|
}
|
|
43
43
|
/** {@link Elements} on a mounted editor: adds drop targets and hit testing. */
|
package/dist/twip_wasm.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twip/web",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-05bfdb9",
|
|
4
4
|
"description": "The Twip DOCX editor for the browser and Node: a managed, framework-independent editor over the WebAssembly engine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|