@retailcrm/embed-ui 0.9.27 → 0.9.29

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/CHANGELOG.md CHANGED
@@ -1,6 +1,17 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## [0.9.29](https://github.com/retailcrm/embed-ui/compare/v0.9.28...v0.9.29) (2026-06-10)
5
+
6
+ ### Bug Fixes
7
+
8
+ * **v1-components:** UiButton link hover styles preserved ([3463e58](https://github.com/retailcrm/embed-ui/commit/3463e58fa78201da48262f937ac78556a989f155))
9
+ ## [0.9.28](https://github.com/retailcrm/embed-ui/compare/v0.9.27...v0.9.28) (2026-06-05)
10
+
11
+ ### Features
12
+
13
+ * Before route leave host hook forwarded ([106f4ce](https://github.com/retailcrm/embed-ui/commit/106f4ce4f2089142929e2055dbb317722b6ba317))
14
+ * **v1-types:** Before route leave host hook added ([438913c](https://github.com/retailcrm/embed-ui/commit/438913ce4fd1b3324c65efb493d8761ac09000ad))
4
15
  ## [0.9.27](https://github.com/retailcrm/embed-ui/compare/v0.9.26...v0.9.27) (2026-06-04)
5
16
 
6
17
  ### Bug Fixes
package/README.md CHANGED
@@ -83,16 +83,28 @@ npx @retailcrm/embed-ui init ./web --cwd ./my-project --package-manager npm
83
83
  - `--version 0.9.21` — использовать указанную версию пакетов вместо версии запущенного CLI.
84
84
  - `--exact` — записывать точные версии вместо диапазонов.
85
85
  - `--packages embed-ui,components,contexts,types,endpoint` — явно выбрать пакеты для установки и настройки.
86
+ - `--with components,endpoint` — добавить опубликованные пакеты к стандартному набору `init`.
87
+ - `--package-manager yarn|npm|pnpm|bun` — явно выбрать package manager для установки.
88
+ - `--src-dir ./frontend` — задать frontend source root относительно корня проекта.
89
+ - `--dirs endpoint,pages,widgets,shared,i18n` — задать набор стартовых каталогов; дополнительно поддерживаются `src` и `tests`.
90
+ - `--no-dirs` — не создавать стартовые каталоги.
91
+ - `--template order-card` — выбрать стартовый шаблон; сейчас поддерживается `order-card`.
92
+ - `--page-code settings` — задать код стартовой embedded-страницы.
93
+ - `--widget-target order/card:common.after` — задать стартовый target виджета.
94
+ - `--force` — включить общий force-режим для управляемых файлов, hook-команд и install.
86
95
  - `--force-deps` — заменить несовместимые версии зависимостей.
87
96
  - `--fix-sections` — перенести зависимости в ожидаемые секции `dependencies`/`devDependencies`.
88
97
  - `--force-files` — перезаписать генерируемые стартовые файлы.
89
98
  - `--no-configs` — не создавать `tsconfig.json`, `vite.config.ts`, `eslint.config.js` и `env.d.ts`.
90
99
  - `--no-template` — не создавать стартовые Vue-файлы и `extensionrc.json`.
91
100
  - `--no-agents` — не создавать и не дополнять `AGENTS.md`.
101
+ - `--force-agents` — обновить управляемую секцию `AGENTS.md` и прокинуть `--force` в package-level agent hooks.
102
+ - `--agents-only` — установить только agent-инструкции, без изменения зависимостей, шаблонов, skills и MCP.
92
103
  - `--no-skills` — не создавать и не обновлять project-level skills в `.agents/skills/*`.
93
104
  - `--force-skills` — обновить уже существующие управляемые project-level skills.
94
105
  - `--skills-only` — установить только project-level skills, без изменения зависимостей, шаблонов и `AGENTS.md`.
95
106
  - `--no-mcp` — не добавлять MCP-настройки пакетов.
107
+ - `--force-mcp` — прокинуть `--force` в package-level MCP config hooks.
96
108
  - `--mcp-client-configs codex,cursor,junie,vscode` — дополнительно создать project-level конфиги поддерживаемых AI-клиентов.
97
109
  - `--git` — выполнить `git init` в корне проекта, если каталог еще не является Git-репозиторием.
98
110
 
package/bin/embed-ui.mjs CHANGED
@@ -25,18 +25,32 @@ Options:
25
25
  --dry-run Show changes without writing package.json
26
26
  --add Add selected embed-ui packages into one package.json
27
27
  --packages <list> Comma-separated package ids or names for --add/init
28
+ --with <list> Additional published package ids or names for init
28
29
  --cwd <path> Project working directory for init
29
30
  --package-manager Package manager for init installs
31
+ --dirs <list> Comma-separated starter directory presets for init
32
+ --src-dir <path> Frontend source root relative to cwd
33
+ --template <name> Starter template name
34
+ --page-code <code> Starter embedded page code
35
+ --widget-target <target> Starter widget target
30
36
  --interactive Ask init questions with TTY selection prompts
31
37
  --verbose Print detailed init change lists
32
38
  --no-install Do not run package manager install in init mode
33
39
  --no-configs Do not create root TypeScript, Vite, ESLint and env config files
40
+ --no-dirs Do not create starter directories in init mode
41
+ --no-template Do not create starter template files in init mode
42
+ --force Force managed init writes, hooks, and install
34
43
  --force-deps Replace incompatible existing init dependencies
35
44
  --fix-sections Move init dependencies to expected package.json sections
45
+ --force-files Overwrite generated starter files in init mode
36
46
  --no-agents Do not create or update AGENTS.md in init mode
47
+ --force-agents Force AGENTS.md section and package agent hook updates
48
+ --agents-only Install only project-level agent instructions
37
49
  --no-skills Do not create or update .agents/skills in init mode
50
+ --force-skills Force project-level skill hook updates
38
51
  --skills-only Install only project-level skills
39
52
  --no-mcp Do not add package MCP instructions in init mode
53
+ --force-mcp Force package MCP config hook updates
40
54
  --mcp-client-configs Comma-separated project-level MCP client configs to create (codex,cursor,junie,vscode)
41
55
  --git Initialize Git repository in init mode when cwd is not a Git work tree
42
56
  -h, --help Show this help
package/dist/index.cjs CHANGED
@@ -57,6 +57,9 @@ const useHost = () => {
57
57
  },
58
58
  pushQuery(query, options = void 0) {
59
59
  return options ? endpoint.call.pushQuery(query, options) : endpoint.call.pushQuery(query);
60
+ },
61
+ onBeforeRouteLeave(hook) {
62
+ return endpoint.call.onBeforeRouteLeave(hook);
60
63
  }
61
64
  };
62
65
  };
package/dist/index.mjs CHANGED
@@ -56,6 +56,9 @@ const useHost = () => {
56
56
  },
57
57
  pushQuery(query, options = void 0) {
58
58
  return options ? endpoint.call.pushQuery(query, options) : endpoint.call.pushQuery(query);
59
+ },
60
+ onBeforeRouteLeave(hook) {
61
+ return endpoint.call.onBeforeRouteLeave(hook);
59
62
  }
60
63
  };
61
64
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.9.27",
4
+ "version": "0.9.29",
5
5
  "description": "API and components for creating RetailCRM UI extensions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -55,12 +55,12 @@
55
55
  "@floating-ui/dom": "^1.6.13",
56
56
  "@inquirer/prompts": "^8.4.3",
57
57
  "@omnicajs/symfony-router": "^1.0.0",
58
- "@omnicajs/vue-remote": "^0.2.24",
58
+ "@omnicajs/vue-remote": "^0.2.26",
59
59
  "@remote-ui/rpc": "^1.4.5",
60
- "@retailcrm/embed-ui-v1-components": "^0.9.27",
61
- "@retailcrm/embed-ui-v1-contexts": "^0.9.27",
62
- "@retailcrm/embed-ui-v1-endpoint": "^0.9.27",
63
- "@retailcrm/embed-ui-v1-types": "^0.9.27",
60
+ "@retailcrm/embed-ui-v1-components": "^0.9.29",
61
+ "@retailcrm/embed-ui-v1-contexts": "^0.9.29",
62
+ "@retailcrm/embed-ui-v1-endpoint": "^0.9.29",
63
+ "@retailcrm/embed-ui-v1-types": "^0.9.29",
64
64
  "yargs": "^17.7.2"
65
65
  },
66
66
  "devDependencies": {
@@ -69,7 +69,7 @@
69
69
  "@modulify/git-toolkit": "^0.0.2",
70
70
  "@modulify/pkg": "^1.0.1",
71
71
  "@omnicajs/eslint-plugin-dependencies": "^0.0.2",
72
- "@retailcrm/embed-ui-v1-testing": "^0.9.27",
72
+ "@retailcrm/embed-ui-v1-testing": "^0.9.29",
73
73
  "@types/git-semver-tags": "^7.0.0",
74
74
  "@types/node": "^22.19.2",
75
75
  "@types/semver": "^7.7.1",