@open-artifact/dc 0.14.0 → 0.14.2
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/package.json +1 -1
- package/src/document.d.ts +1 -1
- package/src/edit.d.ts +3 -3
- package/src/index.d.ts +10 -10
- package/src/render.d.ts +1 -1
- package/src/rich-text.d.ts +1 -1
- package/src/runtime/text-edit.d.ts +1 -1
- package/src/template.d.ts +1 -1
package/package.json
CHANGED
package/src/document.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* its `data-props` live in the source, and how to replace one of them while
|
|
4
4
|
* every other byte of the file stays as written.
|
|
5
5
|
*/
|
|
6
|
-
import { type PropsSpec } from './props.
|
|
6
|
+
import { type PropsSpec } from './props.js';
|
|
7
7
|
/** The line every artboard's `<head>` must carry; the editor swaps it for the runtime. */
|
|
8
8
|
export declare const SUPPORT_SCRIPT_TAG = "<script src=\"./support.js\"></script>";
|
|
9
9
|
/** Finds the runtime tag in the head. Nested boards can address the project root. */
|
package/src/edit.d.ts
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* edits can be combined with {@link applyEdits} as long as their ranges do
|
|
9
9
|
* not overlap.
|
|
10
10
|
*/
|
|
11
|
-
import { type HtmlElement, type HtmlNode } from './html.
|
|
12
|
-
import { type StylePatch } from './style.
|
|
13
|
-
import type { TemplateModel } from './template.
|
|
11
|
+
import { type HtmlElement, type HtmlNode } from './html.js';
|
|
12
|
+
import { type StylePatch } from './style.js';
|
|
13
|
+
import type { TemplateModel } from './template.js';
|
|
14
14
|
/** Replace `[start, end)` of the template text with `text`. */
|
|
15
15
|
export interface Splice {
|
|
16
16
|
start: number;
|
package/src/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* The renderer (`./render`) and the board runtime (`./runtime`) are
|
|
5
5
|
* separate entry points because they pull in React.
|
|
6
6
|
*/
|
|
7
|
-
export * from './html.
|
|
8
|
-
export * from './props.
|
|
9
|
-
export * from './holes.
|
|
10
|
-
export * from './style.
|
|
11
|
-
export * from './document.
|
|
12
|
-
export * from './template.
|
|
13
|
-
export * from './edit.
|
|
14
|
-
export * from './rich-text.
|
|
15
|
-
export * from './check.
|
|
16
|
-
export type * from './protocol.
|
|
7
|
+
export * from './html.js';
|
|
8
|
+
export * from './props.js';
|
|
9
|
+
export * from './holes.js';
|
|
10
|
+
export * from './style.js';
|
|
11
|
+
export * from './document.js';
|
|
12
|
+
export * from './template.js';
|
|
13
|
+
export * from './edit.js';
|
|
14
|
+
export * from './rich-text.js';
|
|
15
|
+
export * from './check.js';
|
|
16
|
+
export type * from './protocol.js';
|
package/src/render.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* clicks back to the template node.
|
|
8
8
|
*/
|
|
9
9
|
import { type ComponentType, type ReactNode } from 'react';
|
|
10
|
-
import type { TemplateModel } from './template.
|
|
10
|
+
import type { TemplateModel } from './template.js';
|
|
11
11
|
/** Attribute naming the template node a DOM element came from. */
|
|
12
12
|
export declare const TID_ATTRIBUTE = "data-dc-tpl";
|
|
13
13
|
/** Attribute marking a `<dc-import>` / `<x-import>` boundary: clicks inside select the import. */
|
package/src/rich-text.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - the string literals of a logic script ({@link scriptLiterals}), so text
|
|
9
9
|
* a script supplies can be edited where it is written.
|
|
10
10
|
*/
|
|
11
|
-
import { type HtmlElement } from './html.
|
|
11
|
+
import { type HtmlElement } from './html.js';
|
|
12
12
|
/** Inline formatting an editable text may hold. */
|
|
13
13
|
export declare const INLINE_TEXT_TAGS: ReadonlySet<string>;
|
|
14
14
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BoardEvent, BoardRect, ImportTextTargetSpec, TextEditOptions, TextEditTarget, TextFormat } from '../protocol.
|
|
1
|
+
import type { BoardEvent, BoardRect, ImportTextTargetSpec, TextEditOptions, TextEditTarget, TextFormat } from '../protocol.js';
|
|
2
2
|
/** Where a glyph of drawn text starts, on screen. */
|
|
3
3
|
interface Stop {
|
|
4
4
|
x: number;
|
package/src/template.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* address against its own copy of the file by the same rules; when tid and
|
|
14
14
|
* path disagree, the copies differ.
|
|
15
15
|
*/
|
|
16
|
-
import { type HtmlElement, type HtmlNode } from './html.
|
|
16
|
+
import { type HtmlElement, type HtmlNode } from './html.js';
|
|
17
17
|
/** A parsed template with its elements indexed by tid. */
|
|
18
18
|
export interface TemplateModel {
|
|
19
19
|
/** The template text this model was parsed from. */
|