@mittwald/flow-remote-react-components 0.2.0-alpha.926 → 0.2.0-alpha.932

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.
@@ -3,7 +3,7 @@
3
3
  import { Version } from '@mittwald/flow-remote-core';
4
4
 
5
5
  const communicationVersion = Version.v5;
6
- const packageVersion = "0.2.0-alpha.926";
6
+ const packageVersion = "0.2.0-alpha.932";
7
7
  const version = communicationVersion;
8
8
 
9
9
  export { communicationVersion, packageVersion, version };
@@ -6,13 +6,27 @@ import * as PasswordToolsComponents from "@mittwald/flow-react-components/passwo
6
6
  declare const localComponents: typeof Components & typeof PasswordToolsComponents;
7
7
  export declare const renderRemote: typeof render;
8
8
  export declare const renderLocal: typeof render;
9
- interface TestEnvironement {
9
+ interface TestEnvironment {
10
10
  toString: () => string;
11
11
  components: typeof localComponents | typeof RemoteComponents;
12
12
  render: typeof render;
13
13
  container: Locator;
14
14
  testScreenshot: (description: string, options?: ScreenshotMatcherOptions) => Promise<void>;
15
15
  }
16
- export declare const testEnvironments: readonly [TestEnvironement, TestEnvironement];
16
+ export declare const testEnvironments: readonly [TestEnvironment, TestEnvironment];
17
+ export interface CrossVersionSkip {
18
+ /** Skip when the tested version is older than this (semver). */
19
+ below?: string;
20
+ /** Skip these exact versions (for non-monotonic breakage). */
21
+ exclude?: string[];
22
+ }
23
+ /**
24
+ * Skip predicate for the cross-version harness (see
25
+ * e2e/cross-version-inprocess). In the normal visual suite there is no old
26
+ * version, so this is always `false` and every test runs. The cross-version
27
+ * harness replaces this module with its own implementation that skips tests
28
+ * whose component/output didn't yet exist in the tested version.
29
+ */
30
+ export declare const crossVersion: (ignoredOptions: CrossVersionSkip) => boolean;
17
31
  export {};
18
32
  //# sourceMappingURL=environments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../../../../src/tests/lib/environments.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,MAAM,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EAAE,OAAO,MAKhC,CAAC;AAeF,UAAU,eAAe;IACvB,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,UAAU,EAAE,OAAO,eAAe,GAAG,OAAO,gBAAgB,CAAC;IAC7D,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,CACd,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wBAAwB,KAC/B,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAkBD,eAAO,MAAM,gBAAgB,6CAGnB,CAAC;AAEX,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,gBAAgB,gBAAgB,KAAG,OACzD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ import * as LocalComponents from "@mittwald/flow-react-components";
3
+ import * as RemoteComponents from '../../index';
4
+ /**
5
+ * The components bag a visual scenario renders with. It is the same in both
6
+ * directions the scenario is used:
7
+ *
8
+ * - In-process (the `Local` / `Remote` visual environments), and
9
+ * - Cross-version (an old published version's components in the iframe).
10
+ */
11
+ export type ScenarioComponents = typeof LocalComponents | typeof RemoteComponents;
12
+ /** A single visual scenario: build the tree from an injected components bag. */
13
+ export type VisualScenario = (components: ScenarioComponents) => ReactNode;
14
+ /** A named set of scenarios, keyed by the screenshot description. */
15
+ export type VisualScenarios = Record<string, VisualScenario>;
16
+ //# sourceMappingURL=visualScenario.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visualScenario.d.ts","sourceRoot":"","sources":["../../../../src/tests/lib/visualScenario.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,gBAAgB,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAC1B,OAAO,eAAe,GACtB,OAAO,gBAAgB,CAAC;AAE5B,gFAAgF;AAChF,MAAM,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,kBAAkB,KAAK,SAAS,CAAC;AAE3E,qEAAqE;AACrE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { VisualScenarios } from '../lib/visualScenario';
2
+ export declare const buttonScenarios: VisualScenarios;
3
+ export default buttonScenarios;
4
+ //# sourceMappingURL=Button.scenarios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.scenarios.d.ts","sourceRoot":"","sources":["../../../../src/tests/visual/Button.scenarios.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAgBlE,eAAO,MAAM,eAAe,EAAE,eAiG7B,CAAC;AAEF,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-remote-react-components",
3
- "version": "0.2.0-alpha.926",
3
+ "version": "0.2.0-alpha.932",
4
4
  "type": "module",
5
5
  "description": "React components that can be used in a remote environment",
6
6
  "homepage": "https://flow.mittwald.de",
@@ -31,6 +31,11 @@
31
31
  "test:browser": "vitest run --project=browser --browser.headless --passWithNoTests",
32
32
  "test:browser:dev": "vitest dev --project=browser",
33
33
  "test:compile": "tsc --noEmit",
34
+ "test:cross-version": "tsx dev/cross-version/run.ts",
35
+ "test:cross-version-inprocess": "tsx dev/cross-version/run-inprocess.ts",
36
+ "test:cross-version-inprocess:dev": "vitest dev --config=e2e/cross-version-inprocess/vitest.config.ts",
37
+ "test:cross-version:dev": "vitest dev --config=e2e/cross-version/vitest.config.ts",
38
+ "test:cross-version:prepare": "tsx dev/cross-version/prepare.ts",
34
39
  "test:e2e": "vitest run --config=e2e/remote-test-server/vitest.config.ts --browser.headless",
35
40
  "test:e2e:dev": "vitest dev --config=e2e/remote-test-server/vitest.config.ts",
36
41
  "test:e2e:prepare": "pnpm rimraf e2e/remote-test-server/.vitest",
@@ -41,21 +46,22 @@
41
46
  "test:visual:update": "vitest run --project=visual --browser.headless --update --browser.fileParallelism=false"
42
47
  },
