@daouypkgs/react-twitter-widgets 0.0.233

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/README.md ADDED
@@ -0,0 +1 @@
1
+ Daouy registration calls for react-twitter-widgets
@@ -0,0 +1,32 @@
1
+ import { ComponentMeta } from "@daouy/host";
2
+ import registerComponent from "@daouy/host/registerComponent";
3
+ import React, { ComponentProps } from "react";
4
+ export declare function TimelineWrapper({ className, url, tweetLimit, chrome, theme, }: {
5
+ className?: string;
6
+ url?: string;
7
+ tweetLimit?: number;
8
+ chrome?: string;
9
+ theme?: string;
10
+ }): React.JSX.Element;
11
+ export declare const timelineWrapper: ComponentMeta<ComponentProps<typeof TimelineWrapper>>;
12
+ export declare function registerTimelineWrapper(loader?: {
13
+ registerComponent: typeof registerComponent;
14
+ }, customTimelineWrapper?: ComponentMeta<ComponentProps<typeof TimelineWrapper>>): void;
15
+ export declare function TweetWrapper({ className, tweetId, theme, }: {
16
+ className?: string;
17
+ tweetId?: string;
18
+ theme?: string;
19
+ }): React.JSX.Element;
20
+ export declare const tweetWrapper: ComponentMeta<ComponentProps<typeof TweetWrapper>>;
21
+ export declare function registerTweetWrapper(loader?: {
22
+ registerComponent: typeof registerComponent;
23
+ }, customTweetWrapper?: ComponentMeta<ComponentProps<typeof TweetWrapper>>): void;
24
+ export declare function FollowWrapper({ className, username, large, }: {
25
+ className?: string;
26
+ username?: string;
27
+ large?: boolean;
28
+ }): React.JSX.Element;
29
+ export declare const followWrapper: ComponentMeta<ComponentProps<typeof FollowWrapper>>;
30
+ export declare function registerFollowWrapper(loader?: {
31
+ registerComponent: typeof registerComponent;
32
+ }, customFollowWrapper?: ComponentMeta<ComponentProps<typeof FollowWrapper>>): void;
@@ -0,0 +1 @@
1
+ export * from "./Twitter";
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./react-twitter-widgets.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./react-twitter-widgets.cjs.development.js')
8
+ }
@@ -0,0 +1,181 @@
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('@daouy/host/registerComponent'));
8
+ var React = _interopDefault(require('react'));
9
+ var reactTwitterWidgets = require('react-twitter-widgets');
10
+
11
+ //
12
+ // This module registers Timeline, Tweet, and Follow, but not yet the Hashtag /
13
+ // Mention / Share components (would be easy additions).
14
+ //
15
+ // The components auto-size their heights by default, so it's actually
16
+ // sufficient to rely on just layout out an enclosing div.
17
+ //
18
+ function TimelineWrapper(_ref) {
19
+ var className = _ref.className,
20
+ url = _ref.url,
21
+ tweetLimit = _ref.tweetLimit,
22
+ chrome = _ref.chrome,
23
+ theme = _ref.theme;
24
+ if (!url) {
25
+ throw new Error("Timeline component requires a URL");
26
+ }
27
+ return React.createElement("div", {
28
+ className: className
29
+ }, React.createElement(reactTwitterWidgets.Timeline, {
30
+ dataSource: {
31
+ sourceType: "url",
32
+ url: url
33
+ },
34
+ options: {
35
+ tweetLimit: tweetLimit,
36
+ chrome: chrome,
37
+ theme: theme
38
+ }
39
+ }));
40
+ }
41
+ var timelineWrapper = {
42
+ name: "hostless-react-twitter-widgets-timeline",
43
+ displayName: "Timeline",
44
+ importName: "TimelineWrapper",
45
+ importPath: "@daouypkgs/react-twitter-widgets",
46
+ props: {
47
+ url: {
48
+ type: "string",
49
+ description: "URL to a Twitter user or list",
50
+ defaultValue: "https://twitter.com/daouyapp"
51
+ },
52
+ tweetLimit: {
53
+ type: "number",
54
+ description: "Number of tweets to be displayed. Between 1 and 20",
55
+ min: 1,
56
+ max: 20
57
+ },
58
+ chrome: {
59
+ type: "choice",
60
+ description: "Toggle the display of design elements in the widget",
61
+ multiSelect: true,
62
+ options: ["noheader", "nofooter", "noborders", "transparent", "noscrollbar"]
63
+ },
64
+ theme: {
65
+ type: "choice",
66
+ description: "Toggle the default color scheme",
67
+ options: ["dark", "light"],
68
+ defaultValueHint: "light"
69
+ }
70
+ },
71
+ defaultStyles: {
72
+ display: "flex",
73
+ flexDirection: "column",
74
+ overflowY: "auto"
75
+ }
76
+ };
77
+ function registerTimelineWrapper(loader, customTimelineWrapper) {
78
+ if (loader) {
79
+ loader.registerComponent(TimelineWrapper, customTimelineWrapper != null ? customTimelineWrapper : timelineWrapper);
80
+ } else {
81
+ registerComponent(TimelineWrapper, customTimelineWrapper != null ? customTimelineWrapper : timelineWrapper);
82
+ }
83
+ }
84
+ function TweetWrapper(_ref2) {
85
+ var className = _ref2.className,
86
+ tweetId = _ref2.tweetId,
87
+ theme = _ref2.theme;
88
+ if (!tweetId) {
89
+ throw new Error("Tweet component requires a tweetId");
90
+ }
91
+ return React.createElement("div", {
92
+ className: className
93
+ }, React.createElement(reactTwitterWidgets.Tweet, {
94
+ tweetId: tweetId,
95
+ options: {
96
+ theme: theme
97
+ }
98
+ }));
99
+ }
100
+ var tweetWrapper = {
101
+ name: "hostless-react-twitter-widgets-tweet",
102
+ displayName: "Tweet",
103
+ importName: "TweetWrapper",
104
+ importPath: "@daouypkgs/react-twitter-widgets",
105
+ props: {
106
+ tweetId: {
107
+ type: "string",
108
+ description: "The tweet ID",
109
+ defaultValue: "1381980305305694209"
110
+ },
111
+ theme: {
112
+ type: "choice",
113
+ description: "Toggle the default color scheme",
114
+ options: ["dark", "light"],
115
+ defaultValueHint: "light"
116
+ }
117
+ },
118
+ defaultStyles: {
119
+ display: "flex",
120
+ flexDirection: "column",
121
+ overflowY: "auto"
122
+ }
123
+ };
124
+ function registerTweetWrapper(loader, customTweetWrapper) {
125
+ if (loader) {
126
+ loader.registerComponent(TweetWrapper, customTweetWrapper != null ? customTweetWrapper : tweetWrapper);
127
+ } else {
128
+ registerComponent(TweetWrapper, customTweetWrapper != null ? customTweetWrapper : tweetWrapper);
129
+ }
130
+ }
131
+ function FollowWrapper(_ref3) {
132
+ var className = _ref3.className,
133
+ username = _ref3.username,
134
+ large = _ref3.large;
135
+ if (!username) {
136
+ throw new Error("Follow component requires a username");
137
+ }
138
+ return React.createElement("div", {
139
+ className: className
140
+ }, React.createElement(reactTwitterWidgets.Follow, {
141
+ username: username,
142
+ options: {
143
+ size: large ? "large" : undefined
144
+ }
145
+ }));
146
+ }
147
+ var followWrapper = {
148
+ name: "hostless-react-twitter-widgets-follow",
149
+ displayName: "Follow",
150
+ importName: "FollowWrapper",
151
+ importPath: "@daouypkgs/react-twitter-widgets",
152
+ props: {
153
+ username: {
154
+ type: "string",
155
+ description: "Twitter username to follow",
156
+ defaultValue: "daouyapp"
157
+ },
158
+ large: {
159
+ type: "boolean",
160
+ description: "Toggle the button size"
161
+ }
162
+ }
163
+ };
164
+ function registerFollowWrapper(loader, customFollowWrapper) {
165
+ if (loader) {
166
+ loader.registerComponent(FollowWrapper, customFollowWrapper != null ? customFollowWrapper : followWrapper);
167
+ } else {
168
+ registerComponent(FollowWrapper, customFollowWrapper != null ? customFollowWrapper : followWrapper);
169
+ }
170
+ }
171
+
172
+ exports.FollowWrapper = FollowWrapper;
173
+ exports.TimelineWrapper = TimelineWrapper;
174
+ exports.TweetWrapper = TweetWrapper;
175
+ exports.followWrapper = followWrapper;
176
+ exports.registerFollowWrapper = registerFollowWrapper;
177
+ exports.registerTimelineWrapper = registerTimelineWrapper;
178
+ exports.registerTweetWrapper = registerTweetWrapper;
179
+ exports.timelineWrapper = timelineWrapper;
180
+ exports.tweetWrapper = tweetWrapper;
181
+ //# sourceMappingURL=react-twitter-widgets.cjs.development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-twitter-widgets.cjs.development.js","sources":["../src/Twitter.tsx"],"sourcesContent":["import { ComponentMeta } from \"@daouy/host\";\nimport registerComponent from \"@daouy/host/registerComponent\";\nimport React, { ComponentProps } from \"react\";\nimport { Follow, Timeline, Tweet } from \"react-twitter-widgets\";\n\n//\n// This module registers Timeline, Tweet, and Follow, but not yet the Hashtag /\n// Mention / Share components (would be easy additions).\n//\n// The components auto-size their heights by default, so it's actually\n// sufficient to rely on just layout out an enclosing div.\n//\n\nexport function TimelineWrapper({\n className,\n url,\n tweetLimit,\n chrome,\n theme,\n}: {\n className?: string;\n url?: string;\n tweetLimit?: number;\n chrome?: string;\n theme?: string;\n}) {\n if (!url) {\n throw new Error(\"Timeline component requires a URL\");\n }\n return (\n <div className={className}>\n <Timeline\n dataSource={{ sourceType: \"url\", url }}\n options={{\n tweetLimit: tweetLimit,\n chrome: chrome,\n theme: theme,\n }}\n />\n </div>\n );\n}\n\nexport const timelineWrapper: ComponentMeta<ComponentProps<\n typeof TimelineWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-timeline\",\n displayName: \"Timeline\",\n importName: \"TimelineWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n url: {\n type: \"string\",\n description: \"URL to a Twitter user or list\",\n defaultValue: \"https://twitter.com/daouyapp\",\n },\n tweetLimit: {\n type: \"number\",\n description: \"Number of tweets to be displayed. Between 1 and 20\",\n min: 1,\n max: 20,\n },\n chrome: {\n type: \"choice\",\n description: \"Toggle the display of design elements in the widget\",\n multiSelect: true,\n options: [\n \"noheader\",\n \"nofooter\",\n \"noborders\",\n \"transparent\",\n \"noscrollbar\",\n ],\n },\n theme: {\n type: \"choice\",\n description: \"Toggle the default color scheme\",\n options: [\"dark\", \"light\"],\n defaultValueHint: \"light\",\n },\n },\n defaultStyles: {\n display: \"flex\",\n flexDirection: \"column\",\n overflowY: \"auto\",\n },\n};\n\nexport function registerTimelineWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customTimelineWrapper?: ComponentMeta<ComponentProps<typeof TimelineWrapper>>\n) {\n if (loader) {\n loader.registerComponent(\n TimelineWrapper,\n customTimelineWrapper ?? timelineWrapper\n );\n } else {\n registerComponent(\n TimelineWrapper,\n customTimelineWrapper ?? timelineWrapper\n );\n }\n}\n\nexport function TweetWrapper({\n className,\n tweetId,\n theme,\n}: {\n className?: string;\n tweetId?: string;\n theme?: string;\n}) {\n if (!tweetId) {\n throw new Error(\"Tweet component requires a tweetId\");\n }\n return (\n <div className={className}>\n <Tweet tweetId={tweetId} options={{ theme: theme }} />\n </div>\n );\n}\n\nexport const tweetWrapper: ComponentMeta<ComponentProps<\n typeof TweetWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-tweet\",\n displayName: \"Tweet\",\n importName: \"TweetWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n tweetId: {\n type: \"string\",\n description: \"The tweet ID\",\n defaultValue: \"1381980305305694209\",\n },\n theme: {\n type: \"choice\",\n description: \"Toggle the default color scheme\",\n options: [\"dark\", \"light\"],\n defaultValueHint: \"light\",\n },\n },\n defaultStyles: {\n display: \"flex\",\n flexDirection: \"column\",\n overflowY: \"auto\",\n },\n};\n\nexport function registerTweetWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customTweetWrapper?: ComponentMeta<ComponentProps<typeof TweetWrapper>>\n) {\n if (loader) {\n loader.registerComponent(TweetWrapper, customTweetWrapper ?? tweetWrapper);\n } else {\n registerComponent(TweetWrapper, customTweetWrapper ?? tweetWrapper);\n }\n}\n\nexport function FollowWrapper({\n className,\n username,\n large,\n}: {\n className?: string;\n username?: string;\n large?: boolean;\n}) {\n if (!username) {\n throw new Error(\"Follow component requires a username\");\n }\n return (\n <div className={className}>\n <Follow\n username={username}\n options={{ size: large ? \"large\" : undefined }}\n />\n </div>\n );\n}\n\nexport const followWrapper: ComponentMeta<ComponentProps<\n typeof FollowWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-follow\",\n displayName: \"Follow\",\n importName: \"FollowWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n username: {\n type: \"string\",\n description: \"Twitter username to follow\",\n defaultValue: \"daouyapp\",\n },\n large: {\n type: \"boolean\",\n description: \"Toggle the button size\",\n },\n },\n};\n\nexport function registerFollowWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customFollowWrapper?: ComponentMeta<ComponentProps<typeof FollowWrapper>>\n) {\n if (loader) {\n loader.registerComponent(\n FollowWrapper,\n customFollowWrapper ?? followWrapper\n );\n } else {\n registerComponent(FollowWrapper, customFollowWrapper ?? followWrapper);\n }\n}\n"],"names":["TimelineWrapper","_ref","className","url","tweetLimit","chrome","theme","Error","React","Timeline","dataSource","sourceType","options","timelineWrapper","name","displayName","importName","importPath","props","type","description","defaultValue","min","max","multiSelect","defaultValueHint","defaultStyles","display","flexDirection","overflowY","registerTimelineWrapper","loader","customTimelineWrapper","registerComponent","TweetWrapper","_ref2","tweetId","Tweet","tweetWrapper","registerTweetWrapper","customTweetWrapper","FollowWrapper","_ref3","username","large","Follow","size","undefined","followWrapper","registerFollowWrapper","customFollowWrapper"],"mappings":";;;;;;;;;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;SAEgBA,eAAeA,CAAAC,IAAA;MAC7BC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IACHC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,KAAK,GAAAL,IAAA,CAALK,KAAK;EAQL,IAAI,CAACH,GAAG,EAAE;IACR,MAAM,IAAII,KAAK,CAAC,mCAAmC,CAAC;;EAEtD,OACEC;IAAKN,SAAS,EAAEA;KACdM,oBAACC,4BAAQ;IACPC,UAAU,EAAE;MAAEC,UAAU,EAAE,KAAK;MAAER,GAAG,EAAHA;KAAK;IACtCS,OAAO,EAAE;MACPR,UAAU,EAAEA,UAAU;MACtBC,MAAM,EAAEA,MAAM;MACdC,KAAK,EAAEA;;IAET,CACE;AAEV;IAEaO,eAAe,GAEvB;EACHC,IAAI,EAAE,yCAAyC;EAC/CC,WAAW,EAAE,UAAU;EACvBC,UAAU,EAAE,iBAAiB;EAC7BC,UAAU,EAAE,k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C,IAAI,EAAE,uCAAuC;EAC7CC,WAAW,EAAE,QAAQ;EACrBC,UAAU,EAAE,eAAe;EAC3BC,UAAU,EAAE,kCAAkC;EAC9CC,KAAK,EAAE;IACLyB,QAAQ,EAAE;MACRxB,IAAI,EAAE,QAAQ;MACdC,WAAW,EAAE,4BAA4B;MACzCC,YAAY,EAAE;KACf;IACDuB,KAAK,EAAE;MACLzB,IAAI,EAAE,SAAS;MACfC,WAAW,EAAE;;;;SAKH6B,qBAAqBA,CACnClB,MAAwD,EACxDmB,mBAAyE;EAEzE,IAAInB,MAAM,EAAE;IACVA,MAAM,CAACE,iBAAiB,CACtBQ,aAAa,EACbS,mBAAmB,WAAnBA,mBAAmB,GAAIF,aAAa,CACrC;GACF,MAAM;IACLf,iBAAiB,CAACQ,aAAa,EAAES,mBAAmB,WAAnBA,mBAAmB,GAAIF,aAAa,CAAC;;AAE1E;;;;;;;;;;;;"}
@@ -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("@daouy/host/registerComponent")),r=e(require("react")),o=require("react-twitter-widgets");function i(e){var t=e.className,i=e.url,a=e.tweetLimit,l=e.chrome,n=e.theme;if(!i)throw new Error("Timeline component requires a URL");return r.createElement("div",{className:t},r.createElement(o.Timeline,{dataSource:{sourceType:"url",url:i},options:{tweetLimit:a,chrome:l,theme:n}}))}var a={name:"hostless-react-twitter-widgets-timeline",displayName:"Timeline",importName:"TimelineWrapper",importPath:"@daouypkgs/react-twitter-widgets",props:{url:{type:"string",description:"URL to a Twitter user or list",defaultValue:"https://twitter.com/daouyapp"},tweetLimit:{type:"number",description:"Number of tweets to be displayed. Between 1 and 20",min:1,max:20},chrome:{type:"choice",description:"Toggle the display of design elements in the widget",multiSelect:!0,options:["noheader","nofooter","noborders","transparent","noscrollbar"]},theme:{type:"choice",description:"Toggle the default color scheme",options:["dark","light"],defaultValueHint:"light"}},defaultStyles:{display:"flex",flexDirection:"column",overflowY:"auto"}};function l(e){var t=e.className,i=e.tweetId,a=e.theme;if(!i)throw new Error("Tweet component requires a tweetId");return r.createElement("div",{className:t},r.createElement(o.Tweet,{tweetId:i,options:{theme:a}}))}var n={name:"hostless-react-twitter-widgets-tweet",displayName:"Tweet",importName:"TweetWrapper",importPath:"@daouypkgs/react-twitter-widgets",props:{tweetId:{type:"string",description:"The tweet ID",defaultValue:"1381980305305694209"},theme:{type:"choice",description:"Toggle the default color scheme",options:["dark","light"],defaultValueHint:"light"}},defaultStyles:{display:"flex",flexDirection:"column",overflowY:"auto"}};function s(e){var t=e.className,i=e.username,a=e.large;if(!i)throw new Error("Follow component requires a username");return r.createElement("div",{className:t},r.createElement(o.Follow,{username:i,options:{size:a?"large":void 0}}))}var p={name:"hostless-react-twitter-widgets-follow",displayName:"Follow",importName:"FollowWrapper",importPath:"@daouypkgs/react-twitter-widgets",props:{username:{type:"string",description:"Twitter username to follow",defaultValue:"daouyapp"},large:{type:"boolean",description:"Toggle the button size"}}};exports.FollowWrapper=s,exports.TimelineWrapper=i,exports.TweetWrapper=l,exports.followWrapper=p,exports.registerFollowWrapper=function(e,r){e?e.registerComponent(s,null!=r?r:p):t(s,null!=r?r:p)},exports.registerTimelineWrapper=function(e,r){e?e.registerComponent(i,null!=r?r:a):t(i,null!=r?r:a)},exports.registerTweetWrapper=function(e,r){e?e.registerComponent(l,null!=r?r:n):t(l,null!=r?r:n)},exports.timelineWrapper=a,exports.tweetWrapper=n;
2
+ //# sourceMappingURL=react-twitter-widgets.cjs.production.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-twitter-widgets.cjs.production.min.js","sources":["../src/Twitter.tsx"],"sourcesContent":["import { ComponentMeta } from \"@daouy/host\";\nimport registerComponent from \"@daouy/host/registerComponent\";\nimport React, { ComponentProps } from \"react\";\nimport { Follow, Timeline, Tweet } from \"react-twitter-widgets\";\n\n//\n// This module registers Timeline, Tweet, and Follow, but not yet the Hashtag /\n// Mention / Share components (would be easy additions).\n//\n// The components auto-size their heights by default, so it's actually\n// sufficient to rely on just layout out an enclosing div.\n//\n\nexport function TimelineWrapper({\n className,\n url,\n tweetLimit,\n chrome,\n theme,\n}: {\n className?: string;\n url?: string;\n tweetLimit?: number;\n chrome?: string;\n theme?: string;\n}) {\n if (!url) {\n throw new Error(\"Timeline component requires a URL\");\n }\n return (\n <div className={className}>\n <Timeline\n dataSource={{ sourceType: \"url\", url }}\n options={{\n tweetLimit: tweetLimit,\n chrome: chrome,\n theme: theme,\n }}\n />\n </div>\n );\n}\n\nexport const timelineWrapper: ComponentMeta<ComponentProps<\n typeof TimelineWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-timeline\",\n displayName: \"Timeline\",\n importName: \"TimelineWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n url: {\n type: \"string\",\n description: \"URL to a Twitter user or list\",\n defaultValue: \"https://twitter.com/daouyapp\",\n },\n tweetLimit: {\n type: \"number\",\n description: \"Number of tweets to be displayed. Between 1 and 20\",\n min: 1,\n max: 20,\n },\n chrome: {\n type: \"choice\",\n description: \"Toggle the display of design elements in the widget\",\n multiSelect: true,\n options: [\n \"noheader\",\n \"nofooter\",\n \"noborders\",\n \"transparent\",\n \"noscrollbar\",\n ],\n },\n theme: {\n type: \"choice\",\n description: \"Toggle the default color scheme\",\n options: [\"dark\", \"light\"],\n defaultValueHint: \"light\",\n },\n },\n defaultStyles: {\n display: \"flex\",\n flexDirection: \"column\",\n overflowY: \"auto\",\n },\n};\n\nexport function registerTimelineWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customTimelineWrapper?: ComponentMeta<ComponentProps<typeof TimelineWrapper>>\n) {\n if (loader) {\n loader.registerComponent(\n TimelineWrapper,\n customTimelineWrapper ?? timelineWrapper\n );\n } else {\n registerComponent(\n TimelineWrapper,\n customTimelineWrapper ?? timelineWrapper\n );\n }\n}\n\nexport function TweetWrapper({\n className,\n tweetId,\n theme,\n}: {\n className?: string;\n tweetId?: string;\n theme?: string;\n}) {\n if (!tweetId) {\n throw new Error(\"Tweet component requires a tweetId\");\n }\n return (\n <div className={className}>\n <Tweet tweetId={tweetId} options={{ theme: theme }} />\n </div>\n );\n}\n\nexport const tweetWrapper: ComponentMeta<ComponentProps<\n typeof TweetWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-tweet\",\n displayName: \"Tweet\",\n importName: \"TweetWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n tweetId: {\n type: \"string\",\n description: \"The tweet ID\",\n defaultValue: \"1381980305305694209\",\n },\n theme: {\n type: \"choice\",\n description: \"Toggle the default color scheme\",\n options: [\"dark\", \"light\"],\n defaultValueHint: \"light\",\n },\n },\n defaultStyles: {\n display: \"flex\",\n flexDirection: \"column\",\n overflowY: \"auto\",\n },\n};\n\nexport function registerTweetWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customTweetWrapper?: ComponentMeta<ComponentProps<typeof TweetWrapper>>\n) {\n if (loader) {\n loader.registerComponent(TweetWrapper, customTweetWrapper ?? tweetWrapper);\n } else {\n registerComponent(TweetWrapper, customTweetWrapper ?? tweetWrapper);\n }\n}\n\nexport function FollowWrapper({\n className,\n username,\n large,\n}: {\n className?: string;\n username?: string;\n large?: boolean;\n}) {\n if (!username) {\n throw new Error(\"Follow component requires a username\");\n }\n return (\n <div className={className}>\n <Follow\n username={username}\n options={{ size: large ? \"large\" : undefined }}\n />\n </div>\n );\n}\n\nexport const followWrapper: ComponentMeta<ComponentProps<\n typeof FollowWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-follow\",\n displayName: \"Follow\",\n importName: \"FollowWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n username: {\n type: \"string\",\n description: \"Twitter username to follow\",\n defaultValue: \"daouyapp\",\n },\n large: {\n type: \"boolean\",\n description: \"Toggle the button size\",\n },\n },\n};\n\nexport function registerFollowWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customFollowWrapper?: ComponentMeta<ComponentProps<typeof FollowWrapper>>\n) {\n if (loader) {\n loader.registerComponent(\n FollowWrapper,\n customFollowWrapper ?? followWrapper\n );\n } else {\n registerComponent(FollowWrapper, customFollowWrapper ?? followWrapper);\n }\n}\n"],"names":["TimelineWrapper","_ref","className","url","tweetLimit","chrome","theme","Error","React","Timeline","dataSource","sourceType","options","timelineWrapper","name","displayName","importName","importPath","props","type","description","defaultValue","min","max","multiSelect","defaultValueHint","defaultStyles","display","flexDirection","overflowY","TweetWrapper","_ref2","tweetId","Tweet","tweetWrapper","FollowWrapper","_ref3","username","large","Follow","size","undefined","followWrapper","loader","customFollowWrapper","registerComponent","customTimelineWrapper","customTweetWrapper"],"mappings":"8PAagBA,EAAeC,OAC7BC,EAASD,EAATC,UACAC,EAAGF,EAAHE,IACAC,EAAUH,EAAVG,WACAC,EAAMJ,EAANI,OACAC,EAAKL,EAALK,MAQA,IAAKH,EACH,MAAM,IAAII,MAAM,qCAElB,OACEC,uBAAKN,UAAWA,GACdM,gBAACC,YACCC,WAAY,CAAEC,WAAY,MAAOR,IAAAA,GACjCS,QAAS,CACPR,WAAYA,EACZC,OAAQA,EACRC,MAAOA,UAOJO,EAER,CACHC,KAAM,0CACNC,YAAa,WACbC,WAAY,kBACZC,WAAY,mCACZC,MAAO,CACLf,IAAK,CACHgB,KAAM,SACNC,YAAa,gCACbC,aAAc,gCAEhBjB,WAAY,CACVe,KAAM,SACNC,YAAa,qDACbE,IAAK,EACLC,IAAK,IAEPlB,OAAQ,CACNc,KAAM,SACNC,YAAa,sDACbI,aAAa,EACbZ,QAAS,CACP,WACA,WACA,YACA,cACA,gBAGJN,MAAO,CACLa,KAAM,SACNC,YAAa,kCACbR,QAAS,CAAC,OAAQ,SAClBa,iBAAkB,UAGtBC,cAAe,CACbC,QAAS,OACTC,cAAe,SACfC,UAAW,kBAqBCC,EAAYC,OAC1B7B,EAAS6B,EAAT7B,UACA8B,EAAOD,EAAPC,QACA1B,EAAKyB,EAALzB,MAMA,IAAK0B,EACH,MAAM,IAAIzB,MAAM,sCAElB,OACEC,uBAAKN,UAAWA,GACdM,gBAACyB,SAAMD,QAASA,EAASpB,QAAS,CAAEN,MAAOA,UAKpC4B,EAER,CACHpB,KAAM,uCACNC,YAAa,QACbC,WAAY,eACZC,WAAY,mCACZC,MAAO,CACLc,QAAS,CACPb,KAAM,SACNC,YAAa,eACbC,aAAc,uBAEhBf,MAAO,CACLa,KAAM,SACNC,YAAa,kCACbR,QAAS,CAAC,OAAQ,SAClBa,iBAAkB,UAGtBC,cAAe,CACbC,QAAS,OACTC,cAAe,SACfC,UAAW,kBAeCM,EAAaC,OAC3BlC,EAASkC,EAATlC,UACAmC,EAAQD,EAARC,SACAC,EAAKF,EAALE,MAMA,IAAKD,EACH,MAAM,IAAI9B,MAAM,wCAElB,OACEC,uBAAKN,UAAWA,GACdM,gBAAC+B,UACCF,SAAUA,EACVzB,QAAS,CAAE4B,KAAMF,EAAQ,aAAUG,UAM9BC,EAER,CACH5B,KAAM,wCACNC,YAAa,SACbC,WAAY,gBACZC,WAAY,mCACZC,MAAO,CACLmB,SAAU,CACRlB,KAAM,SACNC,YAAa,6BACbC,aAAc,YAEhBiB,MAAO,CACLnB,KAAM,UACNC,YAAa,oKAMjBuB,EACAC,GAEID,EACFA,EAAOE,kBACLV,QACAS,EAAAA,EAAuBF,GAGzBG,EAAkBV,QAAeS,EAAAA,EAAuBF,6CA7H1DC,EACAG,GAEIH,EACFA,EAAOE,kBACL7C,QACA8C,EAAAA,EAAyBjC,GAG3BgC,EACE7C,QACA8C,EAAAA,EAAyBjC,0CAoD7B8B,EACAI,GAEIJ,EACFA,EAAOE,kBAAkBf,QAAciB,EAAAA,EAAsBb,GAE7DW,EAAkBf,QAAciB,EAAAA,EAAsBb"}
@@ -0,0 +1,167 @@
1
+ import registerComponent from '@daouy/host/registerComponent';
2
+ import React from 'react';
3
+ import { Timeline, Tweet, Follow } from 'react-twitter-widgets';
4
+
5
+ //
6
+ // This module registers Timeline, Tweet, and Follow, but not yet the Hashtag /
7
+ // Mention / Share components (would be easy additions).
8
+ //
9
+ // The components auto-size their heights by default, so it's actually
10
+ // sufficient to rely on just layout out an enclosing div.
11
+ //
12
+ function TimelineWrapper(_ref) {
13
+ var className = _ref.className,
14
+ url = _ref.url,
15
+ tweetLimit = _ref.tweetLimit,
16
+ chrome = _ref.chrome,
17
+ theme = _ref.theme;
18
+ if (!url) {
19
+ throw new Error("Timeline component requires a URL");
20
+ }
21
+ return React.createElement("div", {
22
+ className: className
23
+ }, React.createElement(Timeline, {
24
+ dataSource: {
25
+ sourceType: "url",
26
+ url: url
27
+ },
28
+ options: {
29
+ tweetLimit: tweetLimit,
30
+ chrome: chrome,
31
+ theme: theme
32
+ }
33
+ }));
34
+ }
35
+ var timelineWrapper = {
36
+ name: "hostless-react-twitter-widgets-timeline",
37
+ displayName: "Timeline",
38
+ importName: "TimelineWrapper",
39
+ importPath: "@daouypkgs/react-twitter-widgets",
40
+ props: {
41
+ url: {
42
+ type: "string",
43
+ description: "URL to a Twitter user or list",
44
+ defaultValue: "https://twitter.com/daouyapp"
45
+ },
46
+ tweetLimit: {
47
+ type: "number",
48
+ description: "Number of tweets to be displayed. Between 1 and 20",
49
+ min: 1,
50
+ max: 20
51
+ },
52
+ chrome: {
53
+ type: "choice",
54
+ description: "Toggle the display of design elements in the widget",
55
+ multiSelect: true,
56
+ options: ["noheader", "nofooter", "noborders", "transparent", "noscrollbar"]
57
+ },
58
+ theme: {
59
+ type: "choice",
60
+ description: "Toggle the default color scheme",
61
+ options: ["dark", "light"],
62
+ defaultValueHint: "light"
63
+ }
64
+ },
65
+ defaultStyles: {
66
+ display: "flex",
67
+ flexDirection: "column",
68
+ overflowY: "auto"
69
+ }
70
+ };
71
+ function registerTimelineWrapper(loader, customTimelineWrapper) {
72
+ if (loader) {
73
+ loader.registerComponent(TimelineWrapper, customTimelineWrapper != null ? customTimelineWrapper : timelineWrapper);
74
+ } else {
75
+ registerComponent(TimelineWrapper, customTimelineWrapper != null ? customTimelineWrapper : timelineWrapper);
76
+ }
77
+ }
78
+ function TweetWrapper(_ref2) {
79
+ var className = _ref2.className,
80
+ tweetId = _ref2.tweetId,
81
+ theme = _ref2.theme;
82
+ if (!tweetId) {
83
+ throw new Error("Tweet component requires a tweetId");
84
+ }
85
+ return React.createElement("div", {
86
+ className: className
87
+ }, React.createElement(Tweet, {
88
+ tweetId: tweetId,
89
+ options: {
90
+ theme: theme
91
+ }
92
+ }));
93
+ }
94
+ var tweetWrapper = {
95
+ name: "hostless-react-twitter-widgets-tweet",
96
+ displayName: "Tweet",
97
+ importName: "TweetWrapper",
98
+ importPath: "@daouypkgs/react-twitter-widgets",
99
+ props: {
100
+ tweetId: {
101
+ type: "string",
102
+ description: "The tweet ID",
103
+ defaultValue: "1381980305305694209"
104
+ },
105
+ theme: {
106
+ type: "choice",
107
+ description: "Toggle the default color scheme",
108
+ options: ["dark", "light"],
109
+ defaultValueHint: "light"
110
+ }
111
+ },
112
+ defaultStyles: {
113
+ display: "flex",
114
+ flexDirection: "column",
115
+ overflowY: "auto"
116
+ }
117
+ };
118
+ function registerTweetWrapper(loader, customTweetWrapper) {
119
+ if (loader) {
120
+ loader.registerComponent(TweetWrapper, customTweetWrapper != null ? customTweetWrapper : tweetWrapper);
121
+ } else {
122
+ registerComponent(TweetWrapper, customTweetWrapper != null ? customTweetWrapper : tweetWrapper);
123
+ }
124
+ }
125
+ function FollowWrapper(_ref3) {
126
+ var className = _ref3.className,
127
+ username = _ref3.username,
128
+ large = _ref3.large;
129
+ if (!username) {
130
+ throw new Error("Follow component requires a username");
131
+ }
132
+ return React.createElement("div", {
133
+ className: className
134
+ }, React.createElement(Follow, {
135
+ username: username,
136
+ options: {
137
+ size: large ? "large" : undefined
138
+ }
139
+ }));
140
+ }
141
+ var followWrapper = {
142
+ name: "hostless-react-twitter-widgets-follow",
143
+ displayName: "Follow",
144
+ importName: "FollowWrapper",
145
+ importPath: "@daouypkgs/react-twitter-widgets",
146
+ props: {
147
+ username: {
148
+ type: "string",
149
+ description: "Twitter username to follow",
150
+ defaultValue: "daouyapp"
151
+ },
152
+ large: {
153
+ type: "boolean",
154
+ description: "Toggle the button size"
155
+ }
156
+ }
157
+ };
158
+ function registerFollowWrapper(loader, customFollowWrapper) {
159
+ if (loader) {
160
+ loader.registerComponent(FollowWrapper, customFollowWrapper != null ? customFollowWrapper : followWrapper);
161
+ } else {
162
+ registerComponent(FollowWrapper, customFollowWrapper != null ? customFollowWrapper : followWrapper);
163
+ }
164
+ }
165
+
166
+ export { FollowWrapper, TimelineWrapper, TweetWrapper, followWrapper, registerFollowWrapper, registerTimelineWrapper, registerTweetWrapper, timelineWrapper, tweetWrapper };
167
+ //# sourceMappingURL=react-twitter-widgets.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-twitter-widgets.esm.js","sources":["../src/Twitter.tsx"],"sourcesContent":["import { ComponentMeta } from \"@daouy/host\";\nimport registerComponent from \"@daouy/host/registerComponent\";\nimport React, { ComponentProps } from \"react\";\nimport { Follow, Timeline, Tweet } from \"react-twitter-widgets\";\n\n//\n// This module registers Timeline, Tweet, and Follow, but not yet the Hashtag /\n// Mention / Share components (would be easy additions).\n//\n// The components auto-size their heights by default, so it's actually\n// sufficient to rely on just layout out an enclosing div.\n//\n\nexport function TimelineWrapper({\n className,\n url,\n tweetLimit,\n chrome,\n theme,\n}: {\n className?: string;\n url?: string;\n tweetLimit?: number;\n chrome?: string;\n theme?: string;\n}) {\n if (!url) {\n throw new Error(\"Timeline component requires a URL\");\n }\n return (\n <div className={className}>\n <Timeline\n dataSource={{ sourceType: \"url\", url }}\n options={{\n tweetLimit: tweetLimit,\n chrome: chrome,\n theme: theme,\n }}\n />\n </div>\n );\n}\n\nexport const timelineWrapper: ComponentMeta<ComponentProps<\n typeof TimelineWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-timeline\",\n displayName: \"Timeline\",\n importName: \"TimelineWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n url: {\n type: \"string\",\n description: \"URL to a Twitter user or list\",\n defaultValue: \"https://twitter.com/daouyapp\",\n },\n tweetLimit: {\n type: \"number\",\n description: \"Number of tweets to be displayed. Between 1 and 20\",\n min: 1,\n max: 20,\n },\n chrome: {\n type: \"choice\",\n description: \"Toggle the display of design elements in the widget\",\n multiSelect: true,\n options: [\n \"noheader\",\n \"nofooter\",\n \"noborders\",\n \"transparent\",\n \"noscrollbar\",\n ],\n },\n theme: {\n type: \"choice\",\n description: \"Toggle the default color scheme\",\n options: [\"dark\", \"light\"],\n defaultValueHint: \"light\",\n },\n },\n defaultStyles: {\n display: \"flex\",\n flexDirection: \"column\",\n overflowY: \"auto\",\n },\n};\n\nexport function registerTimelineWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customTimelineWrapper?: ComponentMeta<ComponentProps<typeof TimelineWrapper>>\n) {\n if (loader) {\n loader.registerComponent(\n TimelineWrapper,\n customTimelineWrapper ?? timelineWrapper\n );\n } else {\n registerComponent(\n TimelineWrapper,\n customTimelineWrapper ?? timelineWrapper\n );\n }\n}\n\nexport function TweetWrapper({\n className,\n tweetId,\n theme,\n}: {\n className?: string;\n tweetId?: string;\n theme?: string;\n}) {\n if (!tweetId) {\n throw new Error(\"Tweet component requires a tweetId\");\n }\n return (\n <div className={className}>\n <Tweet tweetId={tweetId} options={{ theme: theme }} />\n </div>\n );\n}\n\nexport const tweetWrapper: ComponentMeta<ComponentProps<\n typeof TweetWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-tweet\",\n displayName: \"Tweet\",\n importName: \"TweetWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n tweetId: {\n type: \"string\",\n description: \"The tweet ID\",\n defaultValue: \"1381980305305694209\",\n },\n theme: {\n type: \"choice\",\n description: \"Toggle the default color scheme\",\n options: [\"dark\", \"light\"],\n defaultValueHint: \"light\",\n },\n },\n defaultStyles: {\n display: \"flex\",\n flexDirection: \"column\",\n overflowY: \"auto\",\n },\n};\n\nexport function registerTweetWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customTweetWrapper?: ComponentMeta<ComponentProps<typeof TweetWrapper>>\n) {\n if (loader) {\n loader.registerComponent(TweetWrapper, customTweetWrapper ?? tweetWrapper);\n } else {\n registerComponent(TweetWrapper, customTweetWrapper ?? tweetWrapper);\n }\n}\n\nexport function FollowWrapper({\n className,\n username,\n large,\n}: {\n className?: string;\n username?: string;\n large?: boolean;\n}) {\n if (!username) {\n throw new Error(\"Follow component requires a username\");\n }\n return (\n <div className={className}>\n <Follow\n username={username}\n options={{ size: large ? \"large\" : undefined }}\n />\n </div>\n );\n}\n\nexport const followWrapper: ComponentMeta<ComponentProps<\n typeof FollowWrapper\n>> = {\n name: \"hostless-react-twitter-widgets-follow\",\n displayName: \"Follow\",\n importName: \"FollowWrapper\",\n importPath: \"@daouypkgs/react-twitter-widgets\",\n props: {\n username: {\n type: \"string\",\n description: \"Twitter username to follow\",\n defaultValue: \"daouyapp\",\n },\n large: {\n type: \"boolean\",\n description: \"Toggle the button size\",\n },\n },\n};\n\nexport function registerFollowWrapper(\n loader?: { registerComponent: typeof registerComponent },\n customFollowWrapper?: ComponentMeta<ComponentProps<typeof FollowWrapper>>\n) {\n if (loader) {\n loader.registerComponent(\n FollowWrapper,\n customFollowWrapper ?? followWrapper\n );\n } else {\n registerComponent(FollowWrapper, customFollowWrapper ?? followWrapper);\n }\n}\n"],"names":["TimelineWrapper","_ref","className","url","tweetLimit","chrome","theme","Error","React","Timeline","dataSource","sourceType","options","timelineWrapper","name","displayName","importName","importPath","props","type","description","defaultValue","min","max","multiSelect","defaultValueHint","defaultStyles","display","flexDirection","overflowY","registerTimelineWrapper","loader","customTimelineWrapper","registerComponent","TweetWrapper","_ref2","tweetId","Tweet","tweetWrapper","registerTweetWrapper","customTweetWrapper","FollowWrapper","_ref3","username","large","Follow","size","undefined","followWrapper","registerFollowWrapper","customFollowWrapper"],"mappings":";;;;AAKA;AACA;AACA;AACA;AACA;AACA;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 +1,45 @@
1
+ {
2
+ "name": "@daouypkgs/react-twitter-widgets",
3
+ "version": "0.0.233",
4
+ "description": "Daouy registration calls for react-twitter-widgets",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "module": "dist/react-twitter-widgets.esm.js",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "size-limit": [
12
+ {
13
+ "path": "dist/react-twitter-widgets.cjs.production.min.js",
14
+ "limit": "10 KB"
15
+ },
16
+ {
17
+ "path": "dist/react-twitter-widgets.esm.js",
18
+ "limit": "10 KB"
19
+ }
20
+ ],
21
+ "scripts": {
22
+ "build": "tsdx build",
23
+ "start": "tsdx watch",
24
+ "test": "TEST_CWD=`pwd` yarn --cwd=../.. test --passWithNoTests",
25
+ "lint": "tsdx lint",
26
+ "prepublishOnly": "npm run build",
27
+ "size": "size-limit",
28
+ "analyze": "size-limit --why"
29
+ },
30
+ "devDependencies": {
31
+ "@daouy/host": "^1.0.234",
32
+ "@types/node": "^14.0.26",
33
+ "@types/react": "^18.2.33",
34
+ "tsdx": "^0.14.1",
35
+ "tslib": "^2.2.0"
36
+ },
37
+ "dependencies": {
38
+ "react-twitter-widgets": "^1.10.0"
39
+ },
40
+ "peerDependencies": {
41
+ "@daouy/host": "^1.0.234",
42
+ "react": ">=16.8.0",
43
+ "react-dom": ">=16.8.0"
44
+ }
45
+ }