@nodaro/prompts 1.41.0 → 1.42.0

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 (85) hide show
  1. package/dist/{catalog-packs-BP21C1lp.d.cts → catalog-packs-C9CXEWfl.d.cts} +1 -1
  2. package/dist/{catalog-packs-3SxAVxPF.d.ts → catalog-packs-D7NJpo4k.d.ts} +1 -1
  3. package/dist/{chunk-3U7X6JZN.cjs → chunk-4YUXR23B.cjs} +13 -13
  4. package/dist/{chunk-3U7X6JZN.cjs.map → chunk-4YUXR23B.cjs.map} +1 -1
  5. package/dist/{chunk-DUXX6CBX.js → chunk-6JABZ5OC.js} +4 -4
  6. package/dist/{chunk-DUXX6CBX.js.map → chunk-6JABZ5OC.js.map} +1 -1
  7. package/dist/{chunk-PWWM7Q3T.cjs → chunk-AXQK7UH7.cjs} +49 -49
  8. package/dist/{chunk-PWWM7Q3T.cjs.map → chunk-AXQK7UH7.cjs.map} +1 -1
  9. package/dist/{chunk-SXXW4LCR.js → chunk-CYMIXKFT.js} +12 -8
  10. package/dist/chunk-CYMIXKFT.js.map +1 -0
  11. package/dist/{chunk-6GVFJLDL.js → chunk-GIO77YH5.js} +4 -4
  12. package/dist/{chunk-6GVFJLDL.js.map → chunk-GIO77YH5.js.map} +1 -1
  13. package/dist/{chunk-C3NHNECH.cjs → chunk-H4JMZWOE.cjs} +39 -39
  14. package/dist/{chunk-C3NHNECH.cjs.map → chunk-H4JMZWOE.cjs.map} +1 -1
  15. package/dist/{chunk-GTDKDD7Y.js → chunk-HL6PZ4A6.js} +5 -5
  16. package/dist/{chunk-GTDKDD7Y.js.map → chunk-HL6PZ4A6.js.map} +1 -1
  17. package/dist/chunk-HOMR5XFP.js +3 -0
  18. package/dist/{chunk-F4VO6YEJ.js.map → chunk-HOMR5XFP.js.map} +1 -1
  19. package/dist/{chunk-SECAGGRK.cjs → chunk-I3QS7BSY.cjs} +8 -8
  20. package/dist/{chunk-SECAGGRK.cjs.map → chunk-I3QS7BSY.cjs.map} +1 -1
  21. package/dist/{chunk-JOHYGDUU.js → chunk-IFRFYBGE.js} +3 -3
  22. package/dist/{chunk-JOHYGDUU.js.map → chunk-IFRFYBGE.js.map} +1 -1
  23. package/dist/chunk-JCYK7NSR.js +3384 -0
  24. package/dist/chunk-JCYK7NSR.js.map +1 -0
  25. package/dist/{chunk-2P26SZX5.cjs → chunk-JDNHMVEV.cjs} +35 -35
  26. package/dist/{chunk-2P26SZX5.cjs.map → chunk-JDNHMVEV.cjs.map} +1 -1
  27. package/dist/{chunk-HQTHDTHN.js → chunk-PHFOKGYS.js} +6 -6
  28. package/dist/{chunk-HQTHDTHN.js.map → chunk-PHFOKGYS.js.map} +1 -1
  29. package/dist/{chunk-EAYEZXWT.js → chunk-QJACEKMZ.js} +3 -3
  30. package/dist/{chunk-EAYEZXWT.js.map → chunk-QJACEKMZ.js.map} +1 -1
  31. package/dist/{chunk-MQEXFCNU.cjs → chunk-SB7AYE6S.cjs} +14 -10
  32. package/dist/chunk-SB7AYE6S.cjs.map +1 -0
  33. package/dist/chunk-T4OJFIJK.cjs +4 -0
  34. package/dist/{chunk-VIT3NKGB.cjs.map → chunk-T4OJFIJK.cjs.map} +1 -1
  35. package/dist/chunk-WARNUGXT.cjs +3403 -0
  36. package/dist/chunk-WARNUGXT.cjs.map +1 -0
  37. package/dist/{chunk-QDUTMOF4.js → chunk-ZFOXGNLK.js} +4 -4
  38. package/dist/{chunk-QDUTMOF4.js.map → chunk-ZFOXGNLK.js.map} +1 -1
  39. package/dist/{chunk-IUCNJAHW.cjs → chunk-ZGA72NCT.cjs} +125 -125
  40. package/dist/{chunk-IUCNJAHW.cjs.map → chunk-ZGA72NCT.cjs.map} +1 -1
  41. package/dist/{chunk-WRM52ZBN.cjs → chunk-ZLRB5BVT.cjs} +18 -18
  42. package/dist/{chunk-WRM52ZBN.cjs.map → chunk-ZLRB5BVT.cjs.map} +1 -1
  43. package/dist/entries/assembly.cjs +29 -29
  44. package/dist/entries/assembly.js +6 -6
  45. package/dist/entries/catalog-packs.d.cts +4 -4
  46. package/dist/entries/catalog-packs.d.ts +4 -4
  47. package/dist/entries/person.d.cts +3 -3
  48. package/dist/entries/person.d.ts +3 -3
  49. package/dist/entries/picker-art.cjs +29 -17
  50. package/dist/entries/picker-art.d.cts +1122 -447
  51. package/dist/entries/picker-art.d.ts +1122 -447
  52. package/dist/entries/picker-art.js +2 -2
  53. package/dist/entries/picker-catalogs.cjs +57 -57
  54. package/dist/entries/picker-catalogs.d.cts +3 -3
  55. package/dist/entries/picker-catalogs.d.ts +3 -3
  56. package/dist/entries/picker-catalogs.js +5 -5
  57. package/dist/entries/pickers.cjs +374 -374
  58. package/dist/entries/pickers.js +3 -3
  59. package/dist/entries/prompt-builder.cjs +76 -76
  60. package/dist/entries/prompt-builder.js +5 -5
  61. package/dist/images-DrbQB9Yh.d.cts +65 -0
  62. package/dist/images-DrbQB9Yh.d.ts +65 -0
  63. package/dist/index.cjs +554 -542
  64. package/dist/index.d.cts +4 -4
  65. package/dist/index.d.ts +4 -4
  66. package/dist/index.js +10 -10
  67. package/dist/{picker-catalogs-DDjtZND3.d.ts → picker-catalogs-BM8IphF1.d.ts} +1 -1
  68. package/dist/{picker-catalogs-CmV7r0j1.d.cts → picker-catalogs-C3utGMRB.d.cts} +1 -1
  69. package/package.json +2 -2
  70. package/src/__tests__/picker-art-images.test.ts +94 -3
  71. package/src/picker-art/images.ts +59 -9
  72. package/src/picker-art/index.ts +1 -0
  73. package/src/picker-art/look-preview-sets.ts +449 -445
  74. package/src/picker-art/sound-render-sets.ts +688 -0
  75. package/src/picker-catalogs.ts +12 -8
  76. package/dist/chunk-F4VO6YEJ.js +0 -3
  77. package/dist/chunk-MQEXFCNU.cjs.map +0 -1
  78. package/dist/chunk-QGVZXBDE.cjs +0 -2708
  79. package/dist/chunk-QGVZXBDE.cjs.map +0 -1
  80. package/dist/chunk-RZJEROA2.js +0 -2692
  81. package/dist/chunk-RZJEROA2.js.map +0 -1
  82. package/dist/chunk-SXXW4LCR.js.map +0 -1
  83. package/dist/chunk-VIT3NKGB.cjs +0 -4
  84. package/dist/images-BAnMUUmW.d.cts +0 -39
  85. package/dist/images-BAnMUUmW.d.ts +0 -39
