@ckeditor/ckeditor5-dev-manual-server 62.0.0 → 62.2.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.
package/dist/index.js CHANGED
@@ -182,9 +182,22 @@ function manualTestsPlugin(options) {
182
182
  const translationsModuleCode = options.language ? createManualTranslationsModule(options.paths, options.language) : null;
183
183
  return {
184
184
  name: "ckeditor5-manual-tests",
185
- config(config = {}) {
185
+ config(config = {}, { command }) {
186
186
  workspaceRoot = resolve(config.root || process.cwd());
187
- return { input: getManualBuildInputs() };
187
+ return {
188
+ input: getManualBuildInputs(),
189
+ build: command == "build" ? { rolldownOptions: {
190
+ preserveEntrySignatures: false,
191
+ output: {
192
+ strictExecutionOrder: true,
193
+ codeSplitting: { groups: [{
194
+ name: "manual-shared",
195
+ minShareCount: 100,
196
+ includeDependenciesRecursively: false
197
+ }] }
198
+ }
199
+ } } : void 0
200
+ };
188
201
  },
189
202
  configResolved(config) {
190
203
  workspaceRoot = config.root;
@@ -234,7 +247,14 @@ function manualTestsPlugin(options) {
234
247
  if (isManualCatalogHtmlFile(context.filename, getManualCatalogBuildInputFilePath())) return html.replace("./catalog.ts", getManualCatalogScriptPublicPath());
235
248
  const entry = getManualPageEntryForFile(context.filename);
236
249
  if (!entry) return;
237
- const tags = [createModuleScriptTag(getManualBootstrapScriptPublicPath(), "head-prepend")];
250
+ const tags = [{
251
+ tag: "link",
252
+ attrs: {
253
+ rel: "icon",
254
+ href: "data:image/png;base64,iVBORw0KGgo="
255
+ },
256
+ injectTo: "head-prepend"
257
+ }, createModuleScriptTag(getManualBootstrapScriptPublicPath(), "head-prepend")];
238
258
  if (html.includes(`<${MANUAL_HEADER_ELEMENT}`)) tags.push(...createManualHeaderTags(entry, getManualHeaderScriptPublicPath(), toBaseCatalogPath(base, entry.htmlFilePath)));
239
259
  return {
240
260
  html,
@@ -395,7 +415,10 @@ function ckDebugPlugin() {
395
415
  if (!debugFlags.has(flagName)) return match;
396
416
  return `${indentation}/* @if ${flagName} */${body}`;
397
417
  });
398
- return transformedCode === code ? null : transformedCode;
418
+ return transformedCode === code ? null : {
419
+ code: transformedCode,
420
+ map: null
421
+ };
399
422
  }
400
423
  }
401
424
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-dev-manual-server",
3
- "version": "62.0.0",
3
+ "version": "62.2.0",
4
4
  "description": "Used to extend Vite to create a manual test server for CKEditor 5.",
5
5
  "keywords": [],
6
6
  "author": "CKSource (http://cksource.com/)",
package/theme/catalog.css CHANGED
@@ -3,7 +3,8 @@
3
3
  * For licensing, see LICENSE.md.
4
4
  */
5
5
 
6
- :root {
6
+ :root,
7
+ :host {
7
8
  color-scheme: light;
8
9
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
9
10
  line-height: 1.5;
@@ -18,13 +18,24 @@
18
18
  box-sizing: border-box;
19
19
  }
20
20
 
21
+ /*
22
+ * Keeps the test content away from the window edges. Tests that need a full-width layout
23
+ * opt out with `body { --ck-page-padding: 0; }`.
24
+ */
21
25
  :where(body) {
26
+ --ck-page-padding: 24px;
27
+
22
28
  margin: 0;
23
29
  min-height: 100vh;
30
+ padding-inline: var(--ck-page-padding);
24
31
  }
25
32
 
33
+ /*
34
+ * Cancels the body padding so the header bar still spans the full window width.
35
+ */
26
36
  ck-manual-header {
27
- margin-bottom: 12px;
37
+ margin-inline: calc(-1 * var(--ck-page-padding));
38
+ margin-bottom: var(--ck-page-padding);
28
39
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
29
40
  line-height: 1.6;
30
41
  color: #0a0a0a;