@flowsta/login-button 0.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.
- package/README.md +422 -0
- package/assets/1x/flowsta_signin_web_dark_pill_1x.png +0 -0
- package/assets/1x/flowsta_signin_web_dark_rectangle_1x.png +0 -0
- package/assets/1x/flowsta_signin_web_light_pill_1x.png +0 -0
- package/assets/1x/flowsta_signin_web_light_rectangle_1x.png +0 -0
- package/assets/1x/flowsta_signin_web_neutral_pill_1x.png +0 -0
- package/assets/1x/flowsta_signin_web_neutral_rectangle_1x.png +0 -0
- package/assets/2x/flowsta_signin_web_dark_pill_2x.png +0 -0
- package/assets/2x/flowsta_signin_web_dark_rectangle_2x.png +0 -0
- package/assets/2x/flowsta_signin_web_light_pill_2x.png +0 -0
- package/assets/2x/flowsta_signin_web_light_rectangle_2x.png +0 -0
- package/assets/2x/flowsta_signin_web_neutral_pill_2x.png +0 -0
- package/assets/2x/flowsta_signin_web_neutral_rectangle_2x.png +0 -0
- package/assets/svg/flowsta_signin_web_dark_pill.svg +161 -0
- package/assets/svg/flowsta_signin_web_dark_rectangle.svg +185 -0
- package/assets/svg/flowsta_signin_web_light_pill.svg +181 -0
- package/assets/svg/flowsta_signin_web_light_rectangle.svg +181 -0
- package/assets/svg/flowsta_signin_web_neutral_pill.svg +171 -0
- package/assets/svg/flowsta_signin_web_neutral_rectangle.svg +174 -0
- package/dist/index.js +39 -0
- package/dist/oauth-DEOZXwxb.js +100 -0
- package/dist/qwik.js +76 -0
- package/dist/react.js +78 -0
- package/dist/style.css +0 -0
- package/dist/vanilla.js +79 -0
- package/dist/vue.js +79 -0
- package/package.json +88 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg
|
|
3
|
+
width="175"
|
|
4
|
+
height="40"
|
|
5
|
+
viewBox="0 0 175 40"
|
|
6
|
+
fill="none"
|
|
7
|
+
version="1.1"
|
|
8
|
+
id="svg5"
|
|
9
|
+
sodipodi:docname="flowsta_signin_web_neutral_rectangle.svg"
|
|
10
|
+
inkscape:version="1.4.2 (2aeb623e1d, 2025-05-12)"
|
|
11
|
+
inkscape:export-filename="../71cf9ad0/flowsta_signin_web_neutral_rectangle_2x.png"
|
|
12
|
+
inkscape:export-xdpi="192"
|
|
13
|
+
inkscape:export-ydpi="192"
|
|
14
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
15
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
18
|
+
<sodipodi:namedview
|
|
19
|
+
id="namedview5"
|
|
20
|
+
pagecolor="#ffffff"
|
|
21
|
+
bordercolor="#000000"
|
|
22
|
+
borderopacity="0.25"
|
|
23
|
+
inkscape:showpageshadow="2"
|
|
24
|
+
inkscape:pageopacity="0.0"
|
|
25
|
+
inkscape:pagecheckerboard="0"
|
|
26
|
+
inkscape:deskcolor="#d1d1d1"
|
|
27
|
+
inkscape:zoom="5.2285714"
|
|
28
|
+
inkscape:cx="87.5"
|
|
29
|
+
inkscape:cy="20.177596"
|
|
30
|
+
inkscape:window-width="1321"
|
|
31
|
+
inkscape:window-height="962"
|
|
32
|
+
inkscape:window-x="26"
|
|
33
|
+
inkscape:window-y="23"
|
|
34
|
+
inkscape:window-maximized="0"
|
|
35
|
+
inkscape:current-layer="svg5" />
|
|
36
|
+
<rect
|
|
37
|
+
width="175"
|
|
38
|
+
height="40"
|
|
39
|
+
rx="4"
|
|
40
|
+
fill="#F2F2F2"
|
|
41
|
+
id="rect1" />
|
|
42
|
+
<defs
|
|
43
|
+
id="defs5">
|
|
44
|
+
<clipPath
|
|
45
|
+
id="clip0_710_6239">
|
|
46
|
+
<rect
|
|
47
|
+
width="20"
|
|
48
|
+
height="20"
|
|
49
|
+
fill="white"
|
|
50
|
+
transform="translate(12 10)"
|
|
51
|
+
id="rect5" />
|
|
52
|
+
</clipPath>
|
|
53
|
+
<radialGradient
|
|
54
|
+
id="oceanBlueRadial"
|
|
55
|
+
cx="105.83281"
|
|
56
|
+
cy="105.83281"
|
|
57
|
+
r="103.72963"
|
|
58
|
+
fx="105.83281"
|
|
59
|
+
fy="105.83281"
|
|
60
|
+
gradientUnits="userSpaceOnUse">
|
|
61
|
+
<stop
|
|
62
|
+
offset="0%"
|
|
63
|
+
style="stop-color:#bfdbfe;stop-opacity:1"
|
|
64
|
+
id="stop7" />
|
|
65
|
+
<stop
|
|
66
|
+
offset="30%"
|
|
67
|
+
style="stop-color:#60a5fa;stop-opacity:1"
|
|
68
|
+
id="stop8" />
|
|
69
|
+
<stop
|
|
70
|
+
offset="60%"
|
|
71
|
+
style="stop-color:#2563eb;stop-opacity:1"
|
|
72
|
+
id="stop9" />
|
|
73
|
+
<stop
|
|
74
|
+
offset="85%"
|
|
75
|
+
style="stop-color:#1e3a8a;stop-opacity:1"
|
|
76
|
+
id="stop10" />
|
|
77
|
+
<stop
|
|
78
|
+
offset="100%"
|
|
79
|
+
style="stop-color:#1e1b4b;stop-opacity:0.9"
|
|
80
|
+
id="stop11" />
|
|
81
|
+
</radialGradient>
|
|
82
|
+
<linearGradient
|
|
83
|
+
id="oceanBlue"
|
|
84
|
+
x1="26.040789"
|
|
85
|
+
y1="26.040789"
|
|
86
|
+
x2="185.62485"
|
|
87
|
+
y2="185.62485"
|
|
88
|
+
gradientUnits="userSpaceOnUse">
|
|
89
|
+
<stop
|
|
90
|
+
offset="0%"
|
|
91
|
+
style="stop-color:#082f49;stop-opacity:1"
|
|
92
|
+
id="stop1" />
|
|
93
|
+
<stop
|
|
94
|
+
offset="20%"
|
|
95
|
+
style="stop-color:#0c4a6e;stop-opacity:1"
|
|
96
|
+
id="stop2" />
|
|
97
|
+
<stop
|
|
98
|
+
offset="40%"
|
|
99
|
+
style="stop-color:#0284c7;stop-opacity:1"
|
|
100
|
+
id="stop3" />
|
|
101
|
+
<stop
|
|
102
|
+
offset="60%"
|
|
103
|
+
style="stop-color:#38bdf8;stop-opacity:1"
|
|
104
|
+
id="stop4" />
|
|
105
|
+
<stop
|
|
106
|
+
offset="80%"
|
|
107
|
+
style="stop-color:#7dd3fc;stop-opacity:1"
|
|
108
|
+
id="stop5" />
|
|
109
|
+
<stop
|
|
110
|
+
offset="100%"
|
|
111
|
+
style="stop-color:#a5b4fc;stop-opacity:1"
|
|
112
|
+
id="stop6" />
|
|
113
|
+
</linearGradient>
|
|
114
|
+
<linearGradient
|
|
115
|
+
id="oceanBlueAccent"
|
|
116
|
+
x1="185.62485"
|
|
117
|
+
y1="26.040789"
|
|
118
|
+
x2="26.040789"
|
|
119
|
+
y2="185.62485"
|
|
120
|
+
gradientUnits="userSpaceOnUse">
|
|
121
|
+
<stop
|
|
122
|
+
offset="0%"
|
|
123
|
+
style="stop-color:#22d3ee;stop-opacity:0.8"
|
|
124
|
+
id="stop12" />
|
|
125
|
+
<stop
|
|
126
|
+
offset="33%"
|
|
127
|
+
style="stop-color:#3b82f6;stop-opacity:0.85"
|
|
128
|
+
id="stop13" />
|
|
129
|
+
<stop
|
|
130
|
+
offset="66%"
|
|
131
|
+
style="stop-color:#6366f1;stop-opacity:0.75"
|
|
132
|
+
id="stop14" />
|
|
133
|
+
<stop
|
|
134
|
+
offset="100%"
|
|
135
|
+
style="stop-color:#818cf8;stop-opacity:0.6"
|
|
136
|
+
id="stop15" />
|
|
137
|
+
</linearGradient>
|
|
138
|
+
</defs>
|
|
139
|
+
<g
|
|
140
|
+
id="g6"
|
|
141
|
+
transform="matrix(0.12547121,0,0,0.12547121,8.7326313,6.7326308)"
|
|
142
|
+
style="display:inline">
|
|
143
|
+
<rect
|
|
144
|
+
style="display:none;fill:#000000;stroke-width:5.29167;stroke-linejoin:bevel"
|
|
145
|
+
id="rect15"
|
|
146
|
+
width="211.66666"
|
|
147
|
+
height="211.66666"
|
|
148
|
+
x="0.27961251"
|
|
149
|
+
y="0"
|
|
150
|
+
inkscape:export-filename="../1fde5421/Flowsta-symbol-coloured-black-bg.png"
|
|
151
|
+
inkscape:export-xdpi="96"
|
|
152
|
+
inkscape:export-ydpi="96" />
|
|
153
|
+
<g
|
|
154
|
+
id="layer1">
|
|
155
|
+
<path
|
|
156
|
+
id="path-base"
|
|
157
|
+
style="fill:url(#oceanBlueRadial)"
|
|
158
|
+
d="m 105.83385,26.040788 c -14.673331,2e-6 -26.650045,11.840604 -26.871745,26.462467 -14.484478,0.219617 -26.239233,11.974372 -26.45885,26.45885 -14.621863,0.2217 -26.462465,12.198414 -26.462467,26.871745 0,14.67335 11.840589,26.65006 26.462467,26.87174 0.22064,14.48358 11.97502,26.2377 26.45885,26.4573 0.221703,14.62186 12.198415,26.46195 26.871745,26.46195 14.67335,0 26.65006,-11.84007 26.87174,-26.46195 14.48294,-0.22063 26.23667,-11.97436 26.4573,-26.4573 14.62188,-0.22168 26.46195,-12.19839 26.46195,-26.87174 0,-14.67333 -11.84009,-26.650042 -26.46195,-26.871745 -0.2196,-14.48383 -11.97372,-26.23821 -26.4573,-26.45885 C 132.48391,37.881377 120.5072,26.040788 105.83385,26.040788 Z M 79.374999,57.790787 c 0.0092,0 0.01818,-1.1e-5 0.02739,0 2.010503,10.913206 10.643619,19.546319 21.556821,21.556824 1e-5,0.0092 0,0.01818 0,0.02739 0,11.951375 -9.632835,21.584209 -21.58421,21.584209 -0.0092,0 -0.01818,1e-5 -0.02739,0 C 77.337106,90.046007 68.703993,81.412891 57.790787,79.402388 c -1.1e-5,-0.0092 0,-0.01818 0,-0.02739 0,-11.951375 9.632837,-21.584212 21.584212,-21.584211 z m 52.890311,0 c 0.009,-1e-5 0.0173,0 0.0258,0 11.95137,0 21.58369,9.632837 21.58369,21.584212 0,0.0092 2e-5,0.01818 0,0.02739 -10.9132,2.010503 -19.5458,10.64362 -21.5563,21.556821 -0.009,1e-5 -0.0182,0 -0.0274,0 -11.95138,0 -21.58215,-9.632835 -21.58215,-21.58421 0,-0.0092 -1e-5,-0.01818 0,-0.02739 10.91322,-2.010502 19.54581,-10.643614 21.55631,-21.556824 z m -26.43249,26.312089 c 1.96851,11.031656 10.69828,19.761424 21.72994,21.729944 -11.03166,1.96851 -19.76143,10.69828 -21.72994,21.72994 C 103.8643,116.5311 95.134532,107.80133 84.102876,105.83282 95.134532,103.8643 103.8643,95.134532 105.83282,84.102876 Z M 79.347611,110.709 c 0.0092,-1e-5 0.01818,0 0.02739,0 11.951375,0 21.584209,9.63077 21.584209,21.58215 0,0.009 1e-5,0.0182 0,0.0274 -10.9132,2.0105 -19.546317,10.6431 -21.55682,21.5563 -0.0092,2e-5 -0.01818,0 -0.02739,0 -11.951375,0 -21.584212,-9.63232 -21.584212,-21.58369 0,-0.009 -10e-6,-0.0173 0,-0.0258 10.91321,-2.0105 19.546322,-10.64309 21.556824,-21.55631 z m 52.943539,0 c 0.009,0 0.0182,-1e-5 0.0274,0 2.0105,10.91322 10.64309,19.54581 21.5563,21.55631 1e-5,0.009 0,0.0173 0,0.0258 0,11.95137 -9.63232,21.58369 -21.58369,21.58369 -0.009,0 -0.0173,1e-5 -0.0258,0 -2.0105,-10.91321 -10.64309,-19.5458 -21.55631,-21.5563 -1e-5,-0.009 0,-0.0182 0,-0.0274 0,-11.95138 9.63077,-21.58215 21.58215,-21.58215 z" />
|
|
159
|
+
<path
|
|
160
|
+
id="path-gradient"
|
|
161
|
+
style="opacity:0.8;mix-blend-mode:overlay;fill:url(#oceanBlue)"
|
|
162
|
+
d="m 105.83385,26.040788 c -14.673331,2e-6 -26.650045,11.840604 -26.871745,26.462467 -14.484478,0.219617 -26.239233,11.974372 -26.45885,26.45885 -14.621863,0.2217 -26.462465,12.198414 -26.462467,26.871745 0,14.67335 11.840589,26.65006 26.462467,26.87174 0.22064,14.48358 11.97502,26.2377 26.45885,26.4573 0.221703,14.62186 12.198415,26.46195 26.871745,26.46195 14.67335,0 26.65006,-11.84007 26.87174,-26.46195 14.48294,-0.22063 26.23667,-11.97436 26.4573,-26.4573 14.62188,-0.22168 26.46195,-12.19839 26.46195,-26.87174 0,-14.67333 -11.84009,-26.650042 -26.46195,-26.871745 -0.2196,-14.48383 -11.97372,-26.23821 -26.4573,-26.45885 C 132.48391,37.881377 120.5072,26.040788 105.83385,26.040788 Z M 79.374999,57.790787 c 0.0092,0 0.01818,-1.1e-5 0.02739,0 2.010503,10.913206 10.643619,19.546319 21.556821,21.556824 1e-5,0.0092 0,0.01818 0,0.02739 0,11.951375 -9.632835,21.584209 -21.58421,21.584209 -0.0092,0 -0.01818,1e-5 -0.02739,0 C 77.337106,90.046007 68.703993,81.412891 57.790787,79.402388 c -1.1e-5,-0.0092 0,-0.01818 0,-0.02739 0,-11.951375 9.632837,-21.584212 21.584212,-21.584211 z m 52.890311,0 c 0.009,-1e-5 0.0173,0 0.0258,0 11.95137,0 21.58369,9.632837 21.58369,21.584212 0,0.0092 2e-5,0.01818 0,0.02739 -10.9132,2.010503 -19.5458,10.64362 -21.5563,21.556821 -0.009,1e-5 -0.0182,0 -0.0274,0 -11.95138,0 -21.58215,-9.632835 -21.58215,-21.58421 0,-0.0092 -1e-5,-0.01818 0,-0.02739 10.91322,-2.010502 19.54581,-10.643614 21.55631,-21.556824 z m -26.43249,26.312089 c 1.96851,11.031656 10.69828,19.761424 21.72994,21.729944 -11.03166,1.96851 -19.76143,10.69828 -21.72994,21.72994 C 103.8643,116.5311 95.134532,107.80133 84.102876,105.83282 95.134532,103.8643 103.8643,95.134532 105.83282,84.102876 Z M 79.347611,110.709 c 0.0092,-1e-5 0.01818,0 0.02739,0 11.951375,0 21.584209,9.63077 21.584209,21.58215 0,0.009 1e-5,0.0182 0,0.0274 -10.9132,2.0105 -19.546317,10.6431 -21.55682,21.5563 -0.0092,2e-5 -0.01818,0 -0.02739,0 -11.951375,0 -21.584212,-9.63232 -21.584212,-21.58369 0,-0.009 -10e-6,-0.0173 0,-0.0258 10.91321,-2.0105 19.546322,-10.64309 21.556824,-21.55631 z m 52.943539,0 c 0.009,0 0.0182,-1e-5 0.0274,0 2.0105,10.91322 10.64309,19.54581 21.5563,21.55631 1e-5,0.009 0,0.0173 0,0.0258 0,11.95137 -9.63232,21.58369 -21.58369,21.58369 -0.009,0 -0.0173,1e-5 -0.0258,0 -2.0105,-10.91321 -10.64309,-19.5458 -21.55631,-21.5563 -1e-5,-0.009 0,-0.0182 0,-0.0274 0,-11.95138 9.63077,-21.58215 21.58215,-21.58215 z" />
|
|
163
|
+
<path
|
|
164
|
+
id="path-accent"
|
|
165
|
+
style="opacity:0.6;mix-blend-mode:screen;fill:url(#oceanBlueAccent)"
|
|
166
|
+
d="m 105.83385,26.040788 c -14.673331,2e-6 -26.650045,11.840604 -26.871745,26.462467 -14.484478,0.219617 -26.239233,11.974372 -26.45885,26.45885 -14.621863,0.2217 -26.462465,12.198414 -26.462467,26.871745 0,14.67335 11.840589,26.65006 26.462467,26.87174 0.22064,14.48358 11.97502,26.2377 26.45885,26.4573 0.221703,14.62186 12.198415,26.46195 26.871745,26.46195 14.67335,0 26.65006,-11.84007 26.87174,-26.46195 14.48294,-0.22063 26.23667,-11.97436 26.4573,-26.4573 14.62188,-0.22168 26.46195,-12.19839 26.46195,-26.87174 0,-14.67333 -11.84009,-26.650042 -26.46195,-26.871745 -0.2196,-14.48383 -11.97372,-26.23821 -26.4573,-26.45885 C 132.48391,37.881377 120.5072,26.040788 105.83385,26.040788 Z M 79.374999,57.790787 c 0.0092,0 0.01818,-1.1e-5 0.02739,0 2.010503,10.913206 10.643619,19.546319 21.556821,21.556824 1e-5,0.0092 0,0.01818 0,0.02739 0,11.951375 -9.632835,21.584209 -21.58421,21.584209 -0.0092,0 -0.01818,1e-5 -0.02739,0 C 77.337106,90.046007 68.703993,81.412891 57.790787,79.402388 c -1.1e-5,-0.0092 0,-0.01818 0,-0.02739 0,-11.951375 9.632837,-21.584212 21.584212,-21.584211 z m 52.890311,0 c 0.009,-1e-5 0.0173,0 0.0258,0 11.95137,0 21.58369,9.632837 21.58369,21.584212 0,0.0092 2e-5,0.01818 0,0.02739 -10.9132,2.010503 -19.5458,10.64362 -21.5563,21.556821 -0.009,1e-5 -0.0182,0 -0.0274,0 -11.95138,0 -21.58215,-9.632835 -21.58215,-21.58421 0,-0.0092 -1e-5,-0.01818 0,-0.02739 10.91322,-2.010502 19.54581,-10.643614 21.55631,-21.556824 z m -26.43249,26.312089 c 1.96851,11.031656 10.69828,19.761424 21.72994,21.729944 -11.03166,1.96851 -19.76143,10.69828 -21.72994,21.72994 C 103.8643,116.5311 95.134532,107.80133 84.102876,105.83282 95.134532,103.8643 103.8643,95.134532 105.83282,84.102876 Z M 79.347611,110.709 c 0.0092,-1e-5 0.01818,0 0.02739,0 11.951375,0 21.584209,9.63077 21.584209,21.58215 0,0.009 1e-5,0.0182 0,0.0274 -10.9132,2.0105 -19.546317,10.6431 -21.55682,21.5563 -0.0092,2e-5 -0.01818,0 -0.02739,0 -11.951375,0 -21.584212,-9.63232 -21.584212,-21.58369 0,-0.009 -10e-6,-0.0173 0,-0.0258 10.91321,-2.0105 19.546322,-10.64309 21.556824,-21.55631 z m 52.943539,0 c 0.009,0 0.0182,-1e-5 0.0274,0 2.0105,10.91322 10.64309,19.54581 21.5563,21.55631 1e-5,0.009 0,0.0173 0,0.0258 0,11.95137 -9.63232,21.58369 -21.58369,21.58369 -0.009,0 -0.0173,1e-5 -0.0258,0 -2.0105,-10.91321 -10.64309,-19.5458 -21.55631,-21.5563 -1e-5,-0.009 0,-0.0182 0,-0.0274 0,-11.95138 9.63077,-21.58215 21.58215,-21.58215 z" />
|
|
167
|
+
</g>
|
|
168
|
+
</g>
|
|
169
|
+
<path
|
|
170
|
+
style="font-weight:500;font-size:14.2227px;font-family:roboto;-inkscape-font-specification:'roboto Medium';letter-spacing:-0.31px;display:inline;fill:#000000;stroke-width:10.667;stroke-linejoin:bevel"
|
|
171
|
+
d="m 48.398373,22.581037 q 0,-0.312511 -0.09722,-0.555574 -0.09028,-0.243064 -0.3264,-0.44446 -0.236119,-0.201395 -0.666689,-0.388902 -0.423625,-0.194451 -1.08337,-0.395846 -0.722246,-0.22223 -1.333378,-0.493072 -0.604187,-0.277787 -1.055591,-0.638911 -0.451404,-0.368068 -0.701412,-0.840306 -0.250009,-0.479182 -0.250009,-1.104203 0,-0.618077 0.256953,-1.125038 0.263898,-0.506962 0.743081,-0.87503 0.486127,-0.375012 1.145872,-0.576408 0.659744,-0.20834 1.458382,-0.20834 1.125038,0 1.937565,0.41668 0.819472,0.416681 1.256987,1.118094 0.444459,0.701412 0.444459,1.548663 h -1.729225 q 0,-0.500017 -0.215285,-0.881974 -0.20834,-0.388902 -0.63891,-0.611132 -0.423625,-0.22223 -1.076425,-0.22223 -0.618076,0 -1.027812,0.187507 -0.409736,0.187506 -0.611132,0.506961 -0.201396,0.319455 -0.201396,0.722247 0,0.284731 0.131949,0.52085 0.131949,0.229175 0.402792,0.43057 0.270842,0.194451 0.680578,0.368068 0.409736,0.173617 0.96531,0.333345 0.840306,0.250008 1.465327,0.555574 0.625021,0.298621 1.041702,0.680578 0.416681,0.381958 0.625021,0.868085 0.20834,0.479183 0.20834,1.090315 0,0.63891 -0.256953,1.152816 -0.256953,0.506962 -0.736136,0.868085 -0.472238,0.354178 -1.138927,0.548629 -0.659744,0.187507 -1.472272,0.187507 -0.729191,0 -1.437548,-0.194451 -0.701412,-0.194451 -1.277821,-0.590298 -0.576408,-0.402791 -0.916697,-1.000033 -0.340289,-0.604187 -0.340289,-1.40977 h 1.743114 q 0,0.493072 0.166672,0.840306 0.173617,0.347234 0.479183,0.569464 0.305566,0.215285 0.708357,0.319455 0.409736,0.10417 0.875029,0.10417 0.611132,0 1.020868,-0.173617 0.416681,-0.173617 0.625021,-0.486128 0.20834,-0.31251 0.20834,-0.722246 z m 4.606832,-4.909887 v 7.514141 H 51.324593 V 17.67115 Z m -1.791727,-1.972289 q 0,-0.381957 0.250009,-0.631965 0.256953,-0.256953 0.708357,-0.256953 0.444459,0 0.701412,0.256953 0.256953,0.250008 0.256953,0.631965 0,0.375013 -0.256953,0.625021 -0.256953,0.250009 -0.701412,0.250009 -0.451404,0 -0.708357,-0.250009 -0.250009,-0.250008 -0.250009,-0.625021 z m 8.127784,1.972289 h 1.520885 v 7.305801 q 0,1.013923 -0.43057,1.72228 -0.43057,0.708357 -1.201429,1.076425 -0.77086,0.375013 -1.784783,0.375013 -0.43057,0 -0.958365,-0.125005 -0.520851,-0.125004 -1.013923,-0.402791 -0.486128,-0.270842 -0.812527,-0.715302 l 0.784748,-0.986144 q 0.402792,0.479183 0.888919,0.701412 0.486127,0.22223 1.020868,0.22223 0.576408,0 0.979199,-0.215285 0.409736,-0.20834 0.631966,-0.618076 0.22223,-0.409736 0.22223,-1.000034 v -5.639078 z m -5.104338,3.840407 v -0.145839 q 0,-0.854195 0.208341,-1.555607 0.20834,-0.708358 0.597242,-1.215319 0.388902,-0.513906 0.944476,-0.784749 0.555574,-0.277787 1.256987,-0.277787 0.729191,0 1.243097,0.263898 0.520851,0.263898 0.868085,0.75697 0.347234,0.486127 0.541685,1.166706 0.201395,0.673633 0.298621,1.50005 v 0.465294 q -0.09028,0.805582 -0.305566,1.472271 -0.215285,0.666689 -0.569464,1.152817 -0.354178,0.486127 -0.875029,0.750025 -0.513906,0.263898 -1.215319,0.263898 -0.687523,0 -1.243097,-0.284732 -0.548629,-0.284732 -0.944476,-0.798638 -0.388902,-0.513906 -0.597242,-1.208374 -0.208341,-0.701412 -0.208341,-1.520884 z m 1.673668,-0.145839 v 0.145839 q 0,0.513906 0.09723,0.958365 0.10417,0.44446 0.312511,0.784749 0.215285,0.333344 0.541684,0.527795 0.333345,0.187507 0.784749,0.187507 0.590298,0 0.96531,-0.250009 0.381958,-0.250008 0.583353,-0.673634 0.208341,-0.43057 0.291677,-0.958365 v -1.256987 q -0.04167,-0.409736 -0.173622,-0.763914 -0.125004,-0.354179 -0.340289,-0.618077 -0.215285,-0.270842 -0.541685,-0.41668 -0.3264,-0.152783 -0.77086,-0.152783 -0.451404,0 -0.784748,0.194451 -0.333345,0.194451 -0.54863,0.53474 -0.20834,0.340289 -0.31251,0.791693 -0.10417,0.451404 -0.10417,0.96531 z m 8.030557,-2.090348 v 5.909921 H 62.267482 V 17.67115 h 1.576442 z m -0.298621,1.875063 -0.541685,-0.0069 q 0.0069,-0.798638 0.22223,-1.465327 0.22223,-0.666689 0.611131,-1.145872 0.395847,-0.479183 0.944477,-0.736136 0.548629,-0.263898 1.222263,-0.263898 0.541685,0 0.9792,0.152783 0.444459,0.145838 0.756969,0.479183 0.319456,0.333344 0.486128,0.868085 0.166672,0.527795 0.166672,1.298654 v 4.85433 h -1.680612 v -4.861274 q 0,-0.541685 -0.159727,-0.854196 -0.152783,-0.319455 -0.451405,-0.451404 -0.291676,-0.138893 -0.729191,-0.138893 -0.43057,0 -0.770859,0.180561 -0.340289,0.180562 -0.576408,0.493072 -0.229175,0.312511 -0.354179,0.722247 -0.125004,0.409736 -0.125004,0.875029 z M 74.904872,17.67115 v 7.514141 H 73.22426 V 17.67115 Z m -1.791727,-1.972289 q 0,-0.381957 0.250008,-0.631965 0.256953,-0.256953 0.708357,-0.256953 0.44446,0 0.701413,0.256953 0.256953,0.250008 0.256953,0.631965 0,0.375013 -0.256953,0.625021 -0.256953,0.250009 -0.701413,0.250009 -0.451404,0 -0.708357,-0.250009 -0.250008,-0.250008 -0.250008,-0.625021 z m 4.974901,3.576509 v 5.909921 H 76.414378 V 17.67115 h 1.576442 z m -0.298622,1.875063 -0.541684,-0.0069 q 0.0069,-0.798638 0.222229,-1.465327 0.22223,-0.666689 0.611132,-1.145872 0.395846,-0.479183 0.944476,-0.736136 0.54863,-0.263898 1.222263,-0.263898 0.541685,0 0.9792,0.152783 0.444459,0.145838 0.75697,0.479183 0.319455,0.333344 0.486127,0.868085 0.166672,0.527795 0.166672,1.298654 v 4.85433 h -1.680612 v -4.861274 q 0,-0.541685 -0.159727,-0.854196 -0.152783,-0.319455 -0.451404,-0.451404 -0.291677,-0.138893 -0.729191,-0.138893 -0.43057,0 -0.77086,0.180561 -0.340289,0.180562 -0.576408,0.493072 -0.229174,0.312511 -0.354178,0.722247 -0.125005,0.409736 -0.125005,0.875029 z m 11.512351,2.368135 1.736169,-5.847418 h 1.06948 l -0.291676,1.750059 -1.750059,5.764082 h -0.958365 z m -1.020868,-5.847418 1.354212,5.875197 0.111115,1.638944 h -1.06948 L 86.641963,17.67115 Z m 5.451572,5.80575 1.312544,-5.80575 h 1.631999 l -2.027845,7.514141 h -1.069481 z m -1.444493,-5.80575 1.715336,5.777972 0.215285,1.736169 H 93.260241 L 91.489348,19.414264 91.197672,17.67115 Z m 7.009691,0 v 7.514141 H 97.617065 V 17.67115 Z M 97.50595,15.698861 q 0,-0.381957 0.250008,-0.631965 0.256954,-0.256953 0.708358,-0.256953 0.444459,0 0.701412,0.256953 0.256953,0.250008 0.256953,0.631965 0,0.375013 -0.256953,0.625021 -0.256953,0.250009 -0.701412,0.250009 -0.451404,0 -0.708358,-0.250009 -0.250008,-0.250008 -0.250008,-0.625021 z m 6.75968,1.972289 v 1.222263 h -4.23625 V 17.67115 Z m -3.01399,-1.84034 h 1.67367 v 7.278022 q 0,0.347234 0.0972,0.534741 0.10417,0.180561 0.28474,0.243063 0.18056,0.0625 0.42362,0.0625 0.17362,0 0.33335,-0.02083 0.15972,-0.02083 0.25695,-0.04167 l 0.007,1.277821 q -0.20834,0.0625 -0.48612,0.111115 -0.27085,0.04861 -0.62503,0.04861 -0.5764,0 -1.02086,-0.201396 -0.44446,-0.20834 -0.69447,-0.673634 -0.25001,-0.465293 -0.25001,-1.236152 z m 5.64854,-1.312544 v 10.667025 h -1.66673 V 14.518266 Z m -0.29168,6.632167 -0.54168,-0.0069 q 0.007,-0.777804 0.21528,-1.437549 0.21529,-0.659744 0.59724,-1.145871 0.38891,-0.493073 0.93059,-0.75697 0.54169,-0.270843 1.20143,-0.270843 0.55557,0 1.00003,0.152783 0.45141,0.152783 0.77781,0.493072 0.3264,0.333345 0.49307,0.87503 0.17362,0.53474 0.17362,1.305599 v 4.826551 h -1.68062 v -4.84044 q 0,-0.541685 -0.15972,-0.86114 -0.15279,-0.319456 -0.45141,-0.458349 -0.29862,-0.145838 -0.72919,-0.145838 -0.4514,0 -0.79864,0.180561 -0.34029,0.180562 -0.56946,0.493072 -0.22917,0.312511 -0.34723,0.722247 -0.11112,0.409736 -0.11112,0.875029 z M 117.97502,15.07384 V 25.185291 H 116.2319 V 15.07384 Z m 4.12514,4.42376 v 1.381991 h -4.5696 V 19.4976 Z m 0.5764,-4.42376 v 1.388936 h -5.146 V 15.07384 Z m 2.70399,-0.555574 v 10.667025 h -1.68061 V 14.518266 Z m 1.20394,6.993291 v -0.159728 q 0,-0.812527 0.23612,-1.506995 0.23612,-0.701413 0.68058,-1.215319 0.4514,-0.520851 1.09726,-0.805582 0.6528,-0.291677 1.47227,-0.291677 0.82641,0 1.47227,0.291677 0.6528,0.284731 1.1042,0.805582 0.45141,0.513906 0.68753,1.215319 0.23612,0.694468 0.23612,1.506995 v 0.159728 q 0,0.812527 -0.23612,1.506995 -0.23612,0.694467 -0.68753,1.215318 -0.4514,0.513906 -1.09726,0.805583 -0.64585,0.284732 -1.46532,0.284732 -0.82642,0 -1.47922,-0.284732 -0.64585,-0.291677 -1.09726,-0.805583 -0.4514,-0.520851 -0.68752,-1.215318 -0.23612,-0.694468 -0.23612,-1.506995 z m 1.67367,-0.159728 v 0.159728 q 0,0.506961 0.10417,0.958365 0.10417,0.451404 0.3264,0.791693 0.22223,0.34029 0.56946,0.534741 0.34723,0.194451 0.82642,0.194451 0.46529,0 0.80558,-0.194451 0.34723,-0.194451 0.56946,-0.534741 0.22223,-0.340289 0.3264,-0.791693 0.11112,-0.451404 0.11112,-0.958365 v -0.159728 q 0,-0.500017 -0.11112,-0.944476 -0.10417,-0.451404 -0.33334,-0.798638 -0.22223,-0.347234 -0.56946,-0.541685 -0.34029,-0.201396 -0.81253,-0.201396 -0.47224,0 -0.81947,0.201396 -0.34029,0.194451 -0.56252,0.541685 -0.22223,0.347234 -0.3264,0.798638 -0.10417,0.444459 -0.10417,0.944476 z m 8.44724,2.166739 1.73617,-5.847418 h 1.06948 l -0.29168,1.750059 -1.75006,5.764082 h -0.95836 z m -1.02087,-5.847418 1.35421,5.875197 0.11112,1.638944 h -1.06948 l -2.03479,-7.514141 z m 5.45157,5.80575 1.31255,-5.80575 h 1.632 l -2.02785,7.514141 h -1.06948 z m -1.44449,-5.80575 1.71534,5.777972 0.21528,1.736169 h -0.95836 l -1.7709,-5.771027 -0.29167,-1.743114 z m 9.43338,5.479351 q 0,-0.250009 -0.12501,-0.451405 -0.125,-0.20834 -0.47918,-0.375012 -0.34723,-0.166672 -1.02781,-0.305566 -0.59724,-0.131949 -1.09726,-0.31251 -0.49307,-0.187507 -0.84725,-0.451404 -0.35418,-0.263898 -0.54863,-0.625021 -0.19445,-0.361124 -0.19445,-0.833362 0,-0.458349 0.20139,-0.868085 0.2014,-0.409736 0.57641,-0.722246 0.37501,-0.312511 0.90975,-0.493072 0.54169,-0.180562 1.20838,-0.180562 0.94447,0 1.61811,0.319455 0.68058,0.312511 1.0417,0.854196 0.36112,0.53474 0.36112,1.208374 h -1.67366 q 0,-0.298621 -0.15279,-0.555575 -0.14584,-0.263897 -0.44446,-0.423625 -0.29862,-0.166672 -0.75002,-0.166672 -0.43057,0 -0.7153,0.138893 -0.27779,0.131949 -0.41668,0.347234 -0.13195,0.215285 -0.13195,0.472238 0,0.187507 0.0694,0.34029 0.0764,0.145838 0.25001,0.270842 0.17362,0.11806 0.47224,0.22223 0.30557,0.10417 0.76391,0.201395 0.86114,0.180562 1.47922,0.465294 0.62502,0.277787 0.95837,0.722246 0.33334,0.437515 0.33334,1.111149 0,0.500017 -0.21528,0.916697 -0.20834,0.409736 -0.61114,0.715302 -0.40279,0.298621 -0.96531,0.465293 -0.55557,0.166673 -1.25004,0.166673 -1.02087,0 -1.72922,-0.361124 -0.70836,-0.368067 -1.07643,-0.937531 -0.36112,-0.576408 -0.36112,-1.194485 h 1.61811 q 0.0278,0.465294 0.25695,0.743081 0.23612,0.270842 0.58336,0.395847 0.35417,0.118059 0.72919,0.118059 0.4514,0 0.75697,-0.118059 0.30556,-0.125005 0.46529,-0.333345 0.15973,-0.215285 0.15973,-0.486127 z m 6.23884,-5.479351 v 1.222263 h -4.23626 V 17.67115 Z m -3.014,-1.84034 h 1.67367 v 7.278022 q 0,0.347234 0.0972,0.534741 0.10417,0.180561 0.28473,0.243063 0.18056,0.0625 0.42362,0.0625 0.17362,0 0.33335,-0.02083 0.15973,-0.02083 0.25695,-0.04167 l 0.007,1.277821 q -0.20834,0.0625 -0.48613,0.111115 -0.27084,0.04861 -0.62502,0.04861 -0.57641,0 -1.02087,-0.201396 -0.44446,-0.20834 -0.69447,-0.673634 -0.25001,-0.465293 -0.25001,-1.236152 z m 8.23196,7.847486 v -3.583454 q 0,-0.402791 -0.14584,-0.694467 -0.14584,-0.291677 -0.44446,-0.451405 -0.29168,-0.159727 -0.73614,-0.159727 -0.40973,0 -0.70835,0.138893 -0.29862,0.138894 -0.4653,0.375013 -0.16667,0.236119 -0.16667,0.53474 h -1.66672 q 0,-0.444459 0.21528,-0.86114 0.21529,-0.41668 0.62502,-0.74308 0.40974,-0.3264 0.9792,-0.513906 0.56947,-0.187507 1.27783,-0.187507 0.84725,0 1.50005,0.284732 0.65974,0.284732 1.03475,0.86114 0.38196,0.569464 0.38196,1.430604 v 3.34039 q 0,0.513906 0.0694,0.923642 0.0764,0.402791 0.21528,0.701412 v 0.111115 h -1.71533 q -0.11806,-0.270842 -0.18751,-0.687523 -0.0625,-0.423625 -0.0625,-0.819472 z m 0.24306,-3.062603 0.0139,1.034757 h -1.20143 q -0.46529,0 -0.81947,0.09028 -0.35418,0.08334 -0.5903,0.250008 -0.23612,0.166673 -0.35418,0.402792 -0.11806,0.236119 -0.11806,0.53474 0,0.298621 0.1389,0.548629 0.13889,0.243064 0.40279,0.381958 0.27084,0.138893 0.6528,0.138893 0.5139,0 0.89586,-0.20834 0.3889,-0.215285 0.61113,-0.520851 0.22223,-0.31251 0.23612,-0.590298 l 0.54169,0.743081 q -0.0833,0.284732 -0.28473,0.611132 -0.2014,0.326399 -0.5278,0.625021 -0.31945,0.291676 -0.77086,0.479182 -0.44446,0.187507 -1.02781,0.187507 -0.73614,0 -1.31255,-0.291677 -0.5764,-0.298621 -0.9028,-0.798638 -0.3264,-0.506961 -0.3264,-1.145872 0,-0.597242 0.22223,-1.055591 0.22917,-0.465293 0.66669,-0.777803 0.44445,-0.312511 1.08337,-0.472239 0.63891,-0.166672 1.45838,-0.166672 z"
|
|
172
|
+
id="text6"
|
|
173
|
+
aria-label="Sign in with Flowsta" />
|
|
174
|
+
</svg>
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { b as i, a as g, g as o, c, d as p, h as u, p as d, r as f, f as h, s as C, e as b, v } from "./oauth-DEOZXwxb.js";
|
|
2
|
+
function e(a, r) {
|
|
3
|
+
const t = `flowsta_signin_web_${a}_${r}.svg`;
|
|
4
|
+
try {
|
|
5
|
+
return new URL((/* @__PURE__ */ Object.assign({}))[`./assets/svg/${t}`], import.meta.url).href;
|
|
6
|
+
} catch {
|
|
7
|
+
return `https://unpkg.com/@flowsta/login-button@latest/assets/svg/${t}`;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const l = {
|
|
11
|
+
dark: {
|
|
12
|
+
pill: e("dark", "pill"),
|
|
13
|
+
rectangle: e("dark", "rectangle")
|
|
14
|
+
},
|
|
15
|
+
light: {
|
|
16
|
+
pill: e("light", "pill"),
|
|
17
|
+
rectangle: e("light", "rectangle")
|
|
18
|
+
},
|
|
19
|
+
neutral: {
|
|
20
|
+
pill: e("neutral", "pill"),
|
|
21
|
+
rectangle: e("neutral", "rectangle")
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
l as BUTTON_URLS,
|
|
26
|
+
i as buildAuthorizationUrl,
|
|
27
|
+
g as generateCodeChallenge,
|
|
28
|
+
o as generateCodeVerifier,
|
|
29
|
+
c as generatePKCEPair,
|
|
30
|
+
p as generateState,
|
|
31
|
+
e as getButtonUrl,
|
|
32
|
+
u as handleCallback,
|
|
33
|
+
d as parseCallbackUrl,
|
|
34
|
+
f as retrieveCodeVerifier,
|
|
35
|
+
h as retrieveState,
|
|
36
|
+
C as storeCodeVerifier,
|
|
37
|
+
b as storeState,
|
|
38
|
+
v as validateState
|
|
39
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
function i() {
|
|
2
|
+
const e = new Uint8Array(32);
|
|
3
|
+
return crypto.getRandomValues(e), a(e);
|
|
4
|
+
}
|
|
5
|
+
async function c(e) {
|
|
6
|
+
const t = new TextEncoder().encode(e), n = await crypto.subtle.digest("SHA-256", t);
|
|
7
|
+
return a(new Uint8Array(n));
|
|
8
|
+
}
|
|
9
|
+
function a(e) {
|
|
10
|
+
return btoa(String.fromCharCode(...e)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
11
|
+
}
|
|
12
|
+
async function l() {
|
|
13
|
+
const e = i(), r = await c(e);
|
|
14
|
+
return { verifier: e, challenge: r };
|
|
15
|
+
}
|
|
16
|
+
function d(e, r) {
|
|
17
|
+
try {
|
|
18
|
+
sessionStorage.setItem(`flowsta_code_verifier_${r}`, e);
|
|
19
|
+
} catch (t) {
|
|
20
|
+
console.error("Failed to store code verifier:", t);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function v(e) {
|
|
24
|
+
try {
|
|
25
|
+
const r = sessionStorage.getItem(`flowsta_code_verifier_${e}`);
|
|
26
|
+
return r && sessionStorage.removeItem(`flowsta_code_verifier_${e}`), r;
|
|
27
|
+
} catch (r) {
|
|
28
|
+
return console.error("Failed to retrieve code verifier:", r), null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function u() {
|
|
32
|
+
const e = new Uint8Array(32);
|
|
33
|
+
return crypto.getRandomValues(e), g(e);
|
|
34
|
+
}
|
|
35
|
+
function g(e) {
|
|
36
|
+
return btoa(String.fromCharCode(...e)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
37
|
+
}
|
|
38
|
+
function f(e) {
|
|
39
|
+
try {
|
|
40
|
+
sessionStorage.setItem("flowsta_oauth_state", e);
|
|
41
|
+
} catch (r) {
|
|
42
|
+
console.error("Failed to store state:", r);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function _() {
|
|
46
|
+
try {
|
|
47
|
+
const e = sessionStorage.getItem("flowsta_oauth_state");
|
|
48
|
+
return e && sessionStorage.removeItem("flowsta_oauth_state"), e;
|
|
49
|
+
} catch (e) {
|
|
50
|
+
return console.error("Failed to retrieve state:", e), null;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function w(e) {
|
|
54
|
+
const r = _();
|
|
55
|
+
return r !== null && r === e;
|
|
56
|
+
}
|
|
57
|
+
async function m(e) {
|
|
58
|
+
const r = e.loginUrl || "https://login.flowsta.com", { verifier: t, challenge: n } = await l(), o = u();
|
|
59
|
+
d(t, o), f(o);
|
|
60
|
+
const s = new URLSearchParams({
|
|
61
|
+
client_id: e.clientId,
|
|
62
|
+
redirect_uri: e.redirectUri,
|
|
63
|
+
response_type: "code",
|
|
64
|
+
scope: e.scopes.join(" "),
|
|
65
|
+
state: o,
|
|
66
|
+
code_challenge: n,
|
|
67
|
+
code_challenge_method: "S256"
|
|
68
|
+
});
|
|
69
|
+
return {
|
|
70
|
+
url: `${r}/login?${s.toString()}`,
|
|
71
|
+
state: o,
|
|
72
|
+
codeVerifier: t
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function h(e) {
|
|
76
|
+
const t = new URL(e, window.location.origin).searchParams;
|
|
77
|
+
return {
|
|
78
|
+
code: t.get("code") || void 0,
|
|
79
|
+
state: t.get("state") || void 0,
|
|
80
|
+
error: t.get("error") || void 0,
|
|
81
|
+
errorDescription: t.get("error_description") || void 0
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function S() {
|
|
85
|
+
return h(window.location.href);
|
|
86
|
+
}
|
|
87
|
+
export {
|
|
88
|
+
c as a,
|
|
89
|
+
m as b,
|
|
90
|
+
l as c,
|
|
91
|
+
u as d,
|
|
92
|
+
f as e,
|
|
93
|
+
_ as f,
|
|
94
|
+
i as g,
|
|
95
|
+
S as h,
|
|
96
|
+
h as p,
|
|
97
|
+
v as r,
|
|
98
|
+
d as s,
|
|
99
|
+
w as v
|
|
100
|
+
};
|
package/dist/qwik.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as r } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$ as m, useSignal as h, $ as w } from "@builder.io/qwik";
|
|
3
|
+
import { b } from "./oauth-DEOZXwxb.js";
|
|
4
|
+
import { h as C, p as F } from "./oauth-DEOZXwxb.js";
|
|
5
|
+
const $ = m((n) => {
|
|
6
|
+
const {
|
|
7
|
+
clientId: s,
|
|
8
|
+
redirectUri: l,
|
|
9
|
+
scopes: c = ["profile"],
|
|
10
|
+
variant: d = "dark-pill",
|
|
11
|
+
loginUrl: u,
|
|
12
|
+
className: g = "",
|
|
13
|
+
disabled: e = !1,
|
|
14
|
+
onSuccess$: v,
|
|
15
|
+
onError$: o,
|
|
16
|
+
onClick$: i
|
|
17
|
+
} = n, a = h(!1), f = w(async () => {
|
|
18
|
+
if (!(e || a.value)) {
|
|
19
|
+
a.value = !0;
|
|
20
|
+
try {
|
|
21
|
+
i == null || i();
|
|
22
|
+
const { url: t } = await b({
|
|
23
|
+
clientId: s,
|
|
24
|
+
redirectUri: l,
|
|
25
|
+
scopes: c,
|
|
26
|
+
loginUrl: u
|
|
27
|
+
});
|
|
28
|
+
typeof window < "u" && (window.location.href = t);
|
|
29
|
+
} catch (t) {
|
|
30
|
+
a.value = !1, o == null || o({
|
|
31
|
+
error: "authorization_failed",
|
|
32
|
+
errorDescription: t instanceof Error ? t.message : "Unknown error"
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}), p = (t) => `/node_modules/@flowsta/login-button/assets/svg/${`flowsta_signin_web_${t.replace("-", "_")}`}.svg`;
|
|
37
|
+
return /* @__PURE__ */ r(
|
|
38
|
+
"button",
|
|
39
|
+
{
|
|
40
|
+
type: "button",
|
|
41
|
+
onClick$: f,
|
|
42
|
+
disabled: e || a.value,
|
|
43
|
+
class: `flowsta-login-button ${g || n.class || ""}`,
|
|
44
|
+
"aria-label": "Sign in with Flowsta",
|
|
45
|
+
style: {
|
|
46
|
+
border: "none",
|
|
47
|
+
background: "transparent",
|
|
48
|
+
padding: "0",
|
|
49
|
+
cursor: e || a.value ? "not-allowed" : "pointer",
|
|
50
|
+
opacity: e || a.value ? "0.6" : "1",
|
|
51
|
+
transition: "opacity 0.2s ease"
|
|
52
|
+
},
|
|
53
|
+
children: /* @__PURE__ */ r(
|
|
54
|
+
"img",
|
|
55
|
+
{
|
|
56
|
+
src: p(d),
|
|
57
|
+
alt: "Sign in with Flowsta",
|
|
58
|
+
width: 175,
|
|
59
|
+
height: 40,
|
|
60
|
+
style: {
|
|
61
|
+
display: "block",
|
|
62
|
+
maxWidth: "100%",
|
|
63
|
+
height: "auto"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
$ as FlowstaLoginButton,
|
|
72
|
+
b as buildAuthorizationUrl,
|
|
73
|
+
$ as default,
|
|
74
|
+
C as handleCallback,
|
|
75
|
+
F as parseCallbackUrl
|
|
76
|
+
};
|
package/dist/react.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b, useCallback as y } from "react";
|
|
3
|
+
import { b as k } from "./oauth-DEOZXwxb.js";
|
|
4
|
+
import { h as A, p as D } from "./oauth-DEOZXwxb.js";
|
|
5
|
+
import { getButtonUrl as x } from "./index.js";
|
|
6
|
+
function B({
|
|
7
|
+
clientId: s,
|
|
8
|
+
redirectUri: i,
|
|
9
|
+
scopes: r = ["openid", "email", "display_name"],
|
|
10
|
+
variant: c = "dark-pill",
|
|
11
|
+
loginUrl: l,
|
|
12
|
+
className: h = "",
|
|
13
|
+
disabled: t = !1,
|
|
14
|
+
onSuccess: S,
|
|
15
|
+
onError: o,
|
|
16
|
+
onClick: e,
|
|
17
|
+
children: m
|
|
18
|
+
}) {
|
|
19
|
+
const [a, u] = b(!1), f = y(async () => {
|
|
20
|
+
if (!(t || a)) {
|
|
21
|
+
u(!0);
|
|
22
|
+
try {
|
|
23
|
+
e == null || e();
|
|
24
|
+
const { url: n } = await k({
|
|
25
|
+
clientId: s,
|
|
26
|
+
redirectUri: i,
|
|
27
|
+
scopes: r,
|
|
28
|
+
loginUrl: l
|
|
29
|
+
});
|
|
30
|
+
window.location.href = n;
|
|
31
|
+
} catch (n) {
|
|
32
|
+
u(!1), o == null || o({
|
|
33
|
+
error: "authorization_failed",
|
|
34
|
+
errorDescription: n instanceof Error ? n.message : "Unknown error"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, [s, i, r, l, t, a, e, o]), [g, d] = c.split("-"), w = x(g, d);
|
|
39
|
+
return /* @__PURE__ */ p(
|
|
40
|
+
"button",
|
|
41
|
+
{
|
|
42
|
+
type: "button",
|
|
43
|
+
onClick: f,
|
|
44
|
+
disabled: t || a,
|
|
45
|
+
className: `flowsta-login-button ${h}`,
|
|
46
|
+
"aria-label": "Sign in with Flowsta",
|
|
47
|
+
style: {
|
|
48
|
+
border: "none",
|
|
49
|
+
background: "transparent",
|
|
50
|
+
padding: 0,
|
|
51
|
+
cursor: t || a ? "not-allowed" : "pointer",
|
|
52
|
+
opacity: t || a ? 0.6 : 1,
|
|
53
|
+
transition: "opacity 0.2s ease"
|
|
54
|
+
},
|
|
55
|
+
children: m || /* @__PURE__ */ p(
|
|
56
|
+
"img",
|
|
57
|
+
{
|
|
58
|
+
src: w,
|
|
59
|
+
alt: "Sign in with Flowsta",
|
|
60
|
+
width: 175,
|
|
61
|
+
height: 40,
|
|
62
|
+
style: {
|
|
63
|
+
display: "block",
|
|
64
|
+
maxWidth: "100%",
|
|
65
|
+
height: "auto"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
B as FlowstaLoginButton,
|
|
74
|
+
k as buildAuthorizationUrl,
|
|
75
|
+
B as default,
|
|
76
|
+
A as handleCallback,
|
|
77
|
+
D as parseCallbackUrl
|
|
78
|
+
};
|
package/dist/style.css
ADDED
|
File without changes
|
package/dist/vanilla.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { b as w } from "./oauth-DEOZXwxb.js";
|
|
2
|
+
import { a as k, g as _, c as E, d as F, h as L, p as U, r as V, f as $, s as x, e as B, v as N } from "./oauth-DEOZXwxb.js";
|
|
3
|
+
function u(e) {
|
|
4
|
+
const {
|
|
5
|
+
clientId: s,
|
|
6
|
+
redirectUri: n,
|
|
7
|
+
scopes: r = ["profile"],
|
|
8
|
+
variant: g = "dark-pill",
|
|
9
|
+
loginUrl: p,
|
|
10
|
+
className: f = "",
|
|
11
|
+
disabled: o = !1,
|
|
12
|
+
onSuccess: m,
|
|
13
|
+
onError: l,
|
|
14
|
+
onClick: c
|
|
15
|
+
} = e, t = document.createElement("button");
|
|
16
|
+
t.type = "button", t.className = `flowsta-login-button ${f}`.trim(), t.setAttribute("aria-label", "Sign in with Flowsta"), t.disabled = o, Object.assign(t.style, {
|
|
17
|
+
border: "none",
|
|
18
|
+
background: "transparent",
|
|
19
|
+
padding: "0",
|
|
20
|
+
cursor: o ? "not-allowed" : "pointer",
|
|
21
|
+
opacity: o ? "0.6" : "1",
|
|
22
|
+
transition: "opacity 0.2s ease"
|
|
23
|
+
});
|
|
24
|
+
const a = document.createElement("img"), b = `flowsta_signin_web_${g.replace("-", "_")}`;
|
|
25
|
+
a.src = `/node_modules/@flowsta/login-button/assets/svg/${b}.svg`, a.alt = "Sign in with Flowsta", a.width = 175, a.height = 40, Object.assign(a.style, {
|
|
26
|
+
display: "block",
|
|
27
|
+
maxWidth: "100%",
|
|
28
|
+
height: "auto"
|
|
29
|
+
}), t.appendChild(a);
|
|
30
|
+
let d = !1;
|
|
31
|
+
return t.addEventListener("click", async () => {
|
|
32
|
+
if (!(t.disabled || d)) {
|
|
33
|
+
d = !0, t.style.opacity = "0.6", t.style.cursor = "not-allowed";
|
|
34
|
+
try {
|
|
35
|
+
c == null || c();
|
|
36
|
+
const { url: i } = await w({
|
|
37
|
+
clientId: s,
|
|
38
|
+
redirectUri: n,
|
|
39
|
+
scopes: r,
|
|
40
|
+
loginUrl: p
|
|
41
|
+
});
|
|
42
|
+
window.location.href = i;
|
|
43
|
+
} catch (i) {
|
|
44
|
+
d = !1, t.style.opacity = o ? "0.6" : "1", t.style.cursor = o ? "not-allowed" : "pointer", l == null || l({
|
|
45
|
+
error: "authorization_failed",
|
|
46
|
+
errorDescription: i instanceof Error ? i.message : "Unknown error"
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}), t;
|
|
51
|
+
}
|
|
52
|
+
function h(e, s) {
|
|
53
|
+
const n = typeof e == "string" ? document.querySelector(e) : e;
|
|
54
|
+
if (!n)
|
|
55
|
+
throw new Error(`Container not found: ${e}`);
|
|
56
|
+
const r = u(s);
|
|
57
|
+
return n.appendChild(r), r;
|
|
58
|
+
}
|
|
59
|
+
const C = {
|
|
60
|
+
createFlowstaLoginButton: u,
|
|
61
|
+
initFlowstaLoginButton: h
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
w as buildAuthorizationUrl,
|
|
65
|
+
u as createFlowstaLoginButton,
|
|
66
|
+
C as default,
|
|
67
|
+
k as generateCodeChallenge,
|
|
68
|
+
_ as generateCodeVerifier,
|
|
69
|
+
E as generatePKCEPair,
|
|
70
|
+
F as generateState,
|
|
71
|
+
L as handleCallback,
|
|
72
|
+
h as initFlowstaLoginButton,
|
|
73
|
+
U as parseCallbackUrl,
|
|
74
|
+
V as retrieveCodeVerifier,
|
|
75
|
+
$ as retrieveState,
|
|
76
|
+
x as storeCodeVerifier,
|
|
77
|
+
B as storeState,
|
|
78
|
+
N as validateState
|
|
79
|
+
};
|
package/dist/vue.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as u, ref as m, computed as s, createElementBlock as p, openBlock as g, normalizeStyle as f, normalizeClass as b, renderSlot as h, createElementVNode as w } from "vue";
|
|
2
|
+
import { b as _ } from "./oauth-DEOZXwxb.js";
|
|
3
|
+
import { h as z, p as I } from "./oauth-DEOZXwxb.js";
|
|
4
|
+
const v = ["disabled"], k = ["src"], y = /* @__PURE__ */ u({
|
|
5
|
+
__name: "FlowstaLoginButtonVue",
|
|
6
|
+
props: {
|
|
7
|
+
customContent: {},
|
|
8
|
+
clientId: {},
|
|
9
|
+
redirectUri: {},
|
|
10
|
+
scopes: { default: () => ["profile"] },
|
|
11
|
+
variant: { default: "dark-pill" },
|
|
12
|
+
loginUrl: {},
|
|
13
|
+
className: { default: "" },
|
|
14
|
+
disabled: { type: Boolean, default: !1 }
|
|
15
|
+
},
|
|
16
|
+
emits: ["success", "error", "click"],
|
|
17
|
+
setup(a, { emit: n }) {
|
|
18
|
+
const e = a, l = n, t = m(!1), r = s(() => `/node_modules/@flowsta/login-button/assets/svg/${`flowsta_signin_web_${e.variant.replace("-", "_")}`}.svg`), i = s(() => ({
|
|
19
|
+
border: "none",
|
|
20
|
+
background: "transparent",
|
|
21
|
+
padding: 0,
|
|
22
|
+
cursor: e.disabled || t.value ? "not-allowed" : "pointer",
|
|
23
|
+
opacity: e.disabled || t.value ? 0.6 : 1,
|
|
24
|
+
transition: "opacity 0.2s ease"
|
|
25
|
+
})), c = {
|
|
26
|
+
display: "block",
|
|
27
|
+
maxWidth: "100%",
|
|
28
|
+
height: "auto"
|
|
29
|
+
}, d = async () => {
|
|
30
|
+
if (!(e.disabled || t.value)) {
|
|
31
|
+
t.value = !0;
|
|
32
|
+
try {
|
|
33
|
+
l("click");
|
|
34
|
+
const { url: o } = await _({
|
|
35
|
+
clientId: e.clientId,
|
|
36
|
+
redirectUri: e.redirectUri,
|
|
37
|
+
scopes: e.scopes,
|
|
38
|
+
loginUrl: e.loginUrl
|
|
39
|
+
});
|
|
40
|
+
window.location.href = o;
|
|
41
|
+
} catch (o) {
|
|
42
|
+
t.value = !1, l("error", {
|
|
43
|
+
error: "authorization_failed",
|
|
44
|
+
errorDescription: o instanceof Error ? o.message : "Unknown error"
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return (o, C) => (g(), p("button", {
|
|
50
|
+
type: "button",
|
|
51
|
+
class: b(["flowsta-login-button", a.className]),
|
|
52
|
+
disabled: a.disabled || t.value,
|
|
53
|
+
"aria-label": "Sign in with Flowsta",
|
|
54
|
+
style: f(i.value),
|
|
55
|
+
onClick: d
|
|
56
|
+
}, [
|
|
57
|
+
h(o.$slots, "default", {}, () => [
|
|
58
|
+
w("img", {
|
|
59
|
+
src: r.value,
|
|
60
|
+
alt: "Sign in with Flowsta",
|
|
61
|
+
width: "175",
|
|
62
|
+
height: "40",
|
|
63
|
+
style: c
|
|
64
|
+
}, null, 8, k)
|
|
65
|
+
], !0)
|
|
66
|
+
], 14, v));
|
|
67
|
+
}
|
|
68
|
+
}), U = (a, n) => {
|
|
69
|
+
const e = a.__vccOpts || a;
|
|
70
|
+
for (const [l, t] of n)
|
|
71
|
+
e[l] = t;
|
|
72
|
+
return e;
|
|
73
|
+
}, F = /* @__PURE__ */ U(y, [["__scopeId", "data-v-9a637830"]]);
|
|
74
|
+
export {
|
|
75
|
+
F as FlowstaLoginButton,
|
|
76
|
+
_ as buildAuthorizationUrl,
|
|
77
|
+
z as handleCallback,
|
|
78
|
+
I as parseCallbackUrl
|
|
79
|
+
};
|