@plurid/plurid-react 0.0.0-34 → 0.0.0-35

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.
Files changed (150) hide show
  1. package/README.md +42 -90
  2. package/distribution/index.d.mts +1440 -0
  3. package/distribution/index.d.ts +1345 -107
  4. package/distribution/index.js +10262 -5659
  5. package/distribution/index.js.map +1 -1
  6. package/distribution/index.mjs +11160 -0
  7. package/distribution/index.mjs.map +1 -0
  8. package/package.json +113 -121
  9. package/distribution/components/links/Link/components/Preview/index.d.ts +0 -28
  10. package/distribution/components/links/Link/components/Preview/styled.d.ts +0 -7
  11. package/distribution/components/links/Link/index.d.ts +0 -42
  12. package/distribution/components/links/Link/styled.d.ts +0 -7
  13. package/distribution/components/links/RouterLink/index.d.ts +0 -20
  14. package/distribution/components/links/RouterLink/styled.d.ts +0 -6
  15. package/distribution/components/planes/ExternalPlane/index.d.ts +0 -20
  16. package/distribution/components/planes/ExternalPlane/styled.d.ts +0 -5
  17. package/distribution/components/planes/IframePlane/index.d.ts +0 -20
  18. package/distribution/components/planes/IframePlane/styled.d.ts +0 -5
  19. package/distribution/components/structural/Plane/components/PlaneBridge/index.d.ts +0 -22
  20. package/distribution/components/structural/Plane/components/PlaneBridge/styled.d.ts +0 -9
  21. package/distribution/components/structural/Plane/components/PlaneContent/index.d.ts +0 -6
  22. package/distribution/components/structural/Plane/components/PlaneContent/styled.d.ts +0 -1
  23. package/distribution/components/structural/Plane/components/PlaneControls/components/ControlIsolate/index.d.ts +0 -9
  24. package/distribution/components/structural/Plane/components/PlaneControls/components/ControlRefresh/index.d.ts +0 -9
  25. package/distribution/components/structural/Plane/components/PlaneControls/components/SearchItem/index.d.ts +0 -25
  26. package/distribution/components/structural/Plane/components/PlaneControls/components/SearchItem/styled.d.ts +0 -1
  27. package/distribution/components/structural/Plane/components/PlaneControls/components/SearchList/index.d.ts +0 -23
  28. package/distribution/components/structural/Plane/components/PlaneControls/components/SearchList/styled.d.ts +0 -2
  29. package/distribution/components/structural/Plane/components/PlaneControls/index.d.ts +0 -40
  30. package/distribution/components/structural/Plane/components/PlaneControls/styled.d.ts +0 -11
  31. package/distribution/components/structural/Plane/components/PlaneDebugger/index.d.ts +0 -17
  32. package/distribution/components/structural/Plane/components/PlaneDebugger/styled.d.ts +0 -1
  33. package/distribution/components/structural/Plane/index.d.ts +0 -36
  34. package/distribution/components/structural/Plane/styled.d.ts +0 -11
  35. package/distribution/components/structural/Root/index.d.ts +0 -20
  36. package/distribution/components/structural/Root/styled.d.ts +0 -1
  37. package/distribution/components/structural/Roots/index.d.ts +0 -23
  38. package/distribution/components/structural/Roots/styled.d.ts +0 -3
  39. package/distribution/components/structural/Space/components/SpaceDebugger/index.d.ts +0 -17
  40. package/distribution/components/structural/Space/components/SpaceDebugger/styled.d.ts +0 -1
  41. package/distribution/components/structural/Space/index.d.ts +0 -19
  42. package/distribution/components/structural/Space/styled.d.ts +0 -8
  43. package/distribution/components/utilities/ApplicationConfigurator/index.d.ts +0 -25
  44. package/distribution/components/utilities/ApplicationConfigurator/styled.d.ts +0 -1
  45. package/distribution/components/utilities/ErrorBoundary/index.d.ts +0 -18
  46. package/distribution/components/utilities/NotFound/index.d.ts +0 -17
  47. package/distribution/components/utilities/NotFound/styled.d.ts +0 -1
  48. package/distribution/components/utilities/Origin/index.d.ts +0 -19
  49. package/distribution/components/utilities/Origin/styled.d.ts +0 -7
  50. package/distribution/components/utilities/PlaneConfigurator/index.d.ts +0 -20
  51. package/distribution/components/utilities/PlaneConfigurator/styled.d.ts +0 -1
  52. package/distribution/components/utilities/Portal/index.d.ts +0 -15
  53. package/distribution/components/utilities/Toolbar/Button/index.d.ts +0 -15
  54. package/distribution/components/utilities/Toolbar/Button/styled.d.ts +0 -13
  55. package/distribution/components/utilities/Toolbar/General/components/Drawer/index.d.ts +0 -26
  56. package/distribution/components/utilities/Toolbar/General/components/Drawer/styled.d.ts +0 -3
  57. package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Global/index.d.ts +0 -26
  58. package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Shortcuts/index.d.ts +0 -18
  59. package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Space/index.d.ts +0 -25
  60. package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Technical/index.d.ts +0 -22
  61. package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Toolbar/index.d.ts +0 -27
  62. package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Transform/index.d.ts +0 -24
  63. package/distribution/components/utilities/Toolbar/General/components/MenuMore/components/Viewcube/index.d.ts +0 -25
  64. package/distribution/components/utilities/Toolbar/General/components/MenuMore/data.d.ts +0 -9
  65. package/distribution/components/utilities/Toolbar/General/components/MenuMore/index.d.ts +0 -26
  66. package/distribution/components/utilities/Toolbar/General/components/MenuMore/styled.d.ts +0 -3
  67. package/distribution/components/utilities/Toolbar/General/components/MenuUniverses/index.d.ts +0 -20
  68. package/distribution/components/utilities/Toolbar/General/components/MenuUniverses/styled.d.ts +0 -4
  69. package/distribution/components/utilities/Toolbar/General/components/ToolbarRotate/index.d.ts +0 -32
  70. package/distribution/components/utilities/Toolbar/General/components/ToolbarRotate/styled.d.ts +0 -1
  71. package/distribution/components/utilities/Toolbar/General/components/ToolbarScale/index.d.ts +0 -30
  72. package/distribution/components/utilities/Toolbar/General/components/ToolbarScale/styled.d.ts +0 -1
  73. package/distribution/components/utilities/Toolbar/General/components/ToolbarTranslate/index.d.ts +0 -34
  74. package/distribution/components/utilities/Toolbar/General/components/ToolbarTranslate/styled.d.ts +0 -1
  75. package/distribution/components/utilities/Toolbar/General/components/TransformArrow/data.d.ts +0 -7
  76. package/distribution/components/utilities/Toolbar/General/components/TransformArrow/index.d.ts +0 -24
  77. package/distribution/components/utilities/Toolbar/General/components/TransformArrow/styled.d.ts +0 -6
  78. package/distribution/components/utilities/Toolbar/General/data.d.ts +0 -6
  79. package/distribution/components/utilities/Toolbar/General/index.d.ts +0 -25
  80. package/distribution/components/utilities/Toolbar/General/styled.d.ts +0 -29
  81. package/distribution/components/utilities/UniverseExplorer/index.d.ts +0 -20
  82. package/distribution/components/utilities/UniverseExplorer/styled.d.ts +0 -2
  83. package/distribution/components/utilities/Viewcube/components/ViewcubeFace/data.d.ts +0 -391
  84. package/distribution/components/utilities/Viewcube/components/ViewcubeFace/index.d.ts +0 -38
  85. package/distribution/components/utilities/Viewcube/components/ViewcubeFace/styled.d.ts +0 -16
  86. package/distribution/components/utilities/Viewcube/components/ViewcubeModel/index.d.ts +0 -22
  87. package/distribution/components/utilities/Viewcube/components/ViewcubeModel/styled.d.ts +0 -3
  88. package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/TransformArea/data.d.ts +0 -5
  89. package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/TransformArea/index.d.ts +0 -11
  90. package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/TransformArea/styled.d.ts +0 -17
  91. package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/index.d.ts +0 -17
  92. package/distribution/components/utilities/Viewcube/components/ViewcubeTransformAreas/styled.d.ts +0 -13
  93. package/distribution/components/utilities/Viewcube/index.d.ts +0 -27
  94. package/distribution/components/utilities/Viewcube/styled.d.ts +0 -19
  95. package/distribution/components/virtuals/List/components/ListItem/index.d.ts +0 -9
  96. package/distribution/components/virtuals/List/index.d.ts +0 -21
  97. package/distribution/components/virtuals/List/styled.d.ts +0 -1
  98. package/distribution/containers/Application/View/Container/index.d.ts +0 -5
  99. package/distribution/containers/Application/View/index.d.ts +0 -72
  100. package/distribution/containers/Application/View/styled.d.ts +0 -8
  101. package/distribution/containers/Application/index.d.ts +0 -17
  102. package/distribution/containers/Provider/context.d.ts +0 -4
  103. package/distribution/containers/Provider/index.d.ts +0 -12
  104. package/distribution/containers/RouterBrowser/FadeIn/index.d.ts +0 -6
  105. package/distribution/containers/RouterBrowser/FadeIn/styled.d.ts +0 -3
  106. package/distribution/containers/RouterBrowser/index.d.ts +0 -7
  107. package/distribution/containers/RouterBrowser/styled.d.ts +0 -1
  108. package/distribution/containers/RouterStatic/index.d.ts +0 -19
  109. package/distribution/data/constants/index.d.ts +0 -3
  110. package/distribution/data/interfaces/index.d.ts +0 -20
  111. package/distribution/data/interfaces/utility.d.ts +0 -3
  112. package/distribution/index.es.js +0 -6520
  113. package/distribution/index.es.js.map +0 -1
  114. package/distribution/index.min.js +0 -6306
  115. package/distribution/index.min.js.map +0 -1
  116. package/distribution/services/context/index.d.ts +0 -5
  117. package/distribution/services/engine/index.d.ts +0 -22
  118. package/distribution/services/hooks/event/index.d.ts +0 -4
  119. package/distribution/services/hooks/index.d.ts +0 -2
  120. package/distribution/services/hooks/router/index.d.ts +0 -1
  121. package/distribution/services/logic/animation/index.d.ts +0 -16
  122. package/distribution/services/logic/computing/index.d.ts +0 -17
  123. package/distribution/services/logic/router/index.d.ts +0 -40
  124. package/distribution/services/logic/router/styled.d.ts +0 -5
  125. package/distribution/services/logic/server/index.d.ts +0 -3
  126. package/distribution/services/logic/shortcuts/index.d.ts +0 -114
  127. package/distribution/services/logic/shortcuts/logic.d.ts +0 -6
  128. package/distribution/services/logic/state/index.d.ts +0 -3
  129. package/distribution/services/logic/transform/index.d.ts +0 -3
  130. package/distribution/services/state/actions/index.d.ts +0 -258
  131. package/distribution/services/state/context/index.d.ts +0 -3
  132. package/distribution/services/state/hooks/index.d.ts +0 -4
  133. package/distribution/services/state/modules/configuration/index.d.ts +0 -78
  134. package/distribution/services/state/modules/general/index.d.ts +0 -10
  135. package/distribution/services/state/modules/index.d.ts +0 -16
  136. package/distribution/services/state/modules/shortcuts/index.d.ts +0 -16
  137. package/distribution/services/state/modules/space/index.d.ts +0 -151
  138. package/distribution/services/state/modules/space/selectors.d.ts +0 -23
  139. package/distribution/services/state/modules/space/types.d.ts +0 -41
  140. package/distribution/services/state/modules/themes/index.d.ts +0 -22
  141. package/distribution/services/state/modules/ui/index.d.ts +0 -16
  142. package/distribution/services/state/selectors/index.d.ts +0 -62
  143. package/distribution/services/state/store/development/index.d.ts +0 -5
  144. package/distribution/services/state/store/index.d.ts +0 -23
  145. package/distribution/services/state/store/production/index.d.ts +0 -5
  146. package/distribution/services/state/store/reducer/index.d.ts +0 -10
  147. package/distribution/services/styled/index.d.ts +0 -2
  148. package/distribution/services/utilities/environment/index.d.ts +0 -7
  149. package/distribution/services/utilities/imports/index.d.ts +0 -49
  150. 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-react/blob/master/LICENSE">
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
- `React` implementation of [plurid'](https://github.com/plurid/plurid) to view and explore information as a 3D structure.
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 simplest manner to setup a "batteries included" `plurid'` web application is to use [@plurid/generate-plurid-app](https://github.com/plurid/plurid/tree/master/packages/generate-plurid-app)
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
- In order to setup a plurid' web application in a more specific manner, given a standard setup for a React-based web application (recommended [create-react-app](https://github.com/facebook/create-react-app) template), add the plurid' package
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/elementql \
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
- cross-fetch \
91
- hammerjs \
50
+ react-redux \
92
51
  react \
93
52
  react-dom \
94
- react-redux \
95
- styled-components
53
+ styled-components \
54
+ cross-fetch
96
55
  ```
97
56
 
98
- add the types (if it is a TypeScript project)
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
- or
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 simple, rendering-test application component, could look like
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
- PluridPlane,
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
- /** React Functional Component */
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
- /** render */
150
- return (
151
- <PluridApplication
152
- planes={pluridPlanes}
153
- view={pluridView}
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.