create-protobase 0.96.17 → 0.97.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/templates/automations/package.json +6 -6
- package/dist/templates/erp/package.json +6 -6
- package/dist/templates/property-portal/config/alerts/ui.ts +1 -1
- package/dist/templates/property-portal/config/config.test.ts +1 -1
- package/dist/templates/property-portal/config/favorites/ui.ts +1 -1
- package/dist/templates/property-portal/config/listings/ui.ts +1 -1
- package/dist/templates/property-portal/package.json +6 -6
- package/dist/templates/real-estate/package.json +6 -6
- package/dist/templates/scratch/package.json +6 -6
- package/package.json +2 -2
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"zod": "^4.6.5"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@protobase/cli": "^0.
|
|
28
|
-
"@protobase/config": "^0.
|
|
29
|
-
"@protobase/layout": "^0.
|
|
30
|
-
"@protobase/schema": "^0.
|
|
31
|
-
"@protobase/server": "^0.
|
|
32
|
-
"@protobase/ui": "^0.
|
|
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",
|
|
33
33
|
"@types/node": "^22.20.5",
|
|
34
34
|
"@types/pg": "^8.23.1",
|
|
35
35
|
"@types/react": "^19.3.0",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"zod": "^4.6.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@protobase/cli": "^0.
|
|
31
|
-
"@protobase/config": "^0.
|
|
32
|
-
"@protobase/layout": "^0.
|
|
33
|
-
"@protobase/schema": "^0.
|
|
34
|
-
"@protobase/server": "^0.
|
|
35
|
-
"@protobase/ui": "^0.
|
|
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",
|
|
36
36
|
"@types/node": "^22.20.5",
|
|
37
37
|
"@types/pg": "^8.23.1",
|
|
38
38
|
"@types/react": "^19.3.0",
|
|
@@ -15,4 +15,4 @@ export const alertsView = view<typeof alerts>('alerts')
|
|
|
15
15
|
.list((r) => ({ columns: [r.listing_id, r.saved_search_id, r.matched_at, r.emailed_at], sort: [[r.matched_at, 'desc']] }))
|
|
16
16
|
.filters((r, w) => [w.facets(r.saved_search_id), w.dateRange(r.matched_at, { presets: ['7d', '30d', '90d'] })])
|
|
17
17
|
.layout((r) => [l.section('Alert', [r.listing_id, r.saved_search_id, r.matched_at, r.emailed_at]), l.sidebar([r.matched_at, r.emailed_at])])
|
|
18
|
-
.actions((a) => [a.link('open_listing', { label: 'Open the listing', to: { kind: 'record', resource: 'listings', key: '{listing_id}' } })])
|
|
18
|
+
.actions((a) => [a.link('open_listing', { label: 'Open the listing', to: { kind: 'record', resource: 'listings', key: '{{listing_id}}' } })])
|
|
@@ -47,7 +47,7 @@ describe('the portal config', () => {
|
|
|
47
47
|
],
|
|
48
48
|
})
|
|
49
49
|
expect(everyone!.actions).toEqual([])
|
|
50
|
-
expect(members!.actions.find((action) => action.name === 'add_note')?.run).toEqual({ kind: 'link', to: { kind: 'create', resource: 'notes', values: { listing_id: '{id}' } } })
|
|
50
|
+
expect(members!.actions.find((action) => action.name === 'add_note')?.run).toEqual({ kind: 'link', to: { kind: 'create', resource: 'notes', values: { listing_id: '{{id}}' } } })
|
|
51
51
|
})
|
|
52
52
|
|
|
53
53
|
it('saves a listing from its card to favorites, whose page lists the saved listings, and asks a visitor to sign in for both', async () => {
|
|
@@ -21,6 +21,6 @@ export const favoritesView = view<typeof favorites>('favorites')
|
|
|
21
21
|
})
|
|
22
22
|
.layout((r) => [l.section('Favorite', [r.listing_id, r.created_at])])
|
|
23
23
|
.actions((a) => [
|
|
24
|
-
a.link('open_listing', { label: 'Open the listing', to: { kind: 'record', resource: 'listings', key: '{listing_id}' } }),
|
|
24
|
+
a.link('open_listing', { label: 'Open the listing', to: { kind: 'record', resource: 'listings', key: '{{listing_id}}' } }),
|
|
25
25
|
a.remove('unsave', { label: 'Remove from favorites', confirm: 'Remove this listing from your favorites?' }),
|
|
26
26
|
])
|
|
@@ -96,7 +96,7 @@ export const memberListingsView = listingsView
|
|
|
96
96
|
.actions((a) => [
|
|
97
97
|
a.action('save_favorite', { label: 'Save to favorites' }),
|
|
98
98
|
a.action('remove_favorite', { label: 'Remove from favorites' }),
|
|
99
|
-
a.link('add_note', { label: 'Add a note', icon: 'file-text', to: { kind: 'create', resource: 'notes', values: { listing_id: '{id}' } } }),
|
|
99
|
+
a.link('add_note', { label: 'Add a note', icon: 'file-text', to: { kind: 'create', resource: 'notes', values: { listing_id: '{{id}}' } } }),
|
|
100
100
|
])
|
|
101
101
|
.forRoles(['member'])
|
|
102
102
|
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"zod": "^4.6.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@protobase/cli": "^0.
|
|
31
|
-
"@protobase/config": "^0.
|
|
32
|
-
"@protobase/layout": "^0.
|
|
33
|
-
"@protobase/schema": "^0.
|
|
34
|
-
"@protobase/server": "^0.
|
|
35
|
-
"@protobase/ui": "^0.
|
|
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",
|
|
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.
|
|
31
|
-
"@protobase/config": "^0.
|
|
32
|
-
"@protobase/layout": "^0.
|
|
33
|
-
"@protobase/schema": "^0.
|
|
34
|
-
"@protobase/server": "^0.
|
|
35
|
-
"@protobase/ui": "^0.
|
|
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",
|
|
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.
|
|
28
|
-
"@protobase/config": "^0.
|
|
29
|
-
"@protobase/layout": "^0.
|
|
30
|
-
"@protobase/schema": "^0.
|
|
31
|
-
"@protobase/server": "^0.
|
|
32
|
-
"@protobase/ui": "^0.
|
|
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",
|
|
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.
|
|
3
|
+
"version": "0.97.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.
|
|
31
|
+
"@protobase/cli": "0.97.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|