Skip to content

Commit 8fce51c

Browse files
authored
Merge pull request #200 from AdobeXD/pflynn/panel-docs-updates
XD 21 proposed docs updates
2 parents 5484148 + a3fae18 commit 8fce51c

File tree

125 files changed

+9060
-5989
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+9060
-5989
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To preview the fully formatted docs as they will appear online, follow these ste
4242
npm install
4343
npm run book:install
4444

45-
# Rebuild HTML content (takes 2-3 minutes)
45+
# Rebuild HTML content (takes 3-5 minutes)
4646
npm run book:build
4747

4848
# View HTML from a local webserver (using a file:// URL won't work)

SUMMARY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
* [Quick start](./README.md)
44
* [Quick start](./tutorials/quick-start/index.md)
55
* [Quick start - React](./tutorials/quick-start-react/index.md)
6+
* [Quick start - Panel UI](./tutorials/quick-start-panel/index.md)
67
* [Debugging plugins](./tutorials/debugging/index.md)
78
* [Plugin Development 101](./plugin-development-guidelines/index.md)
89
* [Plugin structure](./reference/structure/index.md)
910
* [Plugin location](./reference/structure/location.md)
1011
* [Folder structure](./reference/structure/folder-structure.md)
1112
* [manifest.json](./reference/structure/manifest.md)
1213
* [main.js](./reference/structure/handlers.md)
14+
* [Menu structure](./reference/structure/menu-structure.md)
1315
* [JavaScript and XD plugin APIs](./reference/javascript/index.md)
1416
* [JavaScript support](./reference/javascript/javascript-support.md)
1517
* [Sync and async](./reference/javascript/sync-async.md)
@@ -55,6 +57,10 @@
5557
* [Modal dialogs](./reference/ui/dialogs/index.md)
5658
* [Showing dialogs](./reference/ui/dialogs/showing.md)
5759
* [Dismissing dialogs](./reference/ui/dialogs/dismissal.md)
60+
* [Panels](./reference/ui/panels/index.md)
61+
* [show() callback](./reference/ui/panels/show.md)
62+
* [hide() callback](./reference/ui/panels/hide.md)
63+
* [update() callback](./reference/ui/panels/update.md)
5864
* [Resources - Sticker Sheet](./plugin-design-guidelines/ui_resources/Sticker_sheet.md)
5965
* [Step-by-step Tutorials](./tutorials/index.md)
6066
* [Working with content](./tutorials/content-index.md)
@@ -161,4 +167,7 @@
161167
* [Joining Our Community](./community.md)
162168
* [Code of conduct](./CODE_OF_CONDUCT.md)
163169
* [How to contribute](./CONTRIBUTING.md)
170+
* [Migrations](./migrations.md)
171+
* [UXP 2 to 3](./migrations/uxp-2-to-3.md)
172+
* [Porting Modals to Panels](./migrations/how-to-migrate-from-modal-to-panel.md)
164173
* [Plugin API roadmap](./plugin-api-roadmap.md)

changes.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
11
# Change Log
22

3+
## XD Release 21.0.12 (July 2019)
4+
5+
XD 21 adds major updates: the ability to **show panel UI**, and the much-improved **UXP 3 CSS & layout engine**.
6+
7+
_The new layout engine likely constitutes a **breaking change** for any plugin with UI_ -- read below for details.
8+
9+
### Plugin Panel UI
10+
11+
* Plugins can now display UI persistently in a side panel. More information:
12+
* [How to define a panel](./reference/structure/handlers.md#panel)
13+
* [Panel overview / reference](./reference/ui/panels/index.md)
14+
* [Panel Quick Start tutorial](./tutorials/quick-start-panel/index.md)
15+
* [Migrating from dialogs to panels](./migrations/how-to-migrate-from-modal-to-panel.md)
16+
* A new default stylesheet is provided for plugin UI that renders inside a plugin. This means that UI that renders in one manner in a modal dialog may not render in the same exact manner in a panel.
17+
18+
### UXP 3 HTML/CSS changes
19+
20+
In order to gain access to most of these features, your plugin must _opt-in_ to the UXP 3.1 layout engine by changing the `minVersion` in your `manifest.json`:
21+
22+
```json
23+
"host": {
24+
"minVersion": "21.0"
25+
}
26+
```
27+
28+
> **NOTE:** Without this change, your plugin will run in [backwards-compatibility mode](./migrations/uxp-2-to-3.md).
29+
30+
* **Layout engine**
31+
* **Inline layout** -- You now have the ability to write code like `<p>This is <a href="...">a link</a></p>` and have the link render _inline_ with the rest of the text
32+
* **Layout now defaults to inline** (no longer flexbox) -- _This may break existing plugin UI code:_ now `span` elements will render with `inline`, `button`s will render as `inline-block`, etc.
33+
* **`overflow` defaults to `visible`** (no longer `hidden`), per the web specification -- _This may break existing plugin UI code._
34+
* `object-fit` -- to control the size of images
35+
* `z-index`
36+
* **SVG UI elements**
37+
* **New UI controls**
38+
* Radio buttons -- `<input type="radio" />`
39+
* Progress bars & spinners -- `<progress>`
40+
* **CSS improvements**
41+
* `linear-gradient()`
42+
* `outline`
43+
* More units! -- UXP now understands `rem`, `em`, `px`, `pt`, `vh`, `vw`, `cm`, `in`, etc. **NOTE:** UXP will now start ignoring values (other than `0`) that don't specify any units, which can break older plugin UI code.
44+
* CSS Variables -- easily apply themes and other layout to your plugin.
45+
* More pseudo-selectors -- `:lang` and `:focus`
46+
* `calc()` -- For example, `width: calc(100% - 9px)`. Note that you can mix units, just like you can on the web.
47+
* Inheritance -- The CSS parser now understands `initial`, `unset`, and `inherit`. You can also use `!important` to override styles (although you should use this as a last resort).
48+
* Default styles are now easier to override as the specificity in the default stylesheet has been reduced.
49+
* **Keyboard focus** -- Setting `tab-index` to `0` will now cause any element to be focusable. You can **not** yet control the tab order.
50+
51+
### Known Issues
52+
53+
See the [Known Issues page](./known-issues.md) for a comprehensive list of existing known issues.
54+
55+
56+
----
57+
358
## XD Release 20.0.12 (June 2019)
459

560
### UI Changes

distribution/packaging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Select all files within your plugin's parent folder. On both macOS and Windows y
2020
| macOS | _Right-click > Compress # items_ |
2121
| Windows | _Right-click > Send to > Compressed (zipped) folder_ |
2222

23-
If you plan to distribute via the XD plugin manager, your .ZIP file **must be less than 25MB in size**. You'll only be able to submit for review if your file is under the size limit.
23+
If you plan to distribute via the XD plugin manager, your .ZIP file **must be less than 25MB in size and contain fewer than 3,000 files**. You'll only be able to submit for review if your file is under these limits.
2424

2525
> **Danger**
2626
>

images/menu-plugin-labels.png

144 KB
Loading

images/menu-plugin-name.png

51.1 KB
Loading

images/menu-plugin-one-label.png

23.6 KB
Loading

images/modal-ui-example.png

38.7 KB
Loading

images/panel-plugin-labels.png

32.2 KB
Loading

images/panel-plugin-name.png

23.5 KB
Loading

0 commit comments

Comments
 (0)