@atlaskit/share 6.16.3 → 6.16.4

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/afm-townsquare/tsconfig.json +99 -0
  3. package/clients/package.json +1 -1
  4. package/copy-link-button/package.json +1 -1
  5. package/dist/cjs/components/ShareDialogContainer.js +18 -5
  6. package/dist/cjs/components/analytics/analytics.js +12 -2
  7. package/dist/es2019/components/ShareDialogContainer.js +14 -1
  8. package/dist/es2019/components/analytics/analytics.js +9 -1
  9. package/dist/esm/components/ShareDialogContainer.js +19 -6
  10. package/dist/esm/components/analytics/analytics.js +11 -1
  11. package/dist/types/components/ErrorBoundary.d.ts +1 -1
  12. package/dist/types/components/ShareDialogContainer.d.ts +4 -4
  13. package/dist/types/components/ShareFormWrapper/compiled.d.ts +5 -5
  14. package/dist/types/components/ShareFormWrapper/styled.d.ts +5 -5
  15. package/dist/types/components/analytics/analytics.d.ts +27 -19
  16. package/dist/types/types/ShareDialogContainer.d.ts +0 -1
  17. package/dist/types/types/ShareDialogWithTrigger.d.ts +0 -1
  18. package/dist/types/types/ShareEntities.d.ts +0 -1
  19. package/dist/types/types/ShareForm.d.ts +0 -1
  20. package/dist/types/types/UserPickerOptions.d.ts +0 -1
  21. package/dist/types/types/form.d.ts +0 -1
  22. package/dist/types-ts4.5/components/ErrorBoundary.d.ts +1 -1
  23. package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +4 -4
  24. package/dist/types-ts4.5/components/ShareFormWrapper/compiled.d.ts +5 -5
  25. package/dist/types-ts4.5/components/ShareFormWrapper/styled.d.ts +5 -5
  26. package/dist/types-ts4.5/components/analytics/analytics.d.ts +27 -19
  27. package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +0 -1
  28. package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +0 -1
  29. package/dist/types-ts4.5/types/ShareEntities.d.ts +0 -1
  30. package/dist/types-ts4.5/types/ShareForm.d.ts +0 -1
  31. package/dist/types-ts4.5/types/UserPickerOptions.d.ts +0 -1
  32. package/dist/types-ts4.5/types/form.d.ts +0 -1
  33. package/package.json +11 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 6.16.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 6.16.3
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,99 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.townsquare.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../townsquare/tsDist/@atlaskit__share/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
24
+ ],
25
+ "references": [
26
+ {
27
+ "path": "../../../analytics/analytics-next/afm-townsquare/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../../design-system/button/afm-townsquare/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/css/afm-townsquare/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../design-system/dropdown-menu/afm-townsquare/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../../design-system/form/afm-townsquare/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../design-system/heading/afm-townsquare/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../../design-system/icon/afm-townsquare/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../../design-system/link/afm-townsquare/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../../design-system/menu/afm-townsquare/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../../../platform/feature-flags/afm-townsquare/tsconfig.json"
55
+ },
56
+ {
57
+ "path": "../../../design-system/popper/afm-townsquare/tsconfig.json"
58
+ },
59
+ {
60
+ "path": "../../../design-system/popup/afm-townsquare/tsconfig.json"
61
+ },
62
+ {
63
+ "path": "../../../design-system/portal/afm-townsquare/tsconfig.json"
64
+ },
65
+ {
66
+ "path": "../../../design-system/primitives/afm-townsquare/tsconfig.json"
67
+ },
68
+ {
69
+ "path": "../../../smart-experiences/smart-user-picker/afm-townsquare/tsconfig.json"
70
+ },
71
+ {
72
+ "path": "../../../design-system/spinner/afm-townsquare/tsconfig.json"
73
+ },
74
+ {
75
+ "path": "../../../design-system/tabs/afm-townsquare/tsconfig.json"
76
+ },
77
+ {
78
+ "path": "../../../design-system/textarea/afm-townsquare/tsconfig.json"
79
+ },
80
+ {
81
+ "path": "../../../design-system/theme/afm-townsquare/tsconfig.json"
82
+ },
83
+ {
84
+ "path": "../../../design-system/tokens/afm-townsquare/tsconfig.json"
85
+ },
86
+ {
87
+ "path": "../../../design-system/tooltip/afm-townsquare/tsconfig.json"
88
+ },
89
+ {
90
+ "path": "../../../data/ufo-external/afm-townsquare/tsconfig.json"
91
+ },
92
+ {
93
+ "path": "../../user-picker/afm-townsquare/tsconfig.json"
94
+ },
95
+ {
96
+ "path": "../../util-service-support/afm-townsquare/tsconfig.json"
97
+ }
98
+ ]
99
+ }
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/clients/index.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/clients/index.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/components/CopyLinkButton.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/components/CopyLinkButton.d.ts"
14
14
  ]
