expo-geetest-onelogin 0.2.0 → 0.4.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.
@@ -1,536 +1,541 @@
1
- import { ColorValue } from 'react-native';
1
+ import { ColorValue } from "react-native";
2
2
 
3
3
  export type ChangeEventPayload<T> = {
4
- type?: string;
5
- callbackId?: string;
6
- result?: T;
4
+ type?: string;
5
+ callbackId?: string;
6
+ result?: T;
7
7
  };
8
8
 
9
9
  export type ExpoGeetestOneloginViewProps = {
10
- name: string;
10
+ name: string;
11
11
  };
12
12
 
13
13
  export type AndroidOneLoginResponse = {
14
- /**
15
- * 极验后台配置唯一id android only
16
- */
17
- app_id: string;
18
- /**
19
- * 客户端,1 表示 Android
20
- */
21
- clienttype: string;
22
- /**
23
- * @see https://docs.geetest.com/onelogin/deploy/Returncode
24
- * 错误码
25
- */
26
- errorCode: string;
27
- metadata: {
28
- error_data: string;
29
- };
30
- model: string;
31
- /**
32
- * 运营商返回的状态信息
33
- */
34
- msg: string;
35
- /**
36
- * 客户端获取的运营商
37
- */
38
- operator: string;
39
- /**
40
- * 流水号(有效期10分钟) android only
41
- */
42
- process_id: string;
43
- release: string;
44
- sdk: string;
45
- /**
46
- * 状态码,状态码为 200
47
- */
48
- status: number;
14
+ /**
15
+ * 极验后台配置唯一id android only
16
+ */
17
+ app_id: string;
18
+ /**
19
+ * 客户端,1 表示 Android
20
+ */
21
+ clienttype: string;
22
+ /**
23
+ * @see https://docs.geetest.com/onelogin/deploy/Returncode
24
+ * 错误码
25
+ */
26
+ errorCode: string;
27
+ metadata: {
28
+ error_data: string;
29
+ };
30
+ model: string;
31
+ /**
32
+ * 运营商返回的状态信息
33
+ */
34
+ msg: string;
35
+ /**
36
+ * 客户端获取的运营商
37
+ */
38
+ operator: string;
39
+ /**
40
+ * 流水号(有效期10分钟) android only
41
+ */
42
+ process_id: string;
43
+ release: string;
44
+ sdk: string;
45
+ /**
46
+ * 状态码,状态码为 200
47
+ */
48
+ status: number;
49
+ /**
50
+ * 电信运营商返回的authcode, 非必需
51
+ */
52
+ authcode: string;
53
+ token: string;
49
54
  };
50
55
 
51
56
  export type IOSOneLoginResponse = {
52
- /**
53
- * 极验后台配置唯一id ios only
54
- */
55
- appID: string;
56
- /**
57
- * 电信运营商返回的authcode, 非必需
58
- */
59
- authcode: string;
60
- /**
61
- * @see https://docs.geetest.com/onelogin/deploy/Returncode
62
- * 错误码
63
- */
64
- errorCode: string;
65
- expire_time: number;
66
- gwAuth: string;
67
- model: string;
68
- /**
69
- * 运营商返回的状态信息
70
- */
71
- msg: string;
72
- number: string;
73
- /**
74
- * 运营商类型。0:未知 1:中国移动 2:中国联通 3:中国电信
75
- */
76
- operatorType: string;
77
- preGetTokenSuccessedTime: number;
78
- pre_token_time: string;
79
- /**
80
- * 流水号(有效期10分钟) ios only
81
- */
82
- processID: string;
83
- release: string;
84
- /**
85
- * 状态码,状态码为 200
86
- */
87
- status: number;
88
- token: string;
57
+ /**
58
+ * 极验后台配置唯一id ios only
59
+ */
60
+ appID: string;
61
+ /**
62
+ * 电信运营商返回的authcode, 非必需
63
+ */
64
+ authcode: string;
65
+ /**
66
+ * @see https://docs.geetest.com/onelogin/deploy/Returncode
67
+ * 错误码
68
+ */
69
+ errorCode: string;
70
+ expire_time: number;
71
+ gwAuth: string;
72
+ model: string;
73
+ /**
74
+ * 运营商返回的状态信息
75
+ */
76
+ msg: string;
77
+ number: string;
78
+ /**
79
+ * 运营商类型。0:未知 1:中国移动 2:中国联通 3:中国电信
80
+ */
81
+ operatorType: string;
82
+ preGetTokenSuccessedTime: number;
83
+ pre_token_time: string;
84
+ /**
85
+ * 流水号(有效期10分钟) ios only
86
+ */
87
+ processID: string;
88
+ release: string;
89
+ /**
90
+ * 状态码,状态码为 200
91
+ */
92
+ status: number;
93
+ token: string;
89
94
  };
90
95
 
