@tileflow/dev 0.1.0-alpha.19 → 0.1.0-alpha.20
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 +88 -44
- package/dist/artifacts.d.ts +42 -3
- package/dist/artifacts.js +13 -4
- package/dist/{chunk-BKHIZ7H2.js → chunk-6MGFMKG3.js} +3 -6
- package/dist/{chunk-BALG4DSG.js → chunk-CENQR5Q2.js} +2 -2
- package/dist/{chunk-OEABXOJH.js → chunk-KH7CMHT3.js} +117 -39
- package/dist/{chunk-ZRI6PNFL.js → chunk-LNCTVFUD.js} +32 -7
- package/dist/{chunk-GWUMIHL6.js → chunk-MIGBHCXX.js} +29 -15
- package/dist/{chunk-ZOYFZ3MT.js → chunk-MKPSQSMX.js} +7 -3
- package/dist/chunk-ONYQNLNA.js +1108 -0
- package/dist/{chunk-VEB43KDS.js → chunk-RSBV4L2Y.js} +7 -6
- package/dist/{chunk-O7PE6FB2.js → chunk-XTRHREXO.js} +629 -151
- package/dist/config.js +1 -1
- package/dist/fonts.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +27 -9
- package/dist/inspect.d.ts +3 -1
- package/dist/inspect.js +7 -5
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +2 -2
- package/dist/server.d.ts +7 -3
- package/dist/server.js +6 -5
- package/dist/tilesets-C0tGeenP.d.ts +94 -0
- package/dist/tilesets.d.ts +1 -0
- package/dist/tilesets.js +6 -0
- package/dist/validation.d.ts +7 -1
- package/dist/validation.js +3 -1
- package/package.json +9 -4
package/dist/config.js
CHANGED
package/dist/fonts.js
CHANGED
package/dist/icons.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { CreateTileflowArtifactPlanOptions, TileflowArtifactDiagnostic, TileflowArtifactFile, TileflowArtifactInputGraph, TileflowArtifactPlan, TileflowArtifactSession, TileflowArtifactSessionOptions, TileflowArtifactSessionState, TileflowBuildArtifacts, TileflowBuildArtifactsOptions, TileflowBuildStyleInspections, TileflowHostedManifestOverwriteError, TileflowManifestOptions, WriteTileflowArtifactPlanOptions, WriteTileflowBuildArtifactsOptions, assertTileflowSelfHostedManifestTarget, createTileflowArtifactDiagnostics, createTileflowArtifactPlan, createTileflowArtifactSession, createTileflowBuildArtifacts, createTileflowBuildProvenance, createTileflowManifest, createTileflowStyle, createTileflowStyles, getTileflowArtifactFiles, getTileflowAssetBasePath, getTileflowAssetFileName, getTileflowWatchPaths, isTileflowArtifactInputPath, joinTileflowPublicUrl, normalizeTileflowBasePath, refreshTileflowArtifactSession, resolveTileflowArtifactPublicUrls, tileflowArtifactInventoryFileName, tileflowArtifactPlanSchemaVersion, tileflowArtifactSessionSchemaVersion, writeTileflowArtifactPlan, writeTileflowBuildArtifacts } from './artifacts.js';
|
|
1
|
+
export { CreateTileflowArtifactPlanOptions, TileflowArtifactAcquisition, TileflowArtifactDiagnostic, TileflowArtifactFile, TileflowArtifactInputGraph, TileflowArtifactPlan, TileflowArtifactSession, TileflowArtifactSessionOptions, TileflowArtifactSessionState, TileflowBuildArtifacts, TileflowBuildArtifactsOptions, TileflowBuildStyleInspections, TileflowHostedManifestOverwriteError, TileflowLocalTilesetFile, TileflowLocalTilesetProductionError, TileflowManifestOptions, WriteTileflowArtifactPlanOptions, WriteTileflowBuildArtifactsOptions, assertNoLocalTilesetsForProduction, assertTileflowSelfHostedManifestTarget, createTileflowArtifactDiagnostics, createTileflowArtifactPlan, createTileflowArtifactSession, createTileflowBuildArtifacts, createTileflowBuildProvenance, createTileflowManifest, createTileflowStyle, createTileflowStyles, disposeTileflowBuildArtifacts, getTileflowArtifactFiles, getTileflowAssetBasePath, getTileflowAssetFileName, getTileflowWatchPaths, isTileflowArtifactInputPath, joinTileflowPublicUrl, normalizeTileflowBasePath, prepareTileflowLocalTilesets, refreshTileflowArtifactSession, resolveTileflowArtifactPublicUrls, tileflowArtifactInventoryFileName, tileflowArtifactPlanSchemaVersion, tileflowArtifactSessionSchemaVersion, writeTileflowArtifactPlan, writeTileflowBuildArtifacts } from './artifacts.js';
|
|
2
2
|
export { LoadTileflowConfigOptions, LoadedTileflowConfig, TileflowValidationError, assertValidTileflowConfig, defaultTileflowApiUrl, defaultTileflowConfigPath, defaultTileflowManifestPath, getFirstTileflowMapName, getTileflowMapNames, loadTileflowConfig, loadTileflowConfigWithInputs, loadValidTileflowConfig, loadValidTileflowConfigWithInputs } from './config.js';
|
|
3
3
|
export { CompiledTileflowFontBundle, PrepareTileflowStyleFontsOptions, PreparedTileflowStyleFonts, TileflowFontCompilationError, TileflowFontCompilationIssue, TileflowFontCompilationTarget, bindTileflowStyleFontBundle, getTileflowFontWatchPaths, prepareTileflowStyleFonts, replaceTileflowStyleFontSources } from './fonts.js';
|
|
4
4
|
export { CompileTileflowIconPackagesResult, CompiledTileflowIconPackage, CompiledTileflowIconPackageFile, InspectTileflowIconCatalogsOptions, PreparedTileflowBuildCatalog, PreparedTileflowCatalog, TileflowBuildAsset, TileflowIconCatalog, TileflowIconCatalogAtlasRectangle, TileflowIconCatalogIcon, TileflowIconCatalogInspection, TileflowIconCatalogMap, TileflowIconCatalogRenderedDensity, TileflowIconCatalogSourceFormat, TileflowIconCompilationError, TileflowIconCompilationIssue, TileflowIconCompilationTarget, TileflowIconReplacement, TileflowMapIconPackageBinding, TileflowSourceCatalog, compileTileflowIconPackages, getTileflowIconWatchPaths, iconFileExtensions, inspectTileflowIconCatalogs, prepareTileflowCatalogIcons } from './icons.js';
|
|
5
|
-
export { TileflowConfigInspection, TileflowConfigInspectionError, TileflowConfigInspectionOptions, TileflowFeatureInspection, TileflowFeatureInspectionOptions, TileflowInspectedFeature, TileflowInspectedProperty, TileflowMapLineageInspection, TileflowMapMergeProvenance, TileflowResolvedMapInspection, TileflowThemeContractInspection, TileflowThemeDifferenceInspection, TileflowThemeInspection, inspectLoadedTileflowConfig, inspectTileflowConfig, inspectTileflowFeatures } from './inspect.js';
|
|
5
|
+
export { TileflowConfigInspection, TileflowConfigInspectionError, TileflowConfigInspectionOptions, TileflowFeatureInspection, TileflowFeatureInspectionOptions, TileflowInspectedFeature, TileflowInspectedProperty, TileflowMapLineageInspection, TileflowMapMergeProvenance, TileflowResolvedMapInspection, TileflowThemeContractInspection, TileflowThemeDifferenceInspection, TileflowThemeInspection, inspectLoadedTileflowConfig, inspectTileflowConfig, inspectTileflowFeatures, sanitizeTileflowInspectableValue } from './inspect.js';
|
|
6
6
|
export { ResolvedTileflowPreview, TileflowLandmark, TileflowLandmarkArchive, TileflowLandmarkAxisConvention, TileflowLandmarkManifestV2, TileflowLandmarkModel, TileflowPreviewSelection, TileflowPreviewSelectionError, normalizeTileflowLandmarkManifest, readBoundedTileflowJsonResponse, readBoundedTileflowResponse, renderTileflowPreviewHtml, resolveTileflowPreview } from './preview.js';
|
|
7
|
-
export { TileflowComparisonMode, TileflowComparisonOptions, TileflowComparisonRequestHandler, TileflowComparisonSide, TileflowDevRequestHandlerOptions, createTileflowArtifactStatus, createTileflowComparisonRequestHandler, createTileflowDevRequestHandler, createTileflowNodeRequest, getTileflowRequestPath, getTileflowStyleInspectionSelection, getTileflowStyleSelection, isTileflowRequestUrl, tileflowComparisonSchemaVersion, writeTileflowNodeResponse } from './server.js';
|
|
8
|
-
export {
|
|
7
|
+
export { TileflowComparisonMode, TileflowComparisonOptions, TileflowComparisonRequestHandler, TileflowComparisonSide, TileflowDevRequestHandler, TileflowDevRequestHandlerOptions, createTileflowArtifactStatus, createTileflowComparisonRequestHandler, createTileflowDevRequestHandler, createTileflowNodeRequest, getTileflowRequestPath, getTileflowStyleInspectionSelection, getTileflowStyleSelection, isTileflowRequestUrl, tileflowComparisonSchemaVersion, writeTileflowNodeResponse } from './server.js';
|
|
8
|
+
export { T as TileflowLocalTilesetInspection, a as TileflowTilesetInspectionV1, b as TileflowTilesetInspectionWarning, i as inspectTileflowPmtiles, c as inspectTileflowPmtilesForLocalUse } from './tilesets-C0tGeenP.js';
|
|
9
|
+
export { TileflowCommandFailureDocument, TileflowCommandSummary, TileflowDiagnosticSeverity, TileflowStructuredDiagnostic, TileflowStyleValidationError, TileflowStyleValidationIssue, assertValidTileflowStyle, createTileflowCommandFailureDocument, createTileflowCommandSummary, createTileflowStructuredDiagnostics, sanitizeDiagnosticSecrets, serializeTileflowCommandDocument, tileflowCommandDocumentSchemaVersion, validateTileflowStyle } from './validation.js';
|
|
9
10
|
import '@tileflow/core';
|
|
10
11
|
import '@tileflow/core/build';
|
|
11
12
|
import '@tileflow/core/manifest';
|
package/dist/index.js
CHANGED
|
@@ -2,15 +2,16 @@ import {
|
|
|
2
2
|
TileflowConfigInspectionError,
|
|
3
3
|
inspectLoadedTileflowConfig,
|
|
4
4
|
inspectTileflowConfig,
|
|
5
|
-
inspectTileflowFeatures
|
|
6
|
-
|
|
5
|
+
inspectTileflowFeatures,
|
|
6
|
+
sanitizeTileflowInspectableValue
|
|
7
|
+
} from "./chunk-MKPSQSMX.js";
|
|
7
8
|
import {
|
|
8
9
|
createTileflowCommandFailureDocument,
|
|
9
10
|
createTileflowCommandSummary,
|
|
10
11
|
createTileflowStructuredDiagnostics,
|
|
11
12
|
serializeTileflowCommandDocument,
|
|
12
13
|
tileflowCommandDocumentSchemaVersion
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LNCTVFUD.js";
|
|
14
15
|
import {
|
|
15
16
|
TileflowPreviewSelectionError,
|
|
16
17
|
normalizeTileflowLandmarkManifest,
|
|
@@ -18,7 +19,7 @@ import {
|
|
|
18
19
|
readBoundedTileflowResponse,
|
|
19
20
|
renderTileflowPreviewHtml,
|
|
20
21
|
resolveTileflowPreview
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MIGBHCXX.js";
|
|
22
23
|
import {
|
|
23
24
|
createTileflowArtifactStatus,
|
|
24
25
|
createTileflowComparisonRequestHandler,
|
|
@@ -30,9 +31,11 @@ import {
|
|
|
30
31
|
isTileflowRequestUrl,
|
|
31
32
|
tileflowComparisonSchemaVersion,
|
|
32
33
|
writeTileflowNodeResponse
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KH7CMHT3.js";
|
|
34
35
|
import {
|
|
35
36
|
TileflowHostedManifestOverwriteError,
|
|
37
|
+
TileflowLocalTilesetProductionError,
|
|
38
|
+
assertNoLocalTilesetsForProduction,
|
|
36
39
|
assertTileflowSelfHostedManifestTarget,
|
|
37
40
|
createTileflowArtifactDiagnostics,
|
|
38
41
|
createTileflowArtifactPlan,
|
|
@@ -42,16 +45,22 @@ import {
|
|
|
42
45
|
createTileflowManifest,
|
|
43
46
|
createTileflowStyle,
|
|
44
47
|
createTileflowStyles,
|
|
48
|
+
disposeTileflowBuildArtifacts,
|
|
45
49
|
getTileflowArtifactFiles,
|
|
46
50
|
getTileflowWatchPaths,
|
|
47
51
|
isTileflowArtifactInputPath,
|
|
52
|
+
prepareTileflowLocalTilesets,
|
|
48
53
|
refreshTileflowArtifactSession,
|
|
49
54
|
tileflowArtifactInventoryFileName,
|
|
50
55
|
tileflowArtifactPlanSchemaVersion,
|
|
51
56
|
tileflowArtifactSessionSchemaVersion,
|
|
52
57
|
writeTileflowArtifactPlan,
|
|
53
58
|
writeTileflowBuildArtifacts
|
|
54
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-XTRHREXO.js";
|
|
60
|
+
import {
|
|
61
|
+
inspectTileflowPmtiles,
|
|
62
|
+
inspectTileflowPmtilesForLocalUse
|
|
63
|
+
} from "./chunk-ONYQNLNA.js";
|
|
55
64
|
import {
|
|
56
65
|
TileflowFontCompilationError,
|
|
57
66
|
bindTileflowStyleFontBundle,
|
|
@@ -63,7 +72,7 @@ import {
|
|
|
63
72
|
prepareTileflowStyleFonts,
|
|
64
73
|
replaceTileflowStyleFontSources,
|
|
65
74
|
resolveTileflowArtifactPublicUrls
|
|
66
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-RSBV4L2Y.js";
|
|
67
76
|
import {
|
|
68
77
|
TileflowIconCompilationError,
|
|
69
78
|
compileTileflowIconPackages,
|
|
@@ -71,11 +80,12 @@ import {
|
|
|
71
80
|
iconFileExtensions,
|
|
72
81
|
inspectTileflowIconCatalogs,
|
|
73
82
|
prepareTileflowCatalogIcons
|
|
74
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-CENQR5Q2.js";
|
|
75
84
|
import "./chunk-BL3FK4GO.js";
|
|
76
85
|
import {
|
|
77
86
|
TileflowStyleValidationError,
|
|
78
87
|
assertValidTileflowStyle,
|
|
88
|
+
sanitizeDiagnosticSecrets,
|
|
79
89
|
validateTileflowStyle
|
|
80
90
|
} from "./chunk-KDFTE4Q5.js";
|
|
81
91
|
import {
|
|
@@ -90,16 +100,18 @@ import {
|
|
|
90
100
|
loadTileflowConfigWithInputs,
|
|
91
101
|
loadValidTileflowConfig,
|
|
92
102
|
loadValidTileflowConfigWithInputs
|
|
93
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-6MGFMKG3.js";
|
|
94
104
|
import "./chunk-D4OE4ITL.js";
|
|
95
105
|
export {
|
|
96
106
|
TileflowConfigInspectionError,
|
|
97
107
|
TileflowFontCompilationError,
|
|
98
108
|
TileflowHostedManifestOverwriteError,
|
|
99
109
|
TileflowIconCompilationError,
|
|
110
|
+
TileflowLocalTilesetProductionError,
|
|
100
111
|
TileflowPreviewSelectionError,
|
|
101
112
|
TileflowStyleValidationError,
|
|
102
113
|
TileflowValidationError,
|
|
114
|
+
assertNoLocalTilesetsForProduction,
|
|
103
115
|
assertTileflowSelfHostedManifestTarget,
|
|
104
116
|
assertValidTileflowConfig,
|
|
105
117
|
assertValidTileflowStyle,
|
|
@@ -123,6 +135,7 @@ export {
|
|
|
123
135
|
defaultTileflowApiUrl,
|
|
124
136
|
defaultTileflowConfigPath,
|
|
125
137
|
defaultTileflowManifestPath,
|
|
138
|
+
disposeTileflowBuildArtifacts,
|
|
126
139
|
getFirstTileflowMapName,
|
|
127
140
|
getTileflowArtifactFiles,
|
|
128
141
|
getTileflowAssetBasePath,
|
|
@@ -139,6 +152,8 @@ export {
|
|
|
139
152
|
inspectTileflowConfig,
|
|
140
153
|
inspectTileflowFeatures,
|
|
141
154
|
inspectTileflowIconCatalogs,
|
|
155
|
+
inspectTileflowPmtiles,
|
|
156
|
+
inspectTileflowPmtilesForLocalUse,
|
|
142
157
|
isTileflowArtifactInputPath,
|
|
143
158
|
isTileflowRequestUrl,
|
|
144
159
|
joinTileflowPublicUrl,
|
|
@@ -149,6 +164,7 @@ export {
|
|
|
149
164
|
normalizeTileflowBasePath,
|
|
150
165
|
normalizeTileflowLandmarkManifest,
|
|
151
166
|
prepareTileflowCatalogIcons,
|
|
167
|
+
prepareTileflowLocalTilesets,
|
|
152
168
|
prepareTileflowStyleFonts,
|
|
153
169
|
readBoundedTileflowJsonResponse,
|
|
154
170
|
readBoundedTileflowResponse,
|
|
@@ -157,6 +173,8 @@ export {
|
|
|
157
173
|
replaceTileflowStyleFontSources,
|
|
158
174
|
resolveTileflowArtifactPublicUrls,
|
|
159
175
|
resolveTileflowPreview,
|
|
176
|
+
sanitizeDiagnosticSecrets,
|
|
177
|
+
sanitizeTileflowInspectableValue,
|
|
160
178
|
serializeTileflowCommandDocument,
|
|
161
179
|
tileflowArtifactInventoryFileName,
|
|
162
180
|
tileflowArtifactPlanSchemaVersion,
|
package/dist/inspect.d.ts
CHANGED
|
@@ -143,5 +143,7 @@ declare class TileflowConfigInspectionError extends Error {
|
|
|
143
143
|
}>;
|
|
144
144
|
constructor(code: string, message: string, path: string);
|
|
145
145
|
}
|
|
146
|
+
/** Sanitize a deterministic JSON-like authoring value for machine-facing CLI output. */
|
|
147
|
+
declare function sanitizeTileflowInspectableValue(value: unknown, cwd: string): unknown;
|
|
146
148
|
|
|
147
|
-
export { type TileflowConfigInspection, TileflowConfigInspectionError, type TileflowConfigInspectionOptions, type TileflowFeatureInspection, type TileflowFeatureInspectionOptions, type TileflowInspectedFeature, type TileflowInspectedProperty, type TileflowMapLineageInspection, type TileflowMapMergeProvenance, type TileflowResolvedMapInspection, type TileflowThemeContractInspection, type TileflowThemeDifferenceInspection, type TileflowThemeInspection, inspectLoadedTileflowConfig, inspectTileflowConfig, inspectTileflowFeatures };
|
|
149
|
+
export { type TileflowConfigInspection, TileflowConfigInspectionError, type TileflowConfigInspectionOptions, type TileflowFeatureInspection, type TileflowFeatureInspectionOptions, type TileflowInspectedFeature, type TileflowInspectedProperty, type TileflowMapLineageInspection, type TileflowMapMergeProvenance, type TileflowResolvedMapInspection, type TileflowThemeContractInspection, type TileflowThemeDifferenceInspection, type TileflowThemeInspection, inspectLoadedTileflowConfig, inspectTileflowConfig, inspectTileflowFeatures, sanitizeTileflowInspectableValue };
|
package/dist/inspect.js
CHANGED
|
@@ -2,15 +2,17 @@ import {
|
|
|
2
2
|
TileflowConfigInspectionError,
|
|
3
3
|
inspectLoadedTileflowConfig,
|
|
4
4
|
inspectTileflowConfig,
|
|
5
|
-
inspectTileflowFeatures
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
inspectTileflowFeatures,
|
|
6
|
+
sanitizeTileflowInspectableValue
|
|
7
|
+
} from "./chunk-MKPSQSMX.js";
|
|
8
|
+
import "./chunk-LNCTVFUD.js";
|
|
8
9
|
import "./chunk-KDFTE4Q5.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-6MGFMKG3.js";
|
|
10
11
|
import "./chunk-D4OE4ITL.js";
|
|
11
12
|
export {
|
|
12
13
|
TileflowConfigInspectionError,
|
|
13
14
|
inspectLoadedTileflowConfig,
|
|
14
15
|
inspectTileflowConfig,
|
|
15
|
-
inspectTileflowFeatures
|
|
16
|
+
inspectTileflowFeatures,
|
|
17
|
+
sanitizeTileflowInspectableValue
|
|
16
18
|
};
|
package/dist/preview.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TileflowStyleFontFace, NormalizedTileflowCaptureScene } from '@tileflow/core';
|
|
2
2
|
import { TileflowBuildCatalog } from '@tileflow/core/build';
|
|
3
3
|
|
|
4
|
-
declare function renderTileflowPreviewHtml(preview: ResolvedTileflowPreview | undefined, basePath: string, initialStatus: unknown,
|
|
4
|
+
declare function renderTileflowPreviewHtml(preview: ResolvedTileflowPreview | undefined, basePath: string, initialStatus: unknown, isSemanticPreview: boolean, fontFaces?: readonly TileflowStyleFontFace[]): string;
|
|
5
5
|
|
|
6
6
|
type TileflowLandmarkAxisConvention = 'ENU_Z_UP' | 'EUN_Y_UP' | 'EUS_Y_UP';
|
|
7
7
|
type TileflowLandmarkArchive = {
|
package/dist/preview.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
readBoundedTileflowResponse,
|
|
6
6
|
renderTileflowPreviewHtml,
|
|
7
7
|
resolveTileflowPreview
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-MIGBHCXX.js";
|
|
9
|
+
import "./chunk-6MGFMKG3.js";
|
|
10
10
|
import "./chunk-D4OE4ITL.js";
|
|
11
11
|
export {
|
|
12
12
|
TileflowPreviewSelectionError,
|
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TileflowArtifactSession, TileflowArtifactSessionState, TileflowArtifactDiagnostic } from './artifacts.js';
|
|
2
|
-
export { TileflowArtifactSessionOptions, createTileflowArtifactDiagnostics, getTileflowAssetBasePath, getTileflowAssetFileName, joinTileflowPublicUrl, normalizeTileflowBasePath, resolveTileflowArtifactPublicUrls, tileflowArtifactSessionSchemaVersion } from './artifacts.js';
|
|
2
|
+
export { TileflowArtifactAcquisition, TileflowArtifactSessionOptions, createTileflowArtifactDiagnostics, getTileflowAssetBasePath, getTileflowAssetFileName, joinTileflowPublicUrl, normalizeTileflowBasePath, resolveTileflowArtifactPublicUrls, tileflowArtifactSessionSchemaVersion } from './artifacts.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'node:http';
|
|
4
4
|
import '@tileflow/core';
|
|
5
5
|
import '@tileflow/core/build';
|
|
@@ -52,6 +52,10 @@ type TileflowDevRequestHandlerOptions = {
|
|
|
52
52
|
styleBaseUrl?: string;
|
|
53
53
|
theme?: string;
|
|
54
54
|
};
|
|
55
|
+
type TileflowDevRequestHandler = ((request: Request) => Promise<Response>) & {
|
|
56
|
+
close(): Promise<void>;
|
|
57
|
+
refresh(): Promise<void>;
|
|
58
|
+
};
|
|
55
59
|
declare function getTileflowStyleSelection(path: string): {
|
|
56
60
|
mapName: string;
|
|
57
61
|
themeName: string;
|
|
@@ -65,7 +69,7 @@ declare function isTileflowRequestUrl(url: string | undefined, basePath: string)
|
|
|
65
69
|
declare function getTileflowRequestPath(url: string | undefined, basePath: string): string | null;
|
|
66
70
|
declare function createTileflowNodeRequest(request: IncomingMessage): Request;
|
|
67
71
|
declare function writeTileflowNodeResponse(response: ServerResponse, tileflowResponse: Response): Promise<void>;
|
|
68
|
-
declare function createTileflowDevRequestHandler(options?: TileflowDevRequestHandlerOptions):
|
|
72
|
+
declare function createTileflowDevRequestHandler(options?: TileflowDevRequestHandlerOptions): TileflowDevRequestHandler;
|
|
69
73
|
declare function createTileflowArtifactStatus(state: TileflowArtifactSessionState): {
|
|
70
74
|
diagnostics?: TileflowArtifactDiagnostic[] | undefined;
|
|
71
75
|
lastGoodGeneration?: number | undefined;
|
|
@@ -74,4 +78,4 @@ declare function createTileflowArtifactStatus(state: TileflowArtifactSessionStat
|
|
|
74
78
|
status: "ready" | "building" | "invalid";
|
|
75
79
|
};
|
|
76
80
|
|
|
77
|
-
export { TileflowArtifactDiagnostic, TileflowArtifactSession, TileflowArtifactSessionState, type TileflowComparisonMode, type TileflowComparisonOptions, type TileflowComparisonRequestHandler, type TileflowComparisonSide, type TileflowDevRequestHandlerOptions, createTileflowArtifactStatus, createTileflowComparisonRequestHandler, createTileflowDevRequestHandler, createTileflowNodeRequest, getTileflowRequestPath, getTileflowStyleInspectionSelection, getTileflowStyleSelection, isTileflowRequestUrl, tileflowComparisonSchemaVersion, writeTileflowNodeResponse };
|
|
81
|
+
export { TileflowArtifactDiagnostic, TileflowArtifactSession, TileflowArtifactSessionState, type TileflowComparisonMode, type TileflowComparisonOptions, type TileflowComparisonRequestHandler, type TileflowComparisonSide, type TileflowDevRequestHandler, type TileflowDevRequestHandlerOptions, createTileflowArtifactStatus, createTileflowComparisonRequestHandler, createTileflowDevRequestHandler, createTileflowNodeRequest, getTileflowRequestPath, getTileflowStyleInspectionSelection, getTileflowStyleSelection, isTileflowRequestUrl, tileflowComparisonSchemaVersion, writeTileflowNodeResponse };
|
package/dist/server.js
CHANGED
|
@@ -9,22 +9,23 @@ import {
|
|
|
9
9
|
isTileflowRequestUrl,
|
|
10
10
|
tileflowComparisonSchemaVersion,
|
|
11
11
|
writeTileflowNodeResponse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KH7CMHT3.js";
|
|
13
13
|
import {
|
|
14
14
|
createTileflowArtifactDiagnostics,
|
|
15
15
|
tileflowArtifactSessionSchemaVersion
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XTRHREXO.js";
|
|
17
|
+
import "./chunk-ONYQNLNA.js";
|
|
17
18
|
import {
|
|
18
19
|
getTileflowAssetBasePath,
|
|
19
20
|
getTileflowAssetFileName,
|
|
20
21
|
joinTileflowPublicUrl,
|
|
21
22
|
normalizeTileflowBasePath,
|
|
22
23
|
resolveTileflowArtifactPublicUrls
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-RSBV4L2Y.js";
|
|
25
|
+
import "./chunk-CENQR5Q2.js";
|
|
25
26
|
import "./chunk-BL3FK4GO.js";
|
|
26
27
|
import "./chunk-KDFTE4Q5.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-6MGFMKG3.js";
|
|
28
29
|
import "./chunk-D4OE4ITL.js";
|
|
29
30
|
export {
|
|
30
31
|
createTileflowArtifactDiagnostics,
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare const inspectionLimits: Readonly<{
|
|
2
|
+
maxBytes: 24000000;
|
|
3
|
+
maxDistinctValuesPerField: 256;
|
|
4
|
+
maxFeatures: 20000;
|
|
5
|
+
maxIncludedValueFields: 32;
|
|
6
|
+
maxTiles: 8;
|
|
7
|
+
maxValueLength: 256;
|
|
8
|
+
maxValuesPerField: 16;
|
|
9
|
+
}>;
|
|
10
|
+
type TileCoordinate = Readonly<{
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
z: number;
|
|
14
|
+
}>;
|
|
15
|
+
type FieldType = 'Boolean' | 'Number' | 'String';
|
|
16
|
+
type FieldValue = boolean | number | string;
|
|
17
|
+
type TileflowTilesetInspectionWarning = Readonly<{
|
|
18
|
+
code: string;
|
|
19
|
+
message: string;
|
|
20
|
+
path: string;
|
|
21
|
+
}>;
|
|
22
|
+
type TileflowTilesetInspectionV1 = Readonly<{
|
|
23
|
+
schemaVersion: 1;
|
|
24
|
+
contract: Readonly<{
|
|
25
|
+
authority: 'pmtiles-header-and-tilejson-v1';
|
|
26
|
+
attribution?: string;
|
|
27
|
+
bounds: readonly [number, number, number, number];
|
|
28
|
+
center: readonly [number, number, number];
|
|
29
|
+
counts: Readonly<{
|
|
30
|
+
addressedTiles: number;
|
|
31
|
+
declaredTileContents: number | null;
|
|
32
|
+
tileEntries: number;
|
|
33
|
+
}>;
|
|
34
|
+
maxzoom: number;
|
|
35
|
+
minzoom: number;
|
|
36
|
+
sourceLayersDeclared: boolean;
|
|
37
|
+
sourceLayers: readonly Readonly<{
|
|
38
|
+
fieldsDeclared: boolean;
|
|
39
|
+
fields: readonly Readonly<{
|
|
40
|
+
name: string;
|
|
41
|
+
type?: FieldType;
|
|
42
|
+
}>[];
|
|
43
|
+
id: string;
|
|
44
|
+
maxzoom?: number;
|
|
45
|
+
minzoom?: number;
|
|
46
|
+
}>[];
|
|
47
|
+
tileType: 'avif' | 'jpeg' | 'mlt' | 'mvt' | 'png' | 'webp';
|
|
48
|
+
}>;
|
|
49
|
+
observation?: Readonly<{
|
|
50
|
+
authority: 'bounded-mvt-sample-v1';
|
|
51
|
+
featuresRead: number;
|
|
52
|
+
includedValueFields: readonly string[];
|
|
53
|
+
limits: typeof inspectionLimits;
|
|
54
|
+
sourceLayers: readonly Readonly<{
|
|
55
|
+
featuresRead: number;
|
|
56
|
+
fields: readonly Readonly<{
|
|
57
|
+
distinctValuesObserved: number;
|
|
58
|
+
distinctValuesTruncated: boolean;
|
|
59
|
+
featuresMissing: number;
|
|
60
|
+
featuresPresent: number;
|
|
61
|
+
name: string;
|
|
62
|
+
numericRange?: Readonly<{
|
|
63
|
+
max: number;
|
|
64
|
+
min: number;
|
|
65
|
+
}>;
|
|
66
|
+
observedValues?: readonly Readonly<{
|
|
67
|
+
count: number;
|
|
68
|
+
value: FieldValue;
|
|
69
|
+
}>[];
|
|
70
|
+
observedValuesTruncated?: boolean;
|
|
71
|
+
types: readonly FieldType[];
|
|
72
|
+
}>[];
|
|
73
|
+
geometryTypes: readonly string[];
|
|
74
|
+
id: string;
|
|
75
|
+
}>[];
|
|
76
|
+
tiles: readonly TileCoordinate[];
|
|
77
|
+
tilesRead: number;
|
|
78
|
+
truncated: boolean;
|
|
79
|
+
}>;
|
|
80
|
+
warnings: readonly TileflowTilesetInspectionWarning[];
|
|
81
|
+
}>;
|
|
82
|
+
type TileflowLocalTilesetInspection = Readonly<{
|
|
83
|
+
contract: Pick<TileflowTilesetInspectionV1['contract'], 'sourceLayers' | 'sourceLayersDeclared' | 'tileType'>;
|
|
84
|
+
warnings: readonly TileflowTilesetInspectionWarning[];
|
|
85
|
+
}>;
|
|
86
|
+
declare function inspectTileflowPmtilesForLocalUse(archivePath: string): Promise<TileflowLocalTilesetInspection>;
|
|
87
|
+
declare function inspectTileflowPmtiles(archivePath: string, options?: {
|
|
88
|
+
includeValues?: readonly string[];
|
|
89
|
+
maximumDirectoryDepth?: number;
|
|
90
|
+
sample?: boolean;
|
|
91
|
+
signal?: AbortSignal;
|
|
92
|
+
}): Promise<TileflowTilesetInspectionV1>;
|
|
93
|
+
|
|
94
|
+
export { type TileflowLocalTilesetInspection as T, type TileflowTilesetInspectionV1 as a, type TileflowTilesetInspectionWarning as b, inspectTileflowPmtilesForLocalUse as c, inspectTileflowPmtiles as i };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as TileflowTilesetInspectionV1, b as TileflowTilesetInspectionWarning, i as inspectTileflowPmtiles } from './tilesets-C0tGeenP.js';
|
package/dist/tilesets.js
ADDED
package/dist/validation.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { MapLibreStyle } from '@tileflow/core';
|
|
2
2
|
|
|
3
|
+
declare function sanitizeDiagnosticSecrets(value: string): string;
|
|
4
|
+
|
|
3
5
|
type TileflowStyleValidationIssue = {
|
|
4
6
|
map: string;
|
|
5
7
|
message: string;
|
|
@@ -20,7 +22,11 @@ type TileflowDiagnosticSeverity = 'error' | 'info' | 'warning';
|
|
|
20
22
|
type TileflowStructuredDiagnostic = {
|
|
21
23
|
phase: string;
|
|
22
24
|
code: string;
|
|
25
|
+
/** Semantic compiler domain. Legacy `owner` inputs are normalized to this field. */
|
|
26
|
+
domain?: string;
|
|
23
27
|
path: string;
|
|
28
|
+
/** Semantic compiler target, when the diagnostic applies to one render contribution. */
|
|
29
|
+
target?: string;
|
|
24
30
|
severity: TileflowDiagnosticSeverity;
|
|
25
31
|
message: string;
|
|
26
32
|
suggestion: string;
|
|
@@ -54,4 +60,4 @@ declare function createTileflowStructuredDiagnostics(error: unknown, cwd: string
|
|
|
54
60
|
declare function createTileflowCommandFailureDocument(command: string, error: unknown, cwd: string, defaults: TileflowDiagnosticDefaults): TileflowCommandFailureDocument;
|
|
55
61
|
declare function serializeTileflowCommandDocument(value: unknown): string;
|
|
56
62
|
|
|
57
|
-
export { type TileflowCommandFailureDocument, type TileflowCommandSummary, type TileflowDiagnosticSeverity, type TileflowStructuredDiagnostic, TileflowStyleValidationError, type TileflowStyleValidationIssue, assertValidTileflowStyle, createTileflowCommandFailureDocument, createTileflowCommandSummary, createTileflowStructuredDiagnostics, serializeTileflowCommandDocument, tileflowCommandDocumentSchemaVersion, validateTileflowStyle };
|
|
63
|
+
export { type TileflowCommandFailureDocument, type TileflowCommandSummary, type TileflowDiagnosticSeverity, type TileflowStructuredDiagnostic, TileflowStyleValidationError, type TileflowStyleValidationIssue, assertValidTileflowStyle, createTileflowCommandFailureDocument, createTileflowCommandSummary, createTileflowStructuredDiagnostics, sanitizeDiagnosticSecrets, serializeTileflowCommandDocument, tileflowCommandDocumentSchemaVersion, validateTileflowStyle };
|
package/dist/validation.js
CHANGED
|
@@ -4,10 +4,11 @@ import {
|
|
|
4
4
|
createTileflowStructuredDiagnostics,
|
|
5
5
|
serializeTileflowCommandDocument,
|
|
6
6
|
tileflowCommandDocumentSchemaVersion
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LNCTVFUD.js";
|
|
8
8
|
import {
|
|
9
9
|
TileflowStyleValidationError,
|
|
10
10
|
assertValidTileflowStyle,
|
|
11
|
+
sanitizeDiagnosticSecrets,
|
|
11
12
|
validateTileflowStyle
|
|
12
13
|
} from "./chunk-KDFTE4Q5.js";
|
|
13
14
|
export {
|
|
@@ -16,6 +17,7 @@ export {
|
|
|
16
17
|
createTileflowCommandFailureDocument,
|
|
17
18
|
createTileflowCommandSummary,
|
|
18
19
|
createTileflowStructuredDiagnostics,
|
|
20
|
+
sanitizeDiagnosticSecrets,
|
|
19
21
|
serializeTileflowCommandDocument,
|
|
20
22
|
tileflowCommandDocumentSchemaVersion,
|
|
21
23
|
validateTileflowStyle
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/dev",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.20",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Node development utilities for Tileflow configs and builds.",
|
|
6
6
|
"type": "module",
|
|
@@ -75,6 +75,11 @@
|
|
|
75
75
|
"import": "./dist/server.js",
|
|
76
76
|
"default": "./dist/server.js"
|
|
77
77
|
},
|
|
78
|
+
"./tilesets": {
|
|
79
|
+
"types": "./dist/tilesets.d.ts",
|
|
80
|
+
"import": "./dist/tilesets.js",
|
|
81
|
+
"default": "./dist/tilesets.js"
|
|
82
|
+
},
|
|
78
83
|
"./validation": {
|
|
79
84
|
"types": "./dist/validation.d.ts",
|
|
80
85
|
"import": "./dist/validation.js",
|
|
@@ -87,7 +92,7 @@
|
|
|
87
92
|
"dependencies": {
|
|
88
93
|
"@mapbox/vector-tile": "2.0.5",
|
|
89
94
|
"@maplibre/maplibre-gl-style-spec": "24.8.5",
|
|
90
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
95
|
+
"@tileflow/core": ">=0.1.0-alpha.22 <0.1.0-beta.0",
|
|
91
96
|
"chokidar": "4.0.3",
|
|
92
97
|
"fflate": "0.8.2",
|
|
93
98
|
"fontkit": "2.0.4",
|
|
@@ -99,13 +104,13 @@
|
|
|
99
104
|
"three": "0.180.0"
|
|
100
105
|
},
|
|
101
106
|
"devDependencies": {
|
|
102
|
-
"@tileflow/maps": "0.1.0-alpha.
|
|
107
|
+
"@tileflow/maps": "0.1.0-alpha.1"
|
|
103
108
|
},
|
|
104
109
|
"optionalDependencies": {
|
|
105
110
|
"sharp": "0.35.3"
|
|
106
111
|
},
|
|
107
112
|
"scripts": {
|
|
108
|
-
"build": "tsup src/index.ts src/artifacts.ts src/config.ts src/fonts.ts src/icons.ts src/inspect.ts src/preview.ts src/server.ts src/validation.ts --format esm --dts --clean --platform node --external sharp",
|
|
113
|
+
"build": "tsup src/index.ts src/artifacts.ts src/config.ts src/fonts.ts src/icons.ts src/inspect.ts src/preview.ts src/server.ts src/tilesets.ts src/validation.ts --format esm --dts --clean --platform node --external sharp",
|
|
109
114
|
"test": "tsx --test test/*.test.ts",
|
|
110
115
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
111
116
|
"lint": "tsc -p tsconfig.json --noEmit",
|