@kanzo-tech/mosaic 0.15.0 → 0.16.0

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/README.md CHANGED
@@ -58,13 +58,10 @@ import { engine } from "@kanzo-tech/mosaic";
58
58
 
59
59
  ## Why it is not part of `@kanzo-tech/ui`
60
60
 
61
- It was, and the cost landed somewhere else. `@kanzo-tech/graph/duckdb` reached its coordinator
62
- through `@kanzo-tech/ui/analytics`, whose barrel re-exports the React charts first — and calls
63
- `@uwdata/vgplot` doing it. The import is static, so a host that installed the two peers the docs
64
- asked for still could not open that subpath: vgplot came along, unasked and unused.
61
+ Reading a column out of an answer and publishing a clause are not user-interface concerns, and the
62
+ consumers that need them are not all charts. `@kanzo-tech/graph` depends on this package and not on
63
+ `@kanzo-tech/ui/analytics`, whose barrel imports `@uwdata/vgplot` statically: a host that draws a
64
+ graph and no chart installs no vgplot.
65
65
 
66
- Reading a column out of an answer and publishing a clause are not user-interface concerns. They
67
- lived in a component library only because that is where the first chart needed them.
68
-
69
- The charts did not move. [`@kanzo-tech/ui/analytics`](https://kanzo-tech.github.io/ui) exports
70
- every name it exported before, these among them.
66
+ `@kanzo-tech/ui/analytics` keeps the charts and re-exports these names, so a chart consumer imports
67
+ from one place.
package/dist/index.d.ts CHANGED
@@ -1,24 +1,13 @@
1
1
  /**
2
- * The Mosaic conversation, as one import.
2
+ * The Mosaic conversation, as one import, with no React in it.
3
3
  *
4
- * This package exists because of a bug that shipped. `@kanzo-tech/graph/duckdb` reached its
5
- * coordinator, clients and clauses through `@kanzo-tech/ui/analytics`, whose barrel re-exports the
6
- * React charts first — and `@uwdata/vgplot` with them. The import is static, so a host that
7
- * installed the two peers the documentation asked for, `mosaic-core` and `mosaic-sql`, still could
8
- * not open the subpath: vgplot came along, unasked and unused. `@kanzo-tech/graph` ended up
9
- * declaring vgplot as an optional peer to paper over a dependency it never names.
4
+ * Reading a column out of an Arrow answer and publishing a clause are not user-interface concerns,
5
+ * so they live here and both `@kanzo-tech/graph` and `@kanzo-tech/ui/analytics` depend on this
6
+ * rather than on each other; the graph never pulls in vgplot. `@kanzo-tech/ui/analytics` re-exports
7
+ * these names.
10
8
  *
11
- * The cause was a layer in the wrong package rather than a missing entry in a list. Reading a
12
- * column out of an Arrow answer and publishing a points clause are not user-interface concerns;
13
- * they were only in a component library because that is where the first chart needed them.
14
- *
15
- * So: the data half lives here, with no React anywhere in it, and both consumers depend on this
16
- * rather than on each other. `@kanzo-tech/ui/analytics` keeps every chart and re-exports these
17
- * names unchanged, so nothing on that surface moves.
18
- *
19
- * The re-exports below are deliberate rather than lazy. A single import site for `Coordinator` and
20
- * `Selection` is what makes one copy of Mosaic the easy outcome, and two copies would be two
21
- * crossfilters that never hear each other.
9
+ * The re-exports are deliberate: one import site for `Coordinator` and `Selection` makes one copy
10
+ * of Mosaic the easy outcome, and two copies would be two crossfilters that never hear each other.
22
11
  */
23
12
  export { Coordinator, MosaicClient, Selection, makeClient, clausePoint, clausePoints, clauseInterval, clauseIntervals, clauseMatch, type SelectionClause, } from "@uwdata/mosaic-core";
24
13
  export { Query, asc, desc, loadCSV, loadJSON, loadObjects, loadParquet, loadSpatial, loadExtension, type ExprValue, type FilterExpr, } from "@uwdata/mosaic-sql";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,WAAW,EACX,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,EACL,GAAG,EACH,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,KAAK,SAAS,EACd,KAAK,UAAU,GAChB,MAAM,oBAAoB,CAAC;AAE5B,gGAAgG;AAChG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE7C,0GAA0G;AAC1G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,WAAW,EACX,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,EACL,GAAG,EACH,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,KAAK,SAAS,EACd,KAAK,UAAU,GAChB,MAAM,oBAAoB,CAAC;AAE5B,gGAAgG;AAChG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE7C,0GAA0G;AAC1G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1,24 +1,13 @@
1
1
  /**
2
- * The Mosaic conversation, as one import.
2
+ * The Mosaic conversation, as one import, with no React in it.
3
3
  *
4
- * This package exists because of a bug that shipped. `@kanzo-tech/graph/duckdb` reached its
5
- * coordinator, clients and clauses through `@kanzo-tech/ui/analytics`, whose barrel re-exports the
6
- * React charts first — and `@uwdata/vgplot` with them. The import is static, so a host that
7
- * installed the two peers the documentation asked for, `mosaic-core` and `mosaic-sql`, still could
8
- * not open the subpath: vgplot came along, unasked and unused. `@kanzo-tech/graph` ended up
9
- * declaring vgplot as an optional peer to paper over a dependency it never names.
4
+ * Reading a column out of an Arrow answer and publishing a clause are not user-interface concerns,
5
+ * so they live here and both `@kanzo-tech/graph` and `@kanzo-tech/ui/analytics` depend on this
6
+ * rather than on each other; the graph never pulls in vgplot. `@kanzo-tech/ui/analytics` re-exports
7
+ * these names.
10
8
  *
11
- * The cause was a layer in the wrong package rather than a missing entry in a list. Reading a
12
- * column out of an Arrow answer and publishing a points clause are not user-interface concerns;
13
- * they were only in a component library because that is where the first chart needed them.
14
- *
15
- * So: the data half lives here, with no React anywhere in it, and both consumers depend on this
16
- * rather than on each other. `@kanzo-tech/ui/analytics` keeps every chart and re-exports these
17
- * names unchanged, so nothing on that surface moves.
18
- *
19
- * The re-exports below are deliberate rather than lazy. A single import site for `Coordinator` and
20
- * `Selection` is what makes one copy of Mosaic the easy outcome, and two copies would be two
21
- * crossfilters that never hear each other.
9
+ * The re-exports are deliberate: one import site for `Coordinator` and `Selection` makes one copy
10
+ * of Mosaic the easy outcome, and two copies would be two crossfilters that never hear each other.
22
11
  */
23
12
  export { Coordinator, MosaicClient, Selection, makeClient, clausePoint, clausePoints, clauseInterval, clauseIntervals, clauseMatch, } from "@uwdata/mosaic-core";
24
13
  export { Query, asc, desc, loadCSV, loadJSON, loadObjects, loadParquet, loadSpatial, loadExtension, } from "@uwdata/mosaic-sql";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,WAAW,GAEZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,EACL,GAAG,EACH,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,GAGd,MAAM,oBAAoB,CAAC;AAE5B,gGAAgG;AAChG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE7C,0GAA0G;AAC1G,OAAO,EAAkB,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAe,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,WAAW,GAEZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,EACL,GAAG,EACH,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,GAGd,MAAM,oBAAoB,CAAC;AAE5B,gGAAgG;AAChG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE7C,0GAA0G;AAC1G,OAAO,EAAkB,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAe,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kanzo-tech/mosaic",
3
- "version": "0.15.0",
4
- "description": "The Mosaic conversation, without React — coordinator, clients and clauses re-exported as one surface, plus the Arrow column reader and the id-set client that every consumer of them was writing by hand.",
3
+ "version": "0.16.0",
4
+ "description": "The Mosaic conversation, without React — coordinator, clients and clauses re-exported as one surface, plus the Arrow column reader and the page's one DuckDB-WASM engine.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,