catchup-library-web 1.4.9 → 1.4.11

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/dist/index.js CHANGED
@@ -6302,7 +6302,7 @@ var SelectionBox = ({
6302
6302
  {
6303
6303
  className: `flex flex-row items-center gap-x-1 ${option.id === selectedId ? "opacity-100" : "opacity-50"}`,
6304
6304
  children: [
6305
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: option.icon }),
6305
+ option.icon,
6306
6306
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex-1 flex flex-col items-center", children: [
6307
6307
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { children: option.text }),
6308
6308
  option.subText ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("p", { className: "text-md", children: [
@@ -6696,7 +6696,7 @@ var SelectionCheckbox = ({
6696
6696
  (selectedId) => selectedId === option.id
6697
6697
  ) > -1 ? "opacity-100" : "opacity-50"}`,
6698
6698
  children: [
6699
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6699
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6700
6700
  BaseImage_default,
6701
6701
  {
6702
6702
  src: selectedIdList.findIndex(
@@ -6705,7 +6705,7 @@ var SelectionCheckbox = ({
6705
6705
  alt: "checkbox",
6706
6706
  size: "small"
6707
6707
  }
6708
- ) }),
6708
+ ),
6709
6709
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { children: option.text }) })
6710
6710
  ]
6711
6711
  }
@@ -9007,7 +9007,7 @@ var convertDataURLtoFile = (dataurl, filename) => {
9007
9007
  var retrieveDocumentTypeFromAcceptedFormat = (format) => {
9008
9008
  if (format === "application/pdf") {
9009
9009
  return "PDF";
9010
- } else if (format === "image/jpeg" || format === "image/png" || format === "image/jpg") {
9010
+ } else if (format === "image/jpeg" || format === "image/png" || format === "image/jpg" || format === "image/webp") {
9011
9011
  return "IMAGE";
9012
9012
  } else if (format === "audio/mp3") {
9013
9013
  return "AUDIO";
@@ -9016,7 +9016,7 @@ var retrieveDocumentTypeFromAcceptedFormat = (format) => {
9016
9016
  var retrieveDocumentTypeFromExtension = (format) => {
9017
9017
  if (format === "pdf") {
9018
9018
  return "PDF";
9019
- } else if (format === "jpeg" || format === "png" || format === "jpg") {
9019
+ } else if (format === "jpeg" || format === "png" || format === "jpg" || format === "webp") {
9020
9020
  return "IMAGE";
9021
9021
  } else if (format === "mp3") {
9022
9022
  return "AUDIO";
package/dist/index.mjs CHANGED
@@ -6111,7 +6111,7 @@ var SelectionBox = ({
6111
6111
  {
6112
6112
  className: `flex flex-row items-center gap-x-1 ${option.id === selectedId ? "opacity-100" : "opacity-50"}`,
6113
6113
  children: [
6114
- /* @__PURE__ */ jsx40("div", { children: option.icon }),
6114
+ option.icon,
6115
6115
  /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex flex-col items-center", children: [
6116
6116
  /* @__PURE__ */ jsx40("p", { children: option.text }),
6117
6117
  option.subText ? /* @__PURE__ */ jsxs31("p", { className: "text-md", children: [
@@ -6505,7 +6505,7 @@ var SelectionCheckbox = ({
6505
6505
  (selectedId) => selectedId === option.id
6506
6506
  ) > -1 ? "opacity-100" : "opacity-50"}`,
6507
6507
  children: [
6508
- /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsx45(
6508
+ /* @__PURE__ */ jsx45(
6509
6509
  BaseImage_default,
6510
6510
  {
6511
6511
  src: selectedIdList.findIndex(
@@ -6514,7 +6514,7 @@ var SelectionCheckbox = ({
6514
6514
  alt: "checkbox",
6515
6515
  size: "small"
6516
6516
  }
6517
- ) }),
6517
+ ),
6518
6518
  /* @__PURE__ */ jsx45("div", { className: "flex-1", children: /* @__PURE__ */ jsx45("p", { children: option.text }) })
6519
6519
  ]
6520
6520
  }
@@ -8816,7 +8816,7 @@ var convertDataURLtoFile = (dataurl, filename) => {
8816
8816
  var retrieveDocumentTypeFromAcceptedFormat = (format) => {
8817
8817
  if (format === "application/pdf") {
8818
8818
  return "PDF";
8819
- } else if (format === "image/jpeg" || format === "image/png" || format === "image/jpg") {
8819
+ } else if (format === "image/jpeg" || format === "image/png" || format === "image/jpg" || format === "image/webp") {
8820
8820
  return "IMAGE";
8821
8821
  } else if (format === "audio/mp3") {
8822
8822
  return "AUDIO";
@@ -8825,7 +8825,7 @@ var retrieveDocumentTypeFromAcceptedFormat = (format) => {
8825
8825
  var retrieveDocumentTypeFromExtension = (format) => {
8826
8826
  if (format === "pdf") {
8827
8827
  return "PDF";
8828
- } else if (format === "jpeg" || format === "png" || format === "jpg") {
8828
+ } else if (format === "jpeg" || format === "png" || format === "jpg" || format === "webp") {
8829
8829
  return "IMAGE";
8830
8830
  } else if (format === "mp3") {
8831
8831
  return "AUDIO";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.4.9",
3
+ "version": "1.4.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@ const SelectionBox = ({
24
24
  option.id === selectedId ? "opacity-100" : "opacity-50"
25
25
  }`}
26
26
  >
27
- <div>{option.icon}</div>
27
+ {option.icon}
28
28
  <div className="flex-1 flex flex-col items-center">
29
29
  <p>{option.text}</p>
30
30
  {option.subText ? (
@@ -40,19 +40,17 @@ const SelectionCheckbox = ({
40
40
  : "opacity-50"
41
41
  }`}
42
42
  >
43
- <div>
44
- <BaseImage
45
- src={
46
- selectedIdList.findIndex(
47
- (selectedId: any) => selectedId === option.id
48
- ) > -1
49
- ? "/icons/checkbox.webp"
50
- : "/icons/checkbox-empty.webp"
51
- }
52
- alt="checkbox"
53
- size="small"
54
- />
55
- </div>
43
+ <BaseImage
44
+ src={
45
+ selectedIdList.findIndex(
46
+ (selectedId: any) => selectedId === option.id
47
+ ) > -1
48
+ ? "/icons/checkbox.webp"
49
+ : "/icons/checkbox-empty.webp"
50
+ }
51
+ alt="checkbox"
52
+ size="small"
53
+ />
56
54
  <div className="flex-1">
57
55
  <p>{option.text}</p>
58
56
  </div>
@@ -16,7 +16,8 @@ export const retrieveDocumentTypeFromAcceptedFormat = (format: string) => {
16
16
  } else if (
17
17
  format === "image/jpeg" ||
18
18
  format === "image/png" ||
19
- format === "image/jpg"
19
+ format === "image/jpg" ||
20
+ format === "image/webp"
20
21
  ) {
21
22
  return "IMAGE";
22
23
  } else if (format === "audio/mp3") {
@@ -27,7 +28,12 @@ export const retrieveDocumentTypeFromAcceptedFormat = (format: string) => {
27
28
  export const retrieveDocumentTypeFromExtension = (format: string) => {
28
29
  if (format === "pdf") {
29
30
  return "PDF";
30
- } else if (format === "jpeg" || format === "png" || format === "jpg") {
31
+ } else if (
32
+ format === "jpeg" ||
33
+ format === "png" ||
34
+ format === "jpg" ||
35
+ format === "webp"
36
+ ) {
31
37
  return "IMAGE";
32
38
  } else if (format === "mp3") {
33
39
  return "AUDIO";