91
96
  export type AndroidOneLoginUIConfig = {
92
- statusBar?: {
93
- statusBarColor: ColorValue;
94
- statusBarStyle:
95
- | 'UserInterfaceStyle.UNSPECIFIED'
96
- | 'UserInterfaceStyle.LIGHT'
97
- | 'UserInterfaceStyle.DARK';
98
- bgLayoutInStatusBar: boolean;
99
- };
100
- authBGImgPath?: string;
101
- dialogTheme?: {
102
- isDialogTheme: boolean;
103
- dialogWidth: number;
104
- dialogHeight: number;
105
- dialogX: number;
106
- dialogY: number;
107
- isDialogBottom: boolean;
108
- isWebViewDialogTheme: boolean;
109
- };
110
- authNavLayout?: {
111
- navColor: ColorValue;
112
- authNavHeight: number;
113
- authNavTransparent: boolean;
114
- authNavGone: boolean;
115
- };
116
- authNavTextView?: {
117
- navText: string;
118
- navTextColor: ColorValue;
119
- navTextSize: number;
120
- navWebTextNormal: boolean;
121
- navWebText: string;
122
- navWebTextColor: ColorValue;
123
- navWebTextSize: number;
124
- };
125
- switchViewLayout?: {
126
- switchImgPath: string;
127
- switchWidth: number;
128
- switchHeight: number;
129
- };
130
- logBtnTextView?: {
131
- logBtnText: string;
132
- logBtnColor: ColorValue;
133
- logBtnTextSize: number;
134
- };
135
- logBtnLoadingView?: {
136
- loadingView: string;
137
- loadingViewWidth: number;
138
- loadingViewHeight: number;
139
- loadingViewOffsetRight: number;
140
- };
141
- privacyUnCheckedToastText?: string;
142
- privacyClauseText?: {
143
- clauseNameOne: string;
144
- clauseUrlOne: string;
145
- clauseNameTwo: string;
146
- clauseUrlTwo: string;
147
- clauseNameThree: string;
148
- clauseUrlThre: string;
149
- };
150
- privacyTextGravity?: 'Gravity.CENTER_HORIZONTAL' | number; // android.view.Gravity
151
- privacyClauseView?: {
152
- baseClauseColor: ColorValue;
153
- clauseColor: ColorValue;
154
- privacyClauseTextSize: number;
155
- };
156
- privacyTextView?: {
157
- privacyTextViewTv1: string;
158
- privacyTextViewTv2: string;
159
- privacyTextViewTv3: string;
160
- privacyTextViewTv4: string;
161
- };
162
- authNavTextViewTypeface?: {
163
- navTextTypeface: string;
164
- navWebTextTypeface: string;
165
- };
166
- numberViewTypeface?: string;
167
- switchViewTypeface?: string;
168
- logBtnTextViewTypeface?: string;
169
- logoImgView?: {
170
- logoImgPath: string;
171
- logoWidth: number;
172
- logoHeight: number;
173
- logoHidden: boolean;
174
- logoOffsetY: number;
175
- logoOffsetY_B: number;
176
- logoOffsetX: number;
177
- };
178
- authNavReturnImgView?: {
179
- returnImgPath: string;
180
- returnImgWidth: number;
181
- returnImgHeight: number;
182
- returnImgHidden: boolean;
183
- returnImgOffsetX: number;
184
- };
185
- numberView?: {
186
- numberColor: ColorValue;
187
- numberSize: number;
188
- numberOffsetY: number;
189
- numberOffsetY_B: number;
190
- numberOffsetX: number;
191
- };
192
- sloganView?: {
193
- sloganColor: ColorValue;
194
- sloganSize: number;
195
- sloganOffsetY: number;
196
- sloganOffsetY_B: number;
197
- sloganOffsetX: number;
198
- };
199
- logBtnLayout?: {
200
- logBtnImgPath: string;
201
- logBtnUncheckedImgPath: string;
202
- logBtnWidth: number;
203
- logBtnHeight: number;
204
- logBtnOffsetY: number;
205
- logBtnOffsetY_B: number;
206
- logBtnOffsetX: number;
207
- };
208
- switchView?: {
209
- switchText: string;
210
- switchColor: ColorValue;
211
- switchSize: number;
212
- switchHidden: boolean;
213
- switchOffsetY: number;
214
- switchOffsetY_B: number;
215
- switchOffsetX: number;
216
- };
217
- privacyCheckBox?: {
218
- unCheckedImgPath: string;
219
- checkedImgPath: string;
220
- privacyState: boolean;
221
- privacyCheckBoxWidth: number;
222
- privacyCheckBoxHeight: number;
223
- privacyCheckBoxOffsetY: number;
224
- privacyCheckBoxMarginRight: number;
225
- };
226
- privacyLayout?: {
227
- privacyLayoutWidth: number;
228
- privacyOffsetY: number;
229
- privacyOffsetY_B: number;
230
- privacyOffsetX: number;
231
- isUseNormalWebActivity: boolean;
232
- };
233
- sloganViewTypeface?: string;
234
- privacyClauseViewTypeface?: {
235
- privacyClauseBaseTypeface: string;
236
- privacyClauseTypeface: string;
237
- };
238
- customViews?: {
239
- x: number;
240
- y: number;
241
- maxWidth: number;
242
- maxHeight: number;
243
- imageResourceName: string;
244
- margin?:
245
- | {
246
- left: number;
247
- top: number;
248
- right: number;
249
- bottom: number;
250
- }
251
- | undefined;
252
- }[];
97
+ statusBar?: {
98
+ statusBarColor: ColorValue;
99
+ statusBarStyle:
100
+ | "UserInterfaceStyle.UNSPECIFIED"
101
+ | "UserInterfaceStyle.LIGHT"
102
+ | "UserInterfaceStyle.DARK";
103
+ bgLayoutInStatusBar: boolean;
104
+ };
105
+ authBGImgPath?: string;
106
+ dialogTheme?: {
107
+ isDialogTheme: boolean;
108
+ dialogWidth: number;
109
+ dialogHeight: number;
110
+ dialogX: number;
111
+ dialogY: number;
112
+ isDialogBottom: boolean;
113
+ isWebViewDialogTheme: boolean;
114
+ };
115
+ authNavLayout?: {
116
+ navColor: ColorValue;
117
+ authNavHeight: number;
118
+ authNavTransparent: boolean;
119
+ authNavGone: boolean;
120
+ };
121
+ authNavTextView?: {
122
+ navText: string;
123
+ navTextColor: ColorValue;
124
+ navTextSize: number;
125
+ navWebTextNormal: boolean;
126
+ navWebText: string;
127
+ navWebTextColor: ColorValue;
128
+ navWebTextSize: number;
129
+ };
130
+ switchViewLayout?: {
131
+ switchImgPath: string;
132
+ switchWidth: number;
133
+ switchHeight: number;
134
+ };
135
+ logBtnTextView?: {
136
+ logBtnText: string;
137
+ logBtnColor: ColorValue;
138
+ logBtnTextSize: number;
139
+ };
140
+ logBtnLoadingView?: {
141
+ loadingView: string;
142
+ loadingViewWidth: number;
143
+ loadingViewHeight: number;
144
+ loadingViewOffsetRight: number;
145
+ };
146
+ privacyUnCheckedToastText?: string;
147
+ privacyClauseText?: {
148
+ clauseNameOne: string;
149
+ clauseUrlOne: string;
150
+ clauseNameTwo: string;
151
+ clauseUrlTwo: string;
152
+ clauseNameThree: string;
153
+ clauseUrlThre: string;
154
+ };
155
+ privacyTextGravity?: "Gravity.CENTER_HORIZONTAL" | number; // android.view.Gravity
156
+ privacyClauseView?: {
157
+ baseClauseColor: ColorValue;
158
+ clauseColor: ColorValue;
159
+ privacyClauseTextSize: number;
160
+ };
161
+ privacyTextView?: {
162
+ privacyTextViewTv1: string;
163
+ privacyTextViewTv2: string;
164
+ privacyTextViewTv3: string;
165
+ privacyTextViewTv4: string;
166
+ };
167
+ authNavTextViewTypeface?: {
168
+ navTextTypeface: string;
169
+ navWebTextTypeface: string;
170
+ };
171
+ numberViewTypeface?: string;
172
+ switchViewTypeface?: string;
173
+ logBtnTextViewTypeface?: string;
174
+ logoImgView?: {
175
+ logoImgPath: string;
176
+ logoWidth: number;
177
+ logoHeight: number;
178
+ logoHidden: boolean;
179
+ logoOffsetY: number;
180
+ logoOffsetY_B: number;
181
+ logoOffsetX: number;
182
+ };
183
+ authNavReturnImgView?: {
184
+ returnImgPath: string;
185
+ returnImgWidth: number;
186
+ returnImgHeight: number;
187
+ returnImgHidden: boolean;
188
+ returnImgOffsetX: number;
189
+ };
190
+ numberView?: {
191
+ numberColor: ColorValue;
192
+ numberSize: number;
193
+ numberOffsetY: number;
194
+ numberOffsetY_B: number;
195
+ numberOffsetX: number;
196
+ };
197
+ sloganView?: {
198
+ sloganColor: ColorValue;
199
+ sloganSize: number;
200
+ sloganOffsetY: number;
201
+ sloganOffsetY_B: number;
202
+ sloganOffsetX: number;
203
+ };
204
+ logBtnLayout?: {
205
+ logBtnImgPath: string;
206
+ logBtnUncheckedImgPath: string;
207
+ logBtnWidth: number;
208
+ logBtnHeight: number;
209
+ logBtnOffsetY: number;
210
+ logBtnOffsetY_B: number;
211
+ logBtnOffsetX: number;
212
+ };
213
+ switchView?: {
214
+ switchText: string;
215
+ switchColor: ColorValue;
216
+ switchSize: number;
217
+ switchHidden: boolean;
218
+ switchOffsetY: number;
219
+ switchOffsetY_B: number;
220
+ switchOffsetX: number;
221
+ };
222
+ privacyCheckBox?: {
223
+ unCheckedImgPath: string;
224
+ checkedImgPath: string;
225
+ privacyState: boolean;
226
+ privacyCheckBoxWidth: number;
227
+ privacyCheckBoxHeight: number;
228
+ privacyCheckBoxOffsetY: number;
229
+ privacyCheckBoxMarginRight: number;
230
+ };
231
+ privacyLayout?: {
232
+ privacyLayoutWidth: number;
233
+ privacyOffsetY: number;
234
+ privacyOffsetY_B: number;
235
+ privacyOffsetX: number;
236
+ isUseNormalWebActivity: boolean;
237
+ };
238
+ sloganViewTypeface?: string;
239
+ privacyClauseViewTypeface?: {
240
+ privacyClauseBaseTypeface: string;
241
+ privacyClauseTypeface: string;
242
+ };
243
+ customViews?: {
244
+ x: number;
245
+ y: number;
246
+ maxWidth: number;
247
+ maxHeight: number;
248
+ imageResourceName: string;
249
+ margin?:
250
+ | {
251
+ left: number;
252
+ top: number;
253
+ right: number;
254
+ bottom: number;
255
+ }
256
+ | undefined;
257
+ }[];
253
258
  };
