@pushwoosh/smart-components-kit 2.6.0 → 2.6.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.
@@ -1,10 +1,11 @@
1
+ import { randomUUID } from '@pushwoosh/kit-helpers';
1
2
  import { parseMessageProperties } from './helpers';
2
3
  export class ResendEmailPayloadMapper {
3
4
  static getPayload(applicationCode, originalMessage, newSubject) {
4
5
  const props = parseMessageProperties(originalMessage.properties);
5
6
  const expression = `((Event("${applicationCode}", "PW_EmailSent", date daysago lte 365, count gte 1, attribute "message_code" eq "${originalMessage.code}")) \\ (Event("${applicationCode}", "PW_EmailOpen", date daysago lte 365, count gte 1, attribute "message_code" eq "${originalMessage.code}")))`;
6
7
  return {
7
- transaction_id: crypto.randomUUID(),
8
+ transaction_id: randomUUID(),
8
9
  segment: {
9
10
  schedule: {
10
11
  after: '0s'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/smart-components-kit",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Stateful, data-connected React components shared by Pushwoosh micro-frontends",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "@floating-ui/react-dom": "^2.1.9",
29
29
  "@pushwoosh/dumb-components": "^4.18.0",
30
30
  "@pushwoosh/kit-constants": "^3.2.1",
31
- "@pushwoosh/kit-helpers": "^4.17.2",
31
+ "@pushwoosh/kit-helpers": "^4.18.0",
32
32
  "@pushwoosh/kit-icons": "^3.0.2",
33
33
  "@pushwoosh/kit-typography": "^2.2.0",
34
34
  "@pushwoosh/rpc-v2-http-api-data": "^0.2.556",