@@ -72,6 +72,7 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
72
72
  }
73
73
  });
74
74
  (0, _defineProperty2.default)(_this, "fetchConfig", function () {
75
+ var startTime = Date.now();
75
76
  _this.setState({
76
77
  isFetchingConfig: true
77
78
  }, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -92,10 +93,16 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
92
93
  });
93
94
  }
94
95
  _ufoExperiences.renderShareDialogExp.success();
95
- _context.next = 15;
96
+ if ((0, _platformFeatureFlags.fg)('jira-warepil-track-sharing-to-email-disabled')) {
97
+ _this.createAndFireEvent((0, _analytics.shareConfigurationLoaded)({
98
+ disableSharingToEmails: config.disableSharingToEmails,
99
+ durationMs: Date.now() - startTime
100
+ }));
101
+ }
102
+ _context.next = 17;
96
103
  break;
97
- case 9:
98
- _context.prev = 9;
104
+ case 10:
105
+ _context.prev = 10;
99
106
  _context.t0 = _context["catch"](0);
100
107
  if (_this._isMounted) {
101
108
  _this.setState({
@@ -110,11 +117,17 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
110
117
  });
111
118
  }
112
119
  (0, _ufoExperienceHelper.isValidFailedExperience)(_ufoExperiences.renderShareDialogExp, errObj);
113
- case 15:
120
+ if ((0, _platformFeatureFlags.fg)('jira-warepil-track-sharing-to-email-disabled')) {
121
+ _this.createAndFireEvent((0, _analytics.shareConfigurationLoadFailed)({
122
+ statusCode: _context.t0.code || _context.t0.status || _context.t0.statusCode,
123
+ durationMs: Date.now() - startTime
124
+ }));
125
+ }
126
+ case 17:
114
127
  case "end":
115
128
  return _context.stop();
116
129
  }
117
- }, _callee, null, [[0, 9]]);
130
+ }, _callee, null, [[0, 10]]);
118
131
  })));
119
132
  });
120
133
  (0, _defineProperty2.default)(_this, "handleSubmitShare", function (_ref2) {
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.shortUrlRequested = exports.shortUrlGenerated = exports.shareTriggerButtonClicked = exports.shareTabClicked = exports.shareSplitButtonEvent = exports.shareMenuItemClicked = exports.shareIntegrationButtonEvent = exports.screenEvent = exports.jiraPageSharedEvent = exports.formShareSubmitted = exports.errorEncountered = exports.copyLinkButtonClicked = exports.cancelShare = exports.INTEGRATION_MODAL_SOURCE = exports.CHANNEL_ID = exports.ANALYTICS_SOURCE = void 0;
7
+ exports.shortUrlRequested = exports.shortUrlGenerated = exports.shareTriggerButtonClicked = exports.shareTabClicked = exports.shareSplitButtonEvent = exports.shareMenuItemClicked = exports.shareIntegrationButtonEvent = exports.shareConfigurationLoaded = exports.shareConfigurationLoadFailed = exports.screenEvent = exports.jiraPageSharedEvent = exports.formShareSubmitted = exports.errorEncountered = exports.copyLinkButtonClicked = exports.cancelShare = exports.INTEGRATION_MODAL_SOURCE = exports.CHANNEL_ID = exports.ANALYTICS_SOURCE = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _smartUserPicker = require("@atlaskit/smart-user-picker");
10
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -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: "6.16.2"
16
+ packageVersion: "6.16.3"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -93,6 +93,16 @@ var shortUrlGenerated = exports.shortUrlGenerated = function shortUrlGenerated(s
93
93
  tooSlow: tooSlow
94
94
  });
95
95
  };
