@veltdev/react 1.0.99 → 1.0.101

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.
@@ -2,7 +2,9 @@ import React from 'react';
2
2
  import { Config, Velt } from '@veltdev/types';
3
3
  export interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
4
4
  apiKey: string;
5
- config?: Config;
5
+ config?: Config & {
6
+ proxyDomain?: string;
7
+ };
6
8
  user?: any;
7
9
  documentId?: string;
8
10
  language?: string;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
- declare const _default: ComponentMeta<React.FC<import("./Snippyly").IVeltProps>>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("./Snippyly").IVeltProps>;
3
2
  export default _default;
4
- export declare const Snippyly1: any;
3
+ export declare const Snippyly1: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, import("./Snippyly").IVeltProps>;
@@ -1,4 +1,4 @@
1
- import { Location, User, UserOptions } from "@veltdev/types";
1
+ import { Location, User, Options } from "@veltdev/types";
2
2
  /**
3
3
  * @beta This hook is in beta
4
4
  */
@@ -6,7 +6,7 @@ export declare function useClient(): any;
6
6
  /**
7
7
  * @beta This hook is in beta
8
8
  */
9
- export declare function useIdentify(user: User, userOptions?: UserOptions): void;
9
+ export declare function useIdentify(user: User, userOptions?: Options): void;
10
10
  /**
11
11
  * @beta This hook is in beta
12
12
  */
@@ -1,2 +1,2 @@
1
- declare const loadVelt: (callback: Function, version?: string, staging?: boolean, develop?: boolean) => void;
1
+ declare const loadVelt: (callback: Function, version?: string, staging?: boolean, develop?: boolean, proxyDomain?: string) => void;
2
2
  export default loadVelt;
package/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { Config, Velt, User, UserOptions, Location as Location$1, CommentElement, CommentAnnotation, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification } from '@veltdev/types';
3
+ import { Config, Velt, User, Options, Location as Location$1, CommentElement, CommentAnnotation, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
7
- config?: Config;
7
+ config?: Config & {
8
+ proxyDomain?: string;
9
+ };
8
10
  user?: any;
9
11
  documentId?: string;
10
12
  language?: string;
@@ -350,7 +352,7 @@ declare function useClient(): any;
350
352
  /**
351
353
  * @beta This hook is in beta
352
354
  */
353
- declare function useIdentify(user: User, userOptions?: UserOptions): void;
355
+ declare function useIdentify(user: User, userOptions?: Options): void;
354
356
  /**
355
357
  * @beta This hook is in beta
356
358
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",