@cimplify/cli 0.7.20 → 0.7.22
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-OSD4553G.mjs → add-BNQSUAKS.mjs} +1 -1
- package/dist/{chunk-HAGBHLXW.mjs → chunk-AYVOCJTK.mjs} +2 -2
- package/dist/{chunk-UXS75OSQ.mjs → chunk-TC6KEJ3V.mjs} +1 -1
- package/dist/{chunk-CIZ7IWO4.mjs → chunk-YUXVTC3O.mjs} +18 -18
- package/dist/dispatcher.mjs +17 -11
- package/dist/{doctor-RBXE5QGS.mjs → doctor-3UN3HWZK.mjs} +2 -2
- package/dist/{explain-HR2GEMAB.mjs → explain-57MQ3RJ5.mjs} +2 -2
- package/dist/{introspect-RCSMCNVR.mjs → introspect-DX2OYRTY.mjs} +2 -2
- package/dist/{list-N5GWOJLE.mjs → list-LKO7J47M.mjs} +1 -1
- package/dist/mock-TSUKCLWU.mjs +96 -0
- package/dist/{update-JBR2UM4Y.mjs → update-TY6HIDIQ.mjs} +1 -1
- package/package.json +2 -2
- package/templates/storefront-auto/components/providers.tsx +2 -0
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/components/providers.tsx +2 -0
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/components/providers.tsx +2 -0
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/components/providers.tsx +2 -0
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/components/providers.tsx +2 -0
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/components/providers.tsx +2 -0
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/components/providers.tsx +2 -0
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/components/providers.tsx +2 -0
- package/templates/storefront-services/package.json +1 -1
package/dist/dispatcher.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { package_default } from './chunk-AYVOCJTK.mjs';
|
|
3
|
+
import { TEMPLATES } from './chunk-YUXVTC3O.mjs';
|
|
4
4
|
|
|
5
5
|
// src/dispatcher.ts
|
|
6
6
|
var VERSION = package_default.version ?? "unknown";
|
|
@@ -33,6 +33,8 @@ Deploy:
|
|
|
33
33
|
cimplify status Show the latest deployment for the linked project
|
|
34
34
|
cimplify logs [flags] Stream build logs for the latest (or given) deployment
|
|
35
35
|
cimplify dev [--remote] Run your project's dev script (optionally with prod env)
|
|
36
|
+
cimplify mock [flags] Boot the local Cimplify API mock (custom seeds welcome)
|
|
37
|
+
cimplify mock init [--from <seed>] Scaffold a cimplify.seed.ts (or --format json) to customise
|
|
36
38
|
|
|
37
39
|
Env vars:
|
|
38
40
|
cimplify env ls [--scope=<s>] List env vars (default scope: preview)
|
|
@@ -120,8 +122,11 @@ Logs flags:
|
|
|
120
122
|
--deployment <id> Override which deployment to read (default: latest)
|
|
121
123
|
--follow Poll until the deployment terminates
|
|
122
124
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
Local mock server (custom demo data, no fork needed):
|
|
126
|
+
cimplify mock [flags] Boot the mock (auto-loads ./cimplify.seed.{ts,json})
|
|
127
|
+
cimplify mock init --from retail Scaffold an editable seed to start from a built-in
|
|
128
|
+
cimplify mock --seed-file demo.json Boot from a JSON snapshot (--dump one to create it)
|
|
129
|
+
cimplify mock --seed-module ./seed.ts Boot from a seed module (defineSeed from @cimplify/sdk/mock)
|
|
125
130
|
`;
|
|
126
131
|
var COMMANDS = {
|
|
127
132
|
login: () => import('./login-3OD4ND2H.mjs'),
|
|
@@ -138,16 +143,17 @@ var COMMANDS = {
|
|
|
138
143
|
logs: () => import('./logs-YNN2PQ24.mjs'),
|
|
139
144
|
status: () => import('./status-JSYXM5RT.mjs'),
|
|
140
145
|
dev: () => import('./dev-ONW2S77K.mjs'),
|
|
141
|
-
|
|
146
|
+
mock: () => import('./mock-TSUKCLWU.mjs'),
|
|
147
|
+
introspect: () => import('./introspect-DX2OYRTY.mjs'),
|
|
142
148
|
inspect: () => import('./inspect-CGYX4DDF.mjs'),
|
|
143
|
-
doctor: () => import('./doctor-
|
|
144
|
-
explain: () => import('./explain-
|
|
149
|
+
doctor: () => import('./doctor-3UN3HWZK.mjs'),
|
|
150
|
+
explain: () => import('./explain-57MQ3RJ5.mjs'),
|
|
145
151
|
assets: () => import('./assets-74SK63TR.mjs'),
|
|
146
152
|
repo: () => import('./repo-KNQMSPVV.mjs'),
|
|
147
|
-
list: () => import('./list-
|
|
148
|
-
add: () => import('./add-
|
|
149
|
-
update: () => import('./update-
|
|
150
|
-
upgrade: () => import('./update-
|
|
153
|
+
list: () => import('./list-LKO7J47M.mjs'),
|
|
154
|
+
add: () => import('./add-BNQSUAKS.mjs'),
|
|
155
|
+
update: () => import('./update-TY6HIDIQ.mjs'),
|
|
156
|
+
upgrade: () => import('./update-TY6HIDIQ.mjs'),
|
|
151
157
|
"auth-step-up": () => import('./auth-step-up-BIUYQJP6.mjs')
|
|
152
158
|
};
|
|
153
159
|
var COMMAND_PREFIXES = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { gatherIntrospection } from './chunk-
|
|
2
|
+
import { gatherIntrospection } from './chunk-TC6KEJ3V.mjs';
|
|
3
3
|
import './chunk-K5464A3L.mjs';
|
|
4
4
|
import './chunk-DBZ3UOQ2.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-AYVOCJTK.mjs';
|
|
6
6
|
import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
7
7
|
import { ApiClient } from './chunk-MAOO6ZZ5.mjs';
|
|
8
8
|
import { readAuthOrNull } from './chunk-UBAI443T.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
2
|
+
import { package_default } from './chunk-AYVOCJTK.mjs';
|
|
3
3
|
import { parseArgs } from './chunk-C4M3DXKC.mjs';
|
|
4
4
|
import { bold, dim, info, result, CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
|
|
5
5
|
|
|
@@ -178,7 +178,7 @@ var TOPICS = [
|
|
|
178
178
|
"title": "seeds",
|
|
179
179
|
"description": "Available mock seeds and how to switch between them",
|
|
180
180
|
"source_url": "https://cimplify.dev/docs/cli/mock",
|
|
181
|
-
"body": '## Mock seeds\n\nEvery Cimplify storefront ships with a local Hono mock backed by one of\nthese seeds. Switch with `cimplify mock seed <name>` (or hand-edit the\n`--seed` flag in your `package.json` `scripts.dev`).\n\n| Seed | Notes |\n| --- | --- |\n| `auto` | (no description) |\n| `default` | Generic small business \u2014 minimal fixtures |\n| `empty` | No data \u2014 for blank-slate testing |\n| `fashion` | Apparel with multi-axis variants (size, color) |\n| `grocery` | High-SKU produce + perishables |\n| `pharmacy` | Wellspring Apothecary \u2014 health products with regulated metadata |\n| `reesa-storefront` | Reesa-specific demo storefront |\n| `restaurant` | Menu-driven with reservations |\n| `retail` | Electronics-focused storefront with variants and add-ons |\n| `services` | Bookable services (e.g. salon, spa) |\n\n### Finding fixture IDs\n\nEach seed is a TypeScript file at `packages/sdk/src/mock/seeds/<name>.ts`\nin the cimplify monorepo. Product slugs, categories, and variant axes\nare defined inline. Grep that file when you need a real slug for a\nhard-coded demo:\n\n```bash\ngrep "slug:" node_modules/@cimplify/sdk/dist/mock/seeds/<name>.* | head\n```\n\nA future `cimplify mock products ls --json` will surface these IDs\ndirectly without grep.\n'
|
|
181
|
+
"body": '## Mock seeds\n\nEvery Cimplify storefront ships with a local Hono mock backed by one of\nthese seeds. Switch with `cimplify mock seed <name>` (or hand-edit the\n`--seed` flag in your `package.json` `scripts.dev`).\n\n| Seed | Notes |\n| --- | --- |\n| `auto` | (no description) |\n| `context` | (no description) |\n| `default` | Generic small business \u2014 minimal fixtures |\n| `empty` | No data \u2014 for blank-slate testing |\n| `fashion` | Apparel with multi-axis variants (size, color) |\n| `grocery` | High-SKU produce + perishables |\n| `pharmacy` | Wellspring Apothecary \u2014 health products with regulated metadata |\n| `reesa-storefront` | Reesa-specific demo storefront |\n| `restaurant` | Menu-driven with reservations |\n| `retail` | Electronics-focused storefront with variants and add-ons |\n| `services` | Bookable services (e.g. salon, spa) |\n| `source` | (no description) |\n\n### Finding fixture IDs\n\nEach seed is a TypeScript file at `packages/sdk/src/mock/seeds/<name>.ts`\nin the cimplify monorepo. Product slugs, categories, and variant axes\nare defined inline. Grep that file when you need a real slug for a\nhard-coded demo:\n\n```bash\ngrep "slug:" node_modules/@cimplify/sdk/dist/mock/seeds/<name>.* | head\n```\n\nA future `cimplify mock products ls --json` will surface these IDs\ndirectly without grep.\n'
|
|
182
182
|
}
|
|
183
183
|
];
|
|
184
184
|
var TOPICS_BY_NAME = Object.fromEntries(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-
|
|
2
|
+
export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-TC6KEJ3V.mjs';
|
|
3
3
|
import './chunk-K5464A3L.mjs';
|
|
4
4
|
import './chunk-DBZ3UOQ2.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-AYVOCJTK.mjs';
|
|
6
6
|
import './chunk-C4M3DXKC.mjs';
|
|
7
7
|
import './chunk-UBAI443T.mjs';
|
|
8
8
|
import './chunk-E2T2SBP5.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { REGISTRY_INDEX } from './chunk-
|
|
2
|
+
import { REGISTRY_INDEX } from './chunk-YUXVTC3O.mjs';
|
|
3
3
|
import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
4
4
|
import { CliError, CLI_ERROR_CODE, info, bold, dim, green, result } from './chunk-E2T2SBP5.mjs';
|
|
5
5
|
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
3
|
+
import { CliError, CLI_ERROR_CODE, info, dim } from './chunk-E2T2SBP5.mjs';
|
|
4
|
+
import { spawn } from 'child_process';
|
|
5
|
+
import { existsSync, writeFileSync } from 'fs';
|
|
6
|
+
import path from 'path';
|
|
7
|
+
|
|
8
|
+
var MOCK_BIN = "cimplify-mock";
|
|
9
|
+
var SDK_PACKAGE = "@cimplify/sdk";
|
|
10
|
+
var SEED_FILE_TS = "cimplify.seed.ts";
|
|
11
|
+
var SEED_FILE_JSON = "cimplify.seed.json";
|
|
12
|
+
var DEFAULT_FROM = "default";
|
|
13
|
+
function findLocalMockBin(start) {
|
|
14
|
+
let dir = start;
|
|
15
|
+
for (; ; ) {
|
|
16
|
+
const candidate = path.join(dir, "node_modules", ".bin", MOCK_BIN);
|
|
17
|
+
if (existsSync(candidate)) return candidate;
|
|
18
|
+
const parent = path.dirname(dir);
|
|
19
|
+
if (parent === dir) return null;
|
|
20
|
+
dir = parent;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function spawnMock(args) {
|
|
24
|
+
const local = findLocalMockBin(process.cwd());
|
|
25
|
+
const cmd = local ?? "npx";
|
|
26
|
+
const cmdArgs = local ? args : ["-y", "-p", SDK_PACKAGE, MOCK_BIN, ...args];
|
|
27
|
+
return new Promise((resolve, reject) => {
|
|
28
|
+
const child = spawn(cmd, cmdArgs, { cwd: process.cwd(), stdio: "inherit" });
|
|
29
|
+
child.on(
|
|
30
|
+
"error",
|
|
31
|
+
(err) => reject(
|
|
32
|
+
new CliError(CLI_ERROR_CODE.INVALID_INPUT, `Failed to start the mock server: ${err.message}`, {
|
|
33
|
+
remediation: local ? void 0 : `Install the SDK first: \`bun add ${SDK_PACKAGE}\``
|
|
34
|
+
})
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
child.on("close", (code) => {
|
|
38
|
+
process.exitCode = code ?? 0;
|
|
39
|
+
resolve();
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function seedTemplate(from) {
|
|
44
|
+
return `import { defineSeed } from "${SDK_PACKAGE}/mock";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Local mock seed. The mock server picks this file up automatically
|
|
48
|
+
* (run \`cimplify mock\`), or point at it with \`--seed-module\`.
|
|
49
|
+
*/
|
|
50
|
+
export default defineSeed((ctx) => {
|
|
51
|
+
// Start from a built-in seed, then customise from there.
|
|
52
|
+
const { businessId } = ctx.extend("${from}");
|
|
53
|
+
|
|
54
|
+
// Or start from scratch instead of extending:
|
|
55
|
+
// const biz = ctx.business({ name: "Akua's Bakery", handle: "akua", default_currency: "GHS" });
|
|
56
|
+
// const breads = ctx.category({ name: "Breads" });
|
|
57
|
+
// ctx.product({ name: "Sourdough", price: "25.00", category: breads,
|
|
58
|
+
// image: ctx.image("bakery", "sourdough-loaf") });
|
|
59
|
+
// return { businessId: biz.id };
|
|
60
|
+
|
|
61
|
+
return { businessId };
|
|
62
|
+
});
|
|
63
|
+
`;
|
|
64
|
+
}
|
|
65
|
+
async function runInit(rest) {
|
|
66
|
+
const args = parseArgs(rest);
|
|
67
|
+
const from = flagString(args, "from") ?? DEFAULT_FROM;
|
|
68
|
+
const format = flagString(args, "format") ?? "ts";
|
|
69
|
+
const force = flagBool(args, "force");
|
|
70
|
+
const cwd = process.cwd();
|
|
71
|
+
if (format !== "ts" && format !== "json") {
|
|
72
|
+
throw new CliError(CLI_ERROR_CODE.INVALID_INPUT, `--format must be "ts" or "json" (got "${format}").`);
|
|
73
|
+
}
|
|
74
|
+
const target = format === "json" ? SEED_FILE_JSON : SEED_FILE_TS;
|
|
75
|
+
if (existsSync(path.join(cwd, target)) && !force) {
|
|
76
|
+
throw new CliError(CLI_ERROR_CODE.INVALID_INPUT, `${target} already exists. Pass --force to overwrite.`);
|
|
77
|
+
}
|
|
78
|
+
if (format === "json") {
|
|
79
|
+
await spawnMock(["--seed", from, "--dump", target]);
|
|
80
|
+
info(`Wrote ${target} from the "${from}" seed.`);
|
|
81
|
+
info(dim(`Edit it, then run: cimplify mock --seed-file ${target}`));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
writeFileSync(path.join(cwd, target), seedTemplate(from), "utf8");
|
|
85
|
+
info(`Wrote ${target} (extends the "${from}" seed).`);
|
|
86
|
+
info(dim("Edit it, then run: cimplify mock"));
|
|
87
|
+
}
|
|
88
|
+
async function run(argv) {
|
|
89
|
+
const [sub, ...rest] = argv;
|
|
90
|
+
if (sub === "init") {
|
|
91
|
+
return runInit(rest);
|
|
92
|
+
}
|
|
93
|
+
return spawnMock(argv);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export { run as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
2
|
+
import { package_default } from './chunk-AYVOCJTK.mjs';
|
|
3
3
|
import { promptYesNo } from './chunk-ITAFAORS.mjs';
|
|
4
4
|
import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
|
|
5
5
|
import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-E2T2SBP5.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cimplify/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.22",
|
|
4
4
|
"description": "Cimplify CLI — deploy, manage env vars, link projects, and scaffold storefronts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cimplify",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"vitest": "^4.1.5"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@cimplify/sdk": "^0.
|
|
48
|
+
"@cimplify/sdk": "^0.83.0"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useMemo, type ReactNode } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
import { createCimplifyClient, type Business, type Location } from "@cimplify/sdk";
|
|
5
6
|
import { CimplifyProvider, CartDrawerProvider } from "@cimplify/sdk/react";
|
|
6
7
|
import { AuthErrorToast } from "@/components/auth-error-toast";
|
|
@@ -34,6 +35,7 @@ export function Providers({
|
|
|
34
35
|
client={client}
|
|
35
36
|
initialBusiness={initialBusiness}
|
|
36
37
|
initialLocations={initialLocations}
|
|
38
|
+
linkComponent={Link}
|
|
37
39
|
>
|
|
38
40
|
<CartDrawerProvider>
|
|
39
41
|
{children}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useMemo, type ReactNode } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
import { createCimplifyClient, type Business, type Location } from "@cimplify/sdk";
|
|
5
6
|
import { CimplifyProvider, CartDrawerProvider } from "@cimplify/sdk/react";
|
|
6
7
|
import { AuthErrorToast } from "@/components/auth-error-toast";
|
|
@@ -34,6 +35,7 @@ export function Providers({
|
|
|
34
35
|
client={client}
|
|
35
36
|
initialBusiness={initialBusiness}
|
|
36
37
|
initialLocations={initialLocations}
|
|
38
|
+
linkComponent={Link}
|
|
37
39
|
>
|
|
38
40
|
<CartDrawerProvider>
|
|
39
41
|
{children}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useMemo, type ReactNode } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
import { createCimplifyClient, type Business, type Location } from "@cimplify/sdk";
|
|
5
6
|
import { CimplifyProvider, CartDrawerProvider } from "@cimplify/sdk/react";
|
|
6
7
|
import { AuthErrorToast } from "@/components/auth-error-toast";
|
|
@@ -34,6 +35,7 @@ export function Providers({
|
|
|
34
35
|
client={client}
|
|
35
36
|
initialBusiness={initialBusiness}
|
|
36
37
|
initialLocations={initialLocations}
|
|
38
|
+
linkComponent={Link}
|
|
37
39
|
>
|
|
38
40
|
<CartDrawerProvider>
|
|
39
41
|
{children}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useMemo, type ReactNode } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
import { createCimplifyClient, type Business, type Location } from "@cimplify/sdk";
|
|
5
6
|
import { CimplifyProvider, CartDrawerProvider } from "@cimplify/sdk/react";
|
|
6
7
|
import { AuthErrorToast } from "@/components/auth-error-toast";
|
|
@@ -34,6 +35,7 @@ export function Providers({
|
|
|
34
35
|
client={client}
|
|
35
36
|
initialBusiness={initialBusiness}
|
|
36
37
|
initialLocations={initialLocations}
|
|
38
|
+
linkComponent={Link}
|
|
37
39
|
>
|
|
38
40
|
<CartDrawerProvider>
|
|
39
41
|
{children}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useMemo, type ReactNode } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
import { createCimplifyClient, type Business, type Location } from "@cimplify/sdk";
|
|
5
6
|
import { CimplifyProvider, CartDrawerProvider } from "@cimplify/sdk/react";
|
|
6
7
|
import { AuthErrorToast } from "@/components/auth-error-toast";
|
|
@@ -34,6 +35,7 @@ export function Providers({
|
|
|
34
35
|
client={client}
|
|
35
36
|
initialBusiness={initialBusiness}
|
|
36
37
|
initialLocations={initialLocations}
|
|
38
|
+
linkComponent={Link}
|
|
37
39
|
>
|
|
38
40
|
<CartDrawerProvider>
|
|
39
41
|
{children}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useMemo, type ReactNode } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
import { createCimplifyClient, type Business, type Location } from "@cimplify/sdk";
|
|
5
6
|
import { CimplifyProvider, CartDrawerProvider } from "@cimplify/sdk/react";
|
|
6
7
|
import { AuthErrorToast } from "@/components/auth-error-toast";
|
|
@@ -34,6 +35,7 @@ export function Providers({
|
|
|
34
35
|
client={client}
|
|
35
36
|
initialBusiness={initialBusiness}
|
|
36
37
|
initialLocations={initialLocations}
|
|
38
|
+
linkComponent={Link}
|
|
37
39
|
>
|
|
38
40
|
<CartDrawerProvider>
|
|
39
41
|
{children}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useMemo, type ReactNode } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
import { createCimplifyClient, type Business, type Location } from "@cimplify/sdk";
|
|
5
6
|
import { CimplifyProvider, CartDrawerProvider } from "@cimplify/sdk/react";
|
|
6
7
|
import { AuthErrorToast } from "@/components/auth-error-toast";
|
|
@@ -34,6 +35,7 @@ export function Providers({
|
|
|
34
35
|
client={client}
|
|
35
36
|
initialBusiness={initialBusiness}
|
|
36
37
|
initialLocations={initialLocations}
|
|
38
|
+
linkComponent={Link}
|
|
37
39
|
>
|
|
38
40
|
<CartDrawerProvider>
|
|
39
41
|
{children}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useMemo, type ReactNode } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
import { createCimplifyClient, type Business, type Location } from "@cimplify/sdk";
|
|
5
6
|
import { CimplifyProvider, CartDrawerProvider } from "@cimplify/sdk/react";
|
|
6
7
|
import { AuthErrorToast } from "@/components/auth-error-toast";
|
|
@@ -34,6 +35,7 @@ export function Providers({
|
|
|
34
35
|
client={client}
|
|
35
36
|
initialBusiness={initialBusiness}
|
|
36
37
|
initialLocations={initialLocations}
|
|
38
|
+
linkComponent={Link}
|
|
37
39
|
>
|
|
38
40
|
<CartDrawerProvider>
|
|
39
41
|
{children}
|