@procraft/widget-order 2.31.3 → 2.32.1

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/dist/utils.js CHANGED
@@ -18,8 +18,10 @@ const roundStd = (num, decimalPlaces) => {
18
18
  exports.roundStd = roundStd;
19
19
  const getCurrencyPrefix = (currency) => {
20
20
  switch (currency) {
21
- case 'USD': return '$';
22
- default: return '';
21
+ case 'USD':
22
+ return '$';
23
+ default:
24
+ return '';
23
25
  }
24
26
  };
25
27
  exports.getCurrencyPrefix = getCurrencyPrefix;
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuC;AAGhC,MAAM,WAAW,GAAG,CAAC,CAAS,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE;IAChD,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,CAAA;IACnB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAA;AAClC,CAAC,CAAA;AAHY,QAAA,WAAW,eAGvB;AAEM,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,aAAqB,EAAE,EAAE;IAC7D,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,aAAa,CAAC,CAAA;IACrC,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,GAAG,GAAG,GAAG,CAAC,CAAA;IAElC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AACpC,CAAC,CAAA;AALY,QAAA,QAAQ,YAKpB;AAEM,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,EAAE;IACpD,QAAQ,QAAQ,EAAE;QAChB,KAAK,KAAK,CAAC,CAAC,OAAO,GAAG,CAAA;QACtB,OAAO,CAAC,CAAC,OAAO,EA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,QAAQ,CAAC,CAAA;SACnC;KACF;SAAM;QACL,OAAO,EAAE,CAAA;KACV;AACH,CAAC;AAZD,gCAYC;AAED,SAAgB,OAAO,CACrB,UAAkB,EAClB,0BAAuD,OAAO;IAE9D,IAAI,uBAAuB,IAAI,OAAO,EAAE;QACtC,OAAO,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,UAAU,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,CAAA;KACnE;SAAM;QACL,OAAO,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;KAC1D;AACH,CAAC;AATD,0BASC;AAED,SAAgB,sBAAsB,CAAC,UAA2B;IAChE,IAAI,UAAU,EAAE;QACd,OAAO,gBAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;KAC1C;SAAM;QACL,OAAO,EAAE,CAAA;KACV;AACH,CAAC;AAND,wDAMC;AAED,SAAgB,sBAAsB,CACpC,UAA2B,EAC3B,SAAS,GAAG,KAAK,EACjB,0BAAuD,OAAO;IAE9D,IAAI,UAAU,EAAE;QACd,MAAM,SAAS,GAAG,gBAAM,CAAC,UAAU,CAAC,CAAA;QAEpC,IAAI,OAAO,CAAC,SAAS,EAAE,uBAAuB,CAAC,EAAE;YAC/C,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,GAAG,SAAS,GAAG,sBAAsB,CAClE,SAAS,CACV,EAAE,CAAA;SACJ;aAAM;YACL,OAAO,UAAU,CAAC,SAAS,CAAC,CAAA;SAC7B;KACF;SAAM;QACL,OAAO,EAAE,CAAA;KACV;AACH,CAAC;AAlBD,wDAkBC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@procraft/widget-order",
3
3
  "description": "Order widget for landing",
4
- "version": "2.31.3",
4
+ "version": "2.32.1",
5
5
  "private": false,
6
6
  "main": "dist",
7
7
  "scripts": {
@@ -31,8 +31,8 @@ export const FieldValues: React.FC<FieldValuesProps> = ({
31
31
  /**
32
32
  * Если есть хоть один пустой элемент, не набиваем группы.
33
33
  */
34
- if (!fieldValues.some(x => !x.groupName)) {
35
- fieldValues.map(fv => {
34
+ if (!fieldValues.some((x) => !x.groupName)) {
35
+ fieldValues.map((fv) => {
36
36
  if (fv.groupName && !groupNames.includes(fv.groupName)) {
37
37
  groupNames.push(fv.groupName)
38
38
  }
@@ -87,7 +87,10 @@ export const FieldValues: React.FC<FieldValuesProps> = ({
87
87
  /**
88
88
  * Если всего один элемент и это 'Без потока', пропускаем его
89
89
  */
90
- if (fieldValues.length === 1 && fieldValue.optionName === 'Без потока') {
90
+ if (
91
+ fieldValues.length === 1 &&
92
+ fieldValue.optionName === 'Без потока'
93
+ ) {
91
94
  return
92
95
  }
93
96
  //
@@ -238,7 +238,11 @@ export const OrderButton: React.FC<OrderButtonProps> = ({
238
238
  {price ? (
239
239
  <>
240
240
  {promoCode ? 'По промо за ' : 'Купить за '}
241
- <PriceFormat prefix={currencyPrefix} suffix={currencySuffix} value={price} />
241
+ <PriceFormat
242
+ prefix={currencyPrefix}
243
+ suffix={currencySuffix}
244
+ value={price}
245
+ />
242
246
  </>
243
247
  ) : (
244
248
  'Зарегистрироваться'
@@ -48,9 +48,12 @@ export const Review: React.FC<ReviewProps> = ({ review, ...other }) => {
48
48
  {review.reply && (
49
49
  <div className="reply">
50
50
  <div className="replyTitle">Ответ школы</div>
51
- <div className="replyText" dangerouslySetInnerHTML={{
52
- __html: review.reply.replace(/\n/gm, '<br/>'),
53
- }}/>
51
+ <div
52
+ className="replyText"
53
+ dangerouslySetInnerHTML={{
54
+ __html: review.reply.replace(/\n/gm, '<br/>'),
55
+ }}
56
+ />
54
57
  </div>
55
58
  )}
56
59
  </ReviewTextStyled>
@@ -22,7 +22,7 @@ export const ReviewHeaderStyled = styled.div`
22
22
  font-weight: 500;
23
23
  font-size: 14px;
24
24
  }
25
-
25
+
26
26
  ${StarsStyled} {
27
27
  svg {
28
28
  width: 18px;
@@ -44,13 +44,13 @@ export const ReviewTextStyled = styled.div`
44
44
  }
45
45
 
46
46
  .reply {
47
- margin-top: 10px;
47
+ margin-top: 10px;
48
48
  }
49
49
 
50
50
  .replyTitle {
51
- color: #8398ac;
52
- font-weight: 500;
53
- font-size: 14px;
51
+ color: #8398ac;
52
+ font-weight: 500;
53
+ font-size: 14px;
54
54
  }
55
55
  `
56
56
 
@@ -56,7 +56,6 @@ const Sale: React.FC<SaleProps> = ({
56
56
  titleTextColor,
57
57
  ...other
58
58
  }) => {
59
-
60
59
  const currencyPrefix = getCurrencyPrefix(catalogItem.master?.currency || '')
61
60
  const currencySuffix = getCurrencySuffix(catalogItem.master?.currency || '')
62
61
 
@@ -183,7 +182,11 @@ const Sale: React.FC<SaleProps> = ({
183
182
  {n.name}
184
183
  </span>{' '}
185
184
  {priceWithDiscount && (
186
- <PriceFormat prefix={currencyPrefix} suffix={currencySuffix} value={price} />
185
+ <PriceFormat
186
+ prefix={currencyPrefix}
187
+ suffix={currencySuffix}
188
+ value={price}
189
+ />
187
190
  )}
188
191
  </span>
189
192
  )
@@ -240,17 +243,28 @@ const Sale: React.FC<SaleProps> = ({
240
243
  <div className="content">
241
244
  <p style={{ color: titleTextColor }} className="title">
242
245
  Дополнительно скидка{' '}
243
- {sale.benefitUnit === 'Percent'
244
- ? `${Math.round(((totalPriceOriginal - totalPrice) / totalPriceOriginal) * 100)}%`
245
- : <PriceFormat value={totalPriceOriginal - totalPrice} prefix={currencyPrefix} suffix={currencySuffix} />
246
- }
246
+ {sale.benefitUnit === 'Percent' ? (
247
+ `${Math.round(
248
+ ((totalPriceOriginal - totalPrice) / totalPriceOriginal) * 100
249
+ )}%`
250
+ ) : (
251
+ <PriceFormat
252
+ value={totalPriceOriginal - totalPrice}
253
+ prefix={currencyPrefix}
254
+ suffix={currencySuffix}
255
+ />
256
+ )}
247
257
  </p>
248
258
 
249
259
  <div className="items">{items}</div>
250
260
 
251
261
  <div className="prices">
252
262
  <div>
253
- <OldPrice price={totalPriceOriginal} prefix={currencyPrefix} suffix={currencySuffix} />
263
+ <OldPrice
264
+ price={totalPriceOriginal}
265
+ prefix={currencyPrefix}
266
+ suffix={currencySuffix}
267
+ />
254
268
  </div>
255
269
 
256
270
  <a href={uri.toString()}>
@@ -262,7 +276,11 @@ const Sale: React.FC<SaleProps> = ({
262
276
  className="buy-link"
263
277
  >
264
278
  Купить за{' '}
265
- <PriceFormat prefix={currencyPrefix} suffix={currencySuffix} value={totalPrice} />
279
+ <PriceFormat
280
+ prefix={currencyPrefix}
281
+ suffix={currencySuffix}
282
+ value={totalPrice}
283
+ />
266
284
  </Button>
267
285
  </a>
268
286
  </div>
@@ -75,20 +75,23 @@ const CourseItem: React.FC<CourseItemComponentProps> = (props) => {
75
75
  ])
76
76
 
77
77
  // Делаем строку, чтобы при отсутствии изменений не было пересчета
78
- const selectedUids = ',' + fieldsValueSelected.map(fv => fv.uid).join(',') + ','
78
+ const selectedUids =
79
+ ',' + fieldsValueSelected.map((fv) => fv.uid).join(',') + ','
79
80
 
80
81
  // Фильтруем элементы по их родителям: если родители не выбраны, то не показываем
81
- const fieldValues = useMemo(() => (
82
- (item.fieldValues || []).filter(fv => {
83
- if (fv.parents) {
84
- const parents = fv.parents.split(',')
85
- if (!parents.some(x => selectedUids.includes(`,${x},`))) {
86
- return false
82
+ const fieldValues = useMemo(
83
+ () =>
84
+ (item.fieldValues || []).filter((fv) => {
85
+ if (fv.parents) {
86
+ const parents = fv.parents.split(',')
87
+ if (!parents.some((x) => selectedUids.includes(`,${x},`))) {
88
+ return false
89
+ }
87
90
  }
88
- }
89
- return true
90
- })
91
- ), [item.fieldValues, selectedUids])
91
+ return true
92
+ }),
93
+ [item.fieldValues, selectedUids]
94
+ )
92
95
 
93
96
  /**
94
97
  * Выбираем первый элемент в группе при отображении
@@ -100,13 +103,16 @@ const CourseItem: React.FC<CourseItemComponentProps> = (props) => {
100
103
  * Для каждого типа поля выбираем первый, если еще ничего не выбрано
101
104
  */
102
105
  for (const typeKey in CatalogFieldValueType) {
103
- const t = CatalogFieldValueType[typeKey as keyof typeof CatalogFieldValueType]
104
- const selectedByType = fieldValues.filter(x =>
105
- x.type === t && selectedUids.includes(`,${x.uid},`)
106
+ const t =
107
+ CatalogFieldValueType[typeKey as keyof typeof CatalogFieldValueType]
108
+ const selectedByType = fieldValues.filter(
109
+ (x) => x.type === t && selectedUids.includes(`,${x.uid},`)
106
110
  )
107
111
 
108
112
  if (!selectedByType.length) {
109
- selectedByType.push(...fieldValues.filter(x => x.type === t).slice(0, 1))
113
+ selectedByType.push(
114
+ ...fieldValues.filter((x) => x.type === t).slice(0, 1)
115
+ )
110
116
  }
111
117
 
112
118
  fvSelected.push(...selectedByType)
@@ -175,7 +181,8 @@ const CourseItem: React.FC<CourseItemComponentProps> = (props) => {
175
181
  </Typography>
176
182
 
177
183
  {item.course?.courseMeta?.courseKind === CourseKind.WEBINAR &&
178
- item.course.courseMeta.webinarStartsAt && (
184
+ item.course.courseMeta.webinarStartsAt &&
185
+ !item.course.courseMeta.webinarHasPassed && (
179
186
  <WebinarDate>
180
187
  Начало{' '}
181
188
  {formatDateOptionalTime(
@@ -2,9 +2,9 @@ import NumberFormat from 'react-number-format'
2
2
  import React from 'react'
3
3
 
4
4
  export const PriceFormat: React.FC<{
5
- prefix: string | undefined,
6
- suffix: string | undefined,
7
- value: number,
5
+ prefix: string | undefined
6
+ suffix: string | undefined
7
+ value: number
8
8
  }> = ({ prefix, suffix, value }) => (
9
9
  <NumberFormat
10
10
  value={value}
@@ -120,13 +120,14 @@ export type CourseItemFieldPolicy = {
120
120
  prolongationDays?: FieldPolicy<any> | FieldReadFunction<any>,
121
121
  courseMeta?: FieldPolicy<any> | FieldReadFunction<any>
122
122
  };
123
- export type CourseItemMetaKeySpecifier = ('courseName' | 'courseKind' | 'courseSubKindLabel' | 'courseSubKind' | 'webinarStartsAt' | CourseItemMetaKeySpecifier)[];
123
+ export type CourseItemMetaKeySpecifier = ('courseName' | 'courseKind' | 'courseSubKindLabel' | 'courseSubKind' | 'webinarStartsAt' | 'webinarHasPassed' | CourseItemMetaKeySpecifier)[];
124
124
  export type CourseItemMetaFieldPolicy = {
125
125
  courseName?: FieldPolicy<any> | FieldReadFunction<any>,
126
126
  courseKind?: FieldPolicy<any> | FieldReadFunction<any>,
127
127
  courseSubKindLabel?: FieldPolicy<any> | FieldReadFunction<any>,
128
128
  courseSubKind?: FieldPolicy<any> | FieldReadFunction<any>,
129
- webinarStartsAt?: FieldPolicy<any> | FieldReadFunction<any>
129
+ webinarStartsAt?: FieldPolicy<any> | FieldReadFunction<any>,
130
+ webinarHasPassed?: FieldPolicy<any> | FieldReadFunction<any>
130
131
  };
131
132
  export type CoursePublicCustomKeySpecifier = ('id' | 'name' | 'uid' | 'catalogItems' | 'tariffs' | 'tariffPerFlowDataItems' | 'kind' | 'subKind' | 'subKindLabel' | CoursePublicCustomKeySpecifier)[];
132
133
  export type CoursePublicCustomFieldPolicy = {
@@ -520,6 +520,12 @@
520
520
  "isDeprecated": false,
521
521
  "deprecationReason": null
522
522
  },
523
+ {
524
+ "name": "ChildPhone",
525
+ "description": null,
526
+ "isDeprecated": false,
527
+ "deprecationReason": null
528
+ },
523
529
  {
524
530
  "name": "Comment",
525
531
  "description": null,
@@ -532,6 +538,12 @@
532
538
  "isDeprecated": false,
533
539
  "deprecationReason": null
534
540
  },
541
+ {
542
+ "name": "ChildEmail",
543
+ "description": null,
544
+ "isDeprecated": false,
545
+ "deprecationReason": null
546
+ },
535
547
  {
536
548
  "name": "LastName",
537
549
  "description": null,
@@ -2537,6 +2549,18 @@
2537
2549
  },
2538
2550
  "isDeprecated": false,
2539
2551
  "deprecationReason": null
2552
+ },
2553
+ {
2554
+ "name": "webinarHasPassed",
2555
+ "description": null,
2556
+ "args": [],
2557
+ "type": {
2558
+ "kind": "SCALAR",
2559
+ "name": "Boolean",
2560
+ "ofType": null
2561
+ },
2562
+ "isDeprecated": false,
2563
+ "deprecationReason": null
2540
2564
  }
2541
2565
  ],
2542
2566
  "inputFields": null,
@@ -78,8 +78,10 @@ export enum CardFieldName {
78
78
  MESSENGERFACEBOOK = 'MessengerFacebook',
79
79
  ATTACHMENTS = 'Attachments',
80
80
  PHONE = 'Phone',
81
+ CHILDPHONE = 'ChildPhone',
81
82
  COMMENT = 'Comment',
82
83
  EMAIL = 'Email',
84
+ CHILDEMAIL = 'ChildEmail',
83
85
  LASTNAME = 'LastName',
84
86
  MIDDLENAME = 'MiddleName',
85
87
  ACCEPTAGREEMENTBYDEFAULT = 'AcceptAgreementByDefault',
@@ -304,6 +306,7 @@ export interface CourseItemMeta {
304
306
  courseSubKindLabel?: Maybe<LangRussianNoun>;
305
307
  courseSubKind: CourseSubKind;
306
308
  webinarStartsAt?: Maybe<Scalars['String']>;
309
+ webinarHasPassed?: Maybe<Scalars['Boolean']>;
307
310
  }
308
311
 
309
312
  export enum CourseKind {
package/src/utils.ts CHANGED
@@ -15,8 +15,10 @@ export const roundStd = (num: number, decimalPlaces: number) => {
15
15
 
16
16
  export const getCurrencyPrefix = (currency: string) => {
17
17
  switch (currency) {
18
- case 'USD': return '$'
19
- default: return ''
18
+ case 'USD':
19
+ return '$'
20
+ default:
21
+ return ''
20
22
  }
21
23
  }
22
24