react-zoom-pan-pinch 3.0.5 → 3.0.6
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/.eslintignore +6 -0
- package/.github/CODEOWNERS +36 -0
- package/.github/FUNDING.yml +13 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/workflows/docs.yml +34 -0
- package/.github/workflows/release.yml +46 -0
- package/.github/workflows/tests.yml +42 -0
- package/.prettierrc +10 -0
- package/.releaserc.json +63 -0
- package/.storybook/main.js +23 -0
- package/.storybook/preview-head.html +5 -0
- package/.storybook/preview.js +11 -0
- package/.storybook/theme-overrides.css +49 -0
- package/CHANGELOG.md +26 -0
- package/Code_of_Conduct.md +61 -0
- package/Contributing.md +236 -0
- package/__tests__/features/props.spec.tsx +11 -0
- package/__tests__/features/rendering.spec.tsx +36 -0
- package/__tests__/shared/render.shared.tsx +41 -0
- package/__tests__/utils/controls.utils.tsx +25 -0
- package/__tests__/utils/example.tsx +81 -0
- package/commitlint.config.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/jest.config.ts +45 -0
- package/package.json +2 -6
- package/rollup.config.js +51 -0
- package/src/hooks/use-transform-context.tsx +1 -1
- package/tsconfig.json +32 -0
package/dist/index.esm.js
CHANGED
|
@@ -1902,7 +1902,7 @@ var TransformComponent = function (_a) {
|
|
|
1902
1902
|
var useTransformContext = function () {
|
|
1903
1903
|
var libraryContext = useContext(Context);
|
|
1904
1904
|
if (!libraryContext) {
|
|
1905
|
-
throw new Error("Transform context
|
|
1905
|
+
throw new Error("Transform context must be placed inside TransformWrapper");
|
|
1906
1906
|
}
|
|
1907
1907
|
return libraryContext;
|
|
1908
1908
|
};
|