@jay-framework/wix-data 0.15.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/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@jay-framework/wix-data",
3
+ "version": "0.15.0",
4
+ "type": "module",
5
+ "description": "Wix Data plugin for Jay Framework with dynamic contract generation",
6
+ "license": "Apache-2.0",
7
+ "main": "dist/index.js",
8
+ "files": [
9
+ "dist",
10
+ "plugin.yaml"
11
+ ],
12
+ "exports": {
13
+ ".": "./dist/index.js",
14
+ "./client": "./dist/index.client.js",
15
+ "./plugin.yaml": "./plugin.yaml",
16
+ "./query-items.jay-action": "./dist/actions/query-items.jay-action",
17
+ "./get-item-by-slug.jay-action": "./dist/actions/get-item-by-slug.jay-action",
18
+ "./get-categories.jay-action": "./dist/actions/get-categories.jay-action"
19
+ },
20
+ "scripts": {
21
+ "build": "npm run clean && npm run definitions && npm run build:client && npm run build:server && npm run build:copy-actions && npm run build:types",
22
+ "definitions": "jay-cli definitions lib/actions",
23
+ "build:copy-actions": "mkdir -p dist/actions && cp lib/actions/*.jay-action dist/actions/",
24
+ "build:client": "vite build",
25
+ "build:server": "vite build --ssr",
26
+ "build:types": "tsup lib/index.ts --dts-only --format esm",
27
+ "build:check-types": "tsc",
28
+ "clean": "rimraf dist",
29
+ "confirm": "npm run clean && npm run build && npm run test",
30
+ "test": ":"
31
+ },
32
+ "dependencies": {
33
+ "@jay-framework/component": "^0.14.0",
34
+ "@jay-framework/fullstack-component": "^0.14.0",
35
+ "@jay-framework/reactive": "^0.14.0",
36
+ "@jay-framework/runtime": "^0.14.0",
37
+ "@jay-framework/secure": "^0.14.0",
38
+ "@jay-framework/stack-client-runtime": "^0.14.0",
39
+ "@jay-framework/stack-server-runtime": "^0.14.0",
40
+ "@jay-framework/wix-server-client": "^0.15.0",
41
+ "@jay-framework/wix-utils": "^0.15.0",
42
+ "@wix/data": "^1.0.427",
43
+ "@wix/sdk": "^1.21.5",
44
+ "js-yaml": "^4.1.0"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/core": "^7.23.7",
48
+ "@babel/preset-env": "^7.23.8",
49
+ "@babel/preset-typescript": "^7.23.3",
50
+ "@jay-framework/compiler-jay-stack": "^0.14.0",
51
+ "@jay-framework/jay-cli": "^0.14.0",
52
+ "@jay-framework/vite-plugin": "^0.14.0",
53
+ "@types/js-yaml": "^4.0.9",
54
+ "@types/node": "^20.11.0",
55
+ "nodemon": "^3.0.3",
56
+ "rimraf": "^5.0.5",
57
+ "tslib": "^2.6.2",
58
+ "tsup": "^8.5.1",
59
+ "typescript": "^5.3.3",
60
+ "vite": "^5.0.11",
61
+ "vite-plugin-inspect": "^0.8.1"
62
+ }
63
+ }
package/plugin.yaml ADDED
@@ -0,0 +1,39 @@
1
+ name: wix-data
2
+
3
+ # Dynamic contracts - generated from Wix Data collection schemas at build time
4
+ # Each prefix creates contracts like: item/BlogPostsItem, list/BlogPostsList, etc.
5
+
6
+ dynamic_contracts:
7
+ # Item pages - one contract per collection with itemPage: true
8
+ - prefix: 'item'
9
+ component: collectionItem
10
+ generator: itemContractGenerator
11
+
12
+ # List pages (index & category) - one contract per collection with indexPage: true
13
+ - prefix: 'list'
14
+ component: collectionList
15
+ generator: listContractGenerator
16
+
17
+ # Table widgets - one contract per collection with tableWidget: true
18
+ - prefix: 'table'
19
+ component: collectionTable
20
+ generator: tableContractGenerator
21
+
22
+ # Card widgets - one contract per collection with cardWidget: true
23
+ - prefix: 'card'
24
+ component: collectionCard
25
+ generator: cardContractGenerator
26
+
27
+ setup:
28
+ handler: setupWixData
29
+ references: generateWixDataReferences
30
+ description: Validate CMS service; generate collection schema references
31
+
32
+ # Server actions for querying data
33
+ actions:
34
+ - name: queryItems
35
+ action: query-items.jay-action
36
+ - name: getItemBySlug
37
+ action: get-item-by-slug.jay-action
38
+ - name: getCategories
39
+ action: get-categories.jay-action