@emuanalytics/flow-rdf-core 0.0.21 → 0.0.22

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 CHANGED
@@ -33,6 +33,17 @@ const Debug__default = /*#__PURE__*/_interopDefaultCompat(Debug);
33
33
  const EventEmitter__default = /*#__PURE__*/_interopDefaultCompat(EventEmitter);
34
34
  const maplibre__default = /*#__PURE__*/_interopDefaultCompat(maplibre);
35
35
 
36
+ const version = "0.0.22";
37
+
38
+ const CONSOLE_HIGHLIGHT_STYLE$1 = `
39
+ padding: 2px 4px;
40
+ border-radius: 2px;
41
+ background: #389DFF;
42
+ color: white;`;
43
+ function announce() {
44
+ console.log("%cFlo.w RDF Core v%s", CONSOLE_HIGHLIGHT_STYLE$1, version);
45
+ }
46
+
36
47
  const mockGlobal = {};
37
48
  function getGlobal() {
38
49
  if (typeof globalThis !== "undefined") {
@@ -65,7 +76,7 @@ var __publicField$d = (obj, key, value) => {
65
76
  return value;
66
77
  };
67
78
  const FLOW_GLOBAL = "FDBG";
68
- const CONSOLE_HIGHLIGHT_STYLE$1 = `
79
+ const CONSOLE_HIGHLIGHT_STYLE = `
69
80
  padding: 2px 4px;
70
81
  border-radius: 2px;
71
82
  background: #389DFF;
@@ -164,17 +175,17 @@ class Debugger {
164
175
  }
165
176
  }
166
177
  spyListener(event) {
167
- console.log(`%cspy`, CONSOLE_HIGHLIGHT_STYLE$1, event);
178
+ console.log(`%cspy`, CONSOLE_HIGHLIGHT_STYLE, event);
168
179
  }
169
180
  logStateValue(path) {
170
181
  const value = toJSHelper(this.context.state.get(path), { recurseEverything: false });
171
- console.log(`%cwatch%c %s`, CONSOLE_HIGHLIGHT_STYLE$1, CONSOLE_BOLD_STYLE, path, value);
182
+ console.log(`%cwatch%c %s`, CONSOLE_HIGHLIGHT_STYLE, CONSOLE_BOLD_STYLE, path, value);
172
183
  }
173
184
  }
174
185
  function installGlobalDebugger(dbg) {
175
186
  console.log(
176
187
  `%cFlow.w RDF Debbugger`,
177
- CONSOLE_HIGHLIGHT_STYLE$1,
188
+ CONSOLE_HIGHLIGHT_STYLE,
178
189
  `Enabled for context '${dbg.context.id}' - access using ${FLOW_GLOBAL} in web developer console.`
179
190
  );
180
191
  const g = typeof global !== "undefined" ? global : window;
@@ -525,12 +536,10 @@ let globalState = function() {
525
536
  return new FlowRdfCoreGlobals();
526
537
  } else if (global.__flowRdfCoreGlobals) {
527
538
  global.__flowRdfCoreInstanceCount += 1;
528
- if (!global.__mobxGlobals.UNCHANGED) {
529
- global.__mobxGlobals.UNCHANGED = {};
530
- }
531
539
  return global.__flowRdfCoreGlobals;
532
540
  } else {
533
- global.__mobxInstanceCount = 1;
541
+ global.__flowRdfCoreInstanceCount = 1;
542
+ announce();
534
543
  return global.__flowRdfCoreGlobals = new FlowRdfCoreGlobals();
535
544
  }
536
545
  }();
@@ -548,17 +557,6 @@ function getGlobalState() {
548
557
  return globalState;
549
558
  }
550
559
 
551
- const version = "0.0.21";
552
-
553
- const CONSOLE_HIGHLIGHT_STYLE = `
554
- padding: 2px 4px;
555
- border-radius: 2px;
556
- background: #389DFF;
557
- color: white;`;
558
- function announce() {
559
- console.log("%cFlo.w RDF Core v%s", CONSOLE_HIGHLIGHT_STYLE, version);
560
- }
561
-
562
560
  var __defProp$7 = Object.defineProperty;
563
561
  var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