43
48
  "dependencies": {
44
- "@mittwald/flow-react-components": "0.2.0-alpha.926",
45
- "@mittwald/flow-remote-core": "0.2.0-alpha.926",
46
- "@mittwald/flow-remote-elements": "0.2.0-alpha.926",
49
+ "@mittwald/flow-react-components": "0.2.0-alpha.932",
50
+ "@mittwald/flow-remote-core": "0.2.0-alpha.932",
51
+ "@mittwald/flow-remote-elements": "0.2.0-alpha.932",
47
52
  "@mittwald/remote-dom-react": "1.2.2-mittwald.10",
48
53
  "@types/react": "^19.2",
49
54
  "react-error-boundary": "^6.1.2"
50
55
  },
51
56
  "devDependencies": {
52
57
  "@internationalized/date": "^3.12.2",
53
- "@mittwald/ext-bridge": "0.2.0-alpha.926",
58
+ "@mittwald/ext-bridge": "0.2.0-alpha.932",
54
59
  "@mittwald/flow-core": "",
55
- "@mittwald/flow-remote-react-renderer": "0.2.0-alpha.926",
60
+ "@mittwald/flow-remote-react-renderer": "0.2.0-alpha.932",
56
61
  "@mittwald/typescript-config": "",
57
62
  "@types/node": "^25.9.3",
58
63
  "@types/react-dom": "^19.2",
64
+ "@types/semver": "^7.5.8",
59
65
  "@vitejs/plugin-react": "5.2.0",
60
66
  "@vitest/browser": "^4.1.9",
61
67
  "@vitest/browser-playwright": "^4.1.9",
@@ -68,6 +74,7 @@
68
74
  "rimraf": "^6.1.3",
69
75
  "rollup-plugin-auto-named-exports": "1.0.0-beta.3",
70
76
  "rollup-preserve-directives": "^1.1.3",
77
+ "semver": "^7.6.3",
71
78
  "typescript": "^6.0.3",
72
79
  "vite": "7.3.5",
73
80
  "vite-plugin-banner": "^0.8.1",
@@ -79,7 +86,7 @@
79
86
  },
80
87
  "peerDependencies": {
81
88
  "@internationalized/date": "^3.12.2",
82
- "@mittwald/ext-bridge": "0.2.0-alpha.926",
89
+ "@mittwald/ext-bridge": "0.2.0-alpha.932",
83
90
  "react": "^19.2.0",
84
91
  "react-hook-form": "*"
85
92
  },
@@ -94,5 +101,5 @@
94
101
  "optional": true
95
102
  }
96
103
  },
97
- "gitHead": "76f63c20d757279dcfdb5117020b93b21dc440fd"
104
+ "gitHead": "cd013dccaa2fbdd01b6b93159e6765d582436b8c"
98
105
  }