cosveti-sync 0.0.2 → 0.0.3
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
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 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default _default;
|
|
1
|
+
export declare const tiptapSyncConfig: import("convex/server").ComponentDefinition<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { defineComponent } from 'convex/server';
|
|
2
|
-
export
|
|
2
|
+
export const tiptapSyncConfig = defineComponent('tiptapSyncSvelte');
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { useTiptapSync } from './tiptap/index.js';
|
|
2
|
+
export { TiptapSyncClient } from './client/index.js';
|
|
3
|
+
export { tiptapSyncConfig } from './component/convex.config.js';
|
|
2
4
|
export type { UseSyncOptions, InitialState, SyncContext } from './tiptap/types.js';
|
|
3
5
|
export type { SyncApi } from './client/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
// Reexport your entry components here
|
|
2
|
-
// Main entry point for
|
|
2
|
+
// Main entry point for cosveti-sync package
|
|
3
3
|
export { useTiptapSync } from './tiptap/index.js';
|
|
4
|
+
export { TiptapSyncClient } from './client/index.js';
|
|
5
|
+
export { tiptapSyncConfig } from './component/convex.config.js';
|