@buoy-gg/assets 7.0.16
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/LICENSE +58 -0
- package/README.md +55 -0
- package/lib/commonjs/capture/expo.js +46 -0
- package/lib/commonjs/capture/expo.js.map +1 -0
- package/lib/commonjs/capture/install.js +78 -0
- package/lib/commonjs/capture/install.js.map +1 -0
- package/lib/commonjs/capture/measure.js +186 -0
- package/lib/commonjs/capture/measure.js.map +1 -0
- package/lib/commonjs/capture/metroGraph.js +148 -0
- package/lib/commonjs/capture/metroGraph.js.map +1 -0
- package/lib/commonjs/capture/registry.js +124 -0
- package/lib/commonjs/capture/registry.js.map +1 -0
- package/lib/commonjs/components/AssetDetail.js +205 -0
- package/lib/commonjs/components/AssetDetail.js.map +1 -0
- package/lib/commonjs/components/AssetRow.js +246 -0
- package/lib/commonjs/components/AssetRow.js.map +1 -0
- package/lib/commonjs/components/AssetsFilterBar.js +92 -0
- package/lib/commonjs/components/AssetsFilterBar.js.map +1 -0
- package/lib/commonjs/components/AssetsHeader.js +66 -0
- package/lib/commonjs/components/AssetsHeader.js.map +1 -0
- package/lib/commonjs/components/AssetsIcon.js +19 -0
- package/lib/commonjs/components/AssetsIcon.js.map +1 -0
- package/lib/commonjs/components/AssetsListControls.js +94 -0
- package/lib/commonjs/components/AssetsListControls.js.map +1 -0
- package/lib/commonjs/components/AssetsModal.js +338 -0
- package/lib/commonjs/components/AssetsModal.js.map +1 -0
- package/lib/commonjs/components/BaselineBar.js +110 -0
- package/lib/commonjs/components/BaselineBar.js.map +1 -0
- package/lib/commonjs/export.js +62 -0
- package/lib/commonjs/export.js.map +1 -0
- package/lib/commonjs/format.js +59 -0
- package/lib/commonjs/format.js.map +1 -0
- package/lib/commonjs/hooks/useAssetRecords.js +22 -0
- package/lib/commonjs/hooks/useAssetRecords.js.map +1 -0
- package/lib/commonjs/index.js +260 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/preset.js +45 -0
- package/lib/commonjs/preset.js.map +1 -0
- package/lib/commonjs/remote.js +65 -0
- package/lib/commonjs/remote.js.map +1 -0
- package/lib/commonjs/state.js +51 -0
- package/lib/commonjs/state.js.map +1 -0
- package/lib/commonjs/store/assetStore.js +234 -0
- package/lib/commonjs/store/assetStore.js.map +1 -0
- package/lib/commonjs/store/baseline.js +165 -0
- package/lib/commonjs/store/baseline.js.map +1 -0
- package/lib/commonjs/store/insights.js +129 -0
- package/lib/commonjs/store/insights.js.map +1 -0
- package/lib/commonjs/sync/assetsSyncAdapter.js +157 -0
- package/lib/commonjs/sync/assetsSyncAdapter.js.map +1 -0
- package/lib/commonjs/types.js +2 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/capture/expo.js +41 -0
- package/lib/module/capture/expo.js.map +1 -0
- package/lib/module/capture/install.js +72 -0
- package/lib/module/capture/install.js.map +1 -0
- package/lib/module/capture/measure.js +179 -0
- package/lib/module/capture/measure.js.map +1 -0
- package/lib/module/capture/metroGraph.js +141 -0
- package/lib/module/capture/metroGraph.js.map +1 -0
- package/lib/module/capture/registry.js +117 -0
- package/lib/module/capture/registry.js.map +1 -0
- package/lib/module/components/AssetDetail.js +201 -0
- package/lib/module/components/AssetDetail.js.map +1 -0
- package/lib/module/components/AssetRow.js +242 -0
- package/lib/module/components/AssetRow.js.map +1 -0
- package/lib/module/components/AssetsFilterBar.js +88 -0
- package/lib/module/components/AssetsFilterBar.js.map +1 -0
- package/lib/module/components/AssetsHeader.js +62 -0
- package/lib/module/components/AssetsHeader.js.map +1 -0
- package/lib/module/components/AssetsIcon.js +12 -0
- package/lib/module/components/AssetsIcon.js.map +1 -0
- package/lib/module/components/AssetsListControls.js +90 -0
- package/lib/module/components/AssetsListControls.js.map +1 -0
- package/lib/module/components/AssetsModal.js +333 -0
- package/lib/module/components/AssetsModal.js.map +1 -0
- package/lib/module/components/BaselineBar.js +106 -0
- package/lib/module/components/BaselineBar.js.map +1 -0
- package/lib/module/export.js +57 -0
- package/lib/module/export.js.map +1 -0
- package/lib/module/format.js +51 -0
- package/lib/module/format.js.map +1 -0
- package/lib/module/hooks/useAssetRecords.js +18 -0
- package/lib/module/hooks/useAssetRecords.js.map +1 -0
- package/lib/module/index.js +59 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/preset.js +40 -0
- package/lib/module/preset.js.map +1 -0
- package/lib/module/remote.js +58 -0
- package/lib/module/remote.js.map +1 -0
- package/lib/module/state.js +47 -0
- package/lib/module/state.js.map +1 -0
- package/lib/module/store/assetStore.js +219 -0
- package/lib/module/store/assetStore.js.map +1 -0
- package/lib/module/store/baseline.js +157 -0
- package/lib/module/store/baseline.js.map +1 -0
- package/lib/module/store/insights.js +125 -0
- package/lib/module/store/insights.js.map +1 -0
- package/lib/module/sync/assetsSyncAdapter.js +153 -0
- package/lib/module/sync/assetsSyncAdapter.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/capture/expo.d.ts +18 -0
- package/lib/typescript/capture/expo.d.ts.map +1 -0
- package/lib/typescript/capture/install.d.ts +17 -0
- package/lib/typescript/capture/install.d.ts.map +1 -0
- package/lib/typescript/capture/measure.d.ts +38 -0
- package/lib/typescript/capture/measure.d.ts.map +1 -0
- package/lib/typescript/capture/metroGraph.d.ts +33 -0
- package/lib/typescript/capture/metroGraph.d.ts.map +1 -0
- package/lib/typescript/capture/registry.d.ts +45 -0
- package/lib/typescript/capture/registry.d.ts.map +1 -0
- package/lib/typescript/components/AssetDetail.d.ts +17 -0
- package/lib/typescript/components/AssetDetail.d.ts.map +1 -0
- package/lib/typescript/components/AssetRow.d.ts +32 -0
- package/lib/typescript/components/AssetRow.d.ts.map +1 -0
- package/lib/typescript/components/AssetsFilterBar.d.ts +16 -0
- package/lib/typescript/components/AssetsFilterBar.d.ts.map +1 -0
- package/lib/typescript/components/AssetsHeader.d.ts +22 -0
- package/lib/typescript/components/AssetsHeader.d.ts.map +1 -0
- package/lib/typescript/components/AssetsIcon.d.ts +9 -0
- package/lib/typescript/components/AssetsIcon.d.ts.map +1 -0
- package/lib/typescript/components/AssetsListControls.d.ts +18 -0
- package/lib/typescript/components/AssetsListControls.d.ts.map +1 -0
- package/lib/typescript/components/AssetsModal.d.ts +24 -0
- package/lib/typescript/components/AssetsModal.d.ts.map +1 -0
- package/lib/typescript/components/BaselineBar.d.ts +13 -0
- package/lib/typescript/components/BaselineBar.d.ts.map +1 -0
- package/lib/typescript/export.d.ts +8 -0
- package/lib/typescript/export.d.ts.map +1 -0
- package/lib/typescript/format.d.ts +13 -0
- package/lib/typescript/format.d.ts.map +1 -0
- package/lib/typescript/hooks/useAssetRecords.d.ts +11 -0
- package/lib/typescript/hooks/useAssetRecords.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +26 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/preset.d.ts +38 -0
- package/lib/typescript/preset.d.ts.map +1 -0
- package/lib/typescript/remote.d.ts +17 -0
- package/lib/typescript/remote.d.ts.map +1 -0
- package/lib/typescript/state.d.ts +41 -0
- package/lib/typescript/state.d.ts.map +1 -0
- package/lib/typescript/store/assetStore.d.ts +51 -0
- package/lib/typescript/store/assetStore.d.ts.map +1 -0
- package/lib/typescript/store/baseline.d.ts +22 -0
- package/lib/typescript/store/baseline.d.ts.map +1 -0
- package/lib/typescript/store/insights.d.ts +7 -0
- package/lib/typescript/store/insights.d.ts.map +1 -0
- package/lib/typescript/sync/assetsSyncAdapter.d.ts +83 -0
- package/lib/typescript/sync/assetsSyncAdapter.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +162 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/package.json +77 -0
- package/src/capture/expo.ts +45 -0
- package/src/capture/install.ts +73 -0
- package/src/capture/measure.ts +167 -0
- package/src/capture/metroGraph.ts +146 -0
- package/src/capture/registry.ts +134 -0
- package/src/components/AssetDetail.tsx +207 -0
- package/src/components/AssetRow.tsx +243 -0
- package/src/components/AssetsFilterBar.tsx +99 -0
- package/src/components/AssetsHeader.tsx +75 -0
- package/src/components/AssetsIcon.tsx +9 -0
- package/src/components/AssetsListControls.tsx +101 -0
- package/src/components/AssetsModal.tsx +368 -0
- package/src/components/BaselineBar.tsx +98 -0
- package/src/export.ts +108 -0
- package/src/format.ts +53 -0
- package/src/hooks/useAssetRecords.ts +26 -0
- package/src/index.tsx +87 -0
- package/src/preset.tsx +35 -0
- package/src/remote.ts +65 -0
- package/src/state.ts +84 -0
- package/src/store/assetStore.ts +209 -0
- package/src/store/baseline.ts +152 -0
- package/src/store/insights.ts +145 -0
- package/src/sync/assetsSyncAdapter.ts +151 -0
- package/src/types.ts +160 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BaselineBar = BaselineBar;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
9
|
+
var _format = require("../format");
|
|
10
|
+
var _baseline = require("../store/baseline");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
/**
|
|
13
|
+
* BaselineBar — save/compare-against-baseline controls.
|
|
14
|
+
*
|
|
15
|
+
* No baseline: one "SAVE BASELINE" button. With a baseline: the diff summary
|
|
16
|
+
* ("+3 new · 1 removed · +1.2 MB since 2h ago") plus UPDATE and ✕ (clear).
|
|
17
|
+
* Growth renders in warning color, shrinkage in success — that's the whole
|
|
18
|
+
* point of the feature.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
function formatAge(savedAt) {
|
|
22
|
+
const minutes = Math.max(1, Math.round((Date.now() - savedAt) / 60000));
|
|
23
|
+
if (minutes < 60) return `${minutes}m ago`;
|
|
24
|
+
const hours = Math.round(minutes / 60);
|
|
25
|
+
if (hours < 48) return `${hours}h ago`;
|
|
26
|
+
return `${Math.round(hours / 24)}d ago`;
|
|
27
|
+
}
|
|
28
|
+
function BaselineBar({
|
|
29
|
+
diff
|
|
30
|
+
}) {
|
|
31
|
+
// No baseline → no bar; the BASE button in AssetsListControls creates one.
|
|
32
|
+
if (!diff) return null;
|
|
33
|
+
const parts = [];
|
|
34
|
+
if (diff.added.length) parts.push(`+${diff.added.length} new`);
|
|
35
|
+
if (diff.removed.length) parts.push(`${diff.removed.length} removed`);
|
|
36
|
+
if (diff.grown.length) parts.push(`${diff.grown.length} grew`);
|
|
37
|
+
const net = diff.netBytes != null && Math.abs(diff.netBytes) >= 1024 ? `${diff.netBytes > 0 ? "+" : "−"}${(0, _format.formatBytes)(Math.abs(diff.netBytes))}` : null;
|
|
38
|
+
const changed = parts.length > 0 || net != null;
|
|
39
|
+
const netColor = diff.netBytes != null && diff.netBytes > 0 ? _sharedUi.macOSColors.semantic.warning : _sharedUi.macOSColors.semantic.success;
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
41
|
+
style: styles.bar,
|
|
42
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
43
|
+
style: styles.summary,
|
|
44
|
+
numberOfLines: 1,
|
|
45
|
+
children: [changed ? parts.join(" · ") : "No changes", net ? " · " : "", net ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
46
|
+
style: {
|
|
47
|
+
color: netColor
|
|
48
|
+
},
|
|
49
|
+
children: net
|
|
50
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
51
|
+
style: styles.age,
|
|
52
|
+
children: [" vs ", formatAge(diff.baselineSavedAt)]
|
|
53
|
+
})]
|
|
54
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
55
|
+
style: styles.button,
|
|
56
|
+
onPress: () => void (0, _baseline.saveBaseline)(),
|
|
57
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
58
|
+
style: styles.buttonText,
|
|
59
|
+
children: "UPDATE"
|
|
60
|
+
})
|
|
61
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
62
|
+
style: styles.button,
|
|
63
|
+
onPress: () => void (0, _baseline.clearBaseline)(),
|
|
64
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
65
|
+
style: styles.buttonText,
|
|
66
|
+
children: "\u2715"
|
|
67
|
+
})
|
|
68
|
+
})]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
const styles = _reactNative.StyleSheet.create({
|
|
72
|
+
bar: {
|
|
73
|
+
flexDirection: "row",
|
|
74
|
+
alignItems: "center",
|
|
75
|
+
gap: 8,
|
|
76
|
+
marginHorizontal: 10,
|
|
77
|
+
marginBottom: 8,
|
|
78
|
+
paddingHorizontal: 10,
|
|
79
|
+
paddingVertical: 6,
|
|
80
|
+
borderWidth: 1,
|
|
81
|
+
borderColor: _sharedUi.macOSColors.border.default,
|
|
82
|
+
borderRadius: 8,
|
|
83
|
+
backgroundColor: _sharedUi.macOSColors.background.card
|
|
84
|
+
},
|
|
85
|
+
summary: {
|
|
86
|
+
flex: 1,
|
|
87
|
+
color: _sharedUi.macOSColors.text.secondary,
|
|
88
|
+
fontSize: 10,
|
|
89
|
+
fontWeight: "600"
|
|
90
|
+
},
|
|
91
|
+
age: {
|
|
92
|
+
color: _sharedUi.macOSColors.text.muted,
|
|
93
|
+
fontWeight: "400"
|
|
94
|
+
},
|
|
95
|
+
button: {
|
|
96
|
+
backgroundColor: _sharedUi.macOSColors.background.input,
|
|
97
|
+
borderWidth: 1,
|
|
98
|
+
borderColor: _sharedUi.macOSColors.border.default,
|
|
99
|
+
borderRadius: 6,
|
|
100
|
+
paddingHorizontal: 8,
|
|
101
|
+
paddingVertical: 5
|
|
102
|
+
},
|
|
103
|
+
buttonText: {
|
|
104
|
+
color: _sharedUi.macOSColors.text.secondary,
|
|
105
|
+
fontSize: 9,
|
|
106
|
+
fontWeight: "700",
|
|
107
|
+
letterSpacing: 0.5
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
//# sourceMappingURL=BaselineBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_sharedUi","_format","_baseline","_jsxRuntime","formatAge","savedAt","minutes","Math","max","round","Date","now","hours","BaselineBar","diff","parts","added","length","push","removed","grown","net","netBytes","abs","formatBytes","changed","netColor","macOSColors","semantic","warning","success","jsxs","View","style","styles","bar","children","Text","summary","numberOfLines","join","jsx","color","age","baselineSavedAt","TouchableOpacity","button","onPress","saveBaseline","buttonText","clearBaseline","StyleSheet","create","flexDirection","alignItems","gap","marginHorizontal","marginBottom","paddingHorizontal","paddingVertical","borderWidth","borderColor","border","default","borderRadius","backgroundColor","background","card","flex","text","secondary","fontSize","fontWeight","muted","input","letterSpacing"],"sourceRoot":"../../../src","sources":["components/BaselineBar.tsx"],"mappings":";;;;;;AASA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAAgE,IAAAI,WAAA,GAAAJ,OAAA;AAZhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA,SAASK,SAASA,CAACC,OAAe,EAAU;EAC1C,MAAMC,OAAO,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,KAAK,CAAC,CAACC,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGN,OAAO,IAAI,KAAK,CAAC,CAAC;EACvE,IAAIC,OAAO,GAAG,EAAE,EAAE,OAAO,GAAGA,OAAO,OAAO;EAC1C,MAAMM,KAAK,GAAGL,IAAI,CAACE,KAAK,CAACH,OAAO,GAAG,EAAE,CAAC;EACtC,IAAIM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AAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.formatAssetMarkdown = formatAssetMarkdown;
|
|
7
|
+
exports.formatInventoryMarkdown = formatInventoryMarkdown;
|
|
8
|
+
var _format = require("./format");
|
|
9
|
+
var _assetStore = require("./store/assetStore");
|
|
10
|
+
/**
|
|
11
|
+
* Markdown reports for the shared ToolbarCopyButton — the paste-into-your-
|
|
12
|
+
* issue-tracker view of the inventory.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
function formatAssetMarkdown(record) {
|
|
16
|
+
const lines = [`# Asset: ${record.name}.${record.type}`, "", `- Kind: ${record.kind}`, `- Status: ${record.loaded ? "loaded at runtime" : "in bundle, never loaded"}`];
|
|
17
|
+
if (record.kind === "image") lines.push(`- Dimensions: ${(0, _format.formatDimensions)(record)} (logical)`);
|
|
18
|
+
if (record.scales.length) lines.push(`- Scales: ${(0, _format.formatScales)(record.scales)}`);
|
|
19
|
+
if (record.sizeBytes != null && record.sizeSource === "measured") {
|
|
20
|
+
lines.push(`- Size (all variants): ${(0, _format.formatBytes)(record.sizeBytes)}`);
|
|
21
|
+
}
|
|
22
|
+
const estimate = (0, _assetStore.estDecodedBytes)(record);
|
|
23
|
+
if (estimate > 0) lines.push(`- Decoded memory: ~${(0, _format.formatBytes)(estimate)}`);
|
|
24
|
+
if (record.hash) lines.push(`- Hash: ${record.hash}`);
|
|
25
|
+
if (record.httpServerLocation) lines.push(`- Location: ${record.httpServerLocation}`);
|
|
26
|
+
if (record.fileSystemLocation) lines.push(`- Source dir: ${record.fileSystemLocation}`);
|
|
27
|
+
if (record.resolvedUri) lines.push(`- Resolved URI: ${record.resolvedUri}`);
|
|
28
|
+
return lines.join("\n");
|
|
29
|
+
}
|
|
30
|
+
function formatInventoryMarkdown(records, stats, insights, scanStatus, diff) {
|
|
31
|
+
const lines = ["# Asset inventory", "", `${stats.total} assets · ${stats.loaded} loaded · ${stats.neverLoaded} never loaded` + (stats.totalBytes > 0 ? ` · ${(0, _format.formatBytes)(stats.totalBytes)} measured (${stats.measuredCount}/${stats.total})` : "")];
|
|
32
|
+
if (scanStatus.fontFamilies.length) {
|
|
33
|
+
lines.push(`Fonts loaded: ${scanStatus.fontFamilies.join(", ")}`);
|
|
34
|
+
}
|
|
35
|
+
if (!scanStatus.graphSupported) {
|
|
36
|
+
lines.push("_No Metro dev server — runtime-registered assets only (release build)._");
|
|
37
|
+
}
|
|
38
|
+
if (diff) {
|
|
39
|
+
const net = diff.netBytes != null ? `${diff.netBytes >= 0 ? "+" : "−"}${(0, _format.formatBytes)(Math.abs(diff.netBytes))} net` : "net size unknown";
|
|
40
|
+
lines.push("", `## Since baseline (${new Date(diff.baselineSavedAt).toISOString()})`, `- ${diff.added.length} added · ${diff.removed.length} removed · ${diff.grown.length} grew · ${net}`);
|
|
41
|
+
for (const gone of diff.removed.slice(0, 20)) {
|
|
42
|
+
lines.push(`- removed: ${gone.name}.${gone.type}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const findings = [];
|
|
46
|
+
if (insights.neverLoaded.length) findings.push(`- ${insights.neverLoaded.length} shipped but never loaded`);
|
|
47
|
+
if (insights.duplicates.length) findings.push(`- ${insights.duplicates.length} duplicate content groups`);
|
|
48
|
+
if (insights.webpCandidates.length) findings.push(`- ${insights.webpCandidates.length} WebP conversion candidates`);
|
|
49
|
+
if (insights.scaleGaps.length) findings.push(`- ${insights.scaleGaps.length} scale-coverage gaps`);
|
|
50
|
+
if (insights.overDecode.length) findings.push(`- ${insights.overDecode.length} images decoding larger than 2× the screen`);
|
|
51
|
+
if (insights.heavyGifs.length) findings.push(`- ${insights.heavyGifs.length} heavy GIFs (convert to video/Lottie)`);
|
|
52
|
+
if (insights.heavyFonts.length) findings.push(`- ${insights.heavyFonts.length} heavy fonts (subset candidates)`);
|
|
53
|
+
if (insights.scaleAnomalies.length) findings.push(`- ${insights.scaleAnomalies.length} scale-variant anomalies (check exports)`);
|
|
54
|
+
if (findings.length) lines.push("", "## Findings", ...findings);
|
|
55
|
+
lines.push("", "## Assets (largest first)", "", "| Asset | Kind | Dimensions | Scales | Size | Loaded |", "| --- | --- | --- | --- | --- | --- |");
|
|
56
|
+
for (const r of records) {
|
|
57
|
+
const size = r.sizeBytes != null && r.sizeSource === "measured" ? (0, _format.formatBytes)(r.sizeBytes) : (0, _assetStore.estDecodedBytes)(r) > 0 ? `~${(0, _format.formatBytes)((0, _assetStore.estDecodedBytes)(r))}` : "—";
|
|
58
|
+
lines.push(`| ${r.name}.${r.type} | ${r.kind} | ${r.kind === "image" ? (0, _format.formatDimensions)(r) : "—"} | ${(0, _format.formatScales)(r.scales)} | ${size} | ${r.loaded ? "yes" : "NO"} |`);
|
|
59
|
+
}
|
|
60
|
+
return lines.join("\n");
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_format","require","_assetStore","formatAssetMarkdown","record","lines","name","type","kind","loaded","push","formatDimensions","scales","length","formatScales","sizeBytes","sizeSource","formatBytes","estimate","estDecodedBytes","hash","httpServerLocation","fileSystemLocation","resolvedUri","join","formatInventoryMarkdown","records","stats","insights","scanStatus","diff","total","neverLoaded","totalBytes","measuredCount","fontFamilies","graphSupported","net","netBytes","Math","abs","Date","baselineSavedAt","toISOString","added","removed","grown","gone","slice","findings","duplicates","webpCandidates","scaleGaps","overDecode","heavyGifs","heavyFonts","scaleAnomalies","r","size"],"sourceRoot":"../../src","sources":["export.ts"],"mappings":";;;;;;;AAKA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AANA;AACA;AACA;AACA;;AAYO,SAASE,mBAAmBA,CAACC,MAAmB,EAAU;EAC/D,MAAMC,KAAK,GAAG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", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.KIND_LABELS = exports.KIND_COLORS = void 0;
|
|
7
|
+
exports.formatBytes = formatBytes;
|
|
8
|
+
exports.formatDimensions = formatDimensions;
|
|
9
|
+
exports.formatScales = formatScales;
|
|
10
|
+
exports.formatSize = formatSize;
|
|
11
|
+
/**
|
|
12
|
+
* Shared formatting helpers for rows, detail view, and markdown export.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
function formatBytes(bytes) {
|
|
16
|
+
if (bytes == null || bytes <= 0) return "—";
|
|
17
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
18
|
+
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
19
|
+
return `${(bytes / (1024 * 1024)).toFixed(2)} MB`;
|
|
20
|
+
}
|
|
21
|
+
function formatScales(scales) {
|
|
22
|
+
const unique = [...new Set(scales)].sort((a, b) => a - b);
|
|
23
|
+
if (!unique.length) return "—";
|
|
24
|
+
if (unique.length === 1) return `@${unique[0]}x`;
|
|
25
|
+
if (unique.length <= 3) return unique.map(s => `@${s}x`).join(" ");
|
|
26
|
+
return `@${unique[0]}x–@${unique[unique.length - 1]}x`;
|
|
27
|
+
}
|
|
28
|
+
function formatDimensions(record) {
|
|
29
|
+
if (record.width == null || record.height == null) return "—";
|
|
30
|
+
return `${Math.round(record.width)}×${Math.round(record.height)}`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Display size: measured bytes, or "~" decoded estimate for unmeasured images. */
|
|
34
|
+
function formatSize(record, estDecoded) {
|
|
35
|
+
if (record.sizeBytes != null && record.sizeSource === "measured") {
|
|
36
|
+
return formatBytes(record.sizeBytes);
|
|
37
|
+
}
|
|
38
|
+
if (estDecoded > 0) return `~${formatBytes(estDecoded)}`;
|
|
39
|
+
return "—";
|
|
40
|
+
}
|
|
41
|
+
const KIND_LABELS = exports.KIND_LABELS = {
|
|
42
|
+
image: "IMG",
|
|
43
|
+
font: "FONT",
|
|
44
|
+
video: "VID",
|
|
45
|
+
audio: "AUD",
|
|
46
|
+
data: "DATA",
|
|
47
|
+
other: "MISC"
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** Family accent per kind — the card's left edge, like network's method bar. */
|
|
51
|
+
const KIND_COLORS = exports.KIND_COLORS = {
|
|
52
|
+
image: "#2DD4BF",
|
|
53
|
+
font: "#C084FC",
|
|
54
|
+
video: "#FF9F1C",
|
|
55
|
+
audio: "#FF3366",
|
|
56
|
+
data: "#00D4FF",
|
|
57
|
+
other: "#8E8E93"
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatBytes","bytes","toFixed","formatScales","scales","unique","Set","sort","a","b","length","map","s","join","formatDimensions","record","width","height","Math","round","formatSize","estDecoded","sizeBytes","sizeSource","KIND_LABELS","exports","image","font","video","audio","data","other","KIND_COLORS"],"sourceRoot":"../../src","sources":["format.ts"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;;AAIO,SAASA,WAAWA,CAACC,KAAgC,EAAU;EACpE,IAAIA,KAAK,IAAI,IAAI,IAAIA,KAAK,IAAI,CAAC,EAAE,OAAO,GAAG;EAC3C,IAAIA,KAAK,GAAG,IAAI,EAAE,OAAO,GAAGA,KAAK,IAAI;EACrC,IAAIA,KAAK,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,GAAG,CAACA,KAAK,GAAG,IAAI,EAAEC,OAAO,CAAC,CAAC,CAAC,KAAK;EACjE,OAAO,GAAG,CAACD,KAAK,IAAI,IAAI,GAAG,IAAI,CAAC,EAAEC,OAAO,CAAC,CAAC,CAAC,KAAK;AACnD;AAEO,SAASC,YAAYA,CAACC,MAAgB,EAAU;EACrD,MAAMC,MAAM,GAAG,CAAC,GAAG,IAAIC,GAAG,CAACF,MAAM,CAAC,CAAC,CAACG,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CA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,MAAMC,WAAsC,GAAAP,OAAA,CAAAO,WAAA,GAAG;EACpDN,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE;AACT,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAssetRecords = useAssetRecords;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _assetStore = require("../store/assetStore");
|
|
9
|
+
var _insights = require("../store/insights");
|
|
10
|
+
/**
|
|
11
|
+
* React bindings for the asset store.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
function useAssetRecords() {
|
|
15
|
+
const snapshot = (0, _react.useSyncExternalStore)(_assetStore.subscribe, _assetStore.getSnapshot, _assetStore.getSnapshot);
|
|
16
|
+
return (0, _react.useMemo)(() => ({
|
|
17
|
+
records: snapshot,
|
|
18
|
+
stats: (0, _assetStore.computeStats)(snapshot),
|
|
19
|
+
insights: (0, _insights.computeInsights)(snapshot)
|
|
20
|
+
}), [snapshot]);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=useAssetRecords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_assetStore","_insights","useAssetRecords","snapshot","useSyncExternalStore","subscribe","getSnapshot","useMemo","records","stats","computeStats","insights","computeInsights"],"sourceRoot":"../../../src","sources":["hooks/useAssetRecords.ts"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AANA;AACA;AACA;;AAaO,SAASG,eAAeA,CAAA,EAA0B;EACvD,MAAMC,QAAQ,GAAG,IAAAC,2BAAoB,EAACC,qBAAS,EAAEC,uBAAW,EAAEA,uBAAW,CAAC;EAC1E,OAAO,IAAAC,cAAO,EACZ,OAAO;IACLC,OAAO,EAAEL,QAAQ;IACjBM,KAAK,EAAE,IAAAC,wBAAY,EAACP,QAAQ,CAAC;IAC7BQ,QAAQ,EAAE,IAAAC,yBAAe,EAACT,QAAQ;EACpC,CAAC,CAAC,EACF,CAACA,QAAQ,CACX,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ASSETS_ICON_COLOR", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _AssetsIcon.ASSETS_ICON_COLOR;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AssetsIcon", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _AssetsIcon.AssetsIcon;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "AssetsModal", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _AssetsModal.AssetsModal;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "AssetsToolView", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _AssetsModal.AssetsToolView;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "assetsSyncAdapter", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _assetsSyncAdapter.assetsSyncAdapter;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "assetsToolPreset", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _preset.assetsToolPreset;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "clearBaseline", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _baseline.clearBaseline;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "clearRecords", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _assetStore.clearRecords;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "computeDiff", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _baseline.computeDiff;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "computeInsights", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _insights.computeInsights;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "computeStats", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _assetStore.computeStats;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "createAssetsTool", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _preset.createAssetsTool;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "disableAssetsCapture", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _remote.disableAssetsCapture;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "estDecodedBytes", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _assetStore.estDecodedBytes;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "fetchAssetGraph", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _metroGraph.fetchAssetGraph;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "formatAssetMarkdown", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _export.formatAssetMarkdown;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "formatInventoryMarkdown", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _export.formatInventoryMarkdown;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "getDevServerOrigin", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _metroGraph.getDevServerOrigin;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "getDiff", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _baseline.getDiff;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "getLoadedFontFamilies", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _expo.getLoadedFontFamilies;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "getLocalAssets", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _expo.getLocalAssets;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "getRecord", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _assetStore.getRecord;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "getScanStatus", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _install.getScanStatus;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "getSnapshot", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _assetStore.getSnapshot;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "installAssetCapture", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _install.installAssetCapture;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "loadBaseline", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _baseline.loadBaseline;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "measureSizes", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _measure.measureSizes;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "replaceAssetsFromSnapshot", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _remote.replaceAssetsFromSnapshot;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "rescan", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return _install.rescan;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "saveBaseline", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return _baseline.saveBaseline;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "setRemoteAssetsHandler", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return _remote.setRemoteAssetsHandler;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "subscribe", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return _assetStore.subscribe;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "useAssetRecords", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return _useAssetRecords.useAssetRecords;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
var _preset = require("./preset");
|
|
205
|
+
var _AssetsModal = require("./components/AssetsModal");
|
|
206
|
+
var _AssetsIcon = require("./components/AssetsIcon");
|
|
207
|
+
var _install = require("./capture/install");
|
|
208
|
+
var _measure = require("./capture/measure");
|
|
209
|
+
var _metroGraph = require("./capture/metroGraph");
|
|
210
|
+
var _expo = require("./capture/expo");
|
|
211
|
+
var _assetStore = require("./store/assetStore");
|
|
212
|
+
var _insights = require("./store/insights");
|
|
213
|
+
var _baseline = require("./store/baseline");
|
|
214
|
+
var _useAssetRecords = require("./hooks/useAssetRecords");
|
|
215
|
+
var _export = require("./export");
|
|
216
|
+
var _assetsSyncAdapter = require("./sync/assetsSyncAdapter");
|
|
217
|
+
var _remote = require("./remote");
|
|
218
|
+
/**
|
|
219
|
+
* @buoy-gg/assets — bundled-asset inventory for React Native / Expo.
|
|
220
|
+
*
|
|
221
|
+
* Enumerates every asset in the app (images, fonts, video, audio, …) via the
|
|
222
|
+
* runtime asset registry, enriched in dev with the Metro graph (full-bundle
|
|
223
|
+
* coverage, byte sizes, never-loaded detection) and on Expo with loaded font
|
|
224
|
+
* families + the updates localAssets map. Zero configuration: importing this
|
|
225
|
+
* package installs the (cheap, synchronous) registry capture.
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
// ---------------------------------------------------------------------------
|
|
229
|
+
// Tool preset (FloatingDevTools)
|
|
230
|
+
// ---------------------------------------------------------------------------
|
|
231
|
+
|
|
232
|
+
// ---------------------------------------------------------------------------
|
|
233
|
+
// Components
|
|
234
|
+
// ---------------------------------------------------------------------------
|
|
235
|
+
|
|
236
|
+
// ---------------------------------------------------------------------------
|
|
237
|
+
// Capture / scanning
|
|
238
|
+
// ---------------------------------------------------------------------------
|
|
239
|
+
|
|
240
|
+
// ---------------------------------------------------------------------------
|
|
241
|
+
// Store
|
|
242
|
+
// ---------------------------------------------------------------------------
|
|
243
|
+
|
|
244
|
+
// ---------------------------------------------------------------------------
|
|
245
|
+
// Reports
|
|
246
|
+
// ---------------------------------------------------------------------------
|
|
247
|
+
|
|
248
|
+
// ---------------------------------------------------------------------------
|
|
249
|
+
// External sync (desktop dashboard + MCP)
|
|
250
|
+
// ---------------------------------------------------------------------------
|
|
251
|
+
|
|
252
|
+
// ---------------------------------------------------------------------------
|
|
253
|
+
// Types
|
|
254
|
+
// ---------------------------------------------------------------------------
|
|
255
|
+
|
|
256
|
+
// Side effect: install the registry capture at import (walk + patch — cheap,
|
|
257
|
+
// synchronous, no network). The Metro graph fetch waits for the modal/action.
|
|
258
|
+
|
|
259
|
+
(0, _install.installAssetCapture)();
|
|
260
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_preset","require","_AssetsModal","_AssetsIcon","_install","_measure","_metroGraph","_expo","_assetStore","_insights","_baseline","_useAssetRecords","_export","_assetsSyncAdapter","_remote","installOnImport"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAKA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AAKA,IAAAO,WAAA,GAAAP,OAAA;AAQA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAOA,IAAAU,gBAAA,GAAAV,OAAA;AAKA,IAAAW,OAAA,GAAAX,OAAA;AAKA,IAAAY,kBAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AA3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAGA;AACA;AACA;;AAIA;AACA;AACA;;AAMA;AACA;AACA;;AAmBA;AACA;AACA;;AAGA;AACA;AACA;;AASA;AACA;AACA;;AAeA;AACA;;AAEA,IAAAc,4BAAe,EAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.assetsToolPreset = void 0;
|
|
7
|
+
exports.createAssetsTool = createAssetsTool;
|
|
8
|
+
var _AssetsIcon = require("./components/AssetsIcon");
|
|
9
|
+
var _AssetsModal = require("./components/AssetsModal");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
/**
|
|
12
|
+
* Pre-configured Assets tool for FloatingDevTools.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { assetsToolPreset } from '@buoy-gg/assets';
|
|
17
|
+
*
|
|
18
|
+
* <FloatingDevTools apps={[assetsToolPreset]} />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
const assetsToolPreset = exports.assetsToolPreset = {
|
|
23
|
+
id: "assets",
|
|
24
|
+
name: "ASSETS",
|
|
25
|
+
description: "Every bundled asset — sizes, scale coverage, unused detection",
|
|
26
|
+
slot: "both",
|
|
27
|
+
icon: ({
|
|
28
|
+
size,
|
|
29
|
+
color
|
|
30
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_AssetsIcon.AssetsIcon, {
|
|
31
|
+
size: size,
|
|
32
|
+
color: color || _AssetsIcon.ASSETS_ICON_COLOR
|
|
33
|
+
}),
|
|
34
|
+
component: _AssetsModal.AssetsModal
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** Create a custom Assets tool configuration. */
|
|
38
|
+
function createAssetsTool(options = {}) {
|
|
39
|
+
return {
|
|
40
|
+
...assetsToolPreset,
|
|
41
|
+
name: options.name ?? assetsToolPreset.name,
|
|
42
|
+
description: options.description ?? assetsToolPreset.description
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=preset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_AssetsIcon","require","_AssetsModal","_jsxRuntime","assetsToolPreset","exports","id","name","description","slot","icon","size","color","jsx","AssetsIcon","ASSETS_ICON_COLOR","component","AssetsModal","createAssetsTool","options"],"sourceRoot":"../../src","sources":["preset.tsx"],"mappings":";;;;;;;AAWA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAuD,IAAAE,WAAA,GAAAF,OAAA;AAZvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKO,MAAMG,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EAC9BE,EAAE,EAAE,QAAQ;EACZC,IAAI,EAAE,QAAQ;EACdC,WAAW,EAAE,+DAA+D;EAC5EC,IAAI,EAAE,MAAe;EACrBC,IAAI,EAAEA,CAAC;IAAEC,IAAI;IAAEC;EAAwC,CAAC,kBACtD,IAAAT,WAAA,CAAAU,GAAA,EAACb,WAAA,CAAAc,UAAU;IAACH,IAAI,EAAEA,IAAK;IAACC,KAAK,EAAEA,KAAK,IAAIG;EAAkB,CAAE,CAC7D;EACDC,SAAS,EAAEC;AACb,CAAC;;AAED;AACO,SAASC,gBAAgBA,CAC9BC,OAAgD,GAAG,CAAC,CAAC,EACrD;EACA,OAAO;IACL,GAAGf,gBAAgB;IACnBG,IAAI,EAAEY,OAAO,CAACZ,IAAI,IAAIH,gBAAgB,CAACG,IAAI;IAC3CC,WAAW,EAAEW,OAAO,CAACX,WAAW,IAAIJ,gBAAgB,CAACI;EACvD,CAAC;AACH","ignoreList":[]}
|