@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.
- package/cjs/index.js +15 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/Snippyly/Snippyly.d.ts +3 -1
- package/cjs/types/components/Snippyly/Snippyly.stories.d.ts +2 -3
- package/cjs/types/hooks/Client.d.ts +2 -2
- package/cjs/types/loadSnippyly.d.ts +1 -1
- package/esm/index.js +15 -3
- package/esm/index.js.map +1 -1
- package/esm/types/components/Snippyly/Snippyly.d.ts +3 -1
- package/esm/types/components/Snippyly/Snippyly.stories.d.ts +2 -3
- package/esm/types/hooks/Client.d.ts +2 -2
- package/esm/types/loadSnippyly.d.ts +1 -1
- package/index.d.ts +5 -3
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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:
|
|
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,
|
|
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?:
|
|
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,
|
|
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?:
|
|
355
|
+
declare function useIdentify(user: User, userOptions?: Options): void;
|
|
354
356
|
/**
|
|
355
357
|
* @beta This hook is in beta
|
|
356
358
|
*/
|