@anvilkit/plugin-asset-manager 0.1.5 → 0.1.7

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.
Files changed (224) hide show
  1. package/README.md +27 -19
  2. package/dist/adapters/data-url.cjs +9 -5
  3. package/dist/adapters/extract-image-dimensions.cjs +12 -8
  4. package/dist/adapters/in-memory.cjs +9 -5
  5. package/dist/adapters/s3-presigned.cjs +9 -5
  6. package/dist/index.cjs +16 -5
  7. package/dist/index.d.cts +11 -3
  8. package/dist/index.d.cts.map +1 -1
  9. package/dist/index.d.ts +11 -3
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +2 -1
  12. package/dist/plugin.cjs +76 -9
  13. package/dist/plugin.d.cts +3 -2
  14. package/dist/plugin.d.cts.map +1 -1
  15. package/dist/plugin.d.ts +3 -2
  16. package/dist/plugin.d.ts.map +1 -1
  17. package/dist/plugin.js +67 -4
  18. package/dist/sources/composite-source.cjs +137 -0
  19. package/dist/sources/composite-source.d.cts +39 -0
  20. package/dist/sources/composite-source.d.cts.map +1 -0
  21. package/dist/sources/composite-source.d.ts +39 -0
  22. package/dist/sources/composite-source.d.ts.map +1 -0
  23. package/dist/sources/composite-source.js +99 -0
  24. package/dist/sources/federated-search.cjs +163 -0
  25. package/dist/sources/federated-search.d.cts +33 -0
  26. package/dist/sources/federated-search.d.cts.map +1 -0
  27. package/dist/sources/federated-search.d.ts +33 -0
  28. package/dist/sources/federated-search.d.ts.map +1 -0
  29. package/dist/sources/federated-search.js +113 -0
  30. package/dist/sources/provider.cjs +18 -0
  31. package/dist/sources/provider.d.cts +51 -0
  32. package/dist/sources/provider.d.cts.map +1 -0
  33. package/dist/sources/provider.d.ts +51 -0
  34. package/dist/sources/provider.d.ts.map +1 -0
  35. package/dist/sources/provider.js +1 -0
  36. package/dist/sources/unsplash/client.cjs +189 -0
  37. package/dist/sources/unsplash/client.d.cts +87 -0
  38. package/dist/sources/unsplash/client.d.cts.map +1 -0
  39. package/dist/sources/unsplash/client.d.ts +87 -0
  40. package/dist/sources/unsplash/client.d.ts.map +1 -0
  41. package/dist/sources/unsplash/client.js +151 -0
  42. package/dist/sources/unsplash/index.cjs +192 -0
  43. package/dist/sources/unsplash/index.d.cts +16 -0
  44. package/dist/sources/unsplash/index.d.cts.map +1 -0
  45. package/dist/sources/unsplash/index.d.ts +16 -0
  46. package/dist/sources/unsplash/index.d.ts.map +1 -0
  47. package/dist/sources/unsplash/index.js +148 -0
  48. package/dist/sources/unsplash/themes.cjs +141 -0
  49. package/dist/sources/unsplash/themes.d.cts +18 -0
  50. package/dist/sources/unsplash/themes.d.cts.map +1 -0
  51. package/dist/sources/unsplash/themes.d.ts +18 -0
  52. package/dist/sources/unsplash/themes.d.ts.map +1 -0
  53. package/dist/sources/unsplash/themes.js +93 -0
  54. package/dist/sources/unsplash/throttle-cache.cjs +86 -0
  55. package/dist/sources/unsplash/throttle-cache.d.cts +25 -0
  56. package/dist/sources/unsplash/throttle-cache.d.cts.map +1 -0
  57. package/dist/sources/unsplash/throttle-cache.d.ts +25 -0
  58. package/dist/sources/unsplash/throttle-cache.d.ts.map +1 -0
  59. package/dist/sources/unsplash/throttle-cache.js +45 -0
  60. package/dist/testing/index.cjs +9 -5
  61. package/dist/types/categories.cjs +18 -0
  62. package/dist/types/categories.d.cts +48 -0
  63. package/dist/types/categories.d.cts.map +1 -0
  64. package/dist/types/categories.d.ts +48 -0
  65. package/dist/types/categories.d.ts.map +1 -0
  66. package/dist/types/categories.js +1 -0
  67. package/dist/types/data-source.cjs +18 -0
  68. package/dist/types/data-source.d.cts +59 -0
  69. package/dist/types/data-source.d.cts.map +1 -0
  70. package/dist/types/data-source.d.ts +59 -0
  71. package/dist/types/data-source.d.ts.map +1 -0
  72. package/dist/types/data-source.js +1 -0
  73. package/dist/types/filter.cjs +18 -0
  74. package/dist/types/filter.d.cts +55 -0
  75. package/dist/types/filter.d.cts.map +1 -0
  76. package/dist/types/filter.d.ts +55 -0
  77. package/dist/types/filter.d.ts.map +1 -0
  78. package/dist/types/filter.js +1 -0
  79. package/dist/types/folders.cjs +42 -0
  80. package/dist/types/folders.d.cts +46 -0
  81. package/dist/types/folders.d.cts.map +1 -0
  82. package/dist/types/folders.d.ts +46 -0
  83. package/dist/types/folders.d.ts.map +1 -0
  84. package/dist/types/folders.js +4 -0
  85. package/dist/types/options.cjs +18 -0
  86. package/dist/types/options.d.cts +68 -0
  87. package/dist/types/options.d.cts.map +1 -0
  88. package/dist/types/options.d.ts +68 -0
  89. package/dist/types/options.d.ts.map +1 -0
  90. package/dist/types/options.js +1 -0
  91. package/dist/types/types.d.cts +15 -27
  92. package/dist/types/types.d.cts.map +1 -1
  93. package/dist/types/types.d.ts +15 -27
  94. package/dist/types/types.d.ts.map +1 -1
  95. package/dist/types/unsplash.cjs +18 -0
  96. package/dist/types/unsplash.d.cts +60 -0
  97. package/dist/types/unsplash.d.cts.map +1 -0
  98. package/dist/types/unsplash.d.ts +60 -0
  99. package/dist/types/unsplash.d.ts.map +1 -0
  100. package/dist/types/unsplash.js +1 -0
  101. package/dist/ui/AssetBrowser.cjs +69 -104
  102. package/dist/ui/AssetBrowser.d.cts +17 -7
  103. package/dist/ui/AssetBrowser.d.cts.map +1 -1
  104. package/dist/ui/AssetBrowser.d.ts +17 -7
  105. package/dist/ui/AssetBrowser.d.ts.map +1 -1
  106. package/dist/ui/AssetBrowser.js +60 -99
  107. package/dist/ui/AssetCommandPalette.cjs +9 -5
  108. package/dist/ui/AssetManagerUI.cjs +17 -7
  109. package/dist/ui/AssetManagerUI.d.cts +19 -3
  110. package/dist/ui/AssetManagerUI.d.cts.map +1 -1
  111. package/dist/ui/AssetManagerUI.d.ts +19 -3
  112. package/dist/ui/AssetManagerUI.d.ts.map +1 -1
  113. package/dist/ui/AssetManagerUI.js +8 -2
  114. package/dist/ui/DeleteAssetDialog.cjs +9 -5
  115. package/dist/ui/DeleteFolderDialog.cjs +78 -0
  116. package/dist/ui/DeleteFolderDialog.d.cts +11 -0
  117. package/dist/ui/DeleteFolderDialog.d.cts.map +1 -0
  118. package/dist/ui/DeleteFolderDialog.d.ts +11 -0
  119. package/dist/ui/DeleteFolderDialog.d.ts.map +1 -0
  120. package/dist/ui/DeleteFolderDialog.js +40 -0
  121. package/dist/ui/EmptyFolderState.cjs +53 -0
  122. package/dist/ui/EmptyFolderState.d.cts +6 -0
  123. package/dist/ui/EmptyFolderState.d.cts.map +1 -0
  124. package/dist/ui/EmptyFolderState.d.ts +6 -0
  125. package/dist/ui/EmptyFolderState.d.ts.map +1 -0
  126. package/dist/ui/EmptyFolderState.js +15 -0
  127. package/dist/ui/FolderBreadcrumb.cjs +73 -0
  128. package/dist/ui/FolderBreadcrumb.d.cts +9 -0
  129. package/dist/ui/FolderBreadcrumb.d.cts.map +1 -0
  130. package/dist/ui/FolderBreadcrumb.d.ts +9 -0
  131. package/dist/ui/FolderBreadcrumb.d.ts.map +1 -0
  132. package/dist/ui/FolderBreadcrumb.js +35 -0
  133. package/dist/ui/FolderNameDialog.cjs +98 -0
  134. package/dist/ui/FolderNameDialog.d.cts +14 -0
  135. package/dist/ui/FolderNameDialog.d.cts.map +1 -0
  136. package/dist/ui/FolderNameDialog.d.ts +14 -0
  137. package/dist/ui/FolderNameDialog.d.ts.map +1 -0
  138. package/dist/ui/FolderNameDialog.js +60 -0
  139. package/dist/ui/FolderTree.cjs +83 -0
  140. package/dist/ui/FolderTree.d.cts +13 -0
  141. package/dist/ui/FolderTree.d.cts.map +1 -0
  142. package/dist/ui/FolderTree.d.ts +13 -0
  143. package/dist/ui/FolderTree.d.ts.map +1 -0
  144. package/dist/ui/FolderTree.js +42 -0
  145. package/dist/ui/MetadataPanel.cjs +16 -9
  146. package/dist/ui/MetadataPanel.d.cts.map +1 -1
  147. package/dist/ui/MetadataPanel.d.ts.map +1 -1
  148. package/dist/ui/MetadataPanel.js +7 -4
  149. package/dist/ui/MoveTargetPicker.cjs +84 -0
  150. package/dist/ui/MoveTargetPicker.d.cts +16 -0
  151. package/dist/ui/MoveTargetPicker.d.cts.map +1 -0
  152. package/dist/ui/MoveTargetPicker.d.ts +16 -0
  153. package/dist/ui/MoveTargetPicker.d.ts.map +1 -0
  154. package/dist/ui/MoveTargetPicker.js +46 -0
  155. package/dist/ui/ReplaceAssetDialog.cjs +9 -5
  156. package/dist/ui/ReplaceAssetDialog.d.cts +2 -1
  157. package/dist/ui/ReplaceAssetDialog.d.cts.map +1 -1
  158. package/dist/ui/ReplaceAssetDialog.d.ts +2 -1
  159. package/dist/ui/ReplaceAssetDialog.d.ts.map +1 -1
  160. package/dist/ui/UnsplashPanel.cjs +134 -0
  161. package/dist/ui/UnsplashPanel.d.cts +28 -0
  162. package/dist/ui/UnsplashPanel.d.cts.map +1 -0
  163. package/dist/ui/UnsplashPanel.d.ts +28 -0
  164. package/dist/ui/UnsplashPanel.d.ts.map +1 -0
  165. package/dist/ui/UnsplashPanel.js +96 -0
  166. package/dist/ui/UploadButton.cjs +10 -10
  167. package/dist/ui/UploadButton.d.cts +9 -2
  168. package/dist/ui/UploadButton.d.cts.map +1 -1
  169. package/dist/ui/UploadButton.d.ts +9 -2
  170. package/dist/ui/UploadButton.d.ts.map +1 -1
  171. package/dist/ui/UploadButton.js +1 -5
  172. package/dist/ui/index.cjs +46 -5
  173. package/dist/ui/index.d.cts +14 -0
  174. package/dist/ui/index.d.cts.map +1 -1
  175. package/dist/ui/index.d.ts +14 -0
  176. package/dist/ui/index.d.ts.map +1 -1
  177. package/dist/ui/index.js +7 -0
  178. package/dist/utils/asset-reference.cjs +12 -8
  179. package/dist/utils/csp.cjs +12 -8
  180. package/dist/utils/data-source.cjs +177 -0
  181. package/dist/utils/data-source.d.cts +63 -0
  182. package/dist/utils/data-source.d.cts.map +1 -0
  183. package/dist/utils/data-source.d.ts +63 -0
  184. package/dist/utils/data-source.d.ts.map +1 -0
  185. package/dist/utils/data-source.js +136 -0
  186. package/dist/utils/errors.cjs +31 -9
  187. package/dist/utils/errors.d.cts +27 -0
  188. package/dist/utils/errors.d.cts.map +1 -1
  189. package/dist/utils/errors.d.ts +27 -0
  190. package/dist/utils/errors.d.ts.map +1 -1
  191. package/dist/utils/errors.js +16 -1
  192. package/dist/utils/folders.cjs +261 -0
  193. package/dist/utils/folders.d.cts +49 -0
  194. package/dist/utils/folders.d.cts.map +1 -0
  195. package/dist/utils/folders.d.ts +49 -0
  196. package/dist/utils/folders.d.ts.map +1 -0
  197. package/dist/utils/folders.js +223 -0
  198. package/dist/utils/header-action.cjs +12 -8
  199. package/dist/utils/infer-kind.cjs +12 -8
  200. package/dist/utils/registry.cjs +36 -17
  201. package/dist/utils/registry.d.cts +21 -1
  202. package/dist/utils/registry.d.cts.map +1 -1
  203. package/dist/utils/registry.d.ts +21 -1
  204. package/dist/utils/registry.d.ts.map +1 -1
  205. package/dist/utils/registry.js +20 -11
  206. package/dist/utils/resolver.cjs +9 -5
  207. package/dist/utils/retry.cjs +13 -9
  208. package/dist/utils/studio-asset-source.cjs +14 -7
  209. package/dist/utils/studio-asset-source.d.cts +6 -1
  210. package/dist/utils/studio-asset-source.d.cts.map +1 -1
  211. package/dist/utils/studio-asset-source.d.ts +6 -1
  212. package/dist/utils/studio-asset-source.d.ts.map +1 -1
  213. package/dist/utils/studio-asset-source.js +1 -1
  214. package/dist/utils/validate-upload-result.cjs +9 -5
  215. package/dist/utils/validate-upload-result.d.cts +2 -1
  216. package/dist/utils/validate-upload-result.d.cts.map +1 -1
  217. package/dist/utils/validate-upload-result.d.ts +2 -1
  218. package/dist/utils/validate-upload-result.d.ts.map +1 -1
  219. package/dist/version.cjs +12 -8
  220. package/dist/version.d.cts +1 -1
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/meta/config.json +1 -1
  224. package/package.json +19 -9
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.r = (exports1)=>{
5
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
+ value: 'Module'
7
+ });
8
+ Object.defineProperty(exports1, '__esModule', {
9
+ value: true
10
+ });
11
+ };
12
+ })();
13
+ var __webpack_exports__ = {};
14
+ __webpack_require__.r(__webpack_exports__);
15
+ for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
16
+ Object.defineProperty(exports, '__esModule', {
17
+ value: true
18
+ });
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @file Unified categorization & filtering model (PRD 0002 §3.2, §9).
3
+ *
4
+ * `AssetSearchOptions` (the historic 5-field query in `./types.ts`) is retained
5
+ * verbatim; {@link AssetFilter} EXTENDS it additively, so every existing caller
6
+ * keeps compiling while new code gains folder/source/facet/sort axes. The page
7
+ * envelope {@link AssetListPage} likewise extends the existing `AssetSearchPage`
8
+ * with a unified folder view (`folders` + `folderPath`) so a single `list()`
9
+ * returns assets, child folders, and the breadcrumb — no separate `listFolders`.
10
+ */
11
+ import type { AssetFolder, FolderId } from "./folders.js";
12
+ import type { AssetSearchOptions, AssetSearchPage } from "./types.js";
13
+ /**
14
+ * Stable source identifiers. Branded so a typo is a type error while hosts can
15
+ * still introduce their own ids (e.g. `"brandfolder"`).
16
+ */
17
+ export type AssetSourceId = "local" | "unsplash" | (string & {});
18
+ export type AssetSortField = "recent" | "name" | "size" | "kind" | "relevance";
19
+ export interface AssetSort {
20
+ readonly field: AssetSortField;
21
+ /** Defaults are field-appropriate: `recent`→`desc`, `name`→`asc`. */
22
+ readonly direction?: "asc" | "desc";
23
+ }
24
+ /**
25
+ * The single, unified query passed to every filterable surface. All fields are
26
+ * optional and compose with AND semantics (an asset must satisfy every supplied
27
+ * axis), extending the existing `runSearch()` conjunction.
28
+ */
29
+ export interface AssetFilter extends AssetSearchOptions {
30
+ /** Scope to a folder. `null` ⇒ root only; `undefined` ⇒ any folder. */
31
+ readonly folderId?: FolderId | null;
32
+ /** When true, include assets in descendant folders too. Default false. */
33
+ readonly recursive?: boolean;
34
+ /** Restrict to one or more sources. `undefined` ⇒ federate across all. */
35
+ readonly sources?: readonly AssetSourceId[];
36
+ /** Host-registered facet selections, keyed by facet id. */
37
+ readonly facets?: Readonly<Record<string, readonly string[]>>;
38
+ /** Sort. Defaults to `{ field: "recent", direction: "desc" }`. */
39
+ readonly sort?: AssetSort;
40
+ }
41
+ /**
42
+ * Page envelope: `AssetSearchPage` (assets, paginated) plus the unified folder
43
+ * view. `folders`/`folderPath` ride OUTSIDE the asset cursor/`limit` (folders
44
+ * are few and returned whole per scope); only `items` paginates. A flat source
45
+ * omits the folder fields.
46
+ */
47
+ export interface AssetListPage extends AssetSearchPage {
48
+ /** Child folders of `query.folderId` (or the whole sub-tree when `recursive`). */
49
+ readonly folders?: readonly AssetFolder[];
50
+ /** Root → … → current folder, for the breadcrumb. Omitted at root. */
51
+ readonly folderPath?: readonly AssetFolder[];
52
+ /** Per-source page tokens for federated paging, keyed by source id. */
53
+ readonly sourceCursors?: Readonly<Record<string, string | undefined>>;
54
+ }
55
+ //# sourceMappingURL=filter.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter.d.cts","sourceRoot":"","sources":["../../src/types/filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEtE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/E,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACtD,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACpC,0EAA0E;IAC1E,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC5C,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;IAC9D,kEAAkE;IAClE,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,eAAe;IACrD,kFAAkF;IAClF,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,sEAAsE;IACtE,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;IAC7C,uEAAuE;IACvE,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CACtE"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @file Unified categorization & filtering model (PRD 0002 §3.2, §9).
3
+ *
4
+ * `AssetSearchOptions` (the historic 5-field query in `./types.ts`) is retained
5
+ * verbatim; {@link AssetFilter} EXTENDS it additively, so every existing caller
6
+ * keeps compiling while new code gains folder/source/facet/sort axes. The page
7
+ * envelope {@link AssetListPage} likewise extends the existing `AssetSearchPage`
8
+ * with a unified folder view (`folders` + `folderPath`) so a single `list()`
9
+ * returns assets, child folders, and the breadcrumb — no separate `listFolders`.
10
+ */
11
+ import type { AssetFolder, FolderId } from "./folders.js";
12
+ import type { AssetSearchOptions, AssetSearchPage } from "./types.js";
13
+ /**
14
+ * Stable source identifiers. Branded so a typo is a type error while hosts can
15
+ * still introduce their own ids (e.g. `"brandfolder"`).
16
+ */
17
+ export type AssetSourceId = "local" | "unsplash" | (string & {});
18
+ export type AssetSortField = "recent" | "name" | "size" | "kind" | "relevance";
19
+ export interface AssetSort {
20
+ readonly field: AssetSortField;
21
+ /** Defaults are field-appropriate: `recent`→`desc`, `name`→`asc`. */
22
+ readonly direction?: "asc" | "desc";
23
+ }
24
+ /**
25
+ * The single, unified query passed to every filterable surface. All fields are
26
+ * optional and compose with AND semantics (an asset must satisfy every supplied
27
+ * axis), extending the existing `runSearch()` conjunction.
28
+ */
29
+ export interface AssetFilter extends AssetSearchOptions {
30
+ /** Scope to a folder. `null` ⇒ root only; `undefined` ⇒ any folder. */
31
+ readonly folderId?: FolderId | null;
32
+ /** When true, include assets in descendant folders too. Default false. */
33
+ readonly recursive?: boolean;
34
+ /** Restrict to one or more sources. `undefined` ⇒ federate across all. */
35
+ readonly sources?: readonly AssetSourceId[];
36
+ /** Host-registered facet selections, keyed by facet id. */
37
+ readonly facets?: Readonly<Record<string, readonly string[]>>;
38
+ /** Sort. Defaults to `{ field: "recent", direction: "desc" }`. */
39
+ readonly sort?: AssetSort;
40
+ }
41
+ /**
42
+ * Page envelope: `AssetSearchPage` (assets, paginated) plus the unified folder
43
+ * view. `folders`/`folderPath` ride OUTSIDE the asset cursor/`limit` (folders
44
+ * are few and returned whole per scope); only `items` paginates. A flat source
45
+ * omits the folder fields.
46
+ */
47
+ export interface AssetListPage extends AssetSearchPage {
48
+ /** Child folders of `query.folderId` (or the whole sub-tree when `recursive`). */
49
+ readonly folders?: readonly AssetFolder[];
50
+ /** Root → … → current folder, for the breadcrumb. Omitted at root. */
51
+ readonly folderPath?: readonly AssetFolder[];
52
+ /** Per-source page tokens for federated paging, keyed by source id. */
53
+ readonly sourceCursors?: Readonly<Record<string, string | undefined>>;
54
+ }
55
+ //# sourceMappingURL=filter.d.ts.map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UAAU,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;IAC7C,uEAAuE;IACvE,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CACtE"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, getters, values)=>{
5
+ var define = (defs, kind)=>{
6
+ for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ [kind]: defs[key]
9
+ });
10
+ };
11
+ define(getters, "get");
12
+ define(values, "value");
13
+ };
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
17
+ })();
18
+ (()=>{
19
+ __webpack_require__.r = (exports1)=>{
20
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
21
+ value: 'Module'
22
+ });
23
+ Object.defineProperty(exports1, '__esModule', {
24
+ value: true
25
+ });
26
+ };
27
+ })();
28
+ var __webpack_exports__ = {};
29
+ __webpack_require__.r(__webpack_exports__);
30
+ function resolveFolderId(folderId) {
31
+ return folderId ?? null;
32
+ }
33
+ __webpack_require__.d(__webpack_exports__, {
34
+ resolveFolderId: ()=>resolveFolderId
35
+ });
36
+ exports.resolveFolderId = __webpack_exports__.resolveFolderId;
37
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
38
+ "resolveFolderId"
39
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
40
+ Object.defineProperty(exports, '__esModule', {
41
+ value: true
42
+ });
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @file Folder model for the asset library (PRD 0002 §3.1).
3
+ *
4
+ * Folders form an arbitrarily-deep tree keyed by {@link AssetFolder.parentId};
5
+ * `null` is the single root convention everywhere a folder id is accepted —
6
+ * there is no string sentinel. Folder *membership* (which folder an asset lives
7
+ * in) is a registry-owned side-index, NOT a field on `UploadResult`, so these
8
+ * types never bleed into the freeze/validate reconstruction of an asset.
9
+ */
10
+ /** Canonical id of a folder. `null` (never a real id) denotes the root. */
11
+ export type FolderId = string;
12
+ export interface AssetFolder {
13
+ readonly id: FolderId;
14
+ /** Display name; trimmed, non-empty. Siblings are case-insensitively unique. */
15
+ readonly name: string;
16
+ /** Parent container. `null` ⇒ top level. */
17
+ readonly parentId: FolderId | null;
18
+ /** Epoch-ms creation timestamp (stamped via an injected clock, test-friendly). */
19
+ readonly createdAt: number;
20
+ /** Epoch-ms last-mutation timestamp. */
21
+ readonly updatedAt: number;
22
+ /**
23
+ * Denormalized direct-child counts for cheap tree rendering. NEVER the
24
+ * source of truth for membership — the asset→folder side-index is.
25
+ */
26
+ readonly counts: {
27
+ readonly assets: number;
28
+ readonly folders: number;
29
+ };
30
+ /** Optional host-opaque metadata (e.g. color label, ACL). */
31
+ readonly meta?: Readonly<Record<string, string | number | boolean>>;
32
+ }
33
+ export interface FolderOptions {
34
+ /** Maximum nesting depth. `undefined` ⇒ unbounded. */
35
+ readonly maxDepth?: number;
36
+ /** Allow moving assets/folders. `undefined` ⇒ treated as `true`. */
37
+ readonly allowMove?: boolean;
38
+ }
39
+ /**
40
+ * Normalize a folder-id input to the canonical root convention: `undefined`
41
+ * and `null` both collapse to `null` (root); a real id is returned unchanged.
42
+ * This is the only folder-id normalization helper — there is no `__root__`
43
+ * sentinel to expand or collapse.
44
+ */
45
+ export declare function resolveFolderId(folderId?: FolderId | null): FolderId | null;
46
+ //# sourceMappingURL=folders.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folders.d.cts","sourceRoot":"","sources":["../../src/types/folders.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC;IACtB,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACnC,kFAAkF;IAClF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,aAAa;IAC7B,sDAAsD;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,CAE3E"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @file Folder model for the asset library (PRD 0002 §3.1).
3
+ *
4
+ * Folders form an arbitrarily-deep tree keyed by {@link AssetFolder.parentId};
5
+ * `null` is the single root convention everywhere a folder id is accepted —
6
+ * there is no string sentinel. Folder *membership* (which folder an asset lives
7
+ * in) is a registry-owned side-index, NOT a field on `UploadResult`, so these
8
+ * types never bleed into the freeze/validate reconstruction of an asset.
9
+ */
10
+ /** Canonical id of a folder. `null` (never a real id) denotes the root. */
11
+ export type FolderId = string;
12
+ export interface AssetFolder {
13
+ readonly id: FolderId;
14
+ /** Display name; trimmed, non-empty. Siblings are case-insensitively unique. */
15
+ readonly name: string;
16
+ /** Parent container. `null` ⇒ top level. */
17
+ readonly parentId: FolderId | null;
18
+ /** Epoch-ms creation timestamp (stamped via an injected clock, test-friendly). */
19
+ readonly createdAt: number;
20
+ /** Epoch-ms last-mutation timestamp. */
21
+ readonly updatedAt: number;
22
+ /**
23
+ * Denormalized direct-child counts for cheap tree rendering. NEVER the
24
+ * source of truth for membership — the asset→folder side-index is.
25
+ */
26
+ readonly counts: {
27
+ readonly assets: number;
28
+ readonly folders: number;
29
+ };
30
+ /** Optional host-opaque metadata (e.g. color label, ACL). */
31
+ readonly meta?: Readonly<Record<string, string | number | boolean>>;
32
+ }
33
+ export interface FolderOptions {
34
+ /** Maximum nesting depth. `undefined` ⇒ unbounded. */
35
+ readonly maxDepth?: number;
36
+ /** Allow moving assets/folders. `undefined` ⇒ treated as `true`. */
37
+ readonly allowMove?: boolean;
38
+ }
39
+ /**
40
+ * Normalize a folder-id input to the canonical root convention: `undefined`
41
+ * and `null` both collapse to `null` (root); a real id is returned unchanged.
42
+ * This is the only folder-id normalization helper — there is no `__root__`
43
+ * sentinel to expand or collapse.
44
+ */
45
+ export declare function resolveFolderId(folderId?: FolderId | null): FolderId | null;
46
+ //# sourceMappingURL=folders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/types/folders.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC;IACtB,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACnC,kFAAkF;IAClF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,aAAa;IAC7B,sDAAsD;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,CAE3E"}
@@ -0,0 +1,4 @@
1
+ function resolveFolderId(folderId) {
2
+ return folderId ?? null;
3
+ }
4
+ export { resolveFolderId };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.r = (exports1)=>{
5
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
+ value: 'Module'
7
+ });
8
+ Object.defineProperty(exports1, '__esModule', {
9
+ value: true
10
+ });
11
+ };
12
+ })();
13
+ var __webpack_exports__ = {};
14
+ __webpack_require__.r(__webpack_exports__);
15
+ for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
16
+ Object.defineProperty(exports, '__esModule', {
17
+ value: true
18
+ });
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @file The asset-manager plugin's public options surface (PRD 0002 §4).
3
+ *
4
+ * Hoisted out of `types.ts` into its own module so it can aggregate the new
5
+ * data-source / folder / provider / category / Unsplash contracts WITHOUT
6
+ * forming an import cycle (those modules depend on `types.ts`; this one sits
7
+ * above them). The public name `AssetManagerOptions` is unchanged and
8
+ * re-exported from the package barrel — a pure relocation, not a rename.
9
+ */
10
+ import type { AssetSourceProvider } from "../sources/provider.js";
11
+ import type { AssetCategory, AssetFacetDefinition } from "./categories.js";
12
+ import type { AssetDataSource } from "./data-source.js";
13
+ import type { FolderOptions } from "./folders.js";
14
+ import type { UploadAdapter, UploadResult } from "./types.js";
15
+ import type { UnsplashSourceOptions } from "./unsplash.js";
16
+ export interface AssetManagerOptions {
17
+ /**
18
+ * Binary ingest: `File → UploadResult`. WIDENED to optional in PRD 0002 —
19
+ * omitted ⇒ the plugin resolves the built-in `inMemoryUploader()`, so
20
+ * `createAssetManagerPlugin()` works with zero config. The resolved value is
21
+ * always non-optional internally; every existing `{ uploader }` caller still
22
+ * assigns (pure widening).
23
+ */
24
+ readonly uploader?: UploadAdapter;
25
+ /**
26
+ * Unified local-library data plane (list + asset/folder CRUD). Omitted ⇒ a
27
+ * full in-memory default over the built-in registry + a folder side-index.
28
+ */
29
+ readonly dataSource?: AssetDataSource;
30
+ /**
31
+ * Enable folder management. `true` (default) ⇒ in-memory folder store;
32
+ * `false` ⇒ flat library (today's UX); an object tunes depth / move.
33
+ */
34
+ readonly folders?: boolean | FolderOptions;
35
+ /** Additional external read-only sources (federated tabs, e.g. Unsplash). */
36
+ readonly providers?: readonly AssetSourceProvider[];
37
+ /**
38
+ * Built-in Unsplash source config — sugar that builds + registers an Unsplash
39
+ * provider. Enabled when a proxy endpoint or access key is present; the
40
+ * package never bundles a key.
41
+ */
42
+ readonly unsplash?: UnsplashSourceOptions;
43
+ /** Host saved-view chips shown beside the kind chips. */
44
+ readonly categories?: readonly AssetCategory[];
45
+ /** Host-registered custom facets, merged onto the built-ins. */
46
+ readonly facets?: readonly AssetFacetDefinition[];
47
+ readonly maxFileSize?: number;
48
+ readonly acceptedMimeTypes?: readonly string[];
49
+ /**
50
+ * Permit `data:` URLs through the trust boundary. Defaults to `false` —
51
+ * `http`, `https`, and `blob` are always allowed; every other scheme is
52
+ * rejected. Replaced the previous `urlAllowlist: ["data"]` pattern in v1.0.
53
+ */
54
+ readonly dataUrlAllowlistOptIn?: boolean;
55
+ /**
56
+ * Permit `http(s)` URLs whose hostname mixes Unicode scripts. Defaults to
57
+ * `false` (homoglyph-attack guard). Single-script IDN hosts are always
58
+ * allowed regardless of this flag.
59
+ */
60
+ readonly allowMixedScriptHostnames?: boolean;
61
+ /**
62
+ * Optional thumbnail derivation. Returning a string sets
63
+ * `StudioAsset.thumbnailUrl`; returning `undefined` suppresses the thumbnail
64
+ * (overriding the default-for-images behavior).
65
+ */
66
+ readonly getThumbnail?: (entry: UploadResult) => string | undefined;
67
+ }
68
+ //# sourceMappingURL=options.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.cts","sourceRoot":"","sources":["../../src/types/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3D,MAAM,WAAW,mBAAmB;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC;IACtC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IAC3C,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IAC1C,yDAAyD;IACzD,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC/C,gEAAgE;IAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAGlD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,GAAG,SAAS,CAAC;CACpE"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @file The asset-manager plugin's public options surface (PRD 0002 §4).
3
+ *
4
+ * Hoisted out of `types.ts` into its own module so it can aggregate the new
5
+ * data-source / folder / provider / category / Unsplash contracts WITHOUT
6
+ * forming an import cycle (those modules depend on `types.ts`; this one sits
7
+ * above them). The public name `AssetManagerOptions` is unchanged and
8
+ * re-exported from the package barrel — a pure relocation, not a rename.
9
+ */
10
+ import type { AssetSourceProvider } from "../sources/provider.js";
11
+ import type { AssetCategory, AssetFacetDefinition } from "./categories.js";
12
+ import type { AssetDataSource } from "./data-source.js";
13
+ import type { FolderOptions } from "./folders.js";
14
+ import type { UploadAdapter, UploadResult } from "./types.js";
15
+ import type { UnsplashSourceOptions } from "./unsplash.js";
16
+ export interface AssetManagerOptions {
17
+ /**
18
+ * Binary ingest: `File → UploadResult`. WIDENED to optional in PRD 0002 —
19
+ * omitted ⇒ the plugin resolves the built-in `inMemoryUploader()`, so
20
+ * `createAssetManagerPlugin()` works with zero config. The resolved value is
21
+ * always non-optional internally; every existing `{ uploader }` caller still
22
+ * assigns (pure widening).
23
+ */
24
+ readonly uploader?: UploadAdapter;
25
+ /**
26
+ * Unified local-library data plane (list + asset/folder CRUD). Omitted ⇒ a
27
+ * full in-memory default over the built-in registry + a folder side-index.
28
+ */
29
+ readonly dataSource?: AssetDataSource;
30
+ /**
31
+ * Enable folder management. `true` (default) ⇒ in-memory folder store;
32
+ * `false` ⇒ flat library (today's UX); an object tunes depth / move.
33
+ */
34
+ readonly folders?: boolean | FolderOptions;
35
+ /** Additional external read-only sources (federated tabs, e.g. Unsplash). */
36
+ readonly providers?: readonly AssetSourceProvider[];
37
+ /**
38
+ * Built-in Unsplash source config — sugar that builds + registers an Unsplash
39
+ * provider. Enabled when a proxy endpoint or access key is present; the
40
+ * package never bundles a key.
41
+ */
42
+ readonly unsplash?: UnsplashSourceOptions;
43
+ /** Host saved-view chips shown beside the kind chips. */
44
+ readonly categories?: readonly AssetCategory[];
45
+ /** Host-registered custom facets, merged onto the built-ins. */
46
+ readonly facets?: readonly AssetFacetDefinition[];
47
+ readonly maxFileSize?: number;
48
+ readonly acceptedMimeTypes?: readonly string[];
49
+ /**
50
+ * Permit `data:` URLs through the trust boundary. Defaults to `false` —
51
+ * `http`, `https`, and `blob` are always allowed; every other scheme is
52
+ * rejected. Replaced the previous `urlAllowlist: ["data"]` pattern in v1.0.
53
+ */
54
+ readonly dataUrlAllowlistOptIn?: boolean;
55
+ /**
56
+ * Permit `http(s)` URLs whose hostname mixes Unicode scripts. Defaults to
57
+ * `false` (homoglyph-attack guard). Single-script IDN hosts are always
58
+ * allowed regardless of this flag.
59
+ */
60
+ readonly allowMixedScriptHostnames?: boolean;
61
+ /**
62
+ * Optional thumbnail derivation. Returning a string sets
63
+ * `StudioAsset.thumbnailUrl`; returning `undefined` suppresses the thumbnail
64
+ * (overriding the default-for-images behavior).
65
+ */
66
+ readonly getThumbnail?: (entry: UploadResult) => string | undefined;
67
+ }
68
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/types/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3D,MAAM,WAAW,mBAAmB;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC;IACtC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IAC3C,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IAC1C,yDAAyD;IACzD,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC/C,gEAAgE;IAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAGlD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,GAAG,SAAS,CAAC;CACpE"}
@@ -0,0 +1 @@
1
+ export { };
@@ -3,6 +3,21 @@ export interface AssetMeta {
3
3
  readonly mimeType?: string;
4
4
  readonly width?: number;
5
5
  readonly height?: number;
6
+ /**
7
+ * Optional provenance/attribution for externally-sourced assets (PRD 0002
8
+ * §8.4). Set when an asset is inserted from a credit-requiring provider such
9
+ * as Unsplash; export plugins read it to emit the required photographer +
10
+ * source credit. NOTE: the in-memory registry's freeze reconstructor is
11
+ * extended to preserve this field in Phase 1 (M5); the type is additive here.
12
+ */
13
+ readonly attribution?: {
14
+ readonly source: "unsplash";
15
+ readonly photographerName: string;
16
+ readonly photographerUrl: string;
17
+ readonly unsplashUrl: string;
18
+ readonly photoUrl: string;
19
+ readonly downloadLocation: string;
20
+ };
6
21
  }