96
+ var shareConfigurationLoaded = exports.shareConfigurationLoaded = function shareConfigurationLoaded(attributes) {
97
+ return createEvent('track', ANALYTICS_SOURCE, 'loaded', 'shareConfiguration', undefined, _objectSpread({
98
+ source: ANALYTICS_SOURCE
99
+ }, attributes));
100
+ };
101
+ var shareConfigurationLoadFailed = exports.shareConfigurationLoadFailed = function shareConfigurationLoadFailed(attributes) {
102
+ return createEvent('track', ANALYTICS_SOURCE, 'error', 'shareConfiguration', undefined, _objectSpread({
103
+ source: ANALYTICS_SOURCE
104
+ }, attributes));
105
+ };
96
106
  var copyLinkButtonClicked = exports.copyLinkButtonClicked = function copyLinkButtonClicked(_ref2) {
97
107
  var start = _ref2.start,
98
108
  shareContentType = _ref2.shareContentType,
@@ -9,7 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
10
10
  import { ShareServiceClient } from '../clients/ShareServiceClient';
11
11
  import { messages } from '../i18n';
12
- import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shortUrlGenerated, shortUrlRequested } from './analytics/analytics';
12
+ import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shareConfigurationLoaded, shareConfigurationLoadFailed, shortUrlGenerated, shortUrlRequested } from './analytics/analytics';
13
13
  import { isValidFailedExperience } from './analytics/ufoExperienceHelper';
14
14
  import { renderShareDialogExp } from './analytics/ufoExperiences';
15
15
  import ErrorBoundary from './ErrorBoundary';
@@ -48,6 +48,7 @@ export class ShareDialogContainerInternal extends React.Component {
48
48
  }
49
49
  });
50
50
  _defineProperty(this, "fetchConfig", () => {
51
+ const startTime = Date.now();
51
52
  this.setState({
52
53
  isFetchingConfig: true
53
54
  }, async () => {
@@ -61,6 +62,12 @@ export class ShareDialogContainerInternal extends React.Component {
61
62
  });
62
63
  }
63
64
  renderShareDialogExp.success();
65
+ if (fg('jira-warepil-track-sharing-to-email-disabled')) {
66
+ this.createAndFireEvent(shareConfigurationLoaded({
67
+ disableSharingToEmails: config.disableSharingToEmails,
68
+ durationMs: Date.now() - startTime
69
+ }));
70
+ }
64
71
  } catch (error) {
65
72
  if (this._isMounted) {
66
73
  this.setState({
@@ -78,6 +85,12 @@ export class ShareDialogContainerInternal extends React.Component {
78
85
  };
79
86
  }
80
87
  isValidFailedExperience(renderShareDialogExp, errObj);
88
+ if (fg('jira-warepil-track-sharing-to-email-disabled')) {
89
+ this.createAndFireEvent(shareConfigurationLoadFailed({
90
+ statusCode: error.code || error.status || error.statusCode,
91
+ durationMs: Date.now() - startTime
92
+ }));
93
+ }
81
94
  }
82
95
  });
83
96
  });
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "6.16.2",
4
+ packageVersion: "6.16.3",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -54,6 +54,14 @@ export const shortUrlGenerated = (start, tooSlow) => createEvent('operational',
54
54
  duration: duration(start),
55
55
  tooSlow
56
56
  });
57
+ export const shareConfigurationLoaded = attributes => createEvent('track', ANALYTICS_SOURCE, 'loaded', 'shareConfiguration', undefined, {
58
+ source: ANALYTICS_SOURCE,
59
+ ...attributes
60
+ });
61
+ export const shareConfigurationLoadFailed = attributes => createEvent('track', ANALYTICS_SOURCE, 'error', 'shareConfiguration', undefined, {
62
+ source: ANALYTICS_SOURCE,
63
+ ...attributes
64
+ });
57
65
  export const copyLinkButtonClicked = ({
58
66
  start,
59
67
  shareContentType,
@@ -24,7 +24,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
24
24
  import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
25
25
  import { ShareServiceClient } from '../clients/ShareServiceClient';
26
26
  import { messages } from '../i18n';
27
- import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shortUrlGenerated, shortUrlRequested } from './analytics/analytics';
27
+ import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shareConfigurationLoaded, shareConfigurationLoadFailed, shortUrlGenerated, shortUrlRequested } from './analytics/analytics';
28
28
  import { isValidFailedExperience } from './analytics/ufoExperienceHelper';