254
259
 
255
260
  export type IOSOneLoginUIConfig = {
256
- /**
261
+ /**
257
262
  状态栏样式。 默认 `UIStatusBarStyleDefault`。
258
263
  */
259
- statusBarStyle?:
260
- | 'UIStatusBarStyle.darkContent'
261
- | 'UIStatusBarStyle.lightContent'
262
- | 'UIStatusBarStyle.default'; // UIStatusBarStyle
264
+ statusBarStyle?:
265
+ | "UIStatusBarStyle.darkContent"
266
+ | "UIStatusBarStyle.lightContent"
267
+ | "UIStatusBarStyle.default"; // UIStatusBarStyle
263
268
 
264
- // Navigation/导航
269
+ // Navigation/导航
265
270
 
266
- /**
271
+ /**
267
272
  导航栏标题距离屏幕左右两边的间距。默认为36,隐私条款导航栏保持一致。
268
273
  */
269
- navTextMargin?: number;
270
- /**
274
+ navTextMargin?: number;
275
+ /**
271
276
  授权页导航的标题。默认为空字符串。
272
277
  */
273
- naviTitle?: RNOLAuthViewModelNSAttributedString;
278
+ naviTitle?: RNOLAuthViewModelNSAttributedString;
274
279
 
275
- /**
280
+ /**
276
281
  授权页导航的背景颜色。默认白色。
277
282
  */
278
- naviBgColor?: ColorValue;
283
+ naviBgColor?: ColorValue;
279
284
 
280
- /**
285
+ /**
281
286
  授权页导航左边的返回按钮的图片。默认黑色系统样式返回图片。
282
287
  */
283
- naviBackImage?: RNUImage;
284
- /**
288
+ naviBackImage?: RNUImage;
289
+ /**
285
290
  导航栏隐藏。默认不隐藏。
286
291
  */
287
- naviHidden?: boolean;
292
+ naviHidden?: boolean;
288
293
 
289
- /**
294
+ /**
290
295
  返回按钮位置及大小,返回按钮最大size为CGSizeMake(40, 40)。
291
296
  */
292
- backButtonRect?: RNOLAuthViewModelOLRect;
297
+ backButtonRect?: RNOLAuthViewModelOLRect;
293
298
 
294
- /**
299
+ /**
295
300
  返回按钮隐藏。默认不隐藏。
296
301
  */
297
- backButtonHidden?: boolean;
302
+ backButtonHidden?: boolean;
298
303
 
299
- /**
304
+ /**
300
305
  授权页面上展示的图标。默认为 "OneLogin" 图标。
301
306
  */
302
- appLogo?: RNUImage;
307
+ appLogo?: RNUImage;
303
308
 
304
- /**
309
+ /**
305
310
  Logo 位置及大小。
306
311
  */
307
- logoRect?: RNOLAuthViewModelOLRect;
312
+ logoRect?: RNOLAuthViewModelOLRect;
308
313
 
309
- /**
314
+ /**
310
315
  Logo 图片隐藏。默认不隐藏。
311
316
  */
312
- logoHidden?: boolean;
317
+ logoHidden?: boolean;
313
318
 
314
- /**
319
+ /**
315
320
  logo圆角,默认为0。
316
321
  */
317
- logoCornerRadius?: number;
322
+ logoCornerRadius?: number;
318
323
 
319
- // Phone Number Preview/手机号预览
324
+ // Phone Number Preview/手机号预览
320
325
 
321
- /**
326
+ /**
322
327
  号码预览文字的颜色。默认黑色。
323
328
  */
324
- phoneNumColor?: ColorValue;
329
+ phoneNumColor?: ColorValue;
325
330
 
326
- /**
331
+ /**
327
332
  号码预览文字的字体。默认粗体,24pt。
328
333
  */
329
- phoneNumFont?: RNOLAuthViewModelUIFont;
334
+ phoneNumFont?: RNOLAuthViewModelUIFont;
330
335
 
331
- /**
336
+ /**
332
337
  号码预览 位置及大小
333
338
  */
334
- phoneNumRect?: RNOLAuthViewModelOLRect;
339
+ phoneNumRect?: RNOLAuthViewModelOLRect;
335
340
 
336
- /**
341
+ /**
337
342
  号码富文本,默认为空。
338
343
  */
339
- attrPhone?: RNOLAuthViewModelNSAttributedString;
344
+ attrPhone?: RNOLAuthViewModelNSAttributedString;
340
345
 
341
- // Switch Button/切换按钮
346
+ // Switch Button/切换按钮
342
347
 
343
- /**
348
+ /**
344
349
  授权页切换账号按钮的文案。默认为“切换账号”。
345
350
  */
346
- switchButtonText?: String;
351
+ switchButtonText?: String;
347
352
 
348
- /**
353
+ /**
349
354
  授权页切换账号按钮的颜色。默认蓝色。
350
355
  */
351
- switchButtonColor?: ColorValue;
356
+ switchButtonColor?: ColorValue;
352
357
 
353
- /**
358
+ /**
354
359
  授权页切换账号按钮背景颜色。默认为 nil。
355
360
  */
356
- switchButtonBackgroundColor?: ColorValue;
361
+ switchButtonBackgroundColor?: ColorValue;
357
362
 
358
- /**
363
+ /**
359
364
  授权页切换账号的字体。默认字体,15pt。
360
365
  */
361
- switchButtonFont?: RNOLAuthViewModelUIFont;
366
+ switchButtonFont?: RNOLAuthViewModelUIFont;
362
367
 
363
- /**
368
+ /**
364
369
  授权页切换账号按钮 位置及大小。
365
370
  */
366
- switchButtonRect?: RNOLAuthViewModelOLRect;
371
+ switchButtonRect?: RNOLAuthViewModelOLRect;
367
372
 
368
- /**
373
+ /**
369
374
  隐藏切换账号按钮。默认不隐藏。
370
375
  */
371
- switchButtonHidden?: boolean;
376
+ switchButtonHidden?: boolean;
372
377
 
373
- /**
374
- * 点击授权页面切换账号按钮的回调
375
- */
376
- clickSwitchButtonBlock?: RNFunction;
378
+ /**
379
+ * 点击授权页面切换账号按钮的回调
380
+ */
381
+ clickSwitchButtonBlock?: RNFunction;
377
382
 
378
- // Authorization Button/认证按钮
383
+ // Authorization Button/认证按钮
379
384
 
380
- /**
385
+ /**
381
386
  授权页认证按钮的背景图片, @[正常状态的背景图片, 不可用状态的背景图片, 高亮状态的背景图片]。默认正常状态为蓝色纯色, 不可用状态的背景图片时为灰色, 高亮状态为灰蓝色。
382
387
  */
383
- authButtonImages?: Array<RNUImage>;
388
+ authButtonImages?: Array<RNUImage>;
384
389
 
385
- /**
390
+ /**
386
391
  授权按钮文案。默认白色的"一键登录"。
387
392
  */
388
- authButtonTitle?: RNOLAuthViewModelNSAttributedString;
393
+ authButtonTitle?: RNOLAuthViewModelNSAttributedString;
389
394
 
390
- /**
395
+ /**
391
396
  授权按钮 位置及大小。
392
397
  */
393
- authButtonRect?: RNOLAuthViewModelOLRect;
398
+ authButtonRect?: RNOLAuthViewModelOLRect;
394
399
 
395
- /**
400
+ /**
396
401
  授权按钮圆角,默认为0。
397
402
  */
398
- authButtonCornerRadius?: number;
403
+ authButtonCornerRadius?: number;
399
404
 
400
- /**
401
- * 点击授权页面授权按钮的回调,用于监听授权页面登录按钮的点击
402
- */
403
- clickAuthButtonBlock?: RNFunction;
405
+ /**
406
+ * 点击授权页面授权按钮的回调,用于监听授权页面登录按钮的点击
407
+ */
408
+ clickAuthButtonBlock?: RNFunction;
404
409
 
405
- /**
406
- * 未勾选隐私条款时点击授权页面登录按钮的回调, 可用于自定义授权弹窗. 当返回 YES 时, 可以在 block 中添加自定义操作
407
- */
408
- // @property (nullable, nonatomic, copy) OLCustomDisabledAuthActionBlock customDisabledAuthActionBlock;
410
+ /**
411
+ * 未勾选隐私条款时点击授权页面登录按钮的回调, 可用于自定义授权弹窗. 当返回 YES 时, 可以在 block 中添加自定义操作
412
+ */
413
+ // @property (nullable, nonatomic, copy) OLCustomDisabledAuthActionBlock customDisabledAuthActionBlock;
409
414
 
410
- /**
411
- * 自定义授权页面登录按钮点击事件,用于完全接管授权页面点击事件,当返回 YES 时,可以在 block 中添加自定义操作
412
- */
413
- // @property (nullable, nonatomic, copy) OLCustomAuthActionBlock customAuthActionBlock;
415
+ /**
416
+ * 自定义授权页面登录按钮点击事件,用于完全接管授权页面点击事件,当返回 YES 时,可以在 block 中添加自定义操作
417
+ */
418
+ // @property (nullable, nonatomic, copy) OLCustomAuthActionBlock customAuthActionBlock;
414
419
 
415
- // Slogan/口号标语
420
+ // Slogan/口号标语
416
421
 
417
- /**
422
+ /**
418
423
  Slogan 文案。
419
424
  */
420
- sloganText?: String;
425
+ sloganText?: String;
421
426
 
422
- /**
427
+ /**
423
428
  Slogan 位置及大小。
424
429
  */
425
- sloganRect?: RNOLAuthViewModelOLRect;
430
+ sloganRect?: RNOLAuthViewModelOLRect;
426
431
 
427
- /**
432
+ /**
428
433
  Slogan 文字颜色。默认灰色。
429
434
  */
430
- sloganTextColor?: ColorValue;
435
+ sloganTextColor?: ColorValue;
431
436
 
432
- /**
437
+ /**
433
438
  Slogan字体。默认字体, 12pt。
434
439
  */
435
- sloganTextFont?: RNOLAuthViewModelUIFont;
440
+ sloganTextFont?: RNOLAuthViewModelUIFont;
436
441
 
437
- // CheckBox & Privacy Terms/隐私条款勾选框及隐私条款
442
+ // CheckBox & Privacy Terms/隐私条款勾选框及隐私条款
438
443
 
439
- /**
444
+ /**
440
445
  授权页面上条款勾选框初始状态。默认 NO。
441
446
  */
442
- defaultCheckBoxState?: boolean;
447
+ defaultCheckBoxState?: boolean;
443
448
 
444
- /**
449
+ /**
445
450
  授权页面上勾选框勾选的图标。默认为蓝色图标。推荐尺寸为12x12。
446
451
  */
447
- checkedImage?: RNUImage;
452
+ checkedImage?: RNUImage;
448
453
 
449
- /**
454
+ /**
450
455
  授权页面上勾选框未勾选的图标。默认为白色图标。推荐尺寸为12x12。
451
456
  */
452
- uncheckedImage?: RNUImage;
457
+ uncheckedImage?: RNUImage;
453
458
 
454
- /**
459
+ /**
455
460
  授权页面上条款勾选框大小及位置,请不要设置勾选框的横向偏移,整体隐私条款的横向偏移,请通过 termsRect 设置
456
461
  */
457
- checkBoxRect?: RNOLAuthViewModelOLRect;
462
+ checkBoxRect?: RNOLAuthViewModelOLRect;
458
463
 
459
- /**
464
+ /**
460
465
  隐私条款文字属性。默认基础文字灰色, 条款蓝色高亮, 12pt。
461
466
  */
462
- privacyTermsAttributes?: RNNSAttributedStringKey;
467
+ privacyTermsAttributes?: RNNSAttributedStringKey;
463
468
 
464
- /**
469
+ /**
465
470
  额外的条款。默认为空。
466
471
  */
467
- additionalPrivacyTerms?: RNOLPrivacyTermItem[];
472
+ additionalPrivacyTerms?: RNOLPrivacyTermItem[];
468
473
 
469
- /**
474
+ /**
470
475
  服务条款普通文字的颜色。默认灰色。
471
476
  */
472
- termTextColor?: ColorValue;
477
+ termTextColor?: ColorValue;
473
478
 
474
- /**
479
+ /**
475
480
  隐私条款 位置及大小,隐私条款,宽需大于50,高需大于20,才会生效。
476
481
  */
477
- termsRect?: RNOLAuthViewModelOLRect;
482
+ termsRect?: RNOLAuthViewModelOLRect;
478
483
 
479
- /**
484
+ /**
480
485
  除隐私条款外的其他文案,数组大小必须 >= 4,元素依次为:条款前的文案、条款一和条款二连接符、条款二和条款三连接符、条款三和条款四连接符、……,条款后的文案。
481
486
  默认为@[@"登录即同意", @"和", @"、", @"并使用本机号码登录"]
482
487
  */
483
- auxiliaryPrivacyWords?: Array<String>;
484
-
485
- /**
486
- * 点击授权页面隐私协议前勾选框的回调
487
- */
488
- // @property (nullable, nonatomic, copy) OLClickCheckboxBlock clickCheckboxBlock;
489
-
490
- /**
491
- * 服务条款文案对齐方式,默认为NSTextAlignmentLeft
492
- */
493
- termsAlignment?: String;
494
-
495
- /**
496
- * 点击授权页面运营商隐私协议的回调
497
- */
498
- // @property (nullable, nonatomic, copy) OLViewPrivacyTermItemBlock carrierTermItemBlock;
499
-
500
- /**
501
- * 是否在运营商协议名称上加书名号《》
502
- */
503
- hasQuotationMarkOnCarrierProtocol?: boolean;
504
-
505
- /**
506
- * 未勾选勾选框时,是否禁止一键登录按钮的点击
507
- */
508
- disableAuthButtonWhenUnchecked?: boolean;
509
-
510
- /**
511
- * 未勾选授权页面隐私协议前勾选框时,点击授权页面登录按钮时提示 block
512
- */
513
- // @property (nonatomic, copy) OLNotCheckProtocolHintBlock hintBlock;
514
-
515
- /**
516
- * 未勾选授权页面隐私协议前勾选框时,点击授权页面登录按钮时勾选框与协议的抖动样式,默认不抖动
517
- */
518
- shakeStyle?: String;
519
-
520
- /**
521
- * 勾选框与服务条款文案之间的间距。默认为 2
522
- */
523
- spaceBetweenCheckboxAndTermsText?: number;
524
-
525
- // 授权页文案多语言配置
526
- /**
527
- * 多语言配置,支持中文简体,中文繁体,英文
528
- */
529
- languageType?: String;
530
-
531
- // Custom Area/自定义区域
532
-
533
- /**
488
+ auxiliaryPrivacyWords?: Array<String>;
489
+
490
+ /**
491
+ * 点击授权页面隐私协议前勾选框的回调
492
+ */
493
+ // @property (nullable, nonatomic, copy) OLClickCheckboxBlock clickCheckboxBlock;
494
+
495
+ /**
496
+ * 服务条款文案对齐方式,默认为NSTextAlignmentLeft
497
+ */
498
+ termsAlignment?: String;
499
+
500
+ /**
501
+ * 点击授权页面运营商隐私协议的回调
502
+ */
503
+ // @property (nullable, nonatomic, copy) OLViewPrivacyTermItemBlock carrierTermItemBlock;
504
+
505
+ /**
506
+ * 是否在运营商协议名称上加书名号《》
507
+ */
508
+ hasQuotationMarkOnCarrierProtocol?: boolean;
509
+
510
+ /**
511
+ * 未勾选勾选框时,是否禁止一键登录按钮的点击
512
+ */
513
+ disableAuthButtonWhenUnchecked?: boolean;
514
+
515
+ /**
516
+ * 未勾选授权页面隐私协议前勾选框时,点击授权页面登录按钮时提示 block
517
+ */
518
+ // @property (nonatomic, copy) OLNotCheckProtocolHintBlock hintBlock;
519
+
520
+ /**
521
+ * 未勾选授权页面隐私协议前勾选框时,点击授权页面登录按钮时勾选框与协议的抖动样式,默认不抖动
522
+ */
523
+ shakeStyle?: String;
524
+
525
+ /**
526
+ * 勾选框与服务条款文案之间的间距。默认为 2
527
+ */
528
+ spaceBetweenCheckboxAndTermsText?: number;
529
+
530
+ // 授权页文案多语言配置
531
+ /**
532
+ * 多语言配置,支持中文简体,中文繁体,英文
533
+ */
534
+ languageType?: String;
535
+
536
+ // Custom Area/自定义区域
537
+
538
+ /**
534
539
  自定义区域视图的处理block
535
540
 
536
541
  @discussion
@@ -538,363 +543,363 @@ export type IOSOneLoginUIConfig = {
538
543
  如果导航栏没有隐藏, 顶部与导航栏底部对齐, 左边与屏幕左边对齐, 右边与屏幕右边对齐, 底部与屏幕底部对齐。
539
544
  如果导航栏隐藏, 顶部与状态栏底部对齐, 左边与屏幕左边对齐, 右边与屏幕右边对齐, 底部与屏幕底部对齐。
540
545
  */
541
- // @property (nullable, nonatomic, copy) OLCustomUIHandler customUIHandler;
546
+ // @property (nullable, nonatomic, copy) OLCustomUIHandler customUIHandler;
542
547
 
543
- /**
544
- * 授权页面旋转时的回调,可在该回调中修改自定义视图的frame,以适应新的布局
545
- */
546
- // @property (nullable, nonatomic, copy) OLAuthVCTransitionBlock authVCTransitionBlock;
548
+ /**
549
+ * 授权页面旋转时的回调,可在该回调中修改自定义视图的frame,以适应新的布局
550
+ */
551
+ // @property (nullable, nonatomic, copy) OLAuthVCTransitionBlock authVCTransitionBlock;
547
552
 
548
- // Background Image/授权页面背景图片
553
+ // Background Image/授权页面背景图片
549
554
 
550
- /**
555
+ /**
551
556
  授权页背景颜色。默认白色。
552
557
  */
553
- backgroundColor?: ColorValue;
558
+ backgroundColor?: ColorValue;
554
559
 
555
- /**
560
+ /**
556
561
  授权页面背景图片
557
562
  */
558
- backgroundImage?: RNUImage;
563
+ backgroundImage?: RNUImage;
559
564
 
560
- /**
565
+ /**
561
566
  横屏模式授权页面背景图片
562
567
  */
563
- landscapeBackgroundImage?: String;
568
+ landscapeBackgroundImage?: String;
564
569
 
565
- // Background Gif/授权页面背景 gif
566
- /**
570
+ // Background Gif/授权页面背景 gif
571
+ /**
567
572
  授权页面背景Gif路径,与背景图片、视频,三者只有一个有效,视频优先级最高,背景图其次,gif 最后
568
573
  */
569
- backgroundGifPath?: String;
570
- // Background Video/授权页面背景视频
571
- /**
574
+ backgroundGifPath?: String;
575
+ // Background Video/授权页面背景视频
576
+ /**
572
577
  授权页面背景视频路径,可支持本地和网络视频,与背景图片、gif,三者只有一个有效,视频优先级最高,背景图其次,gif 最后
573
578
  */
574
- backgroundVideoPath?: String;
579
+ backgroundVideoPath?: String;
575
580
 
576
- // Autolayout
581
+ // Autolayout
577
582
 
578
- /**
579
- * 授权页面视图控件自动布局回调
580
- */
581
- // @property (nullable, nonatomic, copy) OLAuthVCAutoLayoutBlock autolayoutBlock;
583
+ /**
584
+ * 授权页面视图控件自动布局回调
585
+ */
586
+ // @property (nullable, nonatomic, copy) OLAuthVCAutoLayoutBlock autolayoutBlock;
582
587
 
583
- // orientation
588
+ // orientation
584
589
 
585
- /**
586
- * 授权页面支持的横竖屏方向
587
- */
588
- supportedInterfaceOrientations?: String;
590
+ /**
591
+ * 授权页面支持的横竖屏方向
592
+ */
593
+ supportedInterfaceOrientations?: String;
589
594
 
590
- // Popup
595
+ // Popup
591
596
 
592
- /**
593
- * 是否为弹窗模式
594
- */
595
- isPopup?: boolean;
597
+ /**
598
+ * 是否为弹窗模式
599
+ */
600
+ isPopup?: boolean;
596
601
 
597
- /**
602
+ /**
598
603
  弹窗 位置及大小。弹窗模式时,x轴偏移只支持portraitLeftXOffset和landscapeLeftXOffset。
599
604
  */
600
- popupRect?: RNOLAuthViewModelOLRect;
605
+ popupRect?: RNOLAuthViewModelOLRect;
601
606
 
602
- /**
607
+ /**
603
608
  弹窗圆角,默认为6。
604
609
  */
605
- popupCornerRadius?: number;
610
+ popupCornerRadius?: number;
606
611
 
607
- /**
612
+ /**
608
613
  当只需要设置弹窗的部分圆角时,通过popupCornerRadius设置圆角大小,通过popupRectCorners设置需要设置圆角的位置。
609
614
  popupRectCorners数组元素不超过四个,超过四个时,只取前四个。比如,要设置左上和右上为圆角,则传值:@[@(UIRectCornerTopLeft), @(UIRectCornerTopRight)]
610
615
  */
611
- popupRectCorners?: number[];
616
+ popupRectCorners?: number[];
612
617
 
613
- /**
614
- * 弹窗动画类型,当popupAnimationStyle为OLAuthPopupAnimationStyleStyleCustom时,动画为用户自定义,用户需要传一个CATransition对象来设置动画
615
- */
616
- popupAnimationStyle?: String;
618
+ /**
619
+ * 弹窗动画类型,当popupAnimationStyle为OLAuthPopupAnimationStyleStyleCustom时,动画为用户自定义,用户需要传一个CATransition对象来设置动画
620
+ */
621
+ popupAnimationStyle?: String;
617
622
 
618
- /**
619
- * 弹窗自定义动画
620
- */
621
- popupTransitionAnimation?: String;
623
+ /**
624
+ * 弹窗自定义动画
625
+ */
626
+ popupTransitionAnimation?: String;
622
627
 
623
- /**
628
+ /**
624
629
  弹窗关闭按钮图片,弹窗关闭按钮的尺寸跟图片尺寸保持一致。
625
630
  弹窗关闭按钮位于弹窗右上角,目前只支持设置其距顶部偏移和距右边偏移。
626
631
  */
627
- closePopupImage?: String;
632
+ closePopupImage?: String;
628
633
 
629
- /**
634
+ /**
630
635
  弹窗关闭按钮距弹窗顶部偏移。
631
636
  */
632
- closePopupTopOffset?: number;
637
+ closePopupTopOffset?: number;
633
638
 
634
- /**
639
+ /**
635
640
  弹窗关闭按钮距弹窗右边偏移。
636
641
  */
637
- closePopupRightOffset?: number;
642
+ closePopupRightOffset?: number;
638
643
 
639
- /**
644
+ /**
640
645
  是否需要通过点击弹窗的背景区域以关闭授权页面。
641
646
  */
642
- canClosePopupFromTapGesture?: boolean;
643
-
644
- /**
645
- * 点击授权页面弹窗背景的回调
646
- */
647
- // @property (nonatomic, copy, nullable) OLTapAuthBackgroundBlock tapAuthBackgroundBlock;
648
-
649
- /**
650
- * 弹窗蒙板视图
651
- */
652
- // popupMaskView: UIView;
653
-
654
- // Auth Dialog/授权弹窗
655
-
656
- /**
657
- * 未勾选同意协议时是否弹出授权弹窗
658
- */
659
- willAuthDialogDisplay?: boolean;
660
-
661
- /**
662
- * 点击授权弹窗外是否关闭授权弹窗
663
- */
664
- canCloseAuthDialogFromTapGesture?: boolean;
665
-
666
- /**
667
- * 授权弹窗宽、高、起始点位置
668
- */
669
- authDialogRect?: RNOLAuthViewModelOLRect;
670
-
671
- /**
672
- * 授权弹窗是否显示在屏幕下方
673
- */
674
- isAuthDialogBottom?: boolean;
675
-
676
- /**
677
- * 授权弹窗背景颜色
678
- */
679
- authDialogBgColor?: ColorValue;
680
-
681
- /**
682
- * 授权弹窗标题文字
683
- */
684
- authDialogTitleText?: String;
685
-
686
- /**
687
- * 授权弹窗标题颜色
688
- */
689
- authDialogTitleColor?: ColorValue;
690
-
691
- /**
692
- * 授权弹窗字体样式及大小
693
- */
694
- authDialogTitleFont?: RNOLAuthViewModelUIFont;
695
-
696
- /**
697
- * 授权弹窗富文本字体样式及大小
698
- */
699
- authDialogContentFont?: RNOLAuthViewModelUIFont;
700
-
701
- /**
702
- * 授权弹窗不同意按钮文字
703
- */
704
- authDialogDisagreeBtnText?: String;
705
-
706
- /**
707
- * 授权弹窗不同意按钮样式及大小
708
- */
709
- authDialogDisagreeBtnFont?: RNOLAuthViewModelUIFont;
710
-
711
- /**
712
- * 授权弹窗不同意按钮文字颜色
713
- */
714
- authDialogDisagreeBtnColor?: ColorValue;
715
-
716
- /**
717
- * 授权弹窗不同意按钮的背景图片, @[正常状态的背景图片, 高亮状态的背景图片]。默认正常状态为灰色, 高亮状态为深灰色。
718
- */
719
- authDialogDisagreeBtnImages?: Array<String>;
720
-
721
- /**
722
- * 授权弹窗同意按钮文字
723
- */
724
- authDialogAgreeBtnText?: String;
725
-
726
- /**
727
- * 授权弹窗同意按钮样式及大小
728
- */
729
- authDialogAgreeBtnFont?: RNOLAuthViewModelUIFont;
730
-
731
- /**
732
- * 授权弹窗同意按钮文字颜色
733
- */
734
- authDialogAgreeBtnColor?: ColorValue;
735
-
736
- /**
737
- * 授权弹窗同意按钮的背景图片, @[正常状态的背景图片, 高亮状态的背景图片]。默认正常状态为蓝色纯色, 高亮状态为灰蓝色。
738
- */
739
- authDialogAgreeBtnImages?: ColorValue;
740
-
741
- /**
742
- * 授权弹窗圆角,默认为10。
743
- */
744
- authDialogCornerRadius?: number;
745
-
746
- /**
747
- * 当只需要设置授权弹窗的部分圆角时,通过 authDialogCornerRadius 设置圆角大小,通过 authDialogRectCorners 设置需要设置圆角的位置。
748
- * authDialogRectCorners 数组元素不超过四个,超过四个时,只取前四个。比如,要设置左上和右上为圆角,则传值:@[@(UIRectCornerTopLeft), @(UIRectCornerTopRight)]
749
- */
750
- authDialogRectCorners?: Array<number>;
751
-
752
- /**
753
- * 授权弹窗动画类型,当authDialogAnimationStyle为OLAuthDialogAnimationStyleCustom时,动画为用户自定义,用户需要传一个CATransition对象来设置动画
754
- */
755
- authDialogAnimationStyle?: String;
756
-
757
- /**
758
- * 授权弹窗自定义动画
759
- */
760
- authDialogTransitionAnimation?: String;
761
-
762
- /**
647
+ canClosePopupFromTapGesture?: boolean;
648
+
649
+ /**
650
+ * 点击授权页面弹窗背景的回调
651
+ */
652
+ // @property (nonatomic, copy, nullable) OLTapAuthBackgroundBlock tapAuthBackgroundBlock;
653
+
654
+ /**
655
+ * 弹窗蒙板视图
656
+ */
657
+ // popupMaskView: UIView;
658
+
659
+ // Auth Dialog/授权弹窗
660
+
661
+ /**
662
+ * 未勾选同意协议时是否弹出授权弹窗
663
+ */
664
+ willAuthDialogDisplay?: boolean;
665
+
666
+ /**
667
+ * 点击授权弹窗外是否关闭授权弹窗
668
+ */
669
+ canCloseAuthDialogFromTapGesture?: boolean;
670
+
671
+ /**
672
+ * 授权弹窗宽、高、起始点位置
673
+ */
674
+ authDialogRect?: RNOLAuthViewModelOLRect;
675
+
676
+ /**
677
+ * 授权弹窗是否显示在屏幕下方
678
+ */
679
+ isAuthDialogBottom?: boolean;
680
+
681
+ /**
682
+ * 授权弹窗背景颜色
683
+ */
684
+ authDialogBgColor?: ColorValue;
685
+
686
+ /**
687
+ * 授权弹窗标题文字
688
+ */
689
+ authDialogTitleText?: String;
690
+
691
+ /**
692
+ * 授权弹窗标题颜色
693
+ */
694
+ authDialogTitleColor?: ColorValue;
695
+
696
+ /**
697
+ * 授权弹窗字体样式及大小
698
+ */
699
+ authDialogTitleFont?: RNOLAuthViewModelUIFont;
700
+
701
+ /**
702
+ * 授权弹窗富文本字体样式及大小
703
+ */
704
+ authDialogContentFont?: RNOLAuthViewModelUIFont;
705
+
706
+ /**
707
+ * 授权弹窗不同意按钮文字
708
+ */
709
+ authDialogDisagreeBtnText?: String;
710
+
711
+ /**
712
+ * 授权弹窗不同意按钮样式及大小
713
+ */
714
+ authDialogDisagreeBtnFont?: RNOLAuthViewModelUIFont;
715
+
716
+ /**
717
+ * 授权弹窗不同意按钮文字颜色
718
+ */
719
+ authDialogDisagreeBtnColor?: ColorValue;
720
+
721
+ /**
722
+ * 授权弹窗不同意按钮的背景图片, @[正常状态的背景图片, 高亮状态的背景图片]。默认正常状态为灰色, 高亮状态为深灰色。
723
+ */
724
+ authDialogDisagreeBtnImages?: Array<String>;
725
+
726
+ /**
727
+ * 授权弹窗同意按钮文字
728
+ */
729
+ authDialogAgreeBtnText?: String;
730
+
731
+ /**
732
+ * 授权弹窗同意按钮样式及大小
733
+ */
734
+ authDialogAgreeBtnFont?: RNOLAuthViewModelUIFont;
735
+
736
+ /**
737
+ * 授权弹窗同意按钮文字颜色
738
+ */
739
+ authDialogAgreeBtnColor?: ColorValue;
740
+
741
+ /**
742
+ * 授权弹窗同意按钮的背景图片, @[正常状态的背景图片, 高亮状态的背景图片]。默认正常状态为蓝色纯色, 高亮状态为灰蓝色。
743
+ */
744
+ authDialogAgreeBtnImages?: ColorValue;
745
+
746
+ /**
747
+ * 授权弹窗圆角,默认为10。
748
+ */
749
+ authDialogCornerRadius?: number;
750
+
751
+ /**
752
+ * 当只需要设置授权弹窗的部分圆角时,通过 authDialogCornerRadius 设置圆角大小,通过 authDialogRectCorners 设置需要设置圆角的位置。
753
+ * authDialogRectCorners 数组元素不超过四个,超过四个时,只取前四个。比如,要设置左上和右上为圆角,则传值:@[@(UIRectCornerTopLeft), @(UIRectCornerTopRight)]
754
+ */
755
+ authDialogRectCorners?: Array<number>;
756
+
757
+ /**
758
+ * 授权弹窗动画类型,当authDialogAnimationStyle为OLAuthDialogAnimationStyleCustom时,动画为用户自定义,用户需要传一个CATransition对象来设置动画
759
+ */
760
+ authDialogAnimationStyle?: String;
761
+
762
+ /**
763
+ * 授权弹窗自定义动画
764
+ */
765
+ authDialogTransitionAnimation?: String;
766
+
767
+ /**
763
768
  服务条款页面导航栏隐藏。默认不隐藏。
764
769
  */
765
- webNaviHidden?: boolean;
770
+ webNaviHidden?: boolean;
766
771
 
767
- /**
772
+ /**
768
773
  服务条款页面导航栏的标题,默认与协议名称保持一致,粗体、17pt。
769
774
  设置后,自定义协议的文案、颜色、字体都与设置的值保持一致,
770
775
  运营商协议的颜色、字体与设置的值保持一致,文案不变,与运营商协议名称保持一致。
771
776
  */
772
- webNaviTitle?: RNOLAuthViewModelNSAttributedString;
777
+ webNaviTitle?: RNOLAuthViewModelNSAttributedString;
773
778
 
774
- /**
779
+ /**
775
780
  服务条款页面导航的背景颜色。默认白色。
776
781
  */
777
- webNaviBgColor?: ColorValue;
782
+ webNaviBgColor?: ColorValue;
778
783
 
779
- // Hint
784
+ // Hint
780
785
 
781
- /**
786
+ /**
782
787
  未勾选服务条款复选框时,点击登录按钮的提示。默认为"请同意服务条款"。
783
788
  */
784
- notCheckProtocolHint?: String;
789
+ notCheckProtocolHint?: String;
785
790
 
786
- // OLAuthViewLifeCycleBlock
791
+ // OLAuthViewLifeCycleBlock
787
792
 
788
- /**
793
+ /**
789
794
  授权页面视图生命周期回调。
790
795
  */
791
- // @property (nullable, nonatomic, copy) OLAuthViewLifeCycleBlock viewLifeCycleBlock;
796
+ // @property (nullable, nonatomic, copy) OLAuthViewLifeCycleBlock viewLifeCycleBlock;
792
797
 
793
- // UIModalPresentationStyle
798
+ // UIModalPresentationStyle
794
799
 
795
- /**
800
+ /**
796
801
  present授权页面时的样式,默认为UIModalPresentationFullScreen
797
802
  */
798
- modalPresentationStyle?: String;
799
-
800
- /**
801
- * present授权页面时的自定义动画
802
- */
803
- modalPresentationAnimation?: String;
804
-
805
- /**
806
- * dismiss授权页面时的自定义动画
807
- */
808
- modalDismissAnimation?: String;
809
-
810
- // OLPullAuthVCStyle
811
-
812
- /**
813
- * @abstract 进入授权页面的方式,默认为 modal 方式,即 present 到授权页面,从授权页面进入服务条款页面的方式与此保持一致
814
- */
815
- pullAuthVCStyle?: String;
816
-
817
- // UIUserInterfaceStyle
818
-
819
- /**
820
- * @abstract 授权页面 UIUserInterfaceStyle,iOS 12 及以上系统,默认为 UIUserInterfaceStyleLight
821
- *
822
- * UIUserInterfaceStyle
823
- * UIUserInterfaceStyleUnspecified - 不指定样式,跟随系统设置进行展示
824
- * UIUserInterfaceStyleLight - 明亮
825
- * UIUserInterfaceStyleDark - 暗黑 仅对 iOS 13+ 系统有效
826
- */
827
- userInterfaceStyle?: String;
828
-
829
- backgroundImageView?: RNUIImageView;
830
- floatGoBackImageViewButton?: RNUIImageView;
831
- customViews?: RNUIImageView[];
803
+ modalPresentationStyle?: String;
804
+
805
+ /**
806
+ * present授权页面时的自定义动画
807
+ */
808
+ modalPresentationAnimation?: String;
809
+
810
+ /**
811
+ * dismiss授权页面时的自定义动画
812
+ */
813
+ modalDismissAnimation?: String;
814
+
815
+ // OLPullAuthVCStyle
816
+
817
+ /**
818
+ * @abstract 进入授权页面的方式,默认为 modal 方式,即 present 到授权页面,从授权页面进入服务条款页面的方式与此保持一致
819
+ */
820
+ pullAuthVCStyle?: String;
821
+
822
+ // UIUserInterfaceStyle
823
+
824
+ /**
825
+ * @abstract 授权页面 UIUserInterfaceStyle,iOS 12 及以上系统,默认为 UIUserInterfaceStyleLight
826
+ *
827
+ * UIUserInterfaceStyle
828
+ * UIUserInterfaceStyleUnspecified - 不指定样式,跟随系统设置进行展示
829
+ * UIUserInterfaceStyleLight - 明亮
830
+ * UIUserInterfaceStyleDark - 暗黑 仅对 iOS 13+ 系统有效
831
+ */
832
+ userInterfaceStyle?: String;
833
+
834
+ backgroundImageView?: RNUIImageView;
835
+ floatGoBackImageViewButton?: RNUIImageView;
836
+ customViews?: RNUIImageView[];
832
837
  };
