@atlaskit/share 4.18.0 → 4.18.1

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/dist/cjs/components/analytics/analytics.js +1 -1
  3. package/dist/es2019/components/analytics/analytics.js +1 -1
  4. package/dist/esm/components/analytics/analytics.js +1 -1
  5. package/dist/types/clients/ShareServiceClient.d.ts +2 -2
  6. package/dist/types/components/CommentField.d.ts +1 -1
  7. package/dist/types/components/CopyLinkButton.d.ts +2 -2
  8. package/dist/types/components/ErrorBoundary.d.ts +1 -1
  9. package/dist/types/components/IntegrationButton.d.ts +1 -1
  10. package/dist/types/components/IntegrationForm.d.ts +1 -1
  11. package/dist/types/components/MessagesIntlProvider.d.ts +1 -1
  12. package/dist/types/components/ShareButton.d.ts +1 -1
  13. package/dist/types/components/ShareHeader.d.ts +1 -1
  14. package/dist/types/components/SplitButton.d.ts +3 -3
  15. package/dist/types/components/analytics/ufoExperienceHelper.d.ts +1 -1
  16. package/dist/types/components/utils.d.ts +2 -2
  17. package/dist/types/types/ShareContentState.d.ts +3 -3
  18. package/dist/types/util/i18n-util.d.ts +1 -1
  19. package/dist/types-ts4.5/clients/ShareServiceClient.d.ts +2 -2
  20. package/dist/types-ts4.5/components/CommentField.d.ts +1 -1
  21. package/dist/types-ts4.5/components/CopyLinkButton.d.ts +2 -2
  22. package/dist/types-ts4.5/components/ErrorBoundary.d.ts +1 -1
  23. package/dist/types-ts4.5/components/IntegrationButton.d.ts +1 -1
  24. package/dist/types-ts4.5/components/IntegrationForm.d.ts +1 -1
  25. package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +1 -1
  26. package/dist/types-ts4.5/components/ShareButton.d.ts +1 -1
  27. package/dist/types-ts4.5/components/ShareHeader.d.ts +1 -1
  28. package/dist/types-ts4.5/components/SplitButton.d.ts +3 -3
  29. package/dist/types-ts4.5/components/analytics/ufoExperienceHelper.d.ts +1 -1
  30. package/dist/types-ts4.5/components/utils.d.ts +2 -2
  31. package/dist/types-ts4.5/types/ShareContentState.d.ts +3 -3
  32. package/dist/types-ts4.5/util/i18n-util.d.ts +1 -1
  33. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 4.18.0
4
10
 
5
11
  ### Minor Changes
@@ -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.18.0"
16
+ packageVersion: "4.18.1"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -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.18.0",
4
+ packageVersion: "4.18.1",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -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.18.0"
9
+ packageVersion: "4.18.1"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -1,5 +1,5 @@
1
- import { ServiceConfig } from '@atlaskit/util-service-support';
2
- import { Comment, Content, MetaData, User } from '../types';
1
+ import { type ServiceConfig } from '@atlaskit/util-service-support';
2
+ import { type Comment, type Content, type MetaData, type User } from '../types';
3
3
  export type ShareRequest = (content: Content, recipients: User[], metadata: MetaData, comment?: Comment) => Promise<ShareResponse>;
4
4
  export type ShareResponse = {
5
5
  shareRequestId: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Comment } from '../types';