29
29
  import { renderShareDialogExp } from './analytics/ufoExperiences';
30
30
  import ErrorBoundary from './ErrorBoundary';
@@ -65,6 +65,7 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
65
65
  }
66
66
  });
67
67
  _defineProperty(_this, "fetchConfig", function () {
68
+ var startTime = Date.now();
68
69
  _this.setState({
69
70
  isFetchingConfig: true
70
71
  }, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
@@ -85,10 +86,16 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
85
86
  });
86
87
  }
87
88
  renderShareDialogExp.success();
88
- _context.next = 15;
89
+ if (fg('jira-warepil-track-sharing-to-email-disabled')) {
90
+ _this.createAndFireEvent(shareConfigurationLoaded({
91
+ disableSharingToEmails: config.disableSharingToEmails,
92
+ durationMs: Date.now() - startTime
93
+ }));
94
+ }
95
+ _context.next = 17;
89
96
  break;
90
- case 9:
91
- _context.prev = 9;
97
+ case 10:
98
+ _context.prev = 10;
92
99
  _context.t0 = _context["catch"](0);
93
100
  if (_this._isMounted) {
94
101
  _this.setState({
@@ -103,11 +110,17 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
103
110
  });
104
111
  }
105
112
  isValidFailedExperience(renderShareDialogExp, errObj);
106
- case 15:
113
+ if (fg('jira-warepil-track-sharing-to-email-disabled')) {
114
+ _this.createAndFireEvent(shareConfigurationLoadFailed({
115
+ statusCode: _context.t0.code || _context.t0.status || _context.t0.statusCode,
116
+ durationMs: Date.now() - startTime
117
+ }));
118
+ }
119
+ case 17:
107
120
  case "end":
108
121
  return _context.stop();
109
122
  }
110
- }, _callee, null, [[0, 9]]);
123
+ }, _callee, null, [[0, 10]]);
111
124
  })));
112
125
  });
113
126
  _defineProperty(_this, "handleSubmitShare", function (_ref2) {
@@ -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: "6.16.2"
9
+ packageVersion: "6.16.3"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -86,6 +86,16 @@ export var shortUrlGenerated = function shortUrlGenerated(start, tooSlow) {
86
86
  tooSlow: tooSlow
87
87
  });
88
88
  };
89
+ export var shareConfigurationLoaded = function shareConfigurationLoaded(attributes) {
90
+ return createEvent('track', ANALYTICS_SOURCE, 'loaded', 'shareConfiguration', undefined, _objectSpread({
91
+ source: ANALYTICS_SOURCE
92
+ }, attributes));
93
+ };
94
+ export var shareConfigurationLoadFailed = function shareConfigurationLoadFailed(attributes) {
95
+ return createEvent('track', ANALYTICS_SOURCE, 'error', 'shareConfiguration', undefined, _objectSpread({
96
+ source: ANALYTICS_SOURCE
97
+ }, attributes));
98
+ };
89
99
  export var copyLinkButtonClicked = function copyLinkButtonClicked(_ref2) {
90
100
  var start = _ref2.start,
91
101
  shareContentType = _ref2.shareContentType,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  declare const _default: React.ForwardRefExoticComponent<Omit<{
4
- children?: React.ReactNode;
4
+ children?: React.ReactNode | undefined;
5
5
  }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
6
6
  export default _default;
@@ -49,8 +49,8 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
49
49
  }
50
50
  export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
51
51
  integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
52
- shareIntegrations?: import("../types").Integration[] | undefined;
53
- additionalTabs?: import("../types").AdditionalTab[] | undefined;
52
+ shareIntegrations?: Array<import("../types").Integration> | undefined;
53
+ additionalTabs?: Array<import("../types").AdditionalTab> | undefined;
54
54
  builtInTabContentWidth?: number | undefined;
55
55
  copyTooltipText?: string | undefined;
56
56
  isPublicLink?: boolean | undefined;
@@ -72,7 +72,7 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
72
72
  shareClient?: ShareClient | undefined;
73
73
  urlShortenerClient?: UrlShortenerClient | undefined;
74
74
  shortLinkData?: ShortenRequest | undefined;
75
- dialogPlacement?: import("@popperjs/core").Placement | undefined;
75
+ dialogPlacement?: import("../types").DialogPlacement | undefined;
76
76
  dialogZIndex?: number | undefined;
