@pipelex/mthds-ui 0.56.0 → 0.57.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.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The text and annotation layer styles of a PDF the form kernel's result view
3
+ * draws itself, for a host WITH Tailwind 4.
4
+ *
5
+ * Since kernel 0.41.0 the result view draws a PDF it cannot frame page by page
6
+ * with pdf.js, when the host hands it the document's bytes (`loadBytes` and
7
+ * `pdfWorker`, on `GraphViewer`, `StuffResultPanel` or the kernel's
8
+ * `ResultEnvProvider`). Each drawn page carries a transparent text layer laid
9
+ * exactly over its canvas, so text can be selected and copied, and an
10
+ * annotation layer for its links. Without these styles that text sits visibly
11
+ * out of place over the page.
12
+ *
13
+ * They are plain CSS for pdf.js's own elements, not utilities a Tailwind build
14
+ * could compile from the kernel's JavaScript, so `./tailwind.css`'s `@source`
15
+ * lines cannot bring them. A Tailwind 4 host that supplies `loadBytes` writes,
16
+ * beside its import of `@pipelex/mthds-ui/tailwind.css`:
17
+ *
18
+ * @import "@pipelex/mthds-ui/pdf-layers.css";
19
+ *
20
+ * The import below is resolved from where this file really lands, inside this
21
+ * package, so it reaches the kernel this package depends on in every install
22
+ * layout, pnpm's virtual store included, and the host never names the kernel.
23
+ *
24
+ * A host WITHOUT Tailwind needs nothing more: the kernel folds these rules into
25
+ * its `styles.css`, which `./form-kernel.css` already imports.
26
+ *
27
+ * Every rule in the kernel's sheet is scoped under the renderer's frame except
28
+ * one on `body`, which sets the two marker properties react-pdf reads to warn
29
+ * in development that the styles are missing, and styles nothing. No
30
+ * JavaScript in this package imports this file.
31
+ */
32
+ @import "@pipelex/mthds-form/pdf-layers.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelex/mthds-ui",
3
- "version": "0.56.0",
3
+ "version": "0.57.0",
4
4
  "description": "Shared graph rendering logic for MTHDS method visualization",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "**/*.css"
16
16
  ],
17
17
  "engines": {
18
- "node": ">=22"
18
+ "node": ">=22.13"
19
19
  },
20
20
  "main": "./dist/index.js",
21
21
  "types": "./dist/index.d.ts",
@@ -80,7 +80,8 @@
80
80
  "./timeline/react/RunTimeline.css": "./dist/timeline/react/RunTimeline.css",
81
81
  "./timeline/react/styles/simple/SimpleProgress.css": "./dist/timeline/react/styles/simple/SimpleProgress.css",
82
82
  "./tailwind.css": "./dist/styles/tailwind.css",
83
- "./form-kernel.css": "./dist/styles/form-kernel.css"
83
+ "./form-kernel.css": "./dist/styles/form-kernel.css",
84
+ "./pdf-layers.css": "./dist/styles/pdf-layers.css"
84
85
  },
85
86
  "files": [
86
87
  "dist"
@@ -105,7 +106,7 @@
105
106
  "build-storybook": "storybook build"
106
107
  },
107
108
  "dependencies": {
108
- "@pipelex/mthds-form": "^0.40.0",
109
+ "@pipelex/mthds-form": "^0.41.0",
109
110
  "@xyflow/react": "^12",
110
111
  "elkjs": "^0.11.1",
111
112
  "mthds": "^0.34.0",