@qzsy/dsh-image-viewer 0.3.0 → 0.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/dist/client.js +4 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -511,6 +511,10 @@ window.__ModuleLoader__.load({
|
|
|
511
511
|
*/
|
|
512
512
|
function imageLinkOf(host) {
|
|
513
513
|
try {
|
|
514
|
+
// Only DSH's file-link chips: other buttons can sit inside hover cards
|
|
515
|
+
// whose content also carries an image, and those must keep their click.
|
|
516
|
+
const className = typeof host.className === 'string' ? host.className : '';
|
|
517
|
+
if (!/fileLink|fileMention/i.test(className)) return null;
|
|
514
518
|
if (host.getElementsByTagName('img').length !== 0) return null;
|
|
515
519
|
let fiber = fiberOf(host);
|
|
516
520
|
for (let up = 0; up < 14 && fiber !== null && fiber !== undefined; up += 1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qzsy/dsh-image-viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "iPhone Photos-style full-screen image viewer for the DSH conversation: zoom from thumbnail, pinch/double-tap zoom, momentum pan, swipe between images, swipe down to close; annotate an image and drop it into the chat box.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|