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
26 changes: 13 additions & 13 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,29 @@ jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: pnpm 🧰
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 9
version: 10

- name: Node 🧰
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
cache: 'pnpm'

- name: Update npm 📦
run: npm install -g npm@latest

- name: Install 📦
run: pnpm install

Expand All @@ -31,19 +39,11 @@ jobs:

- name: Publish 🚀 PRERELEASE
if: 'github.event.release.prerelease'
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
pnpm -r publish --tag next --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm -r publish --tag next --no-git-checks --access public

- name: Publish 🚀 PRODUCTION
if: '!github.event.release.prerelease'
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
pnpm -r publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm -r publish --no-git-checks --access public

- name: Trigger deploy to gh-pages 🚀
# if: '!github.event.release.prerelease'
Expand Down
2 changes: 1 addition & 1 deletion biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"private": true,
"scripts": {
"clean": "pnpx rimraf --glob **/node_modules **/pnpm-lock.yaml",
"prepare": "husky",
"preinstall": "npx only-allow pnpm",
"dev": "pnpm --stream -r dev",
Expand All @@ -19,8 +20,8 @@
},
"keywords": [],
"author": {
"name": "Giuseppe Ciotola",
"email": "giuseppe@commercelayer.io"
"name": "Commerce Layer",
"email": "development@commercelayer.io"
},
"repository": {
"type": "git",
Expand All @@ -35,10 +36,10 @@
"packages/*"
],
"devDependencies": {
"@biomejs/biome": "2.2.4",
"@biomejs/biome": "2.3.10",
"husky": "^9.1.7",
"lerna": "^8.2.4",
"lint-staged": "^16.1.6"
"lerna": "^9.0.3",
"lint-staged": "^16.2.7"
},
"resolutions": {
"postcss": "8"
Expand Down
60 changes: 34 additions & 26 deletions packages/app-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
"require": "./dist/tailwind.global.css"
}
},
"author": {
"name": "Commerce Layer",
"email": "development@commercelayer.io"
},
"homepage": "https://commercelayer.github.io/app-elements/",
"repository": {
"url": "https://github.com/commercelayer/app-elements"
},
"engines": {
"node": ">=18",
"pnpm": ">=7"
Expand All @@ -38,62 +46,62 @@
"generate:schema.price_rules": "curl -s https://core.commercelayer.io/api/public/schemas/price_rules | pnpx json-schema-to-typescript > ./src/ui/forms/RuleEngine/schema.price_rules.ts"
},
"dependencies": {
"@commercelayer/js-auth": "^6.7.2",
"@commercelayer/sdk": "6.46.0",
"@commercelayer/js-auth": "^7.1.1",
"@commercelayer/sdk": "6.50.1",
"@date-fns/tz": "^1.4.1",
"@monaco-editor/react": "4.7.0",
"@types/lodash-es": "^4.17.12",
"@types/react": "^19.1.13",
"@types/react": "19.1.13",
"@types/react-datepicker": "^7.0.0",
"@types/react-dom": "^19.1.9",
"@types/react-dom": "19.1.9",
"classnames": "^2.5.1",
"i18next": "^25.5.2",
"i18next": "^25.7.3",
"i18next-resources-to-backend": "^1.2.1",
"js-cookie": "^3.0.5",
"jwt-decode": "^4.0.0",
"lodash-es": "^4.17.21",
"lodash-es": "^4.17.22",
"monaco-editor": "0.53.0",
"pluralize": "^8.0.0",
"query-string": "^9.3.0",
"react": "^19.1.1",
"query-string": "^9.3.1",
"react": "19.1.1",
"react-currency-input-field": "^3.10.0",
"react-datepicker": "^8.7.0",
"react-dom": "^19.1.1",
"react-hook-form": "^7.62.0",
"react-i18next": "^15.7.3",
"react-datepicker": "^8.10.0",
"react-dom": "19.1.1",
"react-hook-form": "7.62.0",
"react-i18next": "^15.7.4",
"react-select": "^5.10.2",
"react-toastify": "^11.0.5",
"react-tooltip": "^5.29.1",
"swr": "^2.3.6",
"react-tooltip": "^5.30.0",
"swr": "^2.3.8",
"ts-invariant": "^0.10.3",
"type-fest": "^5.0.0",
"type-fest": "^5.3.1",
"zod": "^3.25.76"
},
"devDependencies": {
"@hookform/resolvers": "^3.10.0",
"@phosphor-icons/react": "v2.1.10",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/postcss": "^4.1.13",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"@tailwindcss/postcss": "^4.1.18",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.1",
"@types/js-cookie": "^3.0.6",
"@types/node": "^20.19.8",
"@types/node": "^20.19.27",
"@types/pluralize": "^0.0.33",
"@types/react-gtm-module": "^2.0.4",
"@vitejs/plugin-react": "^5.0.2",
"@vitejs/plugin-react": "^5.1.2",
"cross-fetch": "^4.1.0",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"jsdom": "^27.0.0",
"msw": "^2.11.2",
"jsdom": "^27.3.0",
"msw": "^2.12.4",
"postcss": "^8.5.6",
"react-gtm-module": "^2.0.11",
"tailwindcss": "^4.1.13",
"typescript": "~5.9.2",
"vite": "^7.1.5",
"tailwindcss": "^4.1.18",
"typescript": "~5.9.3",
"vite": "^7.3.0",
"vite-plugin-dts": "^4.5.4",
"vitest": "^3.2.4",
"wouter": "^3.7.1"
"wouter": "^3.8.1"
},
"peerDependencies": {
"@commercelayer/sdk": "^6.x",
Expand Down
11 changes: 6 additions & 5 deletions packages/app-elements/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,12 @@ const resources = {
}
}

