@atlaskit/share 4.23.8 → 4.23.10

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,21 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.23.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#98532](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98532)
8
+ [`2c9bdfdef47cc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2c9bdfdef47cc) -
9
+ Add an id to the ShareButton in order to improve targeting/triggering
10
+
11
+ ## 4.23.9
12
+
13
+ ### Patch Changes
14
+
15
+ - [#98961](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98961)
16
+ [`6db91cd06376b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6db91cd06376b) -
17
+ Clean up share popup content width override FG
18
+
3
19
  ## 4.23.8
4
20
 
5
21
  ### Patch Changes
@@ -17,6 +17,7 @@ function ShareButton(_ref, ref) {
17
17
  _ariaHasPopup = _ref['aria-haspopup'],
18
18
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
19
19
  return /*#__PURE__*/_react.default.createElement(_standardButton.default, (0, _extends2.default)({
20
+ id: "share-trigger-btn",
20
21
  ref: ref,
21
22
  "aria-haspopup": "dialog"
22
23
  }, props), text);
@@ -344,13 +344,11 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
344
344
  key: "share-tabPanel-default"
345
345
  }, (0, _react2.jsx)("div", {
346
346
  css: formWrapperStyles
347
- }, (0, _platformFeatureFlags.fg)('share_popup_tab_content_width_override') ? (0, _react2.jsx)("div", {
347
+ }, (0, _react2.jsx)("div", {
348
348
  style: {
349
349
  width: "".concat(builtInTabContentWidth || DEFAULT_TAB_CONTENT_WIDTH, "px")
350
350
  }
351
- }, this.renderShareForm()) : (0, _platformFeatureFlags.fg)('smart_links_for_plans_platform') ? (0, _react2.jsx)(_primitives.Box, {
352
- xcss: platformTabWrapper
353
- }, this.renderShareForm()) : this.renderShareForm())), (0, _react2.jsx)(_tabs.TabPanel, {
351
+ }, this.renderShareForm()))), (0, _react2.jsx)(_tabs.TabPanel, {
354
352
  key: "share-tabPanel-integration"
355
353
  }, (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
356
354
  data: {
@@ -358,7 +356,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
358
356
  }
359
357
  }, (0, _react2.jsx)("div", {
360
358
  css: formWrapperStyles
361
- }, (0, _platformFeatureFlags.fg)('share_popup_tab_content_width_override') ? (0, _react2.jsx)("div", {
359
+ }, (0, _react2.jsx)("div", {
362
360
  style: {
363
361
  width: "".concat(builtInTabContentWidth || DEFAULT_TAB_CONTENT_WIDTH, "px")
364
362
  }
@@ -368,21 +366,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
368
366
  return handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog();
369
367
  },
370
368
  changeTab: this.changeTab
371
- })) : (0, _platformFeatureFlags.fg)('smart_links_for_plans_platform') ? (0, _react2.jsx)(_primitives.Box, {
372
- xcss: platformTabWrapper
373
- }, (0, _react2.jsx)(_IntegrationForm.IntegrationForm, {
374
- Content: firstIntegration.Content,
375
- onIntegrationClose: function onIntegrationClose() {
376
- return handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog();
377
- },
378
- changeTab: this.changeTab
379
- })) : (0, _react2.jsx)(_IntegrationForm.IntegrationForm, {
380
- Content: firstIntegration.Content,
381
- onIntegrationClose: function onIntegrationClose() {
382
- return handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog();
383
- },
384
- changeTab: this.changeTab
385
- })))), (0, _platformFeatureFlags.fg)('smart_links_for_plans_platform') && (additionalTabs === null || additionalTabs === void 0 ? void 0 : additionalTabs.map(function (tab) {
369
+ }))))), (0, _platformFeatureFlags.fg)('smart_links_for_plans_platform') && (additionalTabs === null || additionalTabs === void 0 ? void 0 : additionalTabs.map(function (tab) {
386
370
  return (0, _react2.jsx)(_tabs.TabPanel, {
387
371
  key: "share-tabPanel-".concat(tab.label)
388
372
  }, (0, _react2.jsx)("div", {
@@ -416,9 +400,6 @@ var ShareForm = exports.ShareForm = function ShareForm(props) {
416
400
  }));
417
401
  });
418
402
  };
419
- var platformTabWrapper = (0, _primitives.xcss)({
420
- width: '304px'
421
- });
422
403
  ShareForm.defaultProps = {
423
404
  isSharing: false,
424
405
  product: 'confluence',
@@ -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.23.8"
16
+ packageVersion: "4.23.10"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -9,6 +9,7 @@ function ShareButton({
9
9
  ...props
10
10
  }, ref) {
11
11
  return /*#__PURE__*/React.createElement(Button, _extends({
12
+ id: "share-trigger-btn",
12
13
  ref: ref,
13
14
  "aria-haspopup": "dialog"
14
15
  }, props), text);
@@ -319,13 +319,11 @@ class InternalForm extends React.PureComponent {
319
319
  key: `share-tabPanel-default`
320
320
  }, jsx("div", {
321
321
  css: formWrapperStyles
322
- }, fg('share_popup_tab_content_width_override') ? jsx("div", {
322
+ }, jsx("div", {
323
323
  style: {
324
324
  width: `${builtInTabContentWidth || DEFAULT_TAB_CONTENT_WIDTH}px`
325
325
  }
326
- }, this.renderShareForm()) : fg('smart_links_for_plans_platform') ? jsx(Box, {
327
- xcss: platformTabWrapper
328
- }, this.renderShareForm()) : this.renderShareForm())), jsx(TabPanel, {
326
+ }, this.renderShareForm()))), jsx(TabPanel, {
329
327
  key: `share-tabPanel-integration`
330
328
  }, jsx(AnalyticsContext, {
331
329
  data: {
@@ -333,7 +331,7 @@ class InternalForm extends React.PureComponent {
333
331
  }
334
332
  }, jsx("div", {
335
333
  css: formWrapperStyles
336
- }, fg('share_popup_tab_content_width_override') ? jsx("div", {
334
+ }, jsx("div", {
337
335
  style: {
338
336
  width: `${builtInTabContentWidth || DEFAULT_TAB_CONTENT_WIDTH}px`
339
337
  }
@@ -341,17 +339,7 @@ class InternalForm extends React.PureComponent {
341
339
  Content: firstIntegration.Content,
342
340
  onIntegrationClose: () => handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog(),
343
341
  changeTab: this.changeTab
344
- })) : fg('smart_links_for_plans_platform') ? jsx(Box, {
345
- xcss: platformTabWrapper
346
- }, jsx(IntegrationForm, {
347
- Content: firstIntegration.Content,
348
- onIntegrationClose: () => handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog(),
349
- changeTab: this.changeTab
350
- })) : jsx(IntegrationForm, {
351
- Content: firstIntegration.Content,
352
- onIntegrationClose: () => handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog(),
353
- changeTab: this.changeTab
354
- })))), fg('smart_links_for_plans_platform') && (additionalTabs === null || additionalTabs === void 0 ? void 0 : additionalTabs.map(tab => jsx(TabPanel, {
342
+ }))))), fg('smart_links_for_plans_platform') && (additionalTabs === null || additionalTabs === void 0 ? void 0 : additionalTabs.map(tab => jsx(TabPanel, {
355
343
  key: `share-tabPanel-${tab.label}`
356
344
  }, jsx("div", {
357
345
  css: formWrapperStyles
@@ -377,9 +365,6 @@ export const ShareForm = props => jsx(Form, {
377
365
  formProps: formProps,
378
366
  getValues: getValues
379
367
  })));
380
- const platformTabWrapper = xcss({
381
- width: '304px'
382
- });
383
368
  ShareForm.defaultProps = {
384
369
  isSharing: false,
385
370
  product: 'confluence',
@@ -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: "4.23.8",
4
+ packageVersion: "4.23.10",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -10,6 +10,7 @@ function ShareButton(_ref, ref) {
10
10
  _ariaHasPopup = _ref['aria-haspopup'],
11
11
  props = _objectWithoutProperties(_ref, _excluded);
12
12
  return /*#__PURE__*/React.createElement(Button, _extends({
13
+ id: "share-trigger-btn",
13
14
  ref: ref,
14
15
  "aria-haspopup": "dialog"
15
16
  }, props), text);
@@ -337,13 +337,11 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
337
337
  key: "share-tabPanel-default"
338
338
  }, jsx("div", {
339
339
  css: formWrapperStyles
340
- }, fg('share_popup_tab_content_width_override') ? jsx("div", {
340
+ }, jsx("div", {
341
341
  style: {
342
342
  width: "".concat(builtInTabContentWidth || DEFAULT_TAB_CONTENT_WIDTH, "px")
343
343
  }
344
- }, this.renderShareForm()) : fg('smart_links_for_plans_platform') ? jsx(Box, {
345
- xcss: platformTabWrapper
346
- }, this.renderShareForm()) : this.renderShareForm())), jsx(TabPanel, {
344
+ }, this.renderShareForm()))), jsx(TabPanel, {
347
345
  key: "share-tabPanel-integration"
348
346
  }, jsx(AnalyticsContext, {
349
347
  data: {
@@ -351,7 +349,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
351
349
  }
352
350
  }, jsx("div", {
353
351
  css: formWrapperStyles
354
- }, fg('share_popup_tab_content_width_override') ? jsx("div", {
352
+ }, jsx("div", {
355
353
  style: {
356
354
  width: "".concat(builtInTabContentWidth || DEFAULT_TAB_CONTENT_WIDTH, "px")
357
355
  }
@@ -361,21 +359,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
361
359
  return handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog();
362
360
  },
363
361
  changeTab: this.changeTab
364
- })) : fg('smart_links_for_plans_platform') ? jsx(Box, {
365
- xcss: platformTabWrapper
366
- }, jsx(IntegrationForm, {
367
- Content: firstIntegration.Content,
368
- onIntegrationClose: function onIntegrationClose() {
369
- return handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog();
370
- },
371
- changeTab: this.changeTab
372
- })) : jsx(IntegrationForm, {
373
- Content: firstIntegration.Content,
374
- onIntegrationClose: function onIntegrationClose() {
375
- return handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog();
376
- },
377
- changeTab: this.changeTab
378
- })))), fg('smart_links_for_plans_platform') && (additionalTabs === null || additionalTabs === void 0 ? void 0 : additionalTabs.map(function (tab) {
362
+ }))))), fg('smart_links_for_plans_platform') && (additionalTabs === null || additionalTabs === void 0 ? void 0 : additionalTabs.map(function (tab) {
379
363
  return jsx(TabPanel, {
380
364
  key: "share-tabPanel-".concat(tab.label)
381
365
  }, jsx("div", {
@@ -409,9 +393,6 @@ export var ShareForm = function ShareForm(props) {
409
393
  }));
410
394
  });
411
395
  };
412
- var platformTabWrapper = xcss({
413
- width: '304px'
414
- });
415
396
  ShareForm.defaultProps = {
416
397
  isSharing: false,
417
398
  product: 'confluence',
@@ -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.23.8"
9
+ packageVersion: "4.23.10"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.23.8",
3
+ "version": "4.23.10",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -123,9 +123,6 @@
123
123
  },
124
124
  "smart_links_for_plans_platform": {
125
125
  "type": "boolean"
126
- },
127
- "share_popup_tab_content_width_override": {
128
- "type": "boolean"
129
126
  }
130
127
  }
131
128
  }
package/tsconfig.json CHANGED
@@ -9,6 +9,5 @@
9
9
  "./examples/**/*.tsx"
10
10
  ],
11
11
  "compilerOptions": {
12
- "baseUrl": "./"
13
12
  }
14
13
  }