expo-clipboard 55.0.2 → 55.0.3
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/CHANGELOG.md +5 -0
- package/android/build.gradle +2 -2
- package/build/Clipboard.d.ts +1 -10
- package/build/Clipboard.d.ts.map +1 -1
- package/build/Clipboard.js +1 -10
- package/build/Clipboard.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2.module → 55.0.3/expo.modules.clipboard-55.0.3.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.3/expo.modules.clipboard-55.0.3.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.3/expo.modules.clipboard-55.0.3.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.3/expo.modules.clipboard-55.0.3.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.3/expo.modules.clipboard-55.0.3.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2.pom → 55.0.3/expo.modules.clipboard-55.0.3.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.3/expo.modules.clipboard-55.0.3.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.3/expo.modules.clipboard-55.0.3.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.3/expo.modules.clipboard-55.0.3.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.3/expo.modules.clipboard-55.0.3.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/maven-metadata.xml.sha512 +1 -1
- package/package.json +2 -2
- package/src/Clipboard.ts +1 -10
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.2/expo.modules.clipboard-55.0.2.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.2/expo.modules.clipboard-55.0.2.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.2/expo.modules.clipboard-55.0.2.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.2/expo.modules.clipboard-55.0.2.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.2/expo.modules.clipboard-55.0.2.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.2/expo.modules.clipboard-55.0.2.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.2/expo.modules.clipboard-55.0.2.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/55.0.2/expo.modules.clipboard-55.0.2.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2-sources.jar → 55.0.3/expo.modules.clipboard-55.0.3-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2-sources.jar.md5 → 55.0.3/expo.modules.clipboard-55.0.3-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2-sources.jar.sha1 → 55.0.3/expo.modules.clipboard-55.0.3-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2-sources.jar.sha256 → 55.0.3/expo.modules.clipboard-55.0.3-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2-sources.jar.sha512 → 55.0.3/expo.modules.clipboard-55.0.3-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2.aar → 55.0.3/expo.modules.clipboard-55.0.3.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2.aar.md5 → 55.0.3/expo.modules.clipboard-55.0.3.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2.aar.sha1 → 55.0.3/expo.modules.clipboard-55.0.3.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2.aar.sha256 → 55.0.3/expo.modules.clipboard-55.0.3.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.clipboard/{55.0.2/expo.modules.clipboard-55.0.2.aar.sha512 → 55.0.3/expo.modules.clipboard-55.0.3.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 55.0.3 — 2026-01-27
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
13
17
|
## 55.0.2 — 2026-01-26
|
|
14
18
|
|
|
15
19
|
_This version does not introduce any user-facing changes._
|
|
@@ -27,6 +31,7 @@ _This version does not introduce any user-facing changes._
|
|
|
27
31
|
### 💡 Others
|
|
28
32
|
|
|
29
33
|
- Remove tests related files from the published package content. ([#39551](https://github.com/expo/expo/pull/39551) by [@Simek](https://github.com/Simek))
|
|
34
|
+
- mark `removeClipboardListener` call as deprecated ([#42098](https://github.com/expo/expo/pull/42098) by [@vonovak](https://github.com/vonovak))
|
|
30
35
|
- [iOS] Update documentation regarding the edge case when the user denies paste permission ([#40259](https://github.com/expo/expo/pull/40259) by [@hryhoriiK97](https://github.com/hryhoriiK97))
|
|
31
36
|
- Update internal TypeScript types. ([#41740](https://github.com/expo/expo/pull/41740) by [@barthap](https://github.com/barthap))
|
|
32
37
|
|
package/android/build.gradle
CHANGED
package/build/Clipboard.d.ts
CHANGED
|
@@ -133,16 +133,7 @@ export declare function hasImageAsync(): Promise<boolean>;
|
|
|
133
133
|
export declare function addClipboardListener(listener: (event: ClipboardEvent) => void): EventSubscription;
|
|
134
134
|
/**
|
|
135
135
|
* Removes the listener added by addClipboardListener. This method is a no-op on Web.
|
|
136
|
-
*
|
|
137
|
-
* @param subscription The subscription to remove (created by addClipboardListener).
|
|
138
|
-
*
|
|
139
|
-
* @example
|
|
140
|
-
* ```typescript
|
|
141
|
-
* const subscription = addClipboardListener(() => {
|
|
142
|
-
* alert('Copy pasta!');
|
|
143
|
-
* });
|
|
144
|
-
* removeClipboardListener(subscription);
|
|
145
|
-
* ```
|
|
136
|
+
* @deprecated use subscription.remove() instead.
|
|
146
137
|
*/
|
|
147
138
|
export declare function removeClipboardListener(subscription: EventSubscription): void;
|
|
148
139
|
/**
|
package/build/Clipboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clipboard.d.ts","sourceRoot":"","sources":["../src/Clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAiC,MAAM,mBAAmB,CAAC;AAE1F,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAw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;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,GAAG,iBAAiB,CAEjG;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,iBAAiB,QAEtE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,OACiC,CAAC;AAEvE,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
package/build/Clipboard.js
CHANGED
|
@@ -188,16 +188,7 @@ export function addClipboardListener(listener) {
|
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
190
|
* Removes the listener added by addClipboardListener. This method is a no-op on Web.
|
|
191
|
-
*
|
|
192
|
-
* @param subscription The subscription to remove (created by addClipboardListener).
|
|
193
|
-
*
|
|
194
|
-
* @example
|
|
195
|
-
* ```typescript
|
|
196
|
-
* const subscription = addClipboardListener(() => {
|
|
197
|
-
* alert('Copy pasta!');
|
|
198
|
-
* });
|
|
199
|
-
* removeClipboardListener(subscription);
|
|
200
|
-
* ```
|
|
191
|
+
* @deprecated use subscription.remove() instead.
|
|
201
192
|
*/
|
|
202
193
|
export function removeClipboardListener(subscription) {
|
|
203
194
|
subscription.remove();
|
package/build/Clipboard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clipboard.js","sourceRoot":"","sources":["../src/Clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,mBAAmB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAS1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,aAAa,EAAE,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAIpE;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,UAA4B,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a,EAAE,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAyC;IAC5E,OAAO,aAAa,CAAC,WAAW,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;AACjE,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,uBAAuB,CAAC,YAA+B;IACrE,YAAY,CAAC,MAAM,EAAE,CAAC;AACxB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GACjC,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC,CAAC,KAAK,CAAC;AAEvE,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import { type EventSubscription, UnavailabilityError, Platform } from 'expo-modules-core';\n\nimport type {\n ClipboardImage,\n ClipboardEvent,\n GetImageOptions,\n GetStringOptions,\n SetStringOptions,\n} from './Clipboard.types';\nimport { ClipboardPasteButton } from './ClipboardPasteButton';\nimport ExpoClipboard, { clipboardEventName } from './ExpoClipboard';\n\nexport { EventSubscription as Subscription };\n\n/**\n * Gets the content of the user's clipboard. Calling this method on web will prompt\n * the user to grant your app permission to \"see text and images copied to the clipboard.\"\n *\n * Note: On iOS 16+, if the user denies paste permission, this method will return an empty string.\n * Due to iOS platform limitations, there is no way to distinguish between an empty clipboard and denied permission.\n *\n * @param options Options for the clipboard content to be retrieved.\n * @returns A promise that resolves to the content of the clipboard, or an empty string if clipboard is empty or permission was denied.\n */\nexport async function getStringAsync(options: GetStringOptions = {}): Promise<string> {\n if (!ExpoClipboard.getStringAsync) {\n throw new UnavailabilityError('Clipboard', 'getStringAsync');\n }\n return await ExpoClipboard.getStringAsync(options);\n}\n\n/**\n * Sets the content of the user's clipboard.\n *\n * @param text The string to save to the clipboard.\n * @param options Options for the clipboard content to be set.\n * @returns On web, this returns a promise that fulfills to a boolean value indicating whether or not\n * the string was saved to the user's clipboard. On iOS and Android, the promise always resolves to `true`.\n */\nexport async function setStringAsync(\n text: string,\n options: SetStringOptions = {}\n): Promise<boolean> {\n if (!ExpoClipboard.setStringAsync) {\n throw new UnavailabilityError('Clipboard', 'setStringAsync');\n }\n return ExpoClipboard.setStringAsync(text, options);\n}\n\n/**\n * Sets the content of the user's clipboard.\n * @deprecated Use [`setStringAsync()`](#setstringasynctext-options) instead.\n *\n * @returns On web, this returns a boolean value indicating whether or not the string was saved to\n * the user's clipboard. On iOS and Android, nothing is returned.\n */\nexport function setString(text: string): void {\n if (Platform.OS === 'web') {\n // on web, we need to return legacy method,\n // because of different return type\n return ExpoClipboard.setString(text);\n } else {\n setStringAsync(text);\n }\n}\n\n/**\n * Returns whether the clipboard has text content. Returns true for both plain text and rich text (e.g. HTML).\n *\n * On web, this requires the user to grant your app permission to _\"see text and images copied to the clipboard\"_.\n *\n * @returns A promise that fulfills to `true` if clipboard has text content, resolves to `false` otherwise.\n */\nexport function hasStringAsync(): Promise<boolean> {\n if (!ExpoClipboard.hasStringAsync) {\n throw new UnavailabilityError('Clipboard', 'hasStringAsync');\n }\n return ExpoClipboard.hasStringAsync();\n}\n\n/**\n * Gets the URL from the user's clipboard.\n *\n * Note: On iOS 16+, if the user denies paste permission, this method will return null.\n * Due to iOS platform limitations, there is no way to distinguish between no URL in clipboard and denied permission.\n *\n * @returns A promise that fulfills to the URL in the clipboard, or null if no URL is present or permission was denied.\n * @platform ios\n */\nexport async function getUrlAsync(): Promise<string | null> {\n if (!ExpoClipboard.getUrlAsync) {\n throw new UnavailabilityError('Clipboard', 'getUrlAsync');\n }\n return await ExpoClipboard.getUrlAsync();\n}\n\n/**\n * Sets a URL in the user's clipboard.\n *\n * This function behaves the same as [`setStringAsync()`](#setstringasynctext-options), except that\n * it sets the clipboard content type to be a URL. It lets your app or other apps know that the\n * clipboard contains a URL and behave accordingly.\n *\n * @param url The URL to save to the clipboard.\n * @platform ios\n */\nexport async function setUrlAsync(url: string): Promise<void> {\n if (!ExpoClipboard.setUrlAsync) {\n throw new UnavailabilityError('Clipboard', 'setUrlAsync');\n }\n return ExpoClipboard.setUrlAsync(url);\n}\n\n/**\n * Returns whether the clipboard has a URL content.\n *\n * @returns A promise that fulfills to `true` if clipboard has URL content, resolves to `false` otherwise.\n * @platform ios\n */\nexport async function hasUrlAsync(): Promise<boolean> {\n if (!ExpoClipboard.hasUrlAsync) {\n throw new UnavailabilityError('Clipboard', 'hasUrlAsync');\n }\n return await ExpoClipboard.hasUrlAsync();\n}\n\n/**\n * Gets the image from the user's clipboard and returns it in the specified\n * format. Calling this method on web will prompt the user to grant your app\n * permission to \"see text and images copied to the clipboard.\"\n *\n * Note: On iOS 16+, if the user denies paste permission, this method will return null.\n * Due to iOS platform limitations, there is no way to distinguish between no image in clipboard and denied permission.\n *\n * @param options A `GetImageOptions` object to specify the desired format of the image.\n * @returns If there was an image in the clipboard, the promise resolves to\n * a [`ClipboardImage`](#clipboardimage) object containing the base64 string and metadata of the image.\n * Otherwise, it resolves to `null` (this includes cases where permission was denied).\n *\n * @example\n * ```tsx\n * const img = await Clipboard.getImageAsync({ format: 'png' });\n * // ...\n * <Image source={{ uri: img?.data }} style={{ width: 200, height: 200 }} />\n * ```\n */\nexport async function getImageAsync(options: GetImageOptions): Promise<ClipboardImage | null> {\n if (!ExpoClipboard.getImageAsync) {\n throw new UnavailabilityError('Clipboard', 'getImageAsync');\n }\n return await ExpoClipboard.getImageAsync(options);\n}\n\n/**\n * Sets an image in the user's clipboard.\n *\n * @param base64Image Image encoded as a base64 string, without MIME type.\n *\n * @example\n * ```tsx\n * const result = await ImagePicker.launchImageLibraryAsync({\n * mediaTypes: ImagePicker.MediaTypeOptions.Images,\n * base64: true,\n * });\n * await Clipboard.setImageAsync(result.base64);\n * ```\n */\nexport async function setImageAsync(base64Image: string): Promise<void> {\n if (!ExpoClipboard.setImageAsync) {\n throw new UnavailabilityError('Clipboard', 'setImageAsync');\n }\n return ExpoClipboard.setImageAsync(base64Image);\n}\n\n/**\n * Returns whether the clipboard has an image content.\n *\n * On web, this requires the user to grant your app permission to _\"see text and images copied to the clipboard\"_.\n *\n * @returns A promise that fulfills to `true` if clipboard has image content, resolves to `false` otherwise.\n */\nexport async function hasImageAsync(): Promise<boolean> {\n if (!ExpoClipboard.hasImageAsync) {\n throw new UnavailabilityError('Clipboard', 'hasImageAsync');\n }\n return ExpoClipboard.hasImageAsync();\n}\n\n/**\n * Adds a listener that will fire whenever the content of the user's clipboard changes. This method\n * is a no-op on Web.\n *\n * @param listener Callback to execute when listener is triggered. The callback is provided a\n * single argument that is an object containing information about clipboard contents.\n *\n * @example\n * ```typescript\n * Clipboard.addClipboardListener(({ contentTypes }: ClipboardEvent) => {\n * if (contentTypes.includes(Clipboard.ContentType.PLAIN_TEXT)) {\n * Clipboard.getStringAsync().then(content => {\n * alert('Copy pasta! Here\\'s the string that was copied: ' + content)\n * });\n * } else if (contentTypes.includes(Clipboard.ContentType.IMAGE)) {\n * alert('Yay! Clipboard contains an image');\n * }\n * });\n * ```\n */\nexport function addClipboardListener(listener: (event: ClipboardEvent) => void): EventSubscription {\n return ExpoClipboard.addListener(clipboardEventName, listener);\n}\n\n/**\n * Removes the listener added by addClipboardListener. This method is a no-op on Web.\n *\n * @param subscription The subscription to remove (created by addClipboardListener).\n *\n * @example\n * ```typescript\n * const subscription = addClipboardListener(() => {\n * alert('Copy pasta!');\n * });\n * removeClipboardListener(subscription);\n * ```\n */\nexport function removeClipboardListener(subscription: EventSubscription) {\n subscription.remove();\n}\n\n/**\n * Property that determines if the `ClipboardPasteButton` is available.\n *\n * This requires the users device to be using at least iOS 16.\n *\n * `true` if the component is available, and `false` otherwise.\n */\nexport const isPasteButtonAvailable: boolean =\n Platform.OS === 'ios' ? ExpoClipboard.isPasteButtonAvailable : false;\n\nexport * from './Clipboard.types';\nexport { ClipboardPasteButtonProps } from './ClipboardPasteButton';\n\nexport { ClipboardPasteButton };\n"]}
|
|
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IAAI,mBAAmB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,aAAa,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;AAClD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC;QACjC,MAAM,IAAI,mBAAmB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,aAAa,CAAC,aAAa,EAAE,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAyC;IAC5E,OAAO,aAAa,CAAC,WAAW,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;AACjE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,YAA+B;IACrE,YAAY,CAAC,MAAM,EAAE,CAAC;AACxB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GACjC,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC,CAAC,KAAK,CAAC;AAEvE,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import { type EventSubscription, UnavailabilityError, Platform } from 'expo-modules-core';\n\nimport type {\n ClipboardImage,\n ClipboardEvent,\n GetImageOptions,\n GetStringOptions,\n SetStringOptions,\n} from './Clipboard.types';\nimport { ClipboardPasteButton } from './ClipboardPasteButton';\nimport ExpoClipboard, { clipboardEventName } from './ExpoClipboard';\n\nexport { EventSubscription as Subscription };\n\n/**\n * Gets the content of the user's clipboard. Calling this method on web will prompt\n * the user to grant your app permission to \"see text and images copied to the clipboard.\"\n *\n * Note: On iOS 16+, if the user denies paste permission, this method will return an empty string.\n * Due to iOS platform limitations, there is no way to distinguish between an empty clipboard and denied permission.\n *\n * @param options Options for the clipboard content to be retrieved.\n * @returns A promise that resolves to the content of the clipboard, or an empty string if clipboard is empty or permission was denied.\n */\nexport async function getStringAsync(options: GetStringOptions = {}): Promise<string> {\n if (!ExpoClipboard.getStringAsync) {\n throw new UnavailabilityError('Clipboard', 'getStringAsync');\n }\n return await ExpoClipboard.getStringAsync(options);\n}\n\n/**\n * Sets the content of the user's clipboard.\n *\n * @param text The string to save to the clipboard.\n * @param options Options for the clipboard content to be set.\n * @returns On web, this returns a promise that fulfills to a boolean value indicating whether or not\n * the string was saved to the user's clipboard. On iOS and Android, the promise always resolves to `true`.\n */\nexport async function setStringAsync(\n text: string,\n options: SetStringOptions = {}\n): Promise<boolean> {\n if (!ExpoClipboard.setStringAsync) {\n throw new UnavailabilityError('Clipboard', 'setStringAsync');\n }\n return ExpoClipboard.setStringAsync(text, options);\n}\n\n/**\n * Sets the content of the user's clipboard.\n * @deprecated Use [`setStringAsync()`](#setstringasynctext-options) instead.\n *\n * @returns On web, this returns a boolean value indicating whether or not the string was saved to\n * the user's clipboard. On iOS and Android, nothing is returned.\n */\nexport function setString(text: string): void {\n if (Platform.OS === 'web') {\n // on web, we need to return legacy method,\n // because of different return type\n return ExpoClipboard.setString(text);\n } else {\n setStringAsync(text);\n }\n}\n\n/**\n * Returns whether the clipboard has text content. Returns true for both plain text and rich text (e.g. HTML).\n *\n * On web, this requires the user to grant your app permission to _\"see text and images copied to the clipboard\"_.\n *\n * @returns A promise that fulfills to `true` if clipboard has text content, resolves to `false` otherwise.\n */\nexport function hasStringAsync(): Promise<boolean> {\n if (!ExpoClipboard.hasStringAsync) {\n throw new UnavailabilityError('Clipboard', 'hasStringAsync');\n }\n return ExpoClipboard.hasStringAsync();\n}\n\n/**\n * Gets the URL from the user's clipboard.\n *\n * Note: On iOS 16+, if the user denies paste permission, this method will return null.\n * Due to iOS platform limitations, there is no way to distinguish between no URL in clipboard and denied permission.\n *\n * @returns A promise that fulfills to the URL in the clipboard, or null if no URL is present or permission was denied.\n * @platform ios\n */\nexport async function getUrlAsync(): Promise<string | null> {\n if (!ExpoClipboard.getUrlAsync) {\n throw new UnavailabilityError('Clipboard', 'getUrlAsync');\n }\n return await ExpoClipboard.getUrlAsync();\n}\n\n/**\n * Sets a URL in the user's clipboard.\n *\n * This function behaves the same as [`setStringAsync()`](#setstringasynctext-options), except that\n * it sets the clipboard content type to be a URL. It lets your app or other apps know that the\n * clipboard contains a URL and behave accordingly.\n *\n * @param url The URL to save to the clipboard.\n * @platform ios\n */\nexport async function setUrlAsync(url: string): Promise<void> {\n if (!ExpoClipboard.setUrlAsync) {\n throw new UnavailabilityError('Clipboard', 'setUrlAsync');\n }\n return ExpoClipboard.setUrlAsync(url);\n}\n\n/**\n * Returns whether the clipboard has a URL content.\n *\n * @returns A promise that fulfills to `true` if clipboard has URL content, resolves to `false` otherwise.\n * @platform ios\n */\nexport async function hasUrlAsync(): Promise<boolean> {\n if (!ExpoClipboard.hasUrlAsync) {\n throw new UnavailabilityError('Clipboard', 'hasUrlAsync');\n }\n return await ExpoClipboard.hasUrlAsync();\n}\n\n/**\n * Gets the image from the user's clipboard and returns it in the specified\n * format. Calling this method on web will prompt the user to grant your app\n * permission to \"see text and images copied to the clipboard.\"\n *\n * Note: On iOS 16+, if the user denies paste permission, this method will return null.\n * Due to iOS platform limitations, there is no way to distinguish between no image in clipboard and denied permission.\n *\n * @param options A `GetImageOptions` object to specify the desired format of the image.\n * @returns If there was an image in the clipboard, the promise resolves to\n * a [`ClipboardImage`](#clipboardimage) object containing the base64 string and metadata of the image.\n * Otherwise, it resolves to `null` (this includes cases where permission was denied).\n *\n * @example\n * ```tsx\n * const img = await Clipboard.getImageAsync({ format: 'png' });\n * // ...\n * <Image source={{ uri: img?.data }} style={{ width: 200, height: 200 }} />\n * ```\n */\nexport async function getImageAsync(options: GetImageOptions): Promise<ClipboardImage | null> {\n if (!ExpoClipboard.getImageAsync) {\n throw new UnavailabilityError('Clipboard', 'getImageAsync');\n }\n return await ExpoClipboard.getImageAsync(options);\n}\n\n/**\n * Sets an image in the user's clipboard.\n *\n * @param base64Image Image encoded as a base64 string, without MIME type.\n *\n * @example\n * ```tsx\n * const result = await ImagePicker.launchImageLibraryAsync({\n * mediaTypes: ImagePicker.MediaTypeOptions.Images,\n * base64: true,\n * });\n * await Clipboard.setImageAsync(result.base64);\n * ```\n */\nexport async function setImageAsync(base64Image: string): Promise<void> {\n if (!ExpoClipboard.setImageAsync) {\n throw new UnavailabilityError('Clipboard', 'setImageAsync');\n }\n return ExpoClipboard.setImageAsync(base64Image);\n}\n\n/**\n * Returns whether the clipboard has an image content.\n *\n * On web, this requires the user to grant your app permission to _\"see text and images copied to the clipboard\"_.\n *\n * @returns A promise that fulfills to `true` if clipboard has image content, resolves to `false` otherwise.\n */\nexport async function hasImageAsync(): Promise<boolean> {\n if (!ExpoClipboard.hasImageAsync) {\n throw new UnavailabilityError('Clipboard', 'hasImageAsync');\n }\n return ExpoClipboard.hasImageAsync();\n}\n\n/**\n * Adds a listener that will fire whenever the content of the user's clipboard changes. This method\n * is a no-op on Web.\n *\n * @param listener Callback to execute when listener is triggered. The callback is provided a\n * single argument that is an object containing information about clipboard contents.\n *\n * @example\n * ```typescript\n * Clipboard.addClipboardListener(({ contentTypes }: ClipboardEvent) => {\n * if (contentTypes.includes(Clipboard.ContentType.PLAIN_TEXT)) {\n * Clipboard.getStringAsync().then(content => {\n * alert('Copy pasta! Here\\'s the string that was copied: ' + content)\n * });\n * } else if (contentTypes.includes(Clipboard.ContentType.IMAGE)) {\n * alert('Yay! Clipboard contains an image');\n * }\n * });\n * ```\n */\nexport function addClipboardListener(listener: (event: ClipboardEvent) => void): EventSubscription {\n return ExpoClipboard.addListener(clipboardEventName, listener);\n}\n\n/**\n * Removes the listener added by addClipboardListener. This method is a no-op on Web.\n * @deprecated use subscription.remove() instead.\n */\nexport function removeClipboardListener(subscription: EventSubscription) {\n subscription.remove();\n}\n\n/**\n * Property that determines if the `ClipboardPasteButton` is available.\n *\n * This requires the users device to be using at least iOS 16.\n *\n * `true` if the component is available, and `false` otherwise.\n */\nexport const isPasteButtonAvailable: boolean =\n Platform.OS === 'ios' ? ExpoClipboard.isPasteButtonAvailable : false;\n\nexport * from './Clipboard.types';\nexport { ClipboardPasteButtonProps } from './ClipboardPasteButton';\n\nexport { ClipboardPasteButton };\n"]}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.clipboard",
|
|
6
|
-
"version": "55.0.
|
|
6
|
+
"version": "55.0.3",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.clipboard-55.0.
|
|
28
|
-
"url": "expo.modules.clipboard-55.0.
|
|
27
|
+
"name": "expo.modules.clipboard-55.0.3.aar",
|
|
28
|
+
"url": "expo.modules.clipboard-55.0.3.aar",
|
|
29
29
|
"size": 72388,
|
|
30
30
|
"sha512": "5f13756a7c4e1843466e2aa2fe631ebc8825cb4966daf82b676b130331ad9c0e9ba7ae644cad09c9e7e1581df46d41962557a499d04a46d52da7e990518c079b",
|
|
31
31
|
"sha256": "3bed5e9d6cf1ba01f0824b9c0e061ed2dd0df0306a5817b4f58fb8f4bfb6f007",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
],
|
|
75
75
|
"files": [
|
|
76
76
|
{
|
|
77
|
-
"name": "expo.modules.clipboard-55.0.
|
|
78
|
-
"url": "expo.modules.clipboard-55.0.
|
|
77
|
+
"name": "expo.modules.clipboard-55.0.3.aar",
|
|
78
|
+
"url": "expo.modules.clipboard-55.0.3.aar",
|
|
79
79
|
"size": 72388,
|
|
80
80
|
"sha512": "5f13756a7c4e1843466e2aa2fe631ebc8825cb4966daf82b676b130331ad9c0e9ba7ae644cad09c9e7e1581df46d41962557a499d04a46d52da7e990518c079b",
|
|
81
81
|
"sha256": "3bed5e9d6cf1ba01f0824b9c0e061ed2dd0df0306a5817b4f58fb8f4bfb6f007",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
},
|
|
95
95
|
"files": [
|
|
96
96
|
{
|
|
97
|
-
"name": "expo.modules.clipboard-55.0.
|
|
98
|
-
"url": "expo.modules.clipboard-55.0.
|
|
97
|
+
"name": "expo.modules.clipboard-55.0.3-sources.jar",
|
|
98
|
+
"url": "expo.modules.clipboard-55.0.3-sources.jar",
|
|
99
99
|
"size": 11576,
|
|
100
100
|
"sha512": "6591533b2ca78e1dc3efeee53b044232caa7fa724ade2dc7cbe2e7762b5762cbd907ca92b2b25b9e562f1c9930b8ca54efa9b1f02b998c212fdf80ddf9e47344",
|
|
101
101
|
"sha256": "96bbc0e6a2e01e9a3872bf662def91538c601d7973a072053734416c83f27319",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
93b3d7c3ac1eb45b246256f56a62911a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0720aa918129d3be70e25cca3548184fdb33a5d4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c275b23ac63a9b4856c722c554bb865aeae0f3fc65674d9c44d05481619e5185
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
375f0671f6e11faa2ec42739af18f1299923a5717c05d985c075b54f31ea013ec5f3c091a92128689703387141adfa0e4f17caa0f1fdc84cf7e1cecedeaa6afd
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.clipboard</artifactId>
|
|
12
|
-
<version>55.0.
|
|
12
|
+
<version>55.0.3</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.clipboard</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0c3ea2a7345266ee668913fce009af55
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eab7b70558ae36000ff91b351314e4db589b8d4f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3c9e0f7ab9480f08b2d14e61aed5d6f6b0853c04a5ea71cd654244473e20b892
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18e8951ecfc32023745436e3f505e3d9d9a8d543e7a2dfa9f071d06ad8771742677ec2e5d84dfdbb762f4bea0efc2b3677ba1e31f6b6b60a64d3974735596607
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.clipboard</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>55.0.
|
|
7
|
-
<release>55.0.
|
|
6
|
+
<latest>55.0.3</latest>
|
|
7
|
+
<release>55.0.3</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>55.0.
|
|
9
|
+
<version>55.0.3</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20260127201432</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6215942a97a1d1d253a001768a0984e9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
97f3a4c95bf3a365ba8ed8025ab4cbf3b4168a64
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d69583ce7e98b65e32b92e9c6e561f2d929256a98270f210a1355b0280de7aff
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a974b8b05de1fa275f4ae9ea80c89d7f63e7005da96c7d4e0d0f53326fd80eb0f778361e64f49cffb4cc338abd89c8e523f7db0a1a38d9e489e8609d347d8377
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-clipboard",
|
|
3
|
-
"version": "55.0.
|
|
3
|
+
"version": "55.0.3",
|
|
4
4
|
"description": "Provides an interface for getting and setting Clipboard content on Android, iOS and Web.",
|
|
5
5
|
"main": "build/Clipboard.js",
|
|
6
6
|
"types": "build/Clipboard.d.ts",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"jest": {
|
|
42
42
|
"preset": "expo-module-scripts/universal"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "220594d473a3100248087151004ae4acb7282d5f"
|
|
45
45
|
}
|
package/src/Clipboard.ts
CHANGED
|
@@ -212,16 +212,7 @@ export function addClipboardListener(listener: (event: ClipboardEvent) => void):
|
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* Removes the listener added by addClipboardListener. This method is a no-op on Web.
|
|
215
|
-
*
|
|
216
|
-
* @param subscription The subscription to remove (created by addClipboardListener).
|
|
217
|
-
*
|
|
218
|
-
* @example
|
|
219
|
-
* ```typescript
|
|
220
|
-
* const subscription = addClipboardListener(() => {
|
|
221
|
-
* alert('Copy pasta!');
|
|
222
|
-
* });
|
|
223
|
-
* removeClipboardListener(subscription);
|
|
224
|
-
* ```
|
|
215
|
+
* @deprecated use subscription.remove() instead.
|
|
225
216
|
*/
|
|
226
217
|
export function removeClipboardListener(subscription: EventSubscription) {
|
|
227
218
|
subscription.remove();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1ae8539df29de1489588f389dee9e908
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
54d20a7e9b08c6201915b28d953a4695f2d1f0a6
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c3058bd3adb53cc0746a71be0b45acb52badac651e98b6365a26bc0a41aac47a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
30bce34fe5cab2bdd48cab5111030f32e6ed567f97a6bcd635804df3e7d30876d09cb699d323ee0aed6d0f0fabc14b552ae816d5948e67ff8332a198026ff953
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
914347a1af1d01b0896f6818228ba9ee
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
43596a3980279e2a98ec6d30bca526f46523465d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0b5bcac490375d7dd62c65532d0ff2c59280c2de0b32b19fea054d68f9455a9d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
daddd389efdbe52452253928a434a09afb3688475eaa0396759c5cfd6dd223531411145eea98ce129c72c4ae9722a2eff892ee67463bc1fc736d9acd85b239b1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|