2
+ import { type Comment } from '../types';
3
3
  export type Props = {
4
4
  defaultValue?: Comment;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
- import React, { ReactElement } from 'react';
2
+ import React, { type ReactElement } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { TriggerProps } from '@atlaskit/popup';
4
+ import { type TriggerProps } from '@atlaskit/popup';
5
5
  export declare const AUTO_DISMISS_MS: number;
6
6
  export declare const messageContainerStyle: import("@emotion/react").SerializedStyles;
7
7
  type InputProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
2
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  type Props = React.PropsWithChildren<WithAnalyticsEventsProps>;
4
4
  declare const _default: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
5
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { CustomThemeButtonProps } from '@atlaskit/button/types';
3
+ import { type CustomThemeButtonProps } from '@atlaskit/button/types';
4
4
  type Props = CustomThemeButtonProps & {
5
5
  text: React.ReactNode;
6
6
  IntegrationIcon: React.ComponentType;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { IntegrationContentProps } from '../types';
4
+ import { type IntegrationContentProps } from '../types';
5
5
  export declare const formWrapperStyle: import("@emotion/react").SerializedStyles;
6
6
  export type IntegrationFormProps = {
7
7
  Content: React.ComponentType<IntegrationContentProps> | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
2
+ import { type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
4
  children: React.ReactChild;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Appearance } from '@atlaskit/button/types';
2
+ import { type Appearance } from '@atlaskit/button/types';
3
3
  export type Props = {
4
4
  appearance?: Appearance;
5
5
  iconBefore?: React.ReactChild;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { Theme } from '@emotion/react';
3
+ import { type Theme } from '@emotion/react';
4
4
  export type Props = {
5
5
  title?: React.ReactNode;
6
6
  };
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
4
- import { Appearance } from '@atlaskit/button/types';
5
- import { DialogPlacement, Integration } from '../types';
3
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
4
+ import { type Appearance } from '@atlaskit/button/types';
5
+ import { type DialogPlacement, type Integration } from '../types';
6
6
  type SplitButtonProps = {
7
7
  shareButton: React.ReactNode;
8
8
  handleOpenSplitButton: () => void;
@@ -1,2 +1,2 @@
1
- import { UFOExperience } from '@atlaskit/ufo';
1
+ import { type UFOExperience } from '@atlaskit/ufo';
2
2
  export declare const isValidFailedExperience: (experience: UFOExperience, error: any) => void;
@@ -1,5 +1,5 @@
1
- import { OptionData } from '@atlaskit/smart-user-picker';
2
- import { ConfigResponse, User } from '../types';
1
+ import { type OptionData } from '@atlaskit/smart-user-picker';
2
+ import { type ConfigResponse, type User } from '../types';
3
3
  import type { IntegrationMode } from '../types/ShareEntities';
4
4
  /**
5
5
  * We need to generate correct zIndex, for the PopUp and for the Select inside it.
@@ -1,6 +1,6 @@
1
- import { OptionData } from '@atlaskit/smart-user-picker';
2
- import { Comment } from './ShareEntities';
3
- import { User } from './User';
1
+ import { type OptionData } from '@atlaskit/smart-user-picker';
2
+ import { type Comment } from './ShareEntities';
3
+ import { type User } from './User';
4
4
  export type ShareContentState = {
5
5
  users: User[];
6
6
  comment?: Comment;
@@ -1,4 +1,4 @@
1
- import languages from '../i18n/languages';
1
+ import type languages from '../i18n/languages';
2
2
  export type LangCode = keyof typeof languages | 'pt-BR' | 'pt-PT';
3
3
  type LocaleMessages = {
4
4
  [key: string]: string;
@@ -1,5 +1,5 @@
1
- import { ServiceConfig } from '@atlaskit/util-service-support';
2
- import { Comment, Content, MetaData, User } from '../types';
1
+ import { type ServiceConfig } from '@atlaskit/util-service-support';
2
+ import { type Comment, type Content, type MetaData, type User } from '../types';
3
3
  export type ShareRequest = (content: Content, recipients: User[], metadata: MetaData, comment?: Comment) => Promise<ShareResponse>;
4
4
  export type ShareResponse = {
5
5
  shareRequestId: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Comment } from '../types';
2
+ import { type Comment } from '../types';
3
3
  export type Props = {
4
4
  defaultValue?: Comment;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
- import React, { ReactElement } from 'react';
2
+ import React, { type ReactElement } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { TriggerProps } from '@atlaskit/popup';
4
+ import { type TriggerProps } from '@atlaskit/popup';
5
5
  export declare const AUTO_DISMISS_MS: number;
6
6
  export declare const messageContainerStyle: import("@emotion/react").SerializedStyles;
7
7
  type InputProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
2
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  type Props = React.PropsWithChildren<WithAnalyticsEventsProps>;
4
4
  declare const _default: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
5
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { CustomThemeButtonProps } from '@atlaskit/button/types';
3
+ import { type CustomThemeButtonProps } from '@atlaskit/button/types';
4
4
  type Props = CustomThemeButtonProps & {
5
5
  text: React.ReactNode;
6
6
  IntegrationIcon: React.ComponentType;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { IntegrationContentProps } from '../types';
4
+ import { type IntegrationContentProps } from '../types';
5
5
  export declare const formWrapperStyle: import("@emotion/react").SerializedStyles;
6
6
  export type IntegrationFormProps = {
7
7
  Content: React.ComponentType<IntegrationContentProps> | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
2
+ import { type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
4
  children: React.ReactChild;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Appearance } from '@atlaskit/button/types';
2
+ import { type Appearance } from '@atlaskit/button/types';
3
3
  export type Props = {
4
4
  appearance?: Appearance;
5
5
  iconBefore?: React.ReactChild;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { Theme } from '@emotion/react';
3
+ import { type Theme } from '@emotion/react';
4
4
  export type Props = {
5
5
  title?: React.ReactNode;
6
6
  };
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
4
- import { Appearance } from '@atlaskit/button/types';
5
- import { DialogPlacement, Integration } from '../types';
3
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
4
+ import { type Appearance } from '@atlaskit/button/types';
5
+ import { type DialogPlacement, type Integration } from '../types';
6
6
  type SplitButtonProps = {
7
7
  shareButton: React.ReactNode;
8
8
  handleOpenSplitButton: () => void;
@@ -1,2 +1,2 @@
1
- import { UFOExperience } from '@atlaskit/ufo';
1
+ import { type UFOExperience } from '@atlaskit/ufo';
2
2
  export declare const isValidFailedExperience: (experience: UFOExperience, error: any) => void;
@@ -1,5 +1,5 @@
1
- import { OptionData } from '@atlaskit/smart-user-picker';
2
- import { ConfigResponse, User } from '../types';
1
+ import { type OptionData } from '@atlaskit/smart-user-picker';
2
+ import { type ConfigResponse, type User } from '../types';
3
3
  import type { IntegrationMode } from '../types/ShareEntities';
4
4
  /**
5
5
  * We need to generate correct zIndex, for the PopUp and for the Select inside it.
@@ -1,6 +1,6 @@
1
- import { OptionData } from '@atlaskit/smart-user-picker';
2
- import { Comment } from './ShareEntities';
3
- import { User } from './User';
1
+ import { type OptionData } from '@atlaskit/smart-user-picker';
2
+ import { type Comment } from './ShareEntities';
3
+ import { type User } from './User';
4
4
  export type ShareContentState = {
5
5
  users: User[];
6
6
  comment?: Comment;
@@ -1,4 +1,4 @@
1
- import languages from '../i18n/languages';
1
+ import type languages from '../i18n/languages';
2
2
  export type LangCode = keyof typeof languages | 'pt-BR' | 'pt-PT';
3
3
  type LocaleMessages = {
4
4
  [key: string]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.18.0",
3
+ "version": "4.18.1",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@atlaskit/analytics-next": "^9.3.0",
45
- "@atlaskit/button": "^17.15.0",
45
+ "@atlaskit/button": "^17.16.0",
46
46
  "@atlaskit/dropdown-menu": "^12.10.0",
47
- "@atlaskit/form": "^10.1.0",
47
+ "@atlaskit/form": "^10.2.0",
48
48
  "@atlaskit/icon": "^22.3.0",
49
49
  "@atlaskit/menu": "^2.2.0",
50
- "@atlaskit/popper": "^5.5.4",
50
+ "@atlaskit/popper": "^6.0.0",
51
51
  "@atlaskit/popup": "^1.17.0",
52
52
  "@atlaskit/portal": "^4.5.0",
53
53
  "@atlaskit/primitives": "^6.2.0",