@wordpress/media-editor 0.16.0 → 0.17.0
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 +16 -1
- package/build/components/media-editor/index.cjs +65 -79
- package/build/components/media-editor/index.cjs.map +3 -3
- package/build/components/media-editor-canvas/index.cjs +0 -2
- package/build/components/media-editor-canvas/index.cjs.map +2 -2
- package/build/components/media-editor-modal/index.cjs +31 -15
- package/build/components/media-editor-modal/index.cjs.map +3 -3
- package/build-module/components/media-editor/index.mjs +67 -79
- package/build-module/components/media-editor/index.mjs.map +2 -2
- package/build-module/components/media-editor-canvas/index.mjs +0 -2
- package/build-module/components/media-editor-canvas/index.mjs.map +2 -2
- package/build-module/components/media-editor-modal/index.mjs +31 -15
- package/build-module/components/media-editor-modal/index.mjs.map +2 -2
- package/build-style/style-rtl.css +4 -4
- package/build-style/style.css +4 -4
- package/build-types/components/media-editor/index.d.ts +46 -11
- package/build-types/components/media-editor/index.d.ts.map +1 -1
- package/build-types/components/media-editor-canvas/index.d.ts +1 -4
- package/build-types/components/media-editor-canvas/index.d.ts.map +1 -1
- package/build-types/components/media-editor-modal/index.d.ts.map +1 -1
- package/global.d.ts +5 -0
- package/package.json +24 -22
- package/src/components/media-editor/index.tsx +152 -118
- package/src/components/media-editor/style.scss +6 -3
- package/src/components/media-editor-canvas/index.tsx +5 -9
- package/src/components/media-editor-modal/index.tsx +43 -12
- package/src/components/media-editor-modal/style.scss +8 -4
- package/src/image-editor/stories/rectangle-crop.story.tsx +15 -0
- package/tsconfig.build.json +26 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +22 -15
- package/build-types/components/rotation-ruler/stories/index.story.d.ts +0 -8
- package/build-types/components/rotation-ruler/stories/index.story.d.ts.map +0 -1
- package/build-types/image-editor/stories/rectangle-crop.story.d.ts +0 -10
- package/build-types/image-editor/stories/rectangle-crop.story.d.ts.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
package/tsconfig.json
CHANGED
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig.json",
|
|
3
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"extends": "../../tsconfig.dev.base.json",
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"types": [ "gutenberg-env", "style-imports" ]
|
|
6
|
-
"checkJs": false
|
|
5
|
+
"types": [ "jest", "gutenberg-env", "style-imports" ]
|
|
7
6
|
},
|
|
7
|
+
"files": [ "global.d.ts" ],
|
|
8
8
|
"references": [
|
|
9
|
-
{ "path": "
|
|
10
|
-
{ "path": "../
|
|
11
|
-
{ "path": "../
|
|
12
|
-
{ "path": "../
|
|
13
|
-
{ "path": "../
|
|
9
|
+
{ "path": "./tsconfig.build.json" },
|
|
10
|
+
{ "path": "../a11y/tsconfig.build.json" },
|
|
11
|
+
{ "path": "../api-fetch/tsconfig.build.json" },
|
|
12
|
+
{ "path": "../components/tsconfig.build.json" },
|
|
13
|
+
{ "path": "../compose/tsconfig.build.json" },
|
|
14
|
+
{ "path": "../core-data/tsconfig.build.json" },
|
|
14
15
|
{ "path": "../data" },
|
|
15
|
-
{ "path": "../dataviews" },
|
|
16
|
+
{ "path": "../dataviews/tsconfig.build.json" },
|
|
16
17
|
{ "path": "../date" },
|
|
17
|
-
{ "path": "../element" },
|
|
18
|
-
{ "path": "../i18n" },
|
|
19
|
-
{ "path": "../icons" },
|
|
18
|
+
{ "path": "../element/tsconfig.build.json" },
|
|
19
|
+
{ "path": "../i18n/tsconfig.build.json" },
|
|
20
|
+
{ "path": "../icons/tsconfig.build.json" },
|
|
20
21
|
{ "path": "../keyboard-shortcuts" },
|
|
21
|
-
{ "path": "../keycodes" },
|
|
22
|
-
{ "path": "../notices" },
|
|
22
|
+
{ "path": "../keycodes/tsconfig.build.json" },
|
|
23
|
+
{ "path": "../notices/tsconfig.build.json" },
|
|
23
24
|
{ "path": "../private-apis" },
|
|
24
|
-
{ "path": "../ui" }
|
|
25
|
+
{ "path": "../ui/tsconfig.build.json" }
|
|
26
|
+
],
|
|
27
|
+
// Listed files have pre-existing type errors; include them once fixed.
|
|
28
|
+
"exclude": [
|
|
29
|
+
"**/benchmark",
|
|
30
|
+
"src/components/media-editor-modal/test/index.tsx",
|
|
31
|
+
"src/image-editor/react/components/stencils/test/rectangle-stencil.tsx"
|
|
25
32
|
]
|
|
26
33
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import RotationRuler from '../index';
|
|
3
|
-
import '../style.scss';
|
|
4
|
-
declare const meta: Meta<typeof RotationRuler>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof RotationRuler>;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../../src/components/rotation-ruler/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,eAAe,CAAC;AAEvB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,aAAa,CAerC,CAAC;eACa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,aAAa,CAAE,CAAC;AAE9C,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Cropper } from '../react/components/cropper';
|
|
3
|
-
import './style.css';
|
|
4
|
-
declare const meta: Meta<typeof Cropper>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof Cropper>;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const WithControls: Story;
|
|
9
|
-
export declare const Debug: Story;
|
|
10
|
-
//# sourceMappingURL=rectangle-crop.story.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rectangle-crop.story.d.ts","sourceRoot":"","sources":["../../../src/image-editor/stories/rectangle-crop.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAmB5D,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAuBtD,OAAO,aAAa,CAAC;AA6ErB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAI/B,CAAC;eAEa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,OAAO,CAAE,CAAC;AAsBxC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAyWF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AA4hBF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC"}
|