Socket
Socket
Sign inDemoInstall

@pesdk/getty-images-integration

Package Overview
Dependencies
155
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

146

dist/getty-images.es.js

@@ -1,15 +0,15 @@

import { AdvancedUIToolControlBar as T, Tool as a, calculateAdvancedUIToolControlBarMeasurements as R, AdvancedTransformControlBarItem as O, ExportFormat as k, deepmergeAll as D, PhotoEditorSDKUI as F } from "photoeditorsdk/no-polyfills";
import { AdvancedUIToolControlBar as O, Tool as a, calculateAdvancedUIToolControlBarMeasurements as W, AdvancedTransformControlBarItem as b, ExportFormat as F, deepmergeAll as k, PhotoEditorSDKUI as J } from "photoeditorsdk/no-polyfills";
export * from "photoeditorsdk/no-polyfills";
import G from "react";
import { createGettyImagesToolbar as N, SortOrder as $, createGettyImagesExportButton as q, ImageSize as z, DisplaySizeName as L, SearchImagesEndpoint as K, GettyImagesMetaInformation as W } from "@pesdk/getty-images";
import X from "react";
import { createGettyImagesToolbar as B, SortOrder as z, createGettyImagesExportButton as G, ImageSize as Y, DisplaySizeName as D, SearchImagesEndpoint as _, GettyImagesMetaInformation as Q } from "@pesdk/getty-images";
export * from "@pesdk/getty-images";
import H from "styled-components";
var f = {}, J = {
import P from "styled-components";
var u = {}, A = {
get exports() {
return f;
return u;
},
set exports(t) {
f = t;
u = t;
}
}, d = {};
}, f = {};
/*

@@ -20,4 +20,4 @@ object-assign

*/
var v = Object.getOwnPropertySymbols, V = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
function Q(t) {
var Z = Object.getOwnPropertySymbols, H = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
function K(t) {
if (t == null)

@@ -27,3 +27,3 @@ throw new TypeError("Object.assign cannot be called with null or undefined");

}
function X() {
function q() {
try {

@@ -50,3 +50,3 @@ if (!Object.assign)

}
X();
q();
/** @license React v17.0.1

@@ -60,12 +60,12 @@ * react-jsx-runtime.production.min.js

*/
var Z = G, w = 60103;
d.Fragment = 60107;
var $ = X, S = 60103;
f.Fragment = 60107;
if (typeof Symbol == "function" && Symbol.for) {
var C = Symbol.for;
w = C("react.element"), d.Fragment = C("react.fragment");
var y = Symbol.for;
S = y("react.element"), f.Fragment = y("react.fragment");
}
var tt = Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, et = Object.prototype.hasOwnProperty, ot = { key: !0, ref: !0, __self: !0, __source: !0 };
function S(t, e, o) {
var r, n = {}, s = null, i = null;
o !== void 0 && (s = "" + o), e.key !== void 0 && (s = "" + e.key), e.ref !== void 0 && (i = e.ref);
var tt = $.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, et = Object.prototype.hasOwnProperty, ot = { key: !0, ref: !0, __self: !0, __source: !0 };
function U(t, e, o) {
var r, n = {}, s = null, l = null;
o !== void 0 && (s = "" + o), e.key !== void 0 && (s = "" + e.key), e.ref !== void 0 && (l = e.ref);
for (r in e)

@@ -76,10 +76,10 @@ et.call(e, r) && !ot.hasOwnProperty(r) && (n[r] = e[r]);

n[r] === void 0 && (n[r] = e[r]);
return { $$typeof: w, type: t, key: s, ref: i, props: n, _owner: tt.current };
return { $$typeof: S, type: t, key: s, ref: l, props: n, _owner: tt.current };
}
d.jsx = S;
d.jsxs = S;
f.jsx = U;
f.jsxs = U;
(function(t) {
t.exports = d;
})(J);
const rt = f.Fragment, l = f.jsx, nt = f.jsxs, st = () => /* @__PURE__ */ l(
t.exports = f;
})(A);
const rt = u.Fragment, c = u.jsx, nt = u.jsxs, st = () => /* @__PURE__ */ c(
"svg",

@@ -92,5 +92,5 @@ {

xmlSpace: "preserve",
children: /* @__PURE__ */ l("g", { fill: "currentColor", children: /* @__PURE__ */ l("path", { d: "M67.022 22.86c-4.467-.143-7.421.997-9.238 3.277-2.423-1.995-6.36-3.277-9.692-3.277-10.224 0-15.524 6.41-15.524 12.894 0 4.489 2.575 7.338 5.831 9.832-1.741.499-6.134 3.205-6.134 6.767 0 3.99 4.013 4.916 5.83 5.984v.143c-3.407 0-7.117 2.208-7.117 6.84 0 5.841 6.966 8.832 17.568 8.832 12.57 0 18.25-5.698 18.25-10.97 0-14.818-25.898-6.696-25.898-12.681 0-2.137 3.256-2.28 7.344-2.28 9.844 0 14.842-4.987 14.842-11.968 0-2.85-.909-4.987-2.12-6.554 1.44-.855 3.862-.855 6.058-.855V22.86zM46.274 59.904c9.087 0 11.888 2.565 11.888 4.275 0 1.282-2.044 4.132-8.102 4.132-7.875 0-10.45-1.283-10.45-4.132 0-1.567 1.515-4.275 6.664-4.275zm1.742-18.237c-4.013 0-6.816-2.706-6.816-6.127s2.803-6.126 6.816-6.126c3.558 0 6.436 2.706 6.436 6.126s-2.878 6.127-6.436 6.127z" }) })
children: /* @__PURE__ */ c("g", { fill: "currentColor", children: /* @__PURE__ */ c("path", { d: "M67.022 22.86c-4.467-.143-7.421.997-9.238 3.277-2.423-1.995-6.36-3.277-9.692-3.277-10.224 0-15.524 6.41-15.524 12.894 0 4.489 2.575 7.338 5.831 9.832-1.741.499-6.134 3.205-6.134 6.767 0 3.99 4.013 4.916 5.83 5.984v.143c-3.407 0-7.117 2.208-7.117 6.84 0 5.841 6.966 8.832 17.568 8.832 12.57 0 18.25-5.698 18.25-10.97 0-14.818-25.898-6.696-25.898-12.681 0-2.137 3.256-2.28 7.344-2.28 9.844 0 14.842-4.987 14.842-11.968 0-2.85-.909-4.987-2.12-6.554 1.44-.855 3.862-.855 6.058-.855V22.86zM46.274 59.904c9.087 0 11.888 2.565 11.888 4.275 0 1.282-2.044 4.132-8.102 4.132-7.875 0-10.45-1.283-10.45-4.132 0-1.567 1.515-4.275 6.664-4.275zm1.742-18.237c-4.013 0-6.816-2.706-6.816-6.127s2.803-6.126 6.816-6.126c3.558 0 6.436 2.706 6.436 6.126s-2.878 6.127-6.436 6.127z" }) })
}
), at = H(T)`
), at = P(O)`
* button {

@@ -102,3 +102,3 @@ margin-right: 8px;

}
`, it = ({
`, lt = ({
columns: t,

@@ -108,3 +108,3 @@ tool: e,

children: r
}) => e === a.CUSTOM ? /* @__PURE__ */ l(
}) => e === a.CUSTOM ? /* @__PURE__ */ c(
at,

@@ -117,5 +117,5 @@ {

}
) : /* @__PURE__ */ l(T, { tool: e, reverse: o, children: r }), g = 112, h = 8, y = 24 * 2;
let u = 2;
const ct = (t) => {
) : /* @__PURE__ */ c(O, { tool: e, reverse: o, children: r }), h = 112, g = 8, T = 24 * 2;
let d = 2;
const it = (t) => {
if (document) {

@@ -125,14 +125,14 @@ let r = null;

const { width: n } = r.getBoundingClientRect();
n * 0.4 > 4 * g + 3 * h + y ? u = 4 : n * 0.4 > 3 * g + 2 * h + y && (u = 3);
n * 0.4 > 4 * h + 3 * g + T ? d = 4 : n * 0.4 > 3 * h + 2 * g + T && (d = 3);
}
}
const e = R(
g * 2 + h * 1 + y
const e = W(
h * 2 + g * 1 + T
), o = {
advancedUIToolControlBar: {
width: g * u + h * (u - 1) + y + 4
width: h * d + g * (d - 1) + T + 4
}
};
return [u, e, o];
}, lt = ({
return [d, e, o];
}, ct = ({
tool: t,

@@ -142,11 +142,11 @@ children: e

e,
t === a.CUSTOM && /* @__PURE__ */ l(W, {})
t === a.CUSTOM && /* @__PURE__ */ c(Q, {})
] }), mt = (t) => {
t();
}, ut = (t) => {
}, dt = (t) => {
console.log(`Caught error ${t}`);
}, ft = (t) => () => fetch(t, {
}, ut = (t) => () => fetch(t, {
method: "GET",
redirect: "follow"
}).then((o) => o.json()).then((o) => o.access_token), dt = ({
}).then((o) => o.json()).then((o) => o.access_token), ft = ({
gettyAPIKey: t,

@@ -158,7 +158,7 @@ gettyTokenURL: e,

searchParams: s,
container: i,
imageSize: c = z.Large,
displaySize: I = L.High,
endpoint: x = K.Creative,
...j
container: l,
imageSize: i = Y.Large,
displaySize: j = D.High,
endpoint: I = _.Creative,
...R
}) => {

@@ -168,7 +168,7 @@ !o && !e && console.warn(

);
const E = N({
const v = B({
apiKey: t,
fetchToken: o || ft(e || ""),
fetchToken: o || ut(e || ""),
searchParams: {
sort_order: $.BestMatch,
sort_order: z.BestMatch,
orientations: [],

@@ -179,11 +179,11 @@ phrase: "Adventure",

showFilters: !0,
displaySize: I,
onError: r || ut,
endpoint: x
}), U = q({
displaySize: j,
onError: r || dt,
endpoint: I
}), C = G({
onConfirm: n || mt,
imageSize: c
}), _ = window.atob(""), [B, M, A] = ct(i), P = {
container: i,
license: _,
imageSize: i
}), x = window.atob("eyJhcGlfdG9rZW4iOiJCc1pfbDJGMGc4UWFHNmg2UDJabm13IiwiYXBwX2lkZW50aWZpZXJzIjpbXSwiYXZhaWxhYmxlX2FjdGlvbnMiOltdLCJkb21haW5zIjpbImFwaS5waG90b2VkaXRvcnNkay5jb20iXSwiZW50ZXJwcmlzZV9saWNlbnNlIjpmYWxzZSwiZXhwaXJlc19hdCI6bnVsbCwiZmVhdHVyZXMiOlsibm9leHBvcnR0cmFja2luZyIsImV4cG9ydCIsIndoaXRlbGFiZWwiLCJ0cmFuc2Zvcm0iXSwiaXNzdWVkX2F0IjoxNjQ5MjQ5MzM1LCJtaW5pbXVtX3Nka192ZXJzaW9uIjoiMS4wIiwib3duZXIiOiJpbWcubHkgR21iSCIsInBsYXRmb3JtIjoiSFRNTDUiLCJwcm9kdWN0cyI6WyJwZXNkayJdLCJ2ZXJzaW9uIjoiMi40Iiwic2lnbmF0dXJlIjoiSmNEKzFOQnY2aU1YY3lxWU1KYzZXOERIb1gxSkVlalZZM1VETXJJUVdvTGlxMlpGbzB1YmFZNU9hVy96YisrQW9wTlpvdlNXRTBlRjdFREt3UkdZVnRHaEZnK2dOS28wdk1CT3NZZWl1RnhtYkdkRTdUYlpmaW56a0dlSHpRRUhnQnpjcE5aQjJ1NWwwY3VYejdleStQVGNiQjJJR2ZROWdmV0VQK3owN3lDYzFmM0lWeTdUR3JFNzJRUGE5OXVxNjJnaXUwdGQrZkN0dkc0VDlBUDFvZmxyWCtOekNjb1ZLUDQwN0ZqSTZiZXJuaEsxY1RwKzRGT3k5NG9LeDJRNTg4aDE1ZzZPbUwvMW55TUE1Sm9jQU1uV2oyT3ZTQVEyMEl3TW1FNEFjcytHdnFLZWlHSlZHVjVGSHdMRTMrVnhWOGlvbW1WbmxhZXBUSC9BRkRIc1ZaYlliOS9nTk9IUEVuRW1DRDNTdTBMUm1nQjY0QXIyY2Q1K082VzloY3ZIZmhqT2ZMZlZhNEFmd2xqY3JOSlpjOTF6TGZwMmkxRFhSdGw2MFBtZGorczVWem1KbkZ5VTBFZzVxTlM4WHcwY3RPZUxDN3psNEx2V0xNWTl6K3JOTFdrd09peVozTmhiY3pBVUx6VXRFckJkZVdoTlZHRFQvbThiU1h4enRvUmE2VEUrWkYvNTZwTXdJM0ZxRHlsQ01nM3lvQVJDZ0szcjVrLzYvQlVKajRTNzZhdlFYMVY2dFNhUlhxUkRsSlEzbHVBY3UrVnpMMVZLMFJSazVmNlRVZmZha2MyRlRweUNCRmhGd0VXZjhzd2FLTWg4bE1kM21RbnM3aHpDUzhvR0FSaXVSNHBoTUcrTGlKUmJnWUo5TFQvTzA5Z2UxZTJodW9jRDkxSVN1K0k9In0="), [V, M, N] = it(l), E = {
container: l,
license: x,
assetBaseUrl: "https://cdn.img.ly/packages/imgly/photoeditorsdk/latest/assets",

@@ -195,10 +195,10 @@ image: "",

icon: st,
toolControlBar: E,
measurements: A
toolControlBar: v,
measurements: N
},
transform: {
advancedUIToolControlBarOrder: [
O.ResetTransformButton,
O.Separator,
O.Items
b.ResetTransformButton,
b.Separator,
b.Items
]

@@ -209,3 +209,3 @@ },

enableDownload: !1,
exportType: k.DATA_URL
exportType: F.DATA_URL
}

@@ -216,6 +216,6 @@ },

buttons: {
mainCanvasActionExport: U
mainCanvasActionExport: C
},
windowContainer: lt,
advancedUIToolControlBar: (b) => /* @__PURE__ */ l(it, { ...b, columns: B })
windowContainer: ct,
advancedUIToolControlBar: (w) => /* @__PURE__ */ c(lt, { ...w, columns: V })
},

@@ -235,12 +235,12 @@ languages: {

}
}, m = D([P, j]);
}, m = k([E, R]);
return m.tools ? m.tools.some((p) => !!(typeof p == "string" && p === a.CUSTOM || Array.isArray(p) && p.includes(a.CUSTOM))) || (m.tools = [a.CUSTOM, ...m.tools]) : m.tools = [a.CUSTOM], m;
}, Ot = {
}, bt = {
init: (t) => {
const e = dt(t);
return F.init(e);
const e = ft(t);
return J.init(e);
}
};
export {
Ot as PhotoEditorSDKUI
bt as PhotoEditorSDKUI
};
{
"name": "@pesdk/getty-images-integration",
"version": "1.0.1",
"version": "1.0.2",
"main": "./dist/getty-images.umd.js",

@@ -5,0 +5,0 @@ "module": "./dist/getty-images.es.js",

@@ -39,3 +39,3 @@ # Getty Images Library SDK

container: "#editor",
assetBaseUrl: "https://cdn.img.ly/packages/imgly/photoeditorsdk/5.17.3/assets",
assetBaseUrl: "https://cdn.img.ly/packages/imgly/photoeditorsdk/5.17.4/assets",
});

@@ -42,0 +42,0 @@ ```

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc