@plurid/plurid-react 0.0.0-32 → 0.0.0-34
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/distribution/components/links/Link/components/Preview/index.d.ts +10 -1
- package/distribution/components/links/Link/index.d.ts +18 -1
- package/distribution/components/planes/ExternalPlane/index.d.ts +7 -1
- package/distribution/components/planes/IframePlane/index.d.ts +7 -1
- package/distribution/components/structural/Plane/components/PlaneBridge/index.d.ts +6 -1
- package/distribution/components/structural/Plane/components/PlaneControls/components/SearchItem/index.d.ts +7 -1
- package/distribution/components/structural/Plane/components/PlaneControls/components/SearchList/index.d.ts +6 -1
- package/distribution/components/structural/Plane/components/PlaneControls/index.d.ts +12 -1
- package/distribution/components/structural/Plane/components/PlaneDebugger/index.d.ts +5 -1
- package/distribution/components/structural/Plane/index.d.ts +10 -1
- package/distribution/components/structural/Root/index.d.ts +6 -1
- package/distribution/components/structural/Roots/index.d.ts +5 -1
- package/distribution/components/structural/Space/components/SpaceDebugger/index.d.ts +5 -1
- package/distribution/components/structural/Space/index.d.ts +5 -1
- package/distribution/components/utilities/ApplicationConfigurator/index.d.ts +8 -1
- package/distribution/components/utilities/NotFound/index.d.ts +5 -1
- package/distribution/components/utilities/Origin/index.d.ts +5 -1
- package/distribution/components/utilities/PlaneConfigurator/index.d.ts +8 -1
- package/distribution/components/utilities/Toolbar/General/components/Drawer/index.d.ts +9 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Global/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Shortcuts/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Space/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Technical/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Toolbar/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Transform/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Viewcube/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/MenuUniverses/index.d.ts +5 -1
- package/distribution/components/utilities/Toolbar/General/components/ToolbarRotate/index.d.ts +9 -1
- package/distribution/components/utilities/Toolbar/General/components/ToolbarScale/index.d.ts +9 -1
- package/distribution/components/utilities/Toolbar/General/components/ToolbarTranslate/index.d.ts +9 -1
- package/distribution/components/utilities/Toolbar/General/components/TransformArrow/index.d.ts +9 -1
- package/distribution/components/utilities/Toolbar/General/index.d.ts +5 -1
- package/distribution/components/utilities/UniverseExplorer/index.d.ts +5 -1
- package/distribution/components/utilities/Viewcube/components/ViewcubeFace/index.d.ts +12 -1
- package/distribution/components/utilities/Viewcube/components/ViewcubeModel/index.d.ts +6 -1
- package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/index.d.ts +5 -1
- package/distribution/components/utilities/Viewcube/index.d.ts +5 -1
- package/distribution/components/virtuals/List/index.d.ts +7 -1
- package/distribution/containers/Application/View/index.d.ts +25 -2
- package/distribution/containers/Application/index.d.ts +3 -6
- package/distribution/containers/Provider/index.d.ts +1 -1
- package/distribution/containers/RouterBrowser/index.d.ts +2 -2
- package/distribution/containers/RouterStatic/index.d.ts +2 -2
- package/distribution/index.d.ts +100 -16
- package/distribution/index.es.js +37 -42
- package/distribution/index.es.js.map +1 -1
- package/distribution/index.js +323 -350
- package/distribution/index.js.map +1 -1
- package/distribution/index.min.js +5888 -150
- package/distribution/index.min.js.map +1 -1
- package/distribution/services/logic/router/index.d.ts +3 -3
- package/distribution/services/logic/shortcuts/index.d.ts +102 -3
- package/distribution/services/state/actions/index.d.ts +14 -8
- package/distribution/services/state/modules/configuration/index.d.ts +15 -3
- package/distribution/services/state/modules/general/index.d.ts +1 -1
- package/distribution/services/state/modules/shortcuts/index.d.ts +1 -1
- package/distribution/services/state/modules/space/index.d.ts +1 -1
- package/distribution/services/state/modules/themes/index.d.ts +1 -1
- package/distribution/services/state/modules/ui/index.d.ts +1 -1
- package/package.json +38 -36
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
3
|
import { Theme } from '@plurid/plurid-themes';
|
|
3
4
|
import {
|
|
4
5
|
/** interfaces */
|
|
@@ -17,5 +18,8 @@ export interface PluridToolbarDispatchProperties {
|
|
|
17
18
|
dispatchSetConfigurationSpaceTransformMode: DispatchAction<typeof actions.configuration.setConfigurationSpaceTransformMode>;
|
|
18
19
|
}
|
|
19
20
|
export declare type PluridToolbarProperties = PluridToolbarOwnProperties & PluridToolbarStateProperties & PluridToolbarDispatchProperties;
|
|
20
|
-
declare const ConnectedPluridToolbar: import("react-redux").ConnectedComponent<React.FC<PluridToolbarProperties>,
|
|
21
|
+
declare const ConnectedPluridToolbar: import("react-redux").ConnectedComponent<React.FC<PluridToolbarProperties>, {
|
|
22
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
|
|
23
|
+
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
|
|
24
|
+
}>;
|
|
21
25
|
export default ConnectedPluridToolbar;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
3
|
import { Theme } from '@plurid/plurid-themes';
|
|
3
4
|
import {
|
|
4
5
|
/** interfaces */
|
|
@@ -12,5 +13,8 @@ export interface PluridUniverseExplorerStateProperties {
|
|
|
12
13
|
export interface PluridUniverseExplorerDispatchProperties {
|
|
13
14
|
}
|
|
14
15
|
export declare type PluridUniverseExplorerProperties = PluridUniverseExplorerOwnProperties & PluridUniverseExplorerStateProperties & PluridUniverseExplorerDispatchProperties;
|
|
15
|
-
declare const ConnectedPluridUniverseExplorer: import("react-redux").ConnectedComponent<React.FC<PluridUniverseExplorerProperties>,
|
|
16
|
+
declare const ConnectedPluridUniverseExplorer: import("react-redux").ConnectedComponent<React.FC<PluridUniverseExplorerProperties>, {
|
|
17
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
|
|
18
|
+
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
|
|
19
|
+
}>;
|
|
16
20
|
export default ConnectedPluridUniverseExplorer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
3
|
import { Theme } from '@plurid/plurid-themes';
|
|
3
4
|
import { PluridConfiguration } from '@plurid/plurid-data';
|
|
4
5
|
import actions from "../../../../../services/state/actions";
|
|
@@ -23,5 +24,15 @@ export interface PluridViewcubeFaceDispatchProperties {
|
|
|
23
24
|
dispatchSetAnimatedTransform: DispatchAction<typeof actions.space.setAnimatedTransform>;
|
|
24
25
|
}
|
|
25
26
|
export declare type PluridViewcubeFaceProperties = PluridViewcubeFaceOwnProperties & PluridViewcubeFaceStateProperties & PluridViewcubeFaceDispatchProperties;
|
|
26
|
-
declare const ConnectedPluridViewcubeFace: import("react-redux").ConnectedComponent<React.FC<PluridViewcubeFaceProperties>,
|
|
27
|
+
declare const ConnectedPluridViewcubeFace: import("react-redux").ConnectedComponent<React.FC<PluridViewcubeFaceProperties>, {
|
|
28
|
+
mouseOver: boolean;
|
|
29
|
+
face: string;
|
|
30
|
+
faceText: string;
|
|
31
|
+
hoveredZone: string;
|
|
32
|
+
setHoveredZone: React.Dispatch<React.SetStateAction<string>>;
|
|
33
|
+
activeZone: string;
|
|
34
|
+
setActiveZone: React.Dispatch<React.SetStateAction<string>>;
|
|
35
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
|
|
36
|
+
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
|
|
37
|
+
}>;
|
|
27
38
|
export default ConnectedPluridViewcubeFace;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
3
|
import { InternationalizationLanguageType } from '@plurid/plurid-data';
|
|
3
4
|
export interface PluridViewcubeModelOwnProperties {
|
|
4
5
|
mouseOver: boolean;
|
|
@@ -13,5 +14,9 @@ export interface PluridViewcubeModelStateProperties {
|
|
|
13
14
|
export interface PluridViewcubeModelDispatchProperties {
|
|
14
15
|
}
|
|
15
16
|
export declare type PluridViewcubeModelProperties = PluridViewcubeModelOwnProperties & PluridViewcubeModelStateProperties & PluridViewcubeModelDispatchProperties;
|
|
16
|
-
declare const ConnectedPluridViewcubeModel: import("react-redux").ConnectedComponent<React.FC<PluridViewcubeModelProperties>,
|
|
17
|
+
declare const ConnectedPluridViewcubeModel: import("react-redux").ConnectedComponent<React.FC<PluridViewcubeModelProperties>, {
|
|
18
|
+
mouseOver: boolean;
|
|
19
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
|
|
20
|
+
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
|
|
21
|
+
}>;
|
|
17
22
|
export default ConnectedPluridViewcubeModel;
|
package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
3
|
import { Theme } from '@plurid/plurid-themes';
|
|
3
4
|
export interface ViewcubeTransformAreasOwnProperties {
|
|
4
5
|
}
|
|
@@ -9,5 +10,8 @@ export interface ViewcubeTransformAreasStateProperties {
|
|
|
9
10
|
export interface ViewcubeTransformAreasDispatchProperties {
|
|
10
11
|
}
|
|
11
12
|
export declare type ViewcubeTransformAreasProperties = ViewcubeTransformAreasOwnProperties & ViewcubeTransformAreasStateProperties & ViewcubeTransformAreasDispatchProperties;
|
|
12
|
-
declare const ConnectedViewcubeTransformAreas: import("react-redux").ConnectedComponent<React.FC<ViewcubeTransformAreasProperties>,
|
|
13
|
+
declare const ConnectedViewcubeTransformAreas: import("react-redux").ConnectedComponent<React.FC<ViewcubeTransformAreasProperties>, {
|
|
14
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
|
|
15
|
+
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
|
|
16
|
+
}>;
|
|
13
17
|
export default ConnectedViewcubeTransformAreas;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
3
|
import { Theme } from '@plurid/plurid-themes';
|
|
3
4
|
import {
|
|
4
5
|
/** interfaces */
|
|
@@ -19,5 +20,8 @@ export interface PluridViewcubeDispatchProperties {
|
|
|
19
20
|
dispatchSpaceResetTransform: DispatchActionWithoutPayload<typeof actions.space.spaceResetTransform>;
|
|
20
21
|
}
|
|
21
22
|
export declare type PluridViewcubeProperties = PluridViewcubeOwnProperties & PluridViewcubeStateProperties & PluridViewcubeDispatchProperties;
|
|
22
|
-
declare const ConnectedPluridViewcube: import("react-redux").ConnectedComponent<React.FC<PluridViewcubeProperties>,
|
|
23
|
+
declare const ConnectedPluridViewcube: import("react-redux").ConnectedComponent<React.FC<PluridViewcubeProperties>, {
|
|
24
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
|
|
25
|
+
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
|
|
26
|
+
}>;
|
|
23
27
|
export default ConnectedPluridViewcube;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
3
|
import { ViewSize } from "../../../services/state/modules/space/types";
|
|
3
4
|
export interface PluridVirtualListOwnProperties {
|
|
4
5
|
items: JSX.Element[];
|
|
@@ -11,5 +12,10 @@ export interface PluridVirtualListStateProperties {
|
|
|
11
12
|
export interface PluridVirtualListDispatchProperties {
|
|
12
13
|
}
|
|
13
14
|
export declare type PluridVirtualListProperties = PluridVirtualListOwnProperties & PluridVirtualListStateProperties & PluridVirtualListDispatchProperties;
|
|
14
|
-
declare const ConnectedPluridVirtualList: import("react-redux").ConnectedComponent<React.FC<PluridVirtualListProperties>,
|
|
15
|
+
declare const ConnectedPluridVirtualList: import("react-redux").ConnectedComponent<React.FC<PluridVirtualListProperties>, {
|
|
16
|
+
items: JSX.Element[];
|
|
17
|
+
generalHeight?: number | undefined;
|
|
18
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
|
|
19
|
+
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
|
|
20
|
+
}>;
|
|
15
21
|
export default ConnectedPluridVirtualList;
|
|
@@ -3,7 +3,7 @@ import { AnyAction, ThunkDispatch } from '@reduxjs/toolkit';
|
|
|
3
3
|
import { Theme } from '@plurid/plurid-themes';
|
|
4
4
|
import {
|
|
5
5
|
/** interfaces */
|
|
6
|
-
PluridApplication as PluridApplicationProperties, PluridConfiguration as PluridAppConfiguration, TreePlane, SpaceTransform, PluridApplicationView } from '@plurid/plurid-data';
|
|
6
|
+
PluridApplication as PluridApplicationProperties, PluridConfiguration as PluridAppConfiguration, TreePlane, SpaceTransform, PluridPubSub as IPluridPubSub, PluridApplicationView } from '@plurid/plurid-data';
|
|
7
7
|
import { PluridReactComponent } from "../../../data/interfaces";
|
|
8
8
|
import { AppState } from "../../../services/state/store";
|
|
9
9
|
import actions from "../../../services/state/actions";
|
|
@@ -45,5 +45,28 @@ export interface PluridViewDispatchProperties {
|
|
|
45
45
|
dispatchSpaceSetView: DispatchAction<typeof actions.space.spaceSetView>;
|
|
46
46
|
}
|
|
47
47
|
export declare type PluridViewProperties = PluridViewOwnProperties & PluridViewStateProperties & PluridViewDispatchProperties;
|
|
48
|
-
declare const ConnectedPluridView: import("react-redux").ConnectedComponent<React.FC<PluridViewProperties>,
|
|
48
|
+
declare const ConnectedPluridView: import("react-redux").ConnectedComponent<React.FC<PluridViewProperties>, {
|
|
49
|
+
configuration?: import("@plurid/plurid-data").RecursivePartial<PluridAppConfiguration> | undefined;
|
|
50
|
+
space?: string | undefined;
|
|
51
|
+
view: PluridApplicationView;
|
|
52
|
+
id?: string | undefined;
|
|
53
|
+
hostname?: string | undefined;
|
|
54
|
+
planeRenderError?: boolean | PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty> | undefined;
|
|
55
|
+
planesRegistrar?: import("@plurid/plurid-data").PluridPlanesRegistrar<PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty>> | undefined;
|
|
56
|
+
planeContext?: any;
|
|
57
|
+
planeContextValue?: Record<string, any> | undefined;
|
|
58
|
+
customPlane?: PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty> | undefined;
|
|
59
|
+
matchedRoute?: import("@plurid/plurid-data").IsoMatcherRouteResult<PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty>> | undefined;
|
|
60
|
+
planesProperties?: Map<string, any> | undefined;
|
|
61
|
+
planes?: import("@plurid/plurid-data").PluridPlane<PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty>>[] | undefined;
|
|
62
|
+
centerView?: string | undefined;
|
|
63
|
+
universes?: import("@plurid/plurid-data").PluridUniverse<PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty>>[] | undefined;
|
|
64
|
+
planeNotFound?: boolean | PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty> | undefined;
|
|
65
|
+
pubsub?: IPluridPubSub | undefined;
|
|
66
|
+
static?: boolean | undefined;
|
|
67
|
+
precomputedState?: Partial<import("@plurid/plurid-data").PluridState> | undefined;
|
|
68
|
+
useLocalStorage?: boolean | undefined;
|
|
69
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
|
|
70
|
+
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
|
|
71
|
+
}>;
|
|
49
72
|
export default ConnectedPluridView;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { PluridApplication as PluridApplicationProperties } from '@plurid/plurid-data';
|
|
3
3
|
import { PluridReactComponent } from "../../data/interfaces";
|
|
4
|
-
|
|
5
|
-
declare class PluridApplication extends Component<PluridApplicationProperties<PluridReactComponent>, {}> {
|
|
6
|
-
static contextType: React.Context<import("@plurid/plurid-data").PluridMetastate | undefined>;
|
|
7
|
-
context: React.ContextType<typeof PluridProviderContext>;
|
|
4
|
+
declare class PluridApplication extends Component<PluridApplicationProperties<PluridReactComponent>> {
|
|
8
5
|
private store;
|
|
9
6
|
private storeUnubscriber;
|
|
10
7
|
private storeID;
|
|
11
8
|
private planesRegistrar;
|
|
12
|
-
constructor(properties: PluridApplicationProperties<PluridReactComponent
|
|
9
|
+
constructor(properties: PluridApplicationProperties<PluridReactComponent>);
|
|
13
10
|
componentDidUpdate(): void;
|
|
14
11
|
componentWillUnmount(): void;
|
|
15
|
-
render(): JSX.Element;
|
|
12
|
+
render(): React.JSX.Element;
|
|
16
13
|
private prepare;
|
|
17
14
|
private computeStore;
|
|
18
15
|
private subscribeStore;
|
|
@@ -7,6 +7,6 @@ declare class PluridProvider extends Component<React.PropsWithChildren<PluridPro
|
|
|
7
7
|
static displayName: string;
|
|
8
8
|
private properties;
|
|
9
9
|
constructor(properties: React.PropsWithChildren<PluridProviderProperties>);
|
|
10
|
-
render(): JSX.Element;
|
|
10
|
+
render(): React.JSX.Element;
|
|
11
11
|
}
|
|
12
12
|
export default PluridProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
/** interfaces */
|
|
4
4
|
PluridRouterProperties as PluridRouterBrowserOwnProperties } from '@plurid/plurid-data';
|
|
5
5
|
import { PluridReactComponent } from "../../data/interfaces";
|
|
6
|
-
declare const PluridRouterBrowser: (properties: PluridRouterBrowserOwnProperties<PluridReactComponent>) => JSX.Element;
|
|
6
|
+
declare const PluridRouterBrowser: (properties: PluridRouterBrowserOwnProperties<PluridReactComponent>) => React.JSX.Element;
|
|
7
7
|
export default PluridRouterBrowser;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PluridRoute, PluridRoutePlane, PluridRouterProperties } from '@plurid/plurid-data';
|
|
3
3
|
import { PluridReactComponent } from "../../data/interfaces";
|
|
4
4
|
export interface PluridRouterStaticOwnProperties {
|
|
@@ -15,5 +15,5 @@ export interface PluridRouterStaticOwnProperties {
|
|
|
15
15
|
gatewayEndpoint?: string;
|
|
16
16
|
routerProperties?: Partial<PluridRouterProperties<PluridReactComponent>>;
|
|
17
17
|
}
|
|
18
|
-
declare const PluridRouterStatic: (properties: PluridRouterStaticOwnProperties) => JSX.Element;
|
|
18
|
+
declare const PluridRouterStatic: (properties: PluridRouterStaticOwnProperties) => React.JSX.Element;
|
|
19
19
|
export default PluridRouterStatic;
|
package/distribution/index.d.ts
CHANGED
|
@@ -21,27 +21,90 @@ import { getDirectPlaneMatch } from './services/logic/router';
|
|
|
21
21
|
import { usePluridRouter } from './services/hooks';
|
|
22
22
|
declare const PluridIsoMatcher: typeof routing.IsoMatcher, PluridRouteParser: typeof routing.RouteParser;
|
|
23
23
|
declare const internals: {
|
|
24
|
-
PluridPlaneBridge: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneBridge").PluridPlaneBridgeProperties>,
|
|
24
|
+
PluridPlaneBridge: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneBridge").PluridPlaneBridgeProperties>, {
|
|
25
|
+
mouseOver: boolean;
|
|
26
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
27
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
28
|
+
}>;
|
|
25
29
|
PluridPlaneContent: import("react").FC<import("./components/structural/Plane/components/PlaneContent").PluridPlaneContentOwnProperties>;
|
|
26
|
-
PluridPlaneControls: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneControls").PluridPlaneControlsProperties>,
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
PluridPlaneControls: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneControls").PluridPlaneControlsProperties>, {
|
|
31
|
+
isolatePlane: () => void;
|
|
32
|
+
plane: import("@plurid/plurid-data").RegisteredPluridPlane<PluridReactComponent<any, PluridPlaneComponentProperty | PluridRouteComponentProperty>>;
|
|
33
|
+
mouseOver: boolean;
|
|
34
|
+
refreshing: boolean;
|
|
35
|
+
refreshPlane: () => void;
|
|
36
|
+
treePlane: import("@plurid/plurid-data").TreePlane;
|
|
37
|
+
parentTreePlane: import("@plurid/plurid-data").TreePlane | undefined;
|
|
38
|
+
closePlane: () => void;
|
|
39
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
40
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
PluridPlaneDebugger: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneDebugger").PluridPlaneDebuggerOwnProperties & import("./components/structural/Plane/components/PlaneDebugger").PluridPlaneDebuggerStateProperties & import("./components/structural/Plane/components/PlaneDebugger").PluridPlaneDebuggerDispatchProperties>, {
|
|
43
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
44
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
PluridSpaceDebugger: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Space/components/SpaceDebugger").PluridSpaceDebuggerProperties>, {
|
|
47
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
48
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
49
|
+
}>;
|
|
29
50
|
};
|
|
30
51
|
/**
|
|
31
52
|
* Components and utilities.
|
|
32
53
|
*/
|
|
33
54
|
declare const Plurid: {
|
|
34
55
|
Application: typeof PluridApplication;
|
|
35
|
-
RouterStatic: (properties: import("./containers/RouterStatic").PluridRouterStaticOwnProperties) => JSX.Element;
|
|
36
|
-
RouterBrowser: (properties: PluridRouterProperties<PluridReactComponent<any, PluridPlaneComponentProperty | PluridRouteComponentProperty>>) => JSX.Element;
|
|
56
|
+
RouterStatic: (properties: import("./containers/RouterStatic").PluridRouterStaticOwnProperties) => import("react").JSX.Element;
|
|
57
|
+
RouterBrowser: (properties: PluridRouterProperties<PluridReactComponent<any, PluridPlaneComponentProperty | PluridRouteComponentProperty>>) => import("react").JSX.Element;
|
|
37
58
|
Provider: typeof PluridProvider;
|
|
38
|
-
Link: import("react-redux").ConnectedComponent<import("react").FC<import("react").PropsWithChildren<import("./components/links/Link").PluridLinkProperties>>,
|
|
59
|
+
Link: import("react-redux").ConnectedComponent<import("react").FC<import("react").PropsWithChildren<import("./components/links/Link").PluridLinkProperties>>, {
|
|
60
|
+
route: string;
|
|
61
|
+
children?: import("react").ReactNode;
|
|
62
|
+
style?: import("react").CSSProperties | undefined;
|
|
63
|
+
suffix?: string | undefined;
|
|
64
|
+
preview?: boolean | undefined;
|
|
65
|
+
className?: string | undefined;
|
|
66
|
+
atClick?: ((event?: MouseEvent | import("react").MouseEvent<Element, MouseEvent> | undefined) => void) | undefined;
|
|
67
|
+
previewOffsetX?: number | undefined;
|
|
68
|
+
previewOffsetY?: number | undefined;
|
|
69
|
+
previewComponent?: PluridReactComponent<any, PluridPlaneComponentProperty | PluridRouteComponentProperty> | undefined;
|
|
70
|
+
devisible?: boolean | undefined;
|
|
71
|
+
notFound?: boolean | PluridReactComponent<any, PluridPlaneComponentProperty | PluridRouteComponentProperty> | undefined;
|
|
72
|
+
previewFadeIn?: number | undefined;
|
|
73
|
+
previewFadeOut?: number | undefined;
|
|
74
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
75
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
76
|
+
}>;
|
|
39
77
|
RouterLink: import("react").FC<import("./components/links/RouterLink").PluridRouterLinkOwnProperties>;
|
|
40
|
-
ApplicationConfigurator: import("react-redux").ConnectedComponent<import("react").FC<import("react").PropsWithChildren<import("./components/utilities/ApplicationConfigurator").PluridApplicationConfiguratorProperties>>,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
78
|
+
ApplicationConfigurator: import("react-redux").ConnectedComponent<import("react").FC<import("react").PropsWithChildren<import("./components/utilities/ApplicationConfigurator").PluridApplicationConfiguratorProperties>>, {
|
|
79
|
+
configuration?: RecursivePartial<PluridConfiguration> | undefined;
|
|
80
|
+
children?: import("react").ReactNode;
|
|
81
|
+
pubsub?: PluridPubSub | undefined;
|
|
82
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
83
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
PlaneConfigurator: import("react-redux").ConnectedComponent<import("react").FC<import("react").PropsWithChildren<import("./components/utilities/PlaneConfigurator").PluridPlaneConfiguratorProperties>>, {
|
|
86
|
+
children?: import("react").ReactNode;
|
|
87
|
+
theme: "night" | "dusk" | "dawn" | "light" | "ponton" | "jaune" | "furor" | "deback" | "decode" | "defile" | "deform" | "delook" | "deloss" | "demail" | "demand" | "denote" | "depack" | "depict" | "deself" | "desite" | "detime" | "detour" | "detune" | "deturn" | "deveil" | "devert" | "deview" | "dewiki" | "plurid";
|
|
88
|
+
style: import("react").CSSProperties;
|
|
89
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
90
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
ExternalPlane: import("react-redux").ConnectedComponent<import("./data/interfaces").PluridReactFunctionalComponent<import("./components/planes/ExternalPlane").ExternalPlaneProperties, PluridRouteComponentProperty>, {
|
|
93
|
+
plurid: PluridRouteComponentProperty;
|
|
94
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
95
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
IframePlane: import("react-redux").ConnectedComponent<import("./data/interfaces").PluridReactFunctionalComponent<import("./components/planes/IframePlane").IframePlaneProperties, PluridRouteComponentProperty>, {
|
|
98
|
+
plurid: PluridRouteComponentProperty;
|
|
99
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
100
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
VirtualList: import("react-redux").ConnectedComponent<import("react").FC<import("./components/virtuals/List").PluridVirtualListProperties>, {
|
|
103
|
+
items: JSX.Element[];
|
|
104
|
+
generalHeight?: number | undefined;
|
|
105
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
106
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
107
|
+
}>;
|
|
45
108
|
/** Enumerations */
|
|
46
109
|
SPACE_LAYOUT: typeof SPACE_LAYOUT;
|
|
47
110
|
SIZES: typeof SIZES;
|
|
@@ -92,11 +155,32 @@ declare const Plurid: {
|
|
|
92
155
|
IsoMatcher: typeof routing.IsoMatcher;
|
|
93
156
|
routerNavigate: (path: string) => void;
|
|
94
157
|
internals: {
|
|
95
|
-
PluridPlaneBridge: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneBridge").PluridPlaneBridgeProperties>,
|
|
158
|
+
PluridPlaneBridge: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneBridge").PluridPlaneBridgeProperties>, {
|
|
159
|
+
mouseOver: boolean;
|
|
160
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
161
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
162
|
+
}>;
|
|
96
163
|
PluridPlaneContent: import("react").FC<import("./components/structural/Plane/components/PlaneContent").PluridPlaneContentOwnProperties>;
|
|
97
|
-
PluridPlaneControls: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneControls").PluridPlaneControlsProperties>,
|
|
98
|
-
|
|
99
|
-
|
|
164
|
+
PluridPlaneControls: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneControls").PluridPlaneControlsProperties>, {
|
|
165
|
+
isolatePlane: () => void;
|
|
166
|
+
plane: import("@plurid/plurid-data").RegisteredPluridPlane<PluridReactComponent<any, PluridPlaneComponentProperty | PluridRouteComponentProperty>>;
|
|
167
|
+
mouseOver: boolean;
|
|
168
|
+
refreshing: boolean;
|
|
169
|
+
refreshPlane: () => void;
|
|
170
|
+
treePlane: import("@plurid/plurid-data").TreePlane;
|
|
171
|
+
parentTreePlane: import("@plurid/plurid-data").TreePlane | undefined;
|
|
172
|
+
closePlane: () => void;
|
|
173
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
174
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
PluridPlaneDebugger: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Plane/components/PlaneDebugger").PluridPlaneDebuggerOwnProperties & import("./components/structural/Plane/components/PlaneDebugger").PluridPlaneDebuggerStateProperties & import("./components/structural/Plane/components/PlaneDebugger").PluridPlaneDebuggerDispatchProperties>, {
|
|
177
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
178
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
PluridSpaceDebugger: import("react-redux").ConnectedComponent<import("react").FC<import("./components/structural/Space/components/SpaceDebugger").PluridSpaceDebuggerProperties>, {
|
|
181
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").AnyAction>> | undefined;
|
|
182
|
+
store?: import("@reduxjs/toolkit").Store<any, import("@reduxjs/toolkit").AnyAction> | undefined;
|
|
183
|
+
}>;
|
|
100
184
|
};
|
|
101
185
|
};
|
|
102
186
|
declare type PluridRouterPartialProperties = Partial<PluridRouterProperties<PluridReactComponent>>;
|
package/distribution/index.es.js
CHANGED
|
@@ -34,17 +34,13 @@ import fetch from "cross-fetch";
|
|
|
34
34
|
|
|
35
35
|
import { ElementQLClient } from "@plurid/elementql-client-react";
|
|
36
36
|
|
|
37
|
-
const PluridContext = React.createContext(undefined);
|
|
38
|
-
|
|
39
37
|
const initialState$5 = Object.assign({}, defaultConfiguration);
|
|
40
38
|
|
|
41
39
|
const configuration = createSlice({
|
|
42
40
|
name: "configuration",
|
|
43
41
|
initialState: initialState$5,
|
|
44
42
|
reducers: {
|
|
45
|
-
setConfiguration: (
|
|
46
|
-
state = Object.assign(Object.assign({}, state), action.payload);
|
|
47
|
-
},
|
|
43
|
+
setConfiguration: (_state, action) => Object.assign({}, action.payload),
|
|
48
44
|
setConfigurationMicro: state => {
|
|
49
45
|
state.elements.toolbar.show = false;
|
|
50
46
|
state.elements.plane.controls.show = false;
|
|
@@ -168,11 +164,11 @@ const reducer$6 = configuration.reducer;
|
|
|
168
164
|
|
|
169
165
|
var configuration$1 = Object.freeze({
|
|
170
166
|
__proto__: null,
|
|
171
|
-
configuration: configuration,
|
|
172
167
|
actions: actions$6,
|
|
168
|
+
configuration: configuration,
|
|
173
169
|
getConfiguration: getConfiguration,
|
|
174
|
-
|
|
175
|
-
|
|
170
|
+
reducer: reducer$6,
|
|
171
|
+
selectors: selectors$6
|
|
176
172
|
});
|
|
177
173
|
|
|
178
174
|
const initialState$4 = {};
|
|
@@ -195,11 +191,11 @@ const reducer$5 = general.reducer;
|
|
|
195
191
|
|
|
196
192
|
var general$1 = Object.freeze({
|
|
197
193
|
__proto__: null,
|
|
198
|
-
general: general,
|
|
199
194
|
actions: actions$5,
|
|
195
|
+
general: general,
|
|
200
196
|
getGeneral: getGeneral,
|
|
201
|
-
|
|
202
|
-
|
|
197
|
+
reducer: reducer$5,
|
|
198
|
+
selectors: selectors$5
|
|
203
199
|
});
|
|
204
200
|
|
|
205
201
|
const initialState$3 = {
|
|
@@ -228,11 +224,11 @@ const reducer$4 = shortcuts.reducer;
|
|
|
228
224
|
|
|
229
225
|
var shortcuts$1 = Object.freeze({
|
|
230
226
|
__proto__: null,
|
|
231
|
-
shortcuts: shortcuts,
|
|
232
227
|
actions: actions$4,
|
|
233
228
|
getGlobal: getGlobal,
|
|
229
|
+
reducer: reducer$4,
|
|
234
230
|
selectors: selectors$4,
|
|
235
|
-
|
|
231
|
+
shortcuts: shortcuts
|
|
236
232
|
});
|
|
237
233
|
|
|
238
234
|
const {registerPlanes: registerPlanes, getRegisteredPlanes: getRegisteredPlanes, getPlanesRegistrar: getPlanesRegistrar, getPluridPlaneIDByData: getPluridPlaneIDByData$1, getRegisteredPlane: getRegisteredPlane, resolvePluridRoutePlaneData: resolvePluridRoutePlaneData, resolvePluridPlaneData: resolvePluridPlaneData, Registrar: PluridPlanesRegistrar} = planes;
|
|
@@ -319,27 +315,27 @@ const getLastClosedPlane = state => state.space.lastClosedPlane;
|
|
|
319
315
|
|
|
320
316
|
var selectors$3 = Object.freeze({
|
|
321
317
|
__proto__: null,
|
|
322
|
-
|
|
318
|
+
getActivePlaneID: getActivePlaneID,
|
|
319
|
+
getActiveUniverseID: getActiveUniverseID,
|
|
320
|
+
getAnimatedTransform: getAnimatedTransform,
|
|
321
|
+
getCulledView: getCulledView,
|
|
322
|
+
getIsolatePlane: getIsolatePlane,
|
|
323
|
+
getLastClosedPlane: getLastClosedPlane,
|
|
323
324
|
getLoading: getLoading,
|
|
324
325
|
getResolvedLayout: getResolvedLayout,
|
|
325
|
-
getTransformMatrix: getTransformMatrix,
|
|
326
|
-
getAnimatedTransform: getAnimatedTransform,
|
|
327
|
-
getTransformTime: getTransformTime,
|
|
328
326
|
getRotationX: getRotationX,
|
|
329
327
|
getRotationY: getRotationY,
|
|
328
|
+
getScale: getScale,
|
|
329
|
+
getSpace: getSpace,
|
|
330
|
+
getTransform: getTransform,
|
|
331
|
+
getTransformMatrix: getTransformMatrix,
|
|
332
|
+
getTransformTime: getTransformTime,
|
|
330
333
|
getTranslationX: getTranslationX,
|
|
331
334
|
getTranslationY: getTranslationY,
|
|
332
335
|
getTranslationZ: getTranslationZ,
|
|
333
|
-
getScale: getScale,
|
|
334
336
|
getTree: getTree,
|
|
335
|
-
getTransform: getTransform,
|
|
336
|
-
getActiveUniverseID: getActiveUniverseID,
|
|
337
337
|
getView: getView,
|
|
338
|
-
getViewSize: getViewSize
|
|
339
|
-
getCulledView: getCulledView,
|
|
340
|
-
getActivePlaneID: getActivePlaneID,
|
|
341
|
-
getIsolatePlane: getIsolatePlane,
|
|
342
|
-
getLastClosedPlane: getLastClosedPlane
|
|
338
|
+
getViewSize: getViewSize
|
|
343
339
|
});
|
|
344
340
|
|
|
345
341
|
const {toRadians: toRadians} = mathematics.geometry;
|
|
@@ -616,11 +612,11 @@ const reducer$3 = space.reducer;
|
|
|
616
612
|
|
|
617
613
|
var space$1 = Object.freeze({
|
|
618
614
|
__proto__: null,
|
|
619
|
-
name: name,
|
|
620
|
-
space: space,
|
|
621
615
|
actions: actions$3,
|
|
616
|
+
name: name,
|
|
617
|
+
reducer: reducer$3,
|
|
622
618
|
selectors: selectors$3,
|
|
623
|
-
|
|
619
|
+
space: space
|
|
624
620
|
});
|
|
625
621
|
|
|
626
622
|
const initialState$1 = {
|
|
@@ -656,12 +652,12 @@ const reducer$2 = themes.reducer;
|
|
|
656
652
|
|
|
657
653
|
var themes$1 = Object.freeze({
|
|
658
654
|
__proto__: null,
|
|
659
|
-
themes: themes,
|
|
660
655
|
actions: actions$2,
|
|
661
656
|
getGeneralTheme: getGeneralTheme,
|
|
662
657
|
getInteractionTheme: getInteractionTheme,
|
|
658
|
+
reducer: reducer$2,
|
|
663
659
|
selectors: selectors$2,
|
|
664
|
-
|
|
660
|
+
themes: themes
|
|
665
661
|
});
|
|
666
662
|
|
|
667
663
|
const initialState = {
|
|
@@ -690,11 +686,11 @@ const reducer$1 = ui.reducer;
|
|
|
690
686
|
|
|
691
687
|
var ui$1 = Object.freeze({
|
|
692
688
|
__proto__: null,
|
|
693
|
-
ui: ui,
|
|
694
689
|
actions: actions$1,
|
|
695
690
|
getToolbarScrollPosition: getToolbarScrollPosition,
|
|
691
|
+
reducer: reducer$1,
|
|
696
692
|
selectors: selectors$1,
|
|
697
|
-
|
|
693
|
+
ui: ui
|
|
698
694
|
});
|
|
699
695
|
|
|
700
696
|
var modules = {
|
|
@@ -4350,7 +4346,7 @@ const PluridView = properties => {
|
|
|
4350
4346
|
dispatchSetTree(computedTree);
|
|
4351
4347
|
};
|
|
4352
4348
|
const treeUpdateCallback = useCallback((() => {
|
|
4353
|
-
treeUpdate(stateSpaceView, stateConfiguration);
|
|
4349
|
+
treeUpdate(stateSpaceView, stateConfiguration, true);
|
|
4354
4350
|
}), [ hostname, stateSpaceView, stateConfiguration, JSON.stringify(stateTree) ]);
|
|
4355
4351
|
const handlePubSubSubscribe = pubsub => {
|
|
4356
4352
|
const subscriptions = [ {
|
|
@@ -4454,14 +4450,14 @@ const PluridView = properties => {
|
|
|
4454
4450
|
const {plane: plane} = data;
|
|
4455
4451
|
const updatedView = [ ...stateSpaceView, plane ];
|
|
4456
4452
|
dispatchSpaceSetView(updatedView);
|
|
4457
|
-
treeUpdate(updatedView);
|
|
4453
|
+
treeUpdate(updatedView, undefined, true);
|
|
4458
4454
|
}
|
|
4459
4455
|
}, {
|
|
4460
4456
|
topic: PLURID_PUBSUB_TOPIC.VIEW_SET_PLANES,
|
|
4461
4457
|
callback: data => {
|
|
4462
4458
|
const {view: view} = data;
|
|
4463
4459
|
dispatchSpaceSetView([ ...view ]);
|
|
4464
|
-
treeUpdate(view);
|
|
4460
|
+
treeUpdate(view, undefined, true);
|
|
4465
4461
|
}
|
|
4466
4462
|
}, {
|
|
4467
4463
|
topic: PLURID_PUBSUB_TOPIC.VIEW_REMOVE_PLANE,
|
|
@@ -4761,7 +4757,7 @@ const PluridView = properties => {
|
|
|
4761
4757
|
return () => {
|
|
4762
4758
|
window.removeEventListener("resize", treeUpdateCallback);
|
|
4763
4759
|
};
|
|
4764
|
-
}), [ stateSpaceView, stateConfiguration, JSON.stringify(stateTree) ]);
|
|
4760
|
+
}), [ stateSpaceView, JSON.stringify(stateConfiguration), JSON.stringify(stateTree) ]);
|
|
4765
4761
|
useEffect((() => {
|
|
4766
4762
|
if (typeof window === "undefined") {
|
|
4767
4763
|
return;
|
|
@@ -4842,12 +4838,12 @@ const PluridView = properties => {
|
|
|
4842
4838
|
unsubscriber();
|
|
4843
4839
|
}
|
|
4844
4840
|
};
|
|
4845
|
-
}), [ state.space.lastClosedPlane, pluridPubSub.length, JSON.stringify(stateTree) ]);
|
|
4841
|
+
}), [ state.space.lastClosedPlane, pluridPubSub.length, JSON.stringify(stateTree), JSON.stringify(stateConfiguration) ]);
|
|
4846
4842
|
useEffect((() => {
|
|
4847
4843
|
for (const pubsub of pluridPubSub) {
|
|
4848
4844
|
handlePubSubPublish(pubsub);
|
|
4849
4845
|
}
|
|
4850
|
-
}), [ pluridPubSub.length, stateConfiguration, stateTransform ]);
|
|
4846
|
+
}), [ pluridPubSub.length, JSON.stringify(stateConfiguration), stateTransform ]);
|
|
4851
4847
|
useEffect((() => {
|
|
4852
4848
|
treeUpdateCallback();
|
|
4853
4849
|
}), []);
|
|
@@ -4926,10 +4922,9 @@ const ConnectedPluridView = connect(mapStateToProperties$7, mapDispatchToPropert
|
|
|
4926
4922
|
})(PluridView);
|
|
4927
4923
|
|
|
4928
4924
|
class PluridApplication extends Component {
|
|
4929
|
-
constructor(properties
|
|
4925
|
+
constructor(properties) {
|
|
4930
4926
|
super(properties);
|
|
4931
4927
|
this.storeID = properties.id || "default";
|
|
4932
|
-
this.context = context;
|
|
4933
4928
|
this.prepare();
|
|
4934
4929
|
this.store = store(this.computeStore());
|
|
4935
4930
|
this.subscribeStore();
|
|
@@ -4984,8 +4979,6 @@ class PluridApplication extends Component {
|
|
|
4984
4979
|
}
|
|
4985
4980
|
}
|
|
4986
4981
|
|
|
4987
|
-
PluridApplication.contextType = PluridContext;
|
|
4988
|
-
|
|
4989
4982
|
const StyledSpaces = styled.div`
|
|
4990
4983
|
scroll-snap-type: ${properties => {
|
|
4991
4984
|
const {alignment: alignment, snapType: snapType} = properties;
|
|
@@ -5577,6 +5570,8 @@ const PluridRouterStatic = properties => {
|
|
|
5577
5570
|
}, routerProperties));
|
|
5578
5571
|
};
|
|
5579
5572
|
|
|
5573
|
+
const PluridContext = React.createContext(undefined);
|
|
5574
|
+
|
|
5580
5575
|
class PluridProvider extends Component {
|
|
5581
5576
|
constructor(properties) {
|
|
5582
5577
|
super(properties);
|