@zinejs/core 0.4.1 → 0.6.0

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.
@@ -121,6 +121,59 @@
121
121
  "minimum": 0,
122
122
  "default": 640,
123
123
  "description": "Container widths (px) below this switch to one page per spread; 0 disables the responsive fallback."
124
+ },
125
+ "deepLink": {
126
+ "type": "boolean",
127
+ "default": true,
128
+ "description": "Keep the current page in the URL hash (#page=12), so a link opens where the reader was. Only the 'page' key is touched."
129
+ },
130
+ "responsiveSpread": {
131
+ "type": "boolean",
132
+ "default": true,
133
+ "description": "Whether a narrow container may override spreadMode and show one page at a time. False holds the configured mode at every width."
134
+ },
135
+ "disableContextMenu": {
136
+ "type": "boolean",
137
+ "default": false,
138
+ "description": "Suppress the browser's right-click menu over the book. A deterrent, not protection: the pages remain in the DOM."
139
+ },
140
+ "controls": {
141
+ "default": true,
142
+ "description": "Built-in toolbar. true for the default set, false for none, or an object to configure it.",
143
+ "oneOf": [
144
+ { "type": "boolean" },
145
+ {
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "properties": {
149
+ "position": {
150
+ "type": "string",
151
+ "enum": ["top", "bottom", "left", "right"],
152
+ "default": "bottom",
153
+ "description": "Which edge of the book the toolbar sits on."
154
+ },
155
+ "docked": {
156
+ "type": "boolean",
157
+ "default": true,
158
+ "description": "Sit outside the book in normal flow; false floats the toolbar over it."
159
+ },
160
+ "items": {
161
+ "type": "array",
162
+ "description": "Toolbar layout: control ids, '|' separators, or inline control definitions. Omit for the default set.",
163
+ "items": { "type": ["string", "object"] }
164
+ },
165
+ "arrows": {
166
+ "type": "boolean",
167
+ "default": true,
168
+ "description": "Large page-turn arrows flanking the book."
169
+ },
170
+ "className": {
171
+ "type": "string",
172
+ "description": "Extra class on the toolbar root, for styling."
173
+ }
174
+ }
175
+ }
176
+ ]
124
177
  }
125
178
  }
126
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinejs/core",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "description": "Framework-agnostic flipbook engine with CSS and WebGL2 renderers and no dependencies.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -57,6 +57,18 @@
57
57
  "path": "dist/webglRenderer-*.js",
58
58
  "limit": "12 kB",
59
59
  "gzip": true
60
+ },
61
+ {
62
+ "name": "controls chunk (lazy, gzip)",
63
+ "path": "dist/controls-*.js",
64
+ "limit": "10 kB",
65
+ "gzip": true
66
+ },
67
+ {
68
+ "name": "share dialog chunk (lazy, gzip)",
69
+ "path": "dist/share-*.js",
70
+ "limit": "6 kB",
71
+ "gzip": true
60
72
  }
61
73
  ],
62
74
  "scripts": {