@beeintel/batch-image 1.0.0 → 1.1.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.
Files changed (56) hide show
  1. package/README.md +7 -3
  2. package/dist/chunks/{AdjustToolPanel-B6dtlFlj.js → AdjustToolPanel-DCNhkuE4.js} +21 -20
  3. package/dist/chunks/BackgroundToolPanel-D3TILm-m.js +43 -0
  4. package/dist/chunks/{BatchMaterials-DDoJTaS5.js → BatchMaterials-BPJeE3y9.js} +1 -1
  5. package/dist/chunks/BatchModeChoices-BuP83uOq.js +118 -0
  6. package/dist/chunks/{BatchOutputColorPicker-D7WIDS4_.js → BatchOutputColorPicker-CZoQzBII.js} +2 -2
  7. package/dist/chunks/BatchReferenceFields-B7SL__lu.js +308 -0
  8. package/dist/chunks/BeautifyToolPanel-DsTOjndh.js +220 -0
  9. package/dist/chunks/{BrandMarkToolPanel-vKobk_R3.js → BrandMarkToolPanel-Cob9bPYT.js} +319 -333
  10. package/dist/chunks/{ContentTrimControl-BKCJEst5.js → ContentTrimControl-CKNfHz_u.js} +2 -2
  11. package/dist/chunks/{CropToolPanel-C_sW5tWL.js → CropToolPanel-6MiynTP2.js} +60 -56
  12. package/dist/chunks/CutoutToolPanel-V-AUrbwz.js +78 -0
  13. package/dist/chunks/DisclosureToolPanel-DvouSIbA.js +72 -0
  14. package/dist/chunks/ExpandToolPanel-C98UZmBx.js +69 -0
  15. package/dist/chunks/{ImageEffectsToolPanel-CsDIBpT6.js → ImageEffectsToolPanel-hA0TlEix.js} +63 -52
  16. package/dist/chunks/{IpAuditToolPanel-CduDfFh-.js → IpAuditToolPanel-BCQ8Kewh.js} +15 -13
  17. package/dist/chunks/{ListingToolPanel-8pJ2_zvI.js → ListingToolPanel-DH-xpvLp.js} +170 -184
  18. package/dist/chunks/{MaterialSelectionPlate-CW7HaS6v.js → MaterialSelectionPlate-CQBIf6ZJ.js} +4 -4
  19. package/dist/chunks/MetadataToolPanel-z4RK3JCb.js +116 -0
  20. package/dist/chunks/{OrientToolPanel-C1AzQchm.js → OrientToolPanel-BwtT0xKI.js} +3 -3
  21. package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-DIRuJ1De.js +122 -0
  22. package/dist/chunks/ResizeToolPanel-BVeZbKJl.js +1171 -0
  23. package/dist/chunks/RetouchToolPanel-CqSzWVOK.js +358 -0
  24. package/dist/chunks/ShadowToolPanel-BgsCgLay.js +258 -0
  25. package/dist/chunks/SvgExportToolPanel-CdCXYYHF.js +208 -0
  26. package/dist/chunks/TranslationToolPanel-D4ETI6sf.js +102 -0
  27. package/dist/chunks/{UpscaleToolPanel-BRIgpszs.js → UpscaleToolPanel-D_hmQLEi.js} +44 -39
  28. package/dist/chunks/arrow-up-C1vBvuff.js +18 -0
  29. package/dist/chunks/{entry-CboOSe2r.js → entry-DVV89YMR.js} +7614 -7498
  30. package/dist/chunks/{loader-circle-CylCgDqP.js → loader-circle-GPucRX_4.js} +1 -1
  31. package/dist/chunks/{motionFeatures-D67ghPG1.js → motionFeatures-_pQ-ZW4p.js} +1 -1
  32. package/dist/chunks/{search-BwsDnulU.js → search-CUAg5uDr.js} +1 -1
  33. package/dist/config.d.ts +6 -0
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.js +6 -5
  36. package/dist/node/cli.mjs +0 -0
  37. package/dist/resources.json +104 -94
  38. package/dist/slots.d.ts +2 -0
  39. package/dist/style.css +1 -1
  40. package/dist/tool-links.d.ts +10 -0
  41. package/dist/types/batch/public/config.d.ts +6 -0
  42. package/package.json +9 -8
  43. package/dist/chunks/BackgroundToolPanel-C3Rr9d4S.js +0 -41
  44. package/dist/chunks/BatchModeChoices-DeBARgvY.js +0 -111
  45. package/dist/chunks/BatchReferenceFields-Cr5WgFRJ.js +0 -316
  46. package/dist/chunks/BeautifyToolPanel-DDZXDQKM.js +0 -215
  47. package/dist/chunks/CutoutToolPanel-B7ObmiWd.js +0 -73
  48. package/dist/chunks/DisclosureToolPanel-F3ccFJIF.js +0 -76
  49. package/dist/chunks/ExpandToolPanel-BKjj5UJA.js +0 -67
  50. package/dist/chunks/MetadataToolPanel-C8XJOamN.js +0 -104
  51. package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-BGe419qz.js +0 -102
  52. package/dist/chunks/ResizeToolPanel-DWikcj2G.js +0 -1178
  53. package/dist/chunks/RetouchToolPanel-B4eQKk2W.js +0 -350
  54. package/dist/chunks/ShadowToolPanel-Bbj76hQd.js +0 -254
  55. package/dist/chunks/SvgExportToolPanel-BRxpzd7q.js +0 -219
  56. package/dist/chunks/TranslationToolPanel-Bxv8U2WY.js +0 -125
