zmp-sdk 2.43.1 → 2.43.2
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/apis/apis/openShareSheet.js +1 -1
- package/apis/index.d.ts +5 -5
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +5 -5
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t,{object as o,string as n,number as
|
|
1
|
+
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t,{object as o,string as n,number as i}from'./../external/zod/lib/index.mjs.js';import r from"../appEnv/index.js";import a from"../common/notFound.js";import{functionHandler as l}from"../utils/decorator.js";import p from"../common/apis/general/openShareSheet.js";import{__generator as m}from'./../external/tslib/tslib.es6.js';var s=[t.union([o({type:t.enum(["text"]),data:o({text:n(),description:n().default("").optional(),autoParseLink:t.boolean().default(!1).optional()})}),o({type:t.enum(["image"]),data:o({imageUrl:n().url().optional(),imageUrls:t.array(n().url()).max(10).optional()})}),o({type:t.enum(["link"]),data:o({link:n().url(),chatOnly:t.boolean().optional()})}),o({type:t.enum(["oa"]),data:o({id:n()})}),o({type:t.enum(["gif"]),data:o({gifUrl:n().url(),imageUrl:n().url().optional(),width:i().min(0).optional(),height:i().min(0).optional()})}),o({type:t.enum(["video"]),data:o({videoThumb:n().url(),videoUrl:n().url(),width:i().min(0).optional(),height:i().min(0).optional()})}),o({type:t.enum(["zmp","zmp_deep_link"]),data:o({title:n().max(100),thumbnail:n().url(),path:n().optional(),description:n().max(400).default("").optional()})})])];function u(e){return d.apply(this,arguments)}function d(){return d=e((function(t){return m(this,(function(o){return[2,l("openShareSheet",s,[t],(n=e((function(e){var t,o;return m(this,(function(n){switch(n.label){case 0:return r.isMp?(t=e.type,o=e.data,[4,p(t,o)]):[3,2];case 1:return[2,n.sent()];case 2:return r.isMpWeb?[2,Promise.resolve({status:2,shareType:0,numberOfUser:0})]:[2,Promise.reject(a("openShareSheet",{}))]}}))})),function(e){return n.apply(this,arguments)}))];var n}))})),d.apply(this,arguments)}export{u as openShareSheet};
|
package/apis/index.d.ts
CHANGED
|
@@ -2365,25 +2365,25 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
2365
2365
|
}>, ZodObject<{
|
|
2366
2366
|
type: ZodEnum<["image"]>;
|
|
2367
2367
|
data: ZodObject<{
|
|
2368
|
-
imageUrl: ZodString
|
|
2368
|
+
imageUrl: ZodOptional<ZodString>;
|
|
2369
2369
|
imageUrls: ZodOptional<ZodArray<ZodString, "many">>;
|
|
2370
2370
|
}, "strip", ZodTypeAny, {
|
|
2371
|
+
imageUrl?: string | undefined;
|
|
2371
2372
|
imageUrls?: string[] | undefined;
|
|
2372
|
-
imageUrl: string;
|
|
2373
2373
|
}, {
|
|
2374
|
+
imageUrl?: string | undefined;
|
|
2374
2375
|
imageUrls?: string[] | undefined;
|
|
2375
|
-
imageUrl: string;
|
|
2376
2376
|
}>;
|
|
2377
2377
|
}, "strip", ZodTypeAny, {
|
|
2378
2378
|
data: {
|
|
2379
|
+
imageUrl?: string | undefined;
|
|
2379
2380
|
imageUrls?: string[] | undefined;
|
|
2380
|
-
imageUrl: string;
|
|
2381
2381
|
};
|
|
2382
2382
|
type: "image";
|
|
2383
2383
|
}, {
|
|
2384
2384
|
data: {
|
|
2385
|
+
imageUrl?: string | undefined;
|
|
2385
2386
|
imageUrls?: string[] | undefined;
|
|
2386
|
-
imageUrl: string;
|
|
2387
2387
|
};
|
|
2388
2388
|
type: "image";
|
|
2389
2389
|
}>, ZodObject<{
|
package/apis/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var r="2.43.
|
|
1
|
+
var r="2.43.2";export{r as version};
|