@ericchen1990/pano-view 3.1.0 → 3.1.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/README.md +26 -3
- package/README.zh-CN.md +25 -3
- package/dist/index.cjs +436 -385
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.mjs +391 -340
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +0 -34
- package/package.json +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -138,11 +138,6 @@ type PanoMediaActivationControls = {
|
|
|
138
138
|
playBackgroundAudio: () => boolean;
|
|
139
139
|
};
|
|
140
140
|
type PanoMediaActivationOptions = {
|
|
141
|
-
/** Message shown on the first-interaction button. Defaults to "Tap to enable sound". */
|
|
142
|
-
message?: ReactNode;
|
|
143
|
-
/** Accessible name for the first-interaction button. */
|
|
144
|
-
ariaLabel?: string;
|
|
145
|
-
className?: string;
|
|
146
141
|
/**
|
|
147
142
|
* Runs synchronously from the activation gesture. Start only the media your
|
|
148
143
|
* experience intends to make audible; do not await before starting it.
|
|
@@ -754,7 +749,9 @@ type PanoViewerProps = Omit<ComponentPropsWithoutRef<"div">, "children" | "onCha
|
|
|
754
749
|
contextMenu?: boolean | PanoContextMenuProps;
|
|
755
750
|
/**
|
|
756
751
|
* Defaults to enabled when a mounted child intends to begin playing media.
|
|
757
|
-
*
|
|
752
|
+
* Unlocks audible playback on the first user gesture when the browser
|
|
753
|
+
* requires one, or immediately when autoplay policy already allows it.
|
|
754
|
+
* Set false to retain the 2.x behavior with no automatic activation.
|
|
758
755
|
*/
|
|
759
756
|
mediaActivation?: false | PanoMediaActivationOptions;
|
|
760
757
|
onViewChange?: (view: PanoViewerState) => void;
|
|
@@ -786,7 +783,9 @@ declare const PanoViewer: react.ForwardRefExoticComponent<Omit<Omit<react.Detail
|
|
|
786
783
|
contextMenu?: boolean | PanoContextMenuProps;
|
|
787
784
|
/**
|
|
788
785
|
* Defaults to enabled when a mounted child intends to begin playing media.
|
|
789
|
-
*
|
|
786
|
+
* Unlocks audible playback on the first user gesture when the browser
|
|
787
|
+
* requires one, or immediately when autoplay policy already allows it.
|
|
788
|
+
* Set false to retain the 2.x behavior with no automatic activation.
|
|
790
789
|
*/
|
|
791
790
|
mediaActivation?: false | PanoMediaActivationOptions;
|
|
792
791
|
onViewChange?: (view: PanoViewerState) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -138,11 +138,6 @@ type PanoMediaActivationControls = {
|
|
|
138
138
|
playBackgroundAudio: () => boolean;
|
|
139
139
|
};
|
|
140
140
|
type PanoMediaActivationOptions = {
|
|
141
|
-
/** Message shown on the first-interaction button. Defaults to "Tap to enable sound". */
|
|
142
|
-
message?: ReactNode;
|
|
143
|
-
/** Accessible name for the first-interaction button. */
|
|
144
|
-
ariaLabel?: string;
|
|
145
|
-
className?: string;
|
|
146
141
|
/**
|
|
147
142
|
* Runs synchronously from the activation gesture. Start only the media your
|
|
148
143
|
* experience intends to make audible; do not await before starting it.
|
|
@@ -754,7 +749,9 @@ type PanoViewerProps = Omit<ComponentPropsWithoutRef<"div">, "children" | "onCha
|
|
|
754
749
|
contextMenu?: boolean | PanoContextMenuProps;
|
|
755
750
|
/**
|
|
756
751
|
* Defaults to enabled when a mounted child intends to begin playing media.
|
|
757
|
-
*
|
|
752
|
+
* Unlocks audible playback on the first user gesture when the browser
|
|
753
|
+
* requires one, or immediately when autoplay policy already allows it.
|
|
754
|
+
* Set false to retain the 2.x behavior with no automatic activation.
|
|
758
755
|
*/
|
|
759
756
|
mediaActivation?: false | PanoMediaActivationOptions;
|
|
760
757
|
onViewChange?: (view: PanoViewerState) => void;
|
|
@@ -786,7 +783,9 @@ declare const PanoViewer: react.ForwardRefExoticComponent<Omit<Omit<react.Detail
|
|
|
786
783
|
contextMenu?: boolean | PanoContextMenuProps;
|
|
787
784
|
/**
|
|
788
785
|
* Defaults to enabled when a mounted child intends to begin playing media.
|
|
789
|
-
*
|
|
786
|
+
* Unlocks audible playback on the first user gesture when the browser
|
|
787
|
+
* requires one, or immediately when autoplay policy already allows it.
|
|
788
|
+
* Set false to retain the 2.x behavior with no automatic activation.
|
|
790
789
|
*/
|
|
791
790
|
mediaActivation?: false | PanoMediaActivationOptions;
|
|
792
791
|
onViewChange?: (view: PanoViewerState) => void;
|