oasis-editor 0.0.351 → 0.0.352

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
@@ -37,9 +37,15 @@ outside the pages. The default remains unchanged when the option is omitted.
37
37
  This controls the editor viewport, not the page margins or exported document.
38
38
 
39
39
  ```ts
40
- const options = { ui: { pageGutter: 4 } };
40
+ const options = { ui: { pageGutter: 4, zoom: { initialMode: "fit-width" } } };
41
41
  ```
42
42
 
43
+ `fit-width` is optional: it fits the widest page to the viewport, up to 100%,
44
+ and follows resizing until the user adjusts zoom manually. The status-bar fit
45
+ control re-enables automatic sizing. The existing 50% minimum still applies,
46
+ so extremely narrow viewports can require horizontal page scrolling. Omit the
47
+ option to keep the default 100% initial zoom.
48
+
43
49
  ## Why Oasis?
44
50
 
45
51
  Oasis is built around a document model and rendering pipeline that are separate
@@ -296,9 +302,12 @@ export function PluginDialog(props: { open: boolean; onClose: () => void }) {
296
302
  - `ribbonStyle`: `"classic"` (default) or `"simplified"`, Office's one-line
297
303
  ribbon for embedded editors: tabs stay, each panel is a single row of small
298
304
  commands, and groups that do not fit become "icon Name ▾" popups. The
299
- toolbar drops from 118px to 74px.
305
+ toolbar drops from 118px to 74px. `"two-line"` is an opt-in embedded
306
+ variant with up to two rows of commands below the tabs; groups that cannot
307
+ fit remain available through the accessible More options menu, without
308
+ horizontal ribbon scrolling.
300
309
 
301
- Collapsed groups keep their name in both styles.
310
+ Collapsed groups keep their name in the classic and simplified styles.
302
311
 
303
312
  Customize the toolbar and menubar after built-ins and plugin contributions are
304
313
  registered: