@emuanalytics/flow-rdf-core 4.0.0-preview.7 → 4.0.1
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.cjs +681 -670
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +647 -647
- package/dist/lib/map/plugins/index.cjs +39 -37
- package/dist/lib/map/plugins/index.d.cts +8 -8
- package/dist/lib/map/plugins/index.d.mts +8 -8
- package/dist/lib/map/plugins/index.d.ts +8 -8
- package/dist/lib/map/plugins/index.mjs +12 -10
- package/dist/lib/utils/index.cjs +31 -29
- package/dist/lib/utils/index.d.cts +10 -9
- package/dist/lib/utils/index.d.mts +10 -9
- package/dist/lib/utils/index.d.ts +10 -9
- package/dist/lib/utils/index.mjs +4 -3
- package/dist/shared/{flow-rdf-core.ea06a1d3.mjs → flow-rdf-core.187cb345.mjs} +1 -1
- package/dist/shared/{flow-rdf-core.bd95d618.mjs → flow-rdf-core.1f0901c5.mjs} +1 -1
- package/dist/shared/{flow-rdf-core.b80085b4.mjs → flow-rdf-core.25e5f6d7.mjs} +9 -1
- package/dist/shared/{flow-rdf-core.1f72b20b.cjs → flow-rdf-core.55c169ca.cjs} +2 -2
- package/dist/shared/{flow-rdf-core.1f9c0593.cjs → flow-rdf-core.9b5dad76.cjs} +26 -34
- package/dist/shared/{flow-rdf-core.84eded74.cjs → flow-rdf-core.a82b9be4.cjs} +4 -4
- package/dist/shared/{flow-rdf-core.769a4928.d.mts → flow-rdf-core.dd931ace.d.cts} +817 -818
- package/dist/shared/{flow-rdf-core.769a4928.d.ts → flow-rdf-core.dd931ace.d.mts} +817 -818
- package/dist/shared/{flow-rdf-core.769a4928.d.cts → flow-rdf-core.dd931ace.d.ts} +817 -818
- package/dist/shared/{flow-rdf-core.ce91eb14.mjs → flow-rdf-core.e2b1bb7f.mjs} +2 -9
- package/dist/shared/{flow-rdf-core.3042be4a.cjs → flow-rdf-core.f50908f0.cjs} +9 -0
- package/package.json +5 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as mobx from 'mobx';
|
|
2
2
|
import { makeObservable, observable, computed, action, onBecomeObserved, onBecomeUnobserved, runInAction } from 'mobx';
|
|
3
|
-
import { f as isString, j as isArray, b as isNil, d as isDefined, r as isIn, g as isStringFull, z as isURL, n as isObjectFull, c as capitalize } from './flow-rdf-core.
|
|
3
|
+
import { f as isString, j as isArray, b as isNil, d as isDefined, r as isIn, g as isStringFull, z as isURL, n as isObjectFull, c as capitalize } from './flow-rdf-core.25e5f6d7.mjs';
|
|
4
4
|
import * as maplibreSpec from '@emuanalytics/maplibre-gl-style-spec';
|
|
5
5
|
import { toStream } from 'mobx-utils';
|
|
6
6
|
import P from 'parsimmon';
|
|
7
7
|
import colorbrewer from 'colorbrewer';
|
|
8
|
-
import { customAlphabet } from 'nanoid';
|
|
9
8
|
import Debug from 'debug';
|
|
10
9
|
|
|
11
10
|
class FlowError extends Error {
|
|
@@ -912,12 +911,6 @@ function die(message) {
|
|
|
912
911
|
throw new FlowError(message);
|
|
913
912
|
}
|
|
914
913
|
|
|
915
|
-
const nanoid = customAlphabet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01923456789", 10);
|
|
916
|
-
const randomId = (prefix, length) => {
|
|
917
|
-
const id = nanoid(length);
|
|
918
|
-
return prefix ? `${prefix}-${id}` : id;
|
|
919
|
-
};
|
|
920
|
-
|
|
921
914
|
var __defProp$3 = Object.defineProperty;
|
|
922
915
|
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
923
916
|
var __publicField$3 = (obj, key, value) => {
|
|
@@ -1355,4 +1348,4 @@ class MapFeatureStream {
|
|
|
1355
1348
|
}
|
|
1356
1349
|
}
|
|
1357
1350
|
|
|
1358
|
-
export { FlowError as F, MapEvent as M, PluginManager as P, ReactiveExpression as R, assert as a, MapFeatureStream as b, FlowMapError as c, MapDataSource as d, MapLayer as e, MapStyleChangeEvent as f, MapSourceEvent as g, MapLoadingEvent as h, MapMouseEvent as i, die as j
|
|
1351
|
+
export { FlowError as F, MapEvent as M, PluginManager as P, ReactiveExpression as R, assert as a, MapFeatureStream as b, FlowMapError as c, MapDataSource as d, MapLayer as e, MapStyleChangeEvent as f, MapSourceEvent as g, MapLoadingEvent as h, MapMouseEvent as i, die as j };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const nanoid$1 = require('nanoid');
|
|
4
|
+
|
|
3
5
|
const isUndefined = (val) => typeof val === "undefined";
|
|
4
6
|
const isNull = (val) => val === null;
|
|
5
7
|
const isNil = (val) => isUndefined(val) || isNull(val);
|
|
@@ -65,6 +67,12 @@ function ensureArray(a, ...rest) {
|
|
|
65
67
|
|
|
66
68
|
const capitalize = (str, lowerRest = false) => str.slice(0, 1).toUpperCase() + (lowerRest ? str.slice(1).toLowerCase() : str.slice(1));
|
|
67
69
|
|
|
70
|
+
const nanoid = nanoid$1.customAlphabet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01923456789", 10);
|
|
71
|
+
function randomId(prefix, length) {
|
|
72
|
+
const id = nanoid(length);
|
|
73
|
+
return prefix ? `${prefix}-${id}` : id;
|
|
74
|
+
}
|
|
75
|
+
|
|
68
76
|
exports.capitalize = capitalize;
|
|
69
77
|
exports.ensureArray = ensureArray;
|
|
70
78
|
exports.hasLength = hasLength;
|
|
@@ -91,3 +99,4 @@ exports.isTrue = isTrue;
|
|
|
91
99
|
exports.isURL = isURL;
|
|
92
100
|
exports.isUndefined = isUndefined;
|
|
93
101
|
exports.isValue = isValue;
|
|
102
|
+
exports.randomId = randomId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emuanalytics/flow-rdf-core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -63,6 +63,9 @@
|
|
|
63
63
|
"react": "^18.2.0",
|
|
64
64
|
"react-dom": "^18.2.0",
|
|
65
65
|
"storybook": "^7.1.1",
|
|
66
|
+
"typedoc": "^0.26.8",
|
|
67
|
+
"typedoc-plugin-markdown": "^4.2.9",
|
|
68
|
+
"typedoc-vitepress-theme": "^1.0.2",
|
|
66
69
|
"tsx": "^4.19.1",
|
|
67
70
|
"typescript": "^5.6.3",
|
|
68
71
|
"unbuild": "^2.0.0",
|
|
@@ -103,6 +106,7 @@
|
|
|
103
106
|
"build": "pnpm run build:css && unbuild && pnpm run build:fix",
|
|
104
107
|
"build:fix": "tsx scripts/fix-up-build-output.mts",
|
|
105
108
|
"build:css": "postcss src/css/flow-rdf-core.css -o styles/flow-rdf-core.css --config postcss.custom-config.js",
|
|
109
|
+
"build:docs": "typedoc",
|
|
106
110
|
"dev": "vitest dev",
|
|
107
111
|
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
|
|
108
112
|
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
|