@atlaskit/teams-client 4.33.1 → 4.33.2

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,26 @@
1
1
  # @atlaskit/teams-client
2
2
 
3
+ ## 4.33.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3ae085a9629b3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3ae085a9629b3) -
8
+ Migrate `Team` type from `ptc-common` to `teams-client` as part of `ptc-common` deprecation.
9
+ - **`@atlaskit/teams-client`**: Made `restriction` field optional on the `Team` interface
10
+ (consistent with its `@deprecated` status). Exported `TeamAvatarImage` from the `types` subpath
11
+ entry point.
12
+ - **`@atlassian/ptc-common`**: Removed local `Team` and `TeamAvatarImage` interface definitions.
13
+ Both are now imported from `@atlaskit/teams-client/types` and re-exported for backward
14
+ compatibility. `Team` is re-exported as `@deprecated` — consumers should migrate to
15
+ `TeamWithImageUrls` from `@atlaskit/teams-client`. `TeamWithImageUrls` is also now exported
16
+ directly from `@atlassian/ptc-common`.
17
+ - **`@atlassian/ptc-embeddable-directory`**: Updated all internal usages of `Team` from
18
+ `@atlassian/ptc-common` to `TeamWithImageUrls` from `@atlaskit/teams-client/types`.
19
+ - **`@atlassian/team-profile`**: Updated all internal usages of `Team` from
20
+ `@atlassian/ptc-common` to `TeamWithImageUrls` from `@atlaskit/teams-client/types`. Defined
21
+ `TeamListItemUiElement` locally (derived from `TeamWithImageUrls`) to remove the `ptc-common`
22
+ dependency for that type.
23
+
3
24
  ## 4.33.1
4
25
 
5
26
  ### Patch Changes
@@ -52,7 +52,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
52
52
  return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
53
53
  metadata: {
54
54
  error: (0, _utils.createErrorMetadata)(error),
55
- packageVersion: "4.33.0",
55
+ packageVersion: "4.33.1",
56
56
  packageName: "@atlaskit/teams-client"
57
57
  }
58
58
  }]);
@@ -60,7 +60,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
60
60
  return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
61
61
  metadata: {
62
62
  error: 'unknown error',
63
- packageVersion: "4.33.0",
63
+ packageVersion: "4.33.1",
64
64
  packageName: "@atlaskit/teams-client"
65
65
  }
66
66
  }]);
@@ -36,7 +36,7 @@ function getSentryConfig(options) {
36
36
  return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
37
37
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
38
38
  // when building to deploy to production
39
- release: "".concat("@atlaskit/teams-client", "@").concat("4.33.0") ||
39
+ release: "".concat("@atlaskit/teams-client", "@").concat("4.33.1") ||
40
40
  // @ts-ignore Jira - window.BUILD_KEY
41
41
  window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
42
42
  (_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
@@ -27,7 +27,7 @@ export class TeamsUFOExperience extends UFOExperience {
27
27
  return super.failure({
28
28
  metadata: {
29
29
  error: createErrorMetadata(error),
30
- packageVersion: "4.33.0",
30
+ packageVersion: "4.33.1",
31
31
  packageName: "@atlaskit/teams-client"
32
32
  }
33
33
  });
@@ -35,7 +35,7 @@ export class TeamsUFOExperience extends UFOExperience {
35
35
  return super.failure({
36
36
  metadata: {
37
37
  error: 'unknown error',
38
- packageVersion: "4.33.0",
38
+ packageVersion: "4.33.1",
39
39
  packageName: "@atlaskit/teams-client"
40
40
  }
41
41
  });
@@ -28,7 +28,7 @@ export function getSentryConfig(options) {
28
28
  ...DEFAULT_SENTRY_CONFIG,
29
29
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
30
30
  // when building to deploy to production
31
- release: `${"@atlaskit/teams-client"}@${"4.33.0"}` ||
31
+ release: `${"@atlaskit/teams-client"}@${"4.33.1"}` ||
32
32
  // @ts-ignore Jira - window.BUILD_KEY
33
33
  window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
34
34
  (_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
@@ -45,7 +45,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
45
45
  return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
46
46
  metadata: {
47
47
  error: createErrorMetadata(error),
48
- packageVersion: "4.33.0",
48
+ packageVersion: "4.33.1",
49
49
  packageName: "@atlaskit/teams-client"
50
50
  }
51
51
  }]);
@@ -53,7 +53,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
53
53
  return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
54
54
  metadata: {
55
55
  error: 'unknown error',
56
- packageVersion: "4.33.0",
56
+ packageVersion: "4.33.1",
57
57
  packageName: "@atlaskit/teams-client"
58
58
  }
59
59
  }]);
@@ -29,7 +29,7 @@ export function getSentryConfig(options) {
29
29
  return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
30
30
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
31
31
  // when building to deploy to production
32
- release: "".concat("@atlaskit/teams-client", "@").concat("4.33.0") ||
32
+ release: "".concat("@atlaskit/teams-client", "@").concat("4.33.1") ||
33
33
  // @ts-ignore Jira - window.BUILD_KEY
34
34
  window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
35
35
  (_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
@@ -1,4 +1,4 @@
1
- export type { TeamWithImageUrls, TeamAvatarImage, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamDiscoverability, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
1
+ export type { TeamAvatarImage, TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamDiscoverability, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
2
2
  export type { TeamsClientUser as User, EditableUserFields } from './user';
3
3
  export { isEditableUserField } from './user';
4
4
  export type { UnlinkContainerMutationError } from '../services/agg-client/utils/mutations/unlink-container-mutation';
@@ -35,7 +35,7 @@ export interface Team {
35
35
  * @private
36
36
  * @deprecated field has been removed as part of migration to V4
37
37
  */
38
- restriction: TeamRestriction;
38
+ restriction?: TeamRestriction;
39
39
  creatorId?: string;
40
40
  permission?: TeamPermission;
41
41
  /**
@@ -1,4 +1,4 @@
1
- export type { TeamWithImageUrls, TeamAvatarImage, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamDiscoverability, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
1
+ export type { TeamAvatarImage, TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamDiscoverability, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
2
2
  export type { TeamsClientUser as User, EditableUserFields } from './user';
3
3
  export { isEditableUserField } from './user';
4
4
  export type { UnlinkContainerMutationError } from '../services/agg-client/utils/mutations/unlink-container-mutation';
@@ -35,7 +35,7 @@ export interface Team {
35
35
  * @private
36
36
  * @deprecated field has been removed as part of migration to V4
37
37
  */
38
- restriction: TeamRestriction;
38
+ restriction?: TeamRestriction;
39
39
  creatorId?: string;
40
40
  permission?: TeamPermission;
41
41
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/teams-client",
3
- "version": "4.33.1",
3
+ "version": "4.33.2",
4
4
  "description": "A client to retrieve team related data",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",