@fayz-ai/storefront 0.2.0 → 0.4.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/shop.cjs ADDED
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var shop = require('@fayz-ai/sdk/shop');
4
+
5
+
6
+
7
+ Object.keys(shop).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return shop[k]; }
11
+ });
12
+ });
13
+ //# sourceMappingURL=shop.cjs.map
14
+ //# sourceMappingURL=shop.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"shop.cjs","sourcesContent":[]}
package/dist/shop.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from '@fayz-ai/sdk/shop';
2
+ //# sourceMappingURL=shop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shop.d.ts","sourceRoot":"","sources":["../src/shop.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAA"}
package/dist/shop.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from '@fayz-ai/sdk/shop';
2
+ //# sourceMappingURL=shop.js.map
3
+ //# sourceMappingURL=shop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"shop.js","sourcesContent":[]}
package/dist/ui.cjs ADDED
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var ui = require('@fayz-ai/ui');
4
+
5
+
6
+
7
+ Object.keys(ui).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return ui[k]; }
11
+ });
12
+ });
13
+ //# sourceMappingURL=ui.cjs.map
14
+ //# sourceMappingURL=ui.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ui.cjs","sourcesContent":[]}
package/dist/ui.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from '@fayz-ai/ui';
2
+ //# sourceMappingURL=ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAA"}
package/dist/ui.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from '@fayz-ai/ui';
2
+ //# sourceMappingURL=ui.js.map
3
+ //# sourceMappingURL=ui.js.map
package/dist/ui.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ui.js","sourcesContent":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fayz-ai/storefront",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Fayz SDK storefront kit — Shopify-style customer-facing ecommerce template components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -12,6 +12,24 @@
12
12
  "types": "./dist/index.d.ts",
13
13
  "import": "./dist/index.js",
14
14
  "require": "./dist/index.cjs"
15
+ },
16
+ "./ui": {
17
+ "source": "./src/ui.ts",
18
+ "types": "./dist/ui.d.ts",
19
+ "import": "./dist/ui.js",
20
+ "require": "./dist/ui.cjs"
21
+ },
22
+ "./catalog": {
23
+ "source": "./src/catalog.ts",
24
+ "types": "./dist/catalog.d.ts",
25
+ "import": "./dist/catalog.js",
26
+ "require": "./dist/catalog.cjs"
27
+ },
28
+ "./shop": {
29
+ "source": "./src/shop.ts",
30
+ "types": "./dist/shop.d.ts",
31
+ "import": "./dist/shop.js",
32
+ "require": "./dist/shop.cjs"
15
33
  }
16
34
  },
17
35
  "files": [
@@ -22,10 +40,11 @@
22
40
  "@supabase/supabase-js": "^2.45.0",
23
41
  "lucide-react": "^0.400.0",
24
42
  "zustand": "^4.5.0",
25
- "@fayz-ai/shop": "^0.2.0",
26
43
  "@fayz-ai/core": "^0.2.0",
27
44
  "@fayz-ai/auth": "^0.2.0",
28
- "@fayz-ai/ui": "^0.2.0"
45
+ "@fayz-ai/ui": "^0.2.1",
46
+ "@fayz-ai/shop": "^0.2.0",
47
+ "@fayz-ai/sdk": "^0.2.0"
29
48
  },
30
49
  "peerDependencies": {
31
50
  "react": "^18.0.0 || ^19.0.0",
package/src/catalog.ts ADDED
@@ -0,0 +1,3 @@
1
+ // Front-door re-export of @fayz-ai/shop/catalog (mock catalog builders/data)
2
+ // so storefront apps import from `@fayz-ai/storefront/catalog`.
3
+ export * from '@fayz-ai/shop/catalog'
package/src/index.ts CHANGED
@@ -130,3 +130,11 @@ export {
130
130
  storefrontSlotContracts,
131
131
  } from './slot-contracts'
132
132
  export type { ProductCardSlotContract } from './slot-contracts'
133
+
134
+ // ---------------------------------------------------------------------------
135
+ // Front-door re-exports: storefront apps depend on @fayz-ai/storefront alone.
136
+ // Runtime helpers come from @fayz-ai/core; UI / shop catalog / shop provider
137
+ // live on their own subpaths (./ui, ./catalog, ./shop) to keep module graphs
138
+ // separate. Mirrors the @fayz-ai/saas front door.
139
+ // ---------------------------------------------------------------------------
140
+ export { renderApp, getSupabaseClientOptional } from '@fayz-ai/core'
package/src/shop.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Front-door re-export of the Fayz API shop provider (@fayz-ai/sdk/shop) so
2
+ // storefront apps import `createFayzShopProvider` from
3
+ // `@fayz-ai/storefront/shop` instead of depending on @fayz-ai/sdk directly.
4
+ export * from '@fayz-ai/sdk/shop'
package/src/ui.ts ADDED
@@ -0,0 +1,5 @@
1
+ // Front-door re-export of @fayz-ai/ui for storefront apps.
2
+ // Import design-system primitives from `@fayz-ai/storefront/ui` instead of
3
+ // depending on @fayz-ai/ui directly. Own module graph keeps the UI deps out of
4
+ // the main storefront entry.
5
+ export * from '@fayz-ai/ui'