@mittwald/flow-remote-react-components 1.0.11 → 1.0.13

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
  //#region src/version.ts
5
5
  var communicationVersion = Version.v5;
6
- var packageVersion = "1.0.11";
6
+ var packageVersion = "1.0.13";
7
7
  var version = communicationVersion;
8
8
  //#endregion
9
9
  export { communicationVersion, packageVersion, version };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Whether the focus sits in the scenario at all, i.e. inside the container the
3
+ * visual suite renders into and captures.
4
+ *
5
+ * A field's focus ring is pure CSS (`:focus-within` on the form control,
6
+ * `:focus` on a segment), so this is exactly what the reference encodes.
7
+ * Popovers render in a portal outside the container, so an open one holding the
8
+ * focus reads as `false`.
9
+ */
10
+ export declare const focusIsInTheScenario: () => boolean;
11
+ /** Waits until the focus has (re-)entered the scenario. */
12
+ export declare const waitForFocusInTheScenario: () => Promise<void>;
13
+ /** Waits until the focus has left the scenario. */
14
+ export declare const waitForFocusOutsideTheScenario: () => Promise<void>;
15
+ //# sourceMappingURL=scenarioFocus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scenarioFocus.d.ts","sourceRoot":"","sources":["../../../../src/tests/lib/scenarioFocus.ts"],"names":[],"mappings":"AAmCA;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,QAAO,OACyB,CAAC;AAWlE,2DAA2D;AAC3D,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,IAAI,CAQ9D,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,8BAA8B,QAAa,OAAO,CAAC,IAAI,CAQnE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-remote-react-components",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "type": "module",
5
5
  "description": "React components that can be used in a remote environment",
6
6
  "homepage": "https://flow.mittwald.de",
@@ -43,26 +43,26 @@
43
43
  "test:e2e": "vitest run --config=e2e/remote-test-server/vitest.config.ts --browser.headless",
44
44
  "test:e2e:dev": "vitest dev --config=e2e/remote-test-server/vitest.config.ts",
45
45
  "test:e2e:prepare": "pnpm rimraf e2e/remote-test-server/.vitest",
46
- "test:unit": "vitest run --project=unit --passWithNoTests",
47
- "test:unit:dev": "vitest dev --project=unit --passWithNoTests",
46
+ "test:unit": "vitest run --project=unit* --passWithNoTests",
47
+ "test:unit:dev": "vitest dev --project=unit* --passWithNoTests",
48
48
  "test:visual": "vitest run --project=visual --browser.headless",
49
49
  "test:visual:dev": "vitest dev --project=visual",
50
50
  "test:visual:update": "vitest run --project=visual --browser.headless --update"
51
51
  },
52
52
  "dependencies": {
53
- "@mittwald/flow-react-components": "1.0.11",
54
- "@mittwald/flow-remote-core": "1.0.11",
55
- "@mittwald/flow-remote-elements": "1.0.11",
53
+ "@mittwald/flow-react-components": "1.0.13",
54
+ "@mittwald/flow-remote-core": "1.0.13",
55
+ "@mittwald/flow-remote-elements": "1.0.13",
56
56
  "@mittwald/remote-dom-react": "1.2.2-mittwald.10",
57
57
  "@types/react": "^19.2",
58
58
  "react-error-boundary": "^6.1.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@internationalized/date": "^3.12.3",
62
- "@mittwald/ext-bridge": "1.0.11",
63
- "@mittwald/flow-core": "1.0.11",
64
- "@mittwald/flow-remote-react-renderer": "1.0.11",
65
- "@mittwald/typescript-config": "1.0.11",
62
+ "@mittwald/ext-bridge": "1.0.13",
63
+ "@mittwald/flow-core": "1.0.13",
64
+ "@mittwald/flow-remote-react-renderer": "1.0.13",
65
+ "@mittwald/typescript-config": "1.0.13",
66
66
  "@quilted/threads": "^3.3.1",
67
67
  "@types/node": "^25.9.3",
68
68
  "@types/react-dom": "^19.2",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@internationalized/date": "^3.12.2",
90
- "@mittwald/ext-bridge": "1.0.11",
90
+ "@mittwald/ext-bridge": "1.0.13",
91
91
  "react": "^19.2.0",
92
92
  "react-hook-form": "^7.65.0"
93
93
  },
@@ -102,5 +102,5 @@
102
102
  "optional": true
103
103
  }
104
104
  },
105
- "gitHead": "8da0be8a81e675331d66cd361931f0de788e4dcb"
105
+ "gitHead": "b3ef67a3f49fa13fd137d63efe55afa9c4f11660"
106
106
  }