564
562
  var __publicField$7 = (obj, key, value) => {
@@ -3171,7 +3169,6 @@ const globalContextRegistry = getGlobalState().globalContextRegistry;
3171
3169
  const initializeContext = globalContextRegistry.initializeContext.bind(globalContextRegistry);
3172
3170
  const uninitializeContext = globalContextRegistry.uninitializeContext.bind(globalContextRegistry);
3173
3171
  const getContext = globalContextRegistry.getContext.bind(globalContextRegistry);
3174
- announce();
3175
3172
 
3176
3173
  exports.MapDataSource = mapFeatureStream.MapDataSource;
3177
3174
  exports.MapLayer = mapFeatureStream.MapLayer;
package/dist/index.mjs CHANGED
@@ -13,6 +13,17 @@ import 'parsimmon';
13
13
  import 'colorbrewer';
14
14
  import 'nanoid';
15
15
 
16
+ const version = "0.0.22";
17
+
18
+ const CONSOLE_HIGHLIGHT_STYLE$1 = `
19
+ padding: 2px 4px;
20
+ border-radius: 2px;
21
+ background: #389DFF;
22
+ color: white;`;
23
+ function announce() {
24
+ console.log("%cFlo.w RDF Core v%s", CONSOLE_HIGHLIGHT_STYLE$1, version);
25
+ }
26
+
16
27
  const mockGlobal = {};
17
28
  function getGlobal() {
18
29
  if (typeof globalThis !== "undefined") {
@@ -45,7 +56,7 @@ var __publicField$d = (obj, key, value) => {
45
56
  return value;
46
57
  };
47
58
  const FLOW_GLOBAL = "FDBG";
48
- const CONSOLE_HIGHLIGHT_STYLE$1 = `
59
+ const CONSOLE_HIGHLIGHT_STYLE = `
49
60
  padding: 2px 4px;
50
61
  border-radius: 2px;
51
62
  background: #389DFF;
@@ -144,17 +155,17 @@ class Debugger {
144
155
  }
145
156
  }
146
157
  spyListener(event) {
147
- console.log(`%cspy`, CONSOLE_HIGHLIGHT_STYLE$1, event);
158
+ console.log(`%cspy`, CONSOLE_HIGHLIGHT_STYLE, event);
148
159
  }
149
160
  logStateValue(path) {
150
161
  const value = toJSHelper(this.context.state.get(path), { recurseEverything: false });
151
- console.log(`%cwatch%c %s`, CONSOLE_HIGHLIGHT_STYLE$1, CONSOLE_BOLD_STYLE, path, value);
162
+ console.log(`%cwatch%c %s`, CONSOLE_HIGHLIGHT_STYLE, CONSOLE_BOLD_STYLE, path, value);
152
163
  }
153
164
  }
154
165
  function installGlobalDebugger(dbg) {
155
166
  console.log(
156
167
  `%cFlow.w RDF Debbugger`,
157
- CONSOLE_HIGHLIGHT_STYLE$1,
168
+ CONSOLE_HIGHLIGHT_STYLE,
158
169
  `Enabled for context '${dbg.context.id}' - access using ${FLOW_GLOBAL} in web developer console.`
159
170
  );
160
171
  const g = typeof global !== "undefined" ? global : window;
@@ -505,12 +516,10 @@ let globalState = function() {
505
516
  return new FlowRdfCoreGlobals();
506
517
  } else if (global.__flowRdfCoreGlobals) {
507
518
  global.__flowRdfCoreInstanceCount += 1;
508
- if (!global.__mobxGlobals.UNCHANGED) {
509
- global.__mobxGlobals.UNCHANGED = {};
510
- }
511
519
  return global.__flowRdfCoreGlobals;
512
520
  } else {
513
- global.__mobxInstanceCount = 1;
521
+ global.__flowRdfCoreInstanceCount = 1;
522
+ announce();
514
523
  return global.__flowRdfCoreGlobals = new FlowRdfCoreGlobals();
515
524
  }
516
525
  }();
@@ -528,17 +537,6 @@ function getGlobalState() {
528
537
  return globalState;
529
538
  }
530
539
 
531
- const version = "0.0.21";
532
-
533
- const CONSOLE_HIGHLIGHT_STYLE = `
534
- padding: 2px 4px;
535
- border-radius: 2px;
536
- background: #389DFF;
537
- color: white;`;
538
- function announce() {
539
- console.log("%cFlo.w RDF Core v%s", CONSOLE_HIGHLIGHT_STYLE, version);
540
- }
541
-
542
540
  var __defProp$7 = Object.defineProperty;
543
541
  var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
544
542
  var __publicField$7 = (obj, key, value) => {
@@ -3151,6 +3149,5 @@ const globalContextRegistry = getGlobalState().globalContextRegistry;
3151
3149
  const initializeContext = globalContextRegistry.initializeContext.bind(globalContextRegistry);
3152
3150
  const uninitializeContext = globalContextRegistry.uninitializeContext.bind(globalContextRegistry);
3153
3151
  const getContext = globalContextRegistry.getContext.bind(globalContextRegistry);
3154
- announce();
3155
3152
 
3156
3153
  export { ContextRegistry, DEFAULT_CONTEXT_ID, FlowContext, FlowMap, FlowRdfCoreGlobals, MapDataSource, MapLayer, MapLayerStyleBuilder, MapStyle, Query, ReactiveExpression, StateStore, StyleExpression, computed, expr, getContext, getGlobalState, initializeContext, isolateGlobalState, layerStyle, observable, query, queryMany, queryOne, serialize, traceReaction, uninitializeContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emuanalytics/flow-rdf-core",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "type": "module",