@reachfive/identity-ui 1.18.0 → 1.19.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/CHANGELOG.md +11 -1
- package/cjs/identity-ui.js +67 -23
- package/es/identity-ui.js +67 -23
- package/package.json +1 -1
- package/umd/identity-ui.js +67 -23
- package/umd/identity-ui.min.js +1 -1
package/umd/identity-ui.js
CHANGED
|
@@ -30858,103 +30858,116 @@
|
|
|
30858
30858
|
icon: icon$a
|
|
30859
30859
|
};
|
|
30860
30860
|
|
|
30861
|
-
var icon$b = "data:image/svg+xml,%
|
|
30861
|
+
var icon$b = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20width%3D%22800px%22%20height%3D%22800px%22%20viewBox%3D%220%200%20512%20512%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M9%2032V480H181.366V255.862L331.358%20480H504V32H331.358V255.862L181.366%2032H9Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
30862
|
+
|
|
30863
|
+
var naver = {
|
|
30864
|
+
key: 'naver',
|
|
30865
|
+
name: 'Naver',
|
|
30866
|
+
color: '#19CE60',
|
|
30867
|
+
icon: icon$b,
|
|
30868
|
+
windowSize: {
|
|
30869
|
+
width: 450,
|
|
30870
|
+
height: 400
|
|
30871
|
+
}
|
|
30872
|
+
};
|
|
30873
|
+
|
|
30874
|
+
var icon$c = "data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%201500%20750%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M%20145.507812%20616.734375%20C%2093.640625%20616.734375%2051.414062%20574.609375%2051.414062%20520.867188%20C%2051.414062%20467.121094%2093.640625%20424.894531%20145.507812%20424.894531%20C%20197.03125%20424.894531%20239.46875%20467.121094%20239.46875%20520.867188%20C%20239.46875%20574.609375%20197.03125%20616.734375%20145.507812%20616.734375%20M%20145.507812%20375.074219%20C%2063.894531%20375.074219%200%20439.054688%200%20520.867188%20C%200%20602.574219%2063.894531%20666.65625%20145.507812%20666.65625%20C%20226.910156%20666.65625%20290.804688%20602.574219%20290.804688%20520.867188%20C%20290.804688%20439.054688%20226.910156%20375.074219%20145.507812%20375.074219%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M%20893.976562%20517.019531%20C%20893.496094%20438.929688%20830.347656%20375.402344%20753.089844%20375.402344%20C%20673.589844%20375.402344%20611.269531%20439.15625%20611.269531%20520.511719%20C%20611.269531%20558.714844%20625.914062%20594.980469%20652.265625%20622.667969%20C%20679.09375%20650.6875%20714.476562%20666.128906%20752.128906%20666.128906%20C%20795.101562%20666.128906%20855.308594%20645.53125%20883.929688%20587.082031%20L%20884.679688%20585.195312%20L%20827.0625%20585.195312%20L%20826.714844%20585.625%20C%20811.242188%20604.109375%20782.035156%20616.582031%20754.214844%20616.582031%20C%20718.886719%20616.582031%20676.503906%20593.320312%20664.90625%20540.808594%20L%20892.855469%20540.808594%20C%20893.363281%20535.375%20893.976562%20524.511719%20893.976562%20517.019531%20M%20666.589844%20494.433594%20C%20673.589844%20459.25%20707.316406%20424.894531%20752.664062%20424.894531%20C%20797.933594%20424.894531%20831.632812%20459.25%20838.554688%20494.433594%20Z%20M%20666.589844%20494.433594%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M%20451.410156%20423.234375%20C%20400.050781%20423.234375%20373.941406%20450.722656%20373.941406%20505.148438%20L%20373.941406%20666.253906%20L%20321.1875%20666.253906%20L%20321.1875%20501.351562%20C%20321.695312%20472.453125%20326.828125%20452.007812%20338.640625%20432.816406%20C%20352.613281%20411.265625%20385.804688%20375%20451.410156%20375%20C%20516.855469%20375%20550.15625%20411.265625%20564.105469%20432.816406%20C%20575.808594%20452.007812%20581.101562%20472.453125%20581.421875%20501.351562%20L%20581.421875%20666.253906%20L%20528.722656%20666.253906%20L%20528.722656%20505.148438%20C%20528.722656%20450.722656%20502.773438%20423.234375%20451.410156%20423.234375%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M%201168.1875%20375.074219%20L%201057.015625%20645.933594%20L%201029.546875%20712.957031%20L%201014.367188%20750%20L%20959.53125%20750%20L%201002.074219%20645.984375%20L%20888.445312%20375.074219%20L%20946.382812%20375.074219%20L%201029.570312%20578.734375%20L%201112.921875%20375.074219%20Z%20M%201168.1875%20375.074219%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30862
30875
|
|
|
30863
30876
|
var oney = {
|
|
30864
30877
|
key: 'oney',
|
|
30865
30878
|
name: 'Oney',
|
|
30866
30879
|
color: '#8bbc06',
|
|
30867
|
-
icon: icon$
|
|
30880
|
+
icon: icon$c
|
|
30868
30881
|
};
|
|
30869
30882
|
|
|
30870
|
-
var icon$
|
|
30883
|
+
var icon$d = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22350%22%20height%3D%22350%22%3E%20%20%20%20%3Cpath%20id%3D%22background%22%20style%3D%22fill%3A%20rgb%28255%2C%20255%2C%20255%29%3B%22%20d%3D%22M%20350%2C350%200%2C350%200%2C0%20l%20350%2C0%200%2C350%20z%22%2F%3E%20%20%20%20%3Cpath%20id%3D%22letter_o%22%20style%3D%22fill%3A%20rgb%28255%2C%20102%2C%200%29%3B%22%20d%3D%22m%2043.07789%2C321.77478%20c%20-12.673527%2C0%20-24.106883%2C-8.06959%20-24.106883%2C-25.70382%200%2C-17.63421%2011.433356%2C-25.7038%2024.106883%2C-25.7038%2012.673527%2C0%2024.089894%2C8.06959%2024.089894%2C25.7038%200%2C17.63422%20-11.416367%2C25.70382%20-24.089894%2C25.70382%20m%200%2C-40.56887%20c%20-9.581594%2C0%20-11.331424%2C8.63023%20-11.331424%2C14.86505%200%2C6.23485%201.74983%2C14.88207%2011.331424%2C14.88207%209.581594%2C0%2011.331424%2C-8.64722%2011.331424%2C-14.88207%200%2C-6.23482%20-1.74983%2C-14.86505%20-11.331424%2C-14.86505%22%2F%3E%20%20%20%20%3Cpath%20id%3D%22letter_r%22%20style%3D%22fill%3A%20rgb%28255%2C%20102%2C%200%29%3B%22%20d%3D%22m%2075.959576%2C271.65166%2012.197845%2C0%200%2C5.72518%20c%202.327444%2C-3.09194%208.052616%2C-6.72751%2013.421029%2C-6.72751%200.50966%2C0%201.13824%2C0%201.66489%2C0.068%20l%200%2C12.04495%20-0.62858%2C0%20c%20-5.572279%2C0%20-11.671202%2C0.86642%20-13.641884%2C5.19853%20l%200%2C32.39734%20-13.0133%2C0%200%2C-48.70644%20z%22%2F%3E%20%20%20%20%3Cpath%20id%3D%22letter_a%22%20style%3D%22fill%3A%20rgb%28255%2C%20102%2C%200%29%3B%22%20d%3D%22m%20137.30386%2C316.11774%20c%20-4.96068%2C3.26181%20-10.32909%2C4.84176%20-16.10523%2C4.84176%20-9.08892%2C0%20-14.47432%2C-6.04795%20-14.47432%2C-14.16853%200%2C-10.9067%2010.0233%2C-16.66585%2030.68149%2C-18.9933%20l%200%2C-2.71819%20c%200%2C-3.53364%20-2.68421%2C-5.60624%20-7.64489%2C-5.60624%20-4.96069%2C0%20-8.98699%2C1.97068%20-11.89205%2C5.60624%20l%20-8.64722%2C-4.9267%20c%204.53597%2C-6.35375%2011.45034%2C-9.53062%2020.74313%2C-9.53062%2012.70751%2C0%2019.84274%2C5.50432%2019.84274%2C14.45732%200%2C0%20-0.017%2C35.21747%200%2C35.3024%20l%20-11.36541%2C0%20-1.13824%2C-4.26414%20z%20m%20-17.95699%2C-10.26115%20c%200%2C3.27881%202.05563%2C6.33676%205.77614%2C6.33676%204.02631%2C0%207.95068%2C-1.66487%2011.87506%2C-5.13056%20l%200%2C-11.53528%20c%20-11.97699%2C1.47801%20-17.6512%2C4.56993%20-17.6512%2C10.32909%22%2F%3E%20%20%20%20%3Cpath%20id%3D%22letter_n%22%20style%3D%22fill%3A%20rgb%28255%2C%20102%2C%200%29%3B%22%20d%3D%22m%20159.93783%2C272.9496%2010.6179%2C-1.46103%201.17222%2C5.77615%20c%205.98%2C-4.38307%2010.73682%2C-6.71052%2016.71682%2C-6.71052%2010.0233%2C0%2015.20483%2C5.31745%2015.20483%2C15.85039%20l%200%2C33.90934%20-12.82642%2C0%200%2C-31.68381%20c%200%2C-5.96302%20-1.54596%2C-8.64723%20-6.18386%2C-8.64723%20-3.82245%2C0%20-7.64489%2C1.73284%20-12.01097%2C5.4024%20l%200%2C34.92864%20-12.69052%2C0%200%2C-47.36433%20z%22%2F%3E%20%20%20%20%3Cpath%20id%3D%22letter_g%22%20style%3D%22fill%3A%20rgb%28255%2C%20102%2C%200%29%3B%22%20d%3D%22m%20235.02253%2C309.88953%20c%209.7175%2C-0.0679%2010.54995%2C-9.97234%2010.54995%2C-16.41103%200%2C-7.64489%20-3.72052%2C-13.81176%20-10.63489%2C-13.81176%20-4.60393%2C0%20-9.75148%2C3.36374%20-9.75148%2C14.33841%200%2C5.99699%200.42471%2C15.96931%209.83642%2C15.88438%20m%2022.86671%2C-38.41132%200%2C46.12416%20c%200%2C8.12057%20-0.64557%2C21.55859%20-23.83506%2C21.67751%20-9.5816%2C0.068%20-18.46666%2C-3.77148%20-20.23348%2C-12.12989%20l%2012.63955%2C-2.03864%20c%200.52665%2C2.3954%202.00466%2C4.77381%209.17387%2C4.77381%206.64256%2C0%209.83642%2C-3.17687%209.83642%2C-10.78779%20l%200%2C-5.6742%20-0.16988%2C-0.16989%20c%20-2.03864%2C3.65256%20-5.13057%2C7.10125%20-12.5716%2C7.10125%20-11.3654%2C0%20-20.30142%2C-7.88273%20-20.30142%2C-24.34472%200%2C-16.29211%209.22483%2C-25.41501%2019.57091%2C-25.432%209.73449%2C-0.017%2013.3191%2C4.41705%2014.16853%2C6.74449%20l%20-0.16989%2C-0.017%201.07029%2C-5.8271%2010.82176%2C0%20z%22%2F%3E%20%20%20%20%3Cpath%20id%3D%22letter_e%22%20style%3D%22fill%3A%20rgb%28255%2C%20102%2C%200%29%3B%22%20d%3D%22m%20288.54015%2C321.24644%20c%20-14.3554%2C0%20-22.91768%2C-9.24183%20-22.91768%2C-25.26212%200%2C-16.20717%208.66421%2C-25.432%2022.71382%2C-25.432%2014.0496%2C0%2022.40802%2C8.95302%2022.40802%2C24.78643%200%2C0.84943%20-0.10194%2C1.68188%20-0.10194%2C2.51432%20l%20-32.43131%2C0%20c%200.0849%2C9.24182%203.92437%2C13.89671%2011.46733%2C13.89671%204.84176%2C0%208.05262%2C-1.95369%2011.0596%2C-6.23483%20l%209.37774%2C5.19852%20c%20-4.12824%2C6.91438%20-11.56927%2C10.53296%20-21.57558%2C10.53296%20m%209.61557%2C-31.70081%20c%200%2C-6.50665%20-3.7375%2C-10.34608%20-9.81943%2C-10.34608%20-5.79313%2C0%20-9.41171%2C3.75449%20-9.92137%2C10.34608%20l%2019.7408%2C0%20z%22%2F%3E%20%20%20%20%3Cpath%20id%3D%22letter_TM%22%20style%3D%22fill%3A%20rgb%28255%2C%20102%2C%200%29%3B%22%20d%3D%22m%20332.69028%2C253.16977%20-4.72284%2C12.21483%20-4.80779%2C-12.21483%20-4.11125%2C0%200%2C16.10523%202.66722%2C0%200%2C-13.43801%200.0679%2C0%205.28347%2C13.43801%201.69886%2C0%205.24949%2C-13.43801%200.0849%2C0%200%2C13.43801%202.65023%2C0%200%2C-16.10523%20-4.06029%2C0%20z%20m%20-29.64518%2C0%200%2C2.14057%205.02864%2C0%200%2C13.96466%202.66721%2C0%200%2C-13.96466%205.04563%2C0%200%2C-2.14057%20-12.74148%2C0%20z%22%2F%3E%3C%2Fsvg%3E";
|
|
30871
30884
|
|
|
30872
30885
|
var orange = {
|
|
30873
30886
|
key: 'orange',
|
|
30874
30887
|
name: 'Orange',
|
|
30875
30888
|
color: '#ff6600',
|
|
30876
|
-
icon: icon$
|
|
30889
|
+
icon: icon$d,
|
|
30877
30890
|
hidden: true
|
|
30878
30891
|
};
|
|
30879
30892
|
|
|
30880
|
-
var icon$
|
|
30893
|
+
var icon$e = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1647%20646q18%2084-4%20204-87%20444-565%20444h-44q-25%200-44%2016.5t-24%2042.5l-4%2019-55%20346-2%2015q-5%2026-24.5%2042.5t-44.5%2016.5h-251q-21%200-33-15t-9-36q9-56%2026.5-168t26.5-168%2027-167.5%2027-167.5q5-37%2043-37h131q133%202%20236-21%20175-39%20287-144%20102-95%20155-246%2024-70%2035-133%201-6%202.5-7.5t3.5-1%206%203.5q79%2059%2098%20162zm-172-282q0%20107-46%20236-80%20233-302%20315-113%2040-252%2042%200%201-90%201l-90-1q-100%200-118%2096-2%208-85%20530-1%2010-12%2010h-295q-22%200-36.5-16.5t-11.5-38.5l232-1471q5-29%2027.5-48t51.5-19h598q34%200%2097.5%2013t111.5%2032q107%2041%20163.5%20123t56.5%20196z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30881
30894
|
|
|
30882
30895
|
var paypal = {
|
|
30883
30896
|
key: 'paypal',
|
|
30884
30897
|
name: 'PayPal',
|
|
30885
30898
|
color: '#003087',
|
|
30886
|
-
icon: icon$
|
|
30899
|
+
icon: icon$e
|
|
30887
30900
|
};
|
|
30888
30901
|
|
|
30889
|
-
var icon$
|
|
30902
|
+
var icon$f = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M270%20806q-8-19-8-52%200-20%2011-49t24-45q-1-22%207.5-53t22.5-43q0-139%2092.5-288.5t217.5-209.5q139-66%20324-66%20133%200%20266%2055%2049%2021%2090%2048t71%2056%2055%2068%2042%2074%2032.5%2084.5%2025.5%2089.5%2022%2098l1%205q55%2083%2055%20150%200%2014-9%2040t-9%2038q0%201%201.5%203.5t3.5%205%202%203.5q77%20114%20120.5%20214.5t43.5%20208.5q0%2043-19.5%20100t-55.5%2057q-9%200-19.5-7.5t-19-17.5-19-26-16-26.5-13.5-26-9-17.5q-1-1-3-1l-5%204q-59%20154-132%20223%2020%2020%2061.5%2038.5t69%2041.5%2035.5%2065q-2%204-4%2016t-7%2018q-64%2097-302%2097-53%200-110.5-9t-98-20-104.5-30q-15-5-23-7-14-4-46-4.5t-40-1.5q-41%2045-127.5%2065t-168.5%2020q-35%200-69-1.5t-93-9-101-20.5-74.5-40-32.5-64q0-40%2010-59.5t41-48.5q11-2%2040.5-13t49.5-12q4%200%2014-2%202-2%202-4l-2-3q-48-11-108-105.5t-73-156.5l-5-3q-4%200-12%2020-18%2041-54.5%2074.5t-77.5%2037.5h-1q-4%200-6-4.5t-5-5.5q-23-54-23-100%200-275%20252-466z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30890
30903
|
|
|
30891
30904
|
var qq = {
|
|
30892
30905
|
key: 'qq',
|
|
30893
30906
|
name: 'QQ',
|
|
30894
30907
|
color: '#0071c3',
|
|
30895
|
-
icon: icon$
|
|
30908
|
+
icon: icon$f,
|
|
30896
30909
|
windowSize: {
|
|
30897
30910
|
width: 450,
|
|
30898
30911
|
height: 400
|
|
30899
30912
|
}
|
|
30900
30913
|
};
|
|
30901
30914
|
|
|
30902
|
-
var icon$
|
|
30915
|
+
var icon$g = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1684%20408q-67%2098-162%20167%201%2014%201%2042%200%20130-38%20259.5t-115.5%20248.5-184.5%20210.5-258%20146-323%2054.5q-271%200-496-145%2035%204%2078%204%20225%200%20401-138-105-2-188-64.5t-114-159.5q33%205%2061%205%2043%200%2085-11-112-23-185.5-111.5t-73.5-205.5v-4q68%2038%20146%2041-66-44-105-115t-39-154q0-88%2044-163%20121%20149%20294.5%20238.5t371.5%2099.5q-8-38-8-74%200-134%2094.5-228.5t228.5-94.5q140%200%20236%20102%20109-21%20205-78-37%20115-142%20178%2093-10%20186-50z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30903
30916
|
|
|
30904
30917
|
var twitter = {
|
|
30905
30918
|
key: 'twitter',
|
|
30906
30919
|
name: 'Twitter',
|
|
30907
30920
|
color: '#55acee',
|
|
30908
|
-
icon: icon$
|
|
30921
|
+
icon: icon$g,
|
|
30909
30922
|
windowSize: {
|
|
30910
30923
|
width: 800,
|
|
30911
30924
|
height: 440
|
|
30912
30925
|
}
|
|
30913
30926
|
};
|
|
30914
30927
|
|
|
30915
|
-
var icon$
|
|
30928
|
+
var icon$h = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1853%20520q23%2064-150%20294-24%2032-65%2085-78%20100-90%20131-17%2041%2014%2081%2017%2021%2081%2082h1l1%201%201%201%202%202q141%20131%20191%20221%203%205%206.5%2012.5t7%2026.5-.5%2034-25%2027.5-59%2012.5l-256%204q-24%205-56-5t-52-22l-20-12q-30-21-70-64t-68.5-77.5-61-58-56.5-15.5q-3%201-8%203.5t-17%2014.5-21.5%2029.5-17%2052-6.5%2077.5q0%2015-3.5%2027.5t-7.5%2018.5l-4%205q-18%2019-53%2022h-115q-71%204-146-16.5t-131.5-53-103-66-70.5-57.5l-25-24q-10-10-27.5-30t-71.5-91-106-151-122.5-211-130.5-272q-6-16-6-27t3-16l4-6q15-19%2057-19l274-2q12%202%2023%206.5t16%208.5l5%203q16%2011%2024%2032%2020%2050%2046%20103.5t41%2081.5l16%2029q29%2060%2056%20104t48.5%2068.5%2041.5%2038.5%2034%2014%2027-5q2-1%205-5t12-22%2013.5-47%209.5-81%200-125q-2-40-9-73t-14-46l-6-12q-25-34-85-43-13-2%205-24%2017-19%2038-30%2053-26%20239-24%2082%201%20135%2013%2020%205%2033.5%2013.5t20.5%2024%2010.5%2032%203.5%2045.5-1%2055-2.5%2070.5-1.5%2082.5q0%2011-1%2042t-.5%2048%203.5%2040.5%2011.5%2039%2022.5%2024.5q8%202%2017%204t26-11%2038-34.5%2052-67%2068-107.5q60-104%20107-225%204-10%2010-17.5t11-10.5l4-3%205-2.5%2013-3%2020-.5%20288-2q39-5%2064%202.5t31%2016.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30916
30929
|
|
|
30917
30930
|
var vkontakte = {
|
|
30918
30931
|
key: 'vkontakte',
|
|
30919
30932
|
fontKey: 'vk',
|
|
30920
30933
|
name: 'VKontakte',
|
|
30921
30934
|
color: '#45668e',
|
|
30922
|
-
icon: icon$
|
|
30935
|
+
icon: icon$h,
|
|
30923
30936
|
windowSize: {
|
|
30924
30937
|
width: 655,
|
|
30925
30938
|
height: 430
|
|
30926
30939
|
}
|
|
30927
30940
|
};
|
|
30928
30941
|
|
|
30929
|
-
var icon$
|
|
30942
|
+
var icon$i = "data:image/svg+xml,%3Csvg%20width%3D%222048%22%20height%3D%221792%22%20viewBox%3D%220%200%202048%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M580%20461q0-41-25-66t-66-25q-43%200-76%2025.5t-33%2065.5q0%2039%2033%2064.5t76%2025.5q41%200%2066-24.5t25-65.5zm743%20507q0-28-25.5-50t-65.5-22q-27%200-49.5%2022.5t-22.5%2049.5q0%2028%2022.5%2050.5t49.5%2022.5q40%200%2065.5-22t25.5-51zm-236-507q0-41-24.5-66t-65.5-25q-43%200-76%2025.5t-33%2065.5q0%2039%2033%2064.5t76%2025.5q41%200%2065.5-24.5t24.5-65.5zm635%20507q0-28-26-50t-65-22q-27%200-49.5%2022.5t-22.5%2049.5q0%2028%2022.5%2050.5t49.5%2022.5q39%200%2065-22t26-51zm-266-397q-31-4-70-4-169%200-311%2077t-223.5%20208.5-81.5%20287.5q0%2078%2023%20152-35%203-68%203-26%200-50-1.5t-55-6.5-44.5-7-54.5-10.5-50-10.5l-253%20127%2072-218q-290-203-290-490%200-169%2097.5-311t264-223.5%20363.5-81.5q176%200%20332.5%2066t262%20182.5%20136.5%20260.5zm592%20561q0%20117-68.5%20223.5t-185.5%20193.5l55%20181-199-109q-150%2037-218%2037-169%200-311-70.5t-223.5-191.5-81.5-264%2081.5-264%20223.5-191.5%20311-70.5q161%200%20303%2070.5t227.5%20192%2085.5%20263.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30930
30943
|
|
|
30931
30944
|
var wechat = {
|
|
30932
30945
|
key: 'wechat',
|
|
30933
30946
|
name: 'WeChat',
|
|
30934
30947
|
color: '#44b549',
|
|
30935
|
-
icon: icon$
|
|
30948
|
+
icon: icon$i,
|
|
30936
30949
|
windowSize: {
|
|
30937
30950
|
width: 450,
|
|
30938
30951
|
height: 400
|
|
30939
30952
|
}
|
|
30940
30953
|
};
|
|
30941
30954
|
|
|
30942
|
-
var icon$
|
|
30955
|
+
var icon$j = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M675%201284q21-34%2011-69t-45-50q-34-14-73-1t-60%2046q-22%2034-13%2068.5t43%2050.5%2074.5%202.5%2062.5-47.5zm94-121q8-13%203.5-26.5t-17.5-18.5q-14-5-28.5.5t-21.5%2018.5q-17%2031%2013%2045%2014%205%2029-.5t22-18.5zm174%20107q-45%20102-158%20150t-224%2012q-107-34-147.5-126.5t6.5-187.5q47-93%20151.5-139t210.5-19q111%2029%20158.5%20119.5t2.5%20190.5zm312-160q-9-96-89-170t-208.5-109-274.5-21q-223%2023-369.5%20141.5t-132.5%20264.5q9%2096%2089%20170t208.5%20109%20274.5%2021q223-23%20369.5-141.5t132.5-264.5zm308%204q0%2068-37%20139.5t-109%20137-168.5%20117.5-226%2083-270.5%2031-275-33.5-240.5-93-171.5-151-65-199.5q0-115%2069.5-245t197.5-258q169-169%20341.5-236t246.5%207q65%2064%2020%20209-4%2014-1%2020t10%207%2014.5-.5%2013.5-3.5l6-2q139-59%20246-59t153%2061q45%2063%200%20178-2%2013-4.5%2020t4.5%2012.5%2012%207.5%2017%206q57%2018%20103%2047t80%2081.5%2034%20116.5zm-74-624q42%2047%2054.5%20108.5t-6.5%20117.5q-8%2023-29.5%2034t-44.5%204q-23-8-34-29.5t-4-44.5q20-63-24-111t-107-35q-24%205-45-8t-25-37q-5-24%208-44.5t37-25.5q60-13%20119%205.5t101%2065.5zm181-163q87%2096%20112.5%20222.5t-13.5%20241.5q-9%2027-34%2040t-52%204-40-34-5-52q28-82%2010-172t-80-158q-62-69-148-95.5t-173-8.5q-28%206-52-9.5t-30-43.5%209.5-51.5%2043.5-29.5q123-26%20244%2011.5t208%20134.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30943
30956
|
|
|
30944
30957
|
var weibo = {
|
|
30945
30958
|
key: 'weibo',
|
|
30946
30959
|
name: 'Weibo',
|
|
30947
30960
|
color: '#e71d34',
|
|
30948
|
-
icon: icon$
|
|
30961
|
+
icon: icon$j
|
|
30949
30962
|
};
|
|
30950
30963
|
|
|
30951
|
-
var icon$
|
|
30964
|
+
var icon$k = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M937%201004l266-499h-112l-157%20312q-24%2048-44%2092l-42-92-155-312h-120l263%20493v324h101v-318zm727-588v960q0%20119-84.5%20203.5t-203.5%2084.5h-960q-119%200-203.5-84.5t-84.5-203.5v-960q0-119%2084.5-203.5t203.5-84.5h960q119%200%20203.5%2084.5t84.5%20203.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30952
30965
|
|
|
30953
30966
|
var yandex = {
|
|
30954
30967
|
key: 'yandex',
|
|
30955
30968
|
name: 'Yandex',
|
|
30956
30969
|
color: '#d43b2f',
|
|
30957
|
-
icon: icon$
|
|
30970
|
+
icon: icon$k,
|
|
30958
30971
|
windowSize: {
|
|
30959
30972
|
width: 655,
|
|
30960
30973
|
height: 700
|
|
@@ -30974,6 +30987,7 @@
|
|
|
30974
30987
|
linkedin: linkedin,
|
|
30975
30988
|
mailru: mailru,
|
|
30976
30989
|
microsoft: microsoft,
|
|
30990
|
+
naver: naver,
|
|
30977
30991
|
oney: oney,
|
|
30978
30992
|
orange: orange,
|
|
30979
30993
|
paypal: paypal,
|
|
@@ -48993,8 +49007,10 @@
|
|
|
48993
49007
|
consentCannotBeGranted: !fieldConfig.errorArchivedConsents && consent.status === 'archived'
|
|
48994
49008
|
},
|
|
48995
49009
|
type: consent.consentType,
|
|
48996
|
-
key: "consents.".concat(consent.key)
|
|
49010
|
+
key: "consents.".concat(consent.key, ".").concat(versionId),
|
|
49011
|
+
path: "consents.".concat(consent.key) // Will target the same profile consent value for different versions of the consent
|
|
48997
49012
|
});
|
|
49013
|
+
|
|
48998
49014
|
return consentField(baseConfig);
|
|
48999
49015
|
}
|
|
49000
49016
|
var findCustomField = function findCustomField(config, camelPath) {
|
|
@@ -49018,10 +49034,12 @@
|
|
|
49018
49034
|
if (customField) {
|
|
49019
49035
|
return customFieldComponent(customField, fieldConfig);
|
|
49020
49036
|
}
|
|
49021
|
-
var camelPathSplit = camelPath.split('.v');
|
|
49037
|
+
var camelPathSplit = camelPath.split('.v'); // TODO What if consent start with a `v`?
|
|
49022
49038
|
var consentField = findConsentField(config, camelPathSplit[0]);
|
|
49039
|
+
// Find most recent consent version if not given
|
|
49040
|
+
var highestConsentVersion = consentField.versions[0].versionId;
|
|
49023
49041
|
if (consentField) {
|
|
49024
|
-
return consentFieldComponent(consentField, fieldConfig, camelPathSplit[1]);
|
|
49042
|
+
return consentFieldComponent(consentField, fieldConfig, camelPathSplit[1] || highestConsentVersion);
|
|
49025
49043
|
}
|
|
49026
49044
|
throw new UserError("Unknown field: ".concat(fieldConfig.key));
|
|
49027
49045
|
};
|
|
@@ -50175,6 +50193,8 @@
|
|
|
50175
50193
|
if (haveNotAllowedFields) {
|
|
50176
50194
|
throw new UserError('These fields are not allowed: password, password_confirmation.');
|
|
50177
50195
|
}
|
|
50196
|
+
|
|
50197
|
+
// This step removes the version from the consents
|
|
50178
50198
|
var resolvedFields = buildFormFields(fields, _objectSpread2(_objectSpread2({}, config), {}, {
|
|
50179
50199
|
errorArchivedConsents: false
|
|
50180
50200
|
}));
|
|
@@ -50182,16 +50202,40 @@
|
|
|
50182
50202
|
accessToken: accessToken,
|
|
50183
50203
|
fields: computeFieldList(resolvedFields)
|
|
50184
50204
|
}).then(function (profile) {
|
|
50205
|
+
var camelProfile = camelCaseProperties$1(profile);
|
|
50206
|
+
var profileConsents = camelProfile && camelProfile.consents;
|
|
50207
|
+
var filteredProfileConsents = profileConsents && Object.keys(profileConsents).length && filterProfileConsents(fields, config.consentsVersions, profileConsents);
|
|
50208
|
+
var filteredOutConsentsProfile = _objectSpread2(_objectSpread2({}, profile), {}, {
|
|
50209
|
+
consents: filteredProfileConsents
|
|
50210
|
+
});
|
|
50185
50211
|
return _objectSpread2(_objectSpread2({}, opts), {}, {
|
|
50186
|
-
profile:
|
|
50212
|
+
profile: filteredOutConsentsProfile,
|
|
50187
50213
|
resolvedFields: resolvedFields.filter(function (field) {
|
|
50188
|
-
return (field.path !== 'email' || !
|
|
50214
|
+
return (field.path !== 'email' || !filteredOutConsentsProfile.email) && (field.path !== 'phone_number' || !config.sms || !filteredOutConsentsProfile.phoneNumber);
|
|
50189
50215
|
})
|
|
50190
50216
|
});
|
|
50191
50217
|
});
|
|
50192
50218
|
}
|
|
50193
50219
|
});
|
|
50194
50220
|
|
|
50221
|
+
// Filter out the profile consents with different version than the one the given consent field own
|
|
50222
|
+
var filterProfileConsents = function filterProfileConsents(fields, consentsVersions, profileConsents) {
|
|
50223
|
+
return Object.keys(profileConsents).filter(function (profileConsentKey) {
|
|
50224
|
+
var consentField = fields.find(function (field) {
|
|
50225
|
+
return field.startsWith("consents.".concat(profileConsentKey));
|
|
50226
|
+
});
|
|
50227
|
+
var consentFieldSplit = consentField.split('.v');
|
|
50228
|
+
// Find most recent consent version if not given
|
|
50229
|
+
var highestConsentVersion = consentsVersions[profileConsentKey].versions[0].versionId;
|
|
50230
|
+
var consentFieldVersion = consentFieldSplit[1] || highestConsentVersion;
|
|
50231
|
+
var profileConsentVersion = profileConsents[profileConsentKey].consentVersion.versionId;
|
|
50232
|
+
return !consentFieldVersion || parseInt(consentFieldVersion) === profileConsentVersion;
|
|
50233
|
+
}).reduce(function (filteredProfileConsents, consentKey) {
|
|
50234
|
+
filteredProfileConsents[consentKey] = profileConsents[consentKey];
|
|
50235
|
+
return filteredProfileConsents;
|
|
50236
|
+
}, {});
|
|
50237
|
+
};
|
|
50238
|
+
|
|
50195
50239
|
var _templateObject$e, _templateObject2$8;
|
|
50196
50240
|
var CloseIcon = withTheme(styled.span(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral(["\n position: absolute;\n right: ", "px;\n top: ", "px;\n width: ", "px;\n height: ", "px;\n cursor: pointer;\n box-sizing: border-box;\n overflow: hidden;\n &:hover {\n &::before, &::after {\n background: ", ";\n }\n }\n\n &::before, &::after {\n content: '';\n position: absolute;\n height: 3px;\n width: 75%;\n top: 50%;\n left: 0;\n margin-top: -1px;\n background: ", ";\n background-position: center center;\n }\n &::before {\n transform: rotate(45deg);\n }\n &::after {\n transform: rotate(-45deg);\n }\n"])), function (_ref) {
|
|
50197
50241
|
var theme = _ref.theme;
|