@devvit/client 0.12.1-next-2025-08-27-16-48-26-12abcb3e4.0 → 0.12.1-next-2025-08-27-17-13-20-c03dd2437.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.
@@ -1,8 +1,12 @@
1
1
  export type ShareSheetOpts = {
2
+ /** Data to share. Must be 1024 characters or less. */
2
3
  data?: string | undefined;
4
+ /** Title of share sheet. */
3
5
  title?: string | undefined;
6
+ /** Body text of share sheet. */
4
7
  text?: string | undefined;
5
8
  };
9
+ /** Show the native share sheet or copy to clipboard depending on device. */
6
10
  export declare function showShareSheet(opts: Readonly<ShareSheetOpts>): Promise<void>;
7
11
  export declare function getShareData(): string | undefined;
8
12
  //# sourceMappingURL=share.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../src/effects/share.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG;IAE3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAIF,wBAAsB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBlF;AAED,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAEjD"}
1
+ {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../src/effects/share.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG;IAC3B,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAIF,4EAA4E;AAC5E,wBAAsB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBlF;AAED,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAEjD"}
package/effects/share.js CHANGED
@@ -3,6 +3,7 @@ import { maxShareParamUserDataChars } from '@devvit/shared-types/client/share.js
3
3
  import { ICON_FILE_PATH } from '@devvit/shared-types/constants.js';
4
4
  // to-do: unit test.
5
5
  // to-do: move to web view scripts.
6
+ /** Show the native share sheet or copy to clipboard depending on device. */
6
7
  export async function showShareSheet(opts) {
7
8
  if (opts.data && opts.data.length > maxShareParamUserDataChars)
8
9
  throw Error(`data must be <= ${maxShareParamUserDataChars} characters but was ${opts.data.length} characters`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/client",
3
- "version": "0.12.1-next-2025-08-27-16-48-26-12abcb3e4.0",
3
+ "version": "0.12.1-next-2025-08-27-17-13-20-c03dd2437.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,15 +32,15 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "dependencies": {
35
- "@devvit/protos": "0.12.1-next-2025-08-27-16-48-26-12abcb3e4.0",
36
- "@devvit/shared": "0.12.1-next-2025-08-27-16-48-26-12abcb3e4.0",
37
- "@devvit/shared-types": "0.12.1-next-2025-08-27-16-48-26-12abcb3e4.0",
38
- "@devvit/web-view-scripts": "0.12.1-next-2025-08-27-16-48-26-12abcb3e4.0"
35
+ "@devvit/protos": "0.12.1-next-2025-08-27-17-13-20-c03dd2437.0",
36
+ "@devvit/shared": "0.12.1-next-2025-08-27-17-13-20-c03dd2437.0",
37
+ "@devvit/shared-types": "0.12.1-next-2025-08-27-17-13-20-c03dd2437.0",
38
+ "@devvit/web-view-scripts": "0.12.1-next-2025-08-27-17-13-20-c03dd2437.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ampproject/filesize": "4.3.0",
42
- "@devvit/repo-tools": "0.12.1-next-2025-08-27-16-48-26-12abcb3e4.0",
43
- "@devvit/tsconfig": "0.12.1-next-2025-08-27-16-48-26-12abcb3e4.0",
42
+ "@devvit/repo-tools": "0.12.1-next-2025-08-27-17-13-20-c03dd2437.0",
43
+ "@devvit/tsconfig": "0.12.1-next-2025-08-27-17-13-20-c03dd2437.0",
44
44
  "esbuild": "0.23.0",
45
45
  "eslint": "9.11.1",
46
46
  "typescript": "5.8.3",
@@ -53,5 +53,5 @@
53
53
  }
54
54
  },
55
55
  "source": "./src/index.ts",
56
- "gitHead": "82efad296bf851d9033aee533ee99f500355e307"
56
+ "gitHead": "a2cdbc1dcebbd054ecd3ab6080a22e4dfa3f61da"
57
57
  }