@open-press/cli 1.0.0 → 1.1.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.
Files changed (175) hide show
  1. package/README.md +11 -12
  2. package/dist/cli.js +298 -79
  3. package/package.json +9 -7
  4. package/template/core/AGENTS.md +0 -130
  5. package/template/core/CHANGELOG.md +0 -218
  6. package/template/core/README.md +0 -43
  7. package/template/core/engine/cli.mjs +0 -96
  8. package/template/core/engine/commands/_shared.mjs +0 -199
  9. package/template/core/engine/commands/deploy.mjs +0 -31
  10. package/template/core/engine/commands/dev.mjs +0 -49
  11. package/template/core/engine/commands/doctor.mjs +0 -229
  12. package/template/core/engine/commands/export.mjs +0 -8
  13. package/template/core/engine/commands/image.mjs +0 -29
  14. package/template/core/engine/commands/inspect.mjs +0 -35
  15. package/template/core/engine/commands/pdf.mjs +0 -26
  16. package/template/core/engine/commands/preview.mjs +0 -26
  17. package/template/core/engine/commands/render.mjs +0 -17
  18. package/template/core/engine/commands/replace.mjs +0 -41
  19. package/template/core/engine/commands/search.mjs +0 -33
  20. package/template/core/engine/commands/skills-sync.mjs +0 -71
  21. package/template/core/engine/commands/typecheck.mjs +0 -67
  22. package/template/core/engine/commands/upgrade.mjs +0 -159
  23. package/template/core/engine/commands/validate.mjs +0 -17
  24. package/template/core/engine/document-export.mjs +0 -15
  25. package/template/core/engine/output/chrome-pdf.d.mts +0 -34
  26. package/template/core/engine/output/chrome-pdf.mjs +0 -450
  27. package/template/core/engine/output/deploy-sync.mjs +0 -15
  28. package/template/core/engine/output/fonts.mjs +0 -62
  29. package/template/core/engine/output/katex-assets.mjs +0 -45
  30. package/template/core/engine/output/page-block.mjs +0 -30
  31. package/template/core/engine/output/pdf-media.mjs +0 -45
  32. package/template/core/engine/output/public-assets.mjs +0 -19
  33. package/template/core/engine/output/static-server.mjs +0 -571
  34. package/template/core/engine/react/caption-numbering.mjs +0 -73
  35. package/template/core/engine/react/comment-endpoint.d.mts +0 -11
  36. package/template/core/engine/react/comment-endpoint.mjs +0 -102
  37. package/template/core/engine/react/comment-marker.mjs +0 -374
  38. package/template/core/engine/react/document-entry.mjs +0 -331
  39. package/template/core/engine/react/document-export.mjs +0 -512
  40. package/template/core/engine/react/http-json.mjs +0 -24
  41. package/template/core/engine/react/mdx-compile.mjs +0 -629
  42. package/template/core/engine/react/measurement-css.mjs +0 -157
  43. package/template/core/engine/react/object-entities.mjs +0 -204
  44. package/template/core/engine/react/pagination/allocator.mjs +0 -167
  45. package/template/core/engine/react/pagination/regions.mjs +0 -81
  46. package/template/core/engine/react/pagination-constants.mjs +0 -3
  47. package/template/core/engine/react/pagination.mjs +0 -9
  48. package/template/core/engine/react/pipeline/allocate.mjs +0 -217
  49. package/template/core/engine/react/pipeline/final-render.mjs +0 -94
  50. package/template/core/engine/react/pipeline/frame-measurement.mjs +0 -306
  51. package/template/core/engine/react/pipeline/press-tree.mjs +0 -135
  52. package/template/core/engine/react/press-tree-inspection.mjs +0 -172
  53. package/template/core/engine/react/project-asset-endpoint.d.mts +0 -10
  54. package/template/core/engine/react/project-asset-endpoint.mjs +0 -361
  55. package/template/core/engine/react/section-css.mjs +0 -56
  56. package/template/core/engine/react/source-edit-endpoint.d.mts +0 -10
  57. package/template/core/engine/react/source-edit-endpoint.mjs +0 -75
  58. package/template/core/engine/react/sources/heading-numbering.mjs +0 -132
  59. package/template/core/engine/react/sources/mdx-resolver.mjs +0 -439
  60. package/template/core/engine/react/style-discovery.mjs +0 -160
  61. package/template/core/engine/runtime/config.d.mts +0 -48
  62. package/template/core/engine/runtime/config.mjs +0 -172
  63. package/template/core/engine/runtime/file-utils.mjs +0 -114
  64. package/template/core/engine/runtime/file-walk.mjs +0 -22
  65. package/template/core/engine/runtime/inspection.mjs +0 -328
  66. package/template/core/engine/runtime/issue-report.mjs +0 -44
  67. package/template/core/engine/runtime/page-geometry.mjs +0 -131
  68. package/template/core/engine/runtime/path-utils.mjs +0 -20
  69. package/template/core/engine/runtime/source-text-tools.d.mts +0 -102
  70. package/template/core/engine/runtime/source-text-tools.mjs +0 -832
  71. package/template/core/engine/runtime/source-workspace.mjs +0 -168
  72. package/template/core/engine/runtime/validation.mjs +0 -183
  73. package/template/core/index.html +0 -13
  74. package/template/core/openpress.config.mjs +0 -8
  75. package/template/core/package.json +0 -89
  76. package/template/core/src/main.tsx +0 -16
  77. package/template/core/src/openpress/app/OpenPressApp.tsx +0 -296
  78. package/template/core/src/openpress/app/OpenPressRuntime.tsx +0 -102
  79. package/template/core/src/openpress/app/WorkspaceGalleryPage.tsx +0 -219
  80. package/template/core/src/openpress/app/index.ts +0 -2
  81. package/template/core/src/openpress/core/Frame.tsx +0 -91
  82. package/template/core/src/openpress/core/FrameContext.tsx +0 -26
  83. package/template/core/src/openpress/core/MdxArea.tsx +0 -34
  84. package/template/core/src/openpress/core/Press.tsx +0 -55
  85. package/template/core/src/openpress/core/Workspace.tsx +0 -36
  86. package/template/core/src/openpress/core/cn.ts +0 -4
  87. package/template/core/src/openpress/core/index.tsx +0 -47
  88. package/template/core/src/openpress/core/primitives.tsx +0 -91
  89. package/template/core/src/openpress/core/types.ts +0 -236
  90. package/template/core/src/openpress/core/useSource.ts +0 -28
  91. package/template/core/src/openpress/document-model/anchorMapModel.ts +0 -27
  92. package/template/core/src/openpress/document-model/documentIndexes.ts +0 -329
  93. package/template/core/src/openpress/document-model/documentTypes.ts +0 -147
  94. package/template/core/src/openpress/document-model/index.ts +0 -7
  95. package/template/core/src/openpress/document-model/objectEntityModel.ts +0 -55
  96. package/template/core/src/openpress/document-model/projectIdentityModel.ts +0 -15
  97. package/template/core/src/openpress/document-model/reactDocumentMetadataModel.ts +0 -27
  98. package/template/core/src/openpress/document-model/workspaceManifestModel.ts +0 -57
  99. package/template/core/src/openpress/manuscript/index.tsx +0 -238
  100. package/template/core/src/openpress/mdx/index.ts +0 -96
  101. package/template/core/src/openpress/numbering/index.ts +0 -294
  102. package/template/core/src/openpress/reader/PageThumbnailsPanel.tsx +0 -168
  103. package/template/core/src/openpress/reader/PublicReaderPage.tsx +0 -267
  104. package/template/core/src/openpress/reader/ReaderNavigationPanel.tsx +0 -123
  105. package/template/core/src/openpress/reader/index.ts +0 -11
  106. package/template/core/src/openpress/reader/pageViewportScaleModel.ts +0 -73
  107. package/template/core/src/openpress/reader/readerPageRegistry.ts +0 -41
  108. package/template/core/src/openpress/reader/readerPageRoute.ts +0 -21
  109. package/template/core/src/openpress/reader/readerScroll.ts +0 -92
  110. package/template/core/src/openpress/reader/readerStateModel.ts +0 -15
  111. package/template/core/src/openpress/reader/readerTypes.ts +0 -4
  112. package/template/core/src/openpress/reader/usePageViewportScale.ts +0 -119
  113. package/template/core/src/openpress/reader/usePanelState.ts +0 -56
  114. package/template/core/src/openpress/reader/useReaderHashSync.ts +0 -61
  115. package/template/core/src/openpress/reader/useReaderKeyboardNav.ts +0 -48
  116. package/template/core/src/openpress/reader/useReaderRuntime.ts +0 -146
  117. package/template/core/src/openpress/reader/useReaderScrollAnchor.ts +0 -64
  118. package/template/core/src/openpress/shared/Panel.tsx +0 -77
  119. package/template/core/src/openpress/shared/frameScheduler.ts +0 -32
  120. package/template/core/src/openpress/shared/index.ts +0 -4
  121. package/template/core/src/openpress/shared/numberUtils.ts +0 -3
  122. package/template/core/src/openpress/shared/runtimeMode.ts +0 -11
  123. package/template/core/src/openpress/workbench/Workbench.tsx +0 -506
  124. package/template/core/src/openpress/workbench/actions/DeploymentControl.tsx +0 -157
  125. package/template/core/src/openpress/workbench/actions/ExportImageControl.tsx +0 -96
  126. package/template/core/src/openpress/workbench/actions/PageZoomControl.tsx +0 -182
  127. package/template/core/src/openpress/workbench/actions/SearchControl.tsx +0 -345
  128. package/template/core/src/openpress/workbench/actions/deploymentStatusModel.ts +0 -112
  129. package/template/core/src/openpress/workbench/actions/index.ts +0 -6
  130. package/template/core/src/openpress/workbench/actions/useDeploymentWorkbench.ts +0 -136
  131. package/template/core/src/openpress/workbench/dialog/WorkbenchDialog.tsx +0 -72
  132. package/template/core/src/openpress/workbench/dialog/index.ts +0 -1
  133. package/template/core/src/openpress/workbench/document/components/DocumentPanel.tsx +0 -127
  134. package/template/core/src/openpress/workbench/document/components/InlineSourceEditorLayer.tsx +0 -207
  135. package/template/core/src/openpress/workbench/document/components/ReaderStage.tsx +0 -9
  136. package/template/core/src/openpress/workbench/document/hooks/useDocumentWorkbenchModel.ts +0 -34
  137. package/template/core/src/openpress/workbench/document/hooks/useInlineDocumentEditor.ts +0 -525
  138. package/template/core/src/openpress/workbench/document/index.ts +0 -10
  139. package/template/core/src/openpress/workbench/index.ts +0 -2
  140. package/template/core/src/openpress/workbench/inspector/InlineInspectorLayer.tsx +0 -459
  141. package/template/core/src/openpress/workbench/inspector/index.ts +0 -5
  142. package/template/core/src/openpress/workbench/inspector/inlineCommentModel.ts +0 -125
  143. package/template/core/src/openpress/workbench/inspector/inspectorGeometryModel.ts +0 -160
  144. package/template/core/src/openpress/workbench/inspector/inspectorModel.ts +0 -408
  145. package/template/core/src/openpress/workbench/inspector/useInspectorComments.ts +0 -254
  146. package/template/core/src/openpress/workbench/mentions/MentionSuggestionList.tsx +0 -41
  147. package/template/core/src/openpress/workbench/mentions/index.ts +0 -2
  148. package/template/core/src/openpress/workbench/mentions/useComposerMentions.ts +0 -185
  149. package/template/core/src/openpress/workbench/panels/Panel.tsx +0 -1
  150. package/template/core/src/openpress/workbench/panels/PendingCommentsPanel.tsx +0 -80
  151. package/template/core/src/openpress/workbench/panels/WorkbenchControlPanel.tsx +0 -29
  152. package/template/core/src/openpress/workbench/panels/index.ts +0 -3
  153. package/template/core/src/openpress/workbench/project/ProjectEntryPanel.tsx +0 -525
  154. package/template/core/src/openpress/workbench/project/ProjectPreviewDialog.tsx +0 -35
  155. package/template/core/src/openpress/workbench/project/index.ts +0 -2
  156. package/template/core/src/openpress/workbench/project/projectPreviewTypes.ts +0 -11
  157. package/template/core/src/openpress/workbench/project/projectSourceModel.ts +0 -24
  158. package/template/core/src/openpress/workbench/shell/WorkbenchShell.tsx +0 -167
  159. package/template/core/src/openpress/workbench/shell/index.ts +0 -1
  160. package/template/core/src/openpress/workbench/workbenchFormatters.ts +0 -120
  161. package/template/core/src/openpress/workbench/workbenchTypes.ts +0 -35
  162. package/template/core/src/styles/openpress/app-shell.css +0 -251
  163. package/template/core/src/styles/openpress/media-workspace.css +0 -230
  164. package/template/core/src/styles/openpress/print-route.css +0 -184
  165. package/template/core/src/styles/openpress/project-preview-panel.css +0 -924
  166. package/template/core/src/styles/openpress/public-viewer.css +0 -688
  167. package/template/core/src/styles/openpress/reader-runtime.css +0 -989
  168. package/template/core/src/styles/openpress/responsive.css +0 -245
  169. package/template/core/src/styles/openpress/workbench-panels.css +0 -707
  170. package/template/core/src/styles/openpress/workbench.css +0 -1255
  171. package/template/core/src/styles/openpress/workspace-gallery.css +0 -300
  172. package/template/core/src/styles/openpress.css +0 -15
  173. package/template/core/src/vite-env.d.ts +0 -9
  174. package/template/core/tsconfig.json +0 -40
  175. package/template/core/vite.config.ts +0 -584
