@pisell/private-materials 3.4.44 → 3.4.46

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.
Files changed (193) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +150 -164
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/forms/model.d.ts +1 -10
  13. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  14. package/es/components/booking/info/model.d.ts +1 -10
  15. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  16. package/es/components/booking/info/service2/utils.d.ts +1 -1
  17. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  18. package/es/components/booking/model.d.ts +1 -9
  19. package/es/components/booking/notes/model.d.ts +1 -10
  20. package/es/components/booking/payments/model.d.ts +1 -10
  21. package/es/components/booking/utils.d.ts +2 -2
  22. package/es/components/eftposPay/amount.d.ts +1 -1
  23. package/es/components/eftposPay/device.d.ts +1 -1
  24. package/es/components/eftposPay/hooks.d.ts +2 -2
  25. package/es/components/eftposPay/store/index.d.ts +4 -4
  26. package/es/components/pay/toC/index.js +23 -20
  27. package/es/components/pay/toC/model.d.ts +1 -9
  28. package/es/components/schedules/model.d.ts +1 -9
  29. package/es/components/wallet/Detail/model.d.ts +1 -13
  30. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  31. package/es/components/wallet/PointCard/model.d.ts +1 -13
  32. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  33. package/es/components/wallet/Voucher/model.d.ts +1 -13
  34. package/es/components/wallet/model.d.ts +1 -9
  35. package/es/index.d.ts +1 -0
  36. package/es/index.js +2 -1
  37. package/es/pro/Login2.0/AuthModal.d.ts +143 -0
  38. package/es/pro/Login2.0/AuthModal.js +630 -0
  39. package/es/pro/Login2.0/Login2.d.ts +61 -0
  40. package/es/pro/Login2.0/Login2.js +2235 -0
  41. package/es/pro/Login2.0/Register2.d.ts +65 -0
  42. package/es/pro/Login2.0/Register2.js +1501 -0
  43. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  44. package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
  45. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  46. package/es/pro/Login2.0/components/LegalTerms.js +51 -0
  47. package/es/pro/Login2.0/components/LegalTerms.less +74 -0
  48. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  49. package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
  50. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  51. package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
  52. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  53. package/es/pro/Login2.0/components/PhoneInput.js +414 -0
  54. package/es/pro/Login2.0/components/PhoneInput.less +148 -0
  55. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  56. package/es/pro/Login2.0/components/phoneValidation.js +228 -0
  57. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  58. package/es/pro/Login2.0/hooks/index.js +1 -0
  59. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  60. package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
  61. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  62. package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
  63. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  64. package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
  65. package/es/pro/Login2.0/index.js +8 -0
  66. package/es/pro/Login2.0/index.less +1002 -0
  67. package/es/pro/Login2.0/locales.d.ts +543 -0
  68. package/es/pro/Login2.0/locales.js +622 -0
  69. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  70. package/es/pro/Login2.0/shared/Header.js +42 -0
  71. package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  72. package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
  73. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  74. package/es/pro/Login2.0/shared/registerFlow.js +171 -0
  75. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  76. package/es/pro/Login2.0/shared/types.js +1 -0
  77. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  78. package/es/pro/Login2.0/steps/CodeInput.js +209 -0
  79. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  80. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
  81. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  82. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
  83. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  84. package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
  85. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  86. package/es/pro/Login2.0/steps/SetPassword.js +148 -0
  87. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  88. package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
  89. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  90. package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
  91. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  92. package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
  93. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  94. package/es/pro/Login2.0/steps/index.js +11 -0
  95. package/es/pro/Login2.0/steps/steps.less +423 -0
  96. package/es/pro/Login2.0/types.d.ts +167 -0
  97. package/es/pro/Login2.0/types.js +1 -0
  98. package/lib/components/booking/addons/model.d.ts +1 -10
  99. package/lib/components/booking/forms/model.d.ts +1 -10
  100. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  101. package/lib/components/booking/info/model.d.ts +1 -10
  102. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  103. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  104. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  105. package/lib/components/booking/model.d.ts +1 -9
  106. package/lib/components/booking/notes/model.d.ts +1 -10
  107. package/lib/components/booking/payments/model.d.ts +1 -10
  108. package/lib/components/booking/utils.d.ts +2 -2
  109. package/lib/components/eftposPay/amount.d.ts +1 -1
  110. package/lib/components/eftposPay/device.d.ts +1 -1
  111. package/lib/components/eftposPay/hooks.d.ts +2 -2
  112. package/lib/components/eftposPay/store/index.d.ts +4 -4
  113. package/lib/components/pay/toC/index.js +9 -1
  114. package/lib/components/pay/toC/model.d.ts +1 -9
  115. package/lib/components/schedules/model.d.ts +1 -9
  116. package/lib/components/wallet/Detail/model.d.ts +1 -13
  117. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  118. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  119. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  120. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  121. package/lib/components/wallet/model.d.ts +1 -9
  122. package/lib/index.d.ts +1 -0
  123. package/lib/index.js +7 -0
  124. package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
  125. package/lib/pro/Login2.0/AuthModal.js +503 -0
  126. package/lib/pro/Login2.0/Login2.d.ts +61 -0
  127. package/lib/pro/Login2.0/Login2.js +1544 -0
  128. package/lib/pro/Login2.0/Register2.d.ts +65 -0
  129. package/lib/pro/Login2.0/Register2.js +1062 -0
  130. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  131. package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
  132. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  133. package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
  134. package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
  135. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  136. package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
  137. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  138. package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
  139. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  140. package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
  141. package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
  142. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  143. package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
  144. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  145. package/lib/pro/Login2.0/hooks/index.js +29 -0
  146. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  147. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
  148. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  149. package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
  150. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  151. package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
  152. package/lib/pro/Login2.0/index.js +45 -0
  153. package/lib/pro/Login2.0/index.less +1002 -0
  154. package/lib/pro/Login2.0/locales.d.ts +543 -0
  155. package/lib/pro/Login2.0/locales.js +646 -0
  156. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  157. package/lib/pro/Login2.0/shared/Header.js +81 -0
  158. package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  159. package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
  160. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  161. package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
  162. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  163. package/lib/pro/Login2.0/shared/types.js +17 -0
  164. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  165. package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
  166. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  167. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
  168. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  169. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
  170. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  171. package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
  172. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  173. package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
  174. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  175. package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
  176. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  177. package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
  178. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  179. package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
  180. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  181. package/lib/pro/Login2.0/steps/index.js +60 -0
  182. package/lib/pro/Login2.0/steps/steps.less +423 -0
  183. package/lib/pro/Login2.0/types.d.ts +167 -0
  184. package/lib/pro/Login2.0/types.js +17 -0
  185. package/lowcode/authmodal/meta.ts +395 -0
  186. package/lowcode/login2/CONFIG.md +447 -0
  187. package/lowcode/login2/TEST_CONFIG.md +324 -0
  188. package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
  189. package/lowcode/login2/meta.ts +560 -0
  190. package/lowcode/login2/snippets.ts +124 -0
  191. package/lowcode/register2/meta.ts +562 -0
  192. package/lowcode/register2/snippets.ts +257 -0
  193. package/package.json +5 -5
