@atlaskit/media-viewer 54.2.5 → 54.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/media-viewer
2
2
 
3
+ ## 54.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 54.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`cd097a2111788`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd097a2111788) -
14
+ Republish packages depending on `@atlaskit/react-compiler-gating` so their published dependency
15
+ reference is updated to the renamed `@atlaskit/react-compiler-gating` scope.
16
+
17
+ The earlier rename of `@atlassian/react-compiler-gating` to `@atlaskit/react-compiler-gating` only
18
+ bumped the renamed package itself, so dependent packages were never republished and their
19
+ published versions still referenced the old `@atlassian/react-compiler-gating` name, which is not
20
+ available in the public npm registry. This minor bump republishes all affected packages with the
21
+ corrected dependency.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 54.2.5
4
28
 
5
29
  ### Patch Changes
@@ -10,7 +10,7 @@ exports.packageVersion = exports.packageName = void 0;
10
10
  var _analytics = require("@atlaskit/media-common/analytics");
11
11
  var componentName = exports.component = exports.componentName = 'mediaViewer';
12
12
  var packageName = exports.packageName = "@atlaskit/media-viewer";
13
- var packageVersion = exports.packageVersion = "54.2.4";
13
+ var packageVersion = exports.packageVersion = "54.3.0";
14
14
  function getFileAttributes(fileState) {
15
15
  if (!fileState) {
16
16
  return {
@@ -13,7 +13,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
13
  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; }
14
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
15
  var packageName = "@atlaskit/media-viewer";
16
- var packageVersion = "54.2.4";
16
+ var packageVersion = "54.3.0";
17
17
  var ufoExperience;
18
18
  var getExperience = function getExperience() {
19
19
  if (!ufoExperience) {
@@ -1,7 +1,7 @@
1
1
  import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
2
2
  const componentName = 'mediaViewer';
3
3
  const packageName = "@atlaskit/media-viewer";
4
- const packageVersion = "54.2.4";
4
+ const packageVersion = "54.3.0";
5
5
  export { packageName, packageVersion, componentName, componentName as component };
6
6
  export function getFileAttributes(fileState) {
7
7
  if (!fileState) {
@@ -3,7 +3,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
3
3
  import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
4
4
  import { fg } from '@atlaskit/platform-feature-flags';
5
5
  const packageName = "@atlaskit/media-viewer";
6
- const packageVersion = "54.2.4";
6
+ const packageVersion = "54.3.0";
7
7
  let ufoExperience;
8
8
  const getExperience = () => {
9
9
  if (!ufoExperience) {
@@ -1,7 +1,7 @@
1
1
  import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
2
2
  var componentName = 'mediaViewer';
3
3
  var packageName = "@atlaskit/media-viewer";
4
- var packageVersion = "54.2.4";
4
+ var packageVersion = "54.3.0";
5
5
  export { packageName, packageVersion, componentName, componentName as component };
6
6
  export function getFileAttributes(fileState) {
7
7
  if (!fileState) {
@@ -6,7 +6,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
6
6
  import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  var packageName = "@atlaskit/media-viewer";
9
- var packageVersion = "54.2.4";
9
+ var packageVersion = "54.3.0";
10
10
  var ufoExperience;
11
11
  var getExperience = function getExperience() {
12
12
  if (!ufoExperience) {
@@ -0,0 +1,46 @@
1
+ import path from 'path';
2
+
3
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
4
+
5
+ import packageJson from './package.json';
6
+
7
+ const packagePath = path.resolve(__dirname);
8
+
9
+ const documentation: StructuredContentSource = {
10
+ components: [
11
+ {
12
+ name: 'MediaViewer',
13
+ description:
14
+ "MediaViewer is Atlassian's powerful solution for viewing files on the web. It supports images, video, audio, documents, and more in a full-screen overlay.",
15
+ status: 'general-availability',
16
+ import: {
17
+ name: 'MediaViewer',
18
+ package: '@atlaskit/media-viewer',
19
+ type: 'named',
20
+ packagePath,
21
+ packageJson,
22
+ },
23
+ usageGuidelines: [
24
+ 'Use MediaViewer to provide a full-screen preview of files and media.',
25
+ 'Use for viewing images, videos, PDFs, and other document types without leaving the current context.',
26
+ 'Supports navigation between multiple files in a collection.',
27
+ ],
28
+ examples: [
29
+ {
30
+ name: 'Basic',
31
+ description: 'Basic usage of MediaViewer with a single file.',
32
+ source: path.resolve(packagePath, './examples/0-basic-example.tsx'),
33
+ },
34
+ {
35
+ name: 'Multi-file',
36
+ description: 'MediaViewer with multiple files and navigation.',
37
+ source: path.resolve(packagePath, './examples/1-multi-file-previews.tsx'),
38
+ },
39
+ ],
40
+ keywords: ['media', 'viewer', 'preview', 'file', 'image', 'video', 'pdf'],
41
+ categories: ['media', 'overlay'],
42
+ },
43
+ ],
44
+ };
45
+
46
+ export default documentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-viewer",
3
- "version": "54.2.5",
3
+ "version": "54.3.1",
4
4
  "description": "MediaViewer is Atlassian's powerful solution for viewing files on the web. It's both powerful and extendable yet easy-to-integrate",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,33 +30,33 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/analytics-next": "^12.0.0",
34
- "@atlaskit/button": "^24.1.0",
35
- "@atlaskit/code": "^18.0.0",
33
+ "@atlaskit/analytics-next": "^12.1.0",
34
+ "@atlaskit/button": "^24.3.0",
35
+ "@atlaskit/code": "^18.2.0",
36
36
  "@atlaskit/css": "^1.0.0",
37
- "@atlaskit/form": "^16.0.0",
38
- "@atlaskit/heading": "^6.0.0",
39
- "@atlaskit/icon": "^36.0.0",
40
- "@atlaskit/icon-file-type": "^8.0.0",
41
- "@atlaskit/icon-lab": "^7.1.0",
37
+ "@atlaskit/form": "^16.1.0",
38
+ "@atlaskit/heading": "^6.1.0",
39
+ "@atlaskit/icon": "^36.1.0",
40
+ "@atlaskit/icon-file-type": "^8.1.0",
41
+ "@atlaskit/icon-lab": "^7.2.0",
42
42
  "@atlaskit/media-client": "^37.1.0",
43
- "@atlaskit/media-client-react": "^6.0.0",
44
- "@atlaskit/media-common": "^14.1.0",
45
- "@atlaskit/media-document-viewer": "^1.0.0",
43
+ "@atlaskit/media-client-react": "^6.1.0",
44
+ "@atlaskit/media-common": "^14.2.0",
45
+ "@atlaskit/media-document-viewer": "^1.1.0",
46
46
  "@atlaskit/media-state": "^3.0.0",
47
- "@atlaskit/media-svg": "^3.0.0",
48
- "@atlaskit/media-ui": "^30.3.0",
47
+ "@atlaskit/media-svg": "^3.1.0",
48
+ "@atlaskit/media-ui": "^30.5.0",
49
49
  "@atlaskit/platform-feature-flags": "^2.0.0",
50
- "@atlaskit/portal": "^6.0.0",
51
- "@atlaskit/primitives": "^20.0.0",
50
+ "@atlaskit/portal": "^6.1.0",
51
+ "@atlaskit/primitives": "^20.2.0",
52
52
  "@atlaskit/react-compiler-gating": "^0.2.0",
53
- "@atlaskit/side-navigation": "^12.0.0",
54
- "@atlaskit/spinner": "^20.0.0",
55
- "@atlaskit/textfield": "^9.0.0",
56
- "@atlaskit/theme": "^26.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^114.0.0",
58
- "@atlaskit/tokens": "^15.0.0",
59
- "@atlaskit/tooltip": "^23.0.0",
53
+ "@atlaskit/side-navigation": "^12.1.0",
54
+ "@atlaskit/spinner": "^20.1.0",
55
+ "@atlaskit/textfield": "^9.1.0",
56
+ "@atlaskit/theme": "^26.1.0",
57
+ "@atlaskit/tmp-editor-statsig": "^115.0.0",
58
+ "@atlaskit/tokens": "^15.2.0",
59
+ "@atlaskit/tooltip": "^23.1.0",
60
60
  "@atlaskit/ufo": "^1.0.0",
61
61
  "@babel/runtime": "^7.0.0",
62
62
  "@codemirror/language": "6.10.8",
@@ -89,12 +89,12 @@
89
89
  "@atlaskit/media-core": "^38.0.0",
90
90
  "@atlaskit/media-integration-test-helpers": "workspace:^",
91
91
  "@atlaskit/media-test-data": "^4.0.0",
92
- "@atlaskit/media-test-helpers": "^42.0.0",
92
+ "@atlaskit/media-test-helpers": "^42.1.0",
93
93
  "@atlaskit/ssr": "workspace:^",
94
- "@atlaskit/toggle": "^17.0.0",
94
+ "@atlaskit/toggle": "^17.1.0",
95
95
  "@atlassian/a11y-jest-testing": "^0.13.0",
96
96
  "@atlassian/feature-flags-test-utils": "^1.1.0",
97
- "@atlassian/testing-library": "^0.6.0",
97
+ "@atlassian/testing-library": "^0.7.0",
98
98
  "@atlassian/ufo": "^0.8.0",
99
99
  "@testing-library/dom": "^10.1.0",
100
100
  "@testing-library/react": "^16.3.0",