@tileflow/dev 0.1.0-alpha.24 → 0.1.0-alpha.26
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 +34 -7
- package/THIRD_PARTY_NOTICES.md +23 -0
- package/dist/artifacts.d.ts +39 -5
- package/dist/artifacts.js +6 -4
- package/dist/{chunk-MKPSQSMX.js → chunk-73YPFDPC.js} +1 -1
- package/dist/{chunk-BL3FK4GO.js → chunk-7C4F6GAX.js} +1 -1
- package/dist/chunk-EJPVUSX4.js +1825 -0
- package/dist/{chunk-XXVI42UZ.js → chunk-QAMFAM3S.js} +1178 -39
- package/dist/{chunk-XS5Q4IS2.js → chunk-UCBGTEQV.js} +2 -2
- package/dist/{chunk-RSBV4L2Y.js → chunk-UTRO4IBQ.js} +1 -1
- package/dist/{chunk-LNCTVFUD.js → chunk-XHJBCVBB.js} +6 -1
- package/dist/fonts.d.ts +1 -1
- package/dist/fonts.js +2 -2
- package/dist/icons.d.ts +337 -3
- package/dist/icons.js +24 -4
- package/dist/index.d.ts +5 -53
- package/dist/index.js +21 -580
- package/dist/inspect.js +2 -2
- package/dist/server.d.ts +2 -1
- package/dist/server.js +5 -5
- package/dist/validation.d.ts +2 -0
- package/dist/validation.js +1 -1
- package/docs/local-comparison-workbench-and-compiler-inspection.md +6 -5
- package/docs/native-artifacts.md +258 -0
- package/docs/native-icons.md +129 -0
- package/package.json +3 -3
- package/dist/chunk-NUHSYLLS.js +0 -986
- package/dist/icons-CkLVtaP-.d.ts +0 -164
package/dist/icons-CkLVtaP-.d.ts
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { TileflowIconPackageFileName, TileflowIconPackageManifest, TileflowIconDirectory } from '@tileflow/core';
|
|
2
|
-
import { TileflowBuildCatalog, TileflowPreparedMapAssets, TileflowEffectiveIconSourceIdentity } from '@tileflow/core/build';
|
|
3
|
-
|
|
4
|
-
type TileflowRenderedIconCell = {
|
|
5
|
-
height: number;
|
|
6
|
-
width: number;
|
|
7
|
-
rgba: Uint8Array;
|
|
8
|
-
};
|
|
9
|
-
type TileflowRenderedIcon = {
|
|
10
|
-
id: string;
|
|
11
|
-
oneX: TileflowRenderedIconCell;
|
|
12
|
-
twoX: TileflowRenderedIconCell;
|
|
13
|
-
};
|
|
14
|
-
/** Pack independently rendered densities without scaling or re-rasterizing either input. */
|
|
15
|
-
declare function packTileflowRenderedIcons(input: readonly TileflowRenderedIcon[]): Promise<CompiledTileflowIconPackage>;
|
|
16
|
-
|
|
17
|
-
type TileflowBuildAsset = {
|
|
18
|
-
contentType: string;
|
|
19
|
-
fileName: string;
|
|
20
|
-
source: string | Uint8Array;
|
|
21
|
-
};
|
|
22
|
-
/** Executable authoring input before local sources have been resolved into runtime URLs. */
|
|
23
|
-
type TileflowSourceCatalog = TileflowBuildCatalog;
|
|
24
|
-
declare const preparedTileflowBuildCatalog: unique symbol;
|
|
25
|
-
/** A validated catalog paired with build-owned portable assets. */
|
|
26
|
-
type PreparedTileflowBuildCatalog = TileflowBuildCatalog & {
|
|
27
|
-
readonly [preparedTileflowBuildCatalog]: true;
|
|
28
|
-
};
|
|
29
|
-
type PreparedTileflowCatalog = {
|
|
30
|
-
assets: TileflowBuildAsset[];
|
|
31
|
-
baseDirectory: string;
|
|
32
|
-
cwd: string;
|
|
33
|
-
mapAssets: Record<string, TileflowPreparedMapAssets>;
|
|
34
|
-
mapIconSources: Record<string, readonly TileflowEffectiveIconSourceIdentity[]>;
|
|
35
|
-
project: PreparedTileflowBuildCatalog;
|
|
36
|
-
sourceProject: TileflowSourceCatalog;
|
|
37
|
-
watchPaths: string[];
|
|
38
|
-
};
|
|
39
|
-
type TileflowIconCompilationTarget = 'hosted' | 'local';
|
|
40
|
-
type TileflowIconCompilationIssue = {
|
|
41
|
-
message: string;
|
|
42
|
-
path: string;
|
|
43
|
-
};
|
|
44
|
-
type CompiledTileflowIconPackageFile = {
|
|
45
|
-
contentType: 'application/json' | 'image/png';
|
|
46
|
-
fileName: TileflowIconPackageFileName;
|
|
47
|
-
source: Uint8Array;
|
|
48
|
-
};
|
|
49
|
-
type CompiledTileflowIconPackage = {
|
|
50
|
-
contentHash: string;
|
|
51
|
-
files: CompiledTileflowIconPackageFile[];
|
|
52
|
-
manifest: TileflowIconPackageManifest;
|
|
53
|
-
};
|
|
54
|
-
type TileflowMapIconPackageBinding = {
|
|
55
|
-
iconIds: readonly string[];
|
|
56
|
-
label: string;
|
|
57
|
-
mapName: string;
|
|
58
|
-
packageHash: string;
|
|
59
|
-
};
|
|
60
|
-
type CompileTileflowIconPackagesResult = {
|
|
61
|
-
bindings: TileflowMapIconPackageBinding[];
|
|
62
|
-
packages: CompiledTileflowIconPackage[];
|
|
63
|
-
sourceIdentities: Record<string, readonly TileflowEffectiveIconSourceIdentity[]>;
|
|
64
|
-
watchPaths: string[];
|
|
65
|
-
};
|
|
66
|
-
type InspectTileflowIconCatalogsOptions = {
|
|
67
|
-
baseDirectory?: string;
|
|
68
|
-
cwd: string;
|
|
69
|
-
mapNames?: readonly string[];
|
|
70
|
-
};
|
|
71
|
-
type TileflowIconCatalogSourceFormat = 'jpeg' | 'png' | 'svg' | 'webp';
|
|
72
|
-
type TileflowIconCatalogAtlasRectangle = {
|
|
73
|
-
height: number;
|
|
74
|
-
width: number;
|
|
75
|
-
x: number;
|
|
76
|
-
y: number;
|
|
77
|
-
};
|
|
78
|
-
type TileflowIconCatalogRenderedDensity = {
|
|
79
|
-
atlas: TileflowIconCatalogAtlasRectangle;
|
|
80
|
-
height: number;
|
|
81
|
-
pixelRatio: 1 | 2;
|
|
82
|
-
pixelSha256: string;
|
|
83
|
-
width: number;
|
|
84
|
-
};
|
|
85
|
-
type TileflowIconCatalogIcon = {
|
|
86
|
-
id: string;
|
|
87
|
-
rendered: {
|
|
88
|
-
oneX: TileflowIconCatalogRenderedDensity;
|
|
89
|
-
twoX: TileflowIconCatalogRenderedDensity;
|
|
90
|
-
};
|
|
91
|
-
source: {
|
|
92
|
-
byteLength: number;
|
|
93
|
-
dimensions: {
|
|
94
|
-
height: number;
|
|
95
|
-
width: number;
|
|
96
|
-
} | null;
|
|
97
|
-
format: TileflowIconCatalogSourceFormat;
|
|
98
|
-
path: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
type TileflowIconCatalog = {
|
|
102
|
-
compiledPackage: CompiledTileflowIconPackage;
|
|
103
|
-
directories: string[];
|
|
104
|
-
icons: TileflowIconCatalogIcon[];
|
|
105
|
-
insideWorkingTree: boolean;
|
|
106
|
-
replacements: TileflowIconReplacement[];
|
|
107
|
-
};
|
|
108
|
-
type TileflowIconReplacement = {
|
|
109
|
-
id: string;
|
|
110
|
-
replaced: string;
|
|
111
|
-
winner: string;
|
|
112
|
-
};
|
|
113
|
-
type TileflowIconCatalogMap = {
|
|
114
|
-
name: string;
|
|
115
|
-
icons: {
|
|
116
|
-
directories: string[];
|
|
117
|
-
iconIds: string[];
|
|
118
|
-
kind: 'directories';
|
|
119
|
-
label: string;
|
|
120
|
-
packageHash: string;
|
|
121
|
-
} | {
|
|
122
|
-
kind: 'none';
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
type TileflowIconCatalogInspection = {
|
|
126
|
-
catalogs: TileflowIconCatalog[];
|
|
127
|
-
maps: TileflowIconCatalogMap[];
|
|
128
|
-
};
|
|
129
|
-
declare class TileflowIconCompilationError extends Error {
|
|
130
|
-
readonly code: "ICON_INVALID";
|
|
131
|
-
readonly issues: TileflowIconCompilationIssue[];
|
|
132
|
-
readonly phase: "icon-compilation";
|
|
133
|
-
constructor(issues: TileflowIconCompilationIssue[]);
|
|
134
|
-
}
|
|
135
|
-
declare const iconFileExtensions: Set<string>;
|
|
136
|
-
declare function compileTileflowIconPackages(project: TileflowBuildCatalog, options: {
|
|
137
|
-
baseDirectory?: string;
|
|
138
|
-
cwd: string;
|
|
139
|
-
target: TileflowIconCompilationTarget;
|
|
140
|
-
}): Promise<CompileTileflowIconPackagesResult>;
|
|
141
|
-
declare function inspectTileflowIconCatalogs(project: TileflowBuildCatalog, options: InspectTileflowIconCatalogsOptions): Promise<TileflowIconCatalogInspection>;
|
|
142
|
-
declare function prepareTileflowCatalogIcons(project: TileflowBuildCatalog, options: {
|
|
143
|
-
assetBaseUrl: string;
|
|
144
|
-
baseDirectory?: string;
|
|
145
|
-
cwd: string;
|
|
146
|
-
}): Promise<PreparedTileflowCatalog>;
|
|
147
|
-
declare function getTileflowIconWatchPaths(project: TileflowBuildCatalog, cwd: string, baseDirectory?: string): Promise<string[]>;
|
|
148
|
-
|
|
149
|
-
/** A bounded local source snapshot used by the explicit shared-composition build port. */
|
|
150
|
-
declare function readTileflowIconDirectory(source: TileflowIconDirectory, options: {
|
|
151
|
-
cwd: string;
|
|
152
|
-
baseDirectory: string;
|
|
153
|
-
target: TileflowIconCompilationTarget;
|
|
154
|
-
}): Promise<{
|
|
155
|
-
iconIds: string[];
|
|
156
|
-
watchPath?: string;
|
|
157
|
-
render: (ids: readonly string[]) => Promise<Array<{
|
|
158
|
-
icon: TileflowRenderedIcon;
|
|
159
|
-
identity: TileflowEffectiveIconSourceIdentity;
|
|
160
|
-
sourceBytes: number;
|
|
161
|
-
}>>;
|
|
162
|
-
}>;
|
|
163
|
-
|
|
164
|
-
export { type CompiledTileflowIconPackage as C, type InspectTileflowIconCatalogsOptions as I, type PreparedTileflowBuildCatalog as P, type TileflowRenderedIcon as T, type TileflowIconCompilationTarget as a, type CompileTileflowIconPackagesResult as b, type CompiledTileflowIconPackageFile as c, type PreparedTileflowCatalog as d, type TileflowBuildAsset as e, type TileflowIconCatalog as f, type TileflowIconCatalogAtlasRectangle as g, type TileflowIconCatalogIcon as h, type TileflowIconCatalogInspection as i, type TileflowIconCatalogMap as j, type TileflowIconCatalogRenderedDensity as k, type TileflowIconCatalogSourceFormat as l, TileflowIconCompilationError as m, type TileflowIconCompilationIssue as n, type TileflowIconReplacement as o, type TileflowMapIconPackageBinding as p, type TileflowRenderedIconCell as q, type TileflowSourceCatalog as r, compileTileflowIconPackages as s, getTileflowIconWatchPaths as t, iconFileExtensions as u, inspectTileflowIconCatalogs as v, packTileflowRenderedIcons as w, prepareTileflowCatalogIcons as x, readTileflowIconDirectory as y };
|