@@ -1,5 +1,5 @@
1
- import { defineComponent as i, computed as l, unref as a, openBlock as n, createElementBlock as c, createBlock as r, createCommentVNode as u } from "vue";
2
- import { E as d, au as p, _ as m } from "./entry-CboOSe2r.js";
1
+ import { defineComponent as i, computed as l, unref as a, openBlock as n, createElementBlock as c, createBlock as r, createCommentVNode as d } from "vue";
2
+ import { E as u, at as p, _ as m } from "./entry-DVV89YMR.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "material-selection-plate",
@@ -11,7 +11,7 @@ const f = {
11
11
  animate: { type: Boolean }
12
12
  },
13
13
  setup(e) {
14
- const o = e, t = d(), s = l(
14
+ const o = e, t = u(), s = l(
15
15
  () => o.animate && !t.value ? { type: "spring", visualDuration: 0.19, bounce: 0.06 } : { duration: 0 }
16
16
  );
17
17
  return (y, k) => e.selected && a(t) ? (n(), c("span", f)) : e.selected ? (n(), r(a(p).span, {
@@ -22,7 +22,7 @@ const f = {
22
22
  "layout-id": "selection",
23
23
  crossfade: !1,
24
24
  transition: s.value
25
- }, null, 8, ["transition"])) : u("", !0);
25
+ }, null, 8, ["transition"])) : d("", !0);
26
26
  }
27
27
  }), v = /* @__PURE__ */ m(_, [["__scopeId", "data-v-e9f640a3"]]);