77
77
  formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
78
78
  loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
@@ -89,7 +89,7 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
89
89
  shareFormTitle?: React.ReactNode;
90
90
  shareFormHelperMessage?: string | undefined;
91
91
  shouldCloseOnEscapePress?: boolean | undefined;
92
- showFlags?: ((flags: import("../types").Flag[]) => void) | undefined;
92
+ showFlags?: ((flags: Array<import("../types").Flag>) => void) | undefined;
93
93
  triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
94
94
  triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
95
95
  triggerButtonStyle?: import("../types").ShareButtonStyle | undefined;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { type IntegrationMode } from '../../types/ShareEntities';
3
3
  export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMenuItemSelected, isExtendedShareDialogEnabled, }: React.PropsWithChildren<{
4
- integrationMode?: IntegrationMode | undefined;
5
- isMenuItemSelected?: boolean | undefined;
6
- isExtendedShareDialogEnabled?: boolean | undefined;
4
+ integrationMode?: IntegrationMode;
5
+ isMenuItemSelected?: boolean;
6
+ isExtendedShareDialogEnabled?: boolean;
7
7
  }>) => React.JSX.Element;
8
8
  export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: {
9
9
  children: React.ReactNode;
10
- label?: string | undefined;
11
- isExtendedShareDialogEnabled?: boolean | undefined;
10
+ label?: string;
11
+ isExtendedShareDialogEnabled?: boolean;
12
12
  }) => React.JSX.Element;
@@ -6,9 +6,9 @@ import { type PropsWithChildren } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import { type IntegrationMode } from '../../types/ShareEntities';
8
8
  export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMenuItemSelected, isExtendedShareDialogEnabled, }: PropsWithChildren<{
9
- integrationMode?: IntegrationMode | undefined;
10
- isMenuItemSelected?: boolean | undefined;
11
- isExtendedShareDialogEnabled?: boolean | undefined;
9
+ integrationMode?: IntegrationMode;
10
+ isMenuItemSelected?: boolean;
11
+ isExtendedShareDialogEnabled?: boolean;
12
12
  }>) => jsx.JSX.Element;
13
13
  /**
14
14
  * Apply the same styling, as previous @atlaskit/inline-dialog had,
@@ -17,6 +17,6 @@ export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMe
17
17
  * packages/design-system/inline-dialog/src/InlineDialog/styled.ts:20:3
18
18
  */
19
19
  export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: PropsWithChildren<{
20
- label?: string | undefined;
21
- isExtendedShareDialogEnabled?: boolean | undefined;
20
+ label?: string;
21
+ isExtendedShareDialogEnabled?: boolean;
22
22
  }>) => jsx.JSX.Element;
@@ -17,34 +17,42 @@ export declare const shareMenuItemClicked: (subjectId: MenuItemSubjectIdType, sh
17
17
  export declare const cancelShare: (start: number) => AnalyticsEventPayload;
18
18
  export declare const shortUrlRequested: () => AnalyticsEventPayload;
19
19
  export declare const shortUrlGenerated: (start: number, tooSlow: boolean) => AnalyticsEventPayload;
20
+ export declare const shareConfigurationLoaded: (attributes: {
21
+ disableSharingToEmails: boolean | undefined;
22
+ durationMs: number;
23
+ }) => AnalyticsEventPayload;
24
+ export declare const shareConfigurationLoadFailed: (attributes: {
25
+ statusCode: string | number | undefined;
26
+ durationMs: number;
27
+ }) => AnalyticsEventPayload;
20
28
  export declare const copyLinkButtonClicked: ({ start, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, ari, }: {
21
29
  start: number;
22
- shareContentType?: string | undefined;
23
- shareContentSubType?: string | undefined;
24
- shareContentId?: string | undefined;
25
- shareOrigin?: OriginTracing | undefined;
26
- isPublicLink?: boolean | undefined;
27
- ari?: string | undefined;
30
+ shareContentType?: string;
31
+ shareContentSubType?: string;
32
+ shareContentId?: string;
33
+ shareOrigin?: OriginTracing;
34
+ isPublicLink?: boolean;
35
+ ari?: string;
28
36
  }) => AnalyticsEventPayload;
29
37
  export declare const formShareSubmitted: ({ start, data, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, }: {
30
38
  start: number;
31
39
  data: DialogContentState;
32
- shareContentType?: string | undefined;
33
- shareContentSubType?: string | undefined;
34
- shareContentId?: string | undefined;
35
- shareOrigin?: OriginTracing | undefined;
36
- isPublicLink?: boolean | undefined;
40
+ shareContentType?: string;
41
+ shareContentSubType?: string;
42
+ shareContentId?: string;
43
+ shareOrigin?: OriginTracing;
44
+ isPublicLink?: boolean;
37
45
  }) => AnalyticsEventPayload;
38
46
  export declare const jiraPageSharedEvent: ({ start, data, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, productAttributes, loggedInAccountId, source, actionSubjectId, }: {
39
47
  start: number;
40
48
  data: DialogContentState;
41
- shareContentType?: string | undefined;
42
- shareContentSubType?: string | undefined;
43
- shareContentId?: string | undefined;
44
- shareOrigin?: OriginTracing | undefined;
45
- isPublicLink?: boolean | undefined;
49
+ shareContentType?: string;
50
+ shareContentSubType?: string;
51
+ shareContentId?: string;
52
+ shareOrigin?: OriginTracing;
53
+ isPublicLink?: boolean;
46
54
  productAttributes?: any;
47
- loggedInAccountId?: string | undefined;
48
- source?: string | undefined;
49
- actionSubjectId?: string | undefined;
55
+ loggedInAccountId?: string;
56
+ source?: string;
57
+ actionSubjectId?: string;
50
58
  }) => AnalyticsEventPayload;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IconButtonProps } from '@atlaskit/button/new';
