@plurid/plurid-react 0.0.0-34 → 0.0.0-36
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/README.md +42 -90
- package/distribution/index.d.mts +1500 -0
- package/distribution/index.d.ts +1405 -107
- package/distribution/index.js +10350 -5678
- package/distribution/index.js.map +1 -1
- package/distribution/index.mjs +11228 -0
- package/distribution/index.mjs.map +1 -0
- package/package.json +113 -121
- package/distribution/components/links/Link/components/Preview/index.d.ts +0 -28
- package/distribution/components/links/Link/components/Preview/styled.d.ts +0 -7
- package/distribution/components/links/Link/index.d.ts +0 -42
- package/distribution/components/links/Link/styled.d.ts +0 -7
- package/distribution/components/links/RouterLink/index.d.ts +0 -20
- package/distribution/components/links/RouterLink/styled.d.ts +0 -6
- package/distribution/components/planes/ExternalPlane/index.d.ts +0 -20
- package/distribution/components/planes/ExternalPlane/styled.d.ts +0 -5
- package/distribution/components/planes/IframePlane/index.d.ts +0 -20
- package/distribution/components/planes/IframePlane/styled.d.ts +0 -5
- package/distribution/components/structural/Plane/components/PlaneBridge/index.d.ts +0 -22
- package/distribution/components/structural/Plane/components/PlaneBridge/styled.d.ts +0 -9
- package/distribution/components/structural/Plane/components/PlaneContent/index.d.ts +0 -6
- package/distribution/components/structural/Plane/components/PlaneContent/styled.d.ts +0 -1
- package/distribution/components/structural/Plane/components/PlaneControls/components/ControlIsolate/index.d.ts +0 -9
- package/distribution/components/structural/Plane/components/PlaneControls/components/ControlRefresh/index.d.ts +0 -9
- package/distribution/components/structural/Plane/components/PlaneControls/components/SearchItem/index.d.ts +0 -25
- package/distribution/components/structural/Plane/components/PlaneControls/components/SearchItem/styled.d.ts +0 -1
- package/distribution/components/structural/Plane/components/PlaneControls/components/SearchList/index.d.ts +0 -23
- package/distribution/components/structural/Plane/components/PlaneControls/components/SearchList/styled.d.ts +0 -2
- package/distribution/components/structural/Plane/components/PlaneControls/index.d.ts +0 -40
- package/distribution/components/structural/Plane/components/PlaneControls/styled.d.ts +0 -11
- package/distribution/components/structural/Plane/components/PlaneDebugger/index.d.ts +0 -17
- package/distribution/components/structural/Plane/components/PlaneDebugger/styled.d.ts +0 -1
- package/distribution/components/structural/Plane/index.d.ts +0 -36
- package/distribution/components/structural/Plane/styled.d.ts +0 -11
- package/distribution/components/structural/Root/index.d.ts +0 -20
- package/distribution/components/structural/Root/styled.d.ts +0 -1
- package/distribution/components/structural/Roots/index.d.ts +0 -23
- package/distribution/components/structural/Roots/styled.d.ts +0 -3
- package/distribution/components/structural/Space/components/SpaceDebugger/index.d.ts +0 -17
- package/distribution/components/structural/Space/components/SpaceDebugger/styled.d.ts +0 -1
- package/distribution/components/structural/Space/index.d.ts +0 -19
- package/distribution/components/structural/Space/styled.d.ts +0 -8
- package/distribution/components/utilities/ApplicationConfigurator/index.d.ts +0 -25
- package/distribution/components/utilities/ApplicationConfigurator/styled.d.ts +0 -1
- package/distribution/components/utilities/ErrorBoundary/index.d.ts +0 -18
- package/distribution/components/utilities/NotFound/index.d.ts +0 -17
- package/distribution/components/utilities/NotFound/styled.d.ts +0 -1
- package/distribution/components/utilities/Origin/index.d.ts +0 -19
- package/distribution/components/utilities/Origin/styled.d.ts +0 -7
- package/distribution/components/utilities/PlaneConfigurator/index.d.ts +0 -20
- package/distribution/components/utilities/PlaneConfigurator/styled.d.ts +0 -1
- package/distribution/components/utilities/Portal/index.d.ts +0 -15
- package/distribution/components/utilities/Toolbar/Button/index.d.ts +0 -15
- package/distribution/components/utilities/Toolbar/Button/styled.d.ts +0 -13
- package/distribution/components/utilities/Toolbar/General/components/Drawer/index.d.ts +0 -26
- package/distribution/components/utilities/Toolbar/General/components/Drawer/styled.d.ts +0 -3
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Global/index.d.ts +0 -26
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Shortcuts/index.d.ts +0 -18
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Space/index.d.ts +0 -25
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Technical/index.d.ts +0 -22
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Toolbar/index.d.ts +0 -27
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Transform/index.d.ts +0 -24
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Viewcube/index.d.ts +0 -25
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/data.d.ts +0 -9
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/index.d.ts +0 -26
- package/distribution/components/utilities/Toolbar/General/components/MenuMore/styled.d.ts +0 -3
- package/distribution/components/utilities/Toolbar/General/components/MenuUniverses/index.d.ts +0 -20
- package/distribution/components/utilities/Toolbar/General/components/MenuUniverses/styled.d.ts +0 -4
- package/distribution/components/utilities/Toolbar/General/components/ToolbarRotate/index.d.ts +0 -32
- package/distribution/components/utilities/Toolbar/General/components/ToolbarRotate/styled.d.ts +0 -1
- package/distribution/components/utilities/Toolbar/General/components/ToolbarScale/index.d.ts +0 -30
- package/distribution/components/utilities/Toolbar/General/components/ToolbarScale/styled.d.ts +0 -1
- package/distribution/components/utilities/Toolbar/General/components/ToolbarTranslate/index.d.ts +0 -34
- package/distribution/components/utilities/Toolbar/General/components/ToolbarTranslate/styled.d.ts +0 -1
- package/distribution/components/utilities/Toolbar/General/components/TransformArrow/data.d.ts +0 -7
- package/distribution/components/utilities/Toolbar/General/components/TransformArrow/index.d.ts +0 -24
- package/distribution/components/utilities/Toolbar/General/components/TransformArrow/styled.d.ts +0 -6
- package/distribution/components/utilities/Toolbar/General/data.d.ts +0 -6
- package/distribution/components/utilities/Toolbar/General/index.d.ts +0 -25
- package/distribution/components/utilities/Toolbar/General/styled.d.ts +0 -29
- package/distribution/components/utilities/UniverseExplorer/index.d.ts +0 -20
- package/distribution/components/utilities/UniverseExplorer/styled.d.ts +0 -2
- package/distribution/components/utilities/Viewcube/components/ViewcubeFace/data.d.ts +0 -391
- package/distribution/components/utilities/Viewcube/components/ViewcubeFace/index.d.ts +0 -38
- package/distribution/components/utilities/Viewcube/components/ViewcubeFace/styled.d.ts +0 -16
- package/distribution/components/utilities/Viewcube/components/ViewcubeModel/index.d.ts +0 -22
- package/distribution/components/utilities/Viewcube/components/ViewcubeModel/styled.d.ts +0 -3
- package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/TransformArea/data.d.ts +0 -5
- package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/TransformArea/index.d.ts +0 -11
- package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/TransformArea/styled.d.ts +0 -17
- package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/index.d.ts +0 -17
- package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/styled.d.ts +0 -13
- package/distribution/components/utilities/Viewcube/index.d.ts +0 -27
- package/distribution/components/utilities/Viewcube/styled.d.ts +0 -19
- package/distribution/components/virtuals/List/components/ListItem/index.d.ts +0 -9
- package/distribution/components/virtuals/List/index.d.ts +0 -21
- package/distribution/components/virtuals/List/styled.d.ts +0 -1
- package/distribution/containers/Application/View/Container/index.d.ts +0 -5
- package/distribution/containers/Application/View/index.d.ts +0 -72
- package/distribution/containers/Application/View/styled.d.ts +0 -8
- package/distribution/containers/Application/index.d.ts +0 -17
- package/distribution/containers/Provider/context.d.ts +0 -4
- package/distribution/containers/Provider/index.d.ts +0 -12
- package/distribution/containers/RouterBrowser/FadeIn/index.d.ts +0 -6
- package/distribution/containers/RouterBrowser/FadeIn/styled.d.ts +0 -3
- package/distribution/containers/RouterBrowser/index.d.ts +0 -7
- package/distribution/containers/RouterBrowser/styled.d.ts +0 -1
- package/distribution/containers/RouterStatic/index.d.ts +0 -19
- package/distribution/data/constants/index.d.ts +0 -3
- package/distribution/data/interfaces/index.d.ts +0 -20
- package/distribution/data/interfaces/utility.d.ts +0 -3
- package/distribution/index.es.js +0 -6520
- package/distribution/index.es.js.map +0 -1
- package/distribution/index.min.js +0 -6306
- package/distribution/index.min.js.map +0 -1
- package/distribution/services/context/index.d.ts +0 -5
- package/distribution/services/engine/index.d.ts +0 -22
- package/distribution/services/hooks/event/index.d.ts +0 -4
- package/distribution/services/hooks/index.d.ts +0 -2
- package/distribution/services/hooks/router/index.d.ts +0 -1
- package/distribution/services/logic/animation/index.d.ts +0 -16
- package/distribution/services/logic/computing/index.d.ts +0 -17
- package/distribution/services/logic/router/index.d.ts +0 -40
- package/distribution/services/logic/router/styled.d.ts +0 -5
- package/distribution/services/logic/server/index.d.ts +0 -3
- package/distribution/services/logic/shortcuts/index.d.ts +0 -114
- package/distribution/services/logic/shortcuts/logic.d.ts +0 -6
- package/distribution/services/logic/state/index.d.ts +0 -3
- package/distribution/services/logic/transform/index.d.ts +0 -3
- package/distribution/services/state/actions/index.d.ts +0 -258
- package/distribution/services/state/context/index.d.ts +0 -3
- package/distribution/services/state/hooks/index.d.ts +0 -4
- package/distribution/services/state/modules/configuration/index.d.ts +0 -78
- package/distribution/services/state/modules/general/index.d.ts +0 -10
- package/distribution/services/state/modules/index.d.ts +0 -16
- package/distribution/services/state/modules/shortcuts/index.d.ts +0 -16
- package/distribution/services/state/modules/space/index.d.ts +0 -151
- package/distribution/services/state/modules/space/selectors.d.ts +0 -23
- package/distribution/services/state/modules/space/types.d.ts +0 -41
- package/distribution/services/state/modules/themes/index.d.ts +0 -22
- package/distribution/services/state/modules/ui/index.d.ts +0 -16
- package/distribution/services/state/selectors/index.d.ts +0 -62
- package/distribution/services/state/store/development/index.d.ts +0 -5
- package/distribution/services/state/store/index.d.ts +0 -23
- package/distribution/services/state/store/production/index.d.ts +0 -5
- package/distribution/services/state/store/reducer/index.d.ts +0 -10
- package/distribution/services/styled/index.d.ts +0 -2
- package/distribution/services/utilities/environment/index.d.ts +0 -7
- package/distribution/services/utilities/imports/index.d.ts +0 -49
- package/distribution/services/utilities/react/index.d.ts +0 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<a target="_blank" href="https://www.npmjs.com/package/@plurid/plurid-react">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@plurid/plurid-react.svg?logo=npm&colorB=1380C3&style=for-the-badge" alt="Version">
|
|
7
7
|
</a>
|
|
8
|
-
<a target="_blank" href="https://github.com/plurid/plurid
|
|
8
|
+
<a target="_blank" href="https://github.com/plurid/plurid/blob/master/LICENSE">
|
|
9
9
|
<img src="https://img.shields.io/badge/license-DEL-blue.svg?colorB=1380C3&style=for-the-badge" alt="License: DEL">
|
|
10
10
|
</a>
|
|
11
11
|
</p>
|
|
@@ -17,144 +17,96 @@
|
|
|
17
17
|
</h1>
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<p align="center">
|
|
24
|
-
<img src="https://raw.githubusercontent.com/plurid/plurid/master/about/demo/plurid-com-example.png" height="600px">
|
|
25
|
-
</p>
|
|
20
|
+
The **React** render adapter for [plurid'](https://github.com/plurid/plurid) — render content as **planes**
|
|
21
|
+
in a navigable **3D space**. A plane is a component; the space is a CSS-3D scene you orbit, pan, and zoom.
|
|
26
22
|
|
|
27
23
|
|
|
28
24
|
|
|
29
25
|
# Install
|
|
30
26
|
|
|
31
|
-
The
|
|
27
|
+
The quickest way to a batteries-included app is the scaffolder:
|
|
32
28
|
|
|
33
29
|
``` bash
|
|
34
30
|
npx @plurid/generate-plurid-app
|
|
35
31
|
```
|
|
36
32
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
``` bash
|
|
40
|
-
npm install @plurid/plurid-react
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
or
|
|
44
|
-
|
|
45
|
-
``` bash
|
|
46
|
-
yarn add @plurid/plurid-react
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
add the peer dependencies
|
|
33
|
+
To add plurid' to an existing **React 19** app, install the adapter with its `@plurid/*` and library peers:
|
|
51
34
|
|
|
52
35
|
``` bash
|
|
53
36
|
npm install \
|
|
54
|
-
@plurid/
|
|
55
|
-
@plurid/elementql-client-react \
|
|
37
|
+
@plurid/plurid-react \
|
|
56
38
|
@plurid/plurid-data \
|
|
57
39
|
@plurid/plurid-engine \
|
|
40
|
+
@plurid/plurid-pubsub \
|
|
58
41
|
@plurid/plurid-functions \
|
|
59
42
|
@plurid/plurid-functions-react \
|
|
60
43
|
@plurid/plurid-icons-react \
|
|
61
|
-
@plurid/plurid-pubsub \
|
|
62
44
|
@plurid/plurid-themes \
|
|
63
45
|
@plurid/plurid-ui-components-react \
|
|
64
46
|
@plurid/plurid-ui-state-react \
|
|
65
|
-
@reduxjs/toolkit \
|
|
66
|
-
cross-fetch \
|
|
67
|
-
hammerjs \
|
|
68
|
-
react \
|
|
69
|
-
react-dom \
|
|
70
|
-
react-redux \
|
|
71
|
-
styled-components
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
or
|
|
75
|
-
|
|
76
|
-
``` bash
|
|
77
|
-
yarn add \
|
|
78
47
|
@plurid/elementql \
|
|
79
48
|
@plurid/elementql-client-react \
|
|
80
|
-
@plurid/plurid-data \
|
|
81
|
-
@plurid/plurid-engine \
|
|
82
|
-
@plurid/plurid-functions \
|
|
83
|
-
@plurid/plurid-functions-react \
|
|
84
|
-
@plurid/plurid-icons-react \
|
|
85
|
-
@plurid/plurid-pubsub \
|
|
86
|
-
@plurid/plurid-themes \
|
|
87
|
-
@plurid/plurid-ui-components-react \
|
|
88
|
-
@plurid/plurid-ui-state-react \
|
|
89
49
|
@reduxjs/toolkit \
|
|
90
|
-
|
|
91
|
-
hammerjs \
|
|
50
|
+
react-redux \
|
|
92
51
|
react \
|
|
93
52
|
react-dom \
|
|
94
|
-
|
|
95
|
-
|
|
53
|
+
styled-components \
|
|
54
|
+
cross-fetch
|
|
96
55
|
```
|
|
97
56
|
|
|
98
|
-
|
|
57
|
+
For a TypeScript project, add the dev types:
|
|
99
58
|
|
|
100
59
|
``` bash
|
|
101
60
|
npm install -D \
|
|
102
|
-
@types/hammerjs \
|
|
103
61
|
@types/react \
|
|
104
|
-
@types/react-dom
|
|
105
|
-
@types/react-redux \
|
|
106
|
-
@types/styled-components
|
|
62
|
+
@types/react-dom
|
|
107
63
|
```
|
|
108
64
|
|
|
109
|
-
|
|
65
|
+
> `react` / `react-dom` must be **≥ 19**, `@reduxjs/toolkit` ≥ 2, `react-redux` ≥ 9, `styled-components` ≥ 6.
|
|
66
|
+
> (Gestures use native Pointer Events — there is no `hammerjs` dependency.)
|
|
67
|
+
|
|
110
68
|
|
|
111
|
-
``` bash
|
|
112
|
-
yarn add -D \
|
|
113
|
-
@types/hammerjs \
|
|
114
|
-
@types/react \
|
|
115
|
-
@types/react-dom \
|
|
116
|
-
@types/react-redux \
|
|
117
|
-
@types/styled-components
|
|
118
|
-
```
|
|
119
69
|
|
|
70
|
+
# Usage
|
|
120
71
|
|
|
121
|
-
A
|
|
72
|
+
A plane is a `route` + a `component`; the `view` is which routes to show first.
|
|
122
73
|
|
|
123
74
|
``` tsx
|
|
124
|
-
/** imports */
|
|
125
75
|
import React from 'react';
|
|
126
|
-
|
|
127
76
|
import {
|
|
128
77
|
PluridApplication,
|
|
129
|
-
|
|
78
|
+
PluridReactPlane,
|
|
130
79
|
} from '@plurid/plurid-react';
|
|
131
80
|
|
|
132
81
|
|
|
82
|
+
const planes: PluridReactPlane[] = [
|
|
83
|
+
{ route: '/', component: () => <div>Home plane</div> },
|
|
84
|
+
{ route: '/about', component: () => <div>About plane</div> },
|
|
85
|
+
];
|
|
133
86
|
|
|
134
|
-
|
|
135
|
-
const Application: React.FC<any> = () => {
|
|
136
|
-
/** plurid' planes */
|
|
137
|
-
const pluridPlanes: PluridPlane[] = [
|
|
138
|
-
[
|
|
139
|
-
'/',
|
|
140
|
-
() => (<div>Plurid' Application Plane</div>),
|
|
141
|
-
],
|
|
142
|
-
];
|
|
87
|
+
const view = ['/', '/about'];
|
|
143
88
|
|
|
144
|
-
/** plurid' view */
|
|
145
|
-
const pluridView: string[] = [
|
|
146
|
-
'/',
|
|
147
|
-
];
|
|
148
89
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
);
|
|
156
|
-
}
|
|
90
|
+
const Application: React.FC = () => (
|
|
91
|
+
<PluridApplication
|
|
92
|
+
planes={planes}
|
|
93
|
+
view={view}
|
|
94
|
+
/>
|
|
95
|
+
);
|
|
157
96
|
|
|
158
97
|
|
|
159
98
|
export default Application;
|
|
160
99
|
```
|
|
100
|
+
|
|
101
|
+
Drag to orbit, scroll to zoom, hold **G** to grab-pan.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# Going further
|
|
106
|
+
|
|
107
|
+
- **[Getting started](https://github.com/plurid/plurid/blob/master/GETTING_STARTED.md)** — planes, views,
|
|
108
|
+
links, configuration, persistence, the control surface.
|
|
109
|
+
- **[Control surface](https://github.com/plurid/plurid/blob/master/docs/CONTROL_SURFACE.md)** — `onReady`,
|
|
110
|
+
pub/sub control & observe topics, `storageAdapter`, gestures, shortcuts, UI render-slots.
|
|
111
|
+
- **[Examples](https://github.com/plurid/plurid/tree/master/examples)** — a minimal hello-world and a
|
|
112
|
+
full control-surface reference.
|