diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results new file mode 100644 index 000000000..f5dd5126f --- /dev/null +++ b/.phpunit.cache/test-results @@ -0,0 +1 @@ +{"version":"pest_2.34.0","defects":{"P\\Tests\\Conversions\\ConversionOrientationTest::__pest_evaluable_it_can_correctly_convert_an_image_with_orientation_exif_data":7},"times":{"P\\Tests\\Conversions\\ConversionOrientationTest::__pest_evaluable_it_can_correctly_convert_an_image_with_orientation_exif_data":0.123}} \ No newline at end of file diff --git a/docs/handling-uploads-with-media-library-pro/_index.md b/docs/handling-uploads-with-media-library-pro/_index.md index cc4743f7e..eab8e8c63 100644 --- a/docs/handling-uploads-with-media-library-pro/_index.md +++ b/docs/handling-uploads-with-media-library-pro/_index.md @@ -1,4 +1,4 @@ --- -title: Handling uploads with Media Library Pro +title: Media Library Pro weight: 4 --- diff --git a/docs/handling-uploads-with-media-library-pro/creating-custom-react-components.md b/docs/handling-uploads-with-media-library-pro/creating-custom-react-components.md index 01ac023bf..45dfa6077 100644 --- a/docs/handling-uploads-with-media-library-pro/creating-custom-react-components.md +++ b/docs/handling-uploads-with-media-library-pro/creating-custom-react-components.md @@ -13,7 +13,7 @@ For more extensive examples, [see the pre-built UI components on GitHub](https:/ ```jsx import * as React from "react"; -import { useMediaLibrary } from "media-library-pro-react"; +import { useMediaLibrary } from "media-library-pro/media-library-pro-react"; export default function MediaLibraryAttachment() { const { diff --git a/docs/handling-uploads-with-media-library-pro/creating-custom-vue-components.md b/docs/handling-uploads-with-media-library-pro/creating-custom-vue-components.md index 8b9acd293..58a070c84 100644 --- a/docs/handling-uploads-with-media-library-pro/creating-custom-vue-components.md +++ b/docs/handling-uploads-with-media-library-pro/creating-custom-vue-components.md @@ -47,7 +47,7 @@ For more extensive examples, [see the pre-built UI components on GitHub](https:/ ``` -## Vite -If you are using vite, you need to import an alias to the `vite.config.js` and some little changes to your Vue component. - -```diff -// vite.config.js - -import { defineConfig } from 'vite'; -import laravel from 'laravel-vite-plugin'; -import vue from '@vitejs/plugin-vue'; - -export default defineConfig({ - ... - resolve: { - alias: { - '@': '/resources/js', -+ 'spatie-media-lib-pro': '/vendor/spatie/laravel-medialibrary-pro/resources/js', - }, - }, -}); -``` - -**Component changes Vue2** - -```diff -... -- import { MediaLibraryAttachment } from "media-library-pro-vue2-attachment"; -+ import { MediaLibraryAttachment } from "spatie-media-lib-pro/media-library-pro-vue2-attachment"; -- import { MediaLibraryCollection } from "media-library-pro-vue2-collection"; -+ import { MediaLibraryCollection } from "spatie-media-lib-pro/media-library-pro-vue2-collection"; -... -``` - -**Component changes Vue3** - -```diff -... -- import { MediaLibraryAttachment } from "media-library-pro-vue3-attachment"; -+ import { MediaLibraryAttachment } from "spatie-media-lib-pro/media-library-pro-vue3-attachment"; -- import { MediaLibraryCollection } from "media-library-pro-vue3-collection"; -+ import { MediaLibraryCollection } from "spatie-media-lib-pro/media-library-pro-vue3-collection"; -... -``` - **CSS Import for SPA use** If you are using a SPA you can import the CSS into `app.js` like this: @@ -209,7 +149,7 @@ If you are using a SPA you can import the CSS into `app.js` like this: // resources/js/app.js import './bootstrap'; import '../css/app.css'; -+import 'spatie-media-lib-pro/media-library-pro-styles/src/styles.css'; ++import 'media-library-pro/media-library-pro-styles/src/styles.css'; ... ``` @@ -343,8 +283,6 @@ The Media Library supports [custom properties](/docs/laravel-medialibrary/v11/ad Use the `fields` scoped slot to add some fields: -**Vue 3** - ```html