@atlaskit/share 4.20.1 → 4.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.20.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#152459](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152459)
8
+ [`73c8fc275247e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/73c8fc275247e) -
9
+ Move feature flag to statsig
10
+
11
+ ## 4.20.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`f0bcc790b1eea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f0bcc790b1eea) -
16
+ safe reference of global navigator object
17
+
3
18
  ## 4.20.1
4
19
 
5
20
  ### Patch Changes
@@ -45,7 +45,7 @@ var boxWrapperStyle = (0, _primitives.xcss)({
45
45
  var messageTextStyle = (0, _primitives.xcss)({
46
46
  textIndent: 'space.075'
47
47
  });
48
- var isSafari = navigator.userAgent.indexOf('Safari');
48
+ var isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
49
49
  var HiddenInput = exports.HiddenInput = /*#__PURE__*/_react.default.forwardRef(
50
50
  // we need a hidden input to reliably copy to clipboard across all browsers.
51
51
  function (props, ref) {
@@ -181,7 +181,7 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
181
181
  position: "bottom-start"
182
182
  }, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
183
183
  },
184
- shouldRenderToParent: (0, _platformFeatureFlags.fg)('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
184
+ shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable-appropriate-reading-order-in-share-dialog')
185
185
  }));
186
186
  }
187
187
  }]);
@@ -634,7 +634,7 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
634
634
  isMenuItemSelected: isMenuItemSelected,
635
635
  dialogPlacement: dialogPlacement
636
636
  }),
637
- shouldRenderToParent: (0, _platformFeatureFlags.fg)('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
637
+ shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable-appropriate-reading-order-in-share-dialog')
638
638
  }), (0, _react2.jsx)(_portal.default, {
639
639
  zIndex: (0, _utils.generateSelectZIndex)(dialogZIndex)
640
640
  }, (0, _react2.jsx)("div", {
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
13
13
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
14
  return _objectSpread({
15
15
  packageName: "@atlaskit/share",
16
- packageVersion: "4.20.1"
16
+ packageVersion: "4.20.3"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -34,7 +34,7 @@ const boxWrapperStyle = xcss({
34
34
  const messageTextStyle = xcss({
35
35
  textIndent: 'space.075'
36
36
  });
37
- const isSafari = navigator.userAgent.indexOf('Safari');
37
+ const isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
38
38
  export const HiddenInput = /*#__PURE__*/React.forwardRef(
39
39
  // we need a hidden input to reliably copy to clipboard across all browsers.
40
40
  (props, ref) => jsx("input", {
@@ -155,7 +155,7 @@ export class CopyLinkButton extends React.Component {
155
155
  content: copyTooltipText,
156
156
  position: "bottom-start"
157
157
  }, this.renderTriggerButton(triggerProps)) : this.renderTriggerButton(triggerProps),
158
- shouldRenderToParent: fg('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
158
+ shouldRenderToParent: fg('enable-appropriate-reading-order-in-share-dialog')
159
159
  }));
160
160
  }
161
161
  }
@@ -579,7 +579,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
579
579
  isMenuItemSelected,
580
580
  dialogPlacement
581
581
  }),
582
- shouldRenderToParent: fg('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
582
+ shouldRenderToParent: fg('enable-appropriate-reading-order-in-share-dialog')
583
583
  }), jsx(Portal, {
584
584
  zIndex: generateSelectZIndex(dialogZIndex)
585
585
  }, jsx("div", {
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.20.1",
4
+ packageVersion: "4.20.3",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -41,7 +41,7 @@ var boxWrapperStyle = xcss({
41
41
  var messageTextStyle = xcss({
42
42
  textIndent: 'space.075'
43
43
  });
44
- var isSafari = navigator.userAgent.indexOf('Safari');
44
+ var isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
45
45
  export var HiddenInput = /*#__PURE__*/React.forwardRef(
46
46
  // we need a hidden input to reliably copy to clipboard across all browsers.
47
47
  function (props, ref) {
@@ -177,7 +177,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
177
177
  position: "bottom-start"
178
178
  }, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
179
179
  },
180
- shouldRenderToParent: fg('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
180
+ shouldRenderToParent: fg('enable-appropriate-reading-order-in-share-dialog')
181
181
  }));
182
182
  }
183
183
  }]);
@@ -633,7 +633,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
633
633
  isMenuItemSelected: isMenuItemSelected,
634
634
  dialogPlacement: dialogPlacement
635
635
  }),
