@open-artifact/docs-core 0.13.0 → 0.14.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/package.json +2 -2
- package/src/anchors.d.ts +1 -1
- package/src/content.d.ts +1 -1
- package/src/decisions.d.ts +1 -1
- package/src/export-source.d.ts +1 -1
- package/src/history.d.ts +1 -1
- package/src/index.d.ts +10 -10
- package/src/markdown.d.ts +2 -2
- package/src/ops.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-artifact/docs-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "The Docs type's model, free of DOM and React: blocks and characters with stable ids, the edit ops and their guards, markdown in and out, link anchors, suggestions and their decisions, version history rows and the export source.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"NOTICE"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@open-artifact/live-store": "0.
|
|
19
|
+
"@open-artifact/live-store": "0.14.1"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"author": {
|
package/src/anchors.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* link points at, by the same rules, and name the headings of a markdown file as GitHub does; an import finds there
|
|
6
6
|
* which heading of the file a link names, to point it at that heading's new id.
|
|
7
7
|
*/
|
|
8
|
-
import { type Block } from './model.
|
|
8
|
+
import { type Block } from './model.js';
|
|
9
9
|
/** The page's slug of a heading: lower case, letters, digits, spaces and hyphens, spaces as one hyphen. */
|
|
10
10
|
export declare const pageSlug: (words: string) => string;
|
|
11
11
|
/** GitHub's: lower case, without punctuation but `-` and `_`, each space a hyphen. */
|
package/src/content.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* turned into model blocks and inline items. Ids are taken from an IdSource in document order: a block's own id first,
|
|
4
4
|
* then its inline items, then its children.
|
|
5
5
|
*/
|
|
6
|
-
import { type AtomType, type Block, type BlockType, type Char, type DocState, type Inline, type Marks } from './model.
|
|
6
|
+
import { type AtomType, type Block, type BlockType, type Char, type DocState, type Inline, type Marks } from './model.js';
|
|
7
7
|
export interface IdSource {
|
|
8
8
|
take(): string;
|
|
9
9
|
}
|
package/src/decisions.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* The record lives with the server, not with the doc: it never reaches the file, exports, the view, hashes or the
|
|
11
11
|
* history, and a server that restarts has none (the answer is `not_restored`, `journal_out_of_reach`).
|
|
12
12
|
*/
|
|
13
|
-
import { type Block, type SuggestionInfo } from './model.
|
|
13
|
+
import { type Block, type SuggestionInfo } from './model.js';
|
|
14
14
|
/** One top-level block a decide touched: before it (null for one the decide added) and its signature after (null: taken out). */
|
|
15
15
|
export interface DecisionTop {
|
|
16
16
|
id: string;
|
package/src/export-source.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Block, type Inline, type Marks } from './model.
|
|
1
|
+
import { type Block, type Inline, type Marks } from './model.js';
|
|
2
2
|
export type Paper = 'a4' | 'letter';
|
|
3
3
|
export type DocFont = 'serif' | 'sans' | 'mono';
|
|
4
4
|
/** The languages with their own fonts and line breaking in a printed file. */
|
package/src/history.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* The store does the file writes (so a transaction that fails puts them back); this module decides what to write.
|
|
14
14
|
*/
|
|
15
|
-
import type { DocState } from './model.
|
|
15
|
+
import type { DocState } from './model.js';
|
|
16
16
|
export declare const HISTORY_DIR = "history";
|
|
17
17
|
export declare const HISTORY_INDEX = "index.json";
|
|
18
18
|
/** A person's edits join their open version until a pause this long… */
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './model.
|
|
2
|
-
export * from './blobs.
|
|
3
|
-
export * from './content.
|
|
4
|
-
export * from './ops.
|
|
5
|
-
export * from './markdown.
|
|
6
|
-
export * from './anchors.
|
|
7
|
-
export * from './decisions.
|
|
8
|
-
export * from './history.
|
|
9
|
-
export * from './export-source.
|
|
10
|
-
export * from './chip-text.
|
|
1
|
+
export * from './model.js';
|
|
2
|
+
export * from './blobs.js';
|
|
3
|
+
export * from './content.js';
|
|
4
|
+
export * from './ops.js';
|
|
5
|
+
export * from './markdown.js';
|
|
6
|
+
export * from './anchors.js';
|
|
7
|
+
export * from './decisions.js';
|
|
8
|
+
export * from './history.js';
|
|
9
|
+
export * from './export-source.js';
|
|
10
|
+
export * from './chip-text.js';
|
package/src/markdown.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IdSource } from './content.
|
|
2
|
-
import { type Block, type Inline } from './model.
|
|
1
|
+
import { type IdSource } from './content.js';
|
|
2
|
+
import { type Block, type Inline } from './model.js';
|
|
3
3
|
export type Chip = Record<string, unknown> & {
|
|
4
4
|
type: string;
|
|
5
5
|
};
|
package/src/ops.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type MarkdownContext, type Chips } from './markdown.
|
|
2
|
-
import { type Decision, type Undecided } from './decisions.
|
|
3
|
-
import { type DocState, type SuggestionInfo } from './model.
|
|
1
|
+
import { type MarkdownContext, type Chips } from './markdown.js';
|
|
2
|
+
import { type Decision, type Undecided } from './decisions.js';
|
|
3
|
+
import { type DocState, type SuggestionInfo } from './model.js';
|
|
4
4
|
export declare class Refusal extends Error {
|
|
5
5
|
code: string;
|
|
6
6
|
opIndex: number | undefined;
|