@cedarjs/router 0.1.1 → 0.2.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/cjs/splash-page.d.ts.map +1 -1
- package/dist/cjs/splash-page.js +12 -28
- package/dist/splash-page.d.ts.map +1 -1
- package/dist/splash-page.js +12 -28
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splash-page.d.ts","sourceRoot":"","sources":["../../src/splash-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,KAAK,cAAc,GAAG,MAAM,CAAA;AAC5B,UAAU,eAAe;IACvB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,iBAAiB,EAAE,MAAM,CACvB,cAAc,EACd;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,cAAc,CAAA;KAAE,CAC9C,CAAA;CACF;AAED,eAAO,MAAM,UAAU,0DAGpB,eAAe,
|
|
1
|
+
{"version":3,"file":"splash-page.d.ts","sourceRoot":"","sources":["../../src/splash-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,KAAK,cAAc,GAAG,MAAM,CAAA;AAC5B,UAAU,eAAe;IACvB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,iBAAiB,EAAE,MAAM,CACvB,cAAc,EACd;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,cAAc,CAAA;KAAE,CAC9C,CAAA;CACF;AAED,eAAO,MAAM,UAAU,0DAGpB,eAAe,sBAifjB,CAAA"}
|
package/dist/cjs/splash-page.js
CHANGED
|
@@ -325,7 +325,7 @@ const SplashPage = ({
|
|
|
325
325
|
"a",
|
|
326
326
|
{
|
|
327
327
|
className: "resource-link",
|
|
328
|
-
href: "https://
|
|
328
|
+
href: "https://cedarjs.com/docs/tutorial",
|
|
329
329
|
target: "_blank",
|
|
330
330
|
rel: "noreferrer"
|
|
331
331
|
}
|
|
@@ -343,7 +343,7 @@ const SplashPage = ({
|
|
|
343
343
|
"a",
|
|
344
344
|
{
|
|
345
345
|
className: "resource-link",
|
|
346
|
-
href: "https://
|
|
346
|
+
href: "https://cedarjs.com/docs",
|
|
347
347
|
target: "_blank",
|
|
348
348
|
rel: "noreferrer"
|
|
349
349
|
}
|
|
@@ -363,11 +363,11 @@ const SplashPage = ({
|
|
|
363
363
|
}
|
|
364
364
|
),
|
|
365
365
|
/* @__PURE__ */ import_react.default.createElement("path", { d: "M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 4h2v5l-1-.75L9 9V4zm9 16H6V4h1v9l3-2.25L13 13V4h5v16z" })
|
|
366
|
-
), /* @__PURE__ */ import_react.default.createElement("h2", { className: "resource-title" }, "Docs and How To's")), /* @__PURE__ */ import_react.default.createElement("p", { className: "resource-description" }, "Find in-depth information about
|
|
366
|
+
), /* @__PURE__ */ import_react.default.createElement("h2", { className: "resource-title" }, "Docs and How To's")), /* @__PURE__ */ import_react.default.createElement("p", { className: "resource-description" }, "Find in-depth information about CedarJS features and API.")), /* @__PURE__ */ import_react.default.createElement("div", { className: "resource" }, /* @__PURE__ */ import_react.default.createElement(
|
|
367
367
|
"a",
|
|
368
368
|
{
|
|
369
369
|
className: "resource-link",
|
|
370
|
-
href: "https://
|
|
370
|
+
href: "https://cedarjs.com/discord",
|
|
371
371
|
target: "_blank",
|
|
372
372
|
rel: "noreferrer"
|
|
373
373
|
}
|
|
@@ -385,7 +385,7 @@ const SplashPage = ({
|
|
|
385
385
|
"a",
|
|
386
386
|
{
|
|
387
387
|
className: "resource-link",
|
|
388
|
-
href: "https://
|
|
388
|
+
href: "https://cedarjs.com/docs/contributing",
|
|
389
389
|
target: "_blank",
|
|
390
390
|
rel: "noreferrer"
|
|
391
391
|
}
|
|
@@ -405,14 +405,14 @@ const SplashPage = ({
|
|
|
405
405
|
}
|
|
406
406
|
)),
|
|
407
407
|
/* @__PURE__ */ import_react.default.createElement("g", null, /* @__PURE__ */ import_react.default.createElement("path", { d: "M17.5,10.5c0.88,0,1.73,0.09,2.5,0.26V9.24C19.21,9.09,18.36,9,17.5,9c-1.28,0-2.46,0.16-3.5,0.47v1.57 C14.99,10.69,16.18,10.5,17.5,10.5z" }), /* @__PURE__ */ import_react.default.createElement("path", { d: "M17.5,13.16c0.88,0,1.73,0.09,2.5,0.26V11.9c-0.79-0.15-1.64-0.24-2.5-0.24c-1.28,0-2.46,0.16-3.5,0.47v1.57 C14.99,13.36,16.18,13.16,17.5,13.16z" }), /* @__PURE__ */ import_react.default.createElement("path", { d: "M17.5,15.83c0.88,0,1.73,0.09,2.5,0.26v-1.52c-0.79-0.15-1.64-0.24-2.5-0.24c-1.28,0-2.46,0.16-3.5,0.47v1.57 C14.99,16.02,16.18,15.83,17.5,15.83z" }))
|
|
408
|
-
), /* @__PURE__ */ import_react.default.createElement("h2", { className: "resource-title" }, "Become a Contributor")), /* @__PURE__ */ import_react.default.createElement("p", { className: "resource-description" }, "Love
|
|
408
|
+
), /* @__PURE__ */ import_react.default.createElement("h2", { className: "resource-title" }, "Become a Contributor")), /* @__PURE__ */ import_react.default.createElement("p", { className: "resource-description" }, "Love CedarJS and want to get involved? Contribute today!"))))), /* @__PURE__ */ import_react.default.createElement("section", { className: "footer" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "social" }, /* @__PURE__ */ import_react.default.createElement(
|
|
409
409
|
"a",
|
|
410
410
|
{
|
|
411
411
|
className: "social-link",
|
|
412
412
|
href: "https://github.com/cedarjs/cedar",
|
|
413
413
|
target: "_blank",
|
|
414
414
|
rel: "noopener noreferrer",
|
|
415
|
-
"aria-label": "Go to the
|
|
415
|
+
"aria-label": "Go to the CedarJS GitHub repo"
|
|
416
416
|
},
|
|
417
417
|
/* @__PURE__ */ import_react.default.createElement("svg", { viewBox: "0 0 32 32", focusable: "false" }, /* @__PURE__ */ import_react.default.createElement(
|
|
418
418
|
"path",
|
|
@@ -425,10 +425,10 @@ const SplashPage = ({
|
|
|
425
425
|
"a",
|
|
426
426
|
{
|
|
427
427
|
className: "social-link",
|
|
428
|
-
href: "https://
|
|
428
|
+
href: "https://x.com/cedarjs",
|
|
429
429
|
target: "_blank",
|
|
430
430
|
rel: "noopener noreferrer",
|
|
431
|
-
"aria-label": "Go to the
|
|
431
|
+
"aria-label": "Go to the CedarJS Twitter/X profile"
|
|
432
432
|
},
|
|
433
433
|
/* @__PURE__ */ import_react.default.createElement("svg", { viewBox: "0 0 34 34", focusable: "false" }, /* @__PURE__ */ import_react.default.createElement(
|
|
434
434
|
"path",
|
|
@@ -441,26 +441,10 @@ const SplashPage = ({
|
|
|
441
441
|
"a",
|
|
442
442
|
{
|
|
443
443
|
className: "social-link",
|
|
444
|
-
href: "https://
|
|
444
|
+
href: "https://cedarjs.com/discord",
|
|
445
445
|
target: "_blank",
|
|
446
446
|
rel: "noopener noreferrer",
|
|
447
|
-
"aria-label": "Go to the
|
|
448
|
-
},
|
|
449
|
-
/* @__PURE__ */ import_react.default.createElement("svg", { viewBox: "0 0 32 32", focusable: "false" }, /* @__PURE__ */ import_react.default.createElement(
|
|
450
|
-
"path",
|
|
451
|
-
{
|
|
452
|
-
fill: "currentColor",
|
|
453
|
-
d: "M16.1357143,0 C7.37857143,0 0,7.03571429 0,15.7214286 C0,16 0.00714285714,32 0.00714285714,32 L16.1357143,31.9857143 C24.9,31.9857143 32,24.6785714 32,15.9928571 C32,7.30714286 24.9,0 16.1357143,0 Z M16,25.1428571 C14.6142857,25.1428571 13.2928571,24.8357143 12.1142857,24.2785714 L6.32142857,25.7142857 L7.95714286,20.3571429 C7.25714286,19.0642857 6.85714286,17.5785714 6.85714286,16 C6.85714286,10.95 10.95,6.85714286 16,6.85714286 C21.05,6.85714286 25.1428571,10.95 25.1428571,16 C25.1428571,21.05 21.05,25.1428571 16,25.1428571 Z"
|
|
454
|
-
}
|
|
455
|
-
))
|
|
456
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
457
|
-
"a",
|
|
458
|
-
{
|
|
459
|
-
className: "social-link",
|
|
460
|
-
href: "https://discord.gg/redwoodjs",
|
|
461
|
-
target: "_blank",
|
|
462
|
-
rel: "noopener noreferrer",
|
|
463
|
-
"aria-label": "Go to the RedwoodJS Discord server"
|
|
447
|
+
"aria-label": "Go to the CedarJS Discord server"
|
|
464
448
|
},
|
|
465
449
|
/* @__PURE__ */ import_react.default.createElement("svg", { viewBox: "0 0 36 36", focusable: "false" }, /* @__PURE__ */ import_react.default.createElement(
|
|
466
450
|
"path",
|
|
@@ -500,7 +484,7 @@ const useVersion = () => {
|
|
|
500
484
|
const versionData = await response.json();
|
|
501
485
|
setVersion(versionData?.data?.redwood?.version || null);
|
|
502
486
|
} catch (err) {
|
|
503
|
-
console.error("Unable to get
|
|
487
|
+
console.error("Unable to get CedarJS version: ", err);
|
|
504
488
|
}
|
|
505
489
|
}
|
|
506
490
|
if (!globalThis.fetch) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splash-page.d.ts","sourceRoot":"","sources":["../src/splash-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,KAAK,cAAc,GAAG,MAAM,CAAA;AAC5B,UAAU,eAAe;IACvB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,iBAAiB,EAAE,MAAM,CACvB,cAAc,EACd;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,cAAc,CAAA;KAAE,CAC9C,CAAA;CACF;AAED,eAAO,MAAM,UAAU,0DAGpB,eAAe,
|
|
1
|
+
{"version":3,"file":"splash-page.d.ts","sourceRoot":"","sources":["../src/splash-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,KAAK,cAAc,GAAG,MAAM,CAAA;AAC5B,UAAU,eAAe;IACvB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,iBAAiB,EAAE,MAAM,CACvB,cAAc,EACd;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,cAAc,CAAA;KAAE,CAC9C,CAAA;CACF;AAED,eAAO,MAAM,UAAU,0DAGpB,eAAe,sBAifjB,CAAA"}
|
package/dist/splash-page.js
CHANGED
|
@@ -292,7 +292,7 @@ const SplashPage = ({
|
|
|
292
292
|
"a",
|
|
293
293
|
{
|
|
294
294
|
className: "resource-link",
|
|
295
|
-
href: "https://
|
|
295
|
+
href: "https://cedarjs.com/docs/tutorial",
|
|
296
296
|
target: "_blank",
|
|
297
297
|
rel: "noreferrer"
|
|
298
298
|
}
|
|
@@ -310,7 +310,7 @@ const SplashPage = ({
|
|
|
310
310
|
"a",
|
|
311
311
|
{
|
|
312
312
|
className: "resource-link",
|
|
313
|
-
href: "https://
|
|
313
|
+
href: "https://cedarjs.com/docs",
|
|
314
314
|
target: "_blank",
|
|
315
315
|
rel: "noreferrer"
|
|
316
316
|
}
|
|
@@ -330,11 +330,11 @@ const SplashPage = ({
|
|
|
330
330
|
}
|
|
331
331
|
),
|
|
332
332
|
/* @__PURE__ */ React.createElement("path", { d: "M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 4h2v5l-1-.75L9 9V4zm9 16H6V4h1v9l3-2.25L13 13V4h5v16z" })
|
|
333
|
-
), /* @__PURE__ */ React.createElement("h2", { className: "resource-title" }, "Docs and How To's")), /* @__PURE__ */ React.createElement("p", { className: "resource-description" }, "Find in-depth information about
|
|
333
|
+
), /* @__PURE__ */ React.createElement("h2", { className: "resource-title" }, "Docs and How To's")), /* @__PURE__ */ React.createElement("p", { className: "resource-description" }, "Find in-depth information about CedarJS features and API.")), /* @__PURE__ */ React.createElement("div", { className: "resource" }, /* @__PURE__ */ React.createElement(
|
|
334
334
|
"a",
|
|
335
335
|
{
|
|
336
336
|
className: "resource-link",
|
|
337
|
-
href: "https://
|
|
337
|
+
href: "https://cedarjs.com/discord",
|
|
338
338
|
target: "_blank",
|
|
339
339
|
rel: "noreferrer"
|
|
340
340
|
}
|
|
@@ -352,7 +352,7 @@ const SplashPage = ({
|
|
|
352
352
|
"a",
|
|
353
353
|
{
|
|
354
354
|
className: "resource-link",
|
|
355
|
-
href: "https://
|
|
355
|
+
href: "https://cedarjs.com/docs/contributing",
|
|
356
356
|
target: "_blank",
|
|
357
357
|
rel: "noreferrer"
|
|
358
358
|
}
|
|
@@ -372,14 +372,14 @@ const SplashPage = ({
|
|
|
372
372
|
}
|
|
373
373
|
)),
|
|
374
374
|
/* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M17.5,10.5c0.88,0,1.73,0.09,2.5,0.26V9.24C19.21,9.09,18.36,9,17.5,9c-1.28,0-2.46,0.16-3.5,0.47v1.57 C14.99,10.69,16.18,10.5,17.5,10.5z" }), /* @__PURE__ */ React.createElement("path", { d: "M17.5,13.16c0.88,0,1.73,0.09,2.5,0.26V11.9c-0.79-0.15-1.64-0.24-2.5-0.24c-1.28,0-2.46,0.16-3.5,0.47v1.57 C14.99,13.36,16.18,13.16,17.5,13.16z" }), /* @__PURE__ */ React.createElement("path", { d: "M17.5,15.83c0.88,0,1.73,0.09,2.5,0.26v-1.52c-0.79-0.15-1.64-0.24-2.5-0.24c-1.28,0-2.46,0.16-3.5,0.47v1.57 C14.99,16.02,16.18,15.83,17.5,15.83z" }))
|
|
375
|
-
), /* @__PURE__ */ React.createElement("h2", { className: "resource-title" }, "Become a Contributor")), /* @__PURE__ */ React.createElement("p", { className: "resource-description" }, "Love
|
|
375
|
+
), /* @__PURE__ */ React.createElement("h2", { className: "resource-title" }, "Become a Contributor")), /* @__PURE__ */ React.createElement("p", { className: "resource-description" }, "Love CedarJS and want to get involved? Contribute today!"))))), /* @__PURE__ */ React.createElement("section", { className: "footer" }, /* @__PURE__ */ React.createElement("div", { className: "social" }, /* @__PURE__ */ React.createElement(
|
|
376
376
|
"a",
|
|
377
377
|
{
|
|
378
378
|
className: "social-link",
|
|
379
379
|
href: "https://github.com/cedarjs/cedar",
|
|
380
380
|
target: "_blank",
|
|
381
381
|
rel: "noopener noreferrer",
|
|
382
|
-
"aria-label": "Go to the
|
|
382
|
+
"aria-label": "Go to the CedarJS GitHub repo"
|
|
383
383
|
},
|
|
384
384
|
/* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 32 32", focusable: "false" }, /* @__PURE__ */ React.createElement(
|
|
385
385
|
"path",
|
|
@@ -392,10 +392,10 @@ const SplashPage = ({
|
|
|
392
392
|
"a",
|
|
393
393
|
{
|
|
394
394
|
className: "social-link",
|
|
395
|
-
href: "https://
|
|
395
|
+
href: "https://x.com/cedarjs",
|
|
396
396
|
target: "_blank",
|
|
397
397
|
rel: "noopener noreferrer",
|
|
398
|
-
"aria-label": "Go to the
|
|
398
|
+
"aria-label": "Go to the CedarJS Twitter/X profile"
|
|
399
399
|
},
|
|
400
400
|
/* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 34 34", focusable: "false" }, /* @__PURE__ */ React.createElement(
|
|
401
401
|
"path",
|
|
@@ -408,26 +408,10 @@ const SplashPage = ({
|
|
|
408
408
|
"a",
|
|
409
409
|
{
|
|
410
410
|
className: "social-link",
|
|
411
|
-
href: "https://
|
|
411
|
+
href: "https://cedarjs.com/discord",
|
|
412
412
|
target: "_blank",
|
|
413
413
|
rel: "noopener noreferrer",
|
|
414
|
-
"aria-label": "Go to the
|
|
415
|
-
},
|
|
416
|
-
/* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 32 32", focusable: "false" }, /* @__PURE__ */ React.createElement(
|
|
417
|
-
"path",
|
|
418
|
-
{
|
|
419
|
-
fill: "currentColor",
|
|
420
|
-
d: "M16.1357143,0 C7.37857143,0 0,7.03571429 0,15.7214286 C0,16 0.00714285714,32 0.00714285714,32 L16.1357143,31.9857143 C24.9,31.9857143 32,24.6785714 32,15.9928571 C32,7.30714286 24.9,0 16.1357143,0 Z M16,25.1428571 C14.6142857,25.1428571 13.2928571,24.8357143 12.1142857,24.2785714 L6.32142857,25.7142857 L7.95714286,20.3571429 C7.25714286,19.0642857 6.85714286,17.5785714 6.85714286,16 C6.85714286,10.95 10.95,6.85714286 16,6.85714286 C21.05,6.85714286 25.1428571,10.95 25.1428571,16 C25.1428571,21.05 21.05,25.1428571 16,25.1428571 Z"
|
|
421
|
-
}
|
|
422
|
-
))
|
|
423
|
-
), /* @__PURE__ */ React.createElement(
|
|
424
|
-
"a",
|
|
425
|
-
{
|
|
426
|
-
className: "social-link",
|
|
427
|
-
href: "https://discord.gg/redwoodjs",
|
|
428
|
-
target: "_blank",
|
|
429
|
-
rel: "noopener noreferrer",
|
|
430
|
-
"aria-label": "Go to the RedwoodJS Discord server"
|
|
414
|
+
"aria-label": "Go to the CedarJS Discord server"
|
|
431
415
|
},
|
|
432
416
|
/* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 36 36", focusable: "false" }, /* @__PURE__ */ React.createElement(
|
|
433
417
|
"path",
|
|
@@ -467,7 +451,7 @@ const useVersion = () => {
|
|
|
467
451
|
const versionData = await response.json();
|
|
468
452
|
setVersion(versionData?.data?.redwood?.version || null);
|
|
469
453
|
} catch (err) {
|
|
470
|
-
console.error("Unable to get
|
|
454
|
+
console.error("Unable to get CedarJS version: ", err);
|
|
471
455
|
}
|
|
472
456
|
}
|
|
473
457
|
if (!globalThis.fetch) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"test:watch": "vitest watch"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@babel/runtime-corejs3": "7.27.
|
|
98
|
-
"@cedarjs/auth": "0.
|
|
99
|
-
"@cedarjs/server-store": "0.
|
|
97
|
+
"@babel/runtime-corejs3": "7.27.6",
|
|
98
|
+
"@cedarjs/auth": "0.2.0",
|
|
99
|
+
"@cedarjs/server-store": "0.2.0",
|
|
100
100
|
"core-js": "3.42.0",
|
|
101
101
|
"react": "18.3.1",
|
|
102
102
|
"react-dom": "18.3.1"
|
|
@@ -105,16 +105,16 @@
|
|
|
105
105
|
"@arethetypeswrong/cli": "0.18.1",
|
|
106
106
|
"@babel/cli": "7.27.2",
|
|
107
107
|
"@babel/core": "^7.26.10",
|
|
108
|
-
"@cedarjs/framework-tools": "0.
|
|
108
|
+
"@cedarjs/framework-tools": "0.2.0",
|
|
109
109
|
"@testing-library/jest-dom": "6.5.0",
|
|
110
110
|
"@types/react": "^18.2.55",
|
|
111
111
|
"@types/react-dom": "^18.2.19",
|
|
112
112
|
"concurrently": "8.2.2",
|
|
113
113
|
"publint": "0.3.12",
|
|
114
114
|
"tstyche": "3.0.0",
|
|
115
|
-
"tsx": "4.19.
|
|
115
|
+
"tsx": "4.19.4",
|
|
116
116
|
"typescript": "5.6.2",
|
|
117
|
-
"vitest": "2.
|
|
117
|
+
"vitest": "3.2.4"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
120
|
"react": "18.3.1",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"publishConfig": {
|
|
124
124
|
"access": "public"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "568c8f994789688a43c5f57181505d7461417b0f"
|
|
127
127
|
}
|