@atlaskit/smart-card 43.1.6 → 43.1.8
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 +17 -67
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/index.js +2 -3
- package/dist/cjs/view/EmbedCard/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +6 -3
- package/dist/cjs/view/InlineCard/common/inline-lozenge/index.js +11 -4
- package/dist/cjs/view/InlineCard/index.js +2 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/index.js +4 -6
- package/dist/es2019/view/EmbedCard/index.js +3 -6
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +6 -3
- package/dist/es2019/view/InlineCard/common/inline-lozenge/index.js +11 -4
- package/dist/es2019/view/InlineCard/index.js +3 -6
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/index.js +3 -3
- package/dist/esm/view/EmbedCard/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +6 -3
- package/dist/esm/view/InlineCard/common/inline-lozenge/index.js +11 -4
- package/dist/esm/view/InlineCard/index.js +2 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`57d4a5b7703ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57d4a5b7703ef) -
|
|
8
|
+
Cleans up platform_renderer_blindspots
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 43.1.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`a91dedaff8d02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a91dedaff8d02) -
|
|
16
|
+
[ux] Migrate legacy icons.
|
|
17
|
+
- [`c8fcf531a86b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c8fcf531a86b8) -
|
|
18
|
+
[ux] Scale status in smart link inside excerpt when content in dense mode
|
|
19
|
+
|
|
3
20
|
## 43.1.6
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -6312,7 +6329,6 @@
|
|
|
6312
6329
|
|
|
6313
6330
|
- [#32793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32793)
|
|
6314
6331
|
[`9c49eef4c87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c49eef4c87) - [ux]
|
|
6315
|
-
|
|
6316
6332
|
- Add lozenge action to hover preview (wip, opt-in, feature flag)
|
|
6317
6333
|
- Fix hover preview's action dropdown menu showing behind container
|
|
6318
6334
|
- Allow setting z-index for portal component inside flexible smart links
|
|
@@ -7412,7 +7428,6 @@
|
|
|
7412
7428
|
- [#24442](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24442)
|
|
7413
7429
|
[`d0b3a262e03`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d0b3a262e03) - [ux]
|
|
7414
7430
|
Embed Preview: Update the new embed preview modal UX
|
|
7415
|
-
|
|
7416
7431
|
- Make title smaller
|
|
7417
7432
|
- Reduce gap between element
|
|
7418
7433
|
- Hide resize button on smaller screen
|
|
@@ -7536,7 +7551,6 @@
|
|
|
7536
7551
|
- [#22592](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22592)
|
|
7537
7552
|
[`e15410365b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e15410365b2) - - export
|
|
7538
7553
|
types/functions in linking common to be used in smart card
|
|
7539
|
-
|
|
7540
7554
|
- add flag to card action to override re-using previous 'resolved' state
|
|
7541
7555
|
|
|
7542
7556
|
- add prop to cardState which reflects the metadata state, can be pending, resolved or errored
|
|
@@ -7832,13 +7846,11 @@
|
|
|
7832
7846
|
are now as follows:
|
|
7833
7847
|
|
|
7834
7848
|
#### `ui.cardClickedEvent`
|
|
7835
|
-
|
|
7836
7849
|
- Now contains `location` as described by the `useSmartLinkAnalytics` hook.
|
|
7837
7850
|
- Now is fired in `unauthorized`, `errored` and `forbidden` states, with the `status` attribute
|
|
7838
7851
|
representing the state of the event.
|
|
7839
7852
|
|
|
7840
7853
|
#### `ui.renderSuccessEvent`
|
|
7841
|
-
|
|
7842
7854
|
- Now contains the `status` attribute, representing the state of the event (`unauthorized`,
|
|
7843
7855
|
`errored`, `resolved`, etc.)
|
|
7844
7856
|
|
|
@@ -8001,7 +8013,6 @@
|
|
|
8001
8013
|
- [#20562](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20562)
|
|
8002
8014
|
[`6ee499cbb73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ee499cbb73) - - Add
|
|
8003
8015
|
@atlaskit/link-provider as peerDependency.
|
|
8004
|
-
|
|
8005
8016
|
- Use Provider/Client from @atlaskit/link-provider and remove local version.
|
|
8006
8017
|
- Re export moved things from @atlaskit/link-provider to make adoption easier
|
|
8007
8018
|
|
|
@@ -9104,7 +9115,6 @@
|
|
|
9104
9115
|
|
|
9105
9116
|
As of this version of `@atlaskit/smart-card`, when a Smart Link is initially rendered, one of two
|
|
9106
9117
|
things will take place:
|
|
9107
|
-
|
|
9108
9118
|
- The link will be considered as within the viewport, and a `fetch` and `render` path will be
|
|
9109
9119
|
taken, or;
|
|
9110
9120
|
- The link will be considered as outside of the viewport, and a `prefetch` and `render` later path
|
|
@@ -9116,7 +9126,6 @@
|
|
|
9116
9126
|
Links is fetched in the background, and persisted to the store.
|
|
9117
9127
|
|
|
9118
9128
|
A few additional points here are:
|
|
9119
|
-
|
|
9120
9129
|
- The prefetching logic has been implemented as a hook which can be used in other components,
|
|
9121
9130
|
`usePrefetch`;
|
|
9122
9131
|
- The prefetching logic is error-safe, in that, if errors take place whilst replacing there should
|
|
@@ -9164,7 +9173,6 @@
|
|
|
9164
9173
|
|
|
9165
9174
|
Added integration tests across the board, asserting that a new window is opened to kick off the
|
|
9166
9175
|
3LO flow.
|
|
9167
|
-
|
|
9168
9176
|
- Added integration test for account connection and try another account flows for Inline Links;
|
|
9169
9177
|
- Added integration test for account connection and try another account flows for Card Links;
|
|
9170
9178
|
- Added integration test for account connection and try another account flows for Embed Links;
|
|
@@ -9174,7 +9182,6 @@
|
|
|
9174
9182
|
|
|
9175
9183
|
Further, added an `AuthorizationWindow` method to the `@atlaskit/media-integration-test-helpers`,
|
|
9176
9184
|
with the following methods:
|
|
9177
|
-
|
|
9178
9185
|
- `AuthorizationWindow.open()` - to open a window to authorize, dependent on which card state it
|
|
9179
9186
|
is being activated from;
|
|
9180
9187
|
- `AuthorizationWindow.checkUrl()` - to check if the window URL when redirected is the same as the
|
|
@@ -9589,7 +9596,6 @@
|
|
|
9589
9596
|
|
|
9590
9597
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
9591
9598
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
9592
|
-
|
|
9593
9599
|
- @atlaskit/docs@8.3.2
|
|
9594
9600
|
- @atlaskit/analytics-next@6.3.5
|
|
9595
9601
|
- @atlaskit/button@13.3.7
|
|
@@ -9910,12 +9916,10 @@ Bumped dependencies.
|
|
|
9910
9916
|
safety. Flow types are no longer provided. No behavioural changes.
|
|
9911
9917
|
|
|
9912
9918
|
**Breaking changes**
|
|
9913
|
-
|
|
9914
9919
|
- `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
|
|
9915
9920
|
- `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
|
|
9916
9921
|
|
|
9917
9922
|
**Breaking changes to TypeScript annotations**
|
|
9918
|
-
|
|
9919
9923
|
- `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
|
|
9920
9924
|
props as a generic type.
|
|
9921
9925
|
- `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
|
|
@@ -10020,7 +10024,6 @@ Bumped dependencies.
|
|
|
10020
10024
|
- [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
|
|
10021
10025
|
|
|
10022
10026
|
In this PR, we are:
|
|
10023
|
-
|
|
10024
10027
|
- Re-introducing dist build folders
|
|
10025
10028
|
- Adding back cjs
|
|
10026
10029
|
- Replacing es5 by cjs and es2015 by esm
|
|
@@ -10149,7 +10152,6 @@ Bumped dependencies.
|
|
|
10149
10152
|
### Patch Changes
|
|
10150
10153
|
|
|
10151
10154
|
- [patch][1347760307](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1347760307):
|
|
10152
|
-
|
|
10153
10155
|
- fix pull request, branch and commit name formatting
|
|
10154
10156
|
|
|
10155
10157
|
## 11.1.4
|
|
@@ -10167,7 +10169,6 @@ Bumped dependencies.
|
|
|
10167
10169
|
## 11.1.3
|
|
10168
10170
|
|
|
10169
10171
|
- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
|
|
10170
|
-
|
|
10171
10172
|
- This is just a safety release in case anything strange happened in in the previous one. See Pull
|
|
10172
10173
|
Request #5942 for details
|
|
10173
10174
|
|
|
@@ -10191,50 +10192,42 @@ Bumped dependencies.
|
|
|
10191
10192
|
## 11.1.0
|
|
10192
10193
|
|
|
10193
10194
|
- [minor][4969df0716](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4969df0716):
|
|
10194
|
-
|
|
10195
10195
|
- fix lazy rendering bugs in Smart Links.
|
|
10196
10196
|
|
|
10197
10197
|
## 11.0.5
|
|
10198
10198
|
|
|
10199
10199
|
- [patch][27f666ed85](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/27f666ed85):
|
|
10200
|
-
|
|
10201
10200
|
- Fixed example.
|
|
10202
10201
|
|
|
10203
10202
|
## 11.0.4
|
|
10204
10203
|
|
|
10205
10204
|
- [patch][94ffb3b638](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/94ffb3b638):
|
|
10206
|
-
|
|
10207
10205
|
- check for taskType icon in the json payload
|
|
10208
10206
|
|
|
10209
10207
|
## 11.0.3
|
|
10210
10208
|
|
|
10211
10209
|
- [patch][6a52b3d258](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6a52b3d258):
|
|
10212
|
-
|
|
10213
10210
|
- fix for clicking behaviour in view/edit mode for Inline Smart Links.
|
|
10214
10211
|
|
|
10215
10212
|
## 11.0.2
|
|
10216
10213
|
|
|
10217
10214
|
- [patch][7e18a6398b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e18a6398b):
|
|
10218
|
-
|
|
10219
10215
|
- improve type safety when defining smart-card environment
|
|
10220
10216
|
|
|
10221
10217
|
## 11.0.1
|
|
10222
10218
|
|
|
10223
10219
|
- [patch][b7687b9981](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b7687b9981):
|
|
10224
|
-
|
|
10225
10220
|
- Changed smart link functionality so that it will open in the same tab if clicked.
|
|
10226
10221
|
|
|
10227
10222
|
## 11.0.0
|
|
10228
10223
|
|
|
10229
10224
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
10230
|
-
|
|
10231
10225
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
10232
10226
|
this package, please ensure you use at least this version of react and react-dom.
|
|
10233
10227
|
|
|
10234
10228
|
## 10.5.0
|
|
10235
10229
|
|
|
10236
10230
|
- [minor][593404cba8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/593404cba8):
|
|
10237
|
-
|
|
10238
10231
|
- add status lozenge to source code issue references.
|
|
10239
10232
|
|
|
10240
10233
|
## 10.4.2
|
|
@@ -10250,13 +10243,11 @@ Bumped dependencies.
|
|
|
10250
10243
|
## 10.4.1
|
|
10251
10244
|
|
|
10252
10245
|
- [patch][3e4c4d7e2d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3e4c4d7e2d):
|
|
10253
|
-
|
|
10254
10246
|
- fix: send 'Origin' header in resolve requests
|
|
10255
10247
|
|
|
10256
10248
|
## 10.4.0
|
|
10257
10249
|
|
|
10258
10250
|
- [minor][da5a7f3390](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/da5a7f3390):
|
|
10259
|
-
|
|
10260
10251
|
- fix third-party link extractors to resolve URLs more accurately.
|
|
10261
10252
|
|
|
10262
10253
|
## 10.3.1
|
|
@@ -10269,7 +10260,6 @@ Bumped dependencies.
|
|
|
10269
10260
|
## 10.3.0
|
|
10270
10261
|
|
|
10271
10262
|
- [minor][ce985861c3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ce985861c3):
|
|
10272
|
-
|
|
10273
10263
|
- Added analytics for UI actions, and updated existing operational analytics events
|
|
10274
10264
|
|
|
10275
10265
|
## 10.2.4
|
|
@@ -10293,7 +10283,6 @@ Bumped dependencies.
|
|
|
10293
10283
|
## 10.2.3
|
|
10294
10284
|
|
|
10295
10285
|
- [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
|
|
10296
|
-
|
|
10297
10286
|
- @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
|
|
10298
10287
|
supplied from itself.
|
|
10299
10288
|
|
|
@@ -10320,19 +10309,16 @@ Bumped dependencies.
|
|
|
10320
10309
|
## 10.2.1
|
|
10321
10310
|
|
|
10322
10311
|
- [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
|
|
10323
|
-
|
|
10324
10312
|
- Enable esModuleInterop for typescript, this allows correct use of default exports
|
|
10325
10313
|
|
|
10326
10314
|
## 10.2.0
|
|
10327
10315
|
|
|
10328
10316
|
- [minor][9b0dd21ce7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9b0dd21ce7):
|
|
10329
|
-
|
|
10330
10317
|
- allow the appearance of lozenges within smart link tasks to be configured
|
|
10331
10318
|
|
|
10332
10319
|
## 10.1.2
|
|
10333
10320
|
|
|
10334
10321
|
- [patch][aa117f5341](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/aa117f5341):
|
|
10335
|
-
|
|
10336
10322
|
- fix alignment and UI for inline Smart Links.
|
|
10337
10323
|
|
|
10338
10324
|
## 10.1.1
|
|
@@ -10345,7 +10331,6 @@ Bumped dependencies.
|
|
|
10345
10331
|
## 10.1.0
|
|
10346
10332
|
|
|
10347
10333
|
- [minor][11a6c98707](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/11a6c98707):
|
|
10348
|
-
|
|
10349
10334
|
- refactor Smart Links frontend directory structure.
|
|
10350
10335
|
|
|
10351
10336
|
## 10.0.2
|
|
@@ -10358,19 +10343,16 @@ Bumped dependencies.
|
|
|
10358
10343
|
## 10.0.1
|
|
10359
10344
|
|
|
10360
10345
|
- [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
|
|
10361
|
-
|
|
10362
10346
|
- Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
|
|
10363
10347
|
|
|
10364
10348
|
## 10.0.0
|
|
10365
10349
|
|
|
10366
10350
|
- [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
|
|
10367
|
-
|
|
10368
10351
|
- Dropped ES5 distributables from the typescript packages
|
|
10369
10352
|
|
|
10370
10353
|
## 9.11.4
|
|
10371
10354
|
|
|
10372
10355
|
- [patch][8ed53a1cbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8ed53a1cbb):
|
|
10373
|
-
|
|
10374
10356
|
- fix padding, wrapping for inline smart links.
|
|
10375
10357
|
|
|
10376
10358
|
## 9.11.3
|
|
@@ -10405,31 +10387,26 @@ Bumped dependencies.
|
|
|
10405
10387
|
## 9.11.1
|
|
10406
10388
|
|
|
10407
10389
|
- [patch][2cb8c44165](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2cb8c44165):
|
|
10408
|
-
|
|
10409
10390
|
- Fix environments mix-up
|
|
10410
10391
|
|
|
10411
10392
|
## 9.11.0
|
|
10412
10393
|
|
|
10413
10394
|
- [minor][41147bbc4c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/41147bbc4c):
|
|
10414
|
-
|
|
10415
10395
|
- Fix for links in editor
|
|
10416
10396
|
|
|
10417
10397
|
## 9.10.0
|
|
10418
10398
|
|
|
10419
10399
|
- [minor][ea423a619f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ea423a619f):
|
|
10420
|
-
|
|
10421
10400
|
- Fixed the call to the /check endpoint
|
|
10422
10401
|
|
|
10423
10402
|
## 9.9.0
|
|
10424
10403
|
|
|
10425
10404
|
- [minor][7f70e97f98](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7f70e97f98):
|
|
10426
|
-
|
|
10427
10405
|
- Added environments to client
|
|
10428
10406
|
|
|
10429
10407
|
## 9.8.0
|
|
10430
10408
|
|
|
10431
10409
|
- [minor][1594f351d9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1594f351d9):
|
|
10432
|
-
|
|
10433
10410
|
- added inline extractors for Bitbucket and Github.
|
|
10434
10411
|
|
|
10435
10412
|
## 9.7.1
|
|
@@ -10441,68 +10418,57 @@ Bumped dependencies.
|
|
|
10441
10418
|
## 9.7.0
|
|
10442
10419
|
|
|
10443
10420
|
- [minor][1c62bcce7d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1c62bcce7d):
|
|
10444
|
-
|
|
10445
10421
|
- Fix a problem with smart cards not appearing sometimes when lazy rendered and lazy loaded after
|
|
10446
10422
|
code-split.
|
|
10447
10423
|
|
|
10448
10424
|
## 9.6.8
|
|
10449
10425
|
|
|
10450
10426
|
- [patch][af3918bc89](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/af3918bc89):
|
|
10451
|
-
|
|
10452
10427
|
- The url part of the unauthorized link is now grey
|
|
10453
10428
|
|
|
10454
10429
|
## 9.6.7
|
|
10455
10430
|
|
|
10456
10431
|
- [patch][abce6949c0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/abce6949c0):
|
|
10457
|
-
|
|
10458
10432
|
- fix icon sizing and url key.
|
|
10459
10433
|
|
|
10460
10434
|
## 9.6.6
|
|
10461
10435
|
|
|
10462
10436
|
- [patch][5ae645d661](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5ae645d661):
|
|
10463
|
-
|
|
10464
10437
|
- Fixing analytics in smart-cards
|
|
10465
10438
|
|
|
10466
10439
|
## 9.6.5
|
|
10467
10440
|
|
|
10468
10441
|
- [patch][2035bef8fb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2035bef8fb):
|
|
10469
|
-
|
|
10470
10442
|
- Fix inline extractor priority preventing @type arrays in some cases.
|
|
10471
10443
|
|
|
10472
10444
|
## 9.6.4
|
|
10473
10445
|
|
|
10474
10446
|
- [patch][56c5a4b41f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/56c5a4b41f):
|
|
10475
|
-
|
|
10476
10447
|
- Fix "try again" should not be showing when there are no auth methods
|
|
10477
10448
|
|
|
10478
10449
|
## 9.6.3
|
|
10479
10450
|
|
|
10480
10451
|
- [patch][63e6f7d420](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/63e6f7d420):
|
|
10481
|
-
|
|
10482
10452
|
- Fix missing attributes for link view
|
|
10483
10453
|
|
|
10484
10454
|
## 9.6.2
|
|
10485
10455
|
|
|
10486
10456
|
- [patch][cbc601aed3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cbc601aed3):
|
|
10487
|
-
|
|
10488
10457
|
- Added missing type of events for Confluence
|
|
10489
10458
|
|
|
10490
10459
|
## 9.6.1
|
|
10491
10460
|
|
|
10492
10461
|
- [patch][bef9abc8de](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/bef9abc8de):
|
|
10493
|
-
|
|
10494
10462
|
- added background colour to inline card views, fixed icon alignment.
|
|
10495
10463
|
|
|
10496
10464
|
## 9.6.0
|
|
10497
10465
|
|
|
10498
10466
|
- [minor][27b12fdfc6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/27b12fdfc6):
|
|
10499
|
-
|
|
10500
10467
|
- added support for rendering of icons in Jira links
|
|
10501
10468
|
|
|
10502
10469
|
## 9.5.0
|
|
10503
10470
|
|
|
10504
10471
|
- [minor][d664fc3d49](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d664fc3d49):
|
|
10505
|
-
|
|
10506
10472
|
- added support for rendering of icons with Confluence links
|
|
10507
10473
|
|
|
10508
10474
|
## 9.4.1
|
|
@@ -10521,21 +10487,17 @@ Bumped dependencies.
|
|
|
10521
10487
|
## 9.4.0
|
|
10522
10488
|
|
|
10523
10489
|
- [minor][8ff07c1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8ff07c1):
|
|
10524
|
-
|
|
10525
10490
|
- Analytics, first attempt, validate the idea
|
|
10526
10491
|
|
|
10527
10492
|
- [minor][7777442](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7777442):
|
|
10528
|
-
|
|
10529
10493
|
- More analytics for smart links
|
|
10530
10494
|
|
|
10531
10495
|
- [minor][7302ea6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7302ea6):
|
|
10532
|
-
|
|
10533
10496
|
- Analytics for smart cards
|
|
10534
10497
|
|
|
10535
10498
|
## 9.3.0
|
|
10536
10499
|
|
|
10537
10500
|
- [minor][150626e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/150626e):
|
|
10538
|
-
|
|
10539
10501
|
- add support for source code repository urls (currently Bitbucket and Github) in smart-cards.
|
|
10540
10502
|
|
|
10541
10503
|
## 9.2.2
|
|
@@ -10548,19 +10510,16 @@ Bumped dependencies.
|
|
|
10548
10510
|
## 9.2.1
|
|
10549
10511
|
|
|
10550
10512
|
- [patch][9c50550](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c50550):
|
|
10551
|
-
|
|
10552
10513
|
- Do not show connect button if there are no auth methods.
|
|
10553
10514
|
|
|
10554
10515
|
## 9.2.0
|
|
10555
10516
|
|
|
10556
10517
|
- [minor][95f98cc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/95f98cc):
|
|
10557
|
-
|
|
10558
10518
|
- User can click on a smart card to open a new window/tab
|
|
10559
10519
|
|
|
10560
10520
|
## 9.1.0
|
|
10561
10521
|
|
|
10562
10522
|
- [minor][1175616](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1175616):
|
|
10563
|
-
|
|
10564
10523
|
- Simplified error state in inline cards: no red state anymore, just blue link
|
|
10565
10524
|
|
|
10566
10525
|
## 9.0.4
|
|
@@ -10609,13 +10568,11 @@ Bumped dependencies.
|
|
|
10609
10568
|
## 9.0.1
|
|
10610
10569
|
|
|
10611
10570
|
- [patch][4c0c2a0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4c0c2a0):
|
|
10612
|
-
|
|
10613
10571
|
- Fix Cards throwing Error when client is not provided.
|
|
10614
10572
|
|
|
10615
10573
|
## 9.0.0
|
|
10616
10574
|
|
|
10617
10575
|
- [major][df32968](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df32968):
|
|
10618
|
-
|
|
10619
10576
|
- Introduced pending state (which is represented as a link) and a race between resolving state and
|
|
10620
10577
|
the data fetch.
|
|
10621
10578
|
|
|
@@ -10661,7 +10618,6 @@ Bumped dependencies.
|
|
|
10661
10618
|
## 8.8.2
|
|
10662
10619
|
|
|
10663
10620
|
- [patch][b859e08](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b859e08):
|
|
10664
|
-
|
|
10665
10621
|
- Update dependent versions
|
|
10666
10622
|
|
|
10667
10623
|
## 8.8.1
|
|
@@ -10673,37 +10629,31 @@ Bumped dependencies.
|
|
|
10673
10629
|
## 8.8.0
|
|
10674
10630
|
|
|
10675
10631
|
- [minor][93b31fa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/93b31fa):
|
|
10676
|
-
|
|
10677
10632
|
- Add support for nested <SmartCardProvider />
|
|
10678
10633
|
|
|
10679
10634
|
## 8.7.1
|
|
10680
10635
|
|
|
10681
10636
|
- [patch][00cd9a8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/00cd9a8):
|
|
10682
|
-
|
|
10683
10637
|
- Add tag support for inline task card.
|
|
10684
10638
|
|
|
10685
10639
|
## 8.7.0
|
|
10686
10640
|
|
|
10687
10641
|
- [minor][e89e244](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e89e244):
|
|
10688
|
-
|
|
10689
10642
|
- Implemented time-based caching for the client.
|
|
10690
10643
|
|
|
10691
10644
|
## 8.6.3
|
|
10692
10645
|
|
|
10693
10646
|
- [patch][4b989c3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4b989c3):
|
|
10694
|
-
|
|
10695
10647
|
- Fix inline cards crashing after change to the format.
|
|
10696
10648
|
|
|
10697
10649
|
## 8.6.2
|
|
10698
10650
|
|
|
10699
10651
|
- [patch][a567cc9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a567cc9):
|
|
10700
|
-
|
|
10701
10652
|
- Improve rendering of Smart Cards.
|
|
10702
10653
|
|
|
10703
10654
|
## 8.6.1
|
|
10704
10655
|
|
|
10705
10656
|
- [patch][7bc4461](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7bc4461):
|
|
10706
|
-
|
|
10707
10657
|
- ED-5565: support connecting external React.Context to nodeviews
|
|
10708
10658
|
|
|
10709
10659
|
## 8.6.0
|
|
@@ -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: "43.1.
|
|
14
|
+
packageVersion: "43.1.7"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.BlockCard = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _loadHold = _interopRequireDefault(require("@atlaskit/react-ufo/load-hold"));
|
|
12
11
|
var _useControlDataExportConfig = require("../../state/hooks/use-control-data-export-config");
|
|
13
12
|
var _shouldDataExport = require("../../utils/should-data-export");
|
|
@@ -23,9 +22,9 @@ var _UnauthorisedView = _interopRequireDefault(require("./views/UnauthorisedView
|
|
|
23
22
|
|
|
24
23
|
var UFOLoadHoldWrapper = function UFOLoadHoldWrapper(_ref) {
|
|
25
24
|
var children = _ref.children;
|
|
26
|
-
return
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_loadHold.default, {
|
|
27
26
|
name: "smart-card-block-card"
|
|
28
|
-
}), children)
|
|
27
|
+
}), children);
|
|
29
28
|
};
|
|
30
29
|
var BlockCard = exports.BlockCard = function BlockCard(_ref2) {
|
|
31
30
|
var id = _ref2.id,
|
|
@@ -8,7 +8,6 @@ exports.EmbedCard = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _loadHold = _interopRequireDefault(require("@atlaskit/react-ufo/load-hold"));
|
|
13
12
|
var _extractAccessContext = require("../../extractors/common/context/extractAccessContext");
|
|
14
13
|
var _embed = require("../../extractors/embed");
|
|
@@ -29,9 +28,9 @@ var _unauthorizedView = _interopRequireDefault(require("./views/unauthorized-vie
|
|
|
29
28
|
|
|
30
29
|
var UFOLoadHoldWrapper = function UFOLoadHoldWrapper(_ref) {
|
|
31
30
|
var children = _ref.children;
|
|
32
|
-
return
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_loadHold.default, {
|
|
33
32
|
name: "smart-card-embed-card"
|
|
34
|
-
}), children)
|
|
33
|
+
}), children);
|
|
35
34
|
};
|
|
36
35
|
var EmbedCard = exports.EmbedCard = /*#__PURE__*/_react.default.forwardRef(function (_ref2, iframeRef) {
|
|
37
36
|
var _details$meta, _forbiddenViewProps$c, _forbiddenViewProps$c2, _notFoundViewProps$co, _notFoundViewProps$co2;
|
|
@@ -12,10 +12,10 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
15
|
+
var _automation = _interopRequireDefault(require("@atlaskit/icon/core/automation"));
|
|
15
16
|
var _manualTriggerIcon = _interopRequireDefault(require("@atlaskit/legacy-custom-icons/manual-trigger-icon"));
|
|
16
17
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
17
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
19
19
|
var _menuContext = require("../../menu-context");
|
|
20
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
21
|
var styles = {
|
|
@@ -49,10 +49,13 @@ var AutomationModalHeader = exports.AutomationModalHeader = function AutomationM
|
|
|
49
49
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
50
50
|
,
|
|
51
51
|
backgroundColor: "color.background.accent.green.subtlest"
|
|
52
|
-
}, /*#__PURE__*/React.createElement(
|
|
52
|
+
}, /*#__PURE__*/React.createElement(_automation.default, {
|
|
53
53
|
size: "small",
|
|
54
54
|
label: formatMessage(i18n.modalHeaderIconLabel),
|
|
55
|
-
|
|
55
|
+
color: "var(--ds-icon-accent-green, #22A06B)",
|
|
56
|
+
spacing: "compact",
|
|
57
|
+
LEGACY_fallbackIcon: _manualTriggerIcon.default,
|
|
58
|
+
LEGACY_size: "small"
|
|
56
59
|
})), /*#__PURE__*/React.createElement(_heading.default, {
|
|
57
60
|
size: "medium",
|
|
58
61
|
id: titleId
|
|
@@ -10,19 +10,26 @@ exports.default = void 0;
|
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
14
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
14
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
18
|
var wrapperStylesOld = null;
|
|
17
19
|
var wrapperStylesNew = null;
|
|
18
20
|
var InlineLozenge = function InlineLozenge(props) {
|
|
21
|
+
var shouldAddLozengeAttribute = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp');
|
|
19
22
|
if ((0, _platformFeatureFlags.fg)('jfp-magma-platform-lozenge-jump-fix')) {
|
|
20
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
23
|
+
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, shouldAddLozengeAttribute && {
|
|
24
|
+
'data-inline-card-lozenge': true
|
|
25
|
+
}, {
|
|
21
26
|
className: (0, _runtime.ax)(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
22
|
-
}, /*#__PURE__*/React.createElement(_lozenge.default, props));
|
|
27
|
+
}), /*#__PURE__*/React.createElement(_lozenge.default, props));
|
|
23
28
|
}
|
|
24
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, shouldAddLozengeAttribute && {
|
|
30
|
+
'data-inline-card-lozenge': true
|
|
31
|
+
}, {
|
|
25
32
|
className: (0, _runtime.ax)(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
26
|
-
}, /*#__PURE__*/React.createElement(_lozenge.default, props));
|
|
33
|
+
}), /*#__PURE__*/React.createElement(_lozenge.default, props));
|
|
27
34
|
};
|
|
28
35
|
var _default = exports.default = InlineLozenge;
|
|
@@ -40,7 +40,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
40
40
|
var _react = _interopRequireWildcard(require("react"));
|
|
41
41
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
42
42
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
43
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
44
43
|
var _loadHold = _interopRequireDefault(require("@atlaskit/react-ufo/load-hold"));
|
|
45
44
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
46
45
|
var _constants = require("../../constants");
|
|
@@ -60,9 +59,9 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
60
59
|
|
|
61
60
|
var UFOLoadHoldWrapper = function UFOLoadHoldWrapper(_ref) {
|
|
62
61
|
var children = _ref.children;
|
|
63
|
-
return
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_loadHold.default, {
|
|
64
63
|
name: "smart-card-inline-card"
|
|
65
|
-
}), children)
|
|
64
|
+
}), children);
|
|
66
65
|
};
|
|
67
66
|
var InlineCard = exports.InlineCard = function InlineCard(_ref2) {
|
|
68
67
|
var _details$meta, _providerForbidden$te;
|
|
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
22
22
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
23
23
|
var PACKAGE_DATA = {
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "43.1.
|
|
25
|
+
packageVersion: "43.1.7",
|
|
26
26
|
componentName: 'linkUrl'
|
|
27
27
|
};
|
|
28
28
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -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: "43.1.
|
|
5
|
+
packageVersion: "43.1.7"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
// TODO: Package Owner - please fix:
|
|
5
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
6
|
import UFOHoldLoad from '@atlaskit/react-ufo/load-hold';
|
|
@@ -15,11 +15,9 @@ import ResolvedView from './views/ResolvedView';
|
|
|
15
15
|
import UnauthorisedView from './views/UnauthorisedView';
|
|
16
16
|
const UFOLoadHoldWrapper = ({
|
|
17
17
|
children
|
|
18
|
-
}) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}), children) : children;
|
|
22
|
-
};
|
|
18
|
+
}) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UFOHoldLoad, {
|
|
19
|
+
name: "smart-card-block-card"
|
|
20
|
+
}), children);
|
|
23
21
|
export const BlockCard = ({
|
|
24
22
|
id,
|
|
25
23
|
url,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
// TODO: Package Owner - please fix:
|
|
6
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
7
6
|
import UFOHoldLoad from '@atlaskit/react-ufo/load-hold';
|
|
@@ -21,11 +20,9 @@ import { EmbedCardResolvedView } from './views/ResolvedView';
|
|
|
21
20
|
import UnauthorizedView from './views/unauthorized-view';
|
|
22
21
|
const UFOLoadHoldWrapper = ({
|
|
23
22
|
children
|
|
24
|
-
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}), children) : children;
|
|
28
|
-
};
|
|
23
|
+
}) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UFOHoldLoad, {
|
|
24
|
+
name: "smart-card-embed-card"
|
|
25
|
+
}), children);
|
|
29
26
|
export const EmbedCard = /*#__PURE__*/React.forwardRef(({
|
|
30
27
|
url,
|
|
31
28
|
cardState,
|
|
@@ -4,10 +4,10 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { defineMessages, useIntl } from 'react-intl-next';
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
|
+
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
7
8
|
import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
|
|
8
9
|
import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
|
|
9
10
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
10
|
-
import { G50 } from '@atlaskit/theme/colors';
|
|
11
11
|
import { useAutomationMenu } from '../../menu-context';
|
|
12
12
|
const styles = {
|
|
13
13
|
iconStyle: "_2rko12b0 _18zr1b66 _1rjcv77o _2hwxutpp",
|
|
@@ -44,10 +44,13 @@ export const AutomationModalHeader = ({
|
|
|
44
44
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
45
45
|
,
|
|
46
46
|
backgroundColor: "color.background.accent.green.subtlest"
|
|
47
|
-
}, /*#__PURE__*/React.createElement(
|
|
47
|
+
}, /*#__PURE__*/React.createElement(AutomationIcon, {
|
|
48
48
|
size: "small",
|
|
49
49
|
label: formatMessage(i18n.modalHeaderIconLabel),
|
|
50
|
-
|
|
50
|
+
color: "var(--ds-icon-accent-green, #22A06B)",
|
|
51
|
+
spacing: "compact",
|
|
52
|
+
LEGACY_fallbackIcon: LegacyManualTriggerIcon,
|
|
53
|
+
LEGACY_size: "small"
|
|
51
54
|
})), /*#__PURE__*/React.createElement(Heading, {
|
|
52
55
|
size: "medium",
|
|
53
56
|
id: titleId
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./index.compiled.css";
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
6
|
import Lozenge from '@atlaskit/lozenge';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
9
|
const wrapperStylesOld = null;
|
|
8
10
|
const wrapperStylesNew = null;
|
|
9
11
|
const InlineLozenge = props => {
|
|
12
|
+
const shouldAddLozengeAttribute = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
10
13
|
if (fg('jfp-magma-platform-lozenge-jump-fix')) {
|
|
11
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
14
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
|
|
15
|
+
'data-inline-card-lozenge': true
|
|
16
|
+
}, {
|
|
12
17
|
className: ax(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
13
|
-
}, /*#__PURE__*/React.createElement(Lozenge, props));
|
|
18
|
+
}), /*#__PURE__*/React.createElement(Lozenge, props));
|
|
14
19
|
}
|
|
15
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
20
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
|
|
21
|
+
'data-inline-card-lozenge': true
|
|
22
|
+
}, {
|
|
16
23
|
className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
17
|
-
}, /*#__PURE__*/React.createElement(Lozenge, props));
|
|
24
|
+
}), /*#__PURE__*/React.createElement(Lozenge, props));
|
|
18
25
|
};
|
|
19
26
|
export default InlineLozenge;
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
4
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
// TODO: Package Owner - please fix:
|
|
7
6
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
8
7
|
import UFOHoldLoad from '@atlaskit/react-ufo/load-hold';
|
|
@@ -21,11 +20,9 @@ import { InlineCardUnauthorizedView } from './UnauthorisedView';
|
|
|
21
20
|
export { InlineCardResolvedView, InlineCardResolvingView, InlineCardErroredView, InlineCardForbiddenView, InlineCardUnauthorizedView };
|
|
22
21
|
const UFOLoadHoldWrapper = ({
|
|
23
22
|
children
|
|
24
|
-
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}), children) : children;
|
|
28
|
-
};
|
|
23
|
+
}) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UFOHoldLoad, {
|
|
24
|
+
name: "smart-card-inline-card"
|
|
25
|
+
}), children);
|
|
29
26
|
export const InlineCard = ({
|
|
30
27
|
id,
|
|
31
28
|
url,
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
const PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "43.1.
|
|
15
|
+
packageVersion: "43.1.7",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -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: "43.1.
|
|
7
|
+
packageVersion: "43.1.7"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
// TODO: Package Owner - please fix:
|
|
5
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
6
|
import UFOHoldLoad from '@atlaskit/react-ufo/load-hold';
|
|
@@ -15,9 +15,9 @@ import ResolvedView from './views/ResolvedView';
|
|
|
15
15
|
import UnauthorisedView from './views/UnauthorisedView';
|
|
16
16
|
var UFOLoadHoldWrapper = function UFOLoadHoldWrapper(_ref) {
|
|
17
17
|
var children = _ref.children;
|
|
18
|
-
return
|
|
18
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UFOHoldLoad, {
|
|
19
19
|
name: "smart-card-block-card"
|
|
20
|
-
}), children)
|
|
20
|
+
}), children);
|
|
21
21
|
};
|
|
22
22
|
export var BlockCard = function BlockCard(_ref2) {
|
|
23
23
|
var id = _ref2.id,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
// TODO: Package Owner - please fix:
|
|
6
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
7
6
|
import UFOHoldLoad from '@atlaskit/react-ufo/load-hold';
|
|
@@ -21,9 +20,9 @@ import { EmbedCardResolvedView } from './views/ResolvedView';
|
|
|
21
20
|
import UnauthorizedView from './views/unauthorized-view';
|
|
22
21
|
var UFOLoadHoldWrapper = function UFOLoadHoldWrapper(_ref) {
|
|
23
22
|
var children = _ref.children;
|
|
24
|
-
return
|
|
23
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UFOHoldLoad, {
|
|
25
24
|
name: "smart-card-embed-card"
|
|
26
|
-
}), children)
|
|
25
|
+
}), children);
|
|
27
26
|
};
|
|
28
27
|
export var EmbedCard = /*#__PURE__*/React.forwardRef(function (_ref2, iframeRef) {
|
|
29
28
|
var _details$meta, _forbiddenViewProps$c, _forbiddenViewProps$c2, _notFoundViewProps$co, _notFoundViewProps$co2;
|
|
@@ -4,10 +4,10 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { defineMessages, useIntl } from 'react-intl-next';
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
|
+
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
7
8
|
import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
|
|
8
9
|
import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
|
|
9
10
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
10
|
-
import { G50 } from '@atlaskit/theme/colors';
|
|
11
11
|
import { useAutomationMenu } from '../../menu-context';
|
|
12
12
|
var styles = {
|
|
13
13
|
iconStyle: "_2rko12b0 _18zr1b66 _1rjcv77o _2hwxutpp",
|
|
@@ -40,10 +40,13 @@ export var AutomationModalHeader = function AutomationModalHeader(_ref) {
|
|
|
40
40
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
41
41
|
,
|
|
42
42
|
backgroundColor: "color.background.accent.green.subtlest"
|
|
43
|
-
}, /*#__PURE__*/React.createElement(
|
|
43
|
+
}, /*#__PURE__*/React.createElement(AutomationIcon, {
|
|
44
44
|
size: "small",
|
|
45
45
|
label: formatMessage(i18n.modalHeaderIconLabel),
|
|
46
|
-
|
|
46
|
+
color: "var(--ds-icon-accent-green, #22A06B)",
|
|
47
|
+
spacing: "compact",
|
|
48
|
+
LEGACY_fallbackIcon: LegacyManualTriggerIcon,
|
|
49
|
+
LEGACY_size: "small"
|
|
47
50
|
})), /*#__PURE__*/React.createElement(Heading, {
|
|
48
51
|
size: "medium",
|
|
49
52
|
id: titleId
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./index.compiled.css";
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
6
|
import Lozenge from '@atlaskit/lozenge';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
9
|
var wrapperStylesOld = null;
|
|
8
10
|
var wrapperStylesNew = null;
|
|
9
11
|
var InlineLozenge = function InlineLozenge(props) {
|
|
12
|
+
var shouldAddLozengeAttribute = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
10
13
|
if (fg('jfp-magma-platform-lozenge-jump-fix')) {
|
|
11
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
14
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
|
|
15
|
+
'data-inline-card-lozenge': true
|
|
16
|
+
}, {
|
|
12
17
|
className: ax(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
13
|
-
}, /*#__PURE__*/React.createElement(Lozenge, props));
|
|
18
|
+
}), /*#__PURE__*/React.createElement(Lozenge, props));
|
|
14
19
|
}
|
|
15
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
20
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
|
|
21
|
+
'data-inline-card-lozenge': true
|
|
22
|
+
}, {
|
|
16
23
|
className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
17
|
-
}, /*#__PURE__*/React.createElement(Lozenge, props));
|
|
24
|
+
}), /*#__PURE__*/React.createElement(Lozenge, props));
|
|
18
25
|
};
|
|
19
26
|
export default InlineLozenge;
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
4
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
// TODO: Package Owner - please fix:
|
|
7
6
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
8
7
|
import UFOHoldLoad from '@atlaskit/react-ufo/load-hold';
|
|
@@ -21,9 +20,9 @@ import { InlineCardUnauthorizedView } from './UnauthorisedView';
|
|
|
21
20
|
export { InlineCardResolvedView, InlineCardResolvingView, InlineCardErroredView, InlineCardForbiddenView, InlineCardUnauthorizedView };
|
|
22
21
|
var UFOLoadHoldWrapper = function UFOLoadHoldWrapper(_ref) {
|
|
23
22
|
var children = _ref.children;
|
|
24
|
-
return
|
|
23
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UFOHoldLoad, {
|
|
25
24
|
name: "smart-card-inline-card"
|
|
26
|
-
}), children)
|
|
25
|
+
}), children);
|
|
27
26
|
};
|
|
28
27
|
export var InlineCard = function InlineCard(_ref2) {
|
|
29
28
|
var _details$meta, _providerForbidden$te;
|
|
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
15
15
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
16
16
|
var PACKAGE_DATA = {
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "43.1.
|
|
18
|
+
packageVersion: "43.1.7",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.1.
|
|
3
|
+
"version": "43.1.8",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"@atlaskit/textarea": "^8.0.0",
|
|
71
71
|
"@atlaskit/textfield": "^8.0.0",
|
|
72
72
|
"@atlaskit/theme": "^21.0.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^13.11.0",
|
|
74
74
|
"@atlaskit/tokens": "^6.5.0",
|
|
75
75
|
"@atlaskit/tooltip": "^20.5.0",
|
|
76
76
|
"@atlaskit/ufo": "^0.4.0",
|
|
77
77
|
"@babel/runtime": "^7.0.0",
|
|
78
|
-
"@compiled/react": "^0.18.
|
|
78
|
+
"@compiled/react": "^0.18.6",
|
|
79
79
|
"@formatjs/intl-utils": "^3.8.4",
|
|
80
80
|
"facepaint": "^1.2.1",
|
|
81
81
|
"lru_map": "^0.4.1",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
101
101
|
"@atlaskit/css-reset": "^7.3.0",
|
|
102
102
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
103
|
-
"@atlaskit/react-ufo": "^4.
|
|
103
|
+
"@atlaskit/react-ufo": "^4.12.0",
|
|
104
104
|
"@atlaskit/ssr": "workspace:^",
|
|
105
105
|
"@atlassian/analytics-tooling": "^0.5.0",
|
|
106
106
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
@@ -187,6 +187,9 @@
|
|
|
187
187
|
"cc-ai-linking-platform-snippet-renderer": {
|
|
188
188
|
"type": "boolean"
|
|
189
189
|
},
|
|
190
|
+
"platform_editor_content_mode_button_mvp": {
|
|
191
|
+
"type": "boolean"
|
|
192
|
+
},
|
|
190
193
|
"should-render-to-parent-should-be-true-linking-pla": {
|
|
191
194
|
"type": "boolean"
|
|
192
195
|
},
|
|
@@ -199,9 +202,6 @@
|
|
|
199
202
|
"platform-linking-user-attributes-component": {
|
|
200
203
|
"type": "boolean"
|
|
201
204
|
},
|
|
202
|
-
"platform_renderer_blindspots": {
|
|
203
|
-
"type": "boolean"
|
|
204
|
-
},
|
|
205
205
|
"product-terminology-refresh": {
|
|
206
206
|
"type": "boolean"
|
|
207
207
|
},
|