calmlens 0.19.0 → 0.20.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.
- package/bin/calmlens.js +293 -18
- package/{esm/BrowserUpload-RkxV_Vv7.d.ts → cjs/BrowserUpload-C07aL9Vq.d.ts} +2 -2
- package/cjs/{BrowserUpload-CJ4Xc9bR.js → BrowserUpload-CjSHjx3C.js} +1 -1
- package/{esm/CalmLensAppClient-B5gfOB6J.d.ts → cjs/CalmLensAppClient-DDLojj0P.d.ts} +1 -1
- package/cjs/{CalmLensAppClient-LHMEQ-UZ.js → CalmLensAppClient-NaCxOVlM.js} +2 -2
- package/cjs/{CalmLensOptionKeys-BUj7v5AG.js → CalmLensOptionKeys-p2QK687A.js} +63 -2
- package/cjs/{CalmLensServerClient-BVOEUT_v.js → CalmLensServerClient-BDzTthxE.js} +12 -7
- package/cjs/{CalmLensServerClient-DCSbwIBs.d.ts → CalmLensServerClient-C-jsjn8m.d.ts} +4 -4
- package/cjs/{CalmLensTypes-DpU-hXq2.d.ts → CalmLensTypes-COJbOuiv.d.ts} +2 -2
- package/cjs/{ModerationContextLimits-FDpQmw_T.js → ModerationContextLimits-2nIv7Zh3.js} +304 -12
- package/cjs/{ReactUpload-BvpW4hJi.js → ReactUpload-BdTRCTGA.js} +1 -1
- package/cjs/{ReactUpload-huIMnOJ4.d.ts → ReactUpload-CRJNPB5T.d.ts} +1 -1
- package/cjs/{TestTriggers-CMwMrbjy-K0YBzu2a.js → TestTriggers-DbhsNPdg-DjvVuc2h.js} +2 -2
- package/cjs/{UploadController-D4qOZZc3.js → UploadController-MLVs97Zt.js} +2 -2
- package/cjs/{WebhookPayload-CQg8BBZQ.d.ts → WebhookPayload-DkukERKE.d.ts} +1 -1
- package/cjs/app.d.ts +4 -4
- package/cjs/app.js +2 -2
- package/cjs/elements.d.ts +2 -2
- package/cjs/elements.js +3 -3
- package/{esm/index-BcDDQJF2.d.ts → cjs/index-DxbJ_Xaa.d.ts} +2 -2
- package/cjs/index.d.ts +3 -3
- package/cjs/index.js +1 -1
- package/cjs/react-native.d.ts +2 -2
- package/cjs/react-native.js +3 -3
- package/cjs/react.d.ts +2 -2
- package/cjs/react.js +4 -4
- package/cjs/server.d.ts +4 -4
- package/cjs/server.js +2 -2
- package/cjs/test-inputs.js +9 -9
- package/cjs/testing.d.ts +10 -7
- package/cjs/testing.js +121 -18
- package/cjs/{ui-B23r8BvW.d.ts → ui-BSqPGKrZ.d.ts} +2 -2
- package/cjs/{ui-Dq-cm6Rx.js → ui-CX1z2pD9.js} +2 -2
- package/cjs/ui.d.ts +1 -1
- package/cjs/ui.js +2 -2
- package/cjs/vue.d.ts +4 -4
- package/cjs/vue.js +3 -3
- package/{cjs/BrowserUpload-RkxV_Vv7.d.ts → esm/BrowserUpload-C07aL9Vq.d.ts} +2 -2
- package/esm/{BrowserUpload-DpzS2bbj.js → BrowserUpload-CAVkRotw.js} +1 -1
- package/{cjs/CalmLensAppClient-B5gfOB6J.d.ts → esm/CalmLensAppClient-DDLojj0P.d.ts} +1 -1
- package/esm/{CalmLensAppClient-BjlvBweS.js → CalmLensAppClient-PQ9VBvlW.js} +2 -2
- package/esm/{CalmLensOptionKeys-BKez0Wiw.js → CalmLensOptionKeys-Do2mPP6w.js} +58 -3
- package/esm/{CalmLensServerClient-DCSbwIBs.d.ts → CalmLensServerClient-C-jsjn8m.d.ts} +4 -4
- package/esm/{CalmLensServerClient-DemxbNMn.js → CalmLensServerClient-C_H5aAsV.js} +12 -7
- package/esm/{CalmLensTypes-DpU-hXq2.d.ts → CalmLensTypes-COJbOuiv.d.ts} +2 -2
- package/esm/{ModerationContextLimits-lLfmyLni.js → ModerationContextLimits-Chw-AzgL.js} +291 -11
- package/esm/{ReactUpload-6klucehl.js → ReactUpload-CMmL0R5Q.js} +1 -1
- package/esm/{ReactUpload-huIMnOJ4.d.ts → ReactUpload-CRJNPB5T.d.ts} +1 -1
- package/esm/{TestTriggers-CMwMrbjy-bdowBBKw.js → TestTriggers-DbhsNPdg-CUdrv8Nm.js} +2 -2
- package/esm/{UploadController-UxP6gj7A.js → UploadController-BJZghJpg.js} +2 -2
- package/esm/{WebhookPayload-CQg8BBZQ.d.ts → WebhookPayload-DkukERKE.d.ts} +1 -1
- package/esm/app.d.ts +4 -4
- package/esm/app.js +2 -2
- package/esm/elements.d.ts +2 -2
- package/esm/elements.js +3 -3
- package/{cjs/index-BcDDQJF2.d.ts → esm/index-DxbJ_Xaa.d.ts} +2 -2
- package/esm/index.d.ts +3 -3
- package/esm/index.js +1 -1
- package/esm/react-native.d.ts +2 -2
- package/esm/react-native.js +3 -3
- package/esm/react.d.ts +2 -2
- package/esm/react.js +4 -4
- package/esm/server.d.ts +4 -4
- package/esm/server.js +2 -2
- package/esm/test-inputs.js +1 -1
- package/esm/testing.d.ts +10 -7
- package/esm/testing.js +118 -15
- package/esm/{ui-B23r8BvW.d.ts → ui-BSqPGKrZ.d.ts} +2 -2
- package/esm/{ui-Bn29rfAi.js → ui-CXH7xJpb.js} +2 -2
- package/esm/ui.d.ts +1 -1
- package/esm/ui.js +2 -2
- package/esm/vue.d.ts +4 -4
- package/esm/vue.js +3 -3
- package/package.json +1 -1
|
@@ -450,7 +450,7 @@ const API_ERROR_DEFINITIONS = {
|
|
|
450
450
|
},
|
|
451
451
|
"policy/used-by-another-project": {
|
|
452
452
|
status: 409,
|
|
453
|
-
message: "Another project uses
|
|
453
|
+
message: "Another project uses this policy, so it can only be changed from the portal or that project."
|
|
454
454
|
},
|
|
455
455
|
"policy/no-preset": {
|
|
456
456
|
status: 400,
|
|
@@ -466,7 +466,7 @@ const API_ERROR_DEFINITIONS = {
|
|
|
466
466
|
},
|
|
467
467
|
"policy/automatic-updates-unavailable": {
|
|
468
468
|
status: 409,
|
|
469
|
-
message: "Automatic updates can only be switched on for a saved copy of
|
|
469
|
+
message: "Automatic updates can only be switched on for a saved copy of one of the organisation's own preset policies, and off for one that has them."
|
|
470
470
|
},
|
|
471
471
|
"upload-preset/not-found": {
|
|
472
472
|
status: 404,
|
|
@@ -656,7 +656,7 @@ const invalidArgument = (message, details) => new CalmLensError(SDK_ERROR_CODES.
|
|
|
656
656
|
details
|
|
657
657
|
});
|
|
658
658
|
const invalidConfig = (message) => new CalmLensError(SDK_ERROR_CODES.INVALID_CONFIG, { message });
|
|
659
|
-
// src/contract/SharedConstants-
|
|
659
|
+
// src/contract/SharedConstants-DxUCZwLZ.js
|
|
660
660
|
const IMPERSONATION_COOKIE_NAME = "CL_impersonation";
|
|
661
661
|
const DAY_MS = 864e5;
|
|
662
662
|
const YEAR_MS = 365 * DAY_MS;
|
|
@@ -857,7 +857,156 @@ const MAX_IMAGE_UPLOAD_BYTES = /* @__PURE__ */ (() => 20971520)();
|
|
|
857
857
|
const MAX_DIRECT_IMAGE_UPLOAD_BYTES = /* @__PURE__ */ (() => 10485760)();
|
|
858
858
|
const MAX_NON_IMAGE_UPLOAD_MB = 5e3;
|
|
859
859
|
const MAX_NON_IMAGE_UPLOAD_BYTES = /* @__PURE__ */ (() => MAX_NON_IMAGE_UPLOAD_MB * 1024 * 1024)();
|
|
860
|
-
const
|
|
860
|
+
const normalizeUploadMimeType = (mimeType) => mimeType.toLowerCase().split(";")[0]?.trim() || mimeType.toLowerCase().trim();
|
|
861
|
+
const getRejectedUploadMimeTypeError = (mimeType) => `${normalizeUploadMimeType(mimeType)} is not a valid upload file type. Uploads must use a concrete file MIME type that CalmLens can store and process, such as image/png, image/jpeg, application/pdf, or text/plain.`;
|
|
862
|
+
const DOMAIN = "calmlens.com";
|
|
863
|
+
// src/client/CalmLensTransformSchema.ts
|
|
864
|
+
/** The image transform options' schema, with only the rules the SDK checks. */
|
|
865
|
+
const TRANSFORM_OPTIONS_SCHEMA = {
|
|
866
|
+
type: "object",
|
|
867
|
+
properties: {
|
|
868
|
+
format: {
|
|
869
|
+
type: "string",
|
|
870
|
+
enum: [
|
|
871
|
+
"jpg",
|
|
872
|
+
"png",
|
|
873
|
+
"webp",
|
|
874
|
+
"avif",
|
|
875
|
+
"gif"
|
|
876
|
+
]
|
|
877
|
+
},
|
|
878
|
+
width: {
|
|
879
|
+
type: "integer",
|
|
880
|
+
minimum: 1,
|
|
881
|
+
maximum: 1e4
|
|
882
|
+
},
|
|
883
|
+
height: {
|
|
884
|
+
type: "integer",
|
|
885
|
+
minimum: 1,
|
|
886
|
+
maximum: 1e4
|
|
887
|
+
},
|
|
888
|
+
dpr: {
|
|
889
|
+
type: "number",
|
|
890
|
+
minimum: 1,
|
|
891
|
+
maximum: 3
|
|
892
|
+
},
|
|
893
|
+
anim: { type: "boolean" },
|
|
894
|
+
background: { type: "string" },
|
|
895
|
+
blur: { type: "number" },
|
|
896
|
+
redact: {
|
|
897
|
+
type: "object",
|
|
898
|
+
properties: {
|
|
899
|
+
text: { type: "boolean" },
|
|
900
|
+
personalInformation: { type: "boolean" },
|
|
901
|
+
faces: { type: "boolean" }
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
border: {
|
|
905
|
+
type: "object",
|
|
906
|
+
properties: {
|
|
907
|
+
color: { type: "string" },
|
|
908
|
+
width: { type: "number" }
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
brightness: { type: "number" },
|
|
912
|
+
contrast: { type: "number" },
|
|
913
|
+
quality: { oneOf: [{
|
|
914
|
+
type: "integer",
|
|
915
|
+
minimum: 1,
|
|
916
|
+
maximum: 100
|
|
917
|
+
}, {
|
|
918
|
+
type: "string",
|
|
919
|
+
enum: [
|
|
920
|
+
"low",
|
|
921
|
+
"medium",
|
|
922
|
+
"high"
|
|
923
|
+
]
|
|
924
|
+
}] },
|
|
925
|
+
fit: {
|
|
926
|
+
type: "string",
|
|
927
|
+
enum: [
|
|
928
|
+
"scale-down",
|
|
929
|
+
"contain",
|
|
930
|
+
"pad",
|
|
931
|
+
"squeeze",
|
|
932
|
+
"cover",
|
|
933
|
+
"crop"
|
|
934
|
+
]
|
|
935
|
+
},
|
|
936
|
+
flip: {
|
|
937
|
+
type: "string",
|
|
938
|
+
enum: [
|
|
939
|
+
"h",
|
|
940
|
+
"v",
|
|
941
|
+
"hv"
|
|
942
|
+
]
|
|
943
|
+
},
|
|
944
|
+
gamma: { type: "number" },
|
|
945
|
+
segment: {
|
|
946
|
+
type: "string",
|
|
947
|
+
enum: ["foreground"]
|
|
948
|
+
},
|
|
949
|
+
gravity: { oneOf: [{
|
|
950
|
+
type: "string",
|
|
951
|
+
enum: [
|
|
952
|
+
"face",
|
|
953
|
+
"left",
|
|
954
|
+
"right",
|
|
955
|
+
"top",
|
|
956
|
+
"bottom",
|
|
957
|
+
"center",
|
|
958
|
+
"auto",
|
|
959
|
+
"entropy"
|
|
960
|
+
]
|
|
961
|
+
}, {
|
|
962
|
+
type: "object",
|
|
963
|
+
properties: {
|
|
964
|
+
mode: {
|
|
965
|
+
type: "string",
|
|
966
|
+
enum: ["remainder", "box-center"]
|
|
967
|
+
},
|
|
968
|
+
x: { type: "number" },
|
|
969
|
+
y: { type: "number" }
|
|
970
|
+
},
|
|
971
|
+
required: ["mode"]
|
|
972
|
+
}] },
|
|
973
|
+
rotate: {
|
|
974
|
+
type: "integer",
|
|
975
|
+
enum: [
|
|
976
|
+
0,
|
|
977
|
+
90,
|
|
978
|
+
180,
|
|
979
|
+
270
|
|
980
|
+
]
|
|
981
|
+
},
|
|
982
|
+
saturation: { type: "number" },
|
|
983
|
+
sharpen: { type: "number" },
|
|
984
|
+
trim: { oneOf: [{
|
|
985
|
+
type: "string",
|
|
986
|
+
enum: ["border"]
|
|
987
|
+
}, {
|
|
988
|
+
type: "object",
|
|
989
|
+
properties: {
|
|
990
|
+
top: { type: "number" },
|
|
991
|
+
bottom: { type: "number" },
|
|
992
|
+
left: { type: "number" },
|
|
993
|
+
right: { type: "number" },
|
|
994
|
+
width: { type: "number" },
|
|
995
|
+
height: { type: "number" },
|
|
996
|
+
border: { oneOf: [{ type: "boolean" }, {
|
|
997
|
+
type: "object",
|
|
998
|
+
properties: {
|
|
999
|
+
color: { type: "string" },
|
|
1000
|
+
tolerance: { type: "number" },
|
|
1001
|
+
keep: { type: "number" }
|
|
1002
|
+
}
|
|
1003
|
+
}] }
|
|
1004
|
+
}
|
|
1005
|
+
}] }
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
// src/client/CalmLensUploadMimeTypes.ts
|
|
1009
|
+
const UPLOAD_MIME_REJECTED = [
|
|
861
1010
|
"application/octet-stream",
|
|
862
1011
|
"multipart/form-data",
|
|
863
1012
|
"multipart/mixed",
|
|
@@ -865,11 +1014,27 @@ const REJECTED_UPLOAD_MIME_TYPE_SET = /* @__PURE__ */ new Set([
|
|
|
865
1014
|
"multipart/related",
|
|
866
1015
|
"multipart/signed",
|
|
867
1016
|
"multipart/encrypted"
|
|
868
|
-
]
|
|
869
|
-
const
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
1017
|
+
];
|
|
1018
|
+
const UPLOAD_MIME_PREFIXES = [
|
|
1019
|
+
"image/",
|
|
1020
|
+
"video/",
|
|
1021
|
+
"audio/",
|
|
1022
|
+
"text/"
|
|
1023
|
+
];
|
|
1024
|
+
const UPLOAD_MIME_SUFFIXES = ["+json", "+xml"];
|
|
1025
|
+
const UPLOAD_MIME_TYPES = [
|
|
1026
|
+
"application/pdf",
|
|
1027
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
1028
|
+
"application/msword",
|
|
1029
|
+
"application/rtf",
|
|
1030
|
+
"application/vnd.oasis.opendocument.text",
|
|
1031
|
+
"application/javascript",
|
|
1032
|
+
"application/json",
|
|
1033
|
+
"application/x-javascript",
|
|
1034
|
+
"application/x-yaml",
|
|
1035
|
+
"application/xml",
|
|
1036
|
+
"application/yaml"
|
|
1037
|
+
];
|
|
873
1038
|
// src/client/CalmLensViewerClaims.ts
|
|
874
1039
|
/** The ISO 3166-1 alpha-2 countries a viewer's `region` can be. EU is not a viewer country. */
|
|
875
1040
|
const VIEWER_COUNTRIES = new Set("AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "));
|
|
@@ -1036,6 +1201,16 @@ const encodePathSegment = (value, name) => {
|
|
|
1036
1201
|
if (value === "." || value === "..") throw invalidArgument(`${name} cannot be "." or ".."`);
|
|
1037
1202
|
return encodeURIComponent(value);
|
|
1038
1203
|
};
|
|
1204
|
+
/**
|
|
1205
|
+
* Whether the API accepts an upload of this MIME type: an image, audio, video, text, document or
|
|
1206
|
+
* website type, not a container such as `application/octet-stream`. It refuses any other type with
|
|
1207
|
+
* `upload/invalid-mime-type`.
|
|
1208
|
+
*/
|
|
1209
|
+
const isAcceptedUploadMimeType = (mimeType) => {
|
|
1210
|
+
const type = normalizeUploadMimeType(mimeType);
|
|
1211
|
+
if (UPLOAD_MIME_REJECTED.includes(type)) return false;
|
|
1212
|
+
return UPLOAD_MIME_PREFIXES.some((prefix) => type.startsWith(prefix)) || UPLOAD_MIME_SUFFIXES.some((suffix) => type.endsWith(suffix)) || UPLOAD_MIME_TYPES.includes(type);
|
|
1213
|
+
};
|
|
1039
1214
|
const TRANSFORM_OPTION_NAME = /^[a-z][a-zA-Z0-9]*$/;
|
|
1040
1215
|
const TRANSFORM_COLOUR_KEYS = /* @__PURE__ */ new Set([
|
|
1041
1216
|
"background",
|
|
@@ -1064,6 +1239,110 @@ const appendTransformOptions = (pairs, key, value) => {
|
|
|
1064
1239
|
else throw invalidArgument(`Transform option "${key}" must be a string, number, boolean or object`);
|
|
1065
1240
|
pairs.push(`${key}=${encodeTransformComponent(text)}`);
|
|
1066
1241
|
};
|
|
1242
|
+
const hasRuleType = (type, value) => {
|
|
1243
|
+
switch (type) {
|
|
1244
|
+
case "object": return isPlainObject(value);
|
|
1245
|
+
case "string":
|
|
1246
|
+
case "boolean": return typeof value === type;
|
|
1247
|
+
case "number": return typeof value === "number" && Number.isFinite(value);
|
|
1248
|
+
case "integer": return typeof value === "number" && Number.isInteger(value);
|
|
1249
|
+
default: return true;
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1252
|
+
/**
|
|
1253
|
+
* Checks transform options against the image transform schema, as the CDN does, and returns the
|
|
1254
|
+
* dotted keys it doesn't know and those whose values it refuses (or that are required and missing).
|
|
1255
|
+
* `null` options are left out of a selector, so they are not checked.
|
|
1256
|
+
*/
|
|
1257
|
+
const checkTransformOptions = (options) => {
|
|
1258
|
+
const unknownKeys = [];
|
|
1259
|
+
const invalidKeys = [];
|
|
1260
|
+
const check = (schema, value, key) => {
|
|
1261
|
+
const rule = schema.oneOf ? schema.oneOf.find(({ type }) => hasRuleType(type, value)) : schema;
|
|
1262
|
+
if (!rule || !hasRuleType(rule.type, value) || rule.enum && !rule.enum.includes(value) || rule.minimum !== void 0 && value < rule.minimum || rule.maximum !== void 0 && value > rule.maximum) {
|
|
1263
|
+
invalidKeys.push(key);
|
|
1264
|
+
return;
|
|
1265
|
+
}
|
|
1266
|
+
if (rule.type !== "object") return;
|
|
1267
|
+
const object = value;
|
|
1268
|
+
const path = (name) => key ? `${key}.${name}` : name;
|
|
1269
|
+
for (const name of rule.required ?? []) if (object[name] === void 0 || object[name] === null) invalidKeys.push(path(name));
|
|
1270
|
+
for (const name of Object.keys(object).sort()) {
|
|
1271
|
+
if (object[name] === void 0 || object[name] === null) continue;
|
|
1272
|
+
const child = rule.properties?.[name];
|
|
1273
|
+
if (child) check(child, object[name], path(name));
|
|
1274
|
+
else unknownKeys.push(path(name));
|
|
1275
|
+
}
|
|
1276
|
+
};
|
|
1277
|
+
check(TRANSFORM_OPTIONS_SCHEMA, options, "");
|
|
1278
|
+
return {
|
|
1279
|
+
unknownKeys,
|
|
1280
|
+
invalidKeys
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
/**
|
|
1284
|
+
* Reads a CDN selector, the path segment after `/rendered` as sent (still percent-encoded), as the
|
|
1285
|
+
* CDN does (packages/shared/src/TransformSelector.ts): an optional first `@lens`, then `key=value`
|
|
1286
|
+
* options with dotted keys for nested ones (a bare key is `true`). Values are numbers, `true`,
|
|
1287
|
+
* `false`, hex colours (`#` added) for colour options, or text. Throws on anything the CDN refuses
|
|
1288
|
+
* as `asset/invalid-transform`. Used by the mock CDN.
|
|
1289
|
+
*/
|
|
1290
|
+
const parseTransformSelector = (selector) => {
|
|
1291
|
+
if (!selector) return {};
|
|
1292
|
+
const fail = () => /* @__PURE__ */ new Error(`Invalid transform selector "${selector}"`);
|
|
1293
|
+
if (selector.includes("/")) throw fail();
|
|
1294
|
+
const decode = (text) => {
|
|
1295
|
+
try {
|
|
1296
|
+
return decodeURIComponent(text);
|
|
1297
|
+
} catch {
|
|
1298
|
+
throw fail();
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
const entries = selector.split(",");
|
|
1302
|
+
let lens;
|
|
1303
|
+
if (entries[0].startsWith("@")) {
|
|
1304
|
+
lens = decode(entries.shift().slice(1));
|
|
1305
|
+
if (!/^[a-z0-9-]{1,50}$/.test(lens)) throw fail();
|
|
1306
|
+
}
|
|
1307
|
+
if (!entries.length) return { lens };
|
|
1308
|
+
const options = {};
|
|
1309
|
+
for (const entry of entries) {
|
|
1310
|
+
if (!entry || entry.startsWith("@")) throw fail();
|
|
1311
|
+
const separator = entry.indexOf("=");
|
|
1312
|
+
const key = separator === -1 ? entry : entry.slice(0, separator);
|
|
1313
|
+
const parts = key.split(".");
|
|
1314
|
+
if (!parts.every((part) => TRANSFORM_OPTION_NAME.test(part))) throw fail();
|
|
1315
|
+
let value = true;
|
|
1316
|
+
if (separator !== -1) {
|
|
1317
|
+
const text = decode(entry.slice(separator + 1));
|
|
1318
|
+
if (text === "") throw fail();
|
|
1319
|
+
value = TRANSFORM_COLOUR_KEYS.has(key) && HEX_COLOUR.test(`#${text}`) ? `#${text.toLowerCase()}` : /^-?(?:0|[1-9]\d*)(?:\.\d+)?$/.test(text) ? Number(text) : text === "true" || text === "false" ? text === "true" : text;
|
|
1320
|
+
}
|
|
1321
|
+
let target = options;
|
|
1322
|
+
for (const part of parts.slice(0, -1)) {
|
|
1323
|
+
const next = target[part];
|
|
1324
|
+
if (next !== void 0 && !isPlainObject(next)) throw fail();
|
|
1325
|
+
target = target[part] ??= {};
|
|
1326
|
+
}
|
|
1327
|
+
const last = parts.at(-1);
|
|
1328
|
+
if (last in target) throw fail();
|
|
1329
|
+
target[last] = value;
|
|
1330
|
+
}
|
|
1331
|
+
return {
|
|
1332
|
+
lens,
|
|
1333
|
+
options
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
/** Throws `sdk/invalid-argument` naming each transform option the CDN would refuse. */
|
|
1337
|
+
const assertTransformOptions = (options) => {
|
|
1338
|
+
const { unknownKeys, invalidKeys } = checkTransformOptions(options);
|
|
1339
|
+
if (!unknownKeys.length && !invalidKeys.length) return;
|
|
1340
|
+
const problems = [...unknownKeys.length ? [`unknown option${unknownKeys.length > 1 ? "s" : ""} ${unknownKeys.join(", ")}`] : [], ...invalidKeys.length ? [`invalid value${invalidKeys.length > 1 ? "s" : ""} for ${invalidKeys.join(", ")}`] : []];
|
|
1341
|
+
throw invalidArgument(`Transform options are invalid: ${problems.join("; ")}. Pass the options themselves, such as { width: 640, format: "webp" }.`, {
|
|
1342
|
+
unknownKeys,
|
|
1343
|
+
invalidKeys
|
|
1344
|
+
});
|
|
1345
|
+
};
|
|
1067
1346
|
/**
|
|
1068
1347
|
* Serializes structured transform options as a CDN selector, such as `fit=cover,width=640`. Option
|
|
1069
1348
|
* keys are sorted so equal transforms share a URL, nested keys are dotted (`border.color`),
|
|
@@ -1071,6 +1350,7 @@ const appendTransformOptions = (pairs, key, value) => {
|
|
|
1071
1350
|
*/
|
|
1072
1351
|
const serializeTransform = (transform) => {
|
|
1073
1352
|
if (!isPlainObject(transform)) throw invalidArgument("Transform options must be an object");
|
|
1353
|
+
assertTransformOptions(transform);
|
|
1074
1354
|
const pairs = [];
|
|
1075
1355
|
for (const key of Object.keys(transform).sort()) {
|
|
1076
1356
|
if (!TRANSFORM_OPTION_NAME.test(key)) throw invalidArgument(`Transform option "${key}" is not a valid name`);
|
|
@@ -1199,7 +1479,7 @@ const pollForDecision = async (retrieve, { timeoutMs = DEFAULT_DECISION_TIMEOUT_
|
|
|
1199
1479
|
};
|
|
1200
1480
|
// src/client/CalmLensVersion.ts
|
|
1201
1481
|
/** This SDK's version, from its package.json. */
|
|
1202
|
-
const SDK_VERSION = "0.
|
|
1482
|
+
const SDK_VERSION = "0.20.0";
|
|
1203
1483
|
const runtimeName = () => {
|
|
1204
1484
|
const runtime = globalThis;
|
|
1205
1485
|
if (isReactNativeRuntime()) return "react-native";
|
|
@@ -1337,6 +1617,12 @@ Object.defineProperty(exports, "checkOptionKeys", {
|
|
|
1337
1617
|
return checkOptionKeys;
|
|
1338
1618
|
}
|
|
1339
1619
|
});
|
|
1620
|
+
Object.defineProperty(exports, "checkTransformOptions", {
|
|
1621
|
+
enumerable: true,
|
|
1622
|
+
get: function() {
|
|
1623
|
+
return checkTransformOptions;
|
|
1624
|
+
}
|
|
1625
|
+
});
|
|
1340
1626
|
Object.defineProperty(exports, "encodePathSegment", {
|
|
1341
1627
|
enumerable: true,
|
|
1342
1628
|
get: function() {
|
|
@@ -1373,6 +1659,12 @@ Object.defineProperty(exports, "invalidConfig", {
|
|
|
1373
1659
|
return invalidConfig;
|
|
1374
1660
|
}
|
|
1375
1661
|
});
|
|
1662
|
+
Object.defineProperty(exports, "isAcceptedUploadMimeType", {
|
|
1663
|
+
enumerable: true,
|
|
1664
|
+
get: function() {
|
|
1665
|
+
return isAcceptedUploadMimeType;
|
|
1666
|
+
}
|
|
1667
|
+
});
|
|
1376
1668
|
Object.defineProperty(exports, "isBrowserRuntime", {
|
|
1377
1669
|
enumerable: true,
|
|
1378
1670
|
get: function() {
|
|
@@ -1385,10 +1677,10 @@ Object.defineProperty(exports, "isReactNativeRuntime", {
|
|
|
1385
1677
|
return isReactNativeRuntime;
|
|
1386
1678
|
}
|
|
1387
1679
|
});
|
|
1388
|
-
Object.defineProperty(exports, "
|
|
1680
|
+
Object.defineProperty(exports, "parseTransformSelector", {
|
|
1389
1681
|
enumerable: true,
|
|
1390
1682
|
get: function() {
|
|
1391
|
-
return
|
|
1683
|
+
return parseTransformSelector;
|
|
1392
1684
|
}
|
|
1393
1685
|
});
|
|
1394
1686
|
Object.defineProperty(exports, "pollForDecision", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as UploadFile, L as UploadSnapshot, N as UploadController, P as UploadControllerOptions } from "./ui-
|
|
1
|
+
import { F as UploadFile, L as UploadSnapshot, N as UploadController, P as UploadControllerOptions } from "./ui-BSqPGKrZ.js";
|
|
2
2
|
interface UseCalmLensUploadResult<F extends UploadFile = UploadFile> extends UploadSnapshot<F> {
|
|
3
3
|
controller: UploadController<F>;
|
|
4
4
|
addFiles: UploadController<F>["addFiles"];
|
|
@@ -1098,7 +1098,7 @@ const TEST_REGIONAL_ACTIONS_SCHEMA = zod.array(zod.object({
|
|
|
1098
1098
|
"block"
|
|
1099
1099
|
])
|
|
1100
1100
|
}).strict()).max(7).refine((entries) => new Set(entries.map((entry) => entry.region)).size === entries.length, "Choose each region once");
|
|
1101
|
-
// src/contract/TestTriggers-
|
|
1101
|
+
// src/contract/TestTriggers-DbhsNPdg.js
|
|
1102
1102
|
/**
|
|
1103
1103
|
* The visual encoding of test images (shared by images and video frames), independent of what the
|
|
1104
1104
|
* bytes mean. An odd N×N grid of square cells fills the image. Its outer ring alternates black and
|
|
@@ -1444,7 +1444,7 @@ function testInputForSignal(signal, kind = "text") {
|
|
|
1444
1444
|
}] };
|
|
1445
1445
|
case "violence.graphic": return { instances: [{
|
|
1446
1446
|
category: "violence",
|
|
1447
|
-
qualifiers: ["violence-graphic"]
|
|
1447
|
+
qualifiers: ["violence-injury", "violence-graphic"]
|
|
1448
1448
|
}] };
|
|
1449
1449
|
default: return TEST_INPUT_SCHEMA.parse({ instances: [{
|
|
1450
1450
|
category: signal,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_ModerationContextLimits = require("./ModerationContextLimits-
|
|
2
|
-
const require_CalmLensAppClient = require("./CalmLensAppClient-
|
|
1
|
+
const require_ModerationContextLimits = require("./ModerationContextLimits-2nIv7Zh3.js");
|
|
2
|
+
const require_CalmLensAppClient = require("./CalmLensAppClient-NaCxOVlM.js");
|
|
3
3
|
// src/contract/PlaceholderHashDecode.js
|
|
4
4
|
/**
|
|
5
5
|
* Decodes a ThumbHash to an RGBA image. RGB is not be premultiplied by A.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as TypedEvent, zt as EventAsset } from "./CalmLensTypes-
|
|
1
|
+
import { Bt as TypedEvent, zt as EventAsset } from "./CalmLensTypes-COJbOuiv.js";
|
|
2
2
|
import * as zod from "zod";
|
|
3
3
|
/** Error codes the CalmLens API documents, by name. */
|
|
4
4
|
declare const API_ERROR_CODES: {
|
package/cjs/app.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as selectModerationContextItems, i as ModerationContextItem, n as MODERATION_CONTEXT_USED_CHARACTERS, o as HashList, r as MODERATION_CONTEXT_USED_ITEMS, s as HashListEntry, t as ModerationContext } from "./ModerationContext-9lGm-Mna-CcmbRnOy.js";
|
|
2
|
-
import { $ as ImageTransformOptions, $t as AssetSearchMatchField, A as CdnServeOptions, At as UploadedAsset, B as DeleteAssetContentOptions, Bt as TypedEvent, C as AssignPolicyOptions, Ct as SubmitAssetOptions, D as CalmLensServerClientOptions, Dt as UpdatePolicyOptions, E as CalmLensAppClientOptions, Et as UpdateHashListOptions, F as CreateFolderOptions, Ft as WebhookPayloadInput, G as FolderIdOptions, Gt as EventSeverity, H as EnsureLensOptions, Ht as EventFact, I as CreateHashListOptions, It as AssetBatchOperation, J as HashListEntryIdOptions, Jt as Folder, Kt as EventType, L as CreateMultipartUploadPartOptions, Lt as GetEventsResponse, M as ClassifyTextOptions, Mt as ViewerClaims, N as ConnectionOptions, Nt as WaitForAssetDecisionOptions, O as CdnAssetUrlOptions, Ot as UploadAssetPartOptions, P as CreateAssetSignedUrlOptions, Pt as WebhookHeadersInput, Q as IdempotencyOptions, Qt as LensType, R as CreatePolicyOptions, S as AssetVisibility, St as SignedUrl, T as BatchAssetsResponse, Tt as UpdateFolderOptions, U as EnsureLensesOptions, Ut as EventFactValues, V as DeleteAssetOptions, Vt as EventCategory, W as ExplainAssetOptions, Wt as EventFacts, X as HashListIdOptions, Xt as CursorPage, Y as HashListEntryPage, Yt as Policy, Z as HashListPage, Zt as Order, _ as AssetSearchResponse, _t as RetryAssetOptions, a as AssetChildrenPage, an as ExtractedText, at as ListEventsOptions, b as AssetUpload, bt as SignUploadTokenOptions, c as AssetClassificationStatus, cn as ProcessingOptions, ct as ListHashListsOptions, d as AssetContentRemovalReason, dt as MultipartUploadOptions, en as AssetSearchQuery, et as IterateAssetChildrenOptions, f as AssetContentStatus, ft as MultipartUploadPartOptions, g as AssetPage, gt as RetrieveAssetOptions, h as AssetModerationStatus, ht as RequestOptions, i as AssetChecksums, in as AssetSafetyHoldReason, it as ListAssetsOptions, j as CdnTransform, jt as VerifyWebhookSignatureOptions, k as CdnResource, kt as UploadPresetSubmitAssetOptions, l as AssetContent, lt as MoveAssetOptions, m as AssetModerationDecision, mt as PolicyList, n as ApplyPolicyPresetOptions, nn as AssetImage, nt as Lens, o as AssetClassification, on as FileMetadata, p as AssetModeration, pt as PolicyIdOptions, q as GetAssetUrlOptions, r as Asset, rn as AssetSafetyHold, rt as ListAssetChildrenOptions, s as AssetClassificationFailureReason, sn as MetadataItem, st as ListHashListEntriesOptions, t as AddHashListEntryOptions, tt as IterateAssetsOptions, u as AssetContentOptions, ut as MoveFolderOptions, v as AssetSearchResult, vt as SearchAssetsOptions, w as BatchAssetsOptions, wt as UpdateAssetOptions, x as AssetUploadStatus, xt as SignedUploadToken, y as AssetType, yt as SetPolicyAutomaticUpdatesOptions, z as DecideAssetOptions, zt as EventAsset } from "./CalmLensTypes-
|
|
3
|
-
import { t as CalmLensAppClient } from "./CalmLensAppClient-
|
|
4
|
-
import { a as CalmLensErrorCode, c as SdkErrorCode, i as CalmLensError, l as ApiErrorCode, o as CalmLensErrorDetails, r as CALMLENS_ERROR_CODES, s as CalmLensErrorOptions, t as ReceivedWebhookEventPayload } from "./WebhookPayload-
|
|
5
|
-
import { a as ProcessingFeatureId, c as ProcessingFeatures, d as getAssetUrl, i as DetectedPerson, l as SDK_VERSION, n as BoundingBox, o as ProcessingFeatureResults, r as DetectedFace, s as ProcessingFeatureStage, t as AgeRange, u as DEFAULT_CDN_BASE_URL } from "./index-
|
|
2
|
+
import { $ as ImageTransformOptions, $t as AssetSearchMatchField, A as CdnServeOptions, At as UploadedAsset, B as DeleteAssetContentOptions, Bt as TypedEvent, C as AssignPolicyOptions, Ct as SubmitAssetOptions, D as CalmLensServerClientOptions, Dt as UpdatePolicyOptions, E as CalmLensAppClientOptions, Et as UpdateHashListOptions, F as CreateFolderOptions, Ft as WebhookPayloadInput, G as FolderIdOptions, Gt as EventSeverity, H as EnsureLensOptions, Ht as EventFact, I as CreateHashListOptions, It as AssetBatchOperation, J as HashListEntryIdOptions, Jt as Folder, Kt as EventType, L as CreateMultipartUploadPartOptions, Lt as GetEventsResponse, M as ClassifyTextOptions, Mt as ViewerClaims, N as ConnectionOptions, Nt as WaitForAssetDecisionOptions, O as CdnAssetUrlOptions, Ot as UploadAssetPartOptions, P as CreateAssetSignedUrlOptions, Pt as WebhookHeadersInput, Q as IdempotencyOptions, Qt as LensType, R as CreatePolicyOptions, S as AssetVisibility, St as SignedUrl, T as BatchAssetsResponse, Tt as UpdateFolderOptions, U as EnsureLensesOptions, Ut as EventFactValues, V as DeleteAssetOptions, Vt as EventCategory, W as ExplainAssetOptions, Wt as EventFacts, X as HashListIdOptions, Xt as CursorPage, Y as HashListEntryPage, Yt as Policy, Z as HashListPage, Zt as Order, _ as AssetSearchResponse, _t as RetryAssetOptions, a as AssetChildrenPage, an as ExtractedText, at as ListEventsOptions, b as AssetUpload, bt as SignUploadTokenOptions, c as AssetClassificationStatus, cn as ProcessingOptions, ct as ListHashListsOptions, d as AssetContentRemovalReason, dt as MultipartUploadOptions, en as AssetSearchQuery, et as IterateAssetChildrenOptions, f as AssetContentStatus, ft as MultipartUploadPartOptions, g as AssetPage, gt as RetrieveAssetOptions, h as AssetModerationStatus, ht as RequestOptions, i as AssetChecksums, in as AssetSafetyHoldReason, it as ListAssetsOptions, j as CdnTransform, jt as VerifyWebhookSignatureOptions, k as CdnResource, kt as UploadPresetSubmitAssetOptions, l as AssetContent, lt as MoveAssetOptions, m as AssetModerationDecision, mt as PolicyList, n as ApplyPolicyPresetOptions, nn as AssetImage, nt as Lens, o as AssetClassification, on as FileMetadata, p as AssetModeration, pt as PolicyIdOptions, q as GetAssetUrlOptions, r as Asset, rn as AssetSafetyHold, rt as ListAssetChildrenOptions, s as AssetClassificationFailureReason, sn as MetadataItem, st as ListHashListEntriesOptions, t as AddHashListEntryOptions, tt as IterateAssetsOptions, u as AssetContentOptions, ut as MoveFolderOptions, v as AssetSearchResult, vt as SearchAssetsOptions, w as BatchAssetsOptions, wt as UpdateAssetOptions, x as AssetUploadStatus, xt as SignedUploadToken, y as AssetType, yt as SetPolicyAutomaticUpdatesOptions, z as DecideAssetOptions, zt as EventAsset } from "./CalmLensTypes-COJbOuiv.js";
|
|
3
|
+
import { t as CalmLensAppClient } from "./CalmLensAppClient-DDLojj0P.js";
|
|
4
|
+
import { a as CalmLensErrorCode, c as SdkErrorCode, i as CalmLensError, l as ApiErrorCode, o as CalmLensErrorDetails, r as CALMLENS_ERROR_CODES, s as CalmLensErrorOptions, t as ReceivedWebhookEventPayload } from "./WebhookPayload-DkukERKE.js";
|
|
5
|
+
import { a as ProcessingFeatureId, c as ProcessingFeatures, d as getAssetUrl, i as DetectedPerson, l as SDK_VERSION, n as BoundingBox, o as ProcessingFeatureResults, r as DetectedFace, s as ProcessingFeatureStage, t as AgeRange, u as DEFAULT_CDN_BASE_URL } from "./index-DxbJ_Xaa.js";
|
|
6
6
|
import { a as ClassificationNotEvaluatedReason, c as ModerationQualifier, i as ClassificationLabel, l as PolicyAction, n as ClassificationCategory, o as ClassificationQualifierResults, r as ClassificationCategoryReport, s as Likelihood, t as ClassificationCategories } from "./Classification-D3SkprrQ-CMnQKW13.js";
|
|
7
7
|
export { type AddHashListEntryOptions, type AgeRange, type ApiErrorCode, type ApplyPolicyPresetOptions, type Asset, type AssetBatchOperation, type AssetChecksums, type AssetChildrenPage, type AssetClassification, type AssetClassificationFailureReason, type AssetClassificationStatus, type AssetContent, type AssetContentOptions, type AssetContentRemovalReason, type AssetContentStatus, type AssetImage, type AssetModeration, type AssetModerationDecision, type AssetModerationStatus, type AssetPage, type AssetSafetyHold, type AssetSafetyHoldReason, type AssetSearchMatchField, type AssetSearchQuery, type AssetSearchResponse, type AssetSearchResult, type AssetType, type AssetUpload, type AssetUploadStatus, type AssetVisibility, type AssignPolicyOptions, type BatchAssetsOptions, type BatchAssetsResponse, type BoundingBox, CALMLENS_ERROR_CODES, CalmLensAppClient, type CalmLensAppClientOptions, CalmLensError, type CalmLensErrorCode, type CalmLensErrorDetails, type CalmLensErrorOptions, type CalmLensServerClientOptions, type CdnAssetUrlOptions, type CdnResource, type CdnServeOptions, type CdnTransform, type ClassificationCategories, type ClassificationCategory, type ClassificationCategoryReport, type ClassificationLabel, type ClassificationNotEvaluatedReason, type ClassificationQualifierResults, type ClassifyTextOptions, type ConnectionOptions, type CreateAssetSignedUrlOptions, type CreateFolderOptions, type CreateHashListOptions, type CreateMultipartUploadPartOptions, type CreatePolicyOptions, type CursorPage, DEFAULT_CDN_BASE_URL, type DecideAssetOptions, type DeleteAssetContentOptions, type DeleteAssetOptions, type DetectedFace, type DetectedPerson, type EnsureLensOptions, type EnsureLensesOptions, type EventAsset, type EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventSeverity, type EventType, type GetEventsResponse as EventsPage, type ExplainAssetOptions, type ExtractedText, type FileMetadata, type Folder, type FolderIdOptions, type GetAssetUrlOptions, type HashList, type HashListEntry, type HashListEntryIdOptions, type HashListEntryPage, type HashListIdOptions, type HashListPage, type IdempotencyOptions, type ImageTransformOptions, type IterateAssetChildrenOptions, type IterateAssetsOptions, type Lens, type LensType, type Likelihood, type ListAssetChildrenOptions, type ListAssetsOptions, type ListEventsOptions, type ListHashListEntriesOptions, type ListHashListsOptions, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, type MetadataItem, type ModerationContext, type ModerationContextItem, type ModerationQualifier, type MoveAssetOptions, type MoveFolderOptions, type MultipartUploadOptions, type MultipartUploadPartOptions, type Order, type Policy, type PolicyAction, type PolicyIdOptions, type PolicyList, type ProcessingFeatureId, type ProcessingFeatureResults, type ProcessingFeatureStage, type ProcessingFeatures, type ProcessingOptions, type RequestOptions, type RetrieveAssetOptions, type RetryAssetOptions, SDK_VERSION, type SdkErrorCode, type SearchAssetsOptions, type SetPolicyAutomaticUpdatesOptions, type SignUploadTokenOptions, type SignedUploadToken, type SignedUrl, type SubmitAssetOptions, type TypedEvent, type UpdateAssetOptions, type UpdateFolderOptions, type UpdateHashListOptions, type UpdatePolicyOptions, type UploadAssetPartOptions, type UploadPresetSubmitAssetOptions, type UploadedAsset, type VerifyWebhookSignatureOptions, type ViewerClaims, type WaitForAssetDecisionOptions, type ReceivedWebhookEventPayload as WebhookEventPayload, type WebhookHeadersInput, type WebhookPayloadInput, getAssetUrl, selectModerationContextItems };
|
package/cjs/app.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_ModerationContextLimits = require("./ModerationContextLimits-
|
|
2
|
+
const require_ModerationContextLimits = require("./ModerationContextLimits-2nIv7Zh3.js");
|
|
3
3
|
require("./index.js");
|
|
4
|
-
const require_CalmLensAppClient = require("./CalmLensAppClient-
|
|
4
|
+
const require_CalmLensAppClient = require("./CalmLensAppClient-NaCxOVlM.js");
|
|
5
5
|
exports.CALMLENS_ERROR_CODES = require_ModerationContextLimits.CALMLENS_ERROR_CODES;
|
|
6
6
|
exports.CalmLensAppClient = require_CalmLensAppClient.CalmLensAppClient;
|
|
7
7
|
exports.CalmLensError = require_ModerationContextLimits.CalmLensError;
|
package/cjs/elements.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as getUploadItemOutcome, E as getUploadItemMessage, F as UploadFile, G as MediaSource, H as MediaImageSource, J as pickMediaSource, K as MediaState, M as UploadClient, N as UploadController, O as resolveMessages, R as UploadStage, S as formatBytes, T as getMediaUnavailableMessage, U as MediaOptions, V as MediaAsset, W as MediaSettings, Y as resolveMediaProps, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, b as describeUploadItem, c as ICON_ATTRIBUTES, d as MediaProps, f as UploaderDisplayOptions, g as CalmLensMessages, h as getMediaLoadKey, i as CALMLENS_STYLES, j as CustomUploadResult, l as IconName, m as getMediaAspectRatio, n as CalmLensTheme, o as createProgressFetch, q as getMediaState, r as resolveTheme, s as ICONS, t as CALMLENS_THEME, u as MediaDisplayOptions, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView } from "./ui-
|
|
2
|
-
import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-
|
|
1
|
+
import { A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as getUploadItemOutcome, E as getUploadItemMessage, F as UploadFile, G as MediaSource, H as MediaImageSource, J as pickMediaSource, K as MediaState, M as UploadClient, N as UploadController, O as resolveMessages, R as UploadStage, S as formatBytes, T as getMediaUnavailableMessage, U as MediaOptions, V as MediaAsset, W as MediaSettings, Y as resolveMediaProps, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, b as describeUploadItem, c as ICON_ATTRIBUTES, d as MediaProps, f as UploaderDisplayOptions, g as CalmLensMessages, h as getMediaLoadKey, i as CALMLENS_STYLES, j as CustomUploadResult, l as IconName, m as getMediaAspectRatio, n as CalmLensTheme, o as createProgressFetch, q as getMediaState, r as resolveTheme, s as ICONS, t as CALMLENS_THEME, u as MediaDisplayOptions, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView } from "./ui-BSqPGKrZ.js";
|
|
2
|
+
import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-C07aL9Vq.js";
|
|
3
3
|
/** The `detail` of each event the elements dispatch. */
|
|
4
4
|
export interface CalmLensElementEvents {
|
|
5
5
|
"calmlens-uploaded": CalmLensUpload;
|
package/cjs/elements.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_ui = require("./ui-
|
|
3
|
-
const require_UploadController = require("./UploadController-
|
|
4
|
-
const require_BrowserUpload = require("./BrowserUpload-
|
|
2
|
+
const require_ui = require("./ui-CX1z2pD9.js");
|
|
3
|
+
const require_UploadController = require("./UploadController-MLVs97Zt.js");
|
|
4
|
+
const require_BrowserUpload = require("./BrowserUpload-CjSHjx3C.js");
|
|
5
5
|
// src/elements.ts
|
|
6
6
|
const el = (tag, attributes = {}, children = []) => {
|
|
7
7
|
const node = document.createElement(tag);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./ModerationContext-9lGm-Mna-CcmbRnOy.js";
|
|
2
|
-
import { q as GetAssetUrlOptions } from "./CalmLensTypes-
|
|
3
|
-
import "./WebhookPayload-
|
|
2
|
+
import { q as GetAssetUrlOptions } from "./CalmLensTypes-COJbOuiv.js";
|
|
3
|
+
import "./WebhookPayload-DkukERKE.js";
|
|
4
4
|
import "./Classification-D3SkprrQ-CMnQKW13.js";
|
|
5
5
|
import * as zod from "zod";
|
|
6
6
|
declare const DEFAULT_CDN_BASE_URL = "https://cdn.calmlens.com/v1";
|
package/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as selectModerationContextItems, i as ModerationContextItem, n as MODERATION_CONTEXT_USED_CHARACTERS, o as HashList, r as MODERATION_CONTEXT_USED_ITEMS, s as HashListEntry, t as ModerationContext } from "./ModerationContext-9lGm-Mna-CcmbRnOy.js";
|
|
2
|
-
import { $ as ImageTransformOptions, $t as AssetSearchMatchField, A as CdnServeOptions, At as UploadedAsset, B as DeleteAssetContentOptions, Bt as TypedEvent, C as AssignPolicyOptions, Ct as SubmitAssetOptions, D as CalmLensServerClientOptions, Dt as UpdatePolicyOptions, E as CalmLensAppClientOptions, Et as UpdateHashListOptions, F as CreateFolderOptions, Ft as WebhookPayloadInput, G as FolderIdOptions, Gt as EventSeverity, H as EnsureLensOptions, Ht as EventFact, I as CreateHashListOptions, It as AssetBatchOperation, J as HashListEntryIdOptions, Jt as Folder, Kt as EventType, L as CreateMultipartUploadPartOptions, Lt as GetEventsResponse, M as ClassifyTextOptions, Mt as ViewerClaims, N as ConnectionOptions, Nt as WaitForAssetDecisionOptions, O as CdnAssetUrlOptions, Ot as UploadAssetPartOptions, P as CreateAssetSignedUrlOptions, Pt as WebhookHeadersInput, Q as IdempotencyOptions, Qt as LensType, R as CreatePolicyOptions, S as AssetVisibility, St as SignedUrl, T as BatchAssetsResponse, Tt as UpdateFolderOptions, U as EnsureLensesOptions, Ut as EventFactValues, V as DeleteAssetOptions, Vt as EventCategory, W as ExplainAssetOptions, Wt as EventFacts, X as HashListIdOptions, Xt as CursorPage, Y as HashListEntryPage, Yt as Policy, Z as HashListPage, Zt as Order, _ as AssetSearchResponse, _t as RetryAssetOptions, a as AssetChildrenPage, an as ExtractedText, at as ListEventsOptions, b as AssetUpload, bt as SignUploadTokenOptions, c as AssetClassificationStatus, cn as ProcessingOptions, ct as ListHashListsOptions, d as AssetContentRemovalReason, dt as MultipartUploadOptions, en as AssetSearchQuery, et as IterateAssetChildrenOptions, f as AssetContentStatus, ft as MultipartUploadPartOptions, g as AssetPage, gt as RetrieveAssetOptions, h as AssetModerationStatus, ht as RequestOptions, i as AssetChecksums, in as AssetSafetyHoldReason, it as ListAssetsOptions, j as CdnTransform, jt as VerifyWebhookSignatureOptions, k as CdnResource, kt as UploadPresetSubmitAssetOptions, l as AssetContent, lt as MoveAssetOptions, m as AssetModerationDecision, mt as PolicyList, n as ApplyPolicyPresetOptions, nn as AssetImage, nt as Lens, o as AssetClassification, on as FileMetadata, p as AssetModeration, pt as PolicyIdOptions, q as GetAssetUrlOptions, r as Asset, rn as AssetSafetyHold, rt as ListAssetChildrenOptions, s as AssetClassificationFailureReason, sn as MetadataItem, st as ListHashListEntriesOptions, t as AddHashListEntryOptions, tt as IterateAssetsOptions, u as AssetContentOptions, ut as MoveFolderOptions, v as AssetSearchResult, vt as SearchAssetsOptions, w as BatchAssetsOptions, wt as UpdateAssetOptions, x as AssetUploadStatus, xt as SignedUploadToken, y as AssetType, yt as SetPolicyAutomaticUpdatesOptions, z as DecideAssetOptions, zt as EventAsset } from "./CalmLensTypes-
|
|
3
|
-
import { a as CalmLensErrorCode, c as SdkErrorCode, i as CalmLensError, l as ApiErrorCode, o as CalmLensErrorDetails, r as CALMLENS_ERROR_CODES, s as CalmLensErrorOptions, t as ReceivedWebhookEventPayload } from "./WebhookPayload-
|
|
4
|
-
import { a as ProcessingFeatureId, c as ProcessingFeatures, d as getAssetUrl, i as DetectedPerson, l as SDK_VERSION, n as BoundingBox, o as ProcessingFeatureResults, r as DetectedFace, s as ProcessingFeatureStage, t as AgeRange, u as DEFAULT_CDN_BASE_URL } from "./index-
|
|
2
|
+
import { $ as ImageTransformOptions, $t as AssetSearchMatchField, A as CdnServeOptions, At as UploadedAsset, B as DeleteAssetContentOptions, Bt as TypedEvent, C as AssignPolicyOptions, Ct as SubmitAssetOptions, D as CalmLensServerClientOptions, Dt as UpdatePolicyOptions, E as CalmLensAppClientOptions, Et as UpdateHashListOptions, F as CreateFolderOptions, Ft as WebhookPayloadInput, G as FolderIdOptions, Gt as EventSeverity, H as EnsureLensOptions, Ht as EventFact, I as CreateHashListOptions, It as AssetBatchOperation, J as HashListEntryIdOptions, Jt as Folder, Kt as EventType, L as CreateMultipartUploadPartOptions, Lt as GetEventsResponse, M as ClassifyTextOptions, Mt as ViewerClaims, N as ConnectionOptions, Nt as WaitForAssetDecisionOptions, O as CdnAssetUrlOptions, Ot as UploadAssetPartOptions, P as CreateAssetSignedUrlOptions, Pt as WebhookHeadersInput, Q as IdempotencyOptions, Qt as LensType, R as CreatePolicyOptions, S as AssetVisibility, St as SignedUrl, T as BatchAssetsResponse, Tt as UpdateFolderOptions, U as EnsureLensesOptions, Ut as EventFactValues, V as DeleteAssetOptions, Vt as EventCategory, W as ExplainAssetOptions, Wt as EventFacts, X as HashListIdOptions, Xt as CursorPage, Y as HashListEntryPage, Yt as Policy, Z as HashListPage, Zt as Order, _ as AssetSearchResponse, _t as RetryAssetOptions, a as AssetChildrenPage, an as ExtractedText, at as ListEventsOptions, b as AssetUpload, bt as SignUploadTokenOptions, c as AssetClassificationStatus, cn as ProcessingOptions, ct as ListHashListsOptions, d as AssetContentRemovalReason, dt as MultipartUploadOptions, en as AssetSearchQuery, et as IterateAssetChildrenOptions, f as AssetContentStatus, ft as MultipartUploadPartOptions, g as AssetPage, gt as RetrieveAssetOptions, h as AssetModerationStatus, ht as RequestOptions, i as AssetChecksums, in as AssetSafetyHoldReason, it as ListAssetsOptions, j as CdnTransform, jt as VerifyWebhookSignatureOptions, k as CdnResource, kt as UploadPresetSubmitAssetOptions, l as AssetContent, lt as MoveAssetOptions, m as AssetModerationDecision, mt as PolicyList, n as ApplyPolicyPresetOptions, nn as AssetImage, nt as Lens, o as AssetClassification, on as FileMetadata, p as AssetModeration, pt as PolicyIdOptions, q as GetAssetUrlOptions, r as Asset, rn as AssetSafetyHold, rt as ListAssetChildrenOptions, s as AssetClassificationFailureReason, sn as MetadataItem, st as ListHashListEntriesOptions, t as AddHashListEntryOptions, tt as IterateAssetsOptions, u as AssetContentOptions, ut as MoveFolderOptions, v as AssetSearchResult, vt as SearchAssetsOptions, w as BatchAssetsOptions, wt as UpdateAssetOptions, x as AssetUploadStatus, xt as SignedUploadToken, y as AssetType, yt as SetPolicyAutomaticUpdatesOptions, z as DecideAssetOptions, zt as EventAsset } from "./CalmLensTypes-COJbOuiv.js";
|
|
3
|
+
import { a as CalmLensErrorCode, c as SdkErrorCode, i as CalmLensError, l as ApiErrorCode, o as CalmLensErrorDetails, r as CALMLENS_ERROR_CODES, s as CalmLensErrorOptions, t as ReceivedWebhookEventPayload } from "./WebhookPayload-DkukERKE.js";
|
|
4
|
+
import { a as ProcessingFeatureId, c as ProcessingFeatures, d as getAssetUrl, i as DetectedPerson, l as SDK_VERSION, n as BoundingBox, o as ProcessingFeatureResults, r as DetectedFace, s as ProcessingFeatureStage, t as AgeRange, u as DEFAULT_CDN_BASE_URL } from "./index-DxbJ_Xaa.js";
|
|
5
5
|
import { a as ClassificationNotEvaluatedReason, c as ModerationQualifier, i as ClassificationLabel, l as PolicyAction, n as ClassificationCategory, o as ClassificationQualifierResults, r as ClassificationCategoryReport, s as Likelihood, t as ClassificationCategories } from "./Classification-D3SkprrQ-CMnQKW13.js";
|
|
6
6
|
export { type AddHashListEntryOptions, type AgeRange, type ApiErrorCode, type ApplyPolicyPresetOptions, type Asset, type AssetBatchOperation, type AssetChecksums, type AssetChildrenPage, type AssetClassification, type AssetClassificationFailureReason, type AssetClassificationStatus, type AssetContent, type AssetContentOptions, type AssetContentRemovalReason, type AssetContentStatus, type AssetImage, type AssetModeration, type AssetModerationDecision, type AssetModerationStatus, type AssetPage, type AssetSafetyHold, type AssetSafetyHoldReason, type AssetSearchMatchField, type AssetSearchQuery, type AssetSearchResponse, type AssetSearchResult, type AssetType, type AssetUpload, type AssetUploadStatus, type AssetVisibility, type AssignPolicyOptions, type BatchAssetsOptions, type BatchAssetsResponse, type BoundingBox, CALMLENS_ERROR_CODES, type CalmLensAppClientOptions, CalmLensError, type CalmLensErrorCode, type CalmLensErrorDetails, type CalmLensErrorOptions, type CalmLensServerClientOptions, type CdnAssetUrlOptions, type CdnResource, type CdnServeOptions, type CdnTransform, type ClassificationCategories, type ClassificationCategory, type ClassificationCategoryReport, type ClassificationLabel, type ClassificationNotEvaluatedReason, type ClassificationQualifierResults, type ClassifyTextOptions, type ConnectionOptions, type CreateAssetSignedUrlOptions, type CreateFolderOptions, type CreateHashListOptions, type CreateMultipartUploadPartOptions, type CreatePolicyOptions, type CursorPage, DEFAULT_CDN_BASE_URL, type DecideAssetOptions, type DeleteAssetContentOptions, type DeleteAssetOptions, type DetectedFace, type DetectedPerson, type EnsureLensOptions, type EnsureLensesOptions, type EventAsset, type EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventSeverity, type EventType, type GetEventsResponse as EventsPage, type ExplainAssetOptions, type ExtractedText, type FileMetadata, type Folder, type FolderIdOptions, type GetAssetUrlOptions, type HashList, type HashListEntry, type HashListEntryIdOptions, type HashListEntryPage, type HashListIdOptions, type HashListPage, type IdempotencyOptions, type ImageTransformOptions, type IterateAssetChildrenOptions, type IterateAssetsOptions, type Lens, type LensType, type Likelihood, type ListAssetChildrenOptions, type ListAssetsOptions, type ListEventsOptions, type ListHashListEntriesOptions, type ListHashListsOptions, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, type MetadataItem, type ModerationContext, type ModerationContextItem, type ModerationQualifier, type MoveAssetOptions, type MoveFolderOptions, type MultipartUploadOptions, type MultipartUploadPartOptions, type Order, type Policy, type PolicyAction, type PolicyIdOptions, type PolicyList, type ProcessingFeatureId, type ProcessingFeatureResults, type ProcessingFeatureStage, type ProcessingFeatures, type ProcessingOptions, type RequestOptions, type RetrieveAssetOptions, type RetryAssetOptions, SDK_VERSION, type SdkErrorCode, type SearchAssetsOptions, type SetPolicyAutomaticUpdatesOptions, type SignUploadTokenOptions, type SignedUploadToken, type SignedUrl, type SubmitAssetOptions, type TypedEvent, type UpdateAssetOptions, type UpdateFolderOptions, type UpdateHashListOptions, type UpdatePolicyOptions, type UploadAssetPartOptions, type UploadPresetSubmitAssetOptions, type UploadedAsset, type VerifyWebhookSignatureOptions, type ViewerClaims, type WaitForAssetDecisionOptions, type ReceivedWebhookEventPayload as WebhookEventPayload, type WebhookHeadersInput, type WebhookPayloadInput, getAssetUrl, selectModerationContextItems };
|
package/cjs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_ModerationContextLimits = require("./ModerationContextLimits-
|
|
2
|
+
const require_ModerationContextLimits = require("./ModerationContextLimits-2nIv7Zh3.js");
|
|
3
3
|
exports.CALMLENS_ERROR_CODES = require_ModerationContextLimits.CALMLENS_ERROR_CODES;
|
|
4
4
|
exports.CalmLensError = require_ModerationContextLimits.CalmLensError;
|
|
5
5
|
exports.DEFAULT_CDN_BASE_URL = require_ModerationContextLimits.DEFAULT_CDN_BASE_URL;
|
package/cjs/react-native.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as getUploadItemOutcome, E as getUploadItemMessage, F as UploadFile, G as MediaSource, H as MediaImageSource, I as UploadItem, J as pickMediaSource, K as MediaState, L as UploadSnapshot, M as UploadClient, N as UploadController, O as resolveMessages, P as UploadControllerOptions, R as UploadStage, S as formatBytes, T as getMediaUnavailableMessage, U as MediaOptions, V as MediaAsset, W as MediaSettings, Y as resolveMediaProps, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, b as describeUploadItem, c as ICON_ATTRIBUTES, d as MediaProps, f as UploaderDisplayOptions, g as CalmLensMessages, h as getMediaLoadKey, i as CALMLENS_STYLES, j as CustomUploadResult, k as CalmLensUpload, l as IconName, m as getMediaAspectRatio, n as CalmLensTheme, o as createProgressFetch, p as UploaderProps, q as getMediaState, r as resolveTheme, s as ICONS, t as CALMLENS_THEME, u as MediaDisplayOptions, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView, z as createUploadController } from "./ui-
|
|
2
|
-
import { n as useCalmLensUpload, t as UseCalmLensUploadResult } from "./ReactUpload-
|
|
1
|
+
import { A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as getUploadItemOutcome, E as getUploadItemMessage, F as UploadFile, G as MediaSource, H as MediaImageSource, I as UploadItem, J as pickMediaSource, K as MediaState, L as UploadSnapshot, M as UploadClient, N as UploadController, O as resolveMessages, P as UploadControllerOptions, R as UploadStage, S as formatBytes, T as getMediaUnavailableMessage, U as MediaOptions, V as MediaAsset, W as MediaSettings, Y as resolveMediaProps, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, b as describeUploadItem, c as ICON_ATTRIBUTES, d as MediaProps, f as UploaderDisplayOptions, g as CalmLensMessages, h as getMediaLoadKey, i as CALMLENS_STYLES, j as CustomUploadResult, k as CalmLensUpload, l as IconName, m as getMediaAspectRatio, n as CalmLensTheme, o as createProgressFetch, p as UploaderProps, q as getMediaState, r as resolveTheme, s as ICONS, t as CALMLENS_THEME, u as MediaDisplayOptions, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView, z as createUploadController } from "./ui-BSqPGKrZ.js";
|
|
2
|
+
import { n as useCalmLensUpload, t as UseCalmLensUploadResult } from "./ReactUpload-CRJNPB5T.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { StyleProp, ViewStyle } from "react-native";
|
|
5
5
|
/** What the uploader asks your picker for. */
|
package/cjs/react-native.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_ui = require("./ui-
|
|
3
|
-
const require_UploadController = require("./UploadController-
|
|
2
|
+
const require_ui = require("./ui-CX1z2pD9.js");
|
|
3
|
+
const require_UploadController = require("./UploadController-MLVs97Zt.js");
|
|
4
4
|
const require_FileIcons = require("./FileIcons-Ob003MdS.js");
|
|
5
|
-
const require_ReactUpload = require("./ReactUpload-
|
|
5
|
+
const require_ReactUpload = require("./ReactUpload-BdTRCTGA.js");
|
|
6
6
|
let react = require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let react_native = require("react-native");
|
package/cjs/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as getUploadItemOutcome, E as getUploadItemMessage, F as UploadFile, G as MediaSource, H as MediaImageSource, J as pickMediaSource, K as MediaState, M as UploadClient, N as UploadController, O as resolveMessages, R as UploadStage, S as formatBytes, T as getMediaUnavailableMessage, U as MediaOptions, V as MediaAsset, W as MediaSettings, Y as resolveMediaProps, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, b as describeUploadItem, c as ICON_ATTRIBUTES, d as MediaProps, f as UploaderDisplayOptions, g as CalmLensMessages, h as getMediaLoadKey, i as CALMLENS_STYLES, j as CustomUploadResult, l as IconName, m as getMediaAspectRatio, n as CalmLensTheme, o as createProgressFetch, q as getMediaState, r as resolveTheme, s as ICONS, t as CALMLENS_THEME, u as MediaDisplayOptions, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView } from "./ui-
|
|
2
|
-
import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, o as UseCalmLensUploadResult, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-
|
|
1
|
+
import { A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as getUploadItemOutcome, E as getUploadItemMessage, F as UploadFile, G as MediaSource, H as MediaImageSource, J as pickMediaSource, K as MediaState, M as UploadClient, N as UploadController, O as resolveMessages, R as UploadStage, S as formatBytes, T as getMediaUnavailableMessage, U as MediaOptions, V as MediaAsset, W as MediaSettings, Y as resolveMediaProps, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, b as describeUploadItem, c as ICON_ATTRIBUTES, d as MediaProps, f as UploaderDisplayOptions, g as CalmLensMessages, h as getMediaLoadKey, i as CALMLENS_STYLES, j as CustomUploadResult, l as IconName, m as getMediaAspectRatio, n as CalmLensTheme, o as createProgressFetch, q as getMediaState, r as resolveTheme, s as ICONS, t as CALMLENS_THEME, u as MediaDisplayOptions, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView } from "./ui-BSqPGKrZ.js";
|
|
2
|
+
import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, o as UseCalmLensUploadResult, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-C07aL9Vq.js";
|
|
3
3
|
import { CSSProperties, HTMLAttributes } from "react";
|
|
4
4
|
/**
|
|
5
5
|
* Uploads files through an upload preset and re-renders as each one uploads and is checked. Use
|
package/cjs/react.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_ui = require("./ui-
|
|
4
|
-
const require_UploadController = require("./UploadController-
|
|
5
|
-
const require_ReactUpload = require("./ReactUpload-
|
|
6
|
-
const require_BrowserUpload = require("./BrowserUpload-
|
|
3
|
+
const require_ui = require("./ui-CX1z2pD9.js");
|
|
4
|
+
const require_UploadController = require("./UploadController-MLVs97Zt.js");
|
|
5
|
+
const require_ReactUpload = require("./ReactUpload-BdTRCTGA.js");
|
|
6
|
+
const require_BrowserUpload = require("./BrowserUpload-CjSHjx3C.js");
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
// src/react.tsx
|