sanity-plugin-asset-source-unsplash 0.2.0 → 0.2.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 Sanity, Inc
3
+ Copyright (c) 2022 Sanity, Inc
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Sanity Asset Source Plugin: Unsplash
2
2
  Search for photos on Unsplash and add them to your project right inside Sanity Studio.
3
3
 
4
- [![Build Status](https://travis-ci.org/sanity-io/sanity-plugin-asset-source-unsplash.svg?branch=master)](https://travis-ci.org/sanity-io/sanity-plugin-asset-source-unsplash)
4
+
5
5
 
6
6
  ## Installation
7
7
 
@@ -1,13 +1,20 @@
1
1
  "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
2
6
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
7
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
8
  };
5
9
  Object.defineProperty(exports, "__esModule", { value: true });
6
10
  var react_1 = __importDefault(require("react"));
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ var Svg = styled_components_1.default.svg(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transform: scale(0.8);\n"], ["\n transform: scale(0.8);\n"])));
7
13
  function UnsplashIcon() {
8
- return (react_1.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", width: "1em", height: "1em" },
14
+ return (react_1.default.createElement(Svg, { role: "img", viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "currentColor" },
9
15
  react_1.default.createElement("title", null),
10
16
  react_1.default.createElement("path", { d: "M7.5 6.75V0h9v6.75h-9zm9 3.75H24V24H0V10.5h7.5v6.75h9V10.5z" })));
11
17
  }
12
18
  exports.default = UnsplashIcon;
19
+ var templateObject_1;
13
20
  //# sourceMappingURL=Icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon.tsx"],"names":[],"mappings":";;;;;AAAA,gDAAyB;AAEzB,SAAwB,YAAY;IAClC,OAAO,CACL,uCAAK,IAAI,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK;QAC1D,4CAAS;QACT,wCAAM,CAAC,EAAC,6DAA6D,GAAG,CACpE,CACP,CAAA;AACH,CAAC;AAPD,+BAOC"}
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,gDAAyB;AACzB,wEAAsC;AAEtC,IAAM,GAAG,GAAG,2BAAM,CAAC,GAAG,iGAAA,8BAErB,IAAA,CAAA;AAED,SAAwB,YAAY;IAClC,OAAO,CACL,8BAAC,GAAG,IAAC,IAAI,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,IAAI,EAAC,cAAc;QAC9E,4CAAS;QACT,wCAAM,CAAC,EAAC,6DAA6D,GAAG,CACpE,CACP,CAAA;AACH,CAAC;AAPD,+BAOC"}
@@ -1342,14 +1342,14 @@ var PhotoAlbum = function PhotoAlbum(props) {
1342
1342
  });
1343
1343
  };
1344
1344
 
1345
- var Root = styled.div(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n overflow: hidden;\n background-origin: content-box;\n background-repeat: no-repeat;\n background-clip: border-box;\n background-size: cover;\n position: relative;\n outline: none !important;\n border: 1px solid white;\n box-sizing: content-box;\n user-drag: none;\n\n &:hover {\n opacity: 0.85;\n }\n\n &:focus,\n &:active {\n border: 1px solid var(--input-border-color-focus);\n box-shadow: inset 0 0 0 3px var(--input-border-color-focus);\n }\n"], ["\n overflow: hidden;\n background-origin: content-box;\n background-repeat: no-repeat;\n background-clip: border-box;\n background-size: cover;\n position: relative;\n outline: none !important;\n border: 1px solid white;\n box-sizing: content-box;\n user-drag: none;\n\n &:hover {\n opacity: 0.85;\n }\n\n &:focus,\n &:active {\n border: 1px solid var(--input-border-color-focus);\n box-shadow: inset 0 0 0 3px var(--input-border-color-focus);\n }\n"])));
1345
+ var Root = styled.div(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n overflow: hidden;\n background-origin: content-box;\n background-repeat: no-repeat;\n background-clip: border-box;\n background-size: cover;\n position: relative;\n outline: none !important;\n border: 1px solid white;\n box-sizing: content-box;\n user-drag: none;\n\n &:hover {\n opacity: 0.85;\n }\n\n &:focus,\n &:active {\n border: 1px solid var(--input-border-color-focus);\n box-shadow: inset 0 0 0 3px var(--input-border-color-focus);\n }\n"], ["\n overflow: hidden;\n background-origin: content-box;\n background-repeat: no-repeat;\n background-clip: border-box;\n background-size: cover;\n position: relative;\n outline: none !important;\n border: 1px solid white;\n box-sizing: content-box;\n user-drag: none;\n\n &:hover {\n opacity: 0.85;\n }\n\n &:focus,\n &:active {\n border: 1px solid var(--input-border-color-focus);\n box-shadow: inset 0 0 0 3px var(--input-border-color-focus);\n }\n"])));
1346
1346
  var CreditLineLink = styled.a(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n text-decoration: none;\n cursor: pointer;\n"], ["\n text-decoration: none;\n cursor: pointer;\n"])));
1347
1347
  var CreditLine = styled(Card)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n user-drag: none;\n position: absolute;\n background-color: var(--creditline-bg);\n bottom: 0;\n\n [data-ui='Text'] {\n color: var(--creditline-fg);\n }\n"], ["\n ",
1348
1348
  ";\n user-drag: none;\n position: absolute;\n background-color: var(--creditline-bg);\n bottom: 0;\n\n [data-ui='Text'] {\n color: var(--creditline-fg);\n }\n"])), function (_a) {
1349
1349
  var theme = _a.theme;
1350
1350
  return "\n --creditline-fg: " + theme.sanity.color.base.bg + ";\n --creditline-bg: " + theme.sanity.color.base.fg + ";\n ";
1351
1351
  });
