create-comate-pagebuilder 1.0.4 → 1.0.6
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 +1 -1
- package/template/package-lock.json +94 -53
- package/template/package.json +10 -9
- package/template/src/App.jsx +7 -4
- package/template/src/main.jsx +1 -4
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "PageBuilder-react-template",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "PageBuilder-react-template",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.6",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"clsx": "^2.1.0",
|
|
12
|
-
"framer-motion": "^
|
|
13
|
-
"lucide-react": "^0.
|
|
14
|
-
"react": "^
|
|
15
|
-
"react-dom": "^
|
|
12
|
+
"framer-motion": "^12.23.24",
|
|
13
|
+
"lucide-react": "^0.555.0",
|
|
14
|
+
"react": "^19.2.0",
|
|
15
|
+
"react-dom": "^19.2.0",
|
|
16
|
+
"react-router": "^7.9.6",
|
|
17
|
+
"react-router-dom": "^7.9.6",
|
|
16
18
|
"tailwind-merge": "^2.2.1"
|
|
17
19
|
},
|
|
18
20
|
"devDependencies": {
|
|
@@ -1428,6 +1430,19 @@
|
|
|
1428
1430
|
"dev": true,
|
|
1429
1431
|
"license": "MIT"
|
|
1430
1432
|
},
|
|
1433
|
+
"node_modules/cookie": {
|
|
1434
|
+
"version": "1.1.1",
|
|
1435
|
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
|
|
1436
|
+
"integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
|
|
1437
|
+
"license": "MIT",
|
|
1438
|
+
"engines": {
|
|
1439
|
+
"node": ">=18"
|
|
1440
|
+
},
|
|
1441
|
+
"funding": {
|
|
1442
|
+
"type": "opencollective",
|
|
1443
|
+
"url": "https://opencollective.com/express"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1431
1446
|
"node_modules/cssesc": {
|
|
1432
1447
|
"version": "3.0.0",
|
|
1433
1448
|
"resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
|
|
@@ -1597,13 +1612,13 @@
|
|
|
1597
1612
|
}
|
|
1598
1613
|
},
|
|
1599
1614
|
"node_modules/framer-motion": {
|
|
1600
|
-
"version": "
|
|
1601
|
-
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-
|
|
1602
|
-
"integrity": "sha512-
|
|
1615
|
+
"version": "12.23.24",
|
|
1616
|
+
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.23.24.tgz",
|
|
1617
|
+
"integrity": "sha512-HMi5HRoRCTou+3fb3h9oTLyJGBxHfW+HnNE25tAXOvVx/IvwMHK0cx7IR4a2ZU6sh3IX1Z+4ts32PcYBOqka8w==",
|
|
1603
1618
|
"license": "MIT",
|
|
1604
1619
|
"dependencies": {
|
|
1605
|
-
"motion-dom": "^
|
|
1606
|
-
"motion-utils": "^
|
|
1620
|
+
"motion-dom": "^12.23.23",
|
|
1621
|
+
"motion-utils": "^12.23.6",
|
|
1607
1622
|
"tslib": "^2.4.0"
|
|
1608
1623
|
},
|
|
1609
1624
|
"peerDependencies": {
|
|
@@ -1767,6 +1782,7 @@
|
|
|
1767
1782
|
"version": "4.0.0",
|
|
1768
1783
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
1769
1784
|
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
|
1785
|
+
"dev": true,
|
|
1770
1786
|
"license": "MIT"
|
|
1771
1787
|
},
|
|
1772
1788
|
"node_modules/jsesc": {
|
|
@@ -1815,18 +1831,6 @@
|
|
|
1815
1831
|
"dev": true,
|
|
1816
1832
|
"license": "MIT"
|
|
1817
1833
|
},
|
|
1818
|
-
"node_modules/loose-envify": {
|
|
1819
|
-
"version": "1.4.0",
|
|
1820
|
-
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
|
1821
|
-
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
|
1822
|
-
"license": "MIT",
|
|
1823
|
-
"dependencies": {
|
|
1824
|
-
"js-tokens": "^3.0.0 || ^4.0.0"
|
|
1825
|
-
},
|
|
1826
|
-
"bin": {
|
|
1827
|
-
"loose-envify": "cli.js"
|
|
1828
|
-
}
|
|
1829
|
-
},
|
|
1830
1834
|
"node_modules/lottie-web": {
|
|
1831
1835
|
"version": "5.13.0",
|
|
1832
1836
|
"resolved": "https://registry.npmjs.org/lottie-web/-/lottie-web-5.13.0.tgz",
|
|
@@ -1845,12 +1849,12 @@
|
|
|
1845
1849
|
}
|
|
1846
1850
|
},
|
|
1847
1851
|
"node_modules/lucide-react": {
|
|
1848
|
-
"version": "0.
|
|
1849
|
-
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.
|
|
1850
|
-
"integrity": "sha512-
|
|
1852
|
+
"version": "0.555.0",
|
|
1853
|
+
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.555.0.tgz",
|
|
1854
|
+
"integrity": "sha512-D8FvHUGbxWBRQM90NZeIyhAvkFfsh3u9ekrMvJ30Z6gnpBHS6HC6ldLg7tL45hwiIz/u66eKDtdA23gwwGsAHA==",
|
|
1851
1855
|
"license": "ISC",
|
|
1852
1856
|
"peerDependencies": {
|
|
1853
|
-
"react": "^16.5.1 || ^17.0.0 || ^18.0.0"
|
|
1857
|
+
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
1854
1858
|
}
|
|
1855
1859
|
},
|
|
1856
1860
|
"node_modules/merge2": {
|
|
@@ -1878,18 +1882,18 @@
|
|
|
1878
1882
|
}
|
|
1879
1883
|
},
|
|
1880
1884
|
"node_modules/motion-dom": {
|
|
1881
|
-
"version": "
|
|
1882
|
-
"resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-
|
|
1883
|
-
"integrity": "sha512-
|
|
1885
|
+
"version": "12.23.23",
|
|
1886
|
+
"resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.23.23.tgz",
|
|
1887
|
+
"integrity": "sha512-n5yolOs0TQQBRUFImrRfs/+6X4p3Q4n1dUEqt/H58Vx7OW6RF+foWEgmTVDhIWJIMXOuNNL0apKH2S16en9eiA==",
|
|
1884
1888
|
"license": "MIT",
|
|
1885
1889
|
"dependencies": {
|
|
1886
|
-
"motion-utils": "^
|
|
1890
|
+
"motion-utils": "^12.23.6"
|
|
1887
1891
|
}
|
|
1888
1892
|
},
|
|
1889
1893
|
"node_modules/motion-utils": {
|
|
1890
|
-
"version": "
|
|
1891
|
-
"resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-
|
|
1892
|
-
"integrity": "sha512-
|
|
1894
|
+
"version": "12.23.6",
|
|
1895
|
+
"resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.23.6.tgz",
|
|
1896
|
+
"integrity": "sha512-eAWoPgr4eFEOFfg2WjIsMoqJTW6Z8MTUCgn/GZ3VRpClWBdnbjryiA3ZSNLyxCTmCQx4RmYX6jX1iWHbenUPNQ==",
|
|
1893
1897
|
"license": "MIT"
|
|
1894
1898
|
},
|
|
1895
1899
|
"node_modules/ms": {
|
|
@@ -2209,28 +2213,24 @@
|
|
|
2209
2213
|
"license": "MIT"
|
|
2210
2214
|
},
|
|
2211
2215
|
"node_modules/react": {
|
|
2212
|
-
"version": "
|
|
2213
|
-
"resolved": "https://registry.npmjs.org/react/-/react-
|
|
2214
|
-
"integrity": "sha512-
|
|
2216
|
+
"version": "19.2.0",
|
|
2217
|
+
"resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz",
|
|
2218
|
+
"integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==",
|
|
2215
2219
|
"license": "MIT",
|
|
2216
|
-
"dependencies": {
|
|
2217
|
-
"loose-envify": "^1.1.0"
|
|
2218
|
-
},
|
|
2219
2220
|
"engines": {
|
|
2220
2221
|
"node": ">=0.10.0"
|
|
2221
2222
|
}
|
|
2222
2223
|
},
|
|
2223
2224
|
"node_modules/react-dom": {
|
|
2224
|
-
"version": "
|
|
2225
|
-
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-
|
|
2226
|
-
"integrity": "sha512-
|
|
2225
|
+
"version": "19.2.0",
|
|
2226
|
+
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.0.tgz",
|
|
2227
|
+
"integrity": "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==",
|
|
2227
2228
|
"license": "MIT",
|
|
2228
2229
|
"dependencies": {
|
|
2229
|
-
"
|
|
2230
|
-
"scheduler": "^0.23.2"
|
|
2230
|
+
"scheduler": "^0.27.0"
|
|
2231
2231
|
},
|
|
2232
2232
|
"peerDependencies": {
|
|
2233
|
-
"react": "^
|
|
2233
|
+
"react": "^19.2.0"
|
|
2234
2234
|
}
|
|
2235
2235
|
},
|
|
2236
2236
|
"node_modules/react-refresh": {
|
|
@@ -2243,6 +2243,44 @@
|
|
|
2243
2243
|
"node": ">=0.10.0"
|
|
2244
2244
|
}
|
|
2245
2245
|
},
|
|
2246
|
+
"node_modules/react-router": {
|
|
2247
|
+
"version": "7.9.6",
|
|
2248
|
+
"resolved": "https://registry.npmjs.org/react-router/-/react-router-7.9.6.tgz",
|
|
2249
|
+
"integrity": "sha512-Y1tUp8clYRXpfPITyuifmSoE2vncSME18uVLgaqyxh9H35JWpIfzHo+9y3Fzh5odk/jxPW29IgLgzcdwxGqyNA==",
|
|
2250
|
+
"license": "MIT",
|
|
2251
|
+
"dependencies": {
|
|
2252
|
+
"cookie": "^1.0.1",
|
|
2253
|
+
"set-cookie-parser": "^2.6.0"
|
|
2254
|
+
},
|
|
2255
|
+
"engines": {
|
|
2256
|
+
"node": ">=20.0.0"
|
|
2257
|
+
},
|
|
2258
|
+
"peerDependencies": {
|
|
2259
|
+
"react": ">=18",
|
|
2260
|
+
"react-dom": ">=18"
|
|
2261
|
+
},
|
|
2262
|
+
"peerDependenciesMeta": {
|
|
2263
|
+
"react-dom": {
|
|
2264
|
+
"optional": true
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
},
|
|
2268
|
+
"node_modules/react-router-dom": {
|
|
2269
|
+
"version": "7.9.6",
|
|
2270
|
+
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.9.6.tgz",
|
|
2271
|
+
"integrity": "sha512-2MkC2XSXq6HjGcihnx1s0DBWQETI4mlis4Ux7YTLvP67xnGxCvq+BcCQSO81qQHVUTM1V53tl4iVVaY5sReCOA==",
|
|
2272
|
+
"license": "MIT",
|
|
2273
|
+
"dependencies": {
|
|
2274
|
+
"react-router": "7.9.6"
|
|
2275
|
+
},
|
|
2276
|
+
"engines": {
|
|
2277
|
+
"node": ">=20.0.0"
|
|
2278
|
+
},
|
|
2279
|
+
"peerDependencies": {
|
|
2280
|
+
"react": ">=18",
|
|
2281
|
+
"react-dom": ">=18"
|
|
2282
|
+
}
|
|
2283
|
+
},
|
|
2246
2284
|
"node_modules/read-cache": {
|
|
2247
2285
|
"version": "1.0.0",
|
|
2248
2286
|
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
|
|
@@ -2365,13 +2403,10 @@
|
|
|
2365
2403
|
}
|
|
2366
2404
|
},
|
|
2367
2405
|
"node_modules/scheduler": {
|
|
2368
|
-
"version": "0.
|
|
2369
|
-
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.
|
|
2370
|
-
"integrity": "sha512-
|
|
2371
|
-
"license": "MIT"
|
|
2372
|
-
"dependencies": {
|
|
2373
|
-
"loose-envify": "^1.1.0"
|
|
2374
|
-
}
|
|
2406
|
+
"version": "0.27.0",
|
|
2407
|
+
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
|
|
2408
|
+
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
|
|
2409
|
+
"license": "MIT"
|
|
2375
2410
|
},
|
|
2376
2411
|
"node_modules/semver": {
|
|
2377
2412
|
"version": "6.3.1",
|
|
@@ -2383,6 +2418,12 @@
|
|
|
2383
2418
|
"semver": "bin/semver.js"
|
|
2384
2419
|
}
|
|
2385
2420
|
},
|
|
2421
|
+
"node_modules/set-cookie-parser": {
|
|
2422
|
+
"version": "2.7.2",
|
|
2423
|
+
"resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
|
|
2424
|
+
"integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
|
|
2425
|
+
"license": "MIT"
|
|
2426
|
+
},
|
|
2386
2427
|
"node_modules/source-map-js": {
|
|
2387
2428
|
"version": "1.2.1",
|
|
2388
2429
|
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
package/template/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "PageBuilder-react-template",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -12,24 +12,25 @@
|
|
|
12
12
|
"react-dom": "^19.2.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
+
"clsx": "^2.1.0",
|
|
16
|
+
"framer-motion": "^12.23.24",
|
|
17
|
+
"lucide-react": "^0.555.0",
|
|
15
18
|
"react": "^19.2.0",
|
|
16
19
|
"react-dom": "^19.2.0",
|
|
17
20
|
"react-router": "^7.9.6",
|
|
18
|
-
"
|
|
19
|
-
"lucide-react": "^0.555.0",
|
|
20
|
-
"clsx": "^2.1.0",
|
|
21
|
+
"react-router-dom": "^7.9.6",
|
|
21
22
|
"tailwind-merge": "^2.2.1"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@vitejs/plugin-react": "^4.2.1",
|
|
25
|
-
"
|
|
26
|
-
"tailwindcss": "^3.4.1",
|
|
26
|
+
"autoprefixer": "^10.4.17",
|
|
27
27
|
"postcss": "^8.4.35",
|
|
28
|
-
"
|
|
28
|
+
"tailwindcss": "^3.4.1",
|
|
29
|
+
"vite": "^5.1.4"
|
|
29
30
|
},
|
|
30
31
|
"optionalDependencies": {
|
|
32
|
+
"animate.css": "^4.1.1",
|
|
31
33
|
"gsap": "^3.12.5",
|
|
32
|
-
"lottie-web": "^5.12.2"
|
|
33
|
-
"animate.css": "^4.1.1"
|
|
34
|
+
"lottie-web": "^5.12.2"
|
|
34
35
|
}
|
|
35
36
|
}
|
package/template/src/App.jsx
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
// 必须使用 HashRouter 路由,不能使用别的 Router
|
|
2
|
+
import { Routes, Route, HashRouter as Router } from 'react-router'
|
|
2
3
|
import Home from './pages/Home'
|
|
3
4
|
|
|
4
5
|
function App() {
|
|
5
6
|
return (
|
|
6
7
|
<div className="min-h-screen">
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
8
|
+
<Router>
|
|
9
|
+
<Routes>
|
|
10
|
+
<Route path="/" element={<Home />} />
|
|
11
|
+
</Routes>
|
|
12
|
+
</Router>
|
|
10
13
|
</div>
|
|
11
14
|
)
|
|
12
15
|
}
|
package/template/src/main.jsx
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import ReactDOM from 'react-dom/client'
|
|
3
|
-
import { HashRouter } from 'react-router'
|
|
4
3
|
import App from './App.jsx'
|
|
5
4
|
import './index.css'
|
|
6
5
|
|
|
7
6
|
ReactDOM.createRoot(document.getElementById('root')).render(
|
|
8
7
|
<React.StrictMode>
|
|
9
|
-
<
|
|
10
|
-
<App />
|
|
11
|
-
</HashRouter>
|
|
8
|
+
<App />
|
|
12
9
|
</React.StrictMode>,
|
|
13
10
|
)
|