limbo-component 4.0.3 → 4.1.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.
- package/dist/limbo.cjs.js +1 -1
- package/dist/limbo.cjs.map +1 -1
- package/dist/limbo.css +1 -1
- package/dist/limbo.es.js +91 -81
- package/dist/limbo.es.map +1 -1
- package/dist/limbo.min.js +1 -1
- package/dist/limbo.min.js.map +1 -1
- package/dist/limbo.umd.js +1 -1
- package/dist/limbo.umd.js.map +1 -1
- package/dist/types/src/App.d.ts +2 -1
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/components/AiStarterPromptBlock.d.ts +7 -0
- package/dist/types/src/components/AiStarterPromptBlock.d.ts.map +1 -0
- package/dist/types/src/components/TabAI.d.ts +2 -1
- package/dist/types/src/components/TabAI.d.ts.map +1 -1
- package/dist/types/src/components/UploadForm.d.ts +2 -1
- package/dist/types/src/components/UploadForm.d.ts.map +1 -1
- package/dist/types/src/components/UploadTab.d.ts +2 -1
- package/dist/types/src/components/UploadTab.d.ts.map +1 -1
- package/dist/types/src/core/ConfigManager.d.ts +1 -0
- package/dist/types/src/core/ConfigManager.d.ts.map +1 -1
- package/dist/types/src/utils/aiPrompt.d.ts +37 -0
- package/dist/types/src/utils/aiPrompt.d.ts.map +1 -0
- package/dist/types/src/utils/i18n.d.ts +48 -0
- package/dist/types/src/utils/i18n.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/src/App.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function App({ apiKey, onClose, prod, features, modeUI, ui, callbacks, instanceId, itemsPerPage, _externalImage, cropperConfig, folderConfig, allowedCategories, accept, returnConfig, }: {
|
|
1
|
+
export default function App({ apiKey, onClose, prod, features, modeUI, ui, callbacks, instanceId, itemsPerPage, _externalImage, cropperConfig, folderConfig, allowedCategories, accept, returnConfig, aiStarterPrompt, }: {
|
|
2
2
|
apiKey: any;
|
|
3
3
|
onClose: any;
|
|
4
4
|
prod?: boolean;
|
|
@@ -31,5 +31,6 @@ export default function App({ apiKey, onClose, prod, features, modeUI, ui, callb
|
|
|
31
31
|
allowedCategories?: any;
|
|
32
32
|
accept?: any;
|
|
33
33
|
returnConfig?: any;
|
|
34
|
+
aiStarterPrompt: any;
|
|
34
35
|
}): import("react/jsx-runtime").JSX.Element;
|
|
35
36
|
//# sourceMappingURL=App.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.jsx"],"names":[],"mappings":"AAqBA
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.jsx"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAqnBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default AiStarterPromptBlock;
|
|
2
|
+
declare function AiStarterPromptBlock({ aiStarterPrompt, useStarter, onUseStarterChange }: {
|
|
3
|
+
aiStarterPrompt: any;
|
|
4
|
+
useStarter: any;
|
|
5
|
+
onUseStarterChange: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=AiStarterPromptBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiStarterPromptBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/AiStarterPromptBlock.jsx"],"names":[],"mappings":";AAGA;;;;4CA6HC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export default function TabAI({ prod, disabled, onSelect, selectedFolder, onFolderChange, folderConfig, }: {
|
|
1
|
+
export default function TabAI({ prod, disabled, onSelect, selectedFolder, onFolderChange, folderConfig, aiStarterPrompt, }: {
|
|
2
2
|
prod: any;
|
|
3
3
|
disabled: any;
|
|
4
4
|
onSelect: any;
|
|
5
5
|
selectedFolder: any;
|
|
6
6
|
onFolderChange: any;
|
|
7
7
|
folderConfig: any;
|
|
8
|
+
aiStarterPrompt: any;
|
|
8
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
//# sourceMappingURL=TabAI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabAI.d.ts","sourceRoot":"","sources":["../../../../src/components/TabAI.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabAI.d.ts","sourceRoot":"","sources":["../../../../src/components/TabAI.jsx"],"names":[],"mappings":"AAmBA;;;;;;;;4CAuyBC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function UploadForm({ onSelect, onVideoSelect, disabled, apiKey, prod, allowedCategories, resolvedAccept, returnConfig, folderConfig, selectedFolder, onFolderChange, }: {
|
|
1
|
+
export default function UploadForm({ onSelect, onVideoSelect, disabled, apiKey, prod, allowedCategories, resolvedAccept, returnConfig, folderConfig, selectedFolder, onFolderChange, aiStarterPrompt, }: {
|
|
2
2
|
onSelect: any;
|
|
3
3
|
onVideoSelect: any;
|
|
4
4
|
disabled?: boolean;
|
|
@@ -10,5 +10,6 @@ export default function UploadForm({ onSelect, onVideoSelect, disabled, apiKey,
|
|
|
10
10
|
folderConfig?: any;
|
|
11
11
|
selectedFolder?: any;
|
|
12
12
|
onFolderChange?: any;
|
|
13
|
+
aiStarterPrompt: any;
|
|
13
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
//# sourceMappingURL=UploadForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadForm.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadForm.jsx"],"names":[],"mappings":"AAcA
|
|
1
|
+
{"version":3,"file":"UploadForm.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadForm.jsx"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;4CA0PC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Extrae el bloque JSX de App.jsx (activeTab === "upload") al componente.
|
|
4
4
|
* REFACT-05: Extraído literalmente de App.jsx ~1078-1110.
|
|
5
5
|
*/
|
|
6
|
-
export default function UploadTab({ onSelect, onVideoSelect, onFolderChange, uploading, uploadError, uploadedImage, selectedUploadFolder, apiKey, prod, allowedCategories, resolvedAccept, returnConfig, folderConfig, resetUpload, }: {
|
|
6
|
+
export default function UploadTab({ onSelect, onVideoSelect, onFolderChange, uploading, uploadError, uploadedImage, selectedUploadFolder, apiKey, prod, allowedCategories, resolvedAccept, returnConfig, folderConfig, aiStarterPrompt, resetUpload, }: {
|
|
7
7
|
onSelect: any;
|
|
8
8
|
onVideoSelect: any;
|
|
9
9
|
onFolderChange: any;
|
|
@@ -17,6 +17,7 @@ export default function UploadTab({ onSelect, onVideoSelect, onFolderChange, upl
|
|
|
17
17
|
resolvedAccept: any;
|
|
18
18
|
returnConfig: any;
|
|
19
19
|
folderConfig: any;
|
|
20
|
+
aiStarterPrompt: any;
|
|
20
21
|
resetUpload: any;
|
|
21
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
//# sourceMappingURL=UploadTab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadTab.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadTab.jsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH
|
|
1
|
+
{"version":3,"file":"UploadTab.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadTab.jsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;;;;;;;;;;;;;;;;4CAuDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigManager.d.ts","sourceRoot":"","sources":["../../../../src/core/ConfigManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfigManager.d.ts","sourceRoot":"","sources":["../../../../src/core/ConfigManager.js"],"names":[],"mappings":"AASA;IAEI,iBAAsB;IACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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H,0CAGC;IAED;;OAEG;IACH,wCAGC;IAED;;OAEG;IACH,mCAGC;IAED;;;;OAIG;IAEH;;OAEG;IACH,mCAGC;IAED;;OAEG;IACH,wCAGC;IAED;;;OAGG;IACH;;;;MAiBC;IAED;;OAEG;IACH,kDAGC;IAED;;OAEG;IACH,iDAGC;IAED;;OAEG;IACH,uCAGC;IAED;;OAEG;IACH,0CAGC;IAED;;;OAGG;IACH,yCAIC;IAED;;;;OAIG;IAEH;;;OAGG;IACH,oCAFa,QAAM,IAAI,CAKtB;IAED;;OAEG;IACH,wDAOC;IAED;;OAEG;IACH,0CAKC;IAED;;OAEG;IACH,sCAGC;IAED;;;OAGG;IACH;;;QAmBC;IAED;;;OAGG;IACH,iCAFa,MAAM,CAWlB;CACF;qBArhCoB,kBAAkB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compose the final prompt string to send to the AI generation API.
|
|
3
|
+
*
|
|
4
|
+
* When `useStarter` is truthy and `starter` is a non-empty string, wraps both prompts
|
|
5
|
+
* in the corporate editorial format (D-07). Otherwise returns `user` as-is.
|
|
6
|
+
*
|
|
7
|
+
* @param {object} input
|
|
8
|
+
* @param {string|null|undefined} input.starter - Starter/instructions prompt (corporate default or portal override).
|
|
9
|
+
* @param {string|null|undefined} input.user - User-provided generation request. Not validated here (D-09).
|
|
10
|
+
* @param {*} input.useStarter - Whether to apply the starter wrapper (truthy/falsy, D-10).
|
|
11
|
+
* @returns {string} Final prompt string ready to send to the AI API.
|
|
12
|
+
*/
|
|
13
|
+
export function composeAiPrompt({ starter, user, useStarter }: {
|
|
14
|
+
starter: string | null | undefined;
|
|
15
|
+
user: string | null | undefined;
|
|
16
|
+
useStarter: any;
|
|
17
|
+
}): string;
|
|
18
|
+
/**
|
|
19
|
+
* AI Prompt Composition
|
|
20
|
+
*
|
|
21
|
+
* Pure helpers + corporate default starter prompt for the AI image generation feature.
|
|
22
|
+
*
|
|
23
|
+
* Used by:
|
|
24
|
+
* - src/core/ConfigManager.js → sets aiStarterPrompt default (Plan 06-02)
|
|
25
|
+
* - src/services/aiApi.js → composes the final prompt before sending (Plan 06-08 / Phase 8)
|
|
26
|
+
*
|
|
27
|
+
* This module has zero imports and zero side effects. It is safe to import from any layer.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Default editorial corporate starter prompt.
|
|
31
|
+
*
|
|
32
|
+
* Hardcoded text provided by Lefebvre editorial team (D-12).
|
|
33
|
+
* Portals can override it via Limbo.configure({ aiStarterPrompt: "..." }).
|
|
34
|
+
* Passing "" or null is valid and means "no instructions" (see ConfigManager merge semantics).
|
|
35
|
+
*/
|
|
36
|
+
export const DEFAULT_AI_STARTER_PROMPT: string;
|
|
37
|
+
//# sourceMappingURL=aiPrompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiPrompt.d.ts","sourceRoot":"","sources":["../../../../src/utils/aiPrompt.js"],"names":[],"mappings":"AA4BA;;;;;;;;;;;GAWG;AACH,+DALG;IAAqC,OAAO,EAApC,MAAM,GAAC,IAAI,GAAC,SAAS;IACQ,IAAI,EAAjC,MAAM,GAAC,IAAI,GAAC,SAAS;IACQ,UAAU,EAAvC,GAAC;CACT,GAAU,MAAM,CAclB;AApDD;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,+CAO2C"}
|
|
@@ -72,6 +72,12 @@ export class I18n {
|
|
|
72
72
|
"imageCard.aria.download": string;
|
|
73
73
|
"imageCard.aria.rename": string;
|
|
74
74
|
"imageCard.aria.delete": string;
|
|
75
|
+
"aiStarter.label": string;
|
|
76
|
+
"aiStarter.copy": string;
|
|
77
|
+
"aiStarter.copied": string;
|
|
78
|
+
"aiStarter.copyAriaLabel": string;
|
|
79
|
+
"aiStarter.readMore": string;
|
|
80
|
+
"aiStarter.readLess": string;
|
|
75
81
|
};
|
|
76
82
|
en: {
|
|
77
83
|
"button.select": string;
|
|
@@ -132,6 +138,12 @@ export class I18n {
|
|
|
132
138
|
"imageCard.aria.download": string;
|
|
133
139
|
"imageCard.aria.rename": string;
|
|
134
140
|
"imageCard.aria.delete": string;
|
|
141
|
+
"aiStarter.label": string;
|
|
142
|
+
"aiStarter.copy": string;
|
|
143
|
+
"aiStarter.copied": string;
|
|
144
|
+
"aiStarter.copyAriaLabel": string;
|
|
145
|
+
"aiStarter.readMore": string;
|
|
146
|
+
"aiStarter.readLess": string;
|
|
135
147
|
};
|
|
136
148
|
pt: {
|
|
137
149
|
"imageCard.aria.zoom": string;
|
|
@@ -143,6 +155,12 @@ export class I18n {
|
|
|
143
155
|
"imageCard.aria.download": string;
|
|
144
156
|
"imageCard.aria.rename": string;
|
|
145
157
|
"imageCard.aria.delete": string;
|
|
158
|
+
"aiStarter.label": string;
|
|
159
|
+
"aiStarter.copy": string;
|
|
160
|
+
"aiStarter.copied": string;
|
|
161
|
+
"aiStarter.copyAriaLabel": string;
|
|
162
|
+
"aiStarter.readMore": string;
|
|
163
|
+
"aiStarter.readLess": string;
|
|
146
164
|
};
|
|
147
165
|
fr: {
|
|
148
166
|
"imageCard.aria.zoom": string;
|
|
@@ -154,6 +172,12 @@ export class I18n {
|
|
|
154
172
|
"imageCard.aria.download": string;
|
|
155
173
|
"imageCard.aria.rename": string;
|
|
156
174
|
"imageCard.aria.delete": string;
|
|
175
|
+
"aiStarter.label": string;
|
|
176
|
+
"aiStarter.copy": string;
|
|
177
|
+
"aiStarter.copied": string;
|
|
178
|
+
"aiStarter.copyAriaLabel": string;
|
|
179
|
+
"aiStarter.readMore": string;
|
|
180
|
+
"aiStarter.readLess": string;
|
|
157
181
|
};
|
|
158
182
|
};
|
|
159
183
|
/**
|
|
@@ -219,6 +243,12 @@ export class I18n {
|
|
|
219
243
|
"imageCard.aria.download": string;
|
|
220
244
|
"imageCard.aria.rename": string;
|
|
221
245
|
"imageCard.aria.delete": string;
|
|
246
|
+
"aiStarter.label": string;
|
|
247
|
+
"aiStarter.copy": string;
|
|
248
|
+
"aiStarter.copied": string;
|
|
249
|
+
"aiStarter.copyAriaLabel": string;
|
|
250
|
+
"aiStarter.readMore": string;
|
|
251
|
+
"aiStarter.readLess": string;
|
|
222
252
|
};
|
|
223
253
|
en: {
|
|
224
254
|
"button.select": string;
|
|
@@ -279,6 +309,12 @@ export class I18n {
|
|
|
279
309
|
"imageCard.aria.download": string;
|
|
280
310
|
"imageCard.aria.rename": string;
|
|
281
311
|
"imageCard.aria.delete": string;
|
|
312
|
+
"aiStarter.label": string;
|
|
313
|
+
"aiStarter.copy": string;
|
|
314
|
+
"aiStarter.copied": string;
|
|
315
|
+
"aiStarter.copyAriaLabel": string;
|
|
316
|
+
"aiStarter.readMore": string;
|
|
317
|
+
"aiStarter.readLess": string;
|
|
282
318
|
};
|
|
283
319
|
pt: {
|
|
284
320
|
"imageCard.aria.zoom": string;
|
|
@@ -290,6 +326,12 @@ export class I18n {
|
|
|
290
326
|
"imageCard.aria.download": string;
|
|
291
327
|
"imageCard.aria.rename": string;
|
|
292
328
|
"imageCard.aria.delete": string;
|
|
329
|
+
"aiStarter.label": string;
|
|
330
|
+
"aiStarter.copy": string;
|
|
331
|
+
"aiStarter.copied": string;
|
|
332
|
+
"aiStarter.copyAriaLabel": string;
|
|
333
|
+
"aiStarter.readMore": string;
|
|
334
|
+
"aiStarter.readLess": string;
|
|
293
335
|
};
|
|
294
336
|
fr: {
|
|
295
337
|
"imageCard.aria.zoom": string;
|
|
@@ -301,6 +343,12 @@ export class I18n {
|
|
|
301
343
|
"imageCard.aria.download": string;
|
|
302
344
|
"imageCard.aria.rename": string;
|
|
303
345
|
"imageCard.aria.delete": string;
|
|
346
|
+
"aiStarter.label": string;
|
|
347
|
+
"aiStarter.copy": string;
|
|
348
|
+
"aiStarter.copied": string;
|
|
349
|
+
"aiStarter.copyAriaLabel": string;
|
|
350
|
+
"aiStarter.readMore": string;
|
|
351
|
+
"aiStarter.readLess": string;
|
|
304
352
|
};
|
|
305
353
|
};
|
|
306
354
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n.js"],"names":[],"mappings":"AAoTA;;GAEG;AACH,8CAEC;AAED;;GAEG;AACH,2CAMC;AA1GD;;GAEG;AACH;IACE,kDAGC;IAFC,eAAoB;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAmD;IAGrD;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYC;IAED;;OAEG;IACH,8BAUC;IAED;;OAEG;IACH,6BAMC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,gCAEC;IAED;;OAEG;IACH,8CAKC;IAED;;OAEG;IACH,0BAGC;CACF;AAED;;GAEG;AACH,+BAAsC"}
|