Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,24 @@ jobs:
if: ${{ inputs.prerelease != 'none' }}
run: yes | npx tsx scripts/release.ts -p ${{ inputs.prerelease }}

- name: Ensure stable release is running from master
if: ${{ inputs.prerelease == 'none' }}
run: |
if [ "${{ github.ref_name }}" != "master" ]; then
echo "Stable release is allowed only from master. Current ref: ${{ github.ref_name }}"
exit 1
fi

- name: Run release
if: ${{ inputs.prerelease == 'none' }}
run: |
echo "YARN_ENABLE_IMMUTABLE_INSTALLS=false" >> "$GITHUB_ENV"
yes | npx tsx scripts/release.ts

- name: Push tags to repository
- name: Push current branch with tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push --follow-tags origin master
run: git push --follow-tags origin HEAD:${{ github.ref_name }}

- name: Create .npmrc
run: |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog


## [0.9.10-alpha.1](https://github.com/retailcrm/embed-ui/compare/v0.9.9...v0.9.10-alpha.1) (2026-02-17)

### Features

* **v1-contexts:** Added fields customer.id, customer.externalId to order/card context ([03e0778](https://github.com/retailcrm/embed-ui/commit/03e077840d7859416a562410c21a1499728fd43a))
## [0.9.9](https://github.com/retailcrm/embed-ui/compare/v0.9.8...v0.9.9) (2026-02-12)

### Bug Fixes
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@retailcrm/embed-ui",
"type": "module",
"version": "0.9.9",
"version": "0.9.10-alpha.1",
"description": "API and components for creating RetailCRM UI extensions",
"repository": "git@github.com:retailcrm/embed-ui.git",
"author": "RetailDriverLLC <integration@retailcrm.ru>",
Expand Down Expand Up @@ -41,15 +41,15 @@
"@omnicajs/symfony-router": "^1.0.0",
"@omnicajs/vue-remote": "^0.2.8",
"@remote-ui/rpc": "^1.4.5",
"@retailcrm/embed-ui-v1-contexts": "^0.9.9",
"@retailcrm/embed-ui-v1-types": "^0.9.9"
"@retailcrm/embed-ui-v1-contexts": "^0.9.10-alpha.1",
"@retailcrm/embed-ui-v1-types": "^0.9.10-alpha.1"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.1",
"@modulify/git-toolkit": "^0.0.2",
"@modulify/pkg": "^1.0.1",
"@retailcrm/embed-ui-v1-testing": "^0.9.9",
"@retailcrm/embed-ui-v1-testing": "^0.9.10-alpha.1",
"@types/git-semver-tags": "^7.0.0",
"@types/node": "^22.19.2",
"@types/semver": "^7.7.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/v1-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@retailcrm/embed-ui-v1-components",
"type": "module",
"version": "0.9.9",
"version": "0.9.10-alpha.1",
"license": "MIT",
"author": "RetailDriverLLC <integration@retailcrm.ru>",
"repository": "git@github.com:retailcrm/embed-ui.git",
Expand Down
6 changes: 3 additions & 3 deletions packages/v1-contexts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@retailcrm/embed-ui-v1-contexts",
"description": "Reactive contexts for RetailCRM JS API",
"type": "module",
"version": "0.9.9",
"version": "0.9.10-alpha.1",
"license": "MIT",
"author": "RetailDriverLLC <integration@retailcrm.ru>",
"repository": "git@github.com:retailcrm/embed-ui.git",
Expand Down Expand Up @@ -104,11 +104,11 @@
"@floating-ui/core": "^1.7.3",
"@floating-ui/dom": "^1.7.4",
"@omnicajs/symfony-router": "^1.0.0",
"@retailcrm/embed-ui-v1-types": "^0.9.9"
"@retailcrm/embed-ui-v1-types": "^0.9.10-alpha.1"
},
"devDependencies": {
"@remote-ui/rpc": "^1.4.7",
"@retailcrm/embed-ui-v1-testing": "^0.9.9",
"@retailcrm/embed-ui-v1-testing": "^0.9.10-alpha.1",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"vite": "^7.2.7",
Expand Down
24 changes: 24 additions & 0 deletions packages/v1-contexts/src/common/order/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ export const schema: Schema = {
defaults: () => '',
readonly: true,
},
'customer.id': {
accepts: oneOf(isNumber, isNull),
defaults: () => null,
readonly: true,
},
'customer.externalId': {
accepts: oneOf(isString, isNull),
defaults: () => null,
readonly: true,
},
'customer.type': {
accepts: oneOf(
isExactly('customer'),
Expand Down Expand Up @@ -271,6 +281,20 @@ export const description: ContextSchemaDescription<Schema> = {
'ru-RU': 'Символьный код валюты',
},
},
'customer.id': {
description: {
'en-GB': 'Customer ID',
'es-ES': 'ID del cliente',
'ru-RU': 'ID клиента',
},
},
'customer.externalId': {
description: {
'en-GB': 'Customer external ID',
'es-ES': 'ID externo del cliente',
'ru-RU': 'Внешний ID клиента',
},
},
'customer.type': {
description: {
'en-GB': 'Client type',
Expand Down
2 changes: 2 additions & 0 deletions packages/v1-contexts/types/order/card.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export type Schema = {
'number': ReadonlyField<string | null>;
'country': ReadonlyField<string | null>;
'currency': ReadonlyField<string>;
'customer.id': ReadonlyField<number | null>;
'customer.externalId': ReadonlyField<string | null>;
'customer.type': ReadonlyField<'customer' | 'customer_corporate'>;
'customer.lastName': Field<string | null>;
'customer.firstName': Field<string | null>;
Expand Down
4 changes: 2 additions & 2 deletions packages/v1-testing/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@retailcrm/embed-ui-v1-testing",
"type": "module",
"version": "0.9.9",
"version": "0.9.10-alpha.1",
"license": "MIT",
"author": "RetailDriverLLC <integration@retailcrm.ru>",
"repository": "git@github.com:retailcrm/embed-ui.git",
Expand All @@ -15,6 +15,6 @@
"vue": "^3.5"
},
"dependencies": {
"@retailcrm/embed-ui-v1-types": "^0.9.9"
"@retailcrm/embed-ui-v1-types": "^0.9.10-alpha.1"
}
}
2 changes: 1 addition & 1 deletion packages/v1-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@retailcrm/embed-ui-v1-types",
"description": "Basic types declarations for RetailCRM JS API",
"type": "module",
"version": "0.9.9",
"version": "0.9.10-alpha.1",
"license": "MIT",
"author": "RetailDriverLLC <integration@retailcrm.ru>",
"repository": "git@github.com:retailcrm/embed-ui.git",
Expand Down
5 changes: 5 additions & 0 deletions scripts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Runner from './lib/Runner'

import chalk from 'chalk'
import gitSemverTags from 'git-semver-tags'
import semver from 'semver'

import {
join,
Expand Down Expand Up @@ -52,10 +53,14 @@ try {
if (pkg.manifest.exports && currVersion !== prevVersion) {
log.info('%s: %s\n', [chalk.magenta(pkg.name), currVersion])

const prerelease = currVersion ? semver.prerelease(currVersion) : null
const publishTag = typeof prerelease?.[0] === 'string' ? prerelease[0] : undefined

await sh.run('npm', [
'publish',
pkg.path,
'--access', 'public',
...(publishTag ? ['--tag', publishTag] : []),
...(options.dry ? ['--dry-run'] : []),
])
}
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1219,16 +1219,16 @@ __metadata:
languageName: unknown
linkType: soft

"@retailcrm/embed-ui-v1-contexts@npm:^0.9.9, @retailcrm/embed-ui-v1-contexts@workspace:packages/v1-contexts":
"@retailcrm/embed-ui-v1-contexts@npm:^0.9.10-alpha.1, @retailcrm/embed-ui-v1-contexts@workspace:packages/v1-contexts":
version: 0.0.0-use.local
resolution: "@retailcrm/embed-ui-v1-contexts@workspace:packages/v1-contexts"
dependencies:
"@floating-ui/core": "npm:^1.7.3"
"@floating-ui/dom": "npm:^1.7.4"
"@omnicajs/symfony-router": "npm:^1.0.0"
"@remote-ui/rpc": "npm:^1.4.7"
"@retailcrm/embed-ui-v1-testing": "npm:^0.9.9"
"@retailcrm/embed-ui-v1-types": "npm:^0.9.9"
"@retailcrm/embed-ui-v1-testing": "npm:^0.9.10-alpha.1"
"@retailcrm/embed-ui-v1-types": "npm:^0.9.10-alpha.1"
tsx: "npm:^4.21.0"
typescript: "npm:^5.9.3"
vite: "npm:^7.2.7"
Expand All @@ -1241,19 +1241,19 @@ __metadata:
languageName: unknown
linkType: soft

"@retailcrm/embed-ui-v1-testing@npm:^0.9.9, @retailcrm/embed-ui-v1-testing@workspace:packages/v1-testing":
"@retailcrm/embed-ui-v1-testing@npm:^0.9.10-alpha.1, @retailcrm/embed-ui-v1-testing@workspace:packages/v1-testing":
version: 0.0.0-use.local
resolution: "@retailcrm/embed-ui-v1-testing@workspace:packages/v1-testing"
dependencies:
"@retailcrm/embed-ui-v1-types": "npm:^0.9.9"
"@retailcrm/embed-ui-v1-types": "npm:^0.9.10-alpha.1"
peerDependencies:
"@omnicajs/vue-remote": ^0.2
"@remote-ui/rpc": ^1.4
vue: ^3.5
languageName: unknown
linkType: soft

"@retailcrm/embed-ui-v1-types@npm:^0.9.9, @retailcrm/embed-ui-v1-types@workspace:packages/v1-types":
"@retailcrm/embed-ui-v1-types@npm:^0.9.10-alpha.1, @retailcrm/embed-ui-v1-types@workspace:packages/v1-types":
version: 0.0.0-use.local
resolution: "@retailcrm/embed-ui-v1-types@workspace:packages/v1-types"
languageName: unknown
Expand All @@ -1272,9 +1272,9 @@ __metadata:
"@omnicajs/symfony-router": "npm:^1.0.0"
"@omnicajs/vue-remote": "npm:^0.2.8"
"@remote-ui/rpc": "npm:^1.4.5"
"@retailcrm/embed-ui-v1-contexts": "npm:^0.9.9"
"@retailcrm/embed-ui-v1-testing": "npm:^0.9.9"
"@retailcrm/embed-ui-v1-types": "npm:^0.9.9"
"@retailcrm/embed-ui-v1-contexts": "npm:^0.9.10-alpha.1"
"@retailcrm/embed-ui-v1-testing": "npm:^0.9.10-alpha.1"
"@retailcrm/embed-ui-v1-types": "npm:^0.9.10-alpha.1"
"@types/git-semver-tags": "npm:^7.0.0"
"@types/node": "npm:^22.19.2"
"@types/semver": "npm:^7.7.1"
Expand Down