3
2
  import type { NewCoreIconProps } from '@atlaskit/icon';
4
3
  import type { LoadOptions, Props as SmartUserPickerProps, Value } from '@atlaskit/smart-user-picker';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
2
  import { type NewCoreIconProps } from '@atlaskit/icon';
4
3
  import type { Placement } from '@atlaskit/popper';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type Content = {
3
2
  ari: string;
4
3
  link: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { LoadOptions } from '@atlaskit/smart-user-picker';
3
2
  import type { ConfigResponse } from '../clients/ShareServiceClient';
4
3
  import type { ProductName } from './Products';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MessageDescriptor } from 'react-intl-next';
3
2
  import type { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
4
3
  export type UserPickerOptions = Pick<SmartUserPickerProps, 'onFocus' | 'header' | 'includeNonLicensedUsers'> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type FormChildrenArgs<T> = {
3
2
  formProps: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
4
3
  getValues: () => T;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  declare const _default: React.ForwardRefExoticComponent<Omit<{
4
- children?: React.ReactNode;
4
+ children?: React.ReactNode | undefined;
5
5
  }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
6
6
  export default _default;
@@ -49,8 +49,8 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
49
49
  }
50
50
  export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
51
51
  integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
52
- shareIntegrations?: import("../types").Integration[] | undefined;
53
- additionalTabs?: import("../types").AdditionalTab[] | undefined;
52
+ shareIntegrations?: Array<import("../types").Integration> | undefined;
53
+ additionalTabs?: Array<import("../types").AdditionalTab> | undefined;
54
54
  builtInTabContentWidth?: number | undefined;
55
55
  copyTooltipText?: string | undefined;
56
56
  isPublicLink?: boolean | undefined;
@@ -72,7 +72,7 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
72
72
  shareClient?: ShareClient | undefined;
73
73
  urlShortenerClient?: UrlShortenerClient | undefined;
74
74
  shortLinkData?: ShortenRequest | undefined;
75
- dialogPlacement?: import("@popperjs/core").Placement | undefined;
75
+ dialogPlacement?: import("../types").DialogPlacement | undefined;
76
76
  dialogZIndex?: number | undefined;
77
77
  formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
78
78
  loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
@@ -89,7 +89,7 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
89
89
  shareFormTitle?: React.ReactNode;
90
90
  shareFormHelperMessage?: string | undefined;
91
91
  shouldCloseOnEscapePress?: boolean | undefined;
92
- showFlags?: ((flags: import("../types").Flag[]) => void) | undefined;
92
+ showFlags?: ((flags: Array<import("../types").Flag>) => void) | undefined;
93
93
  triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
94
94
  triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
95
95
  triggerButtonStyle?: import("../types").ShareButtonStyle | undefined;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { type IntegrationMode } from '../../types/ShareEntities';
3
3
  export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMenuItemSelected, isExtendedShareDialogEnabled, }: React.PropsWithChildren<{
4
- integrationMode?: IntegrationMode | undefined;
5
- isMenuItemSelected?: boolean | undefined;
6
- isExtendedShareDialogEnabled?: boolean | undefined;
4
+ integrationMode?: IntegrationMode;
5
+ isMenuItemSelected?: boolean;
6
+ isExtendedShareDialogEnabled?: boolean;
7
7
  }>) => React.JSX.Element;
