@wix/vibe-restaurants-menus-plugin-files 0.1.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/README.md ADDED
@@ -0,0 +1,45 @@
1
+ ## Implement components
2
+
3
+ 1. first implement your headless compoenents
4
+ 2. implement your componeents / ui components / pages, add them under `src/componenets/restaurants-menus` and `src/componenets/ui/restaurants-menus`. use your headless compoenents to implement your components
5
+ 3. headless / ui (shadcn) guidelines: https://github.com/wix-incubator/headless-components/blob/main/docs/api/API.md
6
+
7
+ Notes:
8
+ Make sure your headless components are part of picasso main template package.json here: https://github.com/wix-private/picasso/blob/master/packages/picasso-template-image/main/package.json, otherwise PR or ask the picasso team to add them
9
+
10
+
11
+ # Test build of zip files to be used by plugin module:
12
+ - build of this package should use something like `node scripts/build-zip.js` - it should only compress compoentns/restaurants-menus and components/ui/restaurants-menus
13
+ - see zip file ends up ok in dist/statics/
14
+ - see zip is exported ok in index.js as `zipPath`
15
+ - bump the files package version manually
16
+ - merge to master and make sure a new package is published (public npm package)
17
+ - use this package in `vibe-restaurants-menus-plugin` and use the zip file from there to be used during the "install" step and copy the files over to the picasso template in runtime
18
+
19
+
20
+ ## Testing over Wix Vibe main template:
21
+
22
+ 1. `npm run reset-template` (re-run this to reset it)
23
+
24
+ brings and resets the main Wix Wibe template for you to test your components over
25
+
26
+ 1. `npm run bootstrap`
27
+
28
+ This will initialize your dev site for your module
29
+ Create a site
30
+ Create a headless component
31
+ Create a dev center component and install on the site
32
+ Create a wix.config.json (which you can commit and push)
33
+ Create a .env.local file connected to your new site and app
34
+ The site will serve as the site you use in order to view the business information you see when running locally
35
+
36
+
37
+ 1. `npm run template-dev`
38
+
39
+ Start the dev server allowing you to start coding, the repo is equipped with a set of cursor rules allowing you to develop the headless component easier, you can adjust them to your liking
40
+
41
+ 1. `npm run template-check && npm run template-build` - to make sure there all your components play nicely over the Wix Vibe template
42
+
43
+ # Testing your instructions with LLM (WIP):
44
+ 1. open as an individual cursor project
45
+ 1. ask agent: integrate all page components in src/components/restaurants-menus to the main router. implement homepage.
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ const path = require('path');
2
+
3
+ // Export the path to the zip file that's already built
4
+ const zipPath = path.join(__dirname, 'dist/statics/vibe-restaurants-menus-plugin-files-files.zip');
5
+
6
+ module.exports = {
7
+ zipPath
8
+ };
package/package.json ADDED
@@ -0,0 +1,179 @@
1
+ {
2
+ "name": "@wix/vibe-restaurants-menus-plugin-files",
3
+ "version": "0.1.0",
4
+ "main": "index.js",
5
+ "unpkg": true,
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "keywords": [
10
+ "vibe-plugin-files"
11
+ ],
12
+ "publishConfig": {
13
+ "registry": "https://registry.npmjs.org/",
14
+ "access": "public"
15
+ },
16
+ "scripts": {
17
+ "reset-template": "./scripts/reset-from-picasso.sh",
18
+ "bootstrap": "rm -rf .wix wix.config.json .env.local && node scripts/bootstrap-headless.js",
19
+ "build": "node scripts/build-zip.js",
20
+ "lint": "true",
21
+ "template-dev": "wix dev",
22
+ "template-build": "wix build",
23
+ "template-preview": "wix preview",
24
+ "template-release": "wix release",
25
+ "template-env": "wix env pull",
26
+ "template-check": "npx astro check --js-only",
27
+ "template-test:run": "vitest run",
28
+ "template-install-template": "npm i --force --legacy-peer-deps --include=dev --registry=https://registry.npmjs.org"
29
+ },
30
+ "wix": {
31
+ "artifact": {
32
+ "groupId": "com.wixpress.ai-systems",
33
+ "artifactId": "vibe-restaurants-menus-plugin-files",
34
+ "targets": {
35
+ "static": true
36
+ }
37
+ },
38
+ "validations": {
39
+ "source": [
40
+ "lint"
41
+ ],
42
+ "postBuild": []
43
+ }
44
+ },
45
+ "dependencies": {
46
+ "@astrojs/check": "^0.9.4",
47
+ "@astrojs/cloudflare": "^12.5.3",
48
+ "@astrojs/react": "^4.2.3",
49
+ "@astrojs/tailwind": "^6.0.2",
50
+ "@hello-pangea/dnd": "^18.0.1",
51
+ "@hookform/resolvers": "^5.0.1",
52
+ "@nanostores/persistent": "^1.0.0",
53
+ "@nanostores/react": "^1.0.0",
54
+ "@radix-ui/react-accordion": "^1.2.10",
55
+ "@radix-ui/react-alert-dialog": "^1.1.13",
56
+ "@radix-ui/react-aspect-ratio": "^1.1.6",
57
+ "@radix-ui/react-avatar": "^1.1.9",
58
+ "@radix-ui/react-checkbox": "^1.3.1",
59
+ "@radix-ui/react-collapsible": "^1.1.10",
60
+ "@radix-ui/react-context-menu": "^2.2.14",
61
+ "@radix-ui/react-dialog": "^1.1.13",
62
+ "@radix-ui/react-dropdown-menu": "^2.1.14",
63
+ "@radix-ui/react-hover-card": "^1.1.13",
64
+ "@radix-ui/react-icons": "^1.3.2",
65
+ "@radix-ui/react-label": "^2.1.6",
66
+ "@radix-ui/react-menubar": "^1.1.14",
67
+ "@radix-ui/react-navigation-menu": "^1.2.12",
68
+ "@radix-ui/react-popover": "^1.1.13",
69
+ "@radix-ui/react-progress": "^1.1.6",
70
+ "@radix-ui/react-radio-group": "^1.3.6",
71
+ "@radix-ui/react-scroll-area": "^1.2.8",
72
+ "@radix-ui/react-select": "^2.2.4",
73
+ "@radix-ui/react-separator": "^1.1.6",
74
+ "@radix-ui/react-slider": "^1.3.4",
75
+ "@radix-ui/react-slot": "^1.2.2",
76
+ "@radix-ui/react-switch": "^1.2.4",
77
+ "@radix-ui/react-tabs": "^1.1.11",
78
+ "@radix-ui/react-toast": "^1.2.13",
79
+ "@radix-ui/react-toggle": "^1.1.8",
80
+ "@radix-ui/react-toggle-group": "^1.1.9",
81
+ "@radix-ui/react-tooltip": "^1.2.6",
82
+ "@react-hook/resize-observer": "^2.0.2",
83
+ "@tailwindcss/container-queries": "^0.1.1",
84
+ "@tailwindcss/typography": "^0.5.15",
85
+ "@tailwindcss/vite": "^4.0.13",
86
+ "@wix/astro": "1.0.31",
87
+ "@wix/auto-patterns": "1.17.0",
88
+ "@wix/babel-plugin-jsx-dynamic-data": "^1.0.8",
89
+ "@wix/babel-plugin-jsx-source-attrs": "^1.2.0",
90
+ "@wix/benefit-programs": "^1.0.121",
91
+ "@wix/blog": "^1.0.441",
92
+ "@wix/bookings": "^1.0.964",
93
+ "@wix/categories": "^1.0.133",
94
+ "@wix/dashboard": "^1.3.39",
95
+ "@wix/data": "^1.0.250",
96
+ "@wix/design-system": "^1.199.0",
97
+ "@wix/ecom": "^1.0.1279",
98
+ "@wix/essentials": "^0.1.24",
99
+ "@wix/headless-components": "^0.0.12",
100
+ "@wix/headless-ecom": "^0.0.27",
101
+ "@wix/headless-media": "^0.0.13",
102
+ "@wix/headless-restaurants-menus": "^0.0.5",
103
+ "@wix/headless-seo": "^0.0.11",
104
+ "@wix/headless-stores": "^0.0.86",
105
+ "@wix/image": "^1.392.0",
106
+ "@wix/image-kit": "^1.0.0",
107
+ "@wix/media": "^1.0.170",
108
+ "@wix/members": "^1.0.304",
109
+ "@wix/patterns": "^1.230.0",
110
+ "@wix/payments": "^1.0.91",
111
+ "@wix/pricing-plans": "^1.0.188",
112
+ "@wix/redirects": "^1.0.83",
113
+ "@wix/restaurants": "^1.0.351",
114
+ "@wix/sdk": "^1.15.23",
115
+ "@wix/seo": "^1.0.21",
116
+ "@wix/services-definitions": "^0.1.5",
117
+ "@wix/services-manager": "^0.2.21",
118
+ "@wix/services-manager-react": "^0.1.27",
119
+ "@wix/stores": "^1.0.498",
120
+ "@wix/wix-vibe-plugins": "0.0.1",
121
+ "astro": "^5.8.0",
122
+ "babel-plugin-transform-react-jsx-location": "^0.2.0",
123
+ "class-variance-authority": "^0.7.1",
124
+ "clsx": "^2.1.1",
125
+ "cmdk": "^1.1.1",
126
+ "date-fns": "^4.1.0",
127
+ "embla-carousel-react": "^8.5.2",
128
+ "framer-motion": "^12.5.0",
129
+ "input-otp": "^1.4.2",
130
+ "lucide-react": "^0.487.0",
131
+ "nanostores": "^1.0.1",
132
+ "next-themes": "^0.4.6",
133
+ "react-day-picker": "^8.10.1",
134
+ "react-hook-form": "^7.59.0",
135
+ "react-leaflet": "^5.0.0",
136
+ "react-resizable-panels": "^2.1.7",
137
+ "react-router-dom": "^7.4.1",
138
+ "react-share": "^5.2.2",
139
+ "recharts": "^3.0.2",
140
+ "sonner": "^2.0.3",
141
+ "tailwind-merge": "^3.2.0",
142
+ "tailwindcss": "^3.4.14",
143
+ "tailwindcss-animate": "^1.0.7",
144
+ "three": "^0.177.0",
145
+ "typescript": "^5.8.3",
146
+ "uuid": "^11.1.0",
147
+ "vaul": "^1.1.2",
148
+ "vite-plugin-node-polyfills": "^0.23.0",
149
+ "zod": "^3.24.4",
150
+ "zustand": "^5.0.6"
151
+ },
152
+ "devDependencies": {
153
+ "@testing-library/jest-dom": "^5.16.5",
154
+ "@testing-library/react": "^13.4.0",
155
+ "@types/react": "^18.3.0",
156
+ "@types/react-dom": "^18.3.0",
157
+ "@types/three": "^0",
158
+ "@typescript-eslint/eslint-plugin": "^8.34.0",
159
+ "@typescript-eslint/parser": "^8.34.0",
160
+ "@wix/cli": "^1.1.115",
161
+ "@wix/framewire": "^1.9.44",
162
+ "csstype": "^3.1.3",
163
+ "eslint": "^9.26.0",
164
+ "eslint-plugin-astro": "^1.3.1",
165
+ "eslint-plugin-import": "^2.31.0",
166
+ "eslint-plugin-jsx-a11y": "^6.10.2",
167
+ "eslint-plugin-react": "^7.37.5",
168
+ "globals": "^16.0.0",
169
+ "jsdom": "^20.0.0",
170
+ "react": "^18.3.0",
171
+ "react-dom": "^18.3.0",
172
+ "sass-embedded": "^1.89.2",
173
+ "typescript": "^5.8.3",
174
+ "vite": "^4.5.0",
175
+ "vite-tsconfig-paths": "^5.1.4",
176
+ "vitest": "3.1.4"
177
+ },
178
+ "falconPackageHash": "657c46e533c89cbae88ed660e6ce64d9e77d7bf2ec4a0838aa4cf9ca"
179
+ }