@emuanalytics/flow-rdf-core 4.0.6 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/lib/map/plugins/index.d.mts +2 -2
- package/dist/lib/map/plugins/index.d.ts +2 -2
- package/dist/lib/state-store/decorators.mjs +3 -3
- package/dist/lib/state-store/state-store.mjs +5 -4
- package/dist/package.json.mjs +1 -1
- package/dist/shared/{flow-rdf-core.cef13c7e.d.mts → flow-rdf-core.08156446.d.mts} +5 -5
- package/dist/shared/{flow-rdf-core.cef13c7e.d.ts → flow-rdf-core.08156446.d.ts} +5 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Annotation, M as MapStyleSpecification, S as StateStore, a as MapDataSource, b as MapLayer, F as FlowContextOptions, c as FlowContext } from './shared/flow-rdf-core.
|
|
2
|
-
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, _ as FeatureStreamOptions, s as FillExtrusionLayerStyleBuilder, q as FillLayerStyleBuilder, d as FlowCoreError, h as FlowCoreExpressionCustomFunction, i as FlowCoreExpressionCustomFunctionSignature, j as FlowCoreExpressionCustomFunctions, e as FlowCoreExpressionError, a0 as FlowCoreMap, o as FlowEngineEndpoint, f as FlowMapError, H as HeatmapLayerStyleBuilder, u as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, T as MapAnimationOptions, U as MapCenterOptions, K as MapDataSourceOptions, N as MapDataSourceSpecification, J as MapDataSourceType, a3 as MapEvent, a2 as MapEventType, a1 as MapEventTypes, V as MapFeature, W as MapFeatureIdentifier, Z as MapFeatureStream, O as MapGeojsonData, E as MapLayerExpression, z as MapLayerOptions, I as MapLayerPropertyMetadataIndex, G as MapLayerSpecification, w as MapLayerStyleBuilder, p as MapLayerType, a6 as MapLoadingEvent, a4 as MapMouseEvent, $ as MapOptions, X as MapPaddingOptions, aa as MapPopup, a9 as MapPopupOptions, a8 as MapPopupTemplateFn, g as MapRegistry, a5 as MapSourceEvent, Y as MapSourceIdentifier, a7 as MapStyleChangeEvent, P as ParserExpression, k as ParserExpressionWithIndex, l as ParserFunctionExpression, m as ParserIndex, n as ParserProgram, aq as Path, ar as PathValue, ab as Query, ag as QueryAttribute, al as QueryDefinition, an as QueryDefinitionFn, ai as QueryExtraParams, am as QueryOptions, aj as QueryOrderClause, Q as QueryRegistry, af as QueryResultFormat, ao as QueryResultTransformFn, ak as QuerySampleOptions, ah as QueryWhereClauses, t as RasterLayerStyleBuilder, R as ReactiveExpression, au as SerializationFormat, at as StoreAnnotations, as as StoreConstructor, x as StyleExpression, r as SymbolLayerStyleBuilder, y as expr, v as layerStyle, ac as query, ad as queryMany, ae as queryOne, ap as traceReaction } from './shared/flow-rdf-core.
|
|
1
|
+
import { A as Annotation, M as MapStyleSpecification, S as StateStore, a as MapDataSource, b as MapLayer, F as FlowContextOptions, c as FlowContext } from './shared/flow-rdf-core.08156446.mjs';
|
|
2
|
+
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, _ as FeatureStreamOptions, s as FillExtrusionLayerStyleBuilder, q as FillLayerStyleBuilder, d as FlowCoreError, h as FlowCoreExpressionCustomFunction, i as FlowCoreExpressionCustomFunctionSignature, j as FlowCoreExpressionCustomFunctions, e as FlowCoreExpressionError, a0 as FlowCoreMap, o as FlowEngineEndpoint, f as FlowMapError, H as HeatmapLayerStyleBuilder, u as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, T as MapAnimationOptions, U as MapCenterOptions, K as MapDataSourceOptions, N as MapDataSourceSpecification, J as MapDataSourceType, a3 as MapEvent, a2 as MapEventType, a1 as MapEventTypes, V as MapFeature, W as MapFeatureIdentifier, Z as MapFeatureStream, O as MapGeojsonData, E as MapLayerExpression, z as MapLayerOptions, I as MapLayerPropertyMetadataIndex, G as MapLayerSpecification, w as MapLayerStyleBuilder, p as MapLayerType, a6 as MapLoadingEvent, a4 as MapMouseEvent, $ as MapOptions, X as MapPaddingOptions, aa as MapPopup, a9 as MapPopupOptions, a8 as MapPopupTemplateFn, g as MapRegistry, a5 as MapSourceEvent, Y as MapSourceIdentifier, a7 as MapStyleChangeEvent, P as ParserExpression, k as ParserExpressionWithIndex, l as ParserFunctionExpression, m as ParserIndex, n as ParserProgram, aq as Path, ar as PathValue, ab as Query, ag as QueryAttribute, al as QueryDefinition, an as QueryDefinitionFn, ai as QueryExtraParams, am as QueryOptions, aj as QueryOrderClause, Q as QueryRegistry, af as QueryResultFormat, ao as QueryResultTransformFn, ak as QuerySampleOptions, ah as QueryWhereClauses, t as RasterLayerStyleBuilder, R as ReactiveExpression, au as SerializationFormat, at as StoreAnnotations, as as StoreConstructor, x as StyleExpression, r as SymbolLayerStyleBuilder, y as expr, v as layerStyle, ac as query, ad as queryMany, ae as queryOne, ap as traceReaction } from './shared/flow-rdf-core.08156446.mjs';
|
|
3
3
|
export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
|
|
4
4
|
export { makeAutoObservable, makeObservable } from 'mobx';
|
|
5
5
|
import 'eventemitter3';
|
|
@@ -8,7 +8,7 @@ import '@emuanalytics/flow-engine-client';
|
|
|
8
8
|
import '@emuanalytics/maplibre-gl';
|
|
9
9
|
|
|
10
10
|
interface SyncAnnotation<T = any> extends Annotation {
|
|
11
|
-
serialize(val: T,
|
|
11
|
+
serialize(val: T, scope?: string): string;
|
|
12
12
|
deserialize(val: string, target?: T): T;
|
|
13
13
|
type: string;
|
|
14
14
|
arg?: string | string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Annotation, M as MapStyleSpecification, S as StateStore, a as MapDataSource, b as MapLayer, F as FlowContextOptions, c as FlowContext } from './shared/flow-rdf-core.
|
|
2
|
-
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, _ as FeatureStreamOptions, s as FillExtrusionLayerStyleBuilder, q as FillLayerStyleBuilder, d as FlowCoreError, h as FlowCoreExpressionCustomFunction, i as FlowCoreExpressionCustomFunctionSignature, j as FlowCoreExpressionCustomFunctions, e as FlowCoreExpressionError, a0 as FlowCoreMap, o as FlowEngineEndpoint, f as FlowMapError, H as HeatmapLayerStyleBuilder, u as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, T as MapAnimationOptions, U as MapCenterOptions, K as MapDataSourceOptions, N as MapDataSourceSpecification, J as MapDataSourceType, a3 as MapEvent, a2 as MapEventType, a1 as MapEventTypes, V as MapFeature, W as MapFeatureIdentifier, Z as MapFeatureStream, O as MapGeojsonData, E as MapLayerExpression, z as MapLayerOptions, I as MapLayerPropertyMetadataIndex, G as MapLayerSpecification, w as MapLayerStyleBuilder, p as MapLayerType, a6 as MapLoadingEvent, a4 as MapMouseEvent, $ as MapOptions, X as MapPaddingOptions, aa as MapPopup, a9 as MapPopupOptions, a8 as MapPopupTemplateFn, g as MapRegistry, a5 as MapSourceEvent, Y as MapSourceIdentifier, a7 as MapStyleChangeEvent, P as ParserExpression, k as ParserExpressionWithIndex, l as ParserFunctionExpression, m as ParserIndex, n as ParserProgram, aq as Path, ar as PathValue, ab as Query, ag as QueryAttribute, al as QueryDefinition, an as QueryDefinitionFn, ai as QueryExtraParams, am as QueryOptions, aj as QueryOrderClause, Q as QueryRegistry, af as QueryResultFormat, ao as QueryResultTransformFn, ak as QuerySampleOptions, ah as QueryWhereClauses, t as RasterLayerStyleBuilder, R as ReactiveExpression, au as SerializationFormat, at as StoreAnnotations, as as StoreConstructor, x as StyleExpression, r as SymbolLayerStyleBuilder, y as expr, v as layerStyle, ac as query, ad as queryMany, ae as queryOne, ap as traceReaction } from './shared/flow-rdf-core.
|
|
1
|
+
import { A as Annotation, M as MapStyleSpecification, S as StateStore, a as MapDataSource, b as MapLayer, F as FlowContextOptions, c as FlowContext } from './shared/flow-rdf-core.08156446.js';
|
|
2
|
+
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, _ as FeatureStreamOptions, s as FillExtrusionLayerStyleBuilder, q as FillLayerStyleBuilder, d as FlowCoreError, h as FlowCoreExpressionCustomFunction, i as FlowCoreExpressionCustomFunctionSignature, j as FlowCoreExpressionCustomFunctions, e as FlowCoreExpressionError, a0 as FlowCoreMap, o as FlowEngineEndpoint, f as FlowMapError, H as HeatmapLayerStyleBuilder, u as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, T as MapAnimationOptions, U as MapCenterOptions, K as MapDataSourceOptions, N as MapDataSourceSpecification, J as MapDataSourceType, a3 as MapEvent, a2 as MapEventType, a1 as MapEventTypes, V as MapFeature, W as MapFeatureIdentifier, Z as MapFeatureStream, O as MapGeojsonData, E as MapLayerExpression, z as MapLayerOptions, I as MapLayerPropertyMetadataIndex, G as MapLayerSpecification, w as MapLayerStyleBuilder, p as MapLayerType, a6 as MapLoadingEvent, a4 as MapMouseEvent, $ as MapOptions, X as MapPaddingOptions, aa as MapPopup, a9 as MapPopupOptions, a8 as MapPopupTemplateFn, g as MapRegistry, a5 as MapSourceEvent, Y as MapSourceIdentifier, a7 as MapStyleChangeEvent, P as ParserExpression, k as ParserExpressionWithIndex, l as ParserFunctionExpression, m as ParserIndex, n as ParserProgram, aq as Path, ar as PathValue, ab as Query, ag as QueryAttribute, al as QueryDefinition, an as QueryDefinitionFn, ai as QueryExtraParams, am as QueryOptions, aj as QueryOrderClause, Q as QueryRegistry, af as QueryResultFormat, ao as QueryResultTransformFn, ak as QuerySampleOptions, ah as QueryWhereClauses, t as RasterLayerStyleBuilder, R as ReactiveExpression, au as SerializationFormat, at as StoreAnnotations, as as StoreConstructor, x as StyleExpression, r as SymbolLayerStyleBuilder, y as expr, v as layerStyle, ac as query, ad as queryMany, ae as queryOne, ap as traceReaction } from './shared/flow-rdf-core.08156446.js';
|
|
3
3
|
export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
|
|
4
4
|
export { makeAutoObservable, makeObservable } from 'mobx';
|
|
5
5
|
import 'eventemitter3';
|
|
@@ -8,7 +8,7 @@ import '@emuanalytics/flow-engine-client';
|
|
|
8
8
|
import '@emuanalytics/maplibre-gl';
|
|
9
9
|
|
|
10
10
|
interface SyncAnnotation<T = any> extends Annotation {
|
|
11
|
-
serialize(val: T,
|
|
11
|
+
serialize(val: T, scope?: string): string;
|
|
12
12
|
deserialize(val: string, target?: T): T;
|
|
13
13
|
type: string;
|
|
14
14
|
arg?: string | string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a3 as MapEvent, a0 as FlowCoreMap, Y as MapSourceIdentifier, av as MapFeatureId, aw as MapPluginBase, ax as PluginManager, a5 as MapSourceEvent, a4 as MapMouseEvent, Z as MapFeatureStream, ay as PartialBy, T as MapAnimationOptions, a7 as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, a9 as MapPopupOptions, aa as MapPopup, W as MapFeatureIdentifier } from '../../../shared/flow-rdf-core.
|
|
2
|
-
export { aC as EventHandlers, aB as PluginConstructor, aA as PluginEventsType, az as PluginOptionsType } from '../../../shared/flow-rdf-core.
|
|
1
|
+
import { a3 as MapEvent, a0 as FlowCoreMap, Y as MapSourceIdentifier, av as MapFeatureId, aw as MapPluginBase, ax as PluginManager, a5 as MapSourceEvent, a4 as MapMouseEvent, Z as MapFeatureStream, ay as PartialBy, T as MapAnimationOptions, a7 as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, a9 as MapPopupOptions, aa as MapPopup, W as MapFeatureIdentifier } from '../../../shared/flow-rdf-core.08156446.mjs';
|
|
2
|
+
export { aC as EventHandlers, aB as PluginConstructor, aA as PluginEventsType, az as PluginOptionsType } from '../../../shared/flow-rdf-core.08156446.mjs';
|
|
3
3
|
import { F as Func } from '../../../shared/flow-rdf-core.63162669.mjs';
|
|
4
4
|
import 'eventemitter3';
|
|
5
5
|
import 'lit-html';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a3 as MapEvent, a0 as FlowCoreMap, Y as MapSourceIdentifier, av as MapFeatureId, aw as MapPluginBase, ax as PluginManager, a5 as MapSourceEvent, a4 as MapMouseEvent, Z as MapFeatureStream, ay as PartialBy, T as MapAnimationOptions, a7 as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, a9 as MapPopupOptions, aa as MapPopup, W as MapFeatureIdentifier } from '../../../shared/flow-rdf-core.
|
|
2
|
-
export { aC as EventHandlers, aB as PluginConstructor, aA as PluginEventsType, az as PluginOptionsType } from '../../../shared/flow-rdf-core.
|
|
1
|
+
import { a3 as MapEvent, a0 as FlowCoreMap, Y as MapSourceIdentifier, av as MapFeatureId, aw as MapPluginBase, ax as PluginManager, a5 as MapSourceEvent, a4 as MapMouseEvent, Z as MapFeatureStream, ay as PartialBy, T as MapAnimationOptions, a7 as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, a9 as MapPopupOptions, aa as MapPopup, W as MapFeatureIdentifier } from '../../../shared/flow-rdf-core.08156446.js';
|
|
2
|
+
export { aC as EventHandlers, aB as PluginConstructor, aA as PluginEventsType, az as PluginOptionsType } from '../../../shared/flow-rdf-core.08156446.js';
|
|
3
3
|
import { F as Func } from '../../../shared/flow-rdf-core.63162669.js';
|
|
4
4
|
import 'eventemitter3';
|
|
5
5
|
import 'lit-html';
|
|
@@ -47,11 +47,11 @@ const serializeJson = {
|
|
|
47
47
|
const serializeState = {
|
|
48
48
|
annotationType: SYNC_ANNOTATION_TYPE,
|
|
49
49
|
type: "state",
|
|
50
|
-
serialize(val,
|
|
51
|
-
return val.serialize("raw",
|
|
50
|
+
serialize(val, scope) {
|
|
51
|
+
return val.serialize("raw", scope);
|
|
52
52
|
},
|
|
53
53
|
deserialize(val, target) {
|
|
54
|
-
target.deserialize("raw"
|
|
54
|
+
target.deserialize(val, "raw");
|
|
55
55
|
return target;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
@@ -421,17 +421,17 @@ class StateStore {
|
|
|
421
421
|
*
|
|
422
422
|
* The `lz` format is designed for serializing state store properties to a URL query string.
|
|
423
423
|
*/
|
|
424
|
-
serialize(format = "raw",
|
|
424
|
+
serialize(format = "raw", scope) {
|
|
425
425
|
const annotations = this.serializationAnnotations;
|
|
426
426
|
const serializedProps = Object.keys(annotations).reduce((accum, prop) => {
|
|
427
|
-
const
|
|
427
|
+
const annotationScopes = ensureArray(annotations[prop].arg);
|
|
428
428
|
const annotationType = annotations[prop].type;
|
|
429
|
-
if (
|
|
429
|
+
if (scope && annotationType !== "state" && !annotationScopes.includes(scope)) {
|
|
430
430
|
return accum;
|
|
431
431
|
}
|
|
432
432
|
const val = this[prop];
|
|
433
433
|
if (isDefined(val)) {
|
|
434
|
-
const serializedValue = annotations[prop].serialize(val,
|
|
434
|
+
const serializedValue = annotations[prop].serialize(val, scope);
|
|
435
435
|
accum[prop] = serializedValue;
|
|
436
436
|
}
|
|
437
437
|
return accum;
|
|
@@ -472,6 +472,7 @@ class StateStore {
|
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
474
|
});
|
|
475
|
+
return deserializedValue;
|
|
475
476
|
}
|
|
476
477
|
makeObservable(overrides) {
|
|
477
478
|
if (this.initialized) {
|
package/dist/package.json.mjs
CHANGED
|
@@ -499,15 +499,15 @@ declare class StateStore {
|
|
|
499
499
|
/** Serialize to `raw` format */
|
|
500
500
|
serialize(): Record<string, string>;
|
|
501
501
|
/** Serialize to `raw` format */
|
|
502
|
-
serialize(format: 'raw',
|
|
502
|
+
serialize(format: 'raw', scope?: string): Record<string, string>;
|
|
503
503
|
/** Serialize to `json` or `lz` format */
|
|
504
|
-
serialize(format: 'json' | 'lz',
|
|
504
|
+
serialize(format: 'json' | 'lz', scope?: string): string;
|
|
505
505
|
/** Deserialize `raw` format */
|
|
506
|
-
deserialize(value: Record<string, string>):
|
|
506
|
+
deserialize(value: Record<string, string>): Record<string, any>;
|
|
507
507
|
/** Deserialize `raw` format */
|
|
508
|
-
deserialize(value: Record<string, string>, format: 'raw'):
|
|
508
|
+
deserialize(value: Record<string, string>, format: 'raw'): Record<string, any>;
|
|
509
509
|
/** Deserialize `json` or `lz` format */
|
|
510
|
-
deserialize(value: string, format: 'json' | 'lz'):
|
|
510
|
+
deserialize(value: string, format: 'json' | 'lz'): Record<string, any>;
|
|
511
511
|
private makeObservable;
|
|
512
512
|
private makeAutoObservable;
|
|
513
513
|
private checkInitialized;
|
|
@@ -499,15 +499,15 @@ declare class StateStore {
|
|
|
499
499
|
/** Serialize to `raw` format */
|
|
500
500
|
serialize(): Record<string, string>;
|
|
501
501
|
/** Serialize to `raw` format */
|
|
502
|
-
serialize(format: 'raw',
|
|
502
|
+
serialize(format: 'raw', scope?: string): Record<string, string>;
|
|
503
503
|
/** Serialize to `json` or `lz` format */
|
|
504
|
-
serialize(format: 'json' | 'lz',
|
|
504
|
+
serialize(format: 'json' | 'lz', scope?: string): string;
|
|
505
505
|
/** Deserialize `raw` format */
|
|
506
|
-
deserialize(value: Record<string, string>):
|
|
506
|
+
deserialize(value: Record<string, string>): Record<string, any>;
|
|
507
507
|
/** Deserialize `raw` format */
|
|
508
|
-
deserialize(value: Record<string, string>, format: 'raw'):
|
|
508
|
+
deserialize(value: Record<string, string>, format: 'raw'): Record<string, any>;
|
|
509
509
|
/** Deserialize `json` or `lz` format */
|
|
510
|
-
deserialize(value: string, format: 'json' | 'lz'):
|
|
510
|
+
deserialize(value: string, format: 'json' | 'lz'): Record<string, any>;
|
|
511
511
|
private makeObservable;
|
|
512
512
|
private makeAutoObservable;
|
|
513
513
|
private checkInitialized;
|