parse-dashboard 7.3.0-alpha.40 → 7.3.0-alpha.41

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 CHANGED
@@ -85,6 +85,7 @@ Parse Dashboard is a standalone dashboard for managing your [Parse Server](https
85
85
  - [View Table](#view-table)
86
86
  - [Pointer](#pointer)
87
87
  - [Link](#link)
88
+ - [Image](#image)
88
89
  - [Contributing](#contributing)
89
90
 
90
91
  # Getting Started
@@ -1362,6 +1363,25 @@ In the example above, the query string will be escaped and added to the url, res
1362
1363
  > [!Note]
1363
1364
  > For security reasons, the link `<a>` tag contains the `rel="noreferrer"` attribute, which prevents the target website to know the referring website which in this case is the Parse Dashboard URL. That attribute is widely supported across modern browsers, but if in doubt check your browser's compatibility.
1364
1365
 
1366
+ #### Image
1367
+
1368
+ Images are rendered directly in the output table with an `<img>` tag. The content mode is always "scale to fit", meaning that if the image file is 100x50px and the specified dimensions are 50x50px, it would display as 50x25px, since it's scaled maintaining aspect ratio.
1369
+
1370
+ Example:
1371
+
1372
+ ```json
1373
+ {
1374
+ "__type": "Image",
1375
+ "url": "https://example.com/image.png",
1376
+ "width": "50",
1377
+ "height": "50",
1378
+ "alt": "Image"
1379
+ }
1380
+ ```
1381
+
1382
+ > [!Warning]
1383
+ > The URL will be directly invoked by the browser when trying to display the image. For security reasons, make sure you either control the full URL, including the image file name, or sanitize the URL before returning it to the dashboard. URLs containing `javascript:` or `<script` will be blocked automatically and replaced with a placeholder.
1384
+
1365
1385
  # Contributing
1366
1386
 
1367
1387
  We really want Parse to be yours, to see it grow and thrive in the open source community. Please see the [Contributing to Parse Dashboard guide](CONTRIBUTING.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse-dashboard",
3
- "version": "7.3.0-alpha.40",
3
+ "version": "7.3.0-alpha.41",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/parse-community/parse-dashboard"