@aicayzer/inkkit 0.0.18 → 0.1.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/NOTICE +4 -2
- package/README.md +11 -7
- package/dist/THIRD-PARTY-NOTICES.txt +2742 -0
- package/dist/chunks/core-CYp5ONPO.js +56519 -0
- package/dist/chunks/highlight-BW9W8PtS.js +14122 -0
- package/dist/core.d.ts +2 -5
- package/dist/core.js +2 -2
- package/dist/editor.d.ts +229 -47
- package/dist/index.js +5 -3
- package/dist/style.css +231 -202
- package/dist/types.d.ts +143 -18
- package/package.json +16 -13
- package/dist/autolink.d.ts +0 -1
- package/dist/autolink.js +0 -18
- package/dist/callouts.d.ts +0 -25
- package/dist/callouts.js +0 -288
- package/dist/clipboard.d.ts +0 -11
- package/dist/clipboard.js +0 -261
- package/dist/code-fences.d.ts +0 -8
- package/dist/code-fences.js +0 -171
- package/dist/comments.d.ts +0 -76
- package/dist/comments.js +0 -545
- package/dist/cursor.d.ts +0 -2
- package/dist/cursor.js +0 -40
- package/dist/decorations.d.ts +0 -2
- package/dist/decorations.js +0 -67
- package/dist/dialect.d.ts +0 -9
- package/dist/dialect.js +0 -446
- package/dist/drop-placement.d.ts +0 -19
- package/dist/drop-placement.js +0 -47
- package/dist/editor.js +0 -2673
- package/dist/files.d.ts +0 -40
- package/dist/files.js +0 -133
- package/dist/highlight.d.ts +0 -1
- package/dist/highlight.js +0 -136
- package/dist/html-import.d.ts +0 -13
- package/dist/html-import.js +0 -477
- package/dist/image-blocks.d.ts +0 -86
- package/dist/image-blocks.js +0 -329
- package/dist/images.d.ts +0 -51
- package/dist/images.js +0 -398
- package/dist/inline-highlight.d.ts +0 -6
- package/dist/inline-highlight.js +0 -112
- package/dist/labels.d.ts +0 -36
- package/dist/labels.js +0 -34
- package/dist/link-safety.d.ts +0 -17
- package/dist/link-safety.js +0 -29
- package/dist/linked-syntax.d.ts +0 -48
- package/dist/linked-syntax.js +0 -320
- package/dist/literals.d.ts +0 -20
- package/dist/literals.js +0 -216
- package/dist/mermaid.d.ts +0 -28
- package/dist/mermaid.js +0 -404
- package/dist/outline.d.ts +0 -22
- package/dist/outline.js +0 -79
- package/dist/paste-html.d.ts +0 -31
- package/dist/paste-html.js +0 -462
- package/dist/paste.d.ts +0 -33
- package/dist/paste.js +0 -591
- package/dist/portable-files.d.ts +0 -10
- package/dist/portable-files.js +0 -36
- package/dist/preserve.d.ts +0 -38
- package/dist/preserve.js +0 -1396
- package/dist/print.d.ts +0 -7
- package/dist/print.js +0 -406
- package/dist/reference-clipboard.d.ts +0 -8
- package/dist/reference-clipboard.js +0 -201
- package/dist/references.d.ts +0 -16
- package/dist/references.js +0 -418
- package/dist/scroll.d.ts +0 -15
- package/dist/scroll.js +0 -27
- package/dist/search.d.ts +0 -15
- package/dist/search.js +0 -202
- package/dist/selection.d.ts +0 -1
- package/dist/selection.js +0 -59
- package/dist/source.d.ts +0 -16
- package/dist/source.js +0 -57
- package/dist/spreadsheet.d.ts +0 -8
- package/dist/spreadsheet.js +0 -289
- package/dist/table-alignment.d.ts +0 -2
- package/dist/table-alignment.js +0 -46
- package/dist/tables.d.ts +0 -27
- package/dist/tables.js +0 -344
- package/dist/tasks.d.ts +0 -3
- package/dist/tasks.js +0 -51
- package/dist/text-ranges.d.ts +0 -29
- package/dist/text-ranges.js +0 -256
- package/dist/types.js +0 -8
- package/dist/wiki-view.d.ts +0 -21
- package/dist/wiki-view.js +0 -78
package/NOTICE
CHANGED
|
@@ -21,5 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
21
21
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
22
|
THE SOFTWARE.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
The published package bundles Milkdown, ProseMirror and other packages. Each
|
|
25
|
+
keeps its own licence; dist/THIRD-PARTY-NOTICES.txt in the package lists them
|
|
26
|
+
with their licence texts. Mermaid is installed as a dependency and keeps its
|
|
27
|
+
own licence.
|
package/README.md
CHANGED
|
@@ -15,7 +15,11 @@ A Markdown editor for the web and for apps that host a web view. It edits format
|
|
|
15
15
|
npm install @aicayzer/inkkit
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
An app that does not render diagrams can import from `@aicayzer/inkkit/core` instead. That entry leaves Mermaid out of the app's bundle and keeps diagrams as editable source. See [Builds without diagrams](docs/api.md#builds-without-diagrams).
|
|
18
|
+
An app that does not render diagrams can import from `@aicayzer/inkkit/core` instead. That entry leaves Mermaid out of the app's bundle and keeps diagrams as editable source. See [Builds without diagrams](https://github.com/aicayzer/inkkit/blob/main/docs/api.md#builds-without-diagrams).
|
|
19
|
+
|
|
20
|
+
## Supported engines
|
|
21
|
+
|
|
22
|
+
InkKit supports Safari and `WKWebView` 17.5 or later (iOS 17.5, macOS 14.5), Chrome and Edge 123 or later, and Firefox 125 or later. The host page must declare UTF-8. See [Supported engines](https://github.com/aicayzer/inkkit/blob/main/docs/integration.md#supported-engines) for the APIs behind these versions.
|
|
19
23
|
|
|
20
24
|
## Use
|
|
21
25
|
|
|
@@ -24,8 +28,8 @@ import { InkKitEditor } from '@aicayzer/inkkit'
|
|
|
24
28
|
import '@aicayzer/inkkit/style.css'
|
|
25
29
|
|
|
26
30
|
const editor = await InkKitEditor.mount(document.getElementById('editor')!, {
|
|
27
|
-
changed(
|
|
28
|
-
|
|
31
|
+
changed({ generation, revision, text }) {},
|
|
32
|
+
commandStateChanged({ caret }) {},
|
|
29
33
|
openLink(href) {},
|
|
30
34
|
copy(text) {},
|
|
31
35
|
})
|
|
@@ -47,10 +51,10 @@ const { text } = editor.snapshot(1)
|
|
|
47
51
|
|
|
48
52
|
## Learn more
|
|
49
53
|
|
|
50
|
-
- [Supported syntax](docs/supported-syntax.md)
|
|
51
|
-
- [Integration guide](docs/integration.md)
|
|
52
|
-
- [API reference](docs/api.md)
|
|
53
|
-
- [All documentation](docs/README.md)
|
|
54
|
+
- [Supported syntax](https://github.com/aicayzer/inkkit/blob/main/docs/supported-syntax.md)
|
|
55
|
+
- [Integration guide](https://github.com/aicayzer/inkkit/blob/main/docs/integration.md)
|
|
56
|
+
- [API reference](https://github.com/aicayzer/inkkit/blob/main/docs/api.md)
|
|
57
|
+
- [All documentation](https://github.com/aicayzer/inkkit/blob/main/docs/README.md)
|
|
54
58
|
|
|
55
59
|
## License
|
|
56
60
|
|