@cimplify/cli 0.6.15 → 0.6.16
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/{add-6KEKFXOW.mjs → add-BBVSJ5ZJ.mjs} +1 -1
- package/dist/{chunk-DEWCHGWU.mjs → chunk-F5EGUNQZ.mjs} +25 -25
- package/dist/{chunk-JLSDFVML.mjs → chunk-GL2J7272.mjs} +1 -1
- package/dist/{chunk-OSS47KZP.mjs → chunk-KCKMGRII.mjs} +2 -2
- package/dist/dispatcher.mjs +9 -9
- package/dist/{doctor-WL25JRS3.mjs → doctor-T6NA3EMW.mjs} +2 -2
- package/dist/{explain-NY5A533M.mjs → explain-22NV6OL6.mjs} +2 -2
- package/dist/{introspect-J7GVKQK7.mjs → introspect-QOW24PJF.mjs} +2 -2
- package/dist/{list-FXOFYX4H.mjs → list-JHUIIMC2.mjs} +1 -1
- package/dist/{update-WNZKECFJ.mjs → update-IOMLDQEN.mjs} +1 -1
- package/package.json +2 -2
- package/templates/storefront-auto/app/categories/[slug]/page.tsx +2 -2
- package/templates/storefront-auto/app/collections/[slug]/page.tsx +2 -2
- package/templates/storefront-auto/app/llms.txt/route.ts +2 -2
- package/templates/storefront-auto/app/page.tsx +2 -2
- package/templates/storefront-auto/app/products/[slug]/page.tsx +2 -2
- package/templates/storefront-auto/app/shop/page.tsx +2 -2
- package/templates/storefront-auto/app/sitemap-page/page.tsx +2 -2
- package/templates/storefront-auto/bun.lock +2 -2
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/app/categories/[slug]/page.tsx +2 -2
- package/templates/storefront-bakery/app/collections/[slug]/page.tsx +2 -2
- package/templates/storefront-bakery/app/llms.txt/route.ts +2 -2
- package/templates/storefront-bakery/app/page.tsx +2 -2
- package/templates/storefront-bakery/app/shop/page.tsx +2 -2
- package/templates/storefront-bakery/app/sitemap-page/page.tsx +2 -2
- package/templates/storefront-bakery/bun.lock +2 -2
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/app/categories/[slug]/page.tsx +2 -2
- package/templates/storefront-fashion/app/collections/[slug]/page.tsx +2 -2
- package/templates/storefront-fashion/app/llms.txt/route.ts +2 -2
- package/templates/storefront-fashion/app/page.tsx +2 -2
- package/templates/storefront-fashion/app/products/[slug]/page.tsx +2 -2
- package/templates/storefront-fashion/app/shop/page.tsx +2 -2
- package/templates/storefront-fashion/app/sitemap-page/page.tsx +2 -2
- package/templates/storefront-fashion/bun.lock +2 -2
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/app/categories/[slug]/page.tsx +2 -2
- package/templates/storefront-grocery/app/collections/[slug]/page.tsx +2 -2
- package/templates/storefront-grocery/app/llms.txt/route.ts +2 -2
- package/templates/storefront-grocery/app/page.tsx +2 -2
- package/templates/storefront-grocery/app/shop/page.tsx +2 -2
- package/templates/storefront-grocery/app/sitemap-page/page.tsx +2 -2
- package/templates/storefront-grocery/bun.lock +2 -2
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/app/categories/[slug]/page.tsx +2 -2
- package/templates/storefront-pharmacy/app/collections/[slug]/page.tsx +2 -2
- package/templates/storefront-pharmacy/app/llms.txt/route.ts +2 -2
- package/templates/storefront-pharmacy/app/page.tsx +2 -2
- package/templates/storefront-pharmacy/app/products/[slug]/page.tsx +2 -2
- package/templates/storefront-pharmacy/app/shop/page.tsx +2 -2
- package/templates/storefront-pharmacy/app/sitemap-page/page.tsx +2 -2
- package/templates/storefront-pharmacy/bun.lock +2 -2
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/app/categories/[slug]/page.tsx +2 -2
- package/templates/storefront-restaurant/app/collections/[slug]/page.tsx +2 -2
- package/templates/storefront-restaurant/app/llms.txt/route.ts +2 -2
- package/templates/storefront-restaurant/app/page.tsx +2 -2
- package/templates/storefront-restaurant/app/reservations/page.tsx +2 -2
- package/templates/storefront-restaurant/app/shop/page.tsx +2 -2
- package/templates/storefront-restaurant/app/sitemap-page/page.tsx +2 -2
- package/templates/storefront-restaurant/bun.lock +2 -2
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/app/categories/[slug]/page.tsx +2 -2
- package/templates/storefront-retail/app/collections/[slug]/page.tsx +2 -2
- package/templates/storefront-retail/app/llms.txt/route.ts +2 -2
- package/templates/storefront-retail/app/page.tsx +2 -2
- package/templates/storefront-retail/app/products/[slug]/page.tsx +2 -2
- package/templates/storefront-retail/app/shop/page.tsx +2 -2
- package/templates/storefront-retail/app/sitemap-page/page.tsx +2 -2
- package/templates/storefront-retail/bun.lock +2 -2
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/app/book/page.tsx +2 -2
- package/templates/storefront-services/app/categories/[slug]/page.tsx +2 -2
- package/templates/storefront-services/app/collections/[slug]/page.tsx +2 -2
- package/templates/storefront-services/app/llms.txt/route.ts +2 -2
- package/templates/storefront-services/app/page.tsx +2 -2
- package/templates/storefront-services/app/shop/page.tsx +2 -2
- package/templates/storefront-services/app/sitemap-page/page.tsx +2 -2
- package/templates/storefront-services/bun.lock +2 -2
- package/templates/storefront-services/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "__STOREFRONT_NAME__",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@cimplify/sdk": "^0.49.
|
|
8
|
+
"@cimplify/sdk": "^0.49.2",
|
|
9
9
|
"next": "^16.2.6",
|
|
10
10
|
"react": "^19.0.0",
|
|
11
11
|
"react-dom": "^19.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
"@base-ui/utils": ["@base-ui/utils@0.2.9", "", { "dependencies": { "@babel/runtime": "^7.29.2", "@floating-ui/utils": "^0.2.11", "reselect": "^5.1.1", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "@types/react": "^17 || ^18 || ^19", "react": "^17 || ^18 || ^19", "react-dom": "^17 || ^18 || ^19" }, "optionalPeers": ["@types/react"] }, "sha512-x/PDDCYzoqPpjrdyb3VcyylTI2IjUXEtYDGi5foh7KsnmNJIIaVwA2GLgDH1dps1GgXiJbA60hM+AyuTfQzIvw=="],
|
|
33
33
|
|
|
34
|
-
"@cimplify/sdk": ["@cimplify/sdk@0.49.
|
|
34
|
+
"@cimplify/sdk": ["@cimplify/sdk@0.49.2", "", { "dependencies": { "@base-ui/react": "^1.4.1", "clsx": "^2.1.1", "date-fns": "^4.1.0", "libphonenumber-js": "1.12.41", "react-day-picker": "^9.14.0", "tailwind-merge": "^3.5.0", "zod": "^4.4.3" }, "peerDependencies": { "@paystack/inline-js": "^2.22.8", "msw": ">=2.0.0", "react": ">=17.0.0", "vitest": ">=2.0.0" }, "optionalPeers": ["@paystack/inline-js", "msw", "react", "vitest"], "bin": { "cimplify-mock": "dist/mock/cli.mjs" } }, "sha512-W/PtzLztRYOPo4LCKmTvejfz56CQZUflXSdSshYl6ft1q17BIy8bnzfplbYnojiQb5OiCWr0FAzG68S2tvO93w=="],
|
|
35
35
|
|
|
36
36
|
"@date-fns/tz": ["@date-fns/tz@1.4.1", "", {}, "sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA=="],
|
|
37
37
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "next";
|
|
2
2
|
import { Suspense } from "react";
|
|
3
3
|
import { cacheTag, cacheLife } from "next/cache";
|
|
4
|
-
import { getServerClient, tags, type Product } from "@cimplify/sdk/server";
|
|
4
|
+
import { CACHE_LIFE_DEFAULT, getServerClient, tags, type Product } from "@cimplify/sdk/server";
|
|
5
5
|
import { BookClient } from "./book-client";
|
|
6
6
|
import { brand } from "@/lib/brand";
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ export const metadata: Metadata = {
|
|
|
13
13
|
async function getTreatments(): Promise<Product[]> {
|
|
14
14
|
"use cache";
|
|
15
15
|
cacheTag(tags.products());
|
|
16
|
-
cacheLife(
|
|
16
|
+
cacheLife(CACHE_LIFE_DEFAULT);
|
|
17
17
|
|
|
18
18
|
const client = getServerClient();
|
|
19
19
|
const r = await client.catalogue.getProducts({ limit: 50 });
|
|
@@ -4,7 +4,7 @@ import Link from "next/link";
|
|
|
4
4
|
import { notFound } from "next/navigation";
|
|
5
5
|
import { cacheTag, cacheLife } from "next/cache";
|
|
6
6
|
import {
|
|
7
|
-
getServerClient,
|
|
7
|
+
CACHE_LIFE_DEFAULT, getServerClient,
|
|
8
8
|
tags,
|
|
9
9
|
type Category,
|
|
10
10
|
type Product,
|
|
@@ -20,7 +20,7 @@ interface CategoryData {
|
|
|
20
20
|
async function getCategory(slug: string): Promise<CategoryData | null> {
|
|
21
21
|
"use cache";
|
|
22
22
|
cacheTag(tags.categories());
|
|
23
|
-
cacheLife(
|
|
23
|
+
cacheLife(CACHE_LIFE_DEFAULT);
|
|
24
24
|
|
|
25
25
|
const client = getServerClient();
|
|
26
26
|
const catRes = await client.catalogue.getCategoryBySlug(slug);
|
|
@@ -4,7 +4,7 @@ import Link from "next/link";
|
|
|
4
4
|
import { notFound } from "next/navigation";
|
|
5
5
|
import { cacheTag, cacheLife } from "next/cache";
|
|
6
6
|
import {
|
|
7
|
-
getServerClient,
|
|
7
|
+
CACHE_LIFE_DEFAULT, getServerClient,
|
|
8
8
|
tags,
|
|
9
9
|
type Collection,
|
|
10
10
|
type Product,
|
|
@@ -20,7 +20,7 @@ interface CollectionData {
|
|
|
20
20
|
async function getCollection(slug: string): Promise<CollectionData | null> {
|
|
21
21
|
"use cache";
|
|
22
22
|
cacheTag(tags.collections());
|
|
23
|
-
cacheLife(
|
|
23
|
+
cacheLife(CACHE_LIFE_DEFAULT);
|
|
24
24
|
|
|
25
25
|
const client = getServerClient();
|
|
26
26
|
const colRes = await client.catalogue.getCollectionBySlug(slug);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { cacheTag, cacheLife } from "next/cache";
|
|
2
|
-
import { getServerClient, tags, type Product } from "@cimplify/sdk/server";
|
|
2
|
+
import { CACHE_LIFE_DEFAULT, getServerClient, tags, type Product } from "@cimplify/sdk/server";
|
|
3
3
|
import { brand } from "@/lib/brand";
|
|
4
4
|
import { getSiteUrl } from "@/lib/site-url";
|
|
5
5
|
|
|
6
6
|
async function buildLlmsTxt(SITE_URL: string): Promise<string> {
|
|
7
7
|
"use cache";
|
|
8
8
|
cacheTag(tags.products(), tags.categories(), tags.collections());
|
|
9
|
-
cacheLife(
|
|
9
|
+
cacheLife(CACHE_LIFE_DEFAULT);
|
|
10
10
|
|
|
11
11
|
const client = getServerClient();
|
|
12
12
|
const [productsRes, categoriesRes, collectionsRes] = await Promise.all([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "next";
|
|
2
2
|
import { Suspense } from "react";
|
|
3
3
|
import { cacheTag, cacheLife } from "next/cache";
|
|
4
|
-
import { getServerClient, tags, type Product } from "@cimplify/sdk/server";
|
|
4
|
+
import { CACHE_LIFE_DEFAULT, getServerClient, tags, type Product } from "@cimplify/sdk/server";
|
|
5
5
|
import { Hero } from "@/components/hero";
|
|
6
6
|
import { CollectionStrip } from "@/components/collection-strip";
|
|
7
7
|
import { CategoryGrid } from "@/components/category-grid";
|
|
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
|
|
|
15
15
|
async function getHomeData() {
|
|
16
16
|
"use cache";
|
|
17
17
|
cacheTag(tags.collections(), tags.categories(), tags.products());
|
|
18
|
-
cacheLife(
|
|
18
|
+
cacheLife(CACHE_LIFE_DEFAULT);
|
|
19
19
|
|
|
20
20
|
const client = getServerClient();
|
|
21
21
|
const [colRes, catRes] = await Promise.all([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Metadata } from "next";
|
|
2
2
|
import { cacheTag, cacheLife } from "next/cache";
|
|
3
|
-
import { getServerClient, tags } from "@cimplify/sdk/server";
|
|
3
|
+
import { CACHE_LIFE_DEFAULT, getServerClient, tags } from "@cimplify/sdk/server";
|
|
4
4
|
import { ShopClient } from "./shop-client";
|
|
5
5
|
import { brand } from "@/lib/brand";
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ export const metadata: Metadata = {
|
|
|
12
12
|
async function getShopData() {
|
|
13
13
|
"use cache";
|
|
14
14
|
cacheTag(tags.products(), tags.categories());
|
|
15
|
-
cacheLife(
|
|
15
|
+
cacheLife(CACHE_LIFE_DEFAULT);
|
|
16
16
|
|
|
17
17
|
const client = getServerClient();
|
|
18
18
|
const [p, c] = await Promise.all([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "next";
|
|
2
2
|
import Link from "next/link";
|
|
3
3
|
import { cacheTag, cacheLife } from "next/cache";
|
|
4
|
-
import { getServerClient, tags, type Product } from "@cimplify/sdk/server";
|
|
4
|
+
import { CACHE_LIFE_DEFAULT, getServerClient, tags, type Product } from "@cimplify/sdk/server";
|
|
5
5
|
import { brand } from "@/lib/brand";
|
|
6
6
|
|
|
7
7
|
export const metadata: Metadata = {
|
|
@@ -18,7 +18,7 @@ interface SitemapData {
|
|
|
18
18
|
async function getSitemap(): Promise<SitemapData> {
|
|
19
19
|
"use cache";
|
|
20
20
|
cacheTag(tags.products(), tags.categories(), tags.collections());
|
|
21
|
-
cacheLife(
|
|
21
|
+
cacheLife(CACHE_LIFE_DEFAULT);
|
|
22
22
|
|
|
23
23
|
const client = getServerClient();
|
|
24
24
|
const [pRes, cRes, colRes] = await Promise.all([
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "__STOREFRONT_NAME__",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@cimplify/sdk": "^0.49.
|
|
8
|
+
"@cimplify/sdk": "^0.49.2",
|
|
9
9
|
"next": "^16.2.6",
|
|
10
10
|
"react": "^19.0.0",
|
|
11
11
|
"react-dom": "^19.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
"@base-ui/utils": ["@base-ui/utils@0.2.9", "", { "dependencies": { "@babel/runtime": "^7.29.2", "@floating-ui/utils": "^0.2.11", "reselect": "^5.1.1", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "@types/react": "^17 || ^18 || ^19", "react": "^17 || ^18 || ^19", "react-dom": "^17 || ^18 || ^19" }, "optionalPeers": ["@types/react"] }, "sha512-x/PDDCYzoqPpjrdyb3VcyylTI2IjUXEtYDGi5foh7KsnmNJIIaVwA2GLgDH1dps1GgXiJbA60hM+AyuTfQzIvw=="],
|
|
33
33
|
|
|
34
|
-
"@cimplify/sdk": ["@cimplify/sdk@0.49.
|
|
34
|
+
"@cimplify/sdk": ["@cimplify/sdk@0.49.2", "", { "dependencies": { "@base-ui/react": "^1.4.1", "clsx": "^2.1.1", "date-fns": "^4.1.0", "libphonenumber-js": "1.12.41", "react-day-picker": "^9.14.0", "tailwind-merge": "^3.5.0", "zod": "^4.4.3" }, "peerDependencies": { "@paystack/inline-js": "^2.22.8", "msw": ">=2.0.0", "react": ">=17.0.0", "vitest": ">=2.0.0" }, "optionalPeers": ["@paystack/inline-js", "msw", "react", "vitest"], "bin": { "cimplify-mock": "dist/mock/cli.mjs" } }, "sha512-W/PtzLztRYOPo4LCKmTvejfz56CQZUflXSdSshYl6ft1q17BIy8bnzfplbYnojiQb5OiCWr0FAzG68S2tvO93w=="],
|
|
35
35
|
|
|
36
36
|
"@date-fns/tz": ["@date-fns/tz@1.4.1", "", {}, "sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA=="],
|
|
37
37
|
|