636
- shouldRenderToParent: fg('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
636
+ shouldRenderToParent: fg('enable-appropriate-reading-order-in-share-dialog')
637
637
  }), jsx(Portal, {
638
638
  zIndex: generateSelectZIndex(dialogZIndex)
639
639
  }, jsx("div", {
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
6
6
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7
7
  return _objectSpread({
8
8
  packageName: "@atlaskit/share",
9
- packageVersion: "4.20.1"
9
+ packageVersion: "4.20.3"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- type Props = React.PropsWithChildren<WithAnalyticsEventsProps>;
4
- declare const _default: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<{
4
+ children?: React.ReactNode;
5
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
5
6
  export default _default;
@@ -47,5 +47,5 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
47
47
  getFormShareLink: () => string;
48
48
  render(): JSX.Element;
49
49
  }
50
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerInternalProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerInternalProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
50
+ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
51
51
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- type Props = React.PropsWithChildren<WithAnalyticsEventsProps>;
4
- declare const _default: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<{
4
+ children?: React.ReactNode;
5
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
5
6
  export default _default;
@@ -47,5 +47,5 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
47
47
  getFormShareLink: () => string;
48
48
  render(): JSX.Element;
49
49
  }
50
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerInternalProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerInternalProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
50
+ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
51
51
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.20.1",
3
+ "version": "4.20.3",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,24 +39,24 @@
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-next": "^10.1.0",
41
41
  "@atlaskit/button": "^20.2.0",
42
- "@atlaskit/dropdown-menu": "^12.18.0",
42
+ "@atlaskit/dropdown-menu": "^12.20.0",
43
43
  "@atlaskit/form": "^10.5.0",
44
- "@atlaskit/icon": "^22.18.0",
45
- "@atlaskit/menu": "^2.12.0",
44
+ "@atlaskit/icon": "^22.22.0",
45
+ "@atlaskit/menu": "^2.13.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.3.0",
47
47
  "@atlaskit/popper": "^6.3.0",
48
- "@atlaskit/popup": "^1.27.0",
48
+ "@atlaskit/popup": "^1.28.0",
49
49
  "@atlaskit/portal": "^4.9.0",
50
50
  "@atlaskit/primitives": "^12.2.0",
51
51
  "@atlaskit/smart-user-picker": "^6.10.0",
52
52
  "@atlaskit/spinner": "^16.3.0",
53
- "@atlaskit/tabs": "^16.4.0",
53
+ "@atlaskit/tabs": "^16.5.0",
54
54
  "@atlaskit/textarea": "^5.6.0",
55
- "@atlaskit/theme": "^13.0.0",
55
+ "@atlaskit/theme": "^13.1.0",
56
56
  "@atlaskit/tokens": "^2.0.0",
57
- "@atlaskit/tooltip": "^18.7.0",
57
+ "@atlaskit/tooltip": "^18.8.0",
58
58
  "@atlaskit/ufo": "^0.3.0",
59
- "@atlaskit/user-picker": "^10.24.0",
59
+ "@atlaskit/user-picker": "^10.25.0",
60
60
  "@atlaskit/util-service-support": "^6.2.0",
61
61
  "@babel/runtime": "^7.0.0",
62
62
  "@emotion/react": "^11.7.1",
@@ -71,7 +71,7 @@
71
71
  "react": "^16.8.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@atlaskit/editor-test-helpers": "^19.0.0",
74
+ "@atlaskit/editor-test-helpers": "^19.1.0",
75
75
  "@atlaskit/flag": "^15.8.0",
76
76
  "@testing-library/react": "^12.1.5",
77
77
  "@testing-library/user-event": "^14.4.3",
@@ -116,7 +116,7 @@
116
116
  "./copy-link-button": "./src/components/CopyLinkButton.tsx"
117
117
  },
118
118
  "platform-feature-flags": {
119
- "platform.enable-appropriate-reading-order-in-share-dialog_fu49": {
119
+ "enable-appropriate-reading-order-in-share-dialog": {
120
120
  "type": "boolean"
121
121
  }
122
122
  }