create-protobase 0.97.0 → 0.98.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.
@@ -24,12 +24,12 @@
24
24
  "zod": "^4.6.5"
25
25
  },
26
26
  "devDependencies": {
27
- "@protobase/cli": "^0.97.0",
28
- "@protobase/config": "^0.97.0",
29
- "@protobase/layout": "^0.97.0",
30
- "@protobase/schema": "^0.97.0",
31
- "@protobase/server": "^0.97.0",
32
- "@protobase/ui": "^0.97.0",
27
+ "@protobase/cli": "^0.98.0",
28
+ "@protobase/config": "^0.98.0",
29
+ "@protobase/layout": "^0.98.0",
30
+ "@protobase/schema": "^0.98.0",
31
+ "@protobase/server": "^0.98.0",
32
+ "@protobase/ui": "^0.98.0",
33
33
  "@types/node": "^22.20.5",
34
34
  "@types/pg": "^8.23.1",
35
35
  "@types/react": "^19.3.0",
@@ -27,10 +27,10 @@ export const salesOverview = page(
27
27
  actions={<Action name="markPaid" variant="primary" />}
28
28
  >
29
29
  <Grid columns={2}>
30
- <Field name="number" />
31
- <Field name="total" />
32
- <Field name="company_id" label="Customer" />
33
- <Field name="company_id.city" label="City" />
30
+ <Field source="number" />
31
+ <Field source="total" />
32
+ <Field source="company_id" label="Customer" />
33
+ <Field source="company_id.city" label="City" />
34
34
  </Grid>
35
35
  <Show when="company_id.status = 'dormant'">The customer has gone quiet: call before sending a reminder.</Show>
36
36
  </RecordCard>
@@ -43,10 +43,10 @@ export const salesOverview = page(
43
43
  actions={[<Action name="send" label="Send reminder" />, <Action name="recordPayment" variant="primary" />]}
44
44
  >
45
45
  <Grid columns={2}>
46
- <Field name="number" />
47
- <Field name="total" />
48
- <Field name="company_id" label="Customer" />
49
- <Field name="due_at" label="Due" />
46
+ <Field source="number" />
47
+ <Field source="total" />
48
+ <Field source="company_id" label="Customer" />
49
+ <Field source="due_at" label="Due" />
50
50
  </Grid>
51
51
  </RecordCard>
52
52
  <Card title="Orders per day" description="The last 30 days.">
@@ -70,9 +70,9 @@ export const salesOverview = page(
70
70
  limit={8}
71
71
  actions={<ModalForm mode="create" label="Add lead" resource="companies" fields={['name', 'city', 'country_code', 'email']} values={{ status: 'lead' }} />}
72
72
  >
73
- <Field name="name" label={false} />
74
- <Field name="city" />
75
- <Field name="email" />
73
+ <Field source="name" label={false} />
74
+ <Field source="city" />
75
+ <Field source="email" />
76
76
  <ModalForm mode="edit" label="Edit" fields={['name', 'city', 'email', 'phone', 'status']} />
77
77
  </CardRow>
78
78
  </Page>,
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.97.0",
31
- "@protobase/config": "^0.97.0",
32
- "@protobase/layout": "^0.97.0",
33
- "@protobase/schema": "^0.97.0",
34
- "@protobase/server": "^0.97.0",
35
- "@protobase/ui": "^0.97.0",
30
+ "@protobase/cli": "^0.98.0",
31
+ "@protobase/config": "^0.98.0",
32
+ "@protobase/layout": "^0.98.0",
33
+ "@protobase/schema": "^0.98.0",
34
+ "@protobase/server": "^0.98.0",
35
+ "@protobase/ui": "^0.98.0",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.97.0",
31
- "@protobase/config": "^0.97.0",
32
- "@protobase/layout": "^0.97.0",
33
- "@protobase/schema": "^0.97.0",
34
- "@protobase/server": "^0.97.0",
35
- "@protobase/ui": "^0.97.0",
30
+ "@protobase/cli": "^0.98.0",
31
+ "@protobase/config": "^0.98.0",
32
+ "@protobase/layout": "^0.98.0",
33
+ "@protobase/schema": "^0.98.0",
34
+ "@protobase/server": "^0.98.0",
35
+ "@protobase/ui": "^0.98.0",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -23,12 +23,12 @@ export const portfolioOverview = page(
23
23
  actions={<Action name="remind" label="Send reminder" variant="primary" />}
24
24
  >
25
25
  <Grid columns={2}>
26
- <Field name="lease_id" label="Lease" />
27
- <Field name="balance" label="Outstanding" />
28
- <Field name="open_charges" label="Open months" />
29
- <Field name="oldest_due_on" label="Oldest due" />
26
+ <Field source="lease_id" label="Lease" />
27
+ <Field source="balance" label="Outstanding" />
28
+ <Field source="open_charges" label="Open months" />
29
+ <Field source="oldest_due_on" label="Oldest due" />
30
30
  </Grid>
31
- <Field name="lease_id.unit_id" label="Unit" />
31
+ <Field source="lease_id.unit_id" label="Unit" />
32
32
  </RecordCard>
33
33
  <RecordCard
34
34
  title="Oldest urgent ticket"
@@ -39,12 +39,12 @@ export const portfolioOverview = page(
39
39
  actions={<Action name="complete" variant="primary" />}
40
40
  >
41
41
  <Grid columns={2}>
42
- <Field name="number" />
43
- <Field name="status" />
44
- <Field name="property_id" label="Property" />
45
- <Field name="reported_at" label="Reported" />
42
+ <Field source="number" />
43
+ <Field source="status" />
44
+ <Field source="property_id" label="Property" />
45
+ <Field source="reported_at" label="Reported" />
46
46
  </Grid>
47
- <Field name="title" />
47
+ <Field source="title" />
48
48
  </RecordCard>
49
49
  </Grid>
50
50
  <Grid columns={2}>
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.97.0",
31
- "@protobase/config": "^0.97.0",
32
- "@protobase/layout": "^0.97.0",
33
- "@protobase/schema": "^0.97.0",
34
- "@protobase/server": "^0.97.0",
35
- "@protobase/ui": "^0.97.0",
30
+ "@protobase/cli": "^0.98.0",
31
+ "@protobase/config": "^0.98.0",
32
+ "@protobase/layout": "^0.98.0",
33
+ "@protobase/schema": "^0.98.0",
34
+ "@protobase/server": "^0.98.0",
35
+ "@protobase/ui": "^0.98.0",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -24,12 +24,12 @@
24
24
  "zod": "^4.6.5"
25
25
  },
26
26
  "devDependencies": {
27
- "@protobase/cli": "^0.97.0",
28
- "@protobase/config": "^0.97.0",
29
- "@protobase/layout": "^0.97.0",
30
- "@protobase/schema": "^0.97.0",
31
- "@protobase/server": "^0.97.0",
32
- "@protobase/ui": "^0.97.0",
27
+ "@protobase/cli": "^0.98.0",
28
+ "@protobase/config": "^0.98.0",
29
+ "@protobase/layout": "^0.98.0",
30
+ "@protobase/schema": "^0.98.0",
31
+ "@protobase/server": "^0.98.0",
32
+ "@protobase/ui": "^0.98.0",
33
33
  "@types/node": "^22.20.5",
34
34
  "@types/pg": "^8.23.1",
35
35
  "@types/react": "^19.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-protobase",
3
- "version": "0.97.0",
3
+ "version": "0.98.0",
4
4
  "description": "npm create protobase: starts a new Protobase project from one of its presets, or on an existing Postgres database.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "postgres": "^3.4.9"
29
29
  },
30
30
  "devDependencies": {
31
- "@protobase/cli": "0.97.0"
31
+ "@protobase/cli": "0.98.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"