28
28
  export {
@@ -0,0 +1,116 @@
1
+ import { defineComponent as P, openBlock as k, createElementBlock as g, unref as e, createElementVNode as l, createTextVNode as i, toDisplayString as s, createVNode as n, createBlock as V, withCtx as x } from "vue";
2
+ import { F as v, P as r, a4 as h, _ as T, G as y, a5 as f } from "./entry-DVV89YMR.js";
3
+ import { u as C, a as A, c as B, _ as D } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-DIRuJ1De.js";
4
+ const M = ["disabled", "aria-label"], U = { class: "metadata-default" }, E = ["aria-label", "disabled", "checked"], F = ["aria-label", "disabled", "checked"], N = /* @__PURE__ */ P({
5
+ __name: "MetadataPanel",
6
+ props: {
7
+ modelValue: {},
8
+ disabled: { type: Boolean }
9
+ },
10
+ emits: ["update:modelValue"],
11
+ setup(t, { emit: o }) {
12
+ const { ui: a, uiText: _ } = v(), c = t, p = o;
13
+ function u(b, d) {
14
+ c.disabled || p("update:modelValue", {
15
+ ...c.modelValue,
16
+ [b]: d.target.checked
17
+ });
18
+ }
19
+ return (b, d) => (k(), g("fieldset", {
20
+ class: "metadata-panel",
21
+ disabled: t.disabled,
22
+ "aria-label": e(a)("tools.metadata_cleanup.metadataPanel_a48b2f8f")
23
+ }, [
24
+ l("div", U, [
25
+ l("strong", null, [
26
+ i(s(e(a)("tools.metadata_cleanup.metadataPanel_07bee879")), 1),
27
+ n(r, {
28
+ text: e(a)("tools.metadata_cleanup.metadataPanel_81215dfc")
29
+ }, null, 8, ["text"])
30
+ ]),
31
+ l("p", null, s(e(a)("tools.metadata_cleanup.metadataPanel_77ca0e65")), 1)
32
+ ]),
33
+ l("label", null, [
34
+ n(e(h), {
35
+ class: "metadata-check",
36
+ size: 14,
37
+ "aria-hidden": "true"
38
+ }),
39
+ l("input", {
40
+ type: "checkbox",
41
+ "aria-label": e(a)("tools.metadata_cleanup.metadataPanel_e6c30387"),
42
+ disabled: t.disabled,
43
+ checked: t.modelValue.removeTime,
44
+ onChange: d[0] || (d[0] = (m) => u("removeTime", m))
45
+ }, null, 40, E),
46
+ l("span", null, [
47
+ l("strong", null, [
48
+ i(s(e(a)("tools.metadata_cleanup.metadataPanel_e6c30387")), 1),
49
+ n(r, {
50
+ text: e(a)("tools.metadata_cleanup.metadataPanel_e54e326a")
51
+ }, null, 8, ["text"])
52
+ ])
53
+ ])
54
+ ]),
55
+ l("label", null, [
56
+ n(e(h), {
57
+ class: "metadata-check",
58
+ size: 14,
59
+ "aria-hidden": "true"
60
+ }),
61
+ l("input", {
62
+ type: "checkbox",
63
+ "aria-label": e(a)("tools.metadata_cleanup.metadataPanel_cceb9076"),
64
+ disabled: t.disabled,
65
+ checked: t.modelValue.removeAuthorComments,
66
+ onChange: d[1] || (d[1] = (m) => u("removeAuthorComments", m))
67
+ }, null, 40, F),
68
+ l("span", null, [
69
+ l("strong", null, [
70
+ i(s(e(a)("tools.metadata_cleanup.metadataPanel_cceb9076")), 1),
71
+ n(r, {
72
+ text: e(a)("tools.metadata_cleanup.metadataPanel_5303f066")
73
+ }, null, 8, ["text"])
74
+ ])
75
+ ])
76
+ ])
77
+ ], 8, M));
78
+ }
79
+ }), z = /* @__PURE__ */ T(N, [["__scopeId", "data-v-17c18305"]]), G = /* @__PURE__ */ P({
80
+ __name: "MetadataToolPanel",
81
+ props: {
82
+ context: {}
83
+ },
84
+ setup(t) {
85
+ const o = t, a = C(() => o.context);
86
+ function _() {
87
+ o.context.resetDraft({ metadata: { ...f } });
88
+ }
89
+ const c = A(() => o.context, "metadata");
90
+ return (p, u) => (k(), V(y, {
91
+ context: t.context,
92
+ layout: "contained",
93
+ changed: e(B)(e(a).metadata, e(f)),
94
+ onReset: _
95
+ }, {
96
+ actions: x(() => [
97
+ n(D, {
98
+ context: t.context,
99
+ available: !0,
100
+ ready: !0
101
+ }, null, 8, ["context"])
102
+ ]),
103
+ default: x(() => [
104
+ n(z, {
105
+ "model-value": e(a).metadata,
106
+ disabled: t.context.readonly,
107
+ "onUpdate:modelValue": e(c)
108
+ }, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
109
+ ]),
110
+ _: 1
111
+ }, 8, ["context", "changed"]));
112
+ }
113
+ });
114
+ export {
115
+ G as default
116
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as v, ref as R, openBlock as b, createElementBlock as k, unref as e, createElementVNode as l, createTextVNode as x, toDisplayString as u, createVNode as f, Fragment as P, renderList as V, createCommentVNode as A, nextTick as T, createBlock as U, withCtx as g } from "vue";
2
- import { F as E, P as O, R as F, _ as N, G as $ } from "./entry-CboOSe2r.js";
2
+ import { F as E, P as O, R as F, _ as N, G as $ } from "./entry-DVV89YMR.js";
3
3
  import { D as y } from "./hosted-resources-COzZ7nZY.js";
4
- import { u as H, a as I, c as K, _ as L, n as z } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-BGe419qz.js";
4
+ import { u as H, a as I, c as K, _ as L, n as z } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-DIRuJ1De.js";
5
5
  const S = ["disabled", "aria-label"], G = { class: "orientation-switch-row" }, M = ["aria-label", "aria-checked"], q = { class: "orientation-rotation-field" }, J = ["aria-label"], Q = ["data-rotation", "aria-label", "aria-checked", "tabindex", "onClick", "onKeydown"], W = { class: "orientation-flips" }, X = ["aria-label", "aria-checked", "onClick"], Y = ["aria-label"], Z = /* @__PURE__ */ v({
6
6
  __name: "BasicOrientationPanel",
7
7
  props: {
@@ -120,7 +120,7 @@ const S = ["disabled", "aria-label"], G = { class: "orientation-switch-row" }, M
120
120
  ], 8, Y))
121
121
  ], 8, S));
