@nocobase/plugin-flow-engine 2.2.0-beta.7 → 2.2.0-beta.8

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.
Files changed (29) hide show
  1. package/dist/externalVersion.js +9 -9
  2. package/dist/locale/en-US.json +1 -0
  3. package/dist/locale/index.d.ts +2 -0
  4. package/dist/locale/zh-CN.json +1 -0
  5. package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
  6. package/dist/node_modules/acorn/package.json +1 -1
  7. package/dist/node_modules/acorn-jsx/package.json +1 -1
  8. package/dist/node_modules/acorn-walk/package.json +1 -1
  9. package/dist/node_modules/ses/package.json +1 -1
  10. package/dist/node_modules/zod/package.json +1 -1
  11. package/dist/server/flow-surfaces/authoring-validation.d.ts +2 -1
  12. package/dist/server/flow-surfaces/authoring-validation.js +43 -18
  13. package/dist/server/flow-surfaces/blueprint/compile-plan.js +19 -15
  14. package/dist/server/flow-surfaces/blueprint/export-document.js +7 -2
  15. package/dist/server/flow-surfaces/blueprint/normalize-document.js +2 -1
  16. package/dist/server/flow-surfaces/blueprint/public-types.d.ts +1 -0
  17. package/dist/server/flow-surfaces/builder.js +24 -4
  18. package/dist/server/flow-surfaces/catalog.js +10 -1
  19. package/dist/server/flow-surfaces/configure-options.js +1 -0
  20. package/dist/server/flow-surfaces/constants.d.ts +2 -2
  21. package/dist/server/flow-surfaces/service.d.ts +11 -0
  22. package/dist/server/flow-surfaces/service.js +265 -31
  23. package/dist/server/flow-surfaces/types.d.ts +2 -1
  24. package/dist/swagger/flow-surfaces.d.ts +13 -0
  25. package/dist/swagger/flow-surfaces.examples.d.ts +3 -0
  26. package/dist/swagger/flow-surfaces.examples.js +3 -0
  27. package/dist/swagger/flow-surfaces.js +19 -6
  28. package/dist/swagger/index.d.ts +13 -0
  29. package/package.json +2 -2
@@ -8,16 +8,16 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.2.0-beta.7",
11
+ "@nocobase/client": "2.2.0-beta.8",
12
12
  "lodash": "4.18.1",
13
- "@nocobase/database": "2.2.0-beta.7",
14
- "@nocobase/data-source-manager": "2.2.0-beta.7",
15
- "@nocobase/resourcer": "2.2.0-beta.7",
16
- "@nocobase/utils": "2.2.0-beta.7",
17
- "@nocobase/cache": "2.2.0-beta.7",
18
- "@nocobase/server": "2.2.0-beta.7",
19
- "@nocobase/actions": "2.2.0-beta.7",
13
+ "@nocobase/database": "2.2.0-beta.8",
14
+ "@nocobase/data-source-manager": "2.2.0-beta.8",
15
+ "@nocobase/resourcer": "2.2.0-beta.8",
16
+ "@nocobase/utils": "2.2.0-beta.8",
17
+ "@nocobase/cache": "2.2.0-beta.8",
18
+ "@nocobase/server": "2.2.0-beta.8",
19
+ "@nocobase/actions": "2.2.0-beta.8",
20
20
  "sequelize": "6.35.2",
21
21
  "@formily/json-schema": "2.3.7",
22
- "@nocobase/ai": "2.2.0-beta.7"
22
+ "@nocobase/ai": "2.2.0-beta.8"
23
23
  };
@@ -56,6 +56,7 @@
56
56
  "Replace current block with template?": "Replace current block with template?",
57
57
  "Replaced with template block": "Replaced with template block",
58
58
  "Render failed": "Render failed",
59
+ "Response record": "Response record",
59
60
  "Step configuration": "Step configuration",
60
61
  "Step parameter configuration": "Step parameter configuration",
61
62
  "Step with key {{stepKey}} not found": "Step with key {{stepKey}} not found",
