@capillarytech/creatives-library 8.0.258 → 8.0.260

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,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { FormattedMessage } from 'react-intl';
3
4
  import androidArrowDownIcon from '../assets/android-arrow-down.svg';
5
+ import messages from '../../messages';
4
6
 
5
7
  const AndroidMobileChromeHeader = ({
6
8
  icon,
@@ -17,7 +19,9 @@ const AndroidMobileChromeHeader = ({
17
19
  <div className="notification-content android-mobile-chrome-content">
18
20
  <div className="notification-title-row">
19
21
  <div className="notification-title">{notificationTitle}</div>
20
- <div className="notification-time">2:29 PM</div>
22
+ <div className="notification-time">
23
+ <FormattedMessage {...messages.notificationTime} />
24
+ </div>
21
25
  </div>
22
26
  <div className="notification-body">{notificationBody}</div>
23
27
  </div>
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { FormattedMessage } from 'react-intl';
3
4
  import androidArrowUpIcon from '../assets/android-arrow-up.svg';
4
5
  import { BROWSER_DISPLAY_NAMES_ANDROID } from '../constants';
6
+ import messages from '../../messages';
5
7
 
6
8
  /**
7
9
  * AndroidMobileExpanded Component
@@ -53,7 +55,9 @@ const AndroidMobileExpanded = ({
53
55
  </span>
54
56
  <span className="android-mobile-expanded-domain-time">
55
57
  <span className="android-mobile-expanded-domain">{displayUrl}</span>
56
- <span className="android-mobile-expanded-time">2:29 PM</span>
58
+ <span className="android-mobile-expanded-time">
59
+ <FormattedMessage {...messages.notificationTime} />
60
+ </span>
57
61
  </span>
58
62
  </div>
59
63
  </div>
@@ -46,7 +46,11 @@ exports[`AndroidMobileExpanded Basic Rendering should render correctly with defa
46
46
  <span
47
47
  className="android-mobile-expanded-time"
48
48
  >
49
- 2:29 PM
49
+ <FormattedMessage
50
+ defaultMessage="2:29 PM"
51
+ id="creatives.containersV2.WebPush.notificationTime"
52
+ values={Object {}}
53
+ />
50
54
  </span>
51
55
  </span>
52
56
  </div>
@@ -28,6 +28,13 @@
28
28
  }
29
29
  }
30
30
 
31
+ // Wrapper for disabled dropdown (State when Windows, or when stateDropdownDisabled)
32
+ // Scoped under container to avoid conflicts; keeps controls visible but non-interactive
33
+ .preview-control-disabled-wrapper {
34
+ pointer-events: none;
35
+ opacity: 0.6;
36
+ }
37
+
31
38
  .preview-controls-compact {
32
39
  display: block;
33
40
  margin-bottom: 16px;