@wix/origami-transforms 0.1.21 → 0.1.23

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
@@ -10,7 +10,12 @@ through `setCommand`. It has no Vite dependency.
10
10
 
11
11
  JavaScript source lives in `src/`; `pnpm build` emits declarations to `dist/`.
12
12
  Run `pnpm test` and `pnpm lint` for the transform suite and lint checks.
13
- Transform specs and CSS fixtures live only in this package. The old runtime keeps its
14
- own integration, browser and packed-package tests. Consumers import the shared API
13
+ Transform specs and CSS fixtures live only in this package. `test/packed.spec.js` loads the
14
+ packed package outside the monorepo.
15
+ `pnpm test:browser` checks the compiled CSS in Chromium: SPX scaling (`test/spx.browser.mjs`) and the
16
+ maintained InternalContainer with system-component CSS (`test/semanticContainer.browser.mjs`: responsive SPX,
17
+ grid/flex, max widths and alignment, overflow, visibility, focus and pointer events, HMR and a production build).
18
+ CI doesn't run it. Install Playwright Chromium (`pnpm exec playwright install chromium`) or set
19
+ `CHROME_CHANNEL=chrome` to use the installed Chrome. Consumers import the shared API
15
20
  and types from `@wix/origami-transforms`; there are no public subpath exports.
16
21
  The host layout only needs a `root` string.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/origami-transforms",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "Babel and PostCSS checks and transforms for Wix origami page files.",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -11,20 +11,25 @@
11
11
  "build": "rm -rf dist tsconfig.tsbuildinfo && tsc -b .",
12
12
  "lint": "oxlint .",
13
13
  "test": "node --test test/*.spec.js",
14
+ "test:browser": "node test/spx.browser.mjs && node test/semanticContainer.browser.mjs",
14
15
  "clean": "rm -rf dist tsconfig.tsbuildinfo"
15
16
  },
16
17
  "dependencies": {
17
18
  "@babel/core": "^7.26.0",
18
19
  "@babel/parser": "^7.25.0",
19
20
  "@babel/types": "^7.25.2",
20
- "@wix/origami-fonts": "1.0.1",
21
- "@wix/origami-system-components": "1.10.4",
21
+ "@wix/origami-fonts": "1.0.3",
22
+ "@wix/origami-system-components": "1.10.5",
22
23
  "postcss": "^8.5.3",
23
24
  "postcss-custom-media": "^12.0.1"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@types/node": "^22.0.0",
27
- "typescript": "^6.0.3"
28
+ "playwright": "^1.61.1",
29
+ "react": "^18.3.1",
30
+ "react-dom": "^18.3.1",
31
+ "typescript": "^6.0.3",
32
+ "vite": "^8"
28
33
  },
29
34
  "publishUnscoped": false,
30
35
  "publishConfig": {
@@ -64,5 +69,5 @@
64
69
  },
65
70
  "type": "module",
66
71
  "types": "./dist/index.d.ts",
67
- "falconPackageHash": "eca6f9ee8223141c27885333e15efd4d8f47bd33ef1a2b4c505f8305"
72
+ "falconPackageHash": "6e40ca1791ac7265bb273606e23887a0542b29135056cccf8f9a8ed5"
68
73
  }
@@ -1,5 +1,5 @@
1
1
  // A companion app's `editorReactComponent` and `contextProvider` registrations, read the same way by the export
2
- // (origami-site-generator, from the exported files) and by the site's Vite plugin (origami-site-runtime, from disk).
2
+ // (from the exported files) and by import-site (from disk), both in origami-site-generator.
3
3
  import { existsSync, readFileSync, readdirSync } from 'node:fs'
4
4
  import { posix } from 'node:path'
5
5
  import { parse } from '@babel/parser'