@commercebuild/extension 0.0.3 → 0.0.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercebuild/extension",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "types": "./types/index.d.ts",
5
5
  "exports": {
6
6
  ".": {
@@ -21,7 +21,7 @@
21
21
  "@types/ws": "^8.18.1",
22
22
  "@vitejs/plugin-react": "^4.5.2",
23
23
  "chalk": "^5.4.1",
24
- "esbuild": "^0.20.0",
24
+ "esbuild": "^0.25.6",
25
25
  "lucide-react": "^0.525.0",
26
26
  "react": "^19.1.0",
27
27
  "react-dom": "^19.1.0",
package/types/global.d.ts CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  import * as uis from "@commercebuild/ui";
7
7
  import * as icons from "lucide-react";
8
8
  import * as React from "react";
9
+ import { Platform } from "@commercebuild/platform-api";
9
10
  import type { UrlObject } from "url";
10
11
 
11
12
  // === Link and Image from nextjs =============================================
@@ -91,6 +92,7 @@ declare global {
91
92
  const cb: {
92
93
  version: string;
93
94
  React: typeof React;
95
+ platformApi: Platform;
94
96
  utils: {
95
97
  convertProductItemToCartRequestItem;
96
98
  tlink;