122
122
  }
123
- }), ee = /* @__PURE__ */ N(Z, [["__scopeId", "data-v-df6ae92e"]]), le = /* @__PURE__ */ v({
123
+ }), ee = /* @__PURE__ */ N(Z, [["__scopeId", "data-v-4bfd0e58"]]), le = /* @__PURE__ */ v({
124
124
  __name: "OrientToolPanel",
125
125
  props: {
126
126
  context: {}
@@ -0,0 +1,122 @@
1
+ import { computed as c, defineComponent as h, openBlock as v, createElementBlock as f, createVNode as l, unref as o, withCtx as w, createElementVNode as p, createCommentVNode as k } from "vue";
2
+ import { J as A, F as C, H as g, aT as x, at as P, au as I } from "./entry-DVV89YMR.js";
3
+ import { A as S } from "./arrow-up-C1vBvuff.js";
4
+ /**
5
+ * @license @lucide/vue v1.47.0 - ISC
6
+ *
7
+ * This source code is licensed under the ISC license.
8
+ * See the LICENSE file in the root directory of this source tree.
9
+ */
10
+ const B = {
11
+ name: "refresh-cw",
12
+ size: 24,
13
+ node: [
14
+ ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
15
+ ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
16
+ ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
17
+ ["path", { d: "M8 16H3v5", key: "1cv678" }]
18
+ ]
19
+ }, j = A(B);
20
+ function r(e) {
21
+ return Array.isArray(e) ? e.map(r) : e && typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([a, n]) => [a, r(n)])) : e;
22
+ }
23
+ function E(e) {
24
+ return c(() => r(e().draft));
25
+ }
26
+ const L = (e, a) => Object.entries(a).some(([n, i]) => e[n] !== i), O = (e, a = e.toolId) => e.executionAvailable ?? (e.view.availableNodeTools ?? ["resize", "background"]).includes(a), U = (e) => e.executionAvailable ?? (e.view.aiAvailable !== !1 && e.view.availableTools.includes(e.toolId));
27
+ function V(e, a) {
28
+ return c(() => {
29
+ const n = e();
30
+ return (i) => {
31
+ const t = {};
32
+ return t[a] = i, n.updateDraft(t);
33
+ };
34
+ });
35
+ }
36
+ const z = { class: "execution-box" }, F = {
37
+ key: 0,
38
+ class: "service-status service-status-compact"
39
+ }, M = ["disabled", "aria-label", "title"], q = /* @__PURE__ */ h({
40
+ __name: "PluginActionFooter",
41
+ props: {
42
+ context: {},
43
+ available: { type: Boolean, default: !0 },
44
+ ready: { type: Boolean, default: !0 },
45
+ label: {},
46
+ unavailableReason: {},
47
+ showServiceStatus: { type: Boolean, default: !0 }
48
+ },
49
+ setup(e) {
50
+ const { ui: a, uiText: n } = C(), i = g(), t = e, s = c(
51
+ () => t.context.readonly || t.context.executionAvailable === !1 || !t.context.view.count || !t.available || !t.ready || t.context.submitting
52
+ ), u = c(
53
+ () => t.context.submitting ? a("common.toolPanel_cfe317f2") : t.label ?? (t.context.view.waitingCount ? a("common.toolPanel_a699267c", { p0: t.context.view.count }) : a("common.toolPanel_5d31495f", { p0: t.context.view.count }))
54
+ );
55
+ async function d() {
56
+ return !s.value && await t.context.requestSubmit();
57
+ }
58
+ const b = c(() => ({
59
+ toolId: t.context.toolId,
60
+ entryId: t.context.entryId,
61
+ params: t.context.submissionParams,
62
+ count: t.context.view.count,
63
+ disabled: s.value,
64
+ submit: d
65
+ }));
66
+ return (N, m) => (v(), f("div", z, [
67
+ l(o(x), {
68
+ name: "mainAction",
69
+ action: b.value
70
+ }, null, 8, ["action"]),
71
+ l(o(P).button, {
72
+ "data-onboarding": "tool-submit",
73
+ "data-material-action": "primary",
74
+ "data-tool-id": e.context.toolId,
75
+ class: "primary-action",
76
+ "aria-label": u.value,
77
+ title: u.value,
78
+ "aria-busy": e.context.submitting,
79
+ disabled: s.value,
80
+ "while-press": { scale: 0.97 },
81
+ transition: o(I),
82
+ onClick: d
83
+ }, {
84
+ default: w(() => [
85
+ l(o(x), {
86
+ name: "mainActionContent",
87
+ action: b.value
88
+ }, null, 8, ["action"]),
89
+ l(o(S), {
90
+ size: 20,
91
+ "aria-hidden": "true"
92
+ })
93
+ ]),
94
+ _: 1
95
+ }, 8, ["data-tool-id", "aria-label", "title", "aria-busy", "disabled", "transition"]),
96
+ !e.available && e.showServiceStatus && o(i)?.config.value.visibility?.serviceStatus !== !1 ? (v(), f("div", F, [
97
+ p("button", {
98
+ type: "button",
99
+ disabled: e.context.view.aiChecking,
100
+ "aria-label": e.context.view.aiChecking ? o(a)("common.toolPanel_e8b970bc") : o(a)("common.toolPanel_107e25c0"),
101
+ title: e.unavailableReason || (e.context.view.aiAvailable === !1 ? o(n)(e.context.view.aiFeedback) || o(a)("common.toolPanel_8665eaa2") : o(a)("common.toolPanel_6afbb9ca")),
102
+ onClick: m[0] || (m[0] = //@ts-ignore
103
+ (...y) => e.context.refreshCapabilities && e.context.refreshCapabilities(...y))
104
+ }, [
105
+ l(o(j), {
106
+ size: 15,
107
+ "aria-hidden": "true"
108
+ })
109
+ ], 8, M)
110
+ ])) : k("", !0)
111
+ ]));
112
+ }
113
+ });
114
+ export {
115
+ j as R,
116
+ q as _,
117
+ V as a,
118
+ U as b,
119
+ L as c,
120
+ O as n,
121
+ E as u
122
+ };