@@ -0,0 +1,257 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+
3
+ const snippets: IPublicTypeSnippet[] = [
4
+ {
5
+ title: '注册 2.0',
6
+ screenshot: '',
7
+ schema: {
8
+ componentName: 'Register2',
9
+ props: {
10
+ config: {
11
+ registrationMethods: [
12
+ {
13
+ type: 'email',
14
+ verificationMethod: 'verification_code',
15
+ },
16
+ {
17
+ type: 'phone',
18
+ verificationMethod: 'verification_code',
19
+ },
20
+ {
21
+ type: 'google',
22
+ clientId: 'your-google-client-id',
23
+ },
24
+ {
25
+ type: 'facebook',
26
+ appId: 'your-facebook-app-id',
27
+ },
28
+ {
29
+ type: 'apple',
30
+ clientId: 'your-apple-client-id',
31
+ },
32
+ ],
33
+ ui: {
34
+ title: {
35
+ show: true,
36
+ text: 'Create an account',
37
+ align: 'center',
38
+ },
39
+ subtitle: {
40
+ show: true,
41
+ text: 'Sign up to get started',
42
+ align: 'center',
43
+ },
44
+ desc: {
45
+ show: true,
46
+ text: 'Welcome! Please enter your details.',
47
+ align: 'center',
48
+ },
49
+ themeColor: '#7F56D9',
50
+ },
51
+ legalTerms: {
52
+ enabled: true,
53
+ terms: [
54
+ {
55
+ name: '服务条款',
56
+ url: 'https://example.com/terms',
57
+ },
58
+ {
59
+ name: '隐私协议',
60
+ url: 'https://example.com/privacy',
61
+ },
62
+ ],
63
+ textTemplate: '注册即代表同意 {terms}',
64
+ },
65
+ },
66
+ visible: true,
67
+ },
68
+ },
69
+ },
70
+ {
71
+ title: '注册 2.0(仅邮箱)',
72
+ screenshot: '',
73
+ schema: {
74
+ componentName: 'Register2',
75
+ props: {
76
+ config: {
77
+ registrationMethods: [
78
+ {
79
+ type: 'email',
80
+ verificationMethod: 'verification_code',
81
+ },
82
+ ],
83
+ ui: {
84
+ title: {
85
+ show: true,
86
+ text: 'Create an account',
87
+ align: 'center',
88
+ },
89
+ subtitle: {
90
+ show: true,
91
+ text: 'Sign up with your email',
92
+ align: 'center',
93
+ },
94
+ themeColor: '#7F56D9',
95
+ },
96
+ legalTerms: {
97
+ enabled: true,
98
+ terms: [
99
+ {
100
+ name: '服务条款',
101
+ url: 'https://example.com/terms',
102
+ },
103
+ {
104
+ name: '隐私协议',
105
+ url: 'https://example.com/privacy',
106
+ },
107
+ ],
108
+ textTemplate: '注册即代表同意 {terms}',
109
+ },
110
+ },
111
+ visible: true,
112
+ },
113
+ },
114
+ },
115
+ {
116
+ title: '注册 2.0(仅手机)',
117
+ screenshot: '',
118
+ schema: {
119
+ componentName: 'Register2',
120
+ props: {
121
+ config: {
122
+ registrationMethods: [
123
+ {
124
+ type: 'phone',
125
+ verificationMethod: 'verification_code',
126
+ },
127
+ ],
128
+ ui: {
129
+ title: {
130
+ show: true,
131
+ text: 'Create an account',
132
+ align: 'center',
133
+ },
134
+ subtitle: {
135
+ show: true,
136
+ text: 'Sign up with your phone',
137
+ align: 'center',
138
+ },
139
+ themeColor: '#7F56D9',
140
+ },
141
+ legalTerms: {
142
+ enabled: true,
143
+ terms: [
144
+ {
145
+ name: '服务条款',
146
+ url: 'https://example.com/terms',
147
+ },
148
+ {
149
+ name: '隐私协议',
150
+ url: 'https://example.com/privacy',
151
+ },
152
+ ],
153
+ textTemplate: '注册即代表同意 {terms}',
154
+ },
155
+ },
156
+ visible: true,
157
+ },
158
+ },
159
+ },
160
+ {
161
+ title: '注册 2.0(邮箱链接验证)',
162
+ screenshot: '',
163
+ schema: {
164
+ componentName: 'Register2',
165
+ props: {
166
+ config: {
167
+ registrationMethods: [
168
+ {
169
+ type: 'email',
170
+ verificationMethod: 'verification_link',
171
+ },
172
+ ],
173
+ ui: {
174
+ title: {
175
+ show: true,
176
+ text: 'Create an account',
177
+ align: 'center',
178
+ },
179
+ subtitle: {
180
+ show: true,
181
+ text: 'Sign up with email link verification',
182
+ align: 'center',
183
+ },
184
+ themeColor: '#7F56D9',
185
+ },
186
+ legalTerms: {
187
+ enabled: true,
188
+ terms: [
189
+ {
190
+ name: '服务条款',
191
+ url: 'https://example.com/terms',
192
+ },
193
+ {
194
+ name: '隐私协议',
195
+ url: 'https://example.com/privacy',
196
+ },
197
+ ],
198
+ textTemplate: '注册即代表同意 {terms}',
199
+ },
200
+ },
201
+ visible: true,
202
+ },
203
+ },
204
+ },
205
+ {
206
+ title: '注册 2.0(无需验证)',
207
+ screenshot: '',
208
+ schema: {
209
+ componentName: 'Register2',
210
+ props: {
211
+ config: {
212
+ registrationMethods: [
213
+ {
214
+ type: 'email',
215
+ verificationMethod: 'none',
216
+ },
217
+ {
218
+ type: 'phone',
219
+ verificationMethod: 'verification_code',
220
+ },
221
+ ],
222
+ ui: {
223
+ title: {
224
+ show: true,
225
+ text: 'Create an account',
226
+ align: 'center',
227
+ },
228
+ subtitle: {
229
+ show: true,
230
+ text: 'Quick sign up',
231
+ align: 'center',
232
+ },
233
+ themeColor: '#7F56D9',
234
+ },
235
+ legalTerms: {
236
+ enabled: true,
237
+ terms: [
238
+ {
239
+ name: '服务条款',
240
+ url: 'https://example.com/terms',
241
+ },
242
+ {
243
+ name: '隐私协议',
244
+ url: 'https://example.com/privacy',
245
+ },
246
+ ],
247
+ textTemplate: '注册即代表同意 {terms}',
248
+ },
249
+ },
250
+ visible: true,
251
+ },
252
+ },
253
+ },
254
+ ];
255
+
256
+ export default snippets;
257
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.44",
3
+ "version": "3.4.46",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "dist"
46
46
  ],
47
47
  "dependencies": {
48
- "antd": "^5.6.3",
48
+ "antd": "^5.10.1",
49
49
  "@ant-design/icons": "^5.6.1",
50
50
  "dayjs": "^1.11.9",
51
51
  "classnames": "^2.3.2",
@@ -61,10 +61,10 @@
61
61
  "decimal.js": "^10.4.3",
62
62
  "@react-spring/web": "^9.6.1",
63
63
  "@use-gesture/react": "^10.3.1",
64
- "@pisell/utils": "3.0.1",
65
- "@pisell/materials": "3.3.64",
64
+ "@pisell/materials": "3.3.65",
66
65
  "@pisell/icon": "0.0.11",
67
- "@pisell/date-picker": "3.0.3"
66
+ "@pisell/date-picker": "3.0.3",
67
+ "@pisell/utils": "3.0.1"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",