7
22
  /**
8
23
  * Library-management kind union surfaced by `AssetRegistry.search` and
@@ -40,33 +55,6 @@ export interface UploadAdapterOptions {
40
55
  readonly signal?: AbortSignal;
41
56
  }
42
57
  export type UploadAdapter = (file: File, options?: UploadAdapterOptions) => Promise<UploadResult>;
43
- export interface AssetManagerOptions {
44
- readonly uploader: UploadAdapter;
45
- readonly maxFileSize?: number;
46
- readonly acceptedMimeTypes?: readonly string[];
47
- /**
48
- * Permit `data:` URLs to flow through the trust boundary. Defaults to
49
- * `false` — `http`, `https`, and `blob` are always allowed; every
50
- * other scheme is rejected. The previous `urlAllowlist: ["data"]`
51
- * pattern is replaced by this typed flag in v1.0.
52
- */
53
- readonly dataUrlAllowlistOptIn?: boolean;
54
- /**
55
- * Permit `http(s)` URLs whose hostname mixes Unicode scripts (e.g.
56
- * `аpple.com` blending Cyrillic and Latin). Defaults to `false` —
57
- * mixed-script hostnames are rejected as a homoglyph-attack guard.
58
- * Single-script IDN hosts (e.g. `münchen.de`, `日本.jp`) are always
59
- * allowed regardless of this flag.
60
- */
61
- readonly allowMixedScriptHostnames?: boolean;
62
- /**
63
- * Optional thumbnail derivation passed to {@link createStudioAssetSource}.
64
- * Returning a string sets `StudioAsset.thumbnailUrl`; returning
65
- * `undefined` suppresses the thumbnail (overriding the default-for-images
66
- * behavior).
67
- */
68
- readonly getThumbnail?: (entry: UploadResult) => string | undefined;
69
- }
70
58
  /**
71
59
  * Listener invoked after every registry mutation
72
60
  * (`register` / `delete` / `rename` / `replace` / `setTags`). The
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAClB,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,OAAO,CAAC;AAEX,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;C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
5
5
  readonly height?: number;
6
+ /**
7
+ * Optional provenance/attribution for externally-sourced assets (PRD 0002
8
+ * §8.4). Set when an asset is inserted from a credit-requiring provider such
9
+ * as Unsplash; export plugins read it to emit the required photographer +
10
+ * source credit. NOTE: the in-memory registry's freeze reconstructor is
11
+ * extended to preserve this field in Phase 1 (M5); the type is additive here.
12
+ */
13
+ readonly attribution?: {
14
+ readonly source: "unsplash";
15
+ readonly photographerName: string;
16
+ readonly photographerUrl: string;
17
+ readonly unsplashUrl: string;
18
+ readonly photoUrl: string;
19
+ readonly downloadLocation: string;
20
+ };
6
21
  }
