npm package diff

Package: @forge/bridge

Versions: 4.1.0 - 4.1.1-next.0

Modified:package/out/types.js

Index: package/out/types.js
===================================================================
--- package/out/types.js
+++ package/out/types.js
@@ -1,2 +1,9 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
+exports.ExtensionEnvironment = void 0;
+var ExtensionEnvironment;
+(function (ExtensionEnvironment) {
+    ExtensionEnvironment["DEVELOPMENT"] = "DEVELOPMENT";
+    ExtensionEnvironment["STAGING"] = "STAGING";
+    ExtensionEnvironment["PRODUCTION"] = "PRODUCTION";
+})(ExtensionEnvironment = exports.ExtensionEnvironment || (exports.ExtensionEnvironment = {}));

Modified:package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/bridge",
-  "version": "4.1.0",
+  "version": "4.1.1-next.0",
   "description": "Forge bridge API for custom UI apps",
   "author": "Atlassian",
   "license": "UNLICENSED",
   "main": "out/index.js",
@@ -12,8 +12,9 @@
     "clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo",
     "compile": "tsc -b -v"
   },
   "dependencies": {
+    "@atlaskit/tokens": "^1.58.0",
     "@types/history": "^4.7.11",
     "@forge/i18n": "0.0.1"
   },
   "devDependencies": {

Modified:package/out/types.d.ts.map

Index: package/out/types.d.ts.map
===================================================================
--- package/out/types.d.ts.map
+++ package/out/types.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,oBAAY,aAAa,GAAG;KACzB,GAAG,IAAI,MAAM,GAAG,MAAM,GAAG,GAAG;CAC9B,CAAC;AAEF,oBAAY,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;AAExD,oBAAY,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd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tB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oBAAY,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC"}
\ No newline at end of file

Modified:package/CHANGELOG.md

Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
 # @forge/bridge
 
+## 4.1.1-next.0
+
+### Patch Changes
+
+- 746d528: Update FullContext type to include actual returned object
+
 ## 4.1.0
 
 ### Minor Changes

Modified:package/out/types.d.ts

Index: package/out/types.d.ts
===================================================================
--- package/out/types.d.ts
+++ package/out/types.d.ts
@@ -1,5 +1,6 @@
 import { type ForgeSupportedLocaleCode } from '@forge/i18n';
+import { type ThemeState } from '@atlaskit/tokens';
 export declare type InvokePayload = {
     [key in number | string]: any;
 };
 export declare type InvokeResponse = Record<string, any> | void;
@@ -9,19 +10,29 @@
         [key: string]: string;
     };
     isAttachment?: boolean;
 } & Pick<ResponseInit, 'status' | 'statusText'>;
+export declare enum ExtensionEnvironment {
+    DEVELOPMENT = "DEVELOPMENT",
+    STAGING = "STAGING",
+    PRODUCTION = "PRODUCTION"
+}
+export declare type EnvironmentType = keyof typeof ExtensionEnvironment;
 export interface FullContext {
     accountId?: string;
     cloudId?: string;
     workspaceId?: string;
     extension: ExtensionData;
+    environmentId: string;
+    environmentType: EnvironmentType;
     license?: LicenseDetails;
     localId: string;
     locale: ForgeSupportedLocaleCode;
     moduleKey: string;
     siteUrl: string;
     timezone: string;
+    theme?: Partial<ThemeState> | null;
+    surfaceColor?: string | null;
 }
 interface ExtensionData {
     [k: string]: any;
 }