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.
@@ -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<TiptapSyncSvelte['syncApi']>;
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 TiptapSyncSvelte<Id extends string = string> {
12
+ export declare class TiptapSyncClient<Id extends string = string> {
13
13
  component: ComponentApi;
14
14
  /**
15
15
  * Backend API for the ProsemirrorSync component.
@@ -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 TiptapSyncSvelte {
6
+ export class TiptapSyncClient {
7
7
  component;
8
8
  /**
9
9
  * Backend API for the ProsemirrorSync component.
@@ -1,2 +1 @@
1
- declare const _default: import("convex/server").ComponentDefinition<any>;
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 default defineComponent('tiptapSyncSvelte');
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 @feavel/svelte-convex-tiptap-sync package
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';
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.2",
4
+ "version": "0.0.3",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run prepack",