7
22
  /**
8
23
  * Library-management kind union surfaced by `AssetRegistry.search` and
@@ -40,33 +55,6 @@ export interface UploadAdapterOptions {
40
55
  readonly signal?: AbortSignal;
41
56
  }
42
57
  export type UploadAdapter = (file: File, options?: UploadAdapterOptions) => Promise<UploadResult>;
43
- export interface AssetManagerOptions {
44
- readonly uploader: UploadAdapter;
45
- readonly maxFileSize?: number;
46
- readonly acceptedMimeTypes?: readonly string[];
47
- /**
48
- * Permit `data:` URLs to flow through the trust boundary. Defaults to
49
- * `false` — `http`, `https`, and `blob` are always allowed; every
50
- * other scheme is rejected. The previous `urlAllowlist: ["data"]`
51
- * pattern is replaced by this typed flag in v1.0.
52
- */
53
- readonly dataUrlAllowlistOptIn?: boolean;
54
- /**
55
- * Permit `http(s)` URLs whose hostname mixes Unicode scripts (e.g.
56
- * `аpple.com` blending Cyrillic and Latin). Defaults to `false` —
57
- * mixed-script hostnames are rejected as a homoglyph-attack guard.
58
- * Single-script IDN hosts (e.g. `münchen.de`, `日本.jp`) are always
59
- * allowed regardless of this flag.
60
- */
61
- readonly allowMixedScriptHostnames?: boolean;
62
- /**
63
- * Optional thumbnail derivation passed to {@link createStudioAssetSource}.
64
- * Returning a string sets `StudioAsset.thumbnailUrl`; returning
65
- * `undefined` suppresses the thumbnail (overriding the default-for-images
66
- * behavior).
67
- */
68
- readonly getThumbnail?: (entry: UploadResult) => string | undefined;
69
- }
70
58
  /**
71
59
  * Listener invoked after every registry mutation
72
60
  * (`register` / `delete` / `rename` / `replace` / `setTags`). The
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAClB,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,OAAO,CAAC;AAEX,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC9B;AAED,MAAM,MAAM,aAAa,GAAG,CAC3B,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE,oBAAoB,KAC1B,OAAO,CAAC,YAAY,CAAC,CAAC;AAE3B,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C;;;;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KAAK,YAAY,CAAC;IACzD,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,YAAY,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,SAAS,YAAY,EAAE,CAAC;IAC7C,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,YAAY,GAAG,SAAS,CAAC;IACxE;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,YAAY,KACd,YAAY,GAAG,SAAS,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,MAAM,EAAE,KACnB,YAAY,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,kBAAkB,KAAK,eAAe,CAAC;IACnE;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,MAAM,IAAI,CAAC;CACpE"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.r = (exports1)=>{
5
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
+ value: 'Module'
7
+ });
8
+ Object.defineProperty(exports1, '__esModule', {
9
+ value: true
10
+ });
11
+ };
12
+ })();
13
+ var __webpack_exports__ = {};
14
+ __webpack_require__.r(__webpack_exports__);
15
+ for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
16
+ Object.defineProperty(exports, '__esModule', {
17
+ value: true
18
+ });