@wix/ditto-codegen-public 1.0.237 → 1.0.239
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.
|
@@ -18,6 +18,8 @@ import type {
|
|
|
18
18
|
NumberType,
|
|
19
19
|
BooleanValue,
|
|
20
20
|
WebUrl,
|
|
21
|
+
LocalDate,
|
|
22
|
+
LocalTime,
|
|
21
23
|
Link,
|
|
22
24
|
Image,
|
|
23
25
|
Direction,
|
|
@@ -29,6 +31,8 @@ interface PerfectExampleProps {
|
|
|
29
31
|
id: string;
|
|
30
32
|
wix?: Wix;
|
|
31
33
|
direction?: Direction;
|
|
34
|
+
scheduledDate?: LocalDate;
|
|
35
|
+
scheduledTime?: LocalTime;
|
|
32
36
|
elementProps?: {
|
|
33
37
|
badge?: {
|
|
34
38
|
badgeText?: Text;
|
|
@@ -68,6 +72,8 @@ const PerfectExample: React.FC<PerfectExampleProps> = ({
|
|
|
68
72
|
id,
|
|
69
73
|
wix,
|
|
70
74
|
direction,
|
|
75
|
+
scheduledDate,
|
|
76
|
+
scheduledTime,
|
|
71
77
|
elementProps,
|
|
72
78
|
}) => {
|
|
73
79
|
const rm = wix?.elementsRemovalState || {};
|
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
"direction": {
|
|
30
30
|
"dataType": "direction",
|
|
31
31
|
"displayName": "Text Direction"
|
|
32
|
+
},
|
|
33
|
+
"scheduledDate": {
|
|
34
|
+
"dataType": "localDate",
|
|
35
|
+
"displayName": "Scheduled Date"
|
|
36
|
+
},
|
|
37
|
+
"scheduledTime": {
|
|
38
|
+
"dataType": "localTime",
|
|
39
|
+
"displayName": "Scheduled Time"
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
"cssProperties": {
|
|
@@ -3,6 +3,8 @@ export type RichText = string;
|
|
|
3
3
|
export type NumberType = number;
|
|
4
4
|
export type BooleanValue = boolean;
|
|
5
5
|
export type WebUrl = string;
|
|
6
|
+
export type LocalDate = string; // ISO-8601 format: YYYY-MM-DD
|
|
7
|
+
export type LocalTime = string; // ISO-8601 format: hh:mm[:ss][.sss]
|
|
6
8
|
export type Direction = 'rtl' | 'ltr' | 'auto';
|
|
7
9
|
|
|
8
10
|
export type Link = {
|
package/dist/out.js
CHANGED
|
@@ -122043,6 +122043,8 @@ var require_extensionGenerators = __commonJS({
|
|
|
122043
122043
|
const absoluteScaffoldPath = resolveAndValidateScaffoldPath(outputPath, scaffoldDir);
|
|
122044
122044
|
const componentPath = getScaffoldPath(scaffoldDir, "component.tsx");
|
|
122045
122045
|
const extensionName = generateUniqueExtensionName(extensionType, name);
|
|
122046
|
+
const folderName = path_1.default.basename(scaffoldDir);
|
|
122047
|
+
const typeName = toCamelCase(sanitizeName(folderName).replace(/-/g, " ")).replace(/^./, (c) => c.toUpperCase());
|
|
122046
122048
|
const tsContent = `import { extensions } from '@wix/astro/builders';
|
|
122047
122049
|
import manifest from './manifest.json';
|
|
122048
122050
|
|
|
@@ -122050,7 +122052,7 @@ export const ${extensionName} = extensions.siteComponent({
|
|
|
122050
122052
|
...manifest,
|
|
122051
122053
|
id: '${id}',
|
|
122052
122054
|
description: '${name}',
|
|
122053
|
-
type: 'platform
|
|
122055
|
+
type: 'platform.${typeName}',
|
|
122054
122056
|
resources: {
|
|
122055
122057
|
client: {
|
|
122056
122058
|
component: '${componentPath}',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.239",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@wix/ditto-codegen": "1.0.0",
|
|
29
29
|
"esbuild": "^0.27.2"
|
|
30
30
|
},
|
|
31
|
-
"falconPackageHash": "
|
|
31
|
+
"falconPackageHash": "f9765f590866c0234e1622e9b5b81996c3a49939a32da279dc327944"
|
|
32
32
|
}
|