833
838
 
834
839
  export type RNUIImageView = {
835
- frame: { x: number; y: number; width: number; height: number };
836
- uiImage: RNUImage;
837
- callbackId?: number;
838
- onClick?: () => void;
840
+ frame: { x: number; y: number; width: number; height: number };
841
+ uiImage: RNUImage;
842
+ callbackId?: number;
843
+ onClick?: () => void;
839
844
  };
840
845
 
841
846
  export type RNFunction = {
842
- callbackId?: number;
843
- onClick?: () => void;
847
+ callbackId?: number;
848
+ onClick?: () => void;
844
849
  };
845
850
 
846
851
  export type RNOLAuthViewModelNSAttributedString = {
847
- backgroundColor: String;
848
- string: String;
852
+ backgroundColor: String;
853
+ string: String;
849
854
  };
850
855
 
851
856
  export type RNUImage = {
852
- named?: String;
857
+ named?: String;
853
858
  };
854
859
 
855
860
  export type RNOLAuthViewModelUIFontDescriptor = {
856
- textStyle: String;
857
- size: number;
861
+ textStyle: String;
862
+ size: number;
858
863
  };
859
864
 
860
865
  export type RNOLAuthViewModelUIFont = {
861
- name: string;
862
- size: number;
863
- fontAttributes?: RNOLAuthViewModelUIFontDescriptor;
866
+ name: string;
867
+ size: number;
868
+ fontAttributes?: RNOLAuthViewModelUIFontDescriptor;
864
869
  };
