@happyvertical/smrt-assets 0.40.65 → 0.40.67
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/dist/chunks/playground-HIASY7_c.js +81 -0
- package/dist/chunks/playground-HIASY7_c.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/manifest.json +1 -1
- package/dist/playground.js +1 -120
- package/dist/route-module.d.ts +14 -0
- package/dist/route-module.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +1555 -6
- package/dist/svelte/playground.d.ts +2 -15
- package/dist/svelte/playground.d.ts.map +1 -1
- package/dist/svelte/playground.js +2 -17
- package/dist/workbench.d.ts +30 -0
- package/dist/workbench.d.ts.map +1 -0
- package/dist/workbench.js +72 -0
- package/dist/workbench.js.map +1 -0
- package/package.json +17 -13
- package/dist/playground.js.map +0 -1
|
@@ -2,20 +2,7 @@ declare const _default: {
|
|
|
2
2
|
packageName: string;
|
|
3
3
|
displayName: string;
|
|
4
4
|
description: string;
|
|
5
|
-
entries:
|
|
6
|
-
id: string;
|
|
7
|
-
title: string;
|
|
8
|
-
description: string;
|
|
9
|
-
loadComponent: () => Promise<typeof import("./routes/AssetManagerRoute.svelte")>;
|
|
10
|
-
order: number;
|
|
11
|
-
tags: string[];
|
|
12
|
-
modes: {
|
|
13
|
-
mock: {
|
|
14
|
-
label: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
props?: undefined;
|
|
18
|
-
} | {
|
|
5
|
+
entries: {
|
|
19
6
|
id: string;
|
|
20
7
|
title: string;
|
|
21
8
|
description: string;
|
|
@@ -54,7 +41,7 @@ declare const _default: {
|
|
|
54
41
|
label: string;
|
|
55
42
|
};
|
|
56
43
|
};
|
|
57
|
-
}
|
|
44
|
+
}[];
|
|
58
45
|
};
|
|
59
46
|
export default _default;
|
|
60
47
|
//# sourceMappingURL=playground.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../src/svelte/playground.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../src/svelte/playground.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,wBA4BE"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ASSETS_ROUTE_META } from './routes/shared.js';
|
|
2
1
|
function createPreviewAssetUri(label, accent) {
|
|
3
2
|
const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800">
|
|
4
3
|
<defs>
|
|
@@ -50,31 +49,17 @@ const sampleAssets = [
|
|
|
50
49
|
},
|
|
51
50
|
];
|
|
52
51
|
const loadAssetGrid = () => import('./AssetGrid.svelte');
|
|
53
|
-
const loadAssetManagerRoute = () => import('./routes/AssetManagerRoute.svelte');
|
|
54
52
|
export default {
|
|
55
53
|
packageName: '@happyvertical/smrt-assets',
|
|
56
54
|
displayName: 'Assets',
|
|
57
|
-
description:
|
|
55
|
+
description: 'Component previews for asset browsing, selection, and media states.',
|
|
58
56
|
entries: [
|
|
59
|
-
{
|
|
60
|
-
id: 'asset-manager-route',
|
|
61
|
-
title: 'Asset Manager Route',
|
|
62
|
-
description: 'Package-owned route surface for browsing, selecting, and reviewing assets.',
|
|
63
|
-
loadComponent: loadAssetManagerRoute,
|
|
64
|
-
order: 1,
|
|
65
|
-
tags: ['route', 'assets', 'admin'],
|
|
66
|
-
modes: {
|
|
67
|
-
mock: {
|
|
68
|
-
label: 'Mock',
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
57
|
{
|
|
73
58
|
id: 'asset-grid',
|
|
74
59
|
title: 'Asset Grid',
|
|
75
60
|
description: 'Thumbnail grid preview showing selection state and missing-alt warnings.',
|
|
76
61
|
loadComponent: loadAssetGrid,
|
|
77
|
-
order:
|
|
62
|
+
order: 1,
|
|
78
63
|
tags: ['grid', 'assets', 'media'],
|
|
79
64
|
props: {
|
|
80
65
|
assets: sampleAssets,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as playground } from './svelte/playground.js';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
packageName: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
description: string;
|
|
6
|
+
routeModules: {
|
|
7
|
+
routes: {
|
|
8
|
+
manager: import('@happyvertical/smrt-types').SmrtRouteDefinition<unknown, unknown, {
|
|
9
|
+
data?: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
packageName: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
}[];
|
|
16
|
+
recommendedCommands: {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
command: string;
|
|
20
|
+
}[];
|
|
21
|
+
examples: {
|
|
22
|
+
id: string;
|
|
23
|
+
title: string;
|
|
24
|
+
path: string;
|
|
25
|
+
source: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
29
|
+
export { playground };
|
|
30
|
+
//# sourceMappingURL=workbench.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbench.d.ts","sourceRoot":"","sources":["../src/workbench.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,wBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AAShD,wBA0BE;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { t as playground_default } from "./chunks/playground-HIASY7_c.js";
|
|
2
|
+
import AssetManagerRoute from "./svelte/routes/AssetManagerRoute.svelte";
|
|
3
|
+
var ASSETS_ROUTE_META = { manager: {
|
|
4
|
+
id: { manager: "@happyvertical/smrt-assets:manager" }.manager,
|
|
5
|
+
title: "Asset Manager",
|
|
6
|
+
description: "Manage uploads, browse the asset library, and review selection state from the package-owned asset management route.",
|
|
7
|
+
defaultPath: "/assets",
|
|
8
|
+
loadKind: void 0,
|
|
9
|
+
nav: {
|
|
10
|
+
label: "Assets",
|
|
11
|
+
description: "Manage uploaded media and reusable files.",
|
|
12
|
+
icon: "folder-image",
|
|
13
|
+
order: 10,
|
|
14
|
+
group: "content"
|
|
15
|
+
}
|
|
16
|
+
} };
|
|
17
|
+
function createAssetsRouteNavigation(mounts = {}) {
|
|
18
|
+
return [ASSETS_ROUTE_META.manager].map((route) => ({
|
|
19
|
+
routeId: route.id,
|
|
20
|
+
href: mounts[route.id] ?? route.defaultPath,
|
|
21
|
+
label: route.nav?.label ?? route.title,
|
|
22
|
+
description: route.nav?.description ?? route.description,
|
|
23
|
+
icon: route.nav?.icon,
|
|
24
|
+
order: route.nav?.order,
|
|
25
|
+
group: route.nav?.group
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
createAssetsRouteNavigation();
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/route-module.ts
|
|
31
|
+
var ASSETS_ROUTE_MODULE = {
|
|
32
|
+
packageName: "@happyvertical/smrt-assets",
|
|
33
|
+
displayName: "Assets",
|
|
34
|
+
description: "Package-owned route surface for browsing, selecting, and organizing assets.",
|
|
35
|
+
routes: { manager: {
|
|
36
|
+
...ASSETS_ROUTE_META.manager,
|
|
37
|
+
component: AssetManagerRoute,
|
|
38
|
+
tags: [
|
|
39
|
+
"assets",
|
|
40
|
+
"media",
|
|
41
|
+
"admin"
|
|
42
|
+
]
|
|
43
|
+
} }
|
|
44
|
+
};
|
|
45
|
+
var workbench_default = {
|
|
46
|
+
packageName: "@happyvertical/smrt-assets",
|
|
47
|
+
displayName: "Assets",
|
|
48
|
+
description: "Workbench surfaces for asset browsing, selection, organization, and package previews.",
|
|
49
|
+
routeModules: [{
|
|
50
|
+
...ASSETS_ROUTE_MODULE,
|
|
51
|
+
routes: { manager: ASSETS_ROUTE_MODULE.routes.manager }
|
|
52
|
+
}],
|
|
53
|
+
recommendedCommands: [{
|
|
54
|
+
id: "assets:test",
|
|
55
|
+
label: "Test",
|
|
56
|
+
command: "pnpm --filter @happyvertical/smrt-assets test"
|
|
57
|
+
}, {
|
|
58
|
+
id: "assets:typecheck",
|
|
59
|
+
label: "Typecheck",
|
|
60
|
+
command: "pnpm --filter @happyvertical/smrt-assets typecheck"
|
|
61
|
+
}],
|
|
62
|
+
examples: [{
|
|
63
|
+
id: "assets:playground",
|
|
64
|
+
title: "Assets playground module",
|
|
65
|
+
path: "src/svelte/playground.ts",
|
|
66
|
+
source: "playground"
|
|
67
|
+
}]
|
|
68
|
+
};
|
|
69
|
+
//#endregion
|
|
70
|
+
export { workbench_default as default, playground_default as playground };
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=workbench.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbench.js","names":[],"sources":["../src/svelte/routes/shared.ts","../src/route-module.ts","../src/workbench.ts"],"sourcesContent":["import type {\n SmrtRouteDefinition,\n SmrtRouteNavigationItem,\n} from '@happyvertical/smrt-types';\n\nexport const ASSETS_ROUTE_IDS = {\n manager: '@happyvertical/smrt-assets:manager',\n} as const;\n\nexport type AssetsRouteId =\n (typeof ASSETS_ROUTE_IDS)[keyof typeof ASSETS_ROUTE_IDS];\n\nexport type AssetsRouteNavigationItem = SmrtRouteNavigationItem;\n\nexport const ASSETS_ROUTE_META = {\n manager: {\n id: ASSETS_ROUTE_IDS.manager,\n title: 'Asset Manager',\n description:\n 'Manage uploads, browse the asset library, and review selection state from the package-owned asset management route.',\n defaultPath: '/assets',\n loadKind: undefined,\n nav: {\n label: 'Assets',\n description: 'Manage uploaded media and reusable files.',\n icon: 'folder-image',\n order: 10,\n group: 'content',\n },\n } satisfies Omit<SmrtRouteDefinition, 'component'>,\n} as const;\n\nexport function createAssetsRouteNavigation(\n mounts: Partial<Record<AssetsRouteId, string>> = {},\n): AssetsRouteNavigationItem[] {\n return [ASSETS_ROUTE_META.manager].map((route) => ({\n routeId: route.id,\n href: mounts[route.id] ?? route.defaultPath,\n label: route.nav?.label ?? route.title,\n description: route.nav?.description ?? route.description,\n icon: route.nav?.icon,\n order: route.nav?.order,\n group: route.nav?.group,\n }));\n}\n\nexport const ASSETS_DEFAULT_ROUTE_NAVIGATION = createAssetsRouteNavigation();\n","import type {\n SmrtRouteDefinition,\n SmrtRouteModule,\n} from '@happyvertical/smrt-types';\nimport { AssetManagerRoute } from './svelte/routes/index.js';\nimport {\n ASSETS_DEFAULT_ROUTE_NAVIGATION,\n ASSETS_ROUTE_IDS,\n ASSETS_ROUTE_META,\n type AssetsRouteId,\n type AssetsRouteNavigationItem,\n createAssetsRouteNavigation,\n} from './svelte/routes/shared.js';\n\nexport type { AssetsRouteId, AssetsRouteNavigationItem };\nexport {\n ASSETS_DEFAULT_ROUTE_NAVIGATION,\n ASSETS_ROUTE_IDS,\n ASSETS_ROUTE_META,\n AssetManagerRoute,\n createAssetsRouteNavigation,\n};\n\nexport interface AssetsRouteDefinitions {\n manager: SmrtRouteDefinition;\n}\n\nexport type AssetsRouteModule = Omit<SmrtRouteModule, 'routes'> & {\n routes: AssetsRouteDefinitions;\n};\n\nexport const ASSETS_ROUTE_MODULE: AssetsRouteModule = {\n packageName: '@happyvertical/smrt-assets',\n displayName: 'Assets',\n description:\n 'Package-owned route surface for browsing, selecting, and organizing assets.',\n routes: {\n manager: {\n ...ASSETS_ROUTE_META.manager,\n component: AssetManagerRoute,\n tags: ['assets', 'media', 'admin'],\n },\n },\n};\n\nexport default ASSETS_ROUTE_MODULE;\n","import { ASSETS_ROUTE_MODULE } from './route-module.js';\nimport playground from './svelte/playground.js';\n\nconst routeModule = {\n ...ASSETS_ROUTE_MODULE,\n routes: {\n manager: ASSETS_ROUTE_MODULE.routes.manager,\n },\n};\n\nexport default {\n packageName: '@happyvertical/smrt-assets',\n displayName: 'Assets',\n description:\n 'Workbench surfaces for asset browsing, selection, organization, and package previews.',\n routeModules: [routeModule],\n recommendedCommands: [\n {\n id: 'assets:test',\n label: 'Test',\n command: 'pnpm --filter @happyvertical/smrt-assets test',\n },\n {\n id: 'assets:typecheck',\n label: 'Typecheck',\n command: 'pnpm --filter @happyvertical/smrt-assets typecheck',\n },\n ],\n examples: [\n {\n id: 'assets:playground',\n title: 'Assets playground module',\n path: 'src/svelte/playground.ts',\n source: 'playground',\n },\n ],\n};\n\nexport { playground };\n"],"mappings":";;AAcO,IAAM,oBAAoB,EAC/B,SAAS;CACP,IAAI,EAVN,SAAS,qCAUH,EAAiB;CACrB,OAAO;CACP,aACE;CACF,aAAa;CACb,UAAU,KAAA;CACV,KAAK;EACH,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,OAAO;CACT;AACF,EACF;AAEO,SAAS,4BACd,SAAiD,CAAC,GACrB;CAC7B,OAAO,CAAC,kBAAkB,OAAO,CAAA,CAAE,KAAK,WAAW;EACjD,SAAS,MAAM;EACf,MAAM,OAAO,MAAM,OAAO,MAAM;EAChC,OAAO,MAAM,KAAK,SAAS,MAAM;EACjC,aAAa,MAAM,KAAK,eAAe,MAAM;EAC7C,MAAM,MAAM,KAAK;EACjB,OAAO,MAAM,KAAK;EAClB,OAAO,MAAM,KAAK;CACpB,EAAE;AACJ;AAE+C,4BAA4B;;;ACfpE,IAAM,sBAAyC;CACpD,aAAa;CACb,aAAa;CACb,aACE;CACF,QAAQ,EACN,SAAS;EACP,GAAG,kBAAkB;EACrB,WAAW;EACX,MAAM;GAAC;GAAU;GAAS;EAAO;CACnC,EACF;AACF;ACjCA,IAAA,oBAAe;CACb,aAAa;CACb,aAAa;CACb,aACE;CACF,cAAc,CAAC;EAXf,GAAG;EACH,QAAQ,EACN,SAAS,oBAAoB,OAAO,QACtC;CAQe,CAAW;CAC1B,qBAAqB,CACnB;EACE,IAAI;EACJ,OAAO;EACP,SAAS;CACX,GACA;EACE,IAAI;EACJ,OAAO;EACP,SAAS;CACX,CACF;CACA,UAAU,CACR;EACE,IAAI;EACJ,OAAO;EACP,MAAM;EACN,QAAQ;CACV,CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-assets",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.67",
|
|
4
4
|
"description": "Asset management system with versioning, metadata, and AI-powered operations for SMRT framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -35,19 +35,23 @@
|
|
|
35
35
|
"./playground": {
|
|
36
36
|
"types": "./dist/playground.d.ts",
|
|
37
37
|
"import": "./dist/playground.js"
|
|
38
|
+
},
|
|
39
|
+
"./workbench": {
|
|
40
|
+
"types": "./dist/workbench.d.ts",
|
|
41
|
+
"import": "./dist/workbench.js"
|
|
38
42
|
}
|
|
39
43
|
},
|
|
40
44
|
"dependencies": {
|
|
41
|
-
"@happyvertical/ai": "^0.86.
|
|
42
|
-
"@happyvertical/files": "^0.86.
|
|
43
|
-
"@happyvertical/logger": "^0.86.
|
|
44
|
-
"@happyvertical/sql": "^0.86.
|
|
45
|
-
"@happyvertical/utils": "^0.86.
|
|
46
|
-
"@happyvertical/smrt-core": "0.40.
|
|
47
|
-
"@happyvertical/smrt-
|
|
48
|
-
"@happyvertical/smrt-
|
|
49
|
-
"@happyvertical/smrt-
|
|
50
|
-
"@happyvertical/smrt-ui": "0.40.
|
|
45
|
+
"@happyvertical/ai": "^0.86.3",
|
|
46
|
+
"@happyvertical/files": "^0.86.3",
|
|
47
|
+
"@happyvertical/logger": "^0.86.3",
|
|
48
|
+
"@happyvertical/sql": "^0.86.3",
|
|
49
|
+
"@happyvertical/utils": "^0.86.3",
|
|
50
|
+
"@happyvertical/smrt-core": "0.40.67",
|
|
51
|
+
"@happyvertical/smrt-tenancy": "0.40.67",
|
|
52
|
+
"@happyvertical/smrt-types": "0.40.67",
|
|
53
|
+
"@happyvertical/smrt-tags": "0.40.67",
|
|
54
|
+
"@happyvertical/smrt-ui": "0.40.67"
|
|
51
55
|
},
|
|
52
56
|
"peerDependencies": {
|
|
53
57
|
"svelte": "^5.56.4"
|
|
@@ -69,8 +73,8 @@
|
|
|
69
73
|
"typescript": "5.9.3",
|
|
70
74
|
"vite": "8.1.4",
|
|
71
75
|
"vitest": "4.1.10",
|
|
72
|
-
"@happyvertical/smrt-playground": "0.40.
|
|
73
|
-
"@happyvertical/smrt-vitest": "0.40.
|
|
76
|
+
"@happyvertical/smrt-playground": "0.40.67",
|
|
77
|
+
"@happyvertical/smrt-vitest": "0.40.67"
|
|
74
78
|
},
|
|
75
79
|
"keywords": [
|
|
76
80
|
"ai",
|
package/dist/playground.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playground.js","names":[],"sources":["../src/svelte/routes/shared.ts","../src/svelte/playground.ts"],"sourcesContent":["import type {\n SmrtRouteDefinition,\n SmrtRouteNavigationItem,\n} from '@happyvertical/smrt-types';\n\nexport const ASSETS_ROUTE_IDS = {\n manager: '@happyvertical/smrt-assets:manager',\n} as const;\n\nexport type AssetsRouteId =\n (typeof ASSETS_ROUTE_IDS)[keyof typeof ASSETS_ROUTE_IDS];\n\nexport type AssetsRouteNavigationItem = SmrtRouteNavigationItem;\n\nexport const ASSETS_ROUTE_META = {\n manager: {\n id: ASSETS_ROUTE_IDS.manager,\n title: 'Asset Manager',\n description:\n 'Manage uploads, browse the asset library, and review selection state from the package-owned asset management route.',\n defaultPath: '/assets',\n loadKind: undefined,\n nav: {\n label: 'Assets',\n description: 'Manage uploaded media and reusable files.',\n icon: 'folder-image',\n order: 10,\n group: 'content',\n },\n } satisfies Omit<SmrtRouteDefinition, 'component'>,\n} as const;\n\nexport function createAssetsRouteNavigation(\n mounts: Partial<Record<AssetsRouteId, string>> = {},\n): AssetsRouteNavigationItem[] {\n return [ASSETS_ROUTE_META.manager].map((route) => ({\n routeId: route.id,\n href: mounts[route.id] ?? route.defaultPath,\n label: route.nav?.label ?? route.title,\n description: route.nav?.description ?? route.description,\n icon: route.nav?.icon,\n order: route.nav?.order,\n group: route.nav?.group,\n }));\n}\n\nexport const ASSETS_DEFAULT_ROUTE_NAVIGATION = createAssetsRouteNavigation();\n","import { ASSETS_ROUTE_META } from './routes/shared.js';\n\nfunction createPreviewAssetUri(label: string, accent: string): string {\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1200 800\">\n <defs>\n <linearGradient id=\"bg\" x1=\"0%\" x2=\"100%\" y1=\"0%\" y2=\"100%\">\n <stop offset=\"0%\" stop-color=\"${accent}\" />\n <stop offset=\"100%\" stop-color=\"#0f172a\" />\n </linearGradient>\n </defs>\n <rect width=\"1200\" height=\"800\" fill=\"url(#bg)\" rx=\"48\" />\n <circle cx=\"260\" cy=\"220\" r=\"110\" fill=\"rgba(255,255,255,0.16)\" />\n <path d=\"M120 620L430 330l210 190 150-120 290 220H120z\" fill=\"rgba(255,255,255,0.22)\" />\n <text x=\"96\" y=\"126\" fill=\"#e2e8f0\" font-size=\"64\" font-family=\"Arial, sans-serif\" font-weight=\"700\">${label}</text>\n <text x=\"96\" y=\"690\" fill=\"#cbd5e1\" font-size=\"34\" font-family=\"Arial, sans-serif\">SMRT Assets preview</text>\n </svg>`;\n\n return `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(svg)}`;\n}\n\nconst sampleAssets = [\n {\n id: 'asset-harbor-map',\n name: 'Harbor Map',\n description: 'Annotated port operations map for logistics planning.',\n sourceUri: createPreviewAssetUri('Harbor Map', '#0891b2'),\n mimeType: 'image/png',\n createdAt: '2026-03-11T09:15:00.000Z',\n updatedAt: '2026-03-18T15:44:00.000Z',\n statusSlug: 'active',\n alt: 'Stylized harbor map with highlighted shipping lanes.',\n },\n {\n id: 'asset-spring-lookbook',\n name: 'Spring Lookbook',\n description: 'Photography sheet prepared for the seasonal launch.',\n sourceUri: createPreviewAssetUri('Lookbook', '#7c3aed'),\n mimeType: 'image/jpeg',\n createdAt: '2026-03-07T13:22:00.000Z',\n updatedAt: '2026-03-19T08:05:00.000Z',\n statusSlug: 'draft',\n alt: '',\n },\n {\n id: 'asset-style-guide',\n name: 'Brand Style Guide',\n description: 'Reference PDF for typography, voice, and image treatment.',\n sourceUri: '',\n mimeType: 'application/pdf',\n createdAt: '2026-03-01T18:00:00.000Z',\n updatedAt: '2026-03-10T18:45:00.000Z',\n statusSlug: 'published',\n },\n];\n\nconst loadAssetGrid = () => import('./AssetGrid.svelte');\nconst loadAssetManagerRoute = () => import('./routes/AssetManagerRoute.svelte');\n\nexport default {\n packageName: '@happyvertical/smrt-assets',\n displayName: 'Assets',\n description: ASSETS_ROUTE_META.manager.description,\n entries: [\n {\n id: 'asset-manager-route',\n title: 'Asset Manager Route',\n description:\n 'Package-owned route surface for browsing, selecting, and reviewing assets.',\n loadComponent: loadAssetManagerRoute,\n order: 1,\n tags: ['route', 'assets', 'admin'],\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'asset-grid',\n title: 'Asset Grid',\n description:\n 'Thumbnail grid preview showing selection state and missing-alt warnings.',\n loadComponent: loadAssetGrid,\n order: 2,\n tags: ['grid', 'assets', 'media'],\n props: {\n assets: sampleAssets,\n selectedIds: new Set(['asset-spring-lookbook']),\n loading: false,\n onSelectionChange: () => undefined,\n onAssetClick: () => undefined,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n ],\n};\n"],"mappings":"AAcO,IAAM,oBAAoB,EAC/B,SAAS;CACP,IAAI,EAVN,SAAS,qCAUH,EAAiB;CACrB,OAAO;CACP,aACE;CACF,aAAa;CACb,UAAU,KAAA;CACV,KAAK;EACH,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,OAAO;CACT;AACF,EACF;AAEO,SAAS,4BACd,SAAiD,CAAC,GACrB;CAC7B,OAAO,CAAC,kBAAkB,OAAO,CAAA,CAAE,KAAK,WAAW;EACjD,SAAS,MAAM;EACf,MAAM,OAAO,MAAM,OAAO,MAAM;EAChC,OAAO,MAAM,KAAK,SAAS,MAAM;EACjC,aAAa,MAAM,KAAK,eAAe,MAAM;EAC7C,MAAM,MAAM,KAAK;EACjB,OAAO,MAAM,KAAK;EAClB,OAAO,MAAM,KAAK;CACpB,EAAE;AACJ;AAE+C,4BAA4B;;;AC5C3E,SAAS,sBAAsB,OAAe,QAAwB;CACpE,MAAM,MAAM;;;wCAG0B,OAAM;;;;;;;2GAO6D,MAAK;;;CAI9G,OAAO,oCAAoC,mBAAmB,GAAG;AACnE;AAEA,IAAM,eAAe;CACnB;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,WAAW,sBAAsB,cAAc,SAAS;EACxD,UAAU;EACV,WAAW;EACX,WAAW;EACX,YAAY;EACZ,KAAK;CACP;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,WAAW,sBAAsB,YAAY,SAAS;EACtD,UAAU;EACV,WAAW;EACX,WAAW;EACX,YAAY;EACZ,KAAK;CACP;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,WAAW;EACX,UAAU;EACV,WAAW;EACX,WAAW;EACX,YAAY;CACd;AACF;AAEA,IAAM,sBAAsB,OAAO;AACnC,IAAM,8BAA8B,OAAO;AAE3C,IAAA,qBAAe;CACb,aAAa;CACb,aAAa;CACb,aAAa,kBAAkB,QAAQ;CACvC,SAAS,CACP;EACE,IAAI;EACJ,OAAO;EACP,aACE;EACF,eAAe;EACf,OAAO;EACP,MAAM;GAAC;GAAS;GAAU;EAAO;EACjC,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;CACF,GACA;EACE,IAAI;EACJ,OAAO;EACP,aACE;EACF,eAAe;EACf,OAAO;EACP,MAAM;GAAC;GAAQ;GAAU;EAAO;EAChC,OAAO;GACL,QAAQ;GACR,6BAAa,IAAI,IAAI,CAAC,uBAAuB,CAAC;GAC9C,SAAS;GACT,yBAAyB,KAAA;GACzB,oBAAoB,KAAA;EACtB;EACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;CACF,CACF;AACF"}
|