@black-studio/plugin 1.4.0 → 1.5.0
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/README.md +7 -1
- package/index.d.ts +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,6 +100,7 @@ var __blackPlugin = class extends __black.require('@black/plugin').Plugin {
|
|
|
100
100
|
`project.picture`, `project.storyTime` and continuity checks
|
|
101
101
|
- 13: series from book importers
|
|
102
102
|
- 14: `app.ui.sprint` and `app.format`
|
|
103
|
+
- 15: snapshots, and comments' authors and dates, from book importers
|
|
103
104
|
- **`sandboxed`:** runs the plugin in a separate worker, apart from the
|
|
104
105
|
window (see below).
|
|
105
106
|
- **`locales`:** the plugin's name and description in other languages, by
|
|
@@ -587,7 +588,12 @@ Suggesters work in sandboxed plugins too.
|
|
|
587
588
|
synopsis, notes, keywords, label and status. In the HTML, a footnote is
|
|
588
589
|
`<sup data-footnote="its text"></sup>` where its number goes, and the text
|
|
589
590
|
a comment is about is `<span data-comment="id">…</span>`, with the comment
|
|
590
|
-
itself in the item's `comments` (API 12)
|
|
591
|
+
itself in the item's `comments` (API 12), with who wrote it (`by`) and
|
|
592
|
+
when (`created`, API 15);
|
|
593
|
+
- a document's earlier versions as its `snapshots`, each with a `title`,
|
|
594
|
+
the date it was `taken` and its `html` (API 15). An older app leaves
|
|
595
|
+
them out, so check `this.app.apiVersion` and tell the writer, as the
|
|
596
|
+
Scrivener import does;
|
|
591
597
|
- beats on the storylines.
|
|
592
598
|
|
|
593
599
|
Items refer to each other (a scene's cast and place, a beat's scene) by ids
|
package/index.d.ts
CHANGED
|
@@ -826,8 +826,16 @@ export interface ImportedItem {
|
|
|
826
826
|
* `<span data-comment="id">…</span>`, with the comment in `comments` (API 12).
|
|
827
827
|
*/
|
|
828
828
|
html?: string
|
|
829
|
-
/**
|
|
830
|
-
|
|
829
|
+
/**
|
|
830
|
+
* Comments on the text, each anchored by its `id` in `html`. The writer sees them in the margin (API 12). `by` is who
|
|
831
|
+
* wrote it, and `created` when, as an ISO date (API 15; before, the import's date). Without `by`, it's the writer's.
|
|
832
|
+
*/
|
|
833
|
+
comments?: { id: string; text: string; by?: string; created?: string }[]
|
|
834
|
+
/**
|
|
835
|
+
* Earlier versions of the text, which become the document's snapshots: each with its name, when it was taken (an ISO
|
|
836
|
+
* date; the import's date if not given) and its text as HTML (API 15). An older app leaves them out.
|
|
837
|
+
*/
|
|
838
|
+
snapshots?: { title: string; taken?: string; html: string }[]
|
|
831
839
|
synopsis?: string
|
|
832
840
|
notes?: string
|
|
833
841
|
keywords?: string[]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@black-studio/plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Write plugins for Bläck Studio: the plugin API's types, and a build that turns TypeScript or JSX source into a plugin folder.",
|
|
5
5
|
"keywords": ["black-studio", "plugin", "writing"],
|
|
6
6
|
"homepage": "https://blackstudio.app/developers/",
|