8
8
  export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: {
9
9
  children: React.ReactNode;
10
- label?: string | undefined;
11
- isExtendedShareDialogEnabled?: boolean | undefined;
10
+ label?: string;
11
+ isExtendedShareDialogEnabled?: boolean;
12
12
  }) => React.JSX.Element;
@@ -6,9 +6,9 @@ import { type PropsWithChildren } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import { type IntegrationMode } from '../../types/ShareEntities';
8
8
  export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMenuItemSelected, isExtendedShareDialogEnabled, }: PropsWithChildren<{
9
- integrationMode?: IntegrationMode | undefined;
10
- isMenuItemSelected?: boolean | undefined;
11
- isExtendedShareDialogEnabled?: boolean | undefined;
9
+ integrationMode?: IntegrationMode;
10
+ isMenuItemSelected?: boolean;
11
+ isExtendedShareDialogEnabled?: boolean;
12
12
  }>) => jsx.JSX.Element;
13
13
  /**
14
14
  * Apply the same styling, as previous @atlaskit/inline-dialog had,
@@ -17,6 +17,6 @@ export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMe
17
17
  * packages/design-system/inline-dialog/src/InlineDialog/styled.ts:20:3
18
18
  */
19
19
  export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: PropsWithChildren<{
20
- label?: string | undefined;
21
- isExtendedShareDialogEnabled?: boolean | undefined;
20
+ label?: string;
21
+ isExtendedShareDialogEnabled?: boolean;
22
22
  }>) => jsx.JSX.Element;
@@ -17,34 +17,42 @@ export declare const shareMenuItemClicked: (subjectId: MenuItemSubjectIdType, sh
17
17
  export declare const cancelShare: (start: number) => AnalyticsEventPayload;
18
18
  export declare const shortUrlRequested: () => AnalyticsEventPayload;
19
19
  export declare const shortUrlGenerated: (start: number, tooSlow: boolean) => AnalyticsEventPayload;
20
+ export declare const shareConfigurationLoaded: (attributes: {
21
+ disableSharingToEmails: boolean | undefined;
22
+ durationMs: number;
23
+ }) => AnalyticsEventPayload;
24
+ export declare const shareConfigurationLoadFailed: (attributes: {
25
+ statusCode: string | number | undefined;
26
+ durationMs: number;
27
+ }) => AnalyticsEventPayload;
20
28
  export declare const copyLinkButtonClicked: ({ start, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, ari, }: {
21
29
  start: number;
22
- shareContentType?: string | undefined;
23
- shareContentSubType?: string | undefined;
24
- shareContentId?: string | undefined;
25
- shareOrigin?: OriginTracing | undefined;
26
- isPublicLink?: boolean | undefined;
27
- ari?: string | undefined;
30
+ shareContentType?: string;
31
+ shareContentSubType?: string;
32
+ shareContentId?: string;
33
+ shareOrigin?: OriginTracing;
34
+ isPublicLink?: boolean;
35
+ ari?: string;
28
36
  }) => AnalyticsEventPayload;
29
37
  export declare const formShareSubmitted: ({ start, data, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, }: {
30
38
  start: number;
31
39
  data: DialogContentState;
32
- shareContentType?: string | undefined;
33
- shareContentSubType?: string | undefined;
34
- shareContentId?: string | undefined;
35
- shareOrigin?: OriginTracing | undefined;
36
- isPublicLink?: boolean | undefined;
40
+ shareContentType?: string;
41
+ shareContentSubType?: string;
42
+ shareContentId?: string;
43
+ shareOrigin?: OriginTracing;
44
+ isPublicLink?: boolean;
37
45
  }) => AnalyticsEventPayload;
38
46
  export declare const jiraPageSharedEvent: ({ start, data, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, productAttributes, loggedInAccountId, source, actionSubjectId, }: {
39
47
  start: number;
40
48
  data: DialogContentState;
41
- shareContentType?: string | undefined;
42
- shareContentSubType?: string | undefined;
43
- shareContentId?: string | undefined;
44
- shareOrigin?: OriginTracing | undefined;
45
- isPublicLink?: boolean | undefined;
49
+ shareContentType?: string;
50
+ shareContentSubType?: string;
51
+ shareContentId?: string;
52
+ shareOrigin?: OriginTracing;
53
+ isPublicLink?: boolean;
46
54
  productAttributes?: any;
47
- loggedInAccountId?: string | undefined;
48
- source?: string | undefined;
49
- actionSubjectId?: string | undefined;
55
+ loggedInAccountId?: string;
56
+ source?: string;
57
+ actionSubjectId?: string;
50
58
  }) => AnalyticsEventPayload;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IconButtonProps } from '@atlaskit/button/new';
