@atlaskit/smart-card 43.23.7 → 43.24.0
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 +13 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-connect-account--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-url-in-unauthorized-view--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-default-icon--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-default-legacy-icon--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-all-card-examples-in-text--default--jfp-magma-platform-lozenge-jump-fix-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-all-card-examples-in-text--default--jfp-magma-platform-lozenge-jump-fix-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-un-auth--default.png +0 -0
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.compiled.css +1 -1
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/cjs/view/InlineCard/Frame/styled.js +2 -5
- package/dist/cjs/view/InlineCard/common/action-button/index.compiled.css +1 -4
- package/dist/cjs/view/InlineCard/common/action-button/index.js +3 -9
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-connect-account--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-url-in-unauthorized-view--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-default-icon--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-default-legacy-icon--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-all-card-examples-in-text--default--jfp-magma-platform-lozenge-jump-fix-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-all-card-examples-in-text--default--jfp-magma-platform-lozenge-jump-fix-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-un-auth--default.png +0 -0
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.compiled.css +1 -1
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/es2019/view/InlineCard/Frame/styled.js +2 -5
- package/dist/es2019/view/InlineCard/common/action-button/index.compiled.css +1 -4
- package/dist/es2019/view/InlineCard/common/action-button/index.js +3 -9
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-connect-account--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-url-in-unauthorized-view--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-default-icon--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-default-legacy-icon--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-16-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-24-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-32-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-all-card-examples-in-text--default--jfp-magma-platform-lozenge-jump-fix-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-all-card-examples-in-text--default--jfp-magma-platform-lozenge-jump-fix-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-false-navx-1895-new-logo-design-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-false.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-default-font-size--default--jfp-magma-platform-lozenge-jump-fix-true-navx-1895-new-logo-design-true.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-un-auth--default.png +0 -0
- package/dist/esm/view/BlockCard/views/UnauthorisedView.compiled.css +1 -1
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/esm/view/InlineCard/Frame/styled.js +2 -5
- package/dist/esm/view/InlineCard/common/action-button/index.compiled.css +1 -4
- package/dist/esm/view/InlineCard/common/action-button/index.js +3 -9
- package/package.json +5 -5
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-control.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-test1.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-test2.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation-and-experiment--default--platform-inline-smartcard-connect-button-exp-control.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation-and-experiment--default--platform-inline-smartcard-connect-button-exp-test1.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-control.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-test1.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-test2.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation-and-experiment--default--platform-inline-smartcard-connect-button-exp-control.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation-and-experiment--default--platform-inline-smartcard-connect-button-exp-test1.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-control.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-test1.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-experiment--default--platform-inline-smartcard-connect-button-exp-test2.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation-and-experiment--default--platform-inline-smartcard-connect-button-exp-control.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation-and-experiment--default--platform-inline-smartcard-connect-button-exp-test1.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5f7b94aaccfec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5f7b94aaccfec) -
|
|
8
|
+
[ux] Cleaned up the platform_inline_smartcard_connect_button_exp experiment gate, enabling the
|
|
9
|
+
blue unauthorised connect button by default. Updated VR tests across multiple packages relying on
|
|
10
|
+
the inline smart card
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 43.23.7
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default.png
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._zulpidpf{gap:0}
|
|
4
4
|
._zulputpp{gap:var(--ds-space-150,9pt)}
|
|
5
5
|
._12vemgnk{background-repeat:no-repeat}
|
|
@@ -73,8 +73,6 @@ var getBetterTitle = function getBetterTitle(url) {
|
|
|
73
73
|
/^https:\/\/(?:[\w.-]+\.)?figma\.com\/(?:design|board|file|proto|slides)\/[0-9a-zA-Z]{22,128}\/([^\/\?]+)/,
|
|
74
74
|
// OneDrive: https://1drv.ms/w/s!ABC123DEF456/Project_Plan.docx?e=abcdEF -> Project_Plan.docx
|
|
75
75
|
/^https:\/\/1drv\.ms\/[a-z]+\/s![^\/]+\/([^\/\?]+)/,
|
|
76
|
-
// Statsig: https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_inline_smartcard_connect_button_exp/results -> platform_inline_smartcard_connect_button_exp
|
|
77
|
-
/^https:\/\/console\.statsig\.com\/[^\/]+\/experiments\/([^\/\?]+)\//,
|
|
78
76
|
// Miro: https://miro.com/app/board/uXjVOPnT123=/my-board-name/ -> my-board-name
|
|
79
77
|
/^https:\/\/miro\.com\/app\/board\/[^\/]+\/([^\/\?]+)\/?/];
|
|
80
78
|
|
|
@@ -248,7 +246,7 @@ var UnauthorisedView = function UnauthorisedView(_ref3) {
|
|
|
248
246
|
testId: testId
|
|
249
247
|
}), /*#__PURE__*/React.createElement("div", {
|
|
250
248
|
"data-testid": "".concat(testId, "-content"),
|
|
251
|
-
className: (0, _runtime.ax)(["
|
|
249
|
+
className: (0, _runtime.ax)(["_11c8wadc _syazi7uo _19pku2gc"])
|
|
252
250
|
}, content));
|
|
253
251
|
}
|
|
254
252
|
};
|
|
@@ -14,7 +14,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
|
-
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
18
17
|
var _excluded = ["truncateInline", "withoutBackground", "isHovered", "isInteractive", "isSelected", "viewType"],
|
|
19
18
|
_excluded2 = ["truncateInline", "withoutBackground", "isHovered", "isInteractive", "isSelected", "href", "viewType"];
|
|
20
19
|
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); }
|
|
@@ -26,11 +25,10 @@ var WrapperSpan = exports.WrapperSpan = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
26
25
|
isSelected = _ref.isSelected,
|
|
27
26
|
viewType = _ref.viewType,
|
|
28
27
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
|
-
var experimentValue = viewType === 'unauthorised' ? (0, _expVal.expVal)('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
30
28
|
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({
|
|
31
29
|
ref: ref
|
|
32
30
|
}, props, {
|
|
33
|
-
className: (0, _runtime.ax)(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline &&
|
|
31
|
+
className: (0, _runtime.ax)(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline && viewType === 'unauthorised' && "_syaz15cr", withoutBackground ? "_19bvidpf _18u01i6y" : "_19it1x13 _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw71x13 _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv"])
|
|
34
32
|
}), props.children);
|
|
35
33
|
});
|
|
36
34
|
var WrapperAnchor = exports.WrapperAnchor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
@@ -42,12 +40,11 @@ var WrapperAnchor = exports.WrapperAnchor = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
42
40
|
href = _ref2.href,
|
|
43
41
|
viewType = _ref2.viewType,
|
|
44
42
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
45
|
-
var experimentValue = viewType === 'unauthorised' ? (0, _expVal.expVal)('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
46
43
|
return /*#__PURE__*/_react.default.createElement("a", (0, _extends2.default)({
|
|
47
44
|
href: href,
|
|
48
45
|
ref: ref
|
|
49
46
|
}, props, {
|
|
50
|
-
className: (0, _runtime.ax)(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline &&
|
|
47
|
+
className: (0, _runtime.ax)(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline && viewType === 'unauthorised' && "_syaz15cr", withoutBackground ? "_19bvidpf _18u01i6y" : "_19it1x13 _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw71x13 _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv", isInteractive && "_nt751r31 _49pcglyw _1hvw1o36 _1372tlke _7ehicw00 _1j5pglyw _1di629zg", viewType === 'errored' && (0, _platformFeatureFlags.fg)('navx-2565-inline-card-error-state-underline') && "_4bfu1r31 _1hms8stv _ajmmnqa1 _9oik1r31 _1bnxglyw _jf4cnqa1"])
|
|
51
48
|
}), props.children);
|
|
52
49
|
});
|
|
53
50
|
var baseWrapperStyles = null;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
._2hwxt94y{margin-right:1px}
|
|
10
10
|
._80om13gf{cursor:not-allowed}
|
|
11
11
|
._80omtlke{cursor:pointer}
|
|
12
|
-
._bfhk1i45{background-color:var(--ds-background-accent-gray-bolder,#6b6e76)}
|
|
13
12
|
._bfhkby5v{background-color:var(--ds-background-disabled,#17171708)}
|
|
14
13
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
15
14
|
._bfhkjmqp{background-color:var(--ds-background-selected-bold,#1868db)}
|
|
@@ -28,8 +27,6 @@
|
|
|
28
27
|
._u5f312x7{padding-right:var(--ds-space-075,6px)}
|
|
29
28
|
._y3gn18uv{text-align:initial}
|
|
30
29
|
._irr31q28:hover{background-color:var(--ds-background-selected-bold-hovered,#1558bc)}
|
|
31
|
-
._irr3byip:hover{background-color:var(--ds-background-accent-gray-bolder-hovered,#505258)}
|
|
32
30
|
._irr3plhp:hover{background-color:var(--ds-background-neutral-hovered,#0b120e24)}
|
|
33
31
|
._1di612kk:active{background-color:var(--ds-background-selected-bold-pressed,#123263)}
|
|
34
|
-
._1di61gdz:active{background-color:var(--ds-background-neutral-pressed,#080f214a)}
|
|
35
|
-
._1di61van:active{background-color:var(--ds-background-accent-gray-bolder-pressed,#3b3d42)}
|
|
32
|
+
._1di61gdz:active{background-color:var(--ds-background-neutral-pressed,#080f214a)}
|
|
@@ -14,19 +14,14 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
|
-
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
18
17
|
var _excluded = ["children", "isDisabled", "viewType"];
|
|
19
18
|
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); }
|
|
20
19
|
var styles = {
|
|
21
20
|
button: "_1e0c1bgi",
|
|
22
21
|
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
23
22
|
enabled: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
24
|
-
disabled: "_syaz1gmx _80om13gf _bfhkby5v"
|
|
25
|
-
|
|
26
|
-
var experimentEnabledStyles = {
|
|
27
|
-
control: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
28
|
-
test1: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk",
|
|
29
|
-
test2: "_syaz15cr _80omtlke _bfhk1i45 _qrwqlb4i _1o0zlb4i _irr3byip _1di61van"
|
|
23
|
+
disabled: "_syaz1gmx _80om13gf _bfhkby5v",
|
|
24
|
+
unauthorised: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk"
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* Action button has to be a span for the overflow to work correctly
|
|
@@ -37,7 +32,6 @@ var ActionButton = exports.ActionButton = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
37
32
|
_ref$viewType = _ref.viewType,
|
|
38
33
|
viewType = _ref$viewType === void 0 ? 'default' : _ref$viewType,
|
|
39
34
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
40
|
-
var experimentValue = viewType === 'unauthorised' ? (0, _expVal.expVal)('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
41
35
|
return /*#__PURE__*/React.createElement(_compiled.Pressable, (0, _extends2.default)({}, props, {
|
|
42
36
|
isDisabled: isDisabled,
|
|
43
37
|
ref: ref
|
|
@@ -50,6 +44,6 @@ var ActionButton = exports.ActionButton = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
50
44
|
xcss: styles.button
|
|
51
45
|
}), /*#__PURE__*/React.createElement("span", {
|
|
52
46
|
tabIndex: isDisabled ? undefined : 0,
|
|
53
|
-
className: (0, _runtime.ax)([styles.innerContainer, isDisabled ? styles.disabled :
|
|
47
|
+
className: (0, _runtime.ax)([styles.innerContainer, isDisabled ? styles.disabled : viewType === 'unauthorised' ? styles.unauthorised : styles.enabled])
|
|
54
48
|
}, children));
|
|
55
49
|
});
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default.png
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._zulpidpf{gap:0}
|
|
4
4
|
._zulputpp{gap:var(--ds-space-150,9pt)}
|
|
5
5
|
._12vemgnk{background-repeat:no-repeat}
|
|
@@ -62,8 +62,6 @@ const getBetterTitle = url => {
|
|
|
62
62
|
/^https:\/\/(?:[\w.-]+\.)?figma\.com\/(?:design|board|file|proto|slides)\/[0-9a-zA-Z]{22,128}\/([^\/\?]+)/,
|
|
63
63
|
// OneDrive: https://1drv.ms/w/s!ABC123DEF456/Project_Plan.docx?e=abcdEF -> Project_Plan.docx
|
|
64
64
|
/^https:\/\/1drv\.ms\/[a-z]+\/s![^\/]+\/([^\/\?]+)/,
|
|
65
|
-
// Statsig: https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_inline_smartcard_connect_button_exp/results -> platform_inline_smartcard_connect_button_exp
|
|
66
|
-
/^https:\/\/console\.statsig\.com\/[^\/]+\/experiments\/([^\/\?]+)\//,
|
|
67
65
|
// Miro: https://miro.com/app/board/uXjVOPnT123=/my-board-name/ -> my-board-name
|
|
68
66
|
/^https:\/\/miro\.com\/app\/board\/[^\/]+\/([^\/\?]+)\/?/];
|
|
69
67
|
|
|
@@ -240,7 +238,7 @@ const UnauthorisedView = ({
|
|
|
240
238
|
testId: testId
|
|
241
239
|
}), /*#__PURE__*/React.createElement("div", {
|
|
242
240
|
"data-testid": `${testId}-content`,
|
|
243
|
-
className: ax(["
|
|
241
|
+
className: ax(["_11c8wadc _syazi7uo _19pku2gc"])
|
|
244
242
|
}, content));
|
|
245
243
|
}
|
|
246
244
|
};
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { B100, B200, B400, B50, N40 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
9
8
|
export const WrapperSpan = /*#__PURE__*/forwardRef(({
|
|
10
9
|
truncateInline,
|
|
11
10
|
withoutBackground,
|
|
@@ -15,11 +14,10 @@ export const WrapperSpan = /*#__PURE__*/forwardRef(({
|
|
|
15
14
|
viewType,
|
|
16
15
|
...props
|
|
17
16
|
}, ref) => {
|
|
18
|
-
const experimentValue = viewType === 'unauthorised' ? expVal('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
19
17
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
20
18
|
ref: ref
|
|
21
19
|
}, props, {
|
|
22
|
-
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline &&
|
|
20
|
+
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline && viewType === 'unauthorised' && "_syaz15cr", withoutBackground ? "_19bvidpf _18u01i6y" : "_19it1x13 _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw71x13 _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv"])
|
|
23
21
|
}), props.children);
|
|
24
22
|
});
|
|
25
23
|
export const WrapperAnchor = /*#__PURE__*/forwardRef(({
|
|
@@ -32,12 +30,11 @@ export const WrapperAnchor = /*#__PURE__*/forwardRef(({
|
|
|
32
30
|
viewType,
|
|
33
31
|
...props
|
|
34
32
|
}, ref) => {
|
|
35
|
-
const experimentValue = viewType === 'unauthorised' ? expVal('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
36
33
|
return /*#__PURE__*/React.createElement("a", _extends({
|
|
37
34
|
href: href,
|
|
38
35
|
ref: ref
|
|
39
36
|
}, props, {
|
|
40
|
-
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline &&
|
|
37
|
+
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline && viewType === 'unauthorised' && "_syaz15cr", withoutBackground ? "_19bvidpf _18u01i6y" : "_19it1x13 _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw71x13 _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv", isInteractive && "_nt751r31 _49pcglyw _1hvw1o36 _1372tlke _7ehicw00 _1j5pglyw _1di629zg", viewType === 'errored' && fg('navx-2565-inline-card-error-state-underline') && "_4bfu1r31 _1hms8stv _ajmmnqa1 _9oik1r31 _1bnxglyw _jf4cnqa1"])
|
|
41
38
|
}), props.children);
|
|
42
39
|
});
|
|
43
40
|
const baseWrapperStyles = null;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
._2hwxt94y{margin-right:1px}
|
|
10
10
|
._80om13gf{cursor:not-allowed}
|
|
11
11
|
._80omtlke{cursor:pointer}
|
|
12
|
-
._bfhk1i45{background-color:var(--ds-background-accent-gray-bolder,#6b6e76)}
|
|
13
12
|
._bfhkby5v{background-color:var(--ds-background-disabled,#17171708)}
|
|
14
13
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
15
14
|
._bfhkjmqp{background-color:var(--ds-background-selected-bold,#1868db)}
|
|
@@ -28,8 +27,6 @@
|
|
|
28
27
|
._u5f312x7{padding-right:var(--ds-space-075,6px)}
|
|
29
28
|
._y3gn18uv{text-align:initial}
|
|
30
29
|
._irr31q28:hover{background-color:var(--ds-background-selected-bold-hovered,#1558bc)}
|
|
31
|
-
._irr3byip:hover{background-color:var(--ds-background-accent-gray-bolder-hovered,#505258)}
|
|
32
30
|
._irr3plhp:hover{background-color:var(--ds-background-neutral-hovered,#0b120e24)}
|
|
33
31
|
._1di612kk:active{background-color:var(--ds-background-selected-bold-pressed,#123263)}
|
|
34
|
-
._1di61gdz:active{background-color:var(--ds-background-neutral-pressed,#080f214a)}
|
|
35
|
-
._1di61van:active{background-color:var(--ds-background-accent-gray-bolder-pressed,#3b3d42)}
|
|
32
|
+
._1di61gdz:active{background-color:var(--ds-background-neutral-pressed,#080f214a)}
|
|
@@ -5,17 +5,12 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
9
8
|
const styles = {
|
|
10
9
|
button: "_1e0c1bgi",
|
|
11
10
|
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
12
11
|
enabled: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
13
|
-
disabled: "_syaz1gmx _80om13gf _bfhkby5v"
|
|
14
|
-
|
|
15
|
-
const experimentEnabledStyles = {
|
|
16
|
-
control: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
17
|
-
test1: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk",
|
|
18
|
-
test2: "_syaz15cr _80omtlke _bfhk1i45 _qrwqlb4i _1o0zlb4i _irr3byip _1di61van"
|
|
12
|
+
disabled: "_syaz1gmx _80om13gf _bfhkby5v",
|
|
13
|
+
unauthorised: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk"
|
|
19
14
|
};
|
|
20
15
|
/**
|
|
21
16
|
* Action button has to be a span for the overflow to work correctly
|
|
@@ -26,7 +21,6 @@ export const ActionButton = /*#__PURE__*/forwardRef(({
|
|
|
26
21
|
viewType = 'default',
|
|
27
22
|
...props
|
|
28
23
|
}, ref) => {
|
|
29
|
-
const experimentValue = viewType === 'unauthorised' ? expVal('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
30
24
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, props, {
|
|
31
25
|
isDisabled: isDisabled,
|
|
32
26
|
ref: ref
|
|
@@ -39,6 +33,6 @@ export const ActionButton = /*#__PURE__*/forwardRef(({
|
|
|
39
33
|
xcss: styles.button
|
|
40
34
|
}), /*#__PURE__*/React.createElement("span", {
|
|
41
35
|
tabIndex: isDisabled ? undefined : 0,
|
|
42
|
-
className: ax([styles.innerContainer, isDisabled ? styles.disabled :
|
|
36
|
+
className: ax([styles.innerContainer, isDisabled ? styles.disabled : viewType === 'unauthorised' ? styles.unauthorised : styles.enabled])
|
|
43
37
|
}, children));
|
|
44
38
|
});
|
package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default.png
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._zulpidpf{gap:0}
|
|
4
4
|
._zulputpp{gap:var(--ds-space-150,9pt)}
|
|
5
5
|
._12vemgnk{background-repeat:no-repeat}
|
|
@@ -64,8 +64,6 @@ var getBetterTitle = function getBetterTitle(url) {
|
|
|
64
64
|
/^https:\/\/(?:[\w.-]+\.)?figma\.com\/(?:design|board|file|proto|slides)\/[0-9a-zA-Z]{22,128}\/([^\/\?]+)/,
|
|
65
65
|
// OneDrive: https://1drv.ms/w/s!ABC123DEF456/Project_Plan.docx?e=abcdEF -> Project_Plan.docx
|
|
66
66
|
/^https:\/\/1drv\.ms\/[a-z]+\/s![^\/]+\/([^\/\?]+)/,
|
|
67
|
-
// Statsig: https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_inline_smartcard_connect_button_exp/results -> platform_inline_smartcard_connect_button_exp
|
|
68
|
-
/^https:\/\/console\.statsig\.com\/[^\/]+\/experiments\/([^\/\?]+)\//,
|
|
69
67
|
// Miro: https://miro.com/app/board/uXjVOPnT123=/my-board-name/ -> my-board-name
|
|
70
68
|
/^https:\/\/miro\.com\/app\/board\/[^\/]+\/([^\/\?]+)\/?/];
|
|
71
69
|
|
|
@@ -239,7 +237,7 @@ var UnauthorisedView = function UnauthorisedView(_ref3) {
|
|
|
239
237
|
testId: testId
|
|
240
238
|
}), /*#__PURE__*/React.createElement("div", {
|
|
241
239
|
"data-testid": "".concat(testId, "-content"),
|
|
242
|
-
className: ax(["
|
|
240
|
+
className: ax(["_11c8wadc _syazi7uo _19pku2gc"])
|
|
243
241
|
}, content));
|
|
244
242
|
}
|
|
245
243
|
};
|
|
@@ -8,7 +8,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
8
8
|
import React, { forwardRef } from 'react';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { B100, B200, B400, B50, N40 } from '@atlaskit/theme/colors';
|
|
11
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
12
11
|
export var WrapperSpan = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13
12
|
var truncateInline = _ref.truncateInline,
|
|
14
13
|
withoutBackground = _ref.withoutBackground,
|
|
@@ -17,11 +16,10 @@ export var WrapperSpan = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17
16
|
isSelected = _ref.isSelected,
|
|
18
17
|
viewType = _ref.viewType,
|
|
19
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
var experimentValue = viewType === 'unauthorised' ? expVal('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
21
19
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
22
20
|
ref: ref
|
|
23
21
|
}, props, {
|
|
24
|
-
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline &&
|
|
22
|
+
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline && viewType === 'unauthorised' && "_syaz15cr", withoutBackground ? "_19bvidpf _18u01i6y" : "_19it1x13 _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw71x13 _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv"])
|
|
25
23
|
}), props.children);
|
|
26
24
|
});
|
|
27
25
|
export var WrapperAnchor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
@@ -33,12 +31,11 @@ export var WrapperAnchor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
33
31
|
href = _ref2.href,
|
|
34
32
|
viewType = _ref2.viewType,
|
|
35
33
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
36
|
-
var experimentValue = viewType === 'unauthorised' ? expVal('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
37
34
|
return /*#__PURE__*/React.createElement("a", _extends({
|
|
38
35
|
href: href,
|
|
39
36
|
ref: ref
|
|
40
37
|
}, props, {
|
|
41
|
-
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline &&
|
|
38
|
+
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", truncateInline && viewType === 'unauthorised' && "_syaz15cr", withoutBackground ? "_19bvidpf _18u01i6y" : "_19it1x13 _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw71x13 _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv", isInteractive && "_nt751r31 _49pcglyw _1hvw1o36 _1372tlke _7ehicw00 _1j5pglyw _1di629zg", viewType === 'errored' && fg('navx-2565-inline-card-error-state-underline') && "_4bfu1r31 _1hms8stv _ajmmnqa1 _9oik1r31 _1bnxglyw _jf4cnqa1"])
|
|
42
39
|
}), props.children);
|
|
43
40
|
});
|
|
44
41
|
var baseWrapperStyles = null;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
._2hwxt94y{margin-right:1px}
|
|
10
10
|
._80om13gf{cursor:not-allowed}
|
|
11
11
|
._80omtlke{cursor:pointer}
|
|
12
|
-
._bfhk1i45{background-color:var(--ds-background-accent-gray-bolder,#6b6e76)}
|
|
13
12
|
._bfhkby5v{background-color:var(--ds-background-disabled,#17171708)}
|
|
14
13
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
15
14
|
._bfhkjmqp{background-color:var(--ds-background-selected-bold,#1868db)}
|
|
@@ -28,8 +27,6 @@
|
|
|
28
27
|
._u5f312x7{padding-right:var(--ds-space-075,6px)}
|
|
29
28
|
._y3gn18uv{text-align:initial}
|
|
30
29
|
._irr31q28:hover{background-color:var(--ds-background-selected-bold-hovered,#1558bc)}
|
|
31
|
-
._irr3byip:hover{background-color:var(--ds-background-accent-gray-bolder-hovered,#505258)}
|
|
32
30
|
._irr3plhp:hover{background-color:var(--ds-background-neutral-hovered,#0b120e24)}
|
|
33
31
|
._1di612kk:active{background-color:var(--ds-background-selected-bold-pressed,#123263)}
|
|
34
|
-
._1di61gdz:active{background-color:var(--ds-background-neutral-pressed,#080f214a)}
|
|
35
|
-
._1di61van:active{background-color:var(--ds-background-accent-gray-bolder-pressed,#3b3d42)}
|
|
32
|
+
._1di61gdz:active{background-color:var(--ds-background-neutral-pressed,#080f214a)}
|
|
@@ -7,17 +7,12 @@ import * as React from 'react';
|
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
9
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
10
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
11
10
|
var styles = {
|
|
12
11
|
button: "_1e0c1bgi",
|
|
13
12
|
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
14
13
|
enabled: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
15
|
-
disabled: "_syaz1gmx _80om13gf _bfhkby5v"
|
|
16
|
-
|
|
17
|
-
var experimentEnabledStyles = {
|
|
18
|
-
control: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
19
|
-
test1: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk",
|
|
20
|
-
test2: "_syaz15cr _80omtlke _bfhk1i45 _qrwqlb4i _1o0zlb4i _irr3byip _1di61van"
|
|
14
|
+
disabled: "_syaz1gmx _80om13gf _bfhkby5v",
|
|
15
|
+
unauthorised: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk"
|
|
21
16
|
};
|
|
22
17
|
/**
|
|
23
18
|
* Action button has to be a span for the overflow to work correctly
|
|
@@ -28,7 +23,6 @@ export var ActionButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
28
23
|
_ref$viewType = _ref.viewType,
|
|
29
24
|
viewType = _ref$viewType === void 0 ? 'default' : _ref$viewType,
|
|
30
25
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
-
var experimentValue = viewType === 'unauthorised' ? expVal('platform_inline_smartcard_connect_button_exp', 'cohort', 'control') : 'control';
|
|
32
26
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, props, {
|
|
33
27
|
isDisabled: isDisabled,
|
|
34
28
|
ref: ref
|
|
@@ -41,6 +35,6 @@ export var ActionButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
41
35
|
xcss: styles.button
|
|
42
36
|
}), /*#__PURE__*/React.createElement("span", {
|
|
43
37
|
tabIndex: isDisabled ? undefined : 0,
|
|
44
|
-
className: ax([styles.innerContainer, isDisabled ? styles.disabled :
|
|
38
|
+
className: ax([styles.innerContainer, isDisabled ? styles.disabled : viewType === 'unauthorised' ? styles.unauthorised : styles.enabled])
|
|
45
39
|
}, children));
|
|
46
40
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.24.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
33
33
|
"@atlaskit/avatar": "^25.7.0",
|
|
34
34
|
"@atlaskit/avatar-group": "^12.4.0",
|
|
35
|
-
"@atlaskit/badge": "^18.
|
|
35
|
+
"@atlaskit/badge": "^18.4.0",
|
|
36
36
|
"@atlaskit/button": "^23.9.0",
|
|
37
37
|
"@atlaskit/checkbox": "^17.3.0",
|
|
38
38
|
"@atlaskit/css": "^0.19.0",
|
|
39
39
|
"@atlaskit/dropdown-menu": "^16.4.0",
|
|
40
|
-
"@atlaskit/embedded-confluence": "^4.
|
|
40
|
+
"@atlaskit/embedded-confluence": "^4.4.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
42
42
|
"@atlaskit/form": "^15.3.0",
|
|
43
43
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
44
|
-
"@atlaskit/heading": "^5.
|
|
44
|
+
"@atlaskit/heading": "^5.3.0",
|
|
45
45
|
"@atlaskit/icon": "^30.0.0",
|
|
46
46
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
47
47
|
"@atlaskit/icon-object": "^7.4.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@atlaskit/textfield": "^8.2.0",
|
|
73
73
|
"@atlaskit/theme": "^21.0.0",
|
|
74
74
|
"@atlaskit/tile": "^1.0.0",
|
|
75
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
75
|
+
"@atlaskit/tmp-editor-statsig": "^22.0.0",
|
|
76
76
|
"@atlaskit/tokens": "^11.0.0",
|
|
77
77
|
"@atlaskit/tooltip": "^20.14.0",
|
|
78
78
|
"@atlaskit/ufo": "^0.4.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|