@@ -1,4 +0,0 @@
1
- 'use strict';
2
-
3
- //# sourceMappingURL=chunk-VIT3NKGB.cjs.map
4
- //# sourceMappingURL=chunk-VIT3NKGB.cjs.map
@@ -1,39 +0,0 @@
1
- /**
2
- * How the API pictures picker options. Pass it to the catalog projections
3
- * (projectPickerCatalog / projectAllCatalogs / summarizePickerCatalogs); leave
4
- * it out and no option carries an `imageUrl` — the package itself never
5
- * decides which host an install is reached at.
6
- */
7
- interface PickerImageOptions {
8
- /**
9
- * The installation's public origin, e.g. "https://app.nodaro.ai" or a
10
- * self-hosted "http://localhost:3000". Self-hosted pictures are served from
11
- * it, so an external app gets absolute URLs on the install it asked.
12
- */
13
- readonly baseUrl: string;
14
- /** Include the rendered look previews, which live on the Nodaro CDN (Cloud only). */
15
- readonly lookPreviews?: boolean;
16
- }
17
- /**
18
- * A still, 480px-wide picture of a rendered look preview: the image resized by
19
- * the CDN, or — for a clip (camera motion) — a frame taken 1s in. The same
20
- * transforms the editor's tiles use. A URL off the transforming CDN is kept
21
- * as is for an image, and dropped for a clip (no still to offer).
22
- */
23
- declare function lookPreviewStillUrl(url: string, width?: number): string | undefined;
24
- /**
25
- * The absolute picture URL of one picker option, or undefined when it has
26
- * none. Self-hosted art (the character photos, the music / voice art) wins;
27
- * otherwise, when allowed, the option's rendered look preview.
28
- *
29
- * @param catalog the catalog's node type (look previews are keyed by it) and catalog id (the self-hosted maps are)
30
- * @param field the dimension field the option belongs to (music / voice art is keyed by it)
31
- */
32
- declare function pickerOptionImageUrl(catalog: {
33
- readonly nodeType: string;
34
- readonly catalogId: string;
35
- }, field: string | undefined, id: string, images: PickerImageOptions): string | undefined;
36
- /** The absolute URL of a Person / Styling topic's round picture, or undefined. */
37
- declare function pickerSectionImageUrl(sectionLabel: string, images: PickerImageOptions): string | undefined;
38
-
39
- export { type PickerImageOptions as P, pickerSectionImageUrl as a, lookPreviewStillUrl as l, pickerOptionImageUrl as p };
@@ -1,39 +0,0 @@
1
- /**
2
- * How the API pictures picker options. Pass it to the catalog projections
3
- * (projectPickerCatalog / projectAllCatalogs / summarizePickerCatalogs); leave
4
- * it out and no option carries an `imageUrl` — the package itself never
5
- * decides which host an install is reached at.
6
- */
7
- interface PickerImageOptions {
8
- /**
9
- * The installation's public origin, e.g. "https://app.nodaro.ai" or a
10
- * self-hosted "http://localhost:3000". Self-hosted pictures are served from
11
- * it, so an external app gets absolute URLs on the install it asked.
12
- */
13
- readonly baseUrl: string;
14
- /** Include the rendered look previews, which live on the Nodaro CDN (Cloud only). */
15
- readonly lookPreviews?: boolean;
16
- }
17
- /**
18
- * A still, 480px-wide picture of a rendered look preview: the image resized by
19
- * the CDN, or — for a clip (camera motion) — a frame taken 1s in. The same
20
- * transforms the editor's tiles use. A URL off the transforming CDN is kept
21
- * as is for an image, and dropped for a clip (no still to offer).
22
- */
23
- declare function lookPreviewStillUrl(url: string, width?: number): string | undefined;
24
- /**
25
- * The absolute picture URL of one picker option, or undefined when it has
26
- * none. Self-hosted art (the character photos, the music / voice art) wins;
27
- * otherwise, when allowed, the option's rendered look preview.
28
- *
29
- * @param catalog the catalog's node type (look previews are keyed by it) and catalog id (the self-hosted maps are)
30
- * @param field the dimension field the option belongs to (music / voice art is keyed by it)
31
- */
32
- declare function pickerOptionImageUrl(catalog: {
33
- readonly nodeType: string;
34
- readonly catalogId: string;
35
- }, field: string | undefined, id: string, images: PickerImageOptions): string | undefined;
36
- /** The absolute URL of a Person / Styling topic's round picture, or undefined. */
37
- declare function pickerSectionImageUrl(sectionLabel: string, images: PickerImageOptions): string | undefined;
38
-
39
- export { type PickerImageOptions as P, pickerSectionImageUrl as a, lookPreviewStillUrl as l, pickerOptionImageUrl as p };