Skip to content

Commit

Permalink
Merge pull request #426 from padmkris123/uxp-v7.1
Browse files Browse the repository at this point in the history
Changes for UXP v7.1 API docs
  • Loading branch information
padmkris123 committed Jun 1, 2023
2 parents da27e71 + d0c9696 commit 7269392
Show file tree
Hide file tree
Showing 8 changed files with 15,684 additions and 21,147 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "uxp-photoshop-documentation",
"version": "0.1.15",
"version": "0.1.16",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand All @@ -12,7 +12,7 @@
"gatsby": "4.22.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"uxp-documentation": "github:adobedocs/uxp#v7.0.0"
"uxp-documentation": "github:adobedocs/uxp#v7.1.0"
},
"scripts": {
"start": "gatsby build && gatsby serve",
Expand Down
8 changes: 4 additions & 4 deletions reference-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,6 @@ module.exports=[
"title": "os",
"path": "/uxp-api/reference-js/Modules/os/OS"
},
{
"title": "shell",
"path": "/uxp-api/reference-js/Modules/shell/Shell"
},
{
"title": "uxp",
"header": true,
Expand Down Expand Up @@ -525,6 +521,10 @@ module.exports=[
}
],
"path": "/uxp-api/reference-js/Modules/uxp/Host Information/Host/"
},
{
"title": "shell",
"path": "/uxp-api/reference-js/Modules/uxp/shell/Shell"
}
],
"path": "/uxp-api/reference-js/Modules/uxp/"
Expand Down
29 changes: 29 additions & 0 deletions src/pages/ps_reference/changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,35 @@ Both methods accept an options object that matches the parameters required in th
- Replaced `compositeChannels` property on Document with more appropriately named `componentChannels`.
- Channels returned will be of type `ComponentChannel` instead of `CompositeChannel` with corresponding `typename`.

### UXP
From the [UXP team](../../uxp-api/) we have integrated the following update.

#### v7.1 Integration

