@owlmeans/web-flow 0.1.10 → 0.1.14
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/agent-meta/instructions/web-flow.instructions.md +1 -1
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/web-flow/SKILL.md +1 -1
- package/build/helper.d.ts.map +1 -1
- package/build/helper.js +1 -2
- package/build/helper.js.map +1 -1
- package/package.json +12 -14
- package/src/helper.ts +1 -2
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": "@owlmeans/web-flow",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"generatedAt": "2026-
|
|
4
|
+
"version": "0.1.14",
|
|
5
|
+
"generatedAt": "2026-08-05T16:56:53.391Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
package/build/helper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,uBAAuB,CAAA;AAIpE,eAAO,MAAM,OAAO,GAAI,SAAQ,MAAM,GAAG,IAAW,KAAG,UAAU,GAAG,IAmBnE,CAAA"}
|
package/build/helper.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { useContext, useModule, useNavigate, useValue } from '@owlmeans/client';
|
|
2
2
|
import { createFlowClient } from '@owlmeans/client-flow';
|
|
3
3
|
import { DEFAULT_ALIAS as FLOW_ALIAS } from '@owlmeans/client-flow';
|
|
4
|
-
import { useSearchParams } from 'react-router';
|
|
5
4
|
import { QUERY_PARAM, SERVICE_PARAM } from './consts.js';
|
|
6
5
|
export const useFlow = (target = null) => {
|
|
7
6
|
const context = useContext();
|
|
8
7
|
const nav = useNavigate();
|
|
9
|
-
const [query] = useSearchParams();
|
|
8
|
+
const [query] = context.router().useSearchParams();
|
|
10
9
|
const { params } = useModule();
|
|
11
10
|
const client = useValue(async () => {
|
|
12
11
|
if (QUERY_PARAM in params && params[QUERY_PARAM] != null) {
|
package/build/helper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAExD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,SAAwB,IAAI,EAAqB,EAAE;IACzE,MAAM,OAAO,GAAG,UAAU,EAAE,CAAA;IAC5B,MAAM,GAAG,GAAG,WAAW,EAAE,CAAA;IACzB,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,eAAe,EAAE,CAAA;IAClD,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAA;IAC9B,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,IAAI,EAAE;QACjC,IAAI,WAAW,IAAI,MAAM,IAAI,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,EAAE,CAAC;YACzD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAc,UAAU,CAAC,CAAA;YACxD,MAAM,OAAO,CAAC,KAAK,EAAE,CAAA;YAErB,OAAO,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAW,CAAC,CAAC,CAAA;QAChG,CAAC;QACD,OAAO,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,MAAM,CAAC,CAAA;IAChF,CAAC,EAAE;QACD,WAAW,IAAI,MAAM,IAAI,MAAM,CAAC,WAAW,CAAW;QACtD,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,MAAM;KAC3D,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/web-flow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,24 +21,22 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/client": "^0.1.
|
|
25
|
-
"@owlmeans/client-context": "^0.1.
|
|
26
|
-
"@owlmeans/client-flow": "^0.1.
|
|
27
|
-
"@owlmeans/client-entrypoint": "^0.1.
|
|
28
|
-
"@owlmeans/client-resource": "^0.1.
|
|
29
|
-
"@owlmeans/context": "^0.1.
|
|
30
|
-
"@owlmeans/error": "^0.1.
|
|
31
|
-
"@owlmeans/flow": "^0.1.
|
|
24
|
+
"@owlmeans/client": "^0.1.14",
|
|
25
|
+
"@owlmeans/client-context": "^0.1.14",
|
|
26
|
+
"@owlmeans/client-flow": "^0.1.14",
|
|
27
|
+
"@owlmeans/client-entrypoint": "^0.1.14",
|
|
28
|
+
"@owlmeans/client-resource": "^0.1.14",
|
|
29
|
+
"@owlmeans/context": "^0.1.14",
|
|
30
|
+
"@owlmeans/error": "^0.1.14",
|
|
31
|
+
"@owlmeans/flow": "^0.1.14"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"react": "*"
|
|
35
|
-
"react-router": "^7.*"
|
|
34
|
+
"react": "*"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
37
|
"@owlmeans/dep-config": "workspace:*",
|
|
39
|
-
"nodemon": "^3.1.
|
|
40
|
-
"
|
|
41
|
-
"typescript": "^6.0.2"
|
|
38
|
+
"nodemon": "^3.1.14",
|
|
39
|
+
"typescript": "^6.0.3"
|
|
42
40
|
},
|
|
43
41
|
"publishConfig": {
|
|
44
42
|
"access": "public"
|
package/src/helper.ts
CHANGED
|
@@ -2,13 +2,12 @@ import { useContext, useModule, useNavigate, useValue } from '@owlmeans/client'
|
|
|
2
2
|
import { createFlowClient } from '@owlmeans/client-flow'
|
|
3
3
|
import type { FlowClient, FlowService } from '@owlmeans/client-flow'
|
|
4
4
|
import { DEFAULT_ALIAS as FLOW_ALIAS } from '@owlmeans/client-flow'
|
|
5
|
-
import { useSearchParams } from 'react-router'
|
|
6
5
|
import { QUERY_PARAM, SERVICE_PARAM } from './consts.js'
|
|
7
6
|
|
|
8
7
|
export const useFlow = (target: string | null = null): FlowClient | null => {
|
|
9
8
|
const context = useContext()
|
|
10
9
|
const nav = useNavigate()
|
|
11
|
-
const [query] = useSearchParams()
|
|
10
|
+
const [query] = context.router().useSearchParams()
|
|
12
11
|
const { params } = useModule()
|
|
13
12
|
const client = useValue(async () => {
|
|
14
13
|
if (QUERY_PARAM in params && params[QUERY_PARAM] != null) {
|