@openfin/core 33.76.9 → 33.76.10

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "33.76.9",
3
+ "version": "33.76.10",
4
4
  "license": "SEE LICENSE IN LICENSE.MD",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",
package/src/OpenFin.d.ts CHANGED
@@ -2035,10 +2035,11 @@ export type WriteClipboardRequest = BaseClipboardRequest & {
2035
2035
  export type ReadImageClipboardRequest = BaseClipboardRequest & ImageFormatOptions;
2036
2036
  export type WriteImageClipboardRequest = BaseClipboardRequest & {
2037
2037
  /**
2038
- * Must be a base-64 data URL string. Supported formats are `data:image/png[;base64],` and `data:image/jpeg[;base64],`
2039
- * // TODO: Named this `imageDataURL` but the other write request types use `data` - wanted to make it obvious it must be a dataURL string - thoughts?
2038
+ * Can be either a base64 string, or a DataURL string. If using DataURL, the
2039
+ * supported formats are `data:image/png[;base64],` and `data:image/jpeg[;base64],`.
2040
+ * Using other image/<format> DataURLs will throw an Error.
2040
2041
  */
2041
- imageDataURL: string;
2042
+ image: string;
2042
2043
  };
2043
2044
  /**
2044
2045
  * A generic request to write any supported data to the clipboard.
@@ -2048,7 +2049,7 @@ export type WriteAnyClipboardRequest = BaseClipboardRequest & {
2048
2049
  text?: string;
2049
2050
  html?: string;
2050
2051
  rtf?: string;
2051
- };
2052
+ } & Partial<Pick<WriteImageClipboardRequest, 'image'>>;
2052
2053
  };
2053
2054
  /**
2054
2055
  * @deprecated - instead use OpenFin.WriteClipboardRequest
@@ -30,6 +30,10 @@ export interface ProtocolMap extends ProtocolMapBase {
30
30
  request: OpenFin.WriteImageClipboardRequest;
31
31
  response: void;
32
32
  };
33
+ 'clipboard-write': {
34
+ request: OpenFin.WriteAnyRequestType;
35
+ response: void;
36
+ };
33
37
  'get-view-window': IdentityCall<{}, OpenFin.Identity>;
34
38
  'create-view': IdentityCall<OpenFin.ViewCreationOptions & {
35
39
  uuid: string;
Binary file