Skip to content

Commit c7eb399

Browse files
committed
Formatting fixes & minor wording tweaks
1 parent fa6c175 commit c7eb399

File tree

6 files changed

+21
-9
lines changed

6 files changed

+21
-9
lines changed

SUMMARY.md

Lines changed: 6 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)

changes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _The new layout engine likely constitutes a **breaking change** for any plugin w
1212
* [How to define a panel](./reference/structure/handlers.md#panel)
1313
* [Panel overview / reference](./reference/ui/panels/index.md)
1414
* [Panel Quick Start tutorial](./tutorials/quick-start-panel/index.md)
15-
* [Migrating from dialogs to panels](./tutorials/how-to-migrate-from-modal-to-panel/index.md).
15+
* [Migrating from dialogs to panels](./tutorials/how-to-migrate-from-modal-to-panel/index.md)
1616
* 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.
1717

1818
### UXP 3 HTML/CSS changes
@@ -29,8 +29,8 @@ In order to gain access to most of these features, your plugin must _opt-in_ to
2929
3030
* **Layout engine**
3131
* **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 has a tremendous impact on pre-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`), as per the web specification
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._
3434
* `object-fit` -- to control the size of images
3535
* `z-index`
3636
* **SVG UI elements**
@@ -46,7 +46,7 @@ In order to gain access to most of these features, your plugin must _opt-in_ to
4646
* `calc()` -- For example, `width: calc(100% - 9px)`. Note that you can mix units, just like you can on the web.
4747
* 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).
4848
* Default styles are now easier to override as the specificity in the default stylesheet has been reduced.
49-
* _Basic_ **Tab index** support: Setting `tab-index` to `0` will now cause any element to be focusable. You can **not** yet control the tab order.
49+
* **Keyboard focus** -- Setting `tab-index` to `0` will now cause any element to be focusable. You can **not** yet control the tab order.
5050

5151
### Known Issues
5252

known-issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## General Issues
44

5-
- Icons may be blurry or missing in the plugin panel if you don't include the full set of 24px, 48px, 96px, 144px, and 192px sizes in your plugin bundle and manifest.
5+
- Icons may be blurry or missing in the plugin panel if you don't include the full set of sizes (24px, 48px, 96px, 144px, 192px) in your plugin bundle and manifest.
66
- Developer/Side-loading Specific
77
- Plugin menus and handlers may not be in-sync across documents during development
88
- If someone modifies a plugin's files on disk while XD is running, and then opens more windows in XD, any windows that were open before reflect the old version of the plugin while windows that were opened later reflect the new version of the plugin. The menu bar will always reflect the old version of the plugin regardless of which window is current.

reference/application.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For UI events that often occur in rapid-fire clusters, such as dragging a slider
3333
| Param | Type | Description |
3434
| ------- | ------------- | ------------------------------------------------------------------- |
3535
| options | EditSettings= | Optional settings object (see below). This argument can be omitted. |
36-
| editFunction | !function(!Selection, !RootNode):?Promise | Function which performs your plugin's edits to the scenegraph. |
36+
| editFunction | !function(!Selection, !RootNode):?Promise | Function which will perform your plugin's edits to the scenegraph. |
3737

3838
**Typedef EditSettings**
3939

@@ -63,6 +63,8 @@ panelButton.addEventListener("click", event => {
6363

6464
---
6565

66+
<a name="module_application-createRenditions"></a>
67+
6668
### *application.createRenditions(renditions)*
6769

6870
Generate renditions of nodes in the document in a batch. Overwrites any existing files without warning.

reference/core/lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Edit operations can only occur via user-initiated actions in your plugin: invoki
4343

4444
#### Edit operation duration
4545
* An edit operation begins when:
46-
* a) Your plugin's menu [command handler](../structure/handlers.md) is called (this is automatically wrapped in an edit operation)
46+
* a) Your plugin's menu [command handler](../structure/handlers.md#command) is called (this is automatically wrapped in an edit operation)
4747
* a) Your plugin's panel UI code explicitly [calls `application.editDocument()`](#initiating-an-edit-operation-from-panel-ui)
4848
* If the edit code returns synchronously, the edit operation is done as soon as it returns.
4949
* If the edit code returns a Promise, the edit operation continues asynchronously until the Promise completes. _The user can't do anything else in XD_ until the operation completes, so normally you'd only return a Promise if your plugin has a dialog box open that the user is interacting with or that is showing a progress indicator.

reference/ui/panels/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ Note: you can either reuse your panel's UI nodes, or destroy and recreate the pa
206206

207207
## Handling Selection Change
208208

209-
As you can see in the example above, every time the user's `selection` changes, your third (optional) lifecycle method `update` will trigger. You will have access to both `selection` and `root` as parameters in the function. This means that your panel can display dynamic content based on what user has selected in the document.
209+
As you can see in the example above, every time the user's `selection` changes, your (optional) lifecycle method `update` will trigger. You will have access to both `selection` and `root` as parameters in the function. This means that your panel can display dynamic content based on what user has selected in the document.
210210

211-
{% tabs sample="Sample", html="HTML", js="JS", react="React" %}
211+
{% tabs sample="Sample", html="HTML", js="JS" %}
212212

213213
{% content "sample" %}
214214

@@ -392,6 +392,10 @@ module.exports = {
392392
};
393393
```
394394

395+
{% endtabs %}
396+
397+
## Further Reading
398+
395399
Refer to the panel lifecycle method documentation to learn more about these methods:
396400

397401
- [Show](./show.md)

0 commit comments

Comments
 (0)