1352
- var templateObject_1$1, templateObject_2$1, templateObject_3;
1352
+ var templateObject_1$2, templateObject_2$1, templateObject_3;
1353
1353
 
1354
1354
  var UTM_SOURCE = 'sanity-plugin-asset-source-unsplash';
1355
1355
  var Photo = /** @class */ (function (_super) {
@@ -11686,9 +11686,9 @@ var search = function (query, page, resultsPerPage) {
11686
11686
  })));
11687
11687
  };
11688
11688
 
11689
- var Search = styled(Stack)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: sticky;\n top: 0;\n z-index: 1;\n"], ["\n position: sticky;\n top: 0;\n z-index: 1;\n"])));
11689
+ var Search = styled(Stack)(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n position: sticky;\n top: 0;\n z-index: 1;\n"], ["\n position: sticky;\n top: 0;\n z-index: 1;\n"])));
11690
11690
  styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n overflow-y: auto;\n max-height: 80vh;\n"], ["\n overflow-y: auto;\n max-height: 80vh;\n"])));
11691
- var templateObject_1, templateObject_2;
11691
+ var templateObject_1$1, templateObject_2;
11692
11692
 
11693
11693
  /*! *****************************************************************************
11694
11694
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12260,11 +12260,13 @@ var UnsplashAssetSource = /** @class */ (function (_super) {
12260
12260
  return UnsplashAssetSource;
12261
12261
  }(React.Component));
12262
12262
 
12263
+ var Svg = styled.svg(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transform: scale(0.8);\n"], ["\n transform: scale(0.8);\n"])));
12263
12264
  function UnsplashIcon() {
12264
- return (React.createElement("svg", { role: "img", viewBox: "0 0 24 24", width: "1em", height: "1em" },
12265
+ return (React.createElement(Svg, { role: "img", viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "currentColor" },
12265
12266
  React.createElement("title", null),
12266
12267
  React.createElement("path", { d: "M7.5 6.75V0h9v6.75h-9zm9 3.75H24V24H0V10.5h7.5v6.75h9V10.5z" })));
12267
- }
12268
+ }
12269
+ var templateObject_1;
12268
12270
 
12269
12271
  var index = {
12270
12272
  name: 'unsplash',