@bravostudioai/react 0.1.30 → 0.1.31
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/package.json +1 -1
- package/src/cli/commands/generate.ts +7 -2
- package/src/components.tsx +6 -1
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -369,6 +369,8 @@ Arguments:
|
|
|
369
369
|
appId The Encore app ID
|
|
370
370
|
pageId The Encore page ID (optional - if omitted, generates wrappers for ALL pages)
|
|
371
371
|
outputPath Path where the generated TSX file(s) should be saved
|
|
372
|
+
--production Generate for production (bundles data)
|
|
373
|
+
--preseed Alias for --production (bundles data)
|
|
372
374
|
|
|
373
375
|
Environment variables:
|
|
374
376
|
APPS_SERVICE_URL Base URL for the apps service
|
|
@@ -379,8 +381,11 @@ Example:
|
|
|
379
381
|
}
|
|
380
382
|
|
|
381
383
|
export async function runGenerate(args: string[]) {
|
|
382
|
-
const isProduction =
|
|
383
|
-
|
|
384
|
+
const isProduction =
|
|
385
|
+
args.includes("--production") || args.includes("--preseed");
|
|
386
|
+
const cleanArgs = args.filter(
|
|
387
|
+
(arg) => arg !== "--production" && arg !== "--preseed"
|
|
388
|
+
);
|
|
384
389
|
|
|
385
390
|
if (
|
|
386
391
|
cleanArgs.length < 2 ||
|
package/src/components.tsx
CHANGED
|
@@ -1502,7 +1502,12 @@ const TextInputComponent: React.FC<ComponentProps> = ({
|
|
|
1502
1502
|
);
|
|
1503
1503
|
};
|
|
1504
1504
|
|
|
1505
|
-
const LottieComponent: React.FC<ComponentProps> = ({
|
|
1505
|
+
const LottieComponent: React.FC<ComponentProps> = ({
|
|
1506
|
+
id,
|
|
1507
|
+
name,
|
|
1508
|
+
nodeData,
|
|
1509
|
+
children,
|
|
1510
|
+
}) => {
|
|
1506
1511
|
const style = useEncoreStyle(nodeData.style);
|
|
1507
1512
|
return (
|
|
1508
1513
|
<EncoreLinkActionWrapper id={id} nodeData={nodeData}>
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = "0.1.
|
|
1
|
+
export const PACKAGE_VERSION = "0.1.31";
|