865
870
 
866
871
  export type RNOLPrivacyTermItem = {
867
- title: string;
868
- /**
869
- * 带协议的URL
870
- */
871
- linkURL: string;
872
+ title: string;
873
+ /**
874
+ * 带协议的URL
875
+ */
876
+ linkURL: string;
872
877
  };
873
878
  export type RNNSAttributedStringKey = {
874
- foregroundColor: ColorValue;
875
- backgroundColor: ColorValue;
879
+ foregroundColor: ColorValue;
880
+ backgroundColor: ColorValue;
876
881
  };
877
882
 
878
883
  export type CGSize = { width: number; height: number };
879
884
 
880
885
  export type RNOLAuthViewModelOLRect = {
881
- /**
886
+ /**
882
887
  竖屏时
883
888
  导航栏隐藏时,为控件顶部到状态栏的距离;导航栏显示时,为控件顶部到导航栏底部的距离
884
889
  弹窗时
885
890
  为控件顶部到弹窗顶部的距离
886
891
  */
887
- portraitTopYOffset: number;
892
+ portraitTopYOffset: number;
888
893
 
889
- /**
894
+ /**
890
895
  竖屏时
891
896
  控件的x轴中点到屏幕x轴中点的距离,默认为0
892
897
  弹窗时
893
898
  控件的x轴中点到弹窗x轴中点的距离,默认为0
894
899
  */
895
- portraitCenterXOffset: number;
900
+ portraitCenterXOffset: number;
896
901
 
897
- /**
902
+ /**
898
903
  竖屏时
899
904
  控件的左边缘到屏幕左边缘的距离,默认为0
900
905
  弹窗时
@@ -903,25 +908,25 @@ export type RNOLAuthViewModelOLRect = {
903
908
  portraitLeftXOffset与portraitCenterXOffset设置一个即可,portraitLeftXOffset优先级大于portraitCenterXOffset,
904
909
  设置此属性时,portraitCenterXOffset属性失效
905
910
  */
906
- portraitLeftXOffset: number;
911
+ portraitLeftXOffset: number;
907
912
 
908
- /**
913
+ /**
909
914
  横屏时
910
915
  导航栏隐藏时,为控件顶部到屏幕顶部的距离;导航栏显示时,为控件顶部到导航栏底部的距离
911
916
  弹窗时
912
917
  为控件顶部到弹窗顶部的距离
913
918
  */
914
- landscapeTopYOffset: number;
919
+ landscapeTopYOffset: number;
915
920
 
916
- /**
921
+ /**
917
922
  横屏时
918
923
  控件的x轴中点到屏幕x轴中点的距离,默认为0
919
924
  弹窗时
920
925
  控件的x轴中点到弹窗x轴中点的距离,默认为0
921
926
  */
922
- landscapeCenterXOffset: number;
927
+ landscapeCenterXOffset: number;
923
928
 
924
- /**
929
+ /**
925
930
  横屏时
926
931
  控件的左边缘到屏幕左边缘的距离,默认为0
927
932
  弹窗时
@@ -930,10 +935,10 @@ export type RNOLAuthViewModelOLRect = {
930
935
  landscapeLeftXOffset与landscapeCenterXOffset设置一个即可,landscapeLeftXOffset优先级大于landscapeCenterXOffset,
931
936
  设置此属性时,landscapeCenterXOffset属性失效
932
937
  */
933
- landscapeLeftXOffset: number;
938
+ landscapeLeftXOffset: number;
934
939
 
935
- /**
940
+ /**
936
941
  控件大小,只有宽度、高度同时大于0,设置的size才会生效,否则为控件默认的size
937
942
  */
938
- size: CGSize;
943
+ size: CGSize;
939
944
  };