@plasmicpkgs/plasmic-spotify 0.0.1
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 +21 -0
- package/README.md +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +8 -0
- package/dist/plasmic-spotify.cjs.development.js +73 -0
- package/dist/plasmic-spotify.cjs.development.js.map +1 -0
- package/dist/plasmic-spotify.cjs.production.min.js +2 -0
- package/dist/plasmic-spotify.cjs.production.min.js.map +1 -0
- package/dist/plasmic-spotify.esm.js +64 -0
- package/dist/plasmic-spotify.esm.js.map +1 -0
- package/dist/spotify.d.ts +11 -0
- package/package.json +52 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Latipov Abdukhamid
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Plasmic components and registration calls for Spotify
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import registerComponent from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import registerGlobalContext from "@plasmicapp/host/registerGlobalContext";
|
|
3
|
+
export declare function registerAll(loader?: {
|
|
4
|
+
registerComponent: typeof registerComponent;
|
|
5
|
+
registerGlobalContext: typeof registerGlobalContext;
|
|
6
|
+
}): void;
|
|
7
|
+
export * from "./spotify";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
7
|
+
var registerComponent = _interopDefault(require('@plasmicapp/host/registerComponent'));
|
|
8
|
+
var React = _interopDefault(require('react'));
|
|
9
|
+
|
|
10
|
+
function ensure(x) {
|
|
11
|
+
if (x === null || x === undefined) {
|
|
12
|
+
debugger;
|
|
13
|
+
throw new Error("Value must not be undefined or null");
|
|
14
|
+
} else {
|
|
15
|
+
return x;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
var modulePath = "@plasmicpkgs/plasmic-spotify";
|
|
19
|
+
var SpotifyMeta = {
|
|
20
|
+
name: "Spotify",
|
|
21
|
+
displayName: "Spotify",
|
|
22
|
+
importName: "Spotify",
|
|
23
|
+
importPath: modulePath,
|
|
24
|
+
providesData: true,
|
|
25
|
+
description: "Spotify Player",
|
|
26
|
+
props: {
|
|
27
|
+
url: {
|
|
28
|
+
type: "string",
|
|
29
|
+
displayName: "URL",
|
|
30
|
+
description: "Song URL",
|
|
31
|
+
defaultValue: "https://open.spotify.com/embed/track/3rmo8F54jFF8OgYsqTxm5d"
|
|
32
|
+
},
|
|
33
|
+
theme: {
|
|
34
|
+
type: "boolean",
|
|
35
|
+
displayName: "Theme",
|
|
36
|
+
description: "Theme"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
function Spotify(_ref) {
|
|
41
|
+
var className = _ref.className,
|
|
42
|
+
url = _ref.url,
|
|
43
|
+
theme = _ref.theme;
|
|
44
|
+
var value = theme ? "1" : "0";
|
|
45
|
+
var query = url + "?utm_source=generator&theme=" + value;
|
|
46
|
+
return React.createElement("iframe", {
|
|
47
|
+
src: query,
|
|
48
|
+
frameBorder: "0",
|
|
49
|
+
scrolling: "no",
|
|
50
|
+
width: "400",
|
|
51
|
+
height: "166",
|
|
52
|
+
className: className
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function registerAll(loader) {
|
|
57
|
+
var _registerComponent = function _registerComponent(Component, defaultMeta) {
|
|
58
|
+
if (loader) {
|
|
59
|
+
loader.registerComponent(Component, defaultMeta);
|
|
60
|
+
} else {
|
|
61
|
+
registerComponent(Component, defaultMeta);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
if (loader) {
|
|
65
|
+
_registerComponent(Spotify, SpotifyMeta);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
exports.Spotify = Spotify;
|
|
70
|
+
exports.SpotifyMeta = SpotifyMeta;
|
|
71
|
+
exports.ensure = ensure;
|
|
72
|
+
exports.registerAll = registerAll;
|
|
73
|
+
//# sourceMappingURL=plasmic-spotify.cjs.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plasmic-spotify.cjs.development.js","sources":["../src/spotify.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-spotify\";\n\ninterface SpotifyProps {\n theme?: boolean;\n url?: string;\n className?: string;\n}\n\nexport const SpotifyMeta: ComponentMeta<SpotifyProps> = {\n name: \"Spotify\",\n displayName: \"Spotify\",\n importName: \"Spotify\",\n importPath: modulePath,\n providesData: true,\n description: \"Spotify Player\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: \"Song URL\",\n defaultValue:\n \"https://open.spotify.com/embed/track/3rmo8F54jFF8OgYsqTxm5d\",\n },\n theme: {\n type: \"boolean\",\n displayName: \"Theme\",\n description: \"Theme\",\n },\n\n },\n};\n\nexport function Spotify({\n className,\n url,\n theme,\n}: SpotifyProps) {\n const value = theme ? \"1\" : \"0\"\n const query = `${url}?utm_source=generator&theme=${value}`;\n return (\n <iframe\n src={query}\n frameBorder=\"0\"\n scrolling=\"no\"\n width=\"400\"\n height=\"166\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Spotify,\n SpotifyMeta,\n} from \"./spotify\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n _registerComponent(Spotify, SpotifyMeta);\n }\n}\n\nexport * from \"./spotify\";"],"names":["ensure","x","undefined","Error","modulePath","SpotifyMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","theme","Spotify","className","value","query","React","src","frameBorder","scrolling","width","height","registerAll","loader","_registerComponent","Component","defaultMeta","registerComponent"],"mappings":";;;;;;;;;SAGgBA,MAAM,CAAIC,CAAuB;EAC/C,IAAIA,CAAC,KAAK,IAAI,IAAIA,CAAC,KAAKC,SAAS,EAAE;IACjC;IACA,MAAM,IAAIC,KAAK,uCAAuC;GACvD,MAAM;IACL,OAAOF,CAAC;;AAEZ;AAEA,IAAMG,UAAU,GAAG,8BAA8B;IAQpCC,WAAW,GAAgC;EACtDC,IAAI,EAAE,SAAS;EACfC,WAAW,EAAE,SAAS;EACtBC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EAAE,gBAAgB;EAC7BC,KAAK,EAAE;IACLC,GAAG,EAAE;MACHC,IAAI,EAAE,QAAQ;MACdP,WAAW,EAAE,KAAK;MAClBI,WAAW,EAAE,UAAU;MACvBI,YAAY,EACV;KACH;IACDC,KAAK,EAAE;MACLF,IAAI,EAAE,SAAS;MACfP,WAAW,EAAE,OAAO;MACpBI,WAAW,EAAE;;;;SAMHM,OAAO;MACrBC,SAAS,QAATA,SAAS;IACTL,GAAG,QAAHA,GAAG;IACHG,KAAK,QAALA,KAAK;EAEL,IAAMG,KAAK,GAAGH,KAAK,GAAG,GAAG,GAAG,GAAG;EAC/B,IAAMI,KAAK,GAAMP,GAAG,oCAA+BM,KAAO;EAC1D,OACEE;IACEC,GAAG,EAAEF,KAAK;IACVG,WAAW,EAAC,GAAG;IACfC,SAAS,EAAC,IAAI;IACdC,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC,KAAK;IACZR,SAAS,EAAEA;IACX;AAEN;;SCnDgBS,WAAW,CAACC,MAG3B;EACC,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkB,CACtBC,SAAY,EACZC,WAAmD;IAEnD,IAAIH,MAAM,EAAE;MACVA,MAAM,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;KACjD,MAAM;MACLC,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;;GAE5C;EAED,IAAIH,MAAM,EAAE;IACVC,kBAAkB,CAACZ,OAAO,EAAEZ,WAAW,CAAC;;AAE5C;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),r=e(require("react")),o={name:"Spotify",displayName:"Spotify",importName:"Spotify",importPath:"@plasmicpkgs/plasmic-spotify",providesData:!0,description:"Spotify Player",props:{url:{type:"string",displayName:"URL",description:"Song URL",defaultValue:"https://open.spotify.com/embed/track/3rmo8F54jFF8OgYsqTxm5d"},theme:{type:"boolean",displayName:"Theme",description:"Theme"}}};function i(e){return r.createElement("iframe",{src:e.url+"?utm_source=generator&theme="+(e.theme?"1":"0"),frameBorder:"0",scrolling:"no",width:"400",height:"166",className:e.className})}exports.Spotify=i,exports.SpotifyMeta=o,exports.ensure=function(e){if(null==e)throw new Error("Value must not be undefined or null");return e},exports.registerAll=function(e){var r,p;e&&(r=i,p=o,e?e.registerComponent(r,p):t(r,p))};
|
|
2
|
+
//# sourceMappingURL=plasmic-spotify.cjs.production.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plasmic-spotify.cjs.production.min.js","sources":["../src/spotify.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-spotify\";\n\ninterface SpotifyProps {\n theme?: boolean;\n url?: string;\n className?: string;\n}\n\nexport const SpotifyMeta: ComponentMeta<SpotifyProps> = {\n name: \"Spotify\",\n displayName: \"Spotify\",\n importName: \"Spotify\",\n importPath: modulePath,\n providesData: true,\n description: \"Spotify Player\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: \"Song URL\",\n defaultValue:\n \"https://open.spotify.com/embed/track/3rmo8F54jFF8OgYsqTxm5d\",\n },\n theme: {\n type: \"boolean\",\n displayName: \"Theme\",\n description: \"Theme\",\n },\n\n },\n};\n\nexport function Spotify({\n className,\n url,\n theme,\n}: SpotifyProps) {\n const value = theme ? \"1\" : \"0\"\n const query = `${url}?utm_source=generator&theme=${value}`;\n return (\n <iframe\n src={query}\n frameBorder=\"0\"\n scrolling=\"no\"\n width=\"400\"\n height=\"166\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Spotify,\n SpotifyMeta,\n} from \"./spotify\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n _registerComponent(Spotify, SpotifyMeta);\n }\n}\n\nexport * from \"./spotify\";"],"names":["SpotifyMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","theme","Spotify","React","src","frameBorder","scrolling","width","height","className","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"uNAoBaA,EAA2C,CACtDC,KAAM,UACNC,YAAa,UACbC,WAAY,UACZC,WAZiB,+BAajBC,cAAc,EACdC,YAAa,iBACbC,MAAO,CACLC,IAAK,CACHC,KAAM,SACNP,YAAa,MACbI,YAAa,WACbI,aACE,+DAEJC,MAAO,CACLF,KAAM,UACNP,YAAa,QACbI,YAAa,oBAMHM,KAOd,OACEC,0BACEC,MAPJN,sCACAG,MAEsB,IAAM,KAKxBI,YAAY,IACZC,UAAU,KACVC,MAAM,MACNC,OAAO,MACPC,YAbJA,4EA1CwBC,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCEiBE,GAI1B,IACEC,EACAC,EASEF,IAVFC,EAWmBX,EAVnBY,EAU4BxB,EARxBsB,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
function ensure(x) {
|
|
5
|
+
if (x === null || x === undefined) {
|
|
6
|
+
debugger;
|
|
7
|
+
throw new Error("Value must not be undefined or null");
|
|
8
|
+
} else {
|
|
9
|
+
return x;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
var modulePath = "@plasmicpkgs/plasmic-spotify";
|
|
13
|
+
var SpotifyMeta = {
|
|
14
|
+
name: "Spotify",
|
|
15
|
+
displayName: "Spotify",
|
|
16
|
+
importName: "Spotify",
|
|
17
|
+
importPath: modulePath,
|
|
18
|
+
providesData: true,
|
|
19
|
+
description: "Spotify Player",
|
|
20
|
+
props: {
|
|
21
|
+
url: {
|
|
22
|
+
type: "string",
|
|
23
|
+
displayName: "URL",
|
|
24
|
+
description: "Song URL",
|
|
25
|
+
defaultValue: "https://open.spotify.com/embed/track/3rmo8F54jFF8OgYsqTxm5d"
|
|
26
|
+
},
|
|
27
|
+
theme: {
|
|
28
|
+
type: "boolean",
|
|
29
|
+
displayName: "Theme",
|
|
30
|
+
description: "Theme"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function Spotify(_ref) {
|
|
35
|
+
var className = _ref.className,
|
|
36
|
+
url = _ref.url,
|
|
37
|
+
theme = _ref.theme;
|
|
38
|
+
var value = theme ? "1" : "0";
|
|
39
|
+
var query = url + "?utm_source=generator&theme=" + value;
|
|
40
|
+
return React.createElement("iframe", {
|
|
41
|
+
src: query,
|
|
42
|
+
frameBorder: "0",
|
|
43
|
+
scrolling: "no",
|
|
44
|
+
width: "400",
|
|
45
|
+
height: "166",
|
|
46
|
+
className: className
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function registerAll(loader) {
|
|
51
|
+
var _registerComponent = function _registerComponent(Component, defaultMeta) {
|
|
52
|
+
if (loader) {
|
|
53
|
+
loader.registerComponent(Component, defaultMeta);
|
|
54
|
+
} else {
|
|
55
|
+
registerComponent(Component, defaultMeta);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
if (loader) {
|
|
59
|
+
_registerComponent(Spotify, SpotifyMeta);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { Spotify, SpotifyMeta, ensure, registerAll };
|
|
64
|
+
//# sourceMappingURL=plasmic-spotify.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plasmic-spotify.esm.js","sources":["../src/spotify.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-spotify\";\n\ninterface SpotifyProps {\n theme?: boolean;\n url?: string;\n className?: string;\n}\n\nexport const SpotifyMeta: ComponentMeta<SpotifyProps> = {\n name: \"Spotify\",\n displayName: \"Spotify\",\n importName: \"Spotify\",\n importPath: modulePath,\n providesData: true,\n description: \"Spotify Player\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: \"Song URL\",\n defaultValue:\n \"https://open.spotify.com/embed/track/3rmo8F54jFF8OgYsqTxm5d\",\n },\n theme: {\n type: \"boolean\",\n displayName: \"Theme\",\n description: \"Theme\",\n },\n\n },\n};\n\nexport function Spotify({\n className,\n url,\n theme,\n}: SpotifyProps) {\n const value = theme ? \"1\" : \"0\"\n const query = `${url}?utm_source=generator&theme=${value}`;\n return (\n <iframe\n src={query}\n frameBorder=\"0\"\n scrolling=\"no\"\n width=\"400\"\n height=\"166\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Spotify,\n SpotifyMeta,\n} from \"./spotify\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n _registerComponent(Spotify, SpotifyMeta);\n }\n}\n\nexport * from \"./spotify\";"],"names":["ensure","x","undefined","Error","modulePath","SpotifyMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","theme","Spotify","className","value","query","React","src","frameBorder","scrolling","width","height","registerAll","loader","_registerComponent","Component","defaultMeta","registerComponent"],"mappings":";;;SAGgBA,MAAM,CAAIC,CAAuB;EAC/C,IAAIA,CAAC,KAAK,IAAI,IAAIA,CAAC,KAAKC,SAAS,EAAE;IACjC;IACA,MAAM,IAAIC,KAAK,uCAAuC;GACvD,MAAM;IACL,OAAOF,CAAC;;AAEZ;AAEA,IAAMG,UAAU,GAAG,8BAA8B;IAQpCC,WAAW,GAAgC;EACtDC,IAAI,EAAE,SAAS;EACfC,WAAW,EAAE,SAAS;EACtBC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EAAE,gBAAgB;EAC7BC,KAAK,EAAE;IACLC,GAAG,EAAE;MACHC,IAAI,EAAE,QAAQ;MACdP,WAAW,EAAE,KAAK;MAClBI,WAAW,EAAE,UAAU;MACvBI,YAAY,EACV;KACH;IACDC,KAAK,EAAE;MACLF,IAAI,EAAE,SAAS;MACfP,WAAW,EAAE,OAAO;MACpBI,WAAW,EAAE;;;;SAMHM,OAAO;MACrBC,SAAS,QAATA,SAAS;IACTL,GAAG,QAAHA,GAAG;IACHG,KAAK,QAALA,KAAK;EAEL,IAAMG,KAAK,GAAGH,KAAK,GAAG,GAAG,GAAG,GAAG;EAC/B,IAAMI,KAAK,GAAMP,GAAG,oCAA+BM,KAAO;EAC1D,OACEE;IACEC,GAAG,EAAEF,KAAK;IACVG,WAAW,EAAC,GAAG;IACfC,SAAS,EAAC,IAAI;IACdC,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC,KAAK;IACZR,SAAS,EAAEA;IACX;AAEN;;SCnDgBS,WAAW,CAACC,MAG3B;EACC,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkB,CACtBC,SAAY,EACZC,WAAmD;IAEnD,IAAIH,MAAM,EAAE;MACVA,MAAM,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;KACjD,MAAM;MACLC,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;;GAE5C;EAED,IAAIH,MAAM,EAAE;IACVC,kBAAkB,CAACZ,OAAO,EAAEZ,WAAW,CAAC;;AAE5C;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentMeta } from "@plasmicapp/host";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare function ensure<T>(x: T | null | undefined): T;
|
|
4
|
+
interface SpotifyProps {
|
|
5
|
+
theme?: boolean;
|
|
6
|
+
url?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SpotifyMeta: ComponentMeta<SpotifyProps>;
|
|
10
|
+
export declare function Spotify({ className, url, theme, }: SpotifyProps): React.JSX.Element;
|
|
11
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@plasmicpkgs/plasmic-spotify",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Plasmic Spotify components.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
|
+
"module": "dist/plasmic-spotify.esm.js",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"start": "tsdx watch",
|
|
16
|
+
"build": "tsdx build",
|
|
17
|
+
"test": "yarn --cwd=../.. test --passWithNoTests",
|
|
18
|
+
"lint": "tsdx lint",
|
|
19
|
+
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
|
|
20
|
+
"size": "size-limit",
|
|
21
|
+
"analyze": "size-limit --why"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": ">=16"
|
|
25
|
+
},
|
|
26
|
+
"size-limit": [
|
|
27
|
+
{
|
|
28
|
+
"path": "dist/plasmic-spotify.cjs.production.min.js",
|
|
29
|
+
"limit": "10 KB"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "dist/plasmic-spotify.esm.js",
|
|
33
|
+
"limit": "10 KB"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@plasmicapp/host": "^1.0.117",
|
|
38
|
+
"@size-limit/preset-small-lib": "^7.0.8",
|
|
39
|
+
"@types/react": "^17.0.43",
|
|
40
|
+
"@types/react-dom": "^17.0.14",
|
|
41
|
+
"husky": "^7.0.4",
|
|
42
|
+
"react": "^18.0.0",
|
|
43
|
+
"react-dom": "^18.0.0",
|
|
44
|
+
"size-limit": "^7.0.8",
|
|
45
|
+
"tsdx": "^0.14.1",
|
|
46
|
+
"tslib": "^2.3.1"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@plasmicapp/query": "^0.1.61"
|
|
50
|
+
},
|
|
51
|
+
"gitHead": "6a7364c3fd0b59099a5869f3e99f13b51a391d0a"
|
|
52
|
+
}
|