cosveti-sync 0.0.2 → 0.0.4
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/client/index.d.ts +2 -2
- package/dist/client/index.js +1 -1
- package/dist/component/convex.config.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +16 -3
package/dist/client/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import type { ComponentApi } from '../component/_generated/component.js';
|
|
|
3
3
|
import { Schema, Node } from '@tiptap/pm/model';
|
|
4
4
|
import { Transform } from '@tiptap/pm/transform';
|
|
5
5
|
export type SyncApi = ApiFromModules<{
|
|
6
|
-
sync: ReturnType<
|
|
6
|
+
sync: ReturnType<TiptapSyncClient['syncApi']>;
|
|
7
7
|
}>['sync'];
|
|
8
8
|
export type RunMutationCtx = {
|
|
9
9
|
runMutation: GenericMutationCtx<GenericDataModel>['runMutation'];
|
|
10
10
|
runQuery: GenericQueryCtx<GenericDataModel>['runQuery'];
|
|
11
11
|
};
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class TiptapSyncClient<Id extends string = string> {
|
|
13
13
|
component: ComponentApi;
|
|
14
14
|
/**
|
|
15
15
|
* Backend API for the ProsemirrorSync component.
|
package/dist/client/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { v } from 'convex/values';
|
|
|
3
3
|
import { vClientId } from '../component/schema.js';
|
|
4
4
|
import { Schema, Node } from '@tiptap/pm/model';
|
|
5
5
|
import { Step, Transform } from '@tiptap/pm/transform';
|
|
6
|
-
export class
|
|
6
|
+
export class TiptapSyncClient {
|
|
7
7
|
component;
|
|
8
8
|
/**
|
|
9
9
|
* Backend API for the ProsemirrorSync component.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { defineComponent } from 'convex/server';
|
|
2
|
-
export default defineComponent('
|
|
2
|
+
export default defineComponent('tiptapSync');
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cosveti-sync",
|
|
3
3
|
"description": "A convex component for syncing tiptap in a svelte project",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
7
|
"build": "vite build && npm run prepack",
|
|
@@ -27,9 +27,22 @@
|
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"type": "module",
|
|
29
29
|
"exports": {
|
|
30
|
+
"./package.json": "./package.json",
|
|
30
31
|
".": {
|
|
31
|
-
"types": "./dist/index.d.ts",
|
|
32
|
-
"
|
|
32
|
+
"types": "./dist/client/index.d.ts",
|
|
33
|
+
"default": "./dist/client/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./tiptap": {
|
|
36
|
+
"types": "./dist/tiptap/index.d.ts",
|
|
37
|
+
"default": "./dist/tiptap/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./convex.config": {
|
|
40
|
+
"types": "./dist/component/convex.config.d.ts",
|
|
41
|
+
"default": "./dist/component/convex.config.js"
|
|
42
|
+
},
|
|
43
|
+
"./convex.config.js": {
|
|
44
|
+
"types": "./dist/component/convex.config.d.ts",
|
|
45
|
+
"default": "./dist/component/convex.config.js"
|
|
33
46
|
}
|
|
34
47
|
},
|
|
35
48
|
"peerDependencies": {
|