##### New
HTMLElement now supports
- [setPointerCapture](../../uxp-api/reference-js/Global%20Members/HTML%20DOM/Element.md#setpointercapturepointerid)
- [releasePointerCapture](../../uxp-api/reference-js/Global%20Members/HTML%20DOM/Element.md#releasepointercapturepointerid)
- [hasPointerCapture](../../uxp-api/reference-js/Global%20Members/HTML%20DOM/Element.md#haspointercapturepointerid)
- [dir](../../uxp-api/reference-js/Global%20Members/HTML%20Elements/HTMLHtmlElement.md#dir--string)

##### Updated
- Documentation for `shell` module moved to [new location](../../uxp-api/reference-js/Modules/uxp/shell/)

##### Fixed
- `SVGElement`: The color of the `fill` attribute using a CSS variable will resolve as per the variable value. For now, please test this fix by enabling the feature flag in your plugin manifest `"featureFlags" : { "enableFillAsCustomAttribute" : true }`. This flag will be turned on by default in the next UXP release.
```
// CSS variable
html {
--iconColor: yellow;
}
<svg height="100" width="100">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="var(--iconColor, red)" />
</svg>
// shows a yellow circle
```

## Photoshop 24.4 (April 2023)
### Imaging API update
The [Imaging API](../media/imaging) is moving out of Prerelease. It will now be available in the Beta build with the module name "imaging".
Expand Down
31 changes: 28 additions & 3 deletions src/pages/uxp-api/changelog3P.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@ index_desc: Changelog in UXP version
-->

# UXP Changelog
## UXP v7.1.0

### New
HTMLElement now supports
- [setPointerCapture](./reference-js/Global%20Members/HTML%20DOM/Element.md#setpointercapturepointerid)
- [releasePointerCapture](./reference-js/Global%20Members/HTML%20DOM/Element.md#releasepointercapturepointerid)
- [hasPointerCapture](./reference-js/Global%20Members/HTML%20DOM/Element.md#haspointercapturepointerid)
- [dir](./reference-js/Global%20Members/HTML%20Elements/HTMLHtmlElement.md#dir--string)

### Updated
- Documentation for `shell` moved to [new location](./reference-js/Modules/uxp/shell/)

### Fixed
- `SVGElement`: The color of the `fill` attribute using a CSS variable will resolve as per the variable value. For now, please test this fix by enabling the feature flag in your plugin manifest `"featureFlags" : { "enableFillAsCustomAttribute" : true }`. This flag will be turned on by default in the next UXP release.
```
// CSS variable
html {
--iconColor: yellow;
}
<svg height="100" width="100">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="var(--iconColor, red)" />
</svg>
// shows a yellow circle
```

## UXP v7.0.0

Expand Down Expand Up @@ -36,13 +61,13 @@ index_desc: Changelog in UXP version
- New focus events to support React 16
- [Focusin Event](https://developer.mozilla.org/en-US/docs/Web/API/Element/focusin_event)
- [Focusout Event](https://developer.mozilla.org/en-US/docs/Web/API/Element/focusout_event)
- HTML [2D Canvas Support](./reference-js/Global%20Members/HTML%20Elements/HTMLCanvasElement.md) for basic shapes and styling.
- HTML [2D Canvas Support](./reference-js/Global%20Members/HTML%20Elements/HTMLCanvasElement.md) for Basic Shapes and Styling.
- Alerts
- [alert()](./reference-js/Global%20Members/HTML%20DOM/alert.md)
- [prompt()](./reference-js/Global%20Members/HTML%20DOM/prompt.md)
- [confirm()](./reference-js/Global%20Members/HTML%20DOM/confirm.md)
- Support for [pipeThrough](./reference-js/Global%20Members/Streams/ReadableStream.md#pipeThroughtransform,-options) and [tee](./reference-js/Global%20Members/Streams/ReadableStream.md#tee) in ReadableStream](./reference-js/Global%20Members/Streams/ReadableStream.md). Refer to [Streams](./reference-js/Global%20Members/Streams/index.md) for more details
- [ImageBlob](./reference-js/Global%20Members/ImageBlob/) to render an uncompressed image buffer in UXP
- [ImageBlob](./reference-js/Global%20Members/ImageBlob/ImageBlob.md) to render an uncompressed image buffer in UXP

### Changed
- [HTMLVideoElement](./reference-js/Global%20Members/HTML%20Elements/HTMLVideoElement.md): 'metadata' is the default value for `preload` attribute
Expand All @@ -60,7 +85,7 @@ index_desc: Changelog in UXP version

### New
- [WebView](./reference-js/Global%20Members/HTML%20Elements/HTMLWebViewElement.md) for anels
- [Path Module APIs](./reference-js/Global%20Members/Path/)
- [Path Module APIs](./reference-js/Global%20Members/Path/Path.md)
- UXP Scripts can run fsapi with full access in localFileSystem

### Bugs Fixes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import Content from "uxp-documentation/src/pages/uxp-api/reference-js/Modules/shell/Shell";
import Content from "uxp-documentation/src/pages/uxp-api/reference-js/Modules/uxp/shell/Shell";

<Content query="product=photoshop"/>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import Content from "uxp-documentation/src/pages/uxp-api/reference-js/Modules/shell/index.md";
import Content from "uxp-documentation/src/pages/uxp-api/reference-js/Modules/uxp/shell/index.md";

<Content query="product=photoshop"/>
20 changes: 10 additions & 10 deletions src/pages/uxp-api/versions3P.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ index_desc: General information on UXP and its dependencies for 3rd party plugin

## Applications Integrated with UXP

| Application | UXP v7.0 | UXP v6.5| UXP v6.4| UXP v6.3| UXP v6.2 | UXP v6.1 | UXP v6.0 | UXP v5.6 | UXP v5.5 |
| ------------- | ------------- | ------------- | ------------- | ------------- | ------------- | ------------- | ------------- | ------------- | ------------- |
|Photoshop|24.4| 24.1|24.1| 24.0 | 23.5 | 23.4 | 23.3 | 23.2 | 23.0 |
|InDesign| -| 18.1| -| 18.0 | 17.4 |-|-| 17.1 | 17.0|
|InDesign Server| -| -| -| 18.0 | 17.4 |-|-| 17.1 | 17.0|
|XD| -| -| 55 | 54 |-|-|53| 45 |
| Application | UXP v7.1 | UXP v7.0 | UXP v6.5| UXP v6.4| UXP v6.3| UXP v6.2 | UXP v6.1 | UXP v6.0 | UXP v5.6 | UXP v5.5 |
| ------------- | -------- | -------- | ------- | ------- | ------- | -------- | -------- | -------- | -------- | -------- |
|Photoshop | 24.6 | 24.4 | 24.1 | 24.1 | 24.0 | 23.5 | 23.4 | 23.3 | 23.2 | 23.0 |
|InDesign | - | - | 18.1 | - | 18.0 | 17.4 | - | - | 17.1 | 17.0 |
|InDesign Server| - | - | - | - | 18.0 | 17.4 | - | - | 17.1 | 17.0 |
|XD | - | - | - | - | 55 | 54 | - | - | 53 | 45 |

## UXP Features Supported in Applications
| Application | UXP Plugins | UXP Scripting |
| ------------- | ------------- | ------------- |
|Photoshop|| ✅ from 24.1|
|InDesign| - | ✅ from 18.0|
| Application | UXP Plugins | UXP Scripting |
| ------------- | -------------- | ------------- |
| Photoshop | | ✅ from 24.1 |
| InDesign | - | ✅ from 18.0 |

0 comments on commit 7269392

Please sign in to comment.