@atlaskit/smart-card 45.7.2 → 45.7.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 45.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8123ef2a41a8c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8123ef2a41a8c) -
8
+ [ux] Fix spacing around embed card Rovo footer actions.
9
+
3
10
  ## 45.7.2
4
11
 
5
12
  ### Patch Changes
@@ -220,11 +220,14 @@ var PersonalizationService = exports.PersonalizationService = /*#__PURE__*/funct
220
220
  }, {
221
221
  key: "clearStoredProviderPctMaps",
222
222
  value: function clearStoredProviderPctMaps() {
223
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
223
224
  if (typeof globalThis.localStorage === 'undefined' || globalThis.localStorage === null) {
224
225
  return;
225
226
  }
226
227
  var keysToRemove = [];
228
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
227
229
  for (var index = 0; index < globalThis.localStorage.length; index += 1) {
230
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
228
231
  var key = globalThis.localStorage.key(index);
229
232
  if (key !== null && key.startsWith(LOCAL_STORAGE_ROW_KEY_PREFIX)) {
230
233
  keysToRemove.push(key);
@@ -233,6 +236,7 @@ var PersonalizationService = exports.PersonalizationService = /*#__PURE__*/funct
233
236
  for (var _i2 = 0, _keysToRemove = keysToRemove; _i2 < _keysToRemove.length; _i2++) {
234
237
  var _key = _keysToRemove[_i2];
235
238
  try {
239
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
236
240
  globalThis.localStorage.removeItem(_key);
237
241
  } catch (_unused5) {
238
242
  /* ignore */
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card" || '',
14
- packageVersion: "45.7.1" || ''
14
+ packageVersion: "45.7.2" || ''
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,3 +1,3 @@
1
1
 
2
- ._zulpidpf{gap:0}._1e0c1txw{display:flex}
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c1txw{display:flex}
3
3
  ._2lx2vrvc{flex-direction:row}
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
27
27
  var HIDE_SECONDARY_ACTIONS_WIDTH = 320;
28
28
  var PRIMARY_ACTION_ICON_ONLY_WIDTH = 220;
29
29
  var styles = {
30
- actionGroup: "_zulpidpf _1e0c1txw _2lx2vrvc"
30
+ actionGroup: "_zulp1b66 _1e0c1txw _2lx2vrvc"
31
31
  };
32
32
  var RovoPromptButton = function RovoPromptButton(_ref) {
33
33
  var _ref$hideContent = _ref.hideContent,
@@ -1,6 +1,10 @@
1
1
  ._16jlkb7n{flex-grow:1}
2
2
  ._1bah1y6m{justify-content:flex-start}
3
3
  ._1e0c1txw{display:flex}
4
+ ._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
4
5
  ._1tkeidpf{min-height:0}
5
6
  ._2lx21bp4{flex-direction:column}
6
- ._4t3i1osq{height:100%}
7
+ ._4t3i1osq{height:100%}
8
+ ._85i5u2gc{padding-block-end:var(--ds-space-100,8px)}
9
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
10
+ ._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
@@ -45,7 +45,7 @@ EmbedRovoActionsFooter.displayName = 'lazy(EmbedRovoActionsFooter)';
45
45
  var styles = {
46
46
  contentWithFooter: "_1e0c1txw _2lx21bp4 _4t3i1osq _1tkeidpf",
47
47
  frameWithFooter: "_16jlkb7n _1tkeidpf",
48
- footer: "_1e0c1txw _1bah1y6m"
48
+ footer: "_1e0c1txw _1bah1y6m _85i5u2gc _1q51u2gc _y4tiu2gc _bozgu2gc"
49
49
  };
50
50
  var EmbedFrameWithRovoFooter = function EmbedFrameWithRovoFooter(_ref) {
51
51
  var actionOptions = _ref.actionOptions,
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "45.7.1",
22
+ packageVersion: "45.7.2",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -123,11 +123,14 @@ export class PersonalizationService {
123
123
  this.clearStoredProviderPctMaps();
124
124
  }
125
125
  clearStoredProviderPctMaps() {
126
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
126
127
  if (typeof globalThis.localStorage === 'undefined' || globalThis.localStorage === null) {
127
128
  return;
128
129
  }
129
130
  const keysToRemove = [];
131
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
130
132
  for (let index = 0; index < globalThis.localStorage.length; index += 1) {
133
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
131
134
  const key = globalThis.localStorage.key(index);
132
135
  if (key !== null && key.startsWith(LOCAL_STORAGE_ROW_KEY_PREFIX)) {
133
136
  keysToRemove.push(key);
@@ -135,6 +138,7 @@ export class PersonalizationService {
135
138
  }
136
139
  for (const key of keysToRemove) {
137
140
  try {
141
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
138
142
  globalThis.localStorage.removeItem(key);
139
143
  } catch {
140
144
  /* ignore */
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card" || '',
5
- packageVersion: "45.7.1" || ''
5
+ packageVersion: "45.7.2" || ''
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,3 +1,3 @@
1
1
 
2
- ._zulpidpf{gap:0}._1e0c1txw{display:flex}
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c1txw{display:flex}
3
3
  ._2lx2vrvc{flex-direction:row}
@@ -12,7 +12,7 @@ import AIEditIcon from '../../../FlexibleCard/assets/ai-edit-icon';
12
12
  const HIDE_SECONDARY_ACTIONS_WIDTH = 320;
13
13
  const PRIMARY_ACTION_ICON_ONLY_WIDTH = 220;
14
14
  const styles = {
15
- actionGroup: "_zulpidpf _1e0c1txw _2lx2vrvc"
15
+ actionGroup: "_zulp1b66 _1e0c1txw _2lx2vrvc"
16
16
  };
17
17
  const RovoPromptButton = ({
18
18
  hideContent = false,
@@ -1,6 +1,10 @@
1
1
  ._16jlkb7n{flex-grow:1}
2
2
  ._1bah1y6m{justify-content:flex-start}
3
3
  ._1e0c1txw{display:flex}
4
+ ._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
4
5
  ._1tkeidpf{min-height:0}
5
6
  ._2lx21bp4{flex-direction:column}
6
- ._4t3i1osq{height:100%}
7
+ ._4t3i1osq{height:100%}
8
+ ._85i5u2gc{padding-block-end:var(--ds-space-100,8px)}
9
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
10
+ ._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
@@ -27,7 +27,7 @@ EmbedRovoActionsFooter.displayName = 'lazy(EmbedRovoActionsFooter)';
27
27
  const styles = {
28
28
  contentWithFooter: "_1e0c1txw _2lx21bp4 _4t3i1osq _1tkeidpf",
29
29
  frameWithFooter: "_16jlkb7n _1tkeidpf",
30
- footer: "_1e0c1txw _1bah1y6m"
30
+ footer: "_1e0c1txw _1bah1y6m _85i5u2gc _1q51u2gc _y4tiu2gc _bozgu2gc"
31
31
  };
32
32
  const EmbedFrameWithRovoFooter = ({
33
33
  actionOptions,
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
9
9
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
10
10
  const PACKAGE_DATA = {
11
11
  packageName: "@atlaskit/smart-card",
12
- packageVersion: "45.7.1",
12
+ packageVersion: "45.7.2",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -209,11 +209,14 @@ export var PersonalizationService = /*#__PURE__*/function () {
209
209
  }, {
210
210
  key: "clearStoredProviderPctMaps",
211
211
  value: function clearStoredProviderPctMaps() {
212
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
212
213
  if (typeof globalThis.localStorage === 'undefined' || globalThis.localStorage === null) {
213
214
  return;
214
215
  }
215
216
  var keysToRemove = [];
217
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
216
218
  for (var index = 0; index < globalThis.localStorage.length; index += 1) {
219
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
217
220
  var key = globalThis.localStorage.key(index);
218
221
  if (key !== null && key.startsWith(LOCAL_STORAGE_ROW_KEY_PREFIX)) {
219
222
  keysToRemove.push(key);
@@ -222,6 +225,7 @@ export var PersonalizationService = /*#__PURE__*/function () {
222
225
  for (var _i2 = 0, _keysToRemove = keysToRemove; _i2 < _keysToRemove.length; _i2++) {
223
226
  var _key = _keysToRemove[_i2];
224
227
  try {
228
+ // eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
225
229
  globalThis.localStorage.removeItem(_key);
226
230
  } catch (_unused5) {
227
231
  /* ignore */
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card" || '',
7
- packageVersion: "45.7.1" || ''
7
+ packageVersion: "45.7.2" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,3 +1,3 @@
1
1
 
2
- ._zulpidpf{gap:0}._1e0c1txw{display:flex}
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c1txw{display:flex}
3
3
  ._2lx2vrvc{flex-direction:row}
@@ -18,7 +18,7 @@ import AIEditIcon from '../../../FlexibleCard/assets/ai-edit-icon';
18
18
  var HIDE_SECONDARY_ACTIONS_WIDTH = 320;
19
19
  var PRIMARY_ACTION_ICON_ONLY_WIDTH = 220;
20
20
  var styles = {
21
- actionGroup: "_zulpidpf _1e0c1txw _2lx2vrvc"
21
+ actionGroup: "_zulp1b66 _1e0c1txw _2lx2vrvc"
22
22
  };
23
23
  var RovoPromptButton = function RovoPromptButton(_ref) {
24
24
  var _ref$hideContent = _ref.hideContent,
@@ -1,6 +1,10 @@
1
1
  ._16jlkb7n{flex-grow:1}
2
2
  ._1bah1y6m{justify-content:flex-start}
3
3
  ._1e0c1txw{display:flex}
4
+ ._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
4
5
  ._1tkeidpf{min-height:0}
5
6
  ._2lx21bp4{flex-direction:column}
6
- ._4t3i1osq{height:100%}
7
+ ._4t3i1osq{height:100%}
8
+ ._85i5u2gc{padding-block-end:var(--ds-space-100,8px)}
9
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
10
+ ._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
@@ -34,7 +34,7 @@ EmbedRovoActionsFooter.displayName = 'lazy(EmbedRovoActionsFooter)';
34
34
  var styles = {
35
35
  contentWithFooter: "_1e0c1txw _2lx21bp4 _4t3i1osq _1tkeidpf",
36
36
  frameWithFooter: "_16jlkb7n _1tkeidpf",
37
- footer: "_1e0c1txw _1bah1y6m"
37
+ footer: "_1e0c1txw _1bah1y6m _85i5u2gc _1q51u2gc _y4tiu2gc _bozgu2gc"
38
38
  };
39
39
  var EmbedFrameWithRovoFooter = function EmbedFrameWithRovoFooter(_ref) {
40
40
  var actionOptions = _ref.actionOptions,
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  var PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "45.7.1",
15
+ packageVersion: "45.7.2",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "45.7.2",
3
+ "version": "45.7.3",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,9 +12,7 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "sideEffects": [
16
- "**/*.compiled.css"
17
- ],
15
+ "sideEffects": ["**/*.compiled.css"],
18
16
  "atlaskit:src": "src/index.ts",
19
17
  "atlassian": {
20
18
  "i18n": true,
@@ -88,11 +86,11 @@
88
86
  "@atlaskit/textfield": "^9.1.0",
89
87
  "@atlaskit/theme": "^26.1.0",
90
88
  "@atlaskit/tile": "^2.1.0",
91
- "@atlaskit/tmp-editor-statsig": "^121.2.0",
89
+ "@atlaskit/tmp-editor-statsig": "^121.3.0",
92
90
  "@atlaskit/tokens": "^15.4.0",
93
91
  "@atlaskit/tooltip": "^23.1.0",
94
92
  "@atlaskit/ufo": "^1.0.0",
95
- "@atlaskit/width-detector": "^6.1.0",
93
+ "@atlaskit/width-detector": "^6.2.0",
96
94
  "@babel/runtime": "^7.0.0",
97
95
  "@compiled/react": "^0.20.0",
98
96
  "@formatjs/intl-utils": "^3.8.4",
@@ -152,21 +150,12 @@
152
150
  },
153
151
  "techstack": {
154
152
  "@repo/internal": {
155
- "design-tokens": [
156
- "color",
157
- "spacing"
158
- ],
159
- "styling": [
160
- "compiled"
161
- ]
153
+ "design-tokens": ["color", "spacing"],
154
+ "styling": ["compiled"]
162
155
  },
163
156
  "@atlassian/frontend": {
164
- "import-structure": [
165
- "atlassian-conventions"
166
- ],
167
- "circular-dependencies": [
168
- "file-and-folder-level"
169
- ]
157
+ "import-structure": ["atlassian-conventions"],
158
+ "circular-dependencies": ["file-and-folder-level"]
170
159
  }
171
160
  },
172
161
  "platform-feature-flags": {