@smplrspace/smplr-loader 2.28.1-beta.18 → 2.28.1-beta.19
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/generated/smplr.d.ts +39 -2
- package/package.json +1 -1
|
@@ -2,20 +2,44 @@ import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera';
|
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
import { Dispatch } from 'react';
|
|
4
4
|
import { EasingOptions } from 'mapbox-gl';
|
|
5
|
+
import { GetTokenSilentlyOptions } from '@auth0/auth0-spa-js';
|
|
5
6
|
import { IMaybe } from 'mobx-state-tree';
|
|
6
7
|
import { IModelType } from 'mobx-state-tree';
|
|
7
8
|
import { IOptionalIType } from 'mobx-state-tree';
|
|
8
9
|
import { ISimpleType } from 'mobx-state-tree';
|
|
10
|
+
import { LogoutOptions } from '@auth0/auth0-spa-js';
|
|
9
11
|
import { default as NoSleep_2 } from 'nosleep.js';
|
|
10
12
|
import { _NotCustomized } from 'mobx-state-tree';
|
|
13
|
+
import { RedirectLoginOptions } from '@auth0/auth0-spa-js';
|
|
11
14
|
import { Reducer } from 'react';
|
|
12
15
|
import { ReducerAction } from 'react';
|
|
13
16
|
import { RefObject } from 'react';
|
|
14
17
|
import { Scene } from '@babylonjs/core/scene';
|
|
15
18
|
import { SnapshotOut } from 'mobx-state-tree';
|
|
16
19
|
import { UniversalCamera } from '@babylonjs/core/Cameras/universalCamera';
|
|
20
|
+
import { User as User_2 } from '@auth0/auth0-spa-js';
|
|
17
21
|
import { VRDeviceOrientationFreeCamera } from '@babylonjs/core/Cameras/VR/vrDeviceOrientationFreeCamera';
|
|
18
22
|
|
|
23
|
+
declare interface Auth0ContextValue {
|
|
24
|
+
isAuthenticated: boolean;
|
|
25
|
+
user: User | null;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
logout: (options?: LogoutOptions) => void;
|
|
28
|
+
loggingOut: boolean;
|
|
29
|
+
loginWithRedirect: (options?: RedirectLoginOptions) => Promise<void>;
|
|
30
|
+
getTokenSilently: (options?: GetTokenSilentlyOptions) => Promise<string>;
|
|
31
|
+
updateUser: (updates: Partial<User>) => void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare interface Auth0UserWithClaims extends User_2 {
|
|
35
|
+
'https://smplrspace.com/jwt/claims': {
|
|
36
|
+
personalOrganizationId: string
|
|
37
|
+
smplradmin: boolean
|
|
38
|
+
missiveDigest: string
|
|
39
|
+
emailVerified: boolean
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
19
43
|
declare type BaseData = {
|
|
20
44
|
id?: string | number;
|
|
21
45
|
};
|
|
@@ -196,7 +220,6 @@ export declare interface EditorOptions {
|
|
|
196
220
|
containerId: string;
|
|
197
221
|
disableErrorReporting?: boolean;
|
|
198
222
|
whiteLabel?: boolean;
|
|
199
|
-
internal?: boolean;
|
|
200
223
|
}
|
|
201
224
|
|
|
202
225
|
export declare interface EmbeddedEditorUser {
|
|
@@ -443,6 +466,7 @@ export declare interface MapOptions {
|
|
|
443
466
|
containerId: string;
|
|
444
467
|
disableErrorReporting?: boolean;
|
|
445
468
|
internal?: boolean;
|
|
469
|
+
sideLoadedAuth0?: Pick<Auth0ContextValue, 'getTokenSilently'>;
|
|
446
470
|
}
|
|
447
471
|
|
|
448
472
|
export declare interface MapSpaceRenderOptions {
|
|
@@ -859,6 +883,8 @@ export declare class QueryClient {
|
|
|
859
883
|
export declare interface QueryClientOptions {
|
|
860
884
|
organizationId: string;
|
|
861
885
|
clientToken: string;
|
|
886
|
+
internal?: boolean;
|
|
887
|
+
sideLoadedAuth0?: Pick<Auth0ContextValue, 'getTokenSilently'>;
|
|
862
888
|
}
|
|
863
889
|
|
|
864
890
|
declare const ragScale: <C extends string>({ categories, colors, nodata, }: RAGScaleOptions<C>) => (category: C) => string;
|
|
@@ -1002,6 +1028,7 @@ export declare interface SpaceOptions {
|
|
|
1002
1028
|
disableErrorReporting?: boolean;
|
|
1003
1029
|
whiteLabel?: boolean;
|
|
1004
1030
|
internal?: boolean;
|
|
1031
|
+
sideLoadedAuth0?: Pick<Auth0ContextValue, 'getTokenSilently'>;
|
|
1005
1032
|
}
|
|
1006
1033
|
|
|
1007
1034
|
export declare interface SpaceRenderOptions {
|
|
@@ -1089,6 +1116,16 @@ declare const useEventEmitter: () => {
|
|
|
1089
1116
|
clearAllUserDefinedListeners: () => void;
|
|
1090
1117
|
};
|
|
1091
1118
|
|
|
1119
|
+
declare interface User extends Auth0UserWithClaims {
|
|
1120
|
+
sub: string
|
|
1121
|
+
name: string
|
|
1122
|
+
email: string
|
|
1123
|
+
personalOrganizationId: string
|
|
1124
|
+
smplradmin: boolean
|
|
1125
|
+
missiveDigest: string
|
|
1126
|
+
emailVerified: boolean
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1092
1129
|
declare interface Vector2Coord {
|
|
1093
1130
|
x: number;
|
|
1094
1131
|
y: number;
|
|
@@ -1098,7 +1135,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
1098
1135
|
z: number;
|
|
1099
1136
|
}
|
|
1100
1137
|
|
|
1101
|
-
export declare const version = "2.28.1-beta.
|
|
1138
|
+
export declare const version = "2.28.1-beta.19";
|
|
1102
1139
|
|
|
1103
1140
|
declare interface ViewerRendererHandle {
|
|
1104
1141
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|