@@ -1,245 +0,0 @@
1
- @media (max-width: 1184px) {
2
- .openpress-shell {
3
- padding: 18px;
4
- }
5
-
6
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell),
7
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell).is-closed-right {
8
- grid-template-rows: minmax(0, 1fr);
9
- grid-template-columns: minmax(0, 1fr);
10
- grid-template-areas: "main";
11
- }
12
-
13
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell) .openpress-public-navigation {
14
- position: fixed;
15
- top: 0;
16
- right: auto;
17
- bottom: 0;
18
- left: 0;
19
- z-index: 40;
20
- display: grid !important;
21
- width: min(88vw, var(--openpress-public-nav-max-width));
22
- min-width: 0;
23
- max-width: var(--openpress-public-nav-max-width);
24
- height: 100dvh;
25
- margin: 0;
26
- grid-template-rows: auto auto minmax(0, 1fr) auto;
27
- overflow-x: hidden;
28
- background: #181818;
29
- box-shadow: 16px 0 44px rgb(0 0 0 / 42%);
30
- opacity: 1;
31
- visibility: visible;
32
- transform: none;
33
- transition:
34
- left 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
35
- opacity 160ms ease,
36
- visibility 160ms ease;
37
- }
38
-
39
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell) .openpress-dev-public-navigation {
40
- grid-template-rows: auto minmax(0, 1fr);
41
- }
42
-
43
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell) .openpress-public-identity {
44
- min-width: 0;
45
- padding-right: 54px;
46
- }
47
-
48
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell) .openpress-public-identity strong,
49
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell) .openpress-public-title-main {
50
- min-width: 0;
51
- max-width: 100%;
52
- white-space: normal;
53
- overflow-wrap: anywhere;
54
- word-break: normal;
55
- }
56
-
57
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell) .reader-bookmarks {
58
- overflow-x: hidden;
59
- }
60
-
61
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell).is-closed-right .openpress-public-navigation {
62
- left: calc(-1 * min(88vw, var(--openpress-public-nav-max-width)));
63
- opacity: 0;
64
- visibility: hidden;
65
- pointer-events: none;
66
- box-shadow: none;
67
- }
68
-
69
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell) .openpress-public-scrim {
70
- position: fixed;
71
- inset: 0;
72
- z-index: 35;
73
- background: rgb(0 0 0 / 42%);
74
- backdrop-filter: blur(1px);
75
- }
76
-
77
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell).is-closed-right .openpress-public-fab {
78
- position: fixed;
79
- left: 20px;
80
- bottom: calc(24px + env(safe-area-inset-bottom));
81
- z-index: 30;
82
- display: flex;
83
- align-items: center;
84
- justify-content: center;
85
- width: 44px;
86
- height: 44px;
87
- border: 1px solid rgb(255 255 255 / 14%);
88
- border-radius: 50%;
89
- background: rgb(28 28 28 / 96%);
90
- color: #f2f2f0;
91
- box-shadow: 0 4px 20px rgb(0 0 0 / 50%);
92
- backdrop-filter: blur(10px);
93
- }
94
-
95
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell):not(.is-closed-right) .openpress-public-fab {
96
- display: none;
97
- }
98
-
99
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell):not(.is-closed-right) .openpress-public-scrim {
100
- display: block;
101
- }
102
-
103
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app,
104
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app.is-closed-left,
105
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app.is-closed-right,
106
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app.is-closed-left.is-closed-right {
107
- --openpress-workbench-toolbar-height: 44px;
108
- grid-template-rows: var(--openpress-workbench-toolbar-height) minmax(0, 1fr);
109
- grid-template-columns: minmax(0, 1fr);
110
- grid-template-areas:
111
- "toolbar"
112
- "main";
113
- }
114
-
115
- .openpress-public-viewer.openpress-workbench-shell .openpress-public-fab {
116
- display: none !important;
117
- }
118
-
119
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app .openpress-workbench-left-panel {
120
- position: fixed;
121
- top: var(--openpress-workbench-toolbar-height);
122
- right: auto;
123
- bottom: 0;
124
- left: 0;
125
- z-index: 40;
126
- display: grid !important;
127
- width: min(86vw, 340px);
128
- height: auto;
129
- min-width: 0;
130
- margin: 0;
131
- opacity: 1;
132
- visibility: visible;
133
- transform: none;
134
- transition:
135
- left 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
136
- opacity 160ms ease,
137
- visibility 160ms ease;
138
- box-shadow: 16px 0 34px rgb(0 0 0 / 36%);
139
- }
140
-
141
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app.is-closed-left .openpress-workbench-left-panel {
142
- left: calc(-1 * min(86vw, 340px));
143
- opacity: 0;
144
- visibility: hidden;
145
- box-shadow: none;
146
- }
147
-
148
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app .openpress-workbench-right-panel {
149
- position: fixed;
150
- top: var(--openpress-workbench-toolbar-height);
151
- right: 0;
152
- bottom: 0;
153
- left: auto;
154
- z-index: 40;
155
- display: grid !important;
156
- width: min(86vw, 380px);
157
- height: auto;
158
- min-width: 0;
159
- margin: 0;
160
- opacity: 1;
161
- visibility: visible;
162
- transform: none;
163
- transition:
164
- right 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
165
- opacity 160ms ease,
166
- visibility 160ms ease;
167
- box-shadow: -16px 0 34px rgb(0 0 0 / 36%);
168
- }
169
-
170
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app.is-closed-right .openpress-workbench-right-panel {
171
- right: calc(-1 * min(86vw, 380px));
172
- opacity: 0;
173
- visibility: hidden;
174
- box-shadow: none;
175
- }
176
-
177
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app .openpress-public-scrim {
178
- position: fixed;
179
- inset: 0;
180
- z-index: 35;
181
- display: block;
182
- background: rgb(0 0 0 / 42%);
183
- backdrop-filter: blur(1px);
184
- }
185
-
186
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app .openpress-workbench-right-panel .openpress-public-drawer-close {
187
- display: flex;
188
- }
189
- }
190
-
191
- @media (max-width: 520px) {
192
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell) .openpress-public-navigation {
193
- width: min(90vw, var(--openpress-public-nav-max-width));
194
- }
195
-
196
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell).is-closed-right .openpress-public-navigation {
197
- left: calc(-1 * min(90vw, var(--openpress-public-nav-max-width)));
198
- }
199
-
200
- .openpress-public-viewer.openpress-reader-app:not(.openpress-workbench-shell).is-closed-right .openpress-public-fab {
201
- left: 16px;
202
- bottom: calc(20px + env(safe-area-inset-bottom));
203
- }
204
-
205
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app .openpress-workbench-left-panel {
206
- width: min(90vw, 340px);
207
- }
208
-
209
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app.is-closed-left .openpress-workbench-left-panel {
210
- left: calc(-1 * min(90vw, 340px));
211
- }
212
-
213
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app .openpress-workbench-right-panel {
214
- width: min(90vw, 380px);
215
- }
216
-
217
- .openpress-public-viewer.openpress-workbench-shell.openpress-reader-app.is-closed-right .openpress-workbench-right-panel {
218
- right: calc(-1 * min(90vw, 380px));
219
- }
220
-
221
- .openpress-workbench-toolbar {
222
- gap: 6px;
223
- padding: 0 6px;
224
- }
225
-
226
- .openpress-workbench-toolbar__content,
227
- .openpress-workbench-toolbar__group {
228
- gap: 4px;
229
- }
230
-
231
- .openpress-workbench-page-geometry {
232
- max-width: min(34vw, 160px);
233
- gap: 5px;
234
- padding: 0 6px;
235
- }
236
-
237
- .openpress-workbench-page-geometry__dimensions {
238
- display: none;
239
- }
240
-
241
- .openpress-workbench-toolbar-action[data-openpress-toolbar-expanded="true"] {
242
- max-width: min(34vw, 132px);
243
- padding: 0 8px;
244
- }
245
- }