@gisce/react-ooui 2.1.3 → 2.1.4

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 +1 @@
1
- {"version":3,"file":"AttachmentsButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/AttachmentsButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,UAAU,EAEX,MAAM,4BAA4B,CAAC;AAIpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,uBAAuB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CA0GvD;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"AttachmentsButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/AttachmentsButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,UAAU,EAEX,MAAM,4BAA4B,CAAC;AAIpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,uBAAuB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAgHvD;AAED,eAAe,iBAAiB,CAAC"}
@@ -6793,31 +6793,37 @@ function Dc(e) {
6793
6793
  ze(v);
6794
6794
  }
6795
6795
  d(!1);
6796
- }, t), g = be(async (v) => {
6797
- if (v.link) {
6798
- window.open(v.link);
6799
- return;
6800
- }
6801
- m(!0);
6802
- let T;
6803
- try {
6804
- T = (await N.getHandler().readObjects({
6805
- model: "ir.attachment",
6806
- ids: [v.id],
6807
- context: a.current.getContext()
6808
- }))[0];
6809
- } catch (b) {
6810
- ze(b);
6811
- }
6812
- if (m(!1), !!T)
6813
- if (T.datas) {
6814
- const b = await Vt(T.datas);
6815
- gn(T.datas, b.mime);
6816
- } else
6817
- s(T);
6818
- }, []), y = be(async (v) => {
6819
- s(v);
6820
- }, []);
6796
+ }, [t, a]), g = be(
6797
+ async (v) => {
6798
+ if (v.link) {
6799
+ window.open(v.link);
6800
+ return;
6801
+ }
6802
+ m(!0);
6803
+ let T;
6804
+ try {
6805
+ T = (await N.getHandler().readObjects({
6806
+ model: "ir.attachment",
6807
+ ids: [v.id],
6808
+ context: a.current.getContext()
6809
+ }))[0];
6810
+ } catch (b) {
6811
+ ze(b);
6812
+ }
6813
+ if (m(!1), !!T)
6814
+ if (T.datas) {
6815
+ const b = await Vt(T.datas);
6816
+ gn(T.datas, b.mime);
6817
+ } else
6818
+ s(T);
6819
+ },
6820
+ [a, s]
6821
+ ), y = be(
6822
+ async (v) => {
6823
+ s(v);
6824
+ },
6825
+ [s]
6826
+ );
6821
6827
  return fe(() => {
6822
6828
  h();
6823
6829
  }, [h]), /* @__PURE__ */ D(J, { children: [