@popclip/types 1.4636.1 → 1.4663.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/popclip.d.ts +16 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popclip/types",
3
- "version": "1.4636.1",
3
+ "version": "1.4663.0",
4
4
  "devDependencies": {
5
5
  "typedoc": "0.25.13",
6
6
  "typescript": "5.4.5"
package/popclip.d.ts CHANGED
@@ -984,6 +984,14 @@ interface PopClip {
984
984
  * Bundle identifier of the app to open the URL with. For example `"com.google.Chrome"`.
985
985
  */
986
986
  app?: string;
987
+ /**
988
+ * Whether to request that macOS activate the target app. (Default: `true`)
989
+ */
990
+ activate?: boolean;
991
+ /**
992
+ * Whether to open the URL in a background browser tab, where supported. (Default: `false`)
993
+ */
994
+ backgroundTab?: boolean;
987
995
  },
988
996
  ) => void;
989
997
 
@@ -1026,7 +1034,7 @@ interface Util {
1026
1034
  * @param string The string to localize.
1027
1035
  * @return The localized string, or the original string if no localized version was avaiable.
1028
1036
  */
1029
- localize: (string: string) => string;
1037
+ localize(string: string): string;
1030
1038
 
1031
1039
  /**
1032
1040
  Get information about the current locale as configures in macOS settings.
@@ -1051,7 +1059,7 @@ interface Util {
1051
1059
  daylightSaving: boolean;
1052
1060
  };
1053
1061
 
1054
- htmlToRtf: (html: string) => string | undefined;
1062
+ htmlToRtf(html: string): string | undefined;
1055
1063
 
1056
1064
  /**
1057
1065
  * Encode a string as UTF-8 then Base-64 encode the result.
@@ -1059,7 +1067,7 @@ interface Util {
1059
1067
  * @param string The string to encode.
1060
1068
  * @param options
1061
1069
  */
1062
- base64Encode: (
1070
+ base64Encode(
1063
1071
  string: string,
1064
1072
  options?: {
1065
1073
  /**
@@ -1071,7 +1079,7 @@ interface Util {
1071
1079
  */
1072
1080
  trimmed?: boolean;
1073
1081
  },
1074
- ) => string;
1082
+ ): string;
1075
1083
 
1076
1084
  /**
1077
1085
  * Decode a Base-64 string and interpret the result as a UTF-8 string.
@@ -1082,7 +1090,7 @@ interface Util {
1082
1090
  * @param string
1083
1091
  * @returns The decoded string
1084
1092
  */
1085
- base64Decode: (string: string) => string;
1093
+ base64Decode(string: string): string;
1086
1094
 
1087
1095
  /* Build a URL from a base URL and additional query parameters */
1088
1096
  buildQueryUrl: (baseUrl: string, params: { [key: string]: string }) => string;
@@ -1094,13 +1102,13 @@ interface Util {
1094
1102
  parseQuery: (query: string) => any;
1095
1103
 
1096
1104
  /** Decipher a JSON object that has been lightly obscured to prevent constants such as
1097
- * API keys appearing in plaintext in the source files.
1105
+ * API client identifiers appearing in plaintext in the source files.
1098
1106
  *
1099
1107
  * This function will ROT13 decipher the text, apply Base64 decoding, and parse the result as JSON. */
1100
- clarify: (obscuredString: string) => any;
1108
+ clarify(obscuredString: string): any;
1101
1109
 
1102
1110
  // same as global sleep()
1103
- sleep: (durationMilliseconds: number) => Promise<void>;
1111
+ sleep(durationMilliseconds: number): Promise<void>;
1104
1112
 
1105
1113
  /**
1106
1114
  * Fill the provided `TypedArray` with cryptographically secure random values.