@plurid/plurid-react 0.0.0-35 → 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/distribution/index.d.mts +62 -2
- package/distribution/index.d.ts +62 -2
- package/distribution/index.js +501 -432
- package/distribution/index.js.map +1 -1
- package/distribution/index.mjs +351 -283
- package/distribution/index.mjs.map +1 -1
- package/package.json +8 -8
package/distribution/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _plurid_plurid_themes from '@plurid/plurid-themes';
|
|
|
4
4
|
import _plurid_plurid_themes__default, { Theme } from '@plurid/plurid-themes';
|
|
5
5
|
export { Theme } from '@plurid/plurid-themes';
|
|
6
6
|
import * as _plurid_plurid_data from '@plurid/plurid-data';
|
|
7
|
-
import { PluridConfiguration, InternationalizationLanguageType, SIZES, TRANSFORM_MODES, TRANSFORM_TOUCHES, TOOLBAR_DRAWERS, TreePlane, PlaneLink, SpaceTransform, PluridStateSpace, LinkCoordinates, PluridPlaneComponentProperty, PluridRouteComponentProperty, ComponentWithPlurid, PluridPlane, PluridRoute, PluridRoutePlane, IsoMatcherRouteResult, PluridPartialConfiguration, PluridLink, PluridRouterProperties, RegisteredPluridPlane, PluridApplication as PluridApplication$1, PluridMetastate, SpaceLocation, PluridApplicationView, LAYOUT_TYPES } from '@plurid/plurid-data';
|
|
7
|
+
import { PluridConfiguration, InternationalizationLanguageType, SIZES, TRANSFORM_MODES, TRANSFORM_TOUCHES, TOOLBAR_DRAWERS, TreePlane, PlaneLink, SpaceTransform, PluridStateSpace, LinkCoordinates, PluridPlaneComponentProperty, PluridRouteComponentProperty, ComponentWithPlurid, PluridPlane, PluridRoute, PluridRoutePlane, IsoMatcherRouteResult, PluridPartialConfiguration, PluridLink, PluridRouterProperties, RegisteredPluridPlane, PluridApplication as PluridApplication$1, PluridMetastate, SpaceLocation, PluridApplicationView, TreePlaneLocation, LAYOUT_TYPES } from '@plurid/plurid-data';
|
|
8
8
|
export { ComponentWithPlurid, FlatPluridConfiguration, PLURID_PUBSUB_TOPIC, PLURID_ROUTER_LOCATION_CHANGED, PLURID_ROUTER_LOCATION_STORED, PluridApi, PluridConfiguration, PluridPartialConfiguration, PluridPlane, PluridPlaneComponentProperty, PluridPreserve, PluridPreserveTransmission, PluridPubSubPublishMessage, PluridPubSubSubscribeMessage, PluridRoute, PluridRouteComponentProperty, PluridRoutePlane, PluridRouteSpace, PluridRouteUniverse, PluridRouterProperties, PluridStorageAdapter, PluridStore, PluridUniverse, PluridView, RecursivePartial, SIZES, LAYOUT_TYPES as SPACE_LAYOUT, TRANSFORM_MODES, TRANSFORM_TOUCHES } from '@plurid/plurid-data';
|
|
9
9
|
import * as react_redux from 'react-redux';
|
|
10
10
|
import * as React$1 from 'react';
|
|
@@ -1196,6 +1196,66 @@ declare const encodeViewpoint: (transform: SpaceTransform) => string;
|
|
|
1196
1196
|
*/
|
|
1197
1197
|
declare const decodeViewpoint: (encoded: string | null | undefined) => SpaceTransform | null;
|
|
1198
1198
|
|
|
1199
|
+
type PluridPlaneIsolation = 'none' | 'self' | 'other';
|
|
1200
|
+
interface PluridPlaneLens {
|
|
1201
|
+
/**
|
|
1202
|
+
* The ID of the plane this content is rendered inside;
|
|
1203
|
+
* `undefined` outside plane content (route exterior, shell, overlays).
|
|
1204
|
+
*/
|
|
1205
|
+
planeID: string | undefined;
|
|
1206
|
+
/**
|
|
1207
|
+
* Hover-derived: this plane is the space's active plane.
|
|
1208
|
+
*/
|
|
1209
|
+
active: boolean;
|
|
1210
|
+
/**
|
|
1211
|
+
* This plane is in the multi-selection working set.
|
|
1212
|
+
*/
|
|
1213
|
+
selected: boolean;
|
|
1214
|
+
/**
|
|
1215
|
+
* `'self'` when this plane is the isolated one, `'other'` when another
|
|
1216
|
+
* plane is isolated (this content is faded out / inert), `'none'` when
|
|
1217
|
+
* no isolation is active.
|
|
1218
|
+
*/
|
|
1219
|
+
isolation: PluridPlaneIsolation;
|
|
1220
|
+
/**
|
|
1221
|
+
* The plane is shown in the space (`treePlane.show !== false`).
|
|
1222
|
+
*/
|
|
1223
|
+
shown: boolean;
|
|
1224
|
+
/**
|
|
1225
|
+
* The space zoom factor.
|
|
1226
|
+
*/
|
|
1227
|
+
scale: number;
|
|
1228
|
+
/**
|
|
1229
|
+
* The measured view size the space computes against.
|
|
1230
|
+
*/
|
|
1231
|
+
viewSize: {
|
|
1232
|
+
width: number;
|
|
1233
|
+
height: number;
|
|
1234
|
+
};
|
|
1235
|
+
/**
|
|
1236
|
+
* The plane's spatial location - a STABLE reference that changes only
|
|
1237
|
+
* when THIS plane moves (structural sharing).
|
|
1238
|
+
*/
|
|
1239
|
+
location: TreePlaneLocation | undefined;
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Live lens over the plane a content component is rendered inside - the
|
|
1243
|
+
* substrate seam for content-heavy consumers (pause a video when the plane
|
|
1244
|
+
* is not `active`, lazy-load when it becomes `shown`, pick asset quality
|
|
1245
|
+
* from `scale`).
|
|
1246
|
+
*
|
|
1247
|
+
* Field subscriptions are per-primitive (the engine's own granular-derived
|
|
1248
|
+
* pattern), so consuming content re-renders only when a consumed value
|
|
1249
|
+
* actually changes - not per orbit frame.
|
|
1250
|
+
*
|
|
1251
|
+
* Valid only under a `PluridApplication` (react-redux throws without the
|
|
1252
|
+
* engine store). Outside plane content but inside the application (route
|
|
1253
|
+
* exteriors, overlays) `planeID` is `undefined` and the plane-derived
|
|
1254
|
+
* fields are inert (`active`/`selected` false, `isolation` 'none',
|
|
1255
|
+
* `shown` true).
|
|
1256
|
+
*/
|
|
1257
|
+
declare const usePluridPlane: () => PluridPlaneLens;
|
|
1258
|
+
|
|
1199
1259
|
declare const usePluridRouter: () => string;
|
|
1200
1260
|
|
|
1201
1261
|
declare const _default: {
|
|
@@ -1437,4 +1497,4 @@ declare const Plurid: {
|
|
|
1437
1497
|
};
|
|
1438
1498
|
type PluridRouterPartialProperties = Partial<PluridRouterProperties<PluridReactComponent>>;
|
|
1439
1499
|
|
|
1440
|
-
export { PluridApplication, ConnectedPluridApplicationConfigurator as PluridApplicationConfigurator, ConnectedExternalPlane as PluridExternalPlane, ConnectedIframePlane as PluridIframePlane, ConnectedPluridLink as PluridLink, ConnectedPluridPlaneConfigurator as PluridPlaneConfigurator, PluridProvider, type PluridReactComponent, type PluridReactPlane, type PluridReactPlaneComponent, type PluridReactRoute, type PluridReactRouteComponent, type PluridReactRoutePlane, type PluridRouteMatch, PluridRouterBrowser, PluridRouterLink, type PluridRouterPartialProperties, PluridRouterStatic, ConnectedPluridVirtualList as PluridVirtualList, arrangementSignature, decodeViewpoint, Plurid as default, encodeViewpoint, getDirectPlaneMatch, internals, _default as pluridSelectors, _default$1 as pluridStateModules, serverComputeMetastate, usePluridRouter };
|
|
1500
|
+
export { PluridApplication, ConnectedPluridApplicationConfigurator as PluridApplicationConfigurator, ConnectedExternalPlane as PluridExternalPlane, ConnectedIframePlane as PluridIframePlane, ConnectedPluridLink as PluridLink, ConnectedPluridPlaneConfigurator as PluridPlaneConfigurator, type PluridPlaneIsolation, type PluridPlaneLens, PluridProvider, type PluridReactComponent, type PluridReactPlane, type PluridReactPlaneComponent, type PluridReactRoute, type PluridReactRouteComponent, type PluridReactRoutePlane, type PluridRouteMatch, PluridRouterBrowser, PluridRouterLink, type PluridRouterPartialProperties, PluridRouterStatic, ConnectedPluridVirtualList as PluridVirtualList, arrangementSignature, decodeViewpoint, Plurid as default, encodeViewpoint, getDirectPlaneMatch, internals, _default as pluridSelectors, _default$1 as pluridStateModules, serverComputeMetastate, usePluridPlane, usePluridRouter };
|
package/distribution/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _plurid_plurid_themes from '@plurid/plurid-themes';
|
|
|
4
4
|
import _plurid_plurid_themes__default, { Theme } from '@plurid/plurid-themes';
|
|
5
5
|
export { Theme } from '@plurid/plurid-themes';
|
|
6
6
|
import * as _plurid_plurid_data from '@plurid/plurid-data';
|
|
7
|
-
import { PluridConfiguration, InternationalizationLanguageType, SIZES, TRANSFORM_MODES, TRANSFORM_TOUCHES, TOOLBAR_DRAWERS, TreePlane, PlaneLink, SpaceTransform, PluridStateSpace, LinkCoordinates, PluridPlaneComponentProperty, PluridRouteComponentProperty, ComponentWithPlurid, PluridPlane, PluridRoute, PluridRoutePlane, IsoMatcherRouteResult, PluridPartialConfiguration, PluridLink, PluridRouterProperties, RegisteredPluridPlane, PluridApplication as PluridApplication$1, PluridMetastate, SpaceLocation, PluridApplicationView, LAYOUT_TYPES } from '@plurid/plurid-data';
|
|
7
|
+
import { PluridConfiguration, InternationalizationLanguageType, SIZES, TRANSFORM_MODES, TRANSFORM_TOUCHES, TOOLBAR_DRAWERS, TreePlane, PlaneLink, SpaceTransform, PluridStateSpace, LinkCoordinates, PluridPlaneComponentProperty, PluridRouteComponentProperty, ComponentWithPlurid, PluridPlane, PluridRoute, PluridRoutePlane, IsoMatcherRouteResult, PluridPartialConfiguration, PluridLink, PluridRouterProperties, RegisteredPluridPlane, PluridApplication as PluridApplication$1, PluridMetastate, SpaceLocation, PluridApplicationView, TreePlaneLocation, LAYOUT_TYPES } from '@plurid/plurid-data';
|
|
8
8
|
export { ComponentWithPlurid, FlatPluridConfiguration, PLURID_PUBSUB_TOPIC, PLURID_ROUTER_LOCATION_CHANGED, PLURID_ROUTER_LOCATION_STORED, PluridApi, PluridConfiguration, PluridPartialConfiguration, PluridPlane, PluridPlaneComponentProperty, PluridPreserve, PluridPreserveTransmission, PluridPubSubPublishMessage, PluridPubSubSubscribeMessage, PluridRoute, PluridRouteComponentProperty, PluridRoutePlane, PluridRouteSpace, PluridRouteUniverse, PluridRouterProperties, PluridStorageAdapter, PluridStore, PluridUniverse, PluridView, RecursivePartial, SIZES, LAYOUT_TYPES as SPACE_LAYOUT, TRANSFORM_MODES, TRANSFORM_TOUCHES } from '@plurid/plurid-data';
|
|
9
9
|
import * as react_redux from 'react-redux';
|
|
10
10
|
import * as React$1 from 'react';
|
|
@@ -1196,6 +1196,66 @@ declare const encodeViewpoint: (transform: SpaceTransform) => string;
|
|
|
1196
1196
|
*/
|
|
1197
1197
|
declare const decodeViewpoint: (encoded: string | null | undefined) => SpaceTransform | null;
|
|
1198
1198
|
|
|
1199
|
+
type PluridPlaneIsolation = 'none' | 'self' | 'other';
|
|
1200
|
+
interface PluridPlaneLens {
|
|
1201
|
+
/**
|
|
1202
|
+
* The ID of the plane this content is rendered inside;
|
|
1203
|
+
* `undefined` outside plane content (route exterior, shell, overlays).
|
|
1204
|
+
*/
|
|
1205
|
+
planeID: string | undefined;
|
|
1206
|
+
/**
|
|
1207
|
+
* Hover-derived: this plane is the space's active plane.
|
|
1208
|
+
*/
|
|
1209
|
+
active: boolean;
|
|
1210
|
+
/**
|
|
1211
|
+
* This plane is in the multi-selection working set.
|
|
1212
|
+
*/
|
|
1213
|
+
selected: boolean;
|
|
1214
|
+
/**
|
|
1215
|
+
* `'self'` when this plane is the isolated one, `'other'` when another
|
|
1216
|
+
* plane is isolated (this content is faded out / inert), `'none'` when
|
|
1217
|
+
* no isolation is active.
|
|
1218
|
+
*/
|
|
1219
|
+
isolation: PluridPlaneIsolation;
|
|
1220
|
+
/**
|
|
1221
|
+
* The plane is shown in the space (`treePlane.show !== false`).
|
|
1222
|
+
*/
|
|
1223
|
+
shown: boolean;
|
|
1224
|
+
/**
|
|
1225
|
+
* The space zoom factor.
|
|
1226
|
+
*/
|
|
1227
|
+
scale: number;
|
|
1228
|
+
/**
|
|
1229
|
+
* The measured view size the space computes against.
|
|
1230
|
+
*/
|
|
1231
|
+
viewSize: {
|
|
1232
|
+
width: number;
|
|
1233
|
+
height: number;
|
|
1234
|
+
};
|
|
1235
|
+
/**
|
|
1236
|
+
* The plane's spatial location - a STABLE reference that changes only
|
|
1237
|
+
* when THIS plane moves (structural sharing).
|
|
1238
|
+
*/
|
|
1239
|
+
location: TreePlaneLocation | undefined;
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Live lens over the plane a content component is rendered inside - the
|
|
1243
|
+
* substrate seam for content-heavy consumers (pause a video when the plane
|
|
1244
|
+
* is not `active`, lazy-load when it becomes `shown`, pick asset quality
|
|
1245
|
+
* from `scale`).
|
|
1246
|
+
*
|
|
1247
|
+
* Field subscriptions are per-primitive (the engine's own granular-derived
|
|
1248
|
+
* pattern), so consuming content re-renders only when a consumed value
|
|
1249
|
+
* actually changes - not per orbit frame.
|
|
1250
|
+
*
|
|
1251
|
+
* Valid only under a `PluridApplication` (react-redux throws without the
|
|
1252
|
+
* engine store). Outside plane content but inside the application (route
|
|
1253
|
+
* exteriors, overlays) `planeID` is `undefined` and the plane-derived
|
|
1254
|
+
* fields are inert (`active`/`selected` false, `isolation` 'none',
|
|
1255
|
+
* `shown` true).
|
|
1256
|
+
*/
|
|
1257
|
+
declare const usePluridPlane: () => PluridPlaneLens;
|
|
1258
|
+
|
|
1199
1259
|
declare const usePluridRouter: () => string;
|
|
1200
1260
|
|
|
1201
1261
|
declare const _default: {
|
|
@@ -1437,4 +1497,4 @@ declare const Plurid: {
|
|
|
1437
1497
|
};
|
|
1438
1498
|
type PluridRouterPartialProperties = Partial<PluridRouterProperties<PluridReactComponent>>;
|
|
1439
1499
|
|
|
1440
|
-
export { PluridApplication, ConnectedPluridApplicationConfigurator as PluridApplicationConfigurator, ConnectedExternalPlane as PluridExternalPlane, ConnectedIframePlane as PluridIframePlane, ConnectedPluridLink as PluridLink, ConnectedPluridPlaneConfigurator as PluridPlaneConfigurator, PluridProvider, type PluridReactComponent, type PluridReactPlane, type PluridReactPlaneComponent, type PluridReactRoute, type PluridReactRouteComponent, type PluridReactRoutePlane, type PluridRouteMatch, PluridRouterBrowser, PluridRouterLink, type PluridRouterPartialProperties, PluridRouterStatic, ConnectedPluridVirtualList as PluridVirtualList, arrangementSignature, decodeViewpoint, Plurid as default, encodeViewpoint, getDirectPlaneMatch, internals, _default as pluridSelectors, _default$1 as pluridStateModules, serverComputeMetastate, usePluridRouter };
|
|
1500
|
+
export { PluridApplication, ConnectedPluridApplicationConfigurator as PluridApplicationConfigurator, ConnectedExternalPlane as PluridExternalPlane, ConnectedIframePlane as PluridIframePlane, ConnectedPluridLink as PluridLink, ConnectedPluridPlaneConfigurator as PluridPlaneConfigurator, type PluridPlaneIsolation, type PluridPlaneLens, PluridProvider, type PluridReactComponent, type PluridReactPlane, type PluridReactPlaneComponent, type PluridReactRoute, type PluridReactRouteComponent, type PluridReactRoutePlane, type PluridRouteMatch, PluridRouterBrowser, PluridRouterLink, type PluridRouterPartialProperties, PluridRouterStatic, ConnectedPluridVirtualList as PluridVirtualList, arrangementSignature, decodeViewpoint, Plurid as default, encodeViewpoint, getDirectPlaneMatch, internals, _default as pluridSelectors, _default$1 as pluridStateModules, serverComputeMetastate, usePluridPlane, usePluridRouter };
|