@sqlrooms/deck 0.29.0-rc.12 → 0.29.0-rc.13
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 +144 -22
- package/dist/DeckJsonMap.d.ts.map +1 -1
- package/dist/DeckJsonMap.js +58 -12
- package/dist/DeckJsonMap.js.map +1 -1
- package/dist/DeckMapBasemapSelect.d.ts +9 -0
- package/dist/DeckMapBasemapSelect.d.ts.map +1 -0
- package/dist/DeckMapBasemapSelect.js +20 -0
- package/dist/DeckMapBasemapSelect.js.map +1 -0
- package/dist/DeckMapDefaultStylesProvider.d.ts +13 -19
- package/dist/DeckMapDefaultStylesProvider.d.ts.map +1 -1
- package/dist/DeckMapDefaultStylesProvider.js +11 -18
- package/dist/DeckMapDefaultStylesProvider.js.map +1 -1
- package/dist/DeckMapsSlice.d.ts +5 -0
- package/dist/DeckMapsSlice.d.ts.map +1 -1
- package/dist/DeckMapsSlice.js +6 -3
- package/dist/DeckMapsSlice.js.map +1 -1
- package/dist/MapSettings.d.ts.map +1 -1
- package/dist/MapSettings.js +3 -2
- package/dist/MapSettings.js.map +1 -1
- package/dist/ai.d.ts.map +1 -1
- package/dist/ai.js +15 -10
- package/dist/ai.js.map +1 -1
- package/dist/basemap.d.ts +23 -0
- package/dist/basemap.d.ts.map +1 -0
- package/dist/basemap.js +23 -0
- package/dist/basemap.js.map +1 -0
- package/dist/block.d.ts.map +1 -1
- package/dist/block.js +12 -8
- package/dist/block.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/mapAiSharedInstructions.d.ts.map +1 -1
- package/dist/mapAiSharedInstructions.js +1 -0
- package/dist/mapAiSharedInstructions.js.map +1 -1
- package/dist/mapConfig.d.ts +5 -0
- package/dist/mapConfig.d.ts.map +1 -1
- package/dist/mapConfig.js +28 -3
- package/dist/mapConfig.js.map +1 -1
- package/dist/mapConfigUtils.d.ts.map +1 -1
- package/dist/mapConfigUtils.js +7 -2
- package/dist/mapConfigUtils.js.map +1 -1
- package/dist/mapStyles.d.ts +16 -0
- package/dist/mapStyles.d.ts.map +1 -0
- package/dist/mapStyles.js +32 -0
- package/dist/mapStyles.js.map +1 -0
- package/dist/protomapsStyles.d.ts +18 -0
- package/dist/protomapsStyles.d.ts.map +1 -0
- package/dist/protomapsStyles.js +38 -0
- package/dist/protomapsStyles.js.map +1 -0
- package/dist/types.d.ts +13 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +11 -9
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAkIA,MAAM,UAAU,iBAAiB,CAC/B,KAAuB;IAEvB,OAAO,UAAU,IAAI,KAAK,CAAC;AAC7B,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,mBAAmB,CACjC,KAAuB;IAEvB,OAAO,WAAW,IAAI,KAAK,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,KAAuB;IAEvB,OAAO,YAAY,IAAI,KAAK,CAAC;AAC/B,CAAC","sourcesContent":["import type * as arrow from 'apache-arrow';\nimport type {ComponentProps, ReactNode} from 'react';\nimport type DeckGLReact from '@deck.gl/react';\nimport type {MapProps} from 'react-map-gl/maplibre';\nimport type {DeckMapBasemapProvider} from './basemap';\n\ntype DeckProps = ComponentProps<typeof DeckGLReact>;\nimport type {GeometryEncodingHint, PreparedDeckDataset} from './prepare/types';\n\nexport type {\n ColorScaleFunction,\n DeckJsonMapLayerSpec,\n DeckJsonMapSpec,\n LayerBindingConfig,\n LayerBindingProps,\n} from './DeckJsonMapSpec';\n\ntype DeckDatasetBase = {\n geometryColumn?: string;\n geometryEncodingHint?: GeometryEncodingHint;\n};\n\nexport type DeckAutoLayerType =\n | 'GeoJsonLayer'\n | 'GeoArrowScatterplotLayer'\n | 'GeoArrowHeatmapLayer'\n | 'GeoArrowColumnLayer'\n | 'GeoArrowPathLayer'\n | 'GeoArrowPolygonLayer'\n | 'GeoArrowSolidPolygonLayer'\n | 'GeoArrowArcLayer'\n | 'GeoArrowTripsLayer'\n | 'GeoArrowH3HexagonLayer';\n\nexport type DeckSqlDatasetInput = DeckDatasetBase & {\n /**\n * Literal SQL query used as the full dataset source.\n *\n * SQLRooms does not rewrite this query when dashboard selected tables change.\n * Use `DeckTableDatasetInput` when a dataset should follow a structured\n * table source.\n */\n sqlQuery: string;\n};\n\n/**\n * Structured table-backed dataset source.\n *\n * `tableName` identifies the source relation. When `transformSql` is present,\n * it must be a complete SELECT query that reads from the reserved\n * `__sqlrooms_source` relation supplied by SQLRooms at execution time.\n */\nexport type DeckTableDatasetInput = DeckDatasetBase & {\n tableName: string;\n transformSql?: string;\n};\n\nexport type DeckTable = arrow.Table;\n\nexport type DeckArrowTableDatasetInput = DeckDatasetBase & {\n arrowTable: DeckTable | undefined;\n};\nexport type DeckDatasetInput =\n | DeckSqlDatasetInput\n | DeckTableDatasetInput\n | DeckArrowTableDatasetInput;\n\nexport type DeckJsonSpecDatasetHint = {\n prefer?: 'heatmap';\n type?: DeckAutoLayerType;\n sourceGeometryColumn?: string;\n targetGeometryColumn?: string;\n timestampColumn?: string;\n hexagonColumn?: string;\n};\n\nexport type CreateDeckJsonSpecFromDatasetsOptions = {\n datasets: Record<string, DeckDatasetInput>;\n hints?: Record<string, DeckJsonSpecDatasetHint>;\n};\n\nexport type PreparedDeckDatasetState =\n | {status: 'loading'}\n | {status: 'ready'; prepared: PreparedDeckDataset}\n | {status: 'error'; error: Error};\n\nexport type DeckJsonMapHandle = {\n jumpTo: (opts: {\n longitude: number;\n latitude: number;\n zoom: number;\n bearing?: number;\n pitch?: number;\n }) => void;\n};\n\n/**\n * Renders a JSON deck.gl specification with named datasets in a room store.\n * A per-map basemap provider overrides the room's provider; explicit custom\n * map styles take precedence over both providers.\n */\nexport type DeckJsonMapProps = {\n spec: string | Record<string, unknown>;\n datasets: Record<string, DeckDatasetInput>;\n mapStyle?: string;\n /** Overrides the room's optional basemap provider for this map instance. */\n basemapProvider?: DeckMapBasemapProvider;\n /**\n * When true, deck.gl renders into the map's own WebGL context rather than\n * creating a separate overlay canvas. This halves the number of WebGL\n * contexts per map panel (from 2 to 1), which matters because browsers\n * limit active contexts to ~8–16 per page. Defaults to true.\n */\n interleaved?: boolean;\n deckProps?: Partial<DeckProps>;\n /**\n * MapLibre runtime props. Drawing-buffer preservation defaults to true so\n * DOM image capture includes the basemap and interleaved deck layers.\n * Set canvasContextAttributes.preserveDrawingBuffer to false to opt out.\n */\n mapProps?: Partial<MapProps>;\n showLegends?: boolean;\n className?: string;\n children?: ReactNode;\n onDatasetStatesChange?: (\n states: Record<string, PreparedDeckDatasetState>,\n ) => void;\n onRenderingError?: (error: Error) => void;\n};\n\nexport function isSqlDatasetInput(\n input: DeckDatasetInput,\n): input is DeckSqlDatasetInput {\n return 'sqlQuery' in input;\n}\n\n/** Returns true when the dataset input describes a structured table source. */\nexport function isTableDatasetInput(\n input: DeckDatasetInput,\n): input is DeckTableDatasetInput {\n return 'tableName' in input;\n}\n\nexport function isArrowTableDatasetInput(\n input: DeckDatasetInput,\n): input is DeckArrowTableDatasetInput {\n return 'arrowTable' in input;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/deck",
|
|
3
|
-
"version": "0.29.0-rc.
|
|
3
|
+
"version": "0.29.0-rc.13",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/sqlrooms/sqlrooms.git"
|
|
@@ -49,11 +49,12 @@
|
|
|
49
49
|
"@loaders.gl/gis": "^4.4.1",
|
|
50
50
|
"@loaders.gl/wkt": "^4.4.1",
|
|
51
51
|
"@paralleldrive/cuid2": "^3.0.0",
|
|
52
|
-
"@
|
|
53
|
-
"@sqlrooms/
|
|
54
|
-
"@sqlrooms/
|
|
55
|
-
"@sqlrooms/
|
|
56
|
-
"@sqlrooms/
|
|
52
|
+
"@protomaps/basemaps": "^5.7.2",
|
|
53
|
+
"@sqlrooms/color-scales": "0.29.0-rc.13",
|
|
54
|
+
"@sqlrooms/documents": "0.29.0-rc.13",
|
|
55
|
+
"@sqlrooms/duckdb": "0.29.0-rc.13",
|
|
56
|
+
"@sqlrooms/room-store": "0.29.0-rc.13",
|
|
57
|
+
"@sqlrooms/ui": "0.29.0-rc.13",
|
|
57
58
|
"ai": "^6.0.177",
|
|
58
59
|
"immer": "^11.0.1",
|
|
59
60
|
"lucide-react": "^0.555.0",
|
|
@@ -64,16 +65,17 @@
|
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
67
|
"@jest/globals": "^30.3.0",
|
|
67
|
-
"@sqlrooms/mosaic": "0.29.0-rc.
|
|
68
|
+
"@sqlrooms/mosaic": "0.29.0-rc.13",
|
|
68
69
|
"@types/geojson": "^7946.0.16",
|
|
69
70
|
"@types/jest": "^30.0.0",
|
|
70
71
|
"@uwdata/mosaic-core": "^0.21.0",
|
|
71
72
|
"@uwdata/mosaic-sql": "^0.21.0",
|
|
72
73
|
"jest": "^30.1.3",
|
|
74
|
+
"jest-environment-jsdom": "^30.4.1",
|
|
73
75
|
"ts-jest": "^29.4.4"
|
|
74
76
|
},
|
|
75
77
|
"peerDependencies": {
|
|
76
|
-
"@sqlrooms/mosaic": "0.29.0-rc.
|
|
78
|
+
"@sqlrooms/mosaic": "0.29.0-rc.13",
|
|
77
79
|
"@uwdata/mosaic-core": "^0.21.0",
|
|
78
80
|
"@uwdata/mosaic-sql": "^0.21.0",
|
|
79
81
|
"apache-arrow": "17.0.0",
|
|
@@ -94,5 +96,5 @@
|
|
|
94
96
|
"publishConfig": {
|
|
95
97
|
"access": "public"
|
|
96
98
|
},
|
|
97
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "d183fe9164e5f67c23b358328ca03dbf77a035a4"
|
|
98
100
|
}
|