type IsStringLiteral<T> = "I am a literal type" extends NonNullable<T>
? false // Handle `string` specifically
: NonNullable<T> extends Exclude<Primitive, string>
? false // Handle `Primitive` specifically
: true // It's a string literal
type IsStringLiteral<T> =
"I am a literal type" extends NonNullable<T>
? false // Handle `string` specifically
: NonNullable<T> extends Exclude<Primitive, string>
? false // Handle `Primitive` specifically
: true // It's a string literal

const en = {
common: {
Expand Down
42 changes: 21 additions & 21 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@
"pnpm": ">=7"
},
"dependencies": {
"prettier": "^3.6.2",
"react": "^19.1.1",
"react-dom": "^19.1.1"
"prettier": "^3.7.4",
"react": "19.1.1",
"react-dom": "19.1.1"
},
"devDependencies": {
"@babel/core": "^7.28.4",
"@babel/preset-env": "^7.28.3",
"@babel/core": "^7.28.5",
"@babel/preset-env": "^7.28.5",
"@hookform/resolvers": "^3.10.0",
"@mdx-js/react": "^3.1.1",
"@storybook/addon-docs": "^9.1.6",
"@storybook/addon-links": "^9.1.6",
"@storybook/addon-docs": "^9.1.17",
"@storybook/addon-links": "^9.1.17",
"@storybook/addon-styling-webpack": "^2.0.0",
"@storybook/cli": "^9.1.6",
"@storybook/cli": "^9.1.17",
"@storybook/icons": "^1.6.0",
"@storybook/react-vite": "^9.1.6",
"@storybook/react-vite": "^9.1.17",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/postcss": "^4.1.13",
"@tailwindcss/postcss": "^4.1.18",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.19.8",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"@vitejs/plugin-react": "^5.0.2",
"@types/node": "^20.19.27",
"@types/react": "19.1.13",
"@types/react-dom": "19.1.9",
"@vitejs/plugin-react": "^5.1.2",
"babel-loader": "^10.0.0",
"date-fns": "^4.1.0",
"js-yaml": "^4.1.0",
"msw": "^2.11.2",
"react-hook-form": "^7.62.0",
"js-yaml": "^4.1.1",
"msw": "^2.12.4",
"react-hook-form": "7.62.0",
"react-select": "^5.10.2",
"remark-gfm": "^4.0.1",
"storybook": "^9.1.6",
"tailwindcss": "^4.1.13",
"typescript": "~5.9.2",
"vite": "^7.1.5",
"storybook": "^9.1.17",
"tailwindcss": "^4.1.18",
"typescript": "~5.9.3",
"vite": "^7.3.0",
"vite-tsconfig-paths": "^5.1.4",
"zod": "^3.25.76"
},
Expand Down
Loading
Loading