3
2
  import type { NewCoreIconProps } from '@atlaskit/icon';
4
3
  import type { LoadOptions, Props as SmartUserPickerProps, Value } from '@atlaskit/smart-user-picker';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
2
  import { type NewCoreIconProps } from '@atlaskit/icon';
4
3
  import type { Placement } from '@atlaskit/popper';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type Content = {
3
2
  ari: string;
4
3
  link: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { LoadOptions } from '@atlaskit/smart-user-picker';
3
2
  import type { ConfigResponse } from '../clients/ShareServiceClient';
4
3
  import type { ProductName } from './Products';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MessageDescriptor } from 'react-intl-next';
3
2
  import type { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
4
3
  export type UserPickerOptions = Pick<SmartUserPickerProps, 'onFocus' | 'header' | 'includeNonLicensedUsers'> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type FormChildrenArgs<T> = {
3
2
  formProps: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
4
3
  getValues: () => T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "6.16.3",
3
+ "version": "6.16.4",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,20 +38,20 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-next": "^11.1.0",
41
- "@atlaskit/button": "^23.3.0",
41
+ "@atlaskit/button": "^23.4.0",
42
42
  "@atlaskit/css": "^0.12.0",
43
43
  "@atlaskit/dropdown-menu": "^16.3.0",
44
- "@atlaskit/form": "^12.0.0",
44
+ "@atlaskit/form": "^12.1.0",
45
45
  "@atlaskit/heading": "^5.2.0",
46
- "@atlaskit/icon": "^27.9.0",
46
+ "@atlaskit/icon": "^28.0.0",
47
47
  "@atlaskit/link": "^3.2.0",
48
- "@atlaskit/menu": "^8.1.0",
48
+ "@atlaskit/menu": "^8.3.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/popper": "^7.1.0",
51
51
  "@atlaskit/popup": "^4.3.0",
52
52
  "@atlaskit/portal": "^5.1.0",
53
53
  "@atlaskit/primitives": "^14.11.0",
54
- "@atlaskit/smart-user-picker": "^8.0.0",
54
+ "@atlaskit/smart-user-picker": "^8.1.0",
55
55
  "@atlaskit/spinner": "^19.0.0",
56
56
  "@atlaskit/tabs": "^18.1.0",
57
57
  "@atlaskit/textarea": "^8.0.0",
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/tokens": "^6.0.0",
60
60
  "@atlaskit/tooltip": "^20.4.0",
61
61
  "@atlaskit/ufo": "^0.4.0",
62
- "@atlaskit/user-picker": "^11.4.0",
62
+ "@atlaskit/user-picker": "^11.6.0",
63
63
  "@atlaskit/util-service-support": "^6.3.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
@@ -79,7 +79,7 @@
79
79
  "@testing-library/user-event": "^14.4.3",
80
80
  "enzyme": "^3.10.0",
81
81
  "react": "^18.2.0",
82
- "typescript": "~5.4.2"
82
+ "typescript": "5.9.2"
83
83
  },
84
84
  "keywords": [
85
85
  "ui",
@@ -140,6 +140,9 @@
140
140
  },
141
141
  "page_shared_event_from_share_dialogue": {
142
142
  "type": "boolean"
143
+ },
144
+ "jira-warepil-track-sharing-to-email-disabled": {
145
+ "type": "boolean"
143
146
  }
144
147
  },
145
148
  "sideEffects": [