@veltdev/react 4.4.0-beta.5 → 4.4.0-beta.6
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 +3 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyPresence/SnippylyPresence.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/LiveStateSyncElement.d.ts +1 -1
- package/esm/index.js +3 -3
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyPresence/SnippylyPresence.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/LiveStateSyncElement.d.ts +1 -1
- package/index.d.ts +2 -1
- package/package.json +1 -1
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const VELT_SDK_VERSION = "4.4.0-beta.
|
|
2
|
+
export declare const VELT_SDK_VERSION = "4.4.0-beta.6";
|
|
3
3
|
export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
|
|
4
4
|
export declare const VELT_TAB_ID = "veltTabId";
|
|
5
5
|
export interface IVeltWireframeCommonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
@@ -5,7 +5,7 @@ declare class LiveStateDataConfig {
|
|
|
5
5
|
export declare function useLiveStateSyncUtils(): LiveStateSyncElement | undefined;
|
|
6
6
|
export declare function useLiveStateData(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig): any;
|
|
7
7
|
export declare function useSetLiveStateData(liveStateDataId: string, liveStateData: any, config?: SetLiveStateDataConfig): void;
|
|
8
|
-
export declare function useUserEditorState(): UserEditorAccess | null;
|
|
8
|
+
export declare function useUserEditorState(): UserEditorAccess | null | undefined;
|
|
9
9
|
export declare function useEditor(): User | null;
|
|
10
10
|
export declare function useEditorAccessTimer(): EditorAccessTimer;
|
|
11
11
|
export declare function useEditorAccessRequestHandler(): {
|
package/esm/index.js
CHANGED
|
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var VELT_SDK_VERSION = '4.4.0-beta.
|
|
135
|
+
var VELT_SDK_VERSION = '4.4.0-beta.6';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
137
|
var VELT_TAB_ID = 'veltTabId';
|
|
138
138
|
|
|
@@ -523,7 +523,7 @@ var SnippylyHuddleTool = function (props) {
|
|
|
523
523
|
};
|
|
524
524
|
|
|
525
525
|
var SnippylyPresence = function (props) {
|
|
526
|
-
var maxUsers = props.maxUsers, inactivityTime = props.inactivityTime, documentParams = props.documentParams, location = props.location, self = props.self, onPresenceUserClick = props.onPresenceUserClick, onUsersChanged = props.onUsersChanged, onPresenceUserChange = props.onPresenceUserChange, disableFlockNavigation = props.disableFlockNavigation, defaultFlockNavigation = props.defaultFlockNavigation, onNavigate = props.onNavigate, flockMode = props.flockMode;
|
|
526
|
+
var maxUsers = props.maxUsers, inactivityTime = props.inactivityTime, documentParams = props.documentParams, location = props.location, locationId = props.locationId, self = props.self, onPresenceUserClick = props.onPresenceUserClick, onUsersChanged = props.onUsersChanged, onPresenceUserChange = props.onPresenceUserChange, disableFlockNavigation = props.disableFlockNavigation, defaultFlockNavigation = props.defaultFlockNavigation, onNavigate = props.onNavigate, flockMode = props.flockMode;
|
|
527
527
|
var ref = useRef();
|
|
528
528
|
var onUsersChangedRef = useRef(onUsersChanged);
|
|
529
529
|
var onPresenceUserChangeRef = useRef(onPresenceUserChange);
|
|
@@ -578,7 +578,7 @@ var SnippylyPresence = function (props) {
|
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
580
|
}, []);
|
|
581
|
-
return (React.createElement("velt-presence", { ref: ref, "flock-mode": [true, false].includes(flockMode) ? (flockMode ? 'true' : 'false') : undefined, "max-users": maxUsers, "inactivity-time": inactivityTime, "document-params": (typeof documentParams === 'object') ? JSON.stringify(documentParams) : (documentParams ? documentParams : undefined), "disable-flock-navigation": [true, false].includes(disableFlockNavigation) ? (disableFlockNavigation ? 'true' : 'false') : undefined, "default-flock-navigation": [true, false].includes(defaultFlockNavigation) ? (defaultFlockNavigation ? 'true' : 'false') : undefined, self: [true, false].includes(self) ? (self ? 'true' : 'false') : undefined, location: (typeof location === 'object') ? JSON.stringify(location) : (location ? location : undefined) }));
|
|
581
|
+
return (React.createElement("velt-presence", { ref: ref, "flock-mode": [true, false].includes(flockMode) ? (flockMode ? 'true' : 'false') : undefined, "max-users": maxUsers, "inactivity-time": inactivityTime, "document-params": (typeof documentParams === 'object') ? JSON.stringify(documentParams) : (documentParams ? documentParams : undefined), "disable-flock-navigation": [true, false].includes(disableFlockNavigation) ? (disableFlockNavigation ? 'true' : 'false') : undefined, "default-flock-navigation": [true, false].includes(defaultFlockNavigation) ? (defaultFlockNavigation ? 'true' : 'false') : undefined, self: [true, false].includes(self) ? (self ? 'true' : 'false') : undefined, location: (typeof location === 'object') ? JSON.stringify(location) : (location ? location : undefined), "location-id": locationId }));
|
|
582
582
|
};
|
|
583
583
|
|
|
584
584
|
var SnippylyRecorderControlPanel = function (props) {
|