@@ -65,6 +65,7 @@ export declare const locales: {
65
65
  "Replace current block with template?": string;
66
66
  "Replaced with template block": string;
67
67
  "Render failed": string;
68
+ "Response record": string;
68
69
  "Step configuration": string;
69
70
  "Step parameter configuration": string;
70
71
  "Step with key {{stepKey}} not found": string;
@@ -150,6 +151,7 @@ export declare const locales: {
150
151
  "Other blocks": string;
151
152
  "Previous step": string;
152
153
  "Render failed": string;
154
+ "Response record": string;
153
155
  "Step configuration": string;
154
156
  "Step parameter configuration": string;
155
157
  "Step with key {{stepKey}} not found": string;
@@ -60,6 +60,7 @@
60
60
  "Other blocks": "其他区块",
61
61
  "Previous step": "上一步",
62
62
  "Render failed": "渲染失败",
63
+ "Response record": "响应结果记录",
63
64
  "Step configuration": "步骤配置",
64
65
  "Step parameter configuration": "步骤参数配置",
65
66
  "Step with key {{stepKey}} not found": "未找到key为 {{stepKey}} 的步骤",
@@ -1 +1 @@
1
- {"name":"@ant-design/icons-svg","version":"4.3.1","sideEffects":false,"description":"Abstract nodes for ant design icons.","contributors":["HeskeyBaozi <hezhiyu233@foxmail.com>"],"homepage":"https://github.com/ant-design/ant-design-icons/","license":"MIT","main":"lib/index.js","module":"es/index.js","files":["lib","es","inline-svg","inline-namespaced-svg"],"repository":{"type":"git","url":"git+https://github.com/ant-design/ant-design-icons.git"},"scripts":{"g":"npm run generate","generate":"cross-env NODE_ENV=production gulp --require ts-node/register/transpile-only","type-check":"tsc --noEmit","build:es":"tsc --project tsconfig.build.json --module esnext --outDir es","build:lib":"tsc --project tsconfig.build.json --module commonjs --outDir lib","build":"cross-env NODE_ENV=production && npm run build:es && npm run build:lib","test":"cross-env NODE_ENV=test && npm run test:unit","test:unit":"jest","prepublishOnly":"npm run test && npm run g && npm run build && npm run type-check && npm run digest","digest":"node scripts/digest.js"},"bugs":{"url":"https://github.com/ant-design/ant-design-icons/issues"},"devDependencies":{"@babel/core":"^7.8.6","@babel/preset-env":"^7.8.6","@babel/preset-typescript":"^7.8.3","@rgrove/parse-xml":"^2.0.2","@types/gulp":"^4.0.6","@types/gulp-concat":"^0.0.32","@types/gulp-rename":"^0.0.33","@types/jest":"^25.1.3","@types/lodash.camelcase":"^4.3.6","@types/lodash.template":"^4.4.6","@types/lodash.upperfirst":"^4.3.6","@types/node":"^13.9.3","@types/ramda":"^0.26.43","@types/rgrove__parse-xml":"^1.1.0","@types/svgo":"^1.3.1","@types/through2":"^2.0.34","@typescript-eslint/eslint-plugin":"^2.21.0","@typescript-eslint/parser":"^2.21.0","babel-jest":"^25.1.0","cross-env":"^7.0.0","del":"^5.1.0","eslint":"^7.16.0","globby":"^11.0.0","gulp":"^4.0.2","gulp-clone":"^2.0.1","gulp-concat":"^2.6.1","gulp-header":"^2.0.9","gulp-rename":"^2.0.0","jest":"^25.1.0","lodash.camelcase":"^4.3.0","lodash.template":"^4.5.0","lodash.upperfirst":"^4.3.1","ramda":"^0.27.0","svgo":"^1.3.2","through2":"^3.0.1","ts-node":"^8.6.2","typescript":"^4.0.0","vinyl":"^2.2.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_lastModified":"2026-06-25T01:02:41.232Z"}
1
+ {"name":"@ant-design/icons-svg","version":"4.3.1","sideEffects":false,"description":"Abstract nodes for ant design icons.","contributors":["HeskeyBaozi <hezhiyu233@foxmail.com>"],"homepage":"https://github.com/ant-design/ant-design-icons/","license":"MIT","main":"lib/index.js","module":"es/index.js","files":["lib","es","inline-svg","inline-namespaced-svg"],"repository":{"type":"git","url":"git+https://github.com/ant-design/ant-design-icons.git"},"scripts":{"g":"npm run generate","generate":"cross-env NODE_ENV=production gulp --require ts-node/register/transpile-only","type-check":"tsc --noEmit","build:es":"tsc --project tsconfig.build.json --module esnext --outDir es","build:lib":"tsc --project tsconfig.build.json --module commonjs --outDir lib","build":"cross-env NODE_ENV=production && npm run build:es && npm run build:lib","test":"cross-env NODE_ENV=test && npm run test:unit","test:unit":"jest","prepublishOnly":"npm run test && npm run g && npm run build && npm run type-check && npm run digest","digest":"node scripts/digest.js"},"bugs":{"url":"https://github.com/ant-design/ant-design-icons/issues"},"devDependencies":{"@babel/core":"^7.8.6","@babel/preset-env":"^7.8.6","@babel/preset-typescript":"^7.8.3","@rgrove/parse-xml":"^2.0.2","@types/gulp":"^4.0.6","@types/gulp-concat":"^0.0.32","@types/gulp-rename":"^0.0.33","@types/jest":"^25.1.3","@types/lodash.camelcase":"^4.3.6","@types/lodash.template":"^4.4.6","@types/lodash.upperfirst":"^4.3.6","@types/node":"^13.9.3","@types/ramda":"^0.26.43","@types/rgrove__parse-xml":"^1.1.0","@types/svgo":"^1.3.1","@types/through2":"^2.0.34","@typescript-eslint/eslint-plugin":"^2.21.0","@typescript-eslint/parser":"^2.21.0","babel-jest":"^25.1.0","cross-env":"^7.0.0","del":"^5.1.0","eslint":"^7.16.0","globby":"^11.0.0","gulp":"^4.0.2","gulp-clone":"^2.0.1","gulp-concat":"^2.6.1","gulp-header":"^2.0.9","gulp-rename":"^2.0.0","jest":"^25.1.0","lodash.camelcase":"^4.3.0","lodash.template":"^4.5.0","lodash.upperfirst":"^4.3.1","ramda":"^0.27.0","svgo":"^1.3.2","through2":"^3.0.1","ts-node":"^8.6.2","typescript":"^4.0.0","vinyl":"^2.2.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_lastModified":"2026-06-29T01:53:29.215Z"}
@@ -1 +1 @@
1
- {"name":"acorn","description":"ECMAScript parser","homepage":"https://github.com/acornjs/acorn","main":"dist/acorn.js","types":"dist/acorn.d.ts","module":"dist/acorn.mjs","exports":{".":[{"import":"./dist/acorn.mjs","require":"./dist/acorn.js","default":"./dist/acorn.js"},"./dist/acorn.js"],"./package.json":"./package.json"},"version":"8.11.2","engines":{"node":">=0.4.0"},"maintainers":[{"name":"Marijn Haverbeke","email":"marijnh@gmail.com","web":"https://marijnhaverbeke.nl"},{"name":"Ingvar Stepanyan","email":"me@rreverser.com","web":"https://rreverser.com/"},{"name":"Adrian Heine","web":"http://adrianheine.de"}],"repository":{"type":"git","url":"https://github.com/acornjs/acorn.git"},"license":"MIT","scripts":{"prepare":"cd ..; npm run build:main"},"bin":{"acorn":"./bin/acorn"},"_lastModified":"2026-06-25T01:02:42.131Z"}
1
+ {"name":"acorn","description":"ECMAScript parser","homepage":"https://github.com/acornjs/acorn","main":"dist/acorn.js","types":"dist/acorn.d.ts","module":"dist/acorn.mjs","exports":{".":[{"import":"./dist/acorn.mjs","require":"./dist/acorn.js","default":"./dist/acorn.js"},"./dist/acorn.js"],"./package.json":"./package.json"},"version":"8.11.2","engines":{"node":">=0.4.0"},"maintainers":[{"name":"Marijn Haverbeke","email":"marijnh@gmail.com","web":"https://marijnhaverbeke.nl"},{"name":"Ingvar Stepanyan","email":"me@rreverser.com","web":"https://rreverser.com/"},{"name":"Adrian Heine","web":"http://adrianheine.de"}],"repository":{"type":"git","url":"https://github.com/acornjs/acorn.git"},"license":"MIT","scripts":{"prepare":"cd ..; npm run build:main"},"bin":{"acorn":"./bin/acorn"},"_lastModified":"2026-06-29T01:53:30.279Z"}
@@ -1 +1 @@
1
- {"name":"acorn-jsx","description":"Modern, fast React.js JSX parser","homepage":"https://github.com/acornjs/acorn-jsx","version":"5.3.2","maintainers":[{"name":"Ingvar Stepanyan","email":"me@rreverser.com","web":"http://rreverser.com/"}],"repository":{"type":"git","url":"https://github.com/acornjs/acorn-jsx"},"license":"MIT","scripts":{"test":"node test/run.js"},"peerDependencies":{"acorn":"^6.0.0 || ^7.0.0 || ^8.0.0"},"devDependencies":{"acorn":"^8.0.1"},"_lastModified":"2026-06-25T01:02:42.557Z"}
1
+ {"name":"acorn-jsx","description":"Modern, fast React.js JSX parser","homepage":"https://github.com/acornjs/acorn-jsx","version":"5.3.2","maintainers":[{"name":"Ingvar Stepanyan","email":"me@rreverser.com","web":"http://rreverser.com/"}],"repository":{"type":"git","url":"https://github.com/acornjs/acorn-jsx"},"license":"MIT","scripts":{"test":"node test/run.js"},"peerDependencies":{"acorn":"^6.0.0 || ^7.0.0 || ^8.0.0"},"devDependencies":{"acorn":"^8.0.1"},"_lastModified":"2026-06-29T01:53:30.713Z"}
@@ -1 +1 @@
1
- {"name":"acorn-walk","description":"ECMAScript (ESTree) AST walker","homepage":"https://github.com/acornjs/acorn","main":"dist/walk.js","types":"dist/walk.d.ts","module":"dist/walk.mjs","exports":{".":[{"import":"./dist/walk.mjs","require":"./dist/walk.js","default":"./dist/walk.js"},"./dist/walk.js"],"./package.json":"./package.json"},"version":"8.3.4","engines":{"node":">=0.4.0"},"dependencies":{"acorn":"^8.11.0"},"maintainers":[{"name":"Marijn Haverbeke","email":"marijnh@gmail.com","web":"https://marijnhaverbeke.nl"},{"name":"Ingvar Stepanyan","email":"me@rreverser.com","web":"https://rreverser.com/"},{"name":"Adrian Heine","web":"http://adrianheine.de"}],"repository":{"type":"git","url":"https://github.com/acornjs/acorn.git"},"scripts":{"prepare":"cd ..; npm run build:walk"},"license":"MIT","_lastModified":"2026-06-25T01:02:42.666Z"}
1
+ {"name":"acorn-walk","description":"ECMAScript (ESTree) AST walker","homepage":"https://github.com/acornjs/acorn","main":"dist/walk.js","types":"dist/walk.d.ts","module":"dist/walk.mjs","exports":{".":[{"import":"./dist/walk.mjs","require":"./dist/walk.js","default":"./dist/walk.js"},"./dist/walk.js"],"./package.json":"./package.json"},"version":"8.3.4","engines":{"node":">=0.4.0"},"dependencies":{"acorn":"^8.11.0"},"maintainers":[{"name":"Marijn Haverbeke","email":"marijnh@gmail.com","web":"https://marijnhaverbeke.nl"},{"name":"Ingvar Stepanyan","email":"me@rreverser.com","web":"https://rreverser.com/"},{"name":"Adrian Heine","web":"http://adrianheine.de"}],"repository":{"type":"git","url":"https://github.com/acornjs/acorn.git"},"scripts":{"prepare":"cd ..; npm run build:walk"},"license":"MIT","_lastModified":"2026-06-29T01:53:30.823Z"}
@@ -1 +1 @@
1
- {"name":"ses","version":"1.14.0","description":"Hardened JavaScript for Fearless Cooperation","keywords":["lockdown","harden","Compartment","assert","security","confinement","isolation","object capabilities","ocaps","secure execution","third-party code","prototype pollution","supply-chain attack","plugin"],"author":"Agoric","license":"Apache-2.0","homepage":"https://github.com/Agoric/SES-shim/tree/master/packages/ses#readme","repository":{"type":"git","url":"git+https://github.com/endojs/endo.git","directory":"packages/ses"},"bugs":{"url":"https://github.com/endojs/endo/issues"},"type":"module","main":"./dist/ses.cjs","module":"./index.js","unpkg":"./dist/ses.umd.js","types":"./types.d.ts","exports":{".":{"import":{"types":"./types.d.ts","xs":"./src-xs/index.js","default":"./index.js"},"require":{"types":"./dist/types.d.cts","default":"./dist/ses.cjs"}},"./lockdown":{"import":{"types":"./types.d.ts","default":"./index.js"},"require":{"types":"./dist/types.d.cts","default":"./dist/ses.cjs"}},"./hermes":{"require":{"types":"./dist/types.d.cts","default":"./dist/ses-hermes.cjs"}},"./tools.js":"./tools.js","./assert-shim.js":"./assert-shim.js","./lockdown-shim.js":{"xs":"./src-xs/lockdown-shim.js","default":"./lockdown-shim.js"},"./compartment-shim.js":{"xs":"./src-xs/compartment-shim.js","default":"./compartment-shim.js"},"./console-shim.js":"./console-shim.js","./package.json":"./package.json"},"scripts":{"build:vanilla":"node scripts/bundle.js","build:hermes":"node scripts/bundle.js hermes","build":"yarn build:vanilla && yarn build:hermes","clean":"rm -rf dist","cover":"c8 ava","demo":"python3 -m http.server","lint":"yarn lint:types && yarn lint:eslint","lint-fix":"eslint --fix .","lint:eslint":"eslint .","lint:types":"tsc","prepare":"npm run clean && npm run build","qt":"ava","test":"tsd && ava","test:hermes":"./scripts/hermes-test.sh","test:xs":"xst dist/ses.umd.js test/_lockdown-safe.js && node scripts/generate-test-xs.js && xst tmp/test-xs.js && rm -rf tmp","postpack":"git clean -fX \"*.d.ts*\" \"*.d.cts*\" \"*.d.mts*\" \"*.tsbuildinfo\""},"dependencies":{"@endo/cache-map":"^1.1.0","@endo/env-options":"^1.1.11","@endo/immutable-arraybuffer":"^1.1.2"},"devDependencies":{"@babel/generator":"^7.26.3","@babel/parser":"~7.26.2","@babel/traverse":"~7.25.9","@babel/types":"~7.26.0","@endo/compartment-mapper":"^1.6.3","@endo/module-source":"^1.3.3","@endo/test262-runner":"^0.1.48","@types/babel__traverse":"^7.20.5","ava":"^6.1.3","babel-eslint":"^10.1.0","c8":"^7.14.0","core-js":"^3.31.0","eslint":"^8.57.1","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.31.0","hermes-engine-cli":"^0.12.0","prettier":"^3.5.3","terser":"^5.16.6","tsd":"^0.31.2","typescript":"~5.8.3"},"files":["./*.d.ts","./*.js","./*.map","LICENSE*","SECURITY*","dist","lib","src","tools"],"publishConfig":{"access":"public"},"eslintConfig":{"extends":["plugin:@endo/ses"]},"ava":{"files":["test/**/*.test.*"],"timeout":"2m"},"typeCoverage":{"atLeast":81.17},"gitHead":"9815aea9541f241389d2135c6097a7442bdffa17","_lastModified":"2026-06-25T01:02:41.734Z"}
1
+ {"name":"ses","version":"1.14.0","description":"Hardened JavaScript for Fearless Cooperation","keywords":["lockdown","harden","Compartment","assert","security","confinement","isolation","object capabilities","ocaps","secure execution","third-party code","prototype pollution","supply-chain attack","plugin"],"author":"Agoric","license":"Apache-2.0","homepage":"https://github.com/Agoric/SES-shim/tree/master/packages/ses#readme","repository":{"type":"git","url":"git+https://github.com/endojs/endo.git","directory":"packages/ses"},"bugs":{"url":"https://github.com/endojs/endo/issues"},"type":"module","main":"./dist/ses.cjs","module":"./index.js","unpkg":"./dist/ses.umd.js","types":"./types.d.ts","exports":{".":{"import":{"types":"./types.d.ts","xs":"./src-xs/index.js","default":"./index.js"},"require":{"types":"./dist/types.d.cts","default":"./dist/ses.cjs"}},"./lockdown":{"import":{"types":"./types.d.ts","default":"./index.js"},"require":{"types":"./dist/types.d.cts","default":"./dist/ses.cjs"}},"./hermes":{"require":{"types":"./dist/types.d.cts","default":"./dist/ses-hermes.cjs"}},"./tools.js":"./tools.js","./assert-shim.js":"./assert-shim.js","./lockdown-shim.js":{"xs":"./src-xs/lockdown-shim.js","default":"./lockdown-shim.js"},"./compartment-shim.js":{"xs":"./src-xs/compartment-shim.js","default":"./compartment-shim.js"},"./console-shim.js":"./console-shim.js","./package.json":"./package.json"},"scripts":{"build:vanilla":"node scripts/bundle.js","build:hermes":"node scripts/bundle.js hermes","build":"yarn build:vanilla && yarn build:hermes","clean":"rm -rf dist","cover":"c8 ava","demo":"python3 -m http.server","lint":"yarn lint:types && yarn lint:eslint","lint-fix":"eslint --fix .","lint:eslint":"eslint .","lint:types":"tsc","prepare":"npm run clean && npm run build","qt":"ava","test":"tsd && ava","test:hermes":"./scripts/hermes-test.sh","test:xs":"xst dist/ses.umd.js test/_lockdown-safe.js && node scripts/generate-test-xs.js && xst tmp/test-xs.js && rm -rf tmp","postpack":"git clean -fX \"*.d.ts*\" \"*.d.cts*\" \"*.d.mts*\" \"*.tsbuildinfo\""},"dependencies":{"@endo/cache-map":"^1.1.0","@endo/env-options":"^1.1.11","@endo/immutable-arraybuffer":"^1.1.2"},"devDependencies":{"@babel/generator":"^7.26.3","@babel/parser":"~7.26.2","@babel/traverse":"~7.25.9","@babel/types":"~7.26.0","@endo/compartment-mapper":"^1.6.3","@endo/module-source":"^1.3.3","@endo/test262-runner":"^0.1.48","@types/babel__traverse":"^7.20.5","ava":"^6.1.3","babel-eslint":"^10.1.0","c8":"^7.14.0","core-js":"^3.31.0","eslint":"^8.57.1","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.31.0","hermes-engine-cli":"^0.12.0","prettier":"^3.5.3","terser":"^5.16.6","tsd":"^0.31.2","typescript":"~5.8.3"},"files":["./*.d.ts","./*.js","./*.map","LICENSE*","SECURITY*","dist","lib","src","tools"],"publishConfig":{"access":"public"},"eslintConfig":{"extends":["plugin:@endo/ses"]},"ava":{"files":["test/**/*.test.*"],"timeout":"2m"},"typeCoverage":{"atLeast":81.17},"gitHead":"9815aea9541f241389d2135c6097a7442bdffa17","_lastModified":"2026-06-29T01:53:29.861Z"}
@@ -1 +1 @@
1
- {"name":"zod","version":"4.3.5","type":"module","license":"MIT","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","homepage":"https://zod.dev","llms":"https://zod.dev/llms.txt","llmsFull":"https://zod.dev/llms-full.txt","mcpServer":"https://mcp.inkeep.com/zod/mcp","funding":"https://github.com/sponsors/colinhacks","sideEffects":false,"files":["src","**/*.js","**/*.mjs","**/*.cjs","**/*.d.ts","**/*.d.mts","**/*.d.cts","**/package.json"],"keywords":["typescript","schema","validation","type","inference"],"main":"./index.cjs","types":"./index.d.cts","module":"./index.js","zshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./mini":"./src/mini/index.ts","./locales":"./src/locales/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4-mini/index.ts","./v4/mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"conditions":{"@zod/source":"src"}},"exports":{"./package.json":"./package.json",".":{"@zod/source":"./src/index.ts","types":"./index.d.cts","import":"./index.js","require":"./index.cjs"},"./mini":{"@zod/source":"./src/mini/index.ts","types":"./mini/index.d.cts","import":"./mini/index.js","require":"./mini/index.cjs"},"./locales":{"@zod/source":"./src/locales/index.ts","types":"./locales/index.d.cts","import":"./locales/index.js","require":"./locales/index.cjs"},"./v3":{"@zod/source":"./src/v3/index.ts","types":"./v3/index.d.cts","import":"./v3/index.js","require":"./v3/index.cjs"},"./v4":{"@zod/source":"./src/v4/index.ts","types":"./v4/index.d.cts","import":"./v4/index.js","require":"./v4/index.cjs"},"./v4-mini":{"@zod/source":"./src/v4-mini/index.ts","types":"./v4-mini/index.d.cts","import":"./v4-mini/index.js","require":"./v4-mini/index.cjs"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./v4/mini/index.d.cts","import":"./v4/mini/index.js","require":"./v4/mini/index.cjs"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./v4/core/index.d.cts","import":"./v4/core/index.js","require":"./v4/core/index.cjs"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./v4/locales/index.d.cts","import":"./v4/locales/index.js","require":"./v4/locales/index.cjs"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./v4/locales/*","import":"./v4/locales/*","require":"./v4/locales/*"}},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"git clean -xdf . -e node_modules","build":"zshy --project tsconfig.build.json","postbuild":"tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","prepublishOnly":"tsx ../../scripts/check-versions.ts"},"_lastModified":"2026-06-25T01:02:43.735Z"}
1
+ {"name":"zod","version":"4.3.5","type":"module","license":"MIT","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","homepage":"https://zod.dev","llms":"https://zod.dev/llms.txt","llmsFull":"https://zod.dev/llms-full.txt","mcpServer":"https://mcp.inkeep.com/zod/mcp","funding":"https://github.com/sponsors/colinhacks","sideEffects":false,"files":["src","**/*.js","**/*.mjs","**/*.cjs","**/*.d.ts","**/*.d.mts","**/*.d.cts","**/package.json"],"keywords":["typescript","schema","validation","type","inference"],"main":"./index.cjs","types":"./index.d.cts","module":"./index.js","zshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./mini":"./src/mini/index.ts","./locales":"./src/locales/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4-mini/index.ts","./v4/mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"conditions":{"@zod/source":"src"}},"exports":{"./package.json":"./package.json",".":{"@zod/source":"./src/index.ts","types":"./index.d.cts","import":"./index.js","require":"./index.cjs"},"./mini":{"@zod/source":"./src/mini/index.ts","types":"./mini/index.d.cts","import":"./mini/index.js","require":"./mini/index.cjs"},"./locales":{"@zod/source":"./src/locales/index.ts","types":"./locales/index.d.cts","import":"./locales/index.js","require":"./locales/index.cjs"},"./v3":{"@zod/source":"./src/v3/index.ts","types":"./v3/index.d.cts","import":"./v3/index.js","require":"./v3/index.cjs"},"./v4":{"@zod/source":"./src/v4/index.ts","types":"./v4/index.d.cts","import":"./v4/index.js","require":"./v4/index.cjs"},"./v4-mini":{"@zod/source":"./src/v4-mini/index.ts","types":"./v4-mini/index.d.cts","import":"./v4-mini/index.js","require":"./v4-mini/index.cjs"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./v4/mini/index.d.cts","import":"./v4/mini/index.js","require":"./v4/mini/index.cjs"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./v4/core/index.d.cts","import":"./v4/core/index.js","require":"./v4/core/index.cjs"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./v4/locales/index.d.cts","import":"./v4/locales/index.js","require":"./v4/locales/index.cjs"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./v4/locales/*","import":"./v4/locales/*","require":"./v4/locales/*"}},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"git clean -xdf . -e node_modules","build":"zshy --project tsconfig.build.json","postbuild":"tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","prepublishOnly":"tsx ../../scripts/check-versions.ts"},"_lastModified":"2026-06-29T01:53:31.900Z"}
@@ -13,7 +13,8 @@ export interface FlowSurfaceAuthoringValidationContext {
13
13
  applyBlueprintScriptAssets?: Record<string, any>;
14
14
  getCollection?: (dataSourceKey: string, collectionName: string) => any;
15
15
  getDefaultFieldGroups?: (dataSourceKey: string, collectionName: string) => any;
16
- findMenuGroupRoutesByTitle?: (title: string, transaction?: any) => Promise<any[]>;
16
+ findMenuGroupRoutesByTitle?: (title: string, transaction?: any, layoutUid?: string | string[]) => Promise<any[]>;
17
+ getUiLayoutTypeByUid?: (layoutUid: string, transaction?: any) => Promise<string | undefined>;
17
18
  transaction?: any;
18
19
  hostBlockType?: string;
19
20
  hostCollectionName?: string;
@@ -173,10 +173,17 @@ const GRID_CARD_ALLOWED_SETTINGS_KEYS = /* @__PURE__ */ new Set([
173
173
  const TABLE_ALLOWED_SETTINGS_KEYS = /* @__PURE__ */ new Set([...(0, import_configure_options.getConfigureOptionKeysForUse)("TableBlockModel"), "sort"]);
174
174
  const TABLE_INTERNAL_AUTHORING_KEYS = ["tableSettings", "defaultSorting", "stepParams"];
175
175
  const TABLE_SETTINGS_REPAIR_HINT = "Use public table settings keys such as settings.pageSize, settings.sorting, settings.dataScope, settings.density, settings.showRowNumbers, settings.treeTable, settings.dragSort, and settings.dragSortBy. Do not nest persisted tableSettings/defaultSorting/stepParams payloads.";
176
- const JS_BLOCK_ALLOWED_SETTINGS_KEYS = /* @__PURE__ */ new Set(["title", "description", "className", "code", "version"]);
176
+ const JS_BLOCK_ALLOWED_SETTINGS_KEYS = /* @__PURE__ */ new Set([
177
+ "title",
178
+ "description",
179
+ "className",
180
+ "showBlockCard",
181
+ "code",
182
+ "version"
183
+ ]);
177
184
  const JS_BLOCK_TOP_LEVEL_JS_KEYS = ["code", "version"];
178
185
  const JS_BLOCK_INTERNAL_AUTHORING_KEYS = ["props", "decoratorProps", "flowRegistry", "stepParams"];
179
- const JS_BLOCK_REPAIR_HINT = "This is a jsBlock payload shape problem. Repair this jsBlock using inline settings.code/settings.version, or applyBlueprint assets.scripts.<key>.code plus block.script. Do not change this block type to table, chart, actionPanel, gridCard, or another block type.";
186
+ const JS_BLOCK_REPAIR_HINT = "This is a jsBlock payload shape problem. Repair this jsBlock using inline settings.code/settings.version/settings.showBlockCard, or applyBlueprint assets.scripts.<key>.code plus block.script with optional settings.showBlockCard. Do not change this block type to table, chart, actionPanel, gridCard, or another block type.";
180
187
  const CHART_REPAIR_HINT = "This is a chart payload shape problem. Keep using chart and repair this chart using assets.charts.<key>.query/visual plus block.chart, or localized settings.query/settings.visual. Do not change this block type to table, jsBlock, actionPanel, gridCard, or another block type, and do not drop or defer the chart. KPI / summary numbers should use jsBlock; charts are for trends, distributions, rankings, and visual analysis.";
181
188
  const REPAIR_ALL_ERRORS_AGENT_INSTRUCTION = "If this response contains errors[], fix every listed error in one payload revision before retrying the same write. Do not fix only this error and immediately retry.";
182
189
  const JS_BLOCK_AGENT_INSTRUCTION = `${REPAIR_ALL_ERRORS_AGENT_INSTRUCTION} Do not skip, drop, defer, or replace this required jsBlock. Repair it as jsBlock.`;
@@ -518,10 +525,13 @@ function pushChartBadRequestAuthoringError(errors, error, fallbackPath) {
518
525
  });
519
526
  }
520
527
  async function collectNavigationGroupErrors(actionName, values, context, errors) {
521
- var _a;
528
+ var _a, _b;
522
529
  if (actionName !== "applyBlueprint" || (values == null ? void 0 : values.mode) !== "create" || !_.isPlainObject((_a = values == null ? void 0 : values.navigation) == null ? void 0 : _a.group)) {
523
530
  return;
524
531
  }
532
+ if (await isApplyBlueprintMobileCreateNavigation(values, context)) {
533
+ return;
534
+ }
525
535
  if (!_.isUndefined(values.navigation.group.routeId) || !context.findMenuGroupRoutesByTitle) {
526
536
  return;
527
537
  }
@@ -529,7 +539,8 @@ async function collectNavigationGroupErrors(actionName, values, context, errors)
529
539
  if (!groupTitle) {
530
540
  return;
531
541
  }
532
- const matchedRoutes = await context.findMenuGroupRoutesByTitle(groupTitle, context.transaction);
542
+ const layoutUid = String(((_b = values == null ? void 0 : values.navigation) == null ? void 0 : _b.layoutUid) || "").trim() || void 0;
543
+ const matchedRoutes = await context.findMenuGroupRoutesByTitle(groupTitle, context.transaction, layoutUid);
533
544
  const rootMatchedRoutes = filterRootMenuGroupRoutes(matchedRoutes);
534
545
  if (rootMatchedRoutes.length <= 1) {
535
546
  return;
@@ -546,15 +557,17 @@ async function collectNavigationGroupErrors(actionName, values, context, errors)
546
557
  });
547
558
  }
548
559
  async function collectNavigationIconErrors(actionName, values, context, errors) {
549
- var _a, _b, _c;
560
+ var _a, _b, _c, _d;
550
561
  if (actionName !== "applyBlueprint" || (values == null ? void 0 : values.mode) !== "create") {
551
562
  return;
552
563
  }
564
+ const isMobileCreateNavigation = await isApplyBlueprintMobileCreateNavigation(values, context);
553
565
  const group = _.isPlainObject((_a = values == null ? void 0 : values.navigation) == null ? void 0 : _a.group) ? values.navigation.group : null;
554
566
  const groupRouteId = String((group == null ? void 0 : group.routeId) || "").trim();
555
- if (group && !groupRouteId && group.hideInMenu !== true) {
567
+ const layoutUid = String(((_b = values == null ? void 0 : values.navigation) == null ? void 0 : _b.layoutUid) || "").trim() || void 0;
568
+ if (!isMobileCreateNavigation && group && !groupRouteId && group.hideInMenu !== true) {
556
569
  const groupIcon = String(group.icon || "").trim();
557
- if (!groupIcon && await shouldRequireNewNavigationGroupIcon(group, context)) {
570
+ if (!groupIcon && await shouldRequireNewNavigationGroupIcon(group, context, layoutUid)) {
558
571
  pushAuthoringError(errors, {
559
572
  path: "$.navigation.group.icon",
560
573
  ruleId: "navigation-icon-required",
@@ -573,7 +586,7 @@ async function collectNavigationIconErrors(actionName, values, context, errors)
573
586
  }
574
587
  });
575
588
  }
576
- } else if (group && String(group.icon || "").trim() && !isValidAntDesignIconName(group.icon)) {
589
+ } else if (!isMobileCreateNavigation && group && String(group.icon || "").trim() && !isValidAntDesignIconName(group.icon)) {
577
590
  pushAuthoringError(errors, {
578
591
  path: "$.navigation.group.icon",
579
592
  ruleId: "navigation-icon-unknown",
@@ -583,7 +596,7 @@ async function collectNavigationIconErrors(actionName, values, context, errors)
583
596
  }
584
597
  });
585
598
  }
586
- const item = _.isPlainObject((_b = values == null ? void 0 : values.navigation) == null ? void 0 : _b.item) ? values.navigation.item : null;
599
+ const item = _.isPlainObject((_c = values == null ? void 0 : values.navigation) == null ? void 0 : _c.item) ? values.navigation.item : null;
587
600
  const itemIcon = String((item == null ? void 0 : item.icon) || "").trim();
588
601
  if (itemIcon && !isValidAntDesignIconName(itemIcon)) {
589
602
  pushAuthoringError(errors, {
@@ -595,7 +608,7 @@ async function collectNavigationIconErrors(actionName, values, context, errors)
595
608
  }
596
609
  });
597
610
  }
598
- const pageIcon = String(((_c = values == null ? void 0 : values.page) == null ? void 0 : _c.icon) || "").trim();
611
+ const pageIcon = String(((_d = values == null ? void 0 : values.page) == null ? void 0 : _d.icon) || "").trim();
599
612
  if (pageIcon && !isValidAntDesignIconName(pageIcon)) {
600
613
  pushAuthoringError(errors, {
601
614
  path: "$.page.icon",
@@ -607,12 +620,20 @@ async function collectNavigationIconErrors(actionName, values, context, errors)
607
620
  });
608
621
  }
609
622
  }
610
- async function shouldRequireNewNavigationGroupIcon(group, context) {
623
+ async function isApplyBlueprintMobileCreateNavigation(values, context) {
624
+ var _a;
625
+ const layoutUid = String(((_a = values == null ? void 0 : values.navigation) == null ? void 0 : _a.layoutUid) || "").trim();
626
+ if (!layoutUid || !context.getUiLayoutTypeByUid) {
627
+ return false;
628
+ }
629
+ return await context.getUiLayoutTypeByUid(layoutUid, context.transaction) === "mobile";
630
+ }
631
+ async function shouldRequireNewNavigationGroupIcon(group, context, layoutUid) {
611
632
  const groupTitle = String((group == null ? void 0 : group.title) || "").trim();
612
633
  if (!groupTitle || !context.findMenuGroupRoutesByTitle) {
613
634
  return true;
614
635
  }
615
- const matchedRoutes = await context.findMenuGroupRoutesByTitle(groupTitle, context.transaction);
636
+ const matchedRoutes = await context.findMenuGroupRoutesByTitle(groupTitle, context.transaction, layoutUid);
616
637
  return filterRootMenuGroupRoutes(matchedRoutes).length === 0;
617
638
  }
618
639
  function filterRootMenuGroupRoutes(routes) {
@@ -737,6 +758,7 @@ function withJsBlockRepairHint(details = {}) {
737
758
  inlineBlock: {
738
759
  type: "jsBlock",
739
760
  settings: {
761
+ showBlockCard: true,
740
762
  code: 'ctx.render("Replace this with the required rendered UI");'
741
763
  }
742
764
  },
@@ -750,7 +772,10 @@ function withJsBlockRepairHint(details = {}) {
750
772
  },
751
773
  block: {
752
774
  type: "jsBlock",
753
- script: "scriptKey"
775
+ script: "scriptKey",
776
+ settings: {
777
+ showBlockCard: true
778
+ }
754
779
  }
755
780
  }
756
781
  },
@@ -4087,7 +4112,7 @@ function collectJsBlockPublicContractErrors(block, path, errors, context) {
4087
4112
  pushAuthoringError(errors, {
4088
4113
  path: `${path}.${key}`,
4089
4114
  ruleId: `jsBlock-top-level-${key}-unsupported`,
4090
- message: `flowSurfaces authoring ${path}.${key} is not accepted on public jsBlock blocks; use ${path}.settings.code and ${path}.settings.version for inline JS code`,
4115
+ message: `flowSurfaces authoring ${path}.${key} is not accepted on public jsBlock blocks; use ${path}.settings.code, ${path}.settings.version, and ${path}.settings.showBlockCard for public JS block settings`,
4091
4116
  details: withJsBlockRepairHint({ key })
4092
4117
  });
4093
4118
  });
@@ -4098,7 +4123,7 @@ function collectJsBlockPublicContractErrors(block, path, errors, context) {
4098
4123
  pushAuthoringError(errors, {
4099
4124
  path: `${path}.${key}`,
4100
4125
  ruleId: key === "stepParams" ? "jsBlock-stepParams-unsupported" : "jsBlock-internal-field-unsupported",
4101
- message: `flowSurfaces authoring ${path}.${key} is not accepted on public jsBlock blocks; use ${path}.settings.code and ${path}.settings.version instead of internal persisted fields`,
4126
+ message: `flowSurfaces authoring ${path}.${key} is not accepted on public jsBlock blocks; use ${path}.settings.code, ${path}.settings.version, and ${path}.settings.showBlockCard instead of internal persisted fields`,
4102
4127
  details: withJsBlockRepairHint({
4103
4128
  key
4104
4129
  })
@@ -4121,7 +4146,7 @@ function collectJsBlockPublicContractErrors(block, path, errors, context) {
4121
4146
  pushAuthoringError(errors, {
4122
4147
  path: `${path}.settings.${key}`,
4123
4148
  ruleId: "jsBlock-settings-unsupported-key",
4124
- message: `flowSurfaces authoring ${path}.settings.${key} is not part of the public jsBlock contract; use ${path}.settings.code and ${path}.settings.version for inline JS code`,
4149
+ message: `flowSurfaces authoring ${path}.settings.${key} is not part of the public jsBlock contract; use ${path}.settings.code, ${path}.settings.version, and ${path}.settings.showBlockCard for public JS block settings`,
4125
4150
  details: withJsBlockRepairHint({
4126
4151
  key,
4127
4152
  allowedKeys: Array.from(JS_BLOCK_ALLOWED_SETTINGS_KEYS)
@@ -4163,7 +4188,7 @@ function collectJsBlockConfigurePublicContractErrors(changes, path, errors) {
4163
4188
  pushAuthoringError(errors, {
4164
4189
  path: `${path}.${key}`,
4165
4190
  ruleId: key === "stepParams" ? "jsBlock-stepParams-unsupported" : "jsBlock-internal-field-unsupported",
4166
- message: `flowSurfaces authoring ${path}.${key} is not accepted on public jsBlock configure changes; use ${path}.code and ${path}.version instead of internal persisted fields`,
4191
+ message: `flowSurfaces authoring ${path}.${key} is not accepted on public jsBlock configure changes; use ${path}.code, ${path}.version, and ${path}.showBlockCard instead of internal persisted fields`,
4167
4192
  details: withJsBlockRepairHint({
4168
4193
  key
4169
4194
  })
@@ -4196,7 +4221,7 @@ function collectJsBlockConfigurePublicContractErrors(changes, path, errors) {
4196
4221
  pushAuthoringError(errors, {
4197
4222
  path: `${path}.settings`,
4198
4223
  ruleId: "jsBlock-settings-unsupported-key",
4199
- message: `flowSurfaces authoring ${path}.settings is not part of the public jsBlock configure contract; use ${path}.code and ${path}.version`,
4224
+ message: `flowSurfaces authoring ${path}.settings is not part of the public jsBlock configure contract; use ${path}.code, ${path}.version, and ${path}.showBlockCard`,
4200
4225
  details: withJsBlockRepairHint()
4201
4226
  });
4202
4227
  return;
@@ -83,19 +83,21 @@ function buildTabSelectorFromUid(uid) {
83
83
  };
84
84
  }
85
85
  function compileCreatePlan(document, getCollection) {
86
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
86
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C;
87
87
  const steps = [];
88
88
  const chrome = buildPageChrome(document);
89
- if (import_lodash.default.isPlainObject((_a = document.navigation) == null ? void 0 : _a.group) && import_lodash.default.isUndefined(document.navigation.group.routeId)) {
89
+ const layoutUid = (_a = document.navigation) == null ? void 0 : _a.layoutUid;
90
+ if (import_lodash.default.isPlainObject((_b = document.navigation) == null ? void 0 : _b.group) && import_lodash.default.isUndefined(document.navigation.group.routeId)) {
90
91
  steps.push({
91
92
  id: CREATE_MENU_GROUP_STEP_ID,
92
93
  action: "createMenu",
93
94
  values: (0, import_service_utils.buildDefinedPayload)({
94
- title: (_c = (_b = document.navigation) == null ? void 0 : _b.group) == null ? void 0 : _c.title,
95
+ layoutUid,
96
+ title: (_d = (_c = document.navigation) == null ? void 0 : _c.group) == null ? void 0 : _d.title,
95
97
  type: "group",
96
- icon: (_e = (_d = document.navigation) == null ? void 0 : _d.group) == null ? void 0 : _e.icon,
97
- tooltip: (_g = (_f = document.navigation) == null ? void 0 : _f.group) == null ? void 0 : _g.tooltip,
98
- hideInMenu: (_i = (_h = document.navigation) == null ? void 0 : _h.group) == null ? void 0 : _i.hideInMenu
98
+ icon: (_f = (_e = document.navigation) == null ? void 0 : _e.group) == null ? void 0 : _f.icon,
99
+ tooltip: (_h = (_g = document.navigation) == null ? void 0 : _g.group) == null ? void 0 : _h.tooltip,
100
+ hideInMenu: (_j = (_i = document.navigation) == null ? void 0 : _i.group) == null ? void 0 : _j.hideInMenu
99
101
  })
100
102
  });
101
103
  }
@@ -103,25 +105,27 @@ function compileCreatePlan(document, getCollection) {
103
105
  id: CREATE_MENU_ITEM_STEP_ID,
104
106
  action: "createMenu",
105
107
  values: (0, import_service_utils.buildDefinedPayload)({
106
- title: ((_k = (_j = document.navigation) == null ? void 0 : _j.item) == null ? void 0 : _k.title) || chrome.pageTitle,
108
+ layoutUid,
109
+ title: ((_l = (_k = document.navigation) == null ? void 0 : _k.item) == null ? void 0 : _l.title) || chrome.pageTitle,
107
110
  type: "item",
108
- icon: ((_m = (_l = document.navigation) == null ? void 0 : _l.item) == null ? void 0 : _m.icon) || ((_n = document.page) == null ? void 0 : _n.icon) || "FileOutlined",
109
- tooltip: (_p = (_o = document.navigation) == null ? void 0 : _o.item) == null ? void 0 : _p.tooltip,
110
- hideInMenu: (_r = (_q = document.navigation) == null ? void 0 : _q.item) == null ? void 0 : _r.hideInMenu,
111
- parentMenuRouteId: import_lodash.default.isUndefined((_t = (_s = document.navigation) == null ? void 0 : _s.group) == null ? void 0 : _t.routeId) ? ((_v = (_u = document.navigation) == null ? void 0 : _u.group) == null ? void 0 : _v.title) ? { step: CREATE_MENU_GROUP_STEP_ID, path: "routeId" } : void 0 : (_x = (_w = document.navigation) == null ? void 0 : _w.group) == null ? void 0 : _x.routeId
111
+ icon: ((_n = (_m = document.navigation) == null ? void 0 : _m.item) == null ? void 0 : _n.icon) || ((_o = document.page) == null ? void 0 : _o.icon) || "FileOutlined",
112
+ tooltip: (_q = (_p = document.navigation) == null ? void 0 : _p.item) == null ? void 0 : _q.tooltip,
113
+ hideInMenu: (_s = (_r = document.navigation) == null ? void 0 : _r.item) == null ? void 0 : _s.hideInMenu,
114
+ parentMenuRouteId: import_lodash.default.isUndefined((_u = (_t = document.navigation) == null ? void 0 : _t.group) == null ? void 0 : _u.routeId) ? ((_w = (_v = document.navigation) == null ? void 0 : _v.group) == null ? void 0 : _w.title) ? { step: CREATE_MENU_GROUP_STEP_ID, path: "routeId" } : void 0 : (_y = (_x = document.navigation) == null ? void 0 : _x.group) == null ? void 0 : _y.routeId
112
115
  })
113
116
  });
114
117
  steps.push({
115
118
  id: CREATE_PAGE_STEP_ID,
116
119
  action: "createPage",
117
120
  values: (0, import_service_utils.buildDefinedPayload)({
121
+ layoutUid,
118
122
  menuRouteId: { step: CREATE_MENU_ITEM_STEP_ID, path: "routeId" },
119
123
  title: chrome.pageTitle,
120
- icon: (_y = document.page) == null ? void 0 : _y.icon,
121
- documentTitle: (_z = document.page) == null ? void 0 : _z.documentTitle,
122
- enableHeader: (_A = document.page) == null ? void 0 : _A.enableHeader,
124
+ icon: (_z = document.page) == null ? void 0 : _z.icon,
125
+ documentTitle: (_A = document.page) == null ? void 0 : _A.documentTitle,
126
+ enableHeader: (_B = document.page) == null ? void 0 : _B.enableHeader,
123
127
  enableTabs: chrome.enableTabs,
124
- displayTitle: (_B = document.page) == null ? void 0 : _B.displayTitle,
128
+ displayTitle: (_C = document.page) == null ? void 0 : _C.displayTitle,
125
129
  tabTitle: chrome.tabTitle,
126
130
  tabIcon: chrome.tabIcon,
127
131
  tabDocumentTitle: chrome.tabDocumentTitle,
@@ -294,7 +294,7 @@ const EXPORTED_BLOCK_CARD_SETTING_PATHS = [
294
294
  ];
295
295
  const EXPORTED_SIMPLE_BLOCK_SETTING_PATHS_BY_TYPE = {
296
296
  markdown: ["editMarkdown.content"],
297
- jsBlock: ["runJs.code", "runJs.version"],
297
+ jsBlock: ["runJs.code", "runJs.version", "showBlockCard.showBlockCard"],
298
298
  iframe: ["editIframe"]
299
299
  };
300
300
  const EXPORTED_BLOCK_STEP_PARAM_PATHS_BY_GROUP = {
@@ -1040,10 +1040,15 @@ function exportSimpleBlockSettings(block, type) {
1040
1040
  }
1041
1041
  if (type === "jsBlock") {
1042
1042
  const runJs = clonePlainObject(getByPath(block, ["stepParams", "jsSettings", "runJs"]));
1043
+ const showBlockCard = getByPath(block, ["stepParams", "jsSettings", "showBlockCard", "showBlockCard"]);
1044
+ const settings = buildDefinedPayload({
1045
+ ...runJs || {},
1046
+ showBlockCard: showBlockCard === false ? false : void 0
1047
+ });
1043
1048
  return buildDefinedPayload({
1044
1049
  title: readString((_c = block.decoratorProps) == null ? void 0 : _c.title),
1045
1050
  description: readString((_d = block.decoratorProps) == null ? void 0 : _d.description),
1046
- settings: runJs
1051
+ settings: Object.keys(settings).length ? settings : void 0
1047
1052
  });
1048
1053
  }
1049
1054
  if (type === "iframe") {
@@ -132,8 +132,9 @@ function normalizeNavigation(input) {
132
132
  return void 0;
133
133
  }
134
134
  (0, import_private_utils.assertPlainObject)(input, "flowSurfaces applyBlueprint navigation");
135
- (0, import_private_utils.assertOnlyAllowedKeys)(input, "flowSurfaces applyBlueprint navigation", ["group", "item"]);
135
+ (0, import_private_utils.assertOnlyAllowedKeys)(input, "flowSurfaces applyBlueprint navigation", ["layoutUid", "group", "item"]);
136
136
  const normalized = (0, import_service_utils.buildDefinedPayload)({
137
+ layoutUid: (0, import_private_utils.readOptionalString)(input.layoutUid),
137
138
  group: import_lodash.default.isUndefined(input.group) ? void 0 : (() => {
138
139
  (0, import_private_utils.assertPlainObject)(input.group, "flowSurfaces applyBlueprint navigation.group");
139
140
  (0, import_private_utils.assertOnlyAllowedKeys)(input.group, "flowSurfaces applyBlueprint navigation.group", [
@@ -20,6 +20,7 @@ export type FlowSurfaceApplyBlueprintNavigationGroup = {
20
20
  hideInMenu?: boolean;
21
21
  };
22
22
  export type FlowSurfaceApplyBlueprintNavigation = {
23
+ layoutUid?: string;
23
24
  group?: FlowSurfaceApplyBlueprintNavigationGroup;
24
25
  item?: {
25
26
  title?: string;
@@ -819,12 +819,16 @@ function buildActionDefaults(options) {
819
819
  (approvalDefaults == null ? void 0 : approvalDefaults.props) || {}
820
820
  );
821
821
  const normalizedProps = applyContainerActionStyle(props, options.containerUse);
822
+ const buttonGeneralProps = applyCompactRecordActionButtonDefaults(
823
+ pickButtonGeneralProps(normalizedProps),
824
+ options.containerUse
825
+ );
822
826
  const stepParams = import_lodash.default.merge(
823
827
  {},
824
828
  import_lodash.default.cloneDeep((approvalDefaults == null ? void 0 : approvalDefaults.stepParams) || {}),
825
829
  readonlyCalendarAction ? {} : {
826
830
  buttonSettings: {
827
- general: pickButtonGeneralProps(normalizedProps)
831
+ general: buttonGeneralProps
828
832
  }
829
833
  }
830
834
  );
@@ -1135,10 +1139,26 @@ function inferActionDefaultProps(use, scope) {
1135
1139
  }
1136
1140
  );
1137
1141
  }
1142
+ const COMPACT_RECORD_ACTION_CONTAINER_USES = /* @__PURE__ */ new Set([
1143
+ "TableActionsColumnModel",
1144
+ "ListItemModel",
1145
+ "GridCardItemModel",
1146
+ "CommentItemModel"
1147
+ ]);
1148
+ function isCompactRecordActionContainerUse(containerUse) {
1149
+ return COMPACT_RECORD_ACTION_CONTAINER_USES.has(String(containerUse || "").trim());
1150
+ }
1151
+ function applyCompactRecordActionButtonDefaults(props, containerUse) {
1152
+ if (isCompactRecordActionContainerUse(containerUse) && props.icon === null && !Object.prototype.hasOwnProperty.call(props, "iconOnly")) {
1153
+ return {
1154
+ ...props,
1155
+ iconOnly: false
1156
+ };
1157
+ }
1158
+ return props;
1159
+ }
1138
1160
  function applyContainerActionStyle(props, containerUse) {
1139
- if (["TableActionsColumnModel", "ListItemModel", "GridCardItemModel", "CommentItemModel"].includes(
1140
- String(containerUse || "").trim()
1141
- )) {
1161
+ if (isCompactRecordActionContainerUse(containerUse)) {
1142
1162
  return {
1143
1163
  ...props,
1144
1164
  type: "link",
@@ -246,6 +246,15 @@ const RUN_JS_SETTINGS_GROUP = {
246
246
  "runJs.version": STRING_SCHEMA
247
247
  }
248
248
  };
249
+ const JS_BLOCK_SETTINGS_GROUP = {
250
+ allowedPaths: [...RUN_JS_ALLOWED_PATHS, "showBlockCard.showBlockCard"],
251
+ mergeStrategy: "deep",
252
+ eventBindingSteps: ["runJs"],
253
+ pathSchemas: {
254
+ ...RUN_JS_SETTINGS_GROUP.pathSchemas,
255
+ "showBlockCard.showBlockCard": BOOLEAN_SCHEMA
256
+ }
257
+ };
249
258
  const FIELD_SETTINGS_INIT_GROUP = {
250
259
  allowedPaths: [
251
260
  "init.dataSourceKey",
@@ -1380,7 +1389,7 @@ const JS_BLOCK_CONTRACT = createContract({
1380
1389
  }
1381
1390
  });
1382
1391
  JS_BLOCK_CONTRACT.domains.stepParams = groupedDomain({
1383
- jsSettings: RUN_JS_SETTINGS_GROUP
1392
+ jsSettings: JS_BLOCK_SETTINGS_GROUP
1384
1393
  });
1385
1394
  const MAP_BLOCK_CONTRACT = createContract({
1386
1395
  editableDomains: ["props", "decoratorProps", "stepParams", "flowRegistry"],
@@ -413,6 +413,7 @@ const JS_BLOCK_OPTIONS = {
413
413
  title: stringOption("Title", { example: "Runtime Banner" }),
414
414
  description: stringOption("Description", { example: "Custom JS block" }),
415
415
  className: stringOption("className", { example: "users-banner" }),
416
+ showBlockCard: booleanOption("Whether to show the outer block card", { default: true, example: true }),
416
417
  code: JS_CODE,
417
418
  version: JS_VERSION
418
419
  };
@@ -380,7 +380,7 @@ type SelectFlowSurfaceActionNames<TFlag extends keyof FlowSurfaceActionDefinitio
380
380
  [K in FlowSurfacesActionName]: (typeof FLOW_SURFACE_ACTION_DEFINITIONS)[K][TFlag] extends true ? K : never;
381
381
  }[FlowSurfacesActionName];
382
382
  type FlowSurfaceMutateActionName = SelectFlowSurfaceActionNames<'mutate'>;
383
- export declare const FLOW_SURFACES_ACTION_NAMES: ("setFieldValueRules" | "setBlockLinkageRules" | "setFieldLinkageRules" | "setActionLinkageRules" | "context" | "get" | "configure" | "createPage" | "addTab" | "addPopupTab" | "addBlock" | "addField" | "addAction" | "addRecordAction" | "compose" | "createMenu" | "catalog" | "describeSurface" | "exportBlueprint" | "getReactionMeta" | "applyBlueprint" | "applyApprovalBlueprint" | "listTemplates" | "getTemplate" | "saveTemplate" | "updateTemplate" | "destroyTemplate" | "convertTemplateToCopy" | "updateMenu" | "destroyPage" | "updateTab" | "moveTab" | "removeTab" | "updatePopupTab" | "movePopupTab" | "removePopupTab" | "addBlocks" | "addFields" | "addActions" | "addRecordActions" | "updateSettings" | "getEventFlowMeta" | "addEventFlow" | "setEventFlow" | "removeEventFlow" | "setEventFlows" | "setLayout" | "moveNode" | "removeNode" | "mutate" | "apply")[];
383
+ export declare const FLOW_SURFACES_ACTION_NAMES: ("setFieldValueRules" | "setBlockLinkageRules" | "setFieldLinkageRules" | "setActionLinkageRules" | "context" | "get" | "configure" | "apply" | "createPage" | "addTab" | "addPopupTab" | "addBlock" | "addField" | "addAction" | "addRecordAction" | "compose" | "createMenu" | "catalog" | "describeSurface" | "exportBlueprint" | "getReactionMeta" | "applyBlueprint" | "applyApprovalBlueprint" | "listTemplates" | "getTemplate" | "saveTemplate" | "updateTemplate" | "destroyTemplate" | "convertTemplateToCopy" | "updateMenu" | "destroyPage" | "updateTab" | "moveTab" | "removeTab" | "updatePopupTab" | "movePopupTab" | "removePopupTab" | "addBlocks" | "addFields" | "addActions" | "addRecordActions" | "updateSettings" | "getEventFlowMeta" | "addEventFlow" | "setEventFlow" | "removeEventFlow" | "setEventFlows" | "setLayout" | "moveNode" | "removeNode" | "mutate")[];
384
384
  export declare const FLOW_SURFACES_READ_ACTION_NAMES: SelectFlowSurfaceActionNames<"read">[];
385
385
  export declare const FLOW_SURFACE_MUTATE_OP_TYPES: FlowSurfaceMutateActionName[];
386
- export declare const FLOW_SURFACES_ACTION_METHODS: Record<"setFieldValueRules" | "setBlockLinkageRules" | "setFieldLinkageRules" | "setActionLinkageRules" | "context" | "get" | "configure" | "createPage" | "addTab" | "addPopupTab" | "addBlock" | "addField" | "addAction" | "addRecordAction" | "compose" | "createMenu" | "catalog" | "describeSurface" | "exportBlueprint" | "getReactionMeta" | "applyBlueprint" | "applyApprovalBlueprint" | "listTemplates" | "getTemplate" | "saveTemplate" | "updateTemplate" | "destroyTemplate" | "convertTemplateToCopy" | "updateMenu" | "destroyPage" | "updateTab" | "moveTab" | "removeTab" | "updatePopupTab" | "movePopupTab" | "removePopupTab" | "addBlocks" | "addFields" | "addActions" | "addRecordActions" | "updateSettings" | "getEventFlowMeta" | "addEventFlow" | "setEventFlow" | "removeEventFlow" | "setEventFlows" | "setLayout" | "moveNode" | "removeNode" | "mutate" | "apply", FlowSurfaceActionMethod>;
386
+ export declare const FLOW_SURFACES_ACTION_METHODS: Record<"setFieldValueRules" | "setBlockLinkageRules" | "setFieldLinkageRules" | "setActionLinkageRules" | "context" | "get" | "configure" | "apply" | "createPage" | "addTab" | "addPopupTab" | "addBlock" | "addField" | "addAction" | "addRecordAction" | "compose" | "createMenu" | "catalog" | "describeSurface" | "exportBlueprint" | "getReactionMeta" | "applyBlueprint" | "applyApprovalBlueprint" | "listTemplates" | "getTemplate" | "saveTemplate" | "updateTemplate" | "destroyTemplate" | "convertTemplateToCopy" | "updateMenu" | "destroyPage" | "updateTab" | "moveTab" | "removeTab" | "updatePopupTab" | "movePopupTab" | "removePopupTab" | "addBlocks" | "addFields" | "addActions" | "addRecordActions" | "updateSettings" | "getEventFlowMeta" | "addEventFlow" | "setEventFlow" | "removeEventFlow" | "setEventFlows" | "setLayout" | "moveNode" | "removeNode" | "mutate", FlowSurfaceActionMethod>;
@@ -86,7 +86,16 @@ export declare class FlowSurfacesService {
86
86
  private normalizeDesktopRouteRelationId;
87
87
  private readDesktopRouteUiLayoutUids;
88
88
  private resolveDefaultDesktopRouteUiLayoutUids;
89
+ private findDesktopRouteUiLayoutByUid;
90
+ private getDesktopRouteUiLayoutTypeByUid;
91
+ private isMobileDesktopRouteUiLayoutUid;
89
92
  private resolveInheritedDesktopRouteUiLayoutUids;
93
+ private normalizeExplicitDesktopRouteLayoutUid;
94
+ private normalizeDesktopRouteLayoutUidFilter;
95
+ private resolveDesktopRouteLayoutUidFilter;
96
+ private assertEnabledDesktopRouteUiLayoutUid;
97
+ private assertDesktopRouteBelongsToUiLayout;
98
+ private resolveRequestedDesktopRouteUiLayoutUids;
90
99
  private setDesktopRouteUiLayouts;
91
100
  private attachDesktopRouteUiLayoutsToRouteAndChildren;
92
101
  private ensureDesktopRouteUiLayouts;
@@ -213,6 +222,8 @@ export declare class FlowSurfacesService {
213
222
  private dispatchPlanOnlyAction;
214
223
  private resolveApplyBlueprintReplaceTargetInfo;
215
224
  private resolveApplyBlueprintCreateNavigationGroup;
225
+ private normalizeApplyBlueprintCreateMobileNavigation;
226
+ private assertApplyBlueprintCreateNavigationLayout;
216
227
  private resolveApplyBlueprintCreatePageIdentity;
217
228
  private prepareApplyBlueprintRequest;
218
229
  private prevalidateApplyBlueprintChartAssets;