@diplodoc/client 3.1.12 → 3.3.0
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/.github/workflows/deps.yml +48 -0
- package/CHANGELOG.md +32 -0
- package/build/UserSettingManager.d.ts +12 -0
- package/build/client/app.css +1 -1
- package/build/client/app.css.map +1 -1
- package/build/client/app.js +1 -1
- package/build/client/app.js.map +1 -1
- package/build/client/app.rtl.css +1 -1
- package/build/client/vendor.css +16 -11
- package/build/client/vendor.css.map +1 -1
- package/build/client/vendor.js +1 -1
- package/build/client/vendor.js.map +1 -1
- package/build/client/vendor.rtl.css +16 -11
- package/build/server/app.js +16 -3
- package/build/server/app.js.map +1 -1
- package/build/server/vendor.js +126 -2
- package/build/server/vendor.js.map +1 -1
- package/build/storage/index.d.ts +2 -0
- package/build/storage/local.d.ts +7 -0
- package/package.json +3 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Update package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
package:
|
|
7
|
+
description: 'Package name'
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
version:
|
|
11
|
+
description: 'Package version'
|
|
12
|
+
required: true
|
|
13
|
+
type: string
|
|
14
|
+
default: 'latest'
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
update-package:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- name: Setup Node 18
|
|
22
|
+
uses: actions/setup-node@v3
|
|
23
|
+
with:
|
|
24
|
+
node-version: 18
|
|
25
|
+
registry-url: 'https://registry.npmjs.org'
|
|
26
|
+
cache: 'npm'
|
|
27
|
+
- run: npm ci
|
|
28
|
+
- name: Update package
|
|
29
|
+
run: npm i ${{ inputs.package }}@${{ inputs.version }}
|
|
30
|
+
- name: Create and publish PR
|
|
31
|
+
env:
|
|
32
|
+
GH_TOKEN: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
|
|
33
|
+
run: |
|
|
34
|
+
set -e
|
|
35
|
+
|
|
36
|
+
[[ -z $(git diff --stat | grep package.json) ]] && echo "::info::Nothing to update" && exit 0
|
|
37
|
+
|
|
38
|
+
VERSION=$(npm explore --no-workspaces ${{ inputs.package }} "node -pe 'require(\"./package.json\").version'" --shell sh)
|
|
39
|
+
|
|
40
|
+
git config --global user.email "95919151+yc-ui-bot@users.noreply.github.com"
|
|
41
|
+
git config --global user.name "yc-ui-bot"
|
|
42
|
+
|
|
43
|
+
git push -f origin :ci/update-deps/${{ inputs.package }}-$VERSION || true
|
|
44
|
+
git checkout -b ci/update-deps/${{ inputs.package }}-$VERSION
|
|
45
|
+
git add package.json package-lock.json
|
|
46
|
+
git commit -m "deps: Update ${{ inputs.package }} to $VERSION"
|
|
47
|
+
git push -u origin ci/update-deps/${{ inputs.package }}-$VERSION
|
|
48
|
+
gh pr create -f
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.3.0](https://github.com/diplodoc-platform/client/compare/v3.2.0...v3.3.0) (2025-03-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* move to tabs runtime ([#113](https://github.com/diplodoc-platform/client/issues/113)) ([109b887](https://github.com/diplodoc-platform/client/commit/109b887c4247a780b71b7c3d71e0cb6d10f0a0e5))
|
|
9
|
+
* workflow for deps update ([#120](https://github.com/diplodoc-platform/client/issues/120)) ([ae3383b](https://github.com/diplodoc-platform/client/commit/ae3383b51ddab03e497d5c2657e15d293622323a))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* dev dep ([9581be4](https://github.com/diplodoc-platform/client/commit/9581be4a4f5c4521b78e8b2420dc5cc3e7405540))
|
|
15
|
+
* package ([d74a089](https://github.com/diplodoc-platform/client/commit/d74a08974be6e9e691245ab5832e664125db930d))
|
|
16
|
+
|
|
17
|
+
## [3.2.0](https://github.com/diplodoc-platform/client/compare/v3.1.12...v3.2.0) (2025-03-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add UserSettingManager ([#114](https://github.com/diplodoc-platform/client/issues/114)) ([7da77aa](https://github.com/diplodoc-platform/client/commit/7da77aa93cc68a998750bf6a75982595d7480853))
|
|
23
|
+
* page-constructor scss overrides ([#109](https://github.com/diplodoc-platform/client/issues/109)) ([996e34e](https://github.com/diplodoc-platform/client/commit/996e34e7d4537f7327e35be77d9afce17f918ff7))
|
|
24
|
+
* tabs restore on page mount ([#105](https://github.com/diplodoc-platform/client/issues/105)) ([e9afd79](https://github.com/diplodoc-platform/client/commit/e9afd79a7120d0c0400d9a3b0dc795895745b85d))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* disable img compression in PC ([#108](https://github.com/diplodoc-platform/client/issues/108)) ([5e60c5e](https://github.com/diplodoc-platform/client/commit/5e60c5e518f854131c1103c011b76c5153da13ef))
|
|
30
|
+
* ismobile prop to page to fix share button ([#106](https://github.com/diplodoc-platform/client/issues/106)) ([64f95d5](https://github.com/diplodoc-platform/client/commit/64f95d59cbd18761ef66f0334a97529899d707dc))
|
|
31
|
+
* search query ([#112](https://github.com/diplodoc-platform/client/issues/112)) ([389ffa6](https://github.com/diplodoc-platform/client/commit/389ffa61b9969943e41a084c976e9cd3c5881424))
|
|
32
|
+
* subnav not visible [#111](https://github.com/diplodoc-platform/client/issues/111) ([d4efb27](https://github.com/diplodoc-platform/client/commit/d4efb274ac611a45ea8a4363e826d8046b373bb0))
|
|
33
|
+
* SUPPORTED_LANGS is an array ([#116](https://github.com/diplodoc-platform/client/issues/116)) ([73be2a7](https://github.com/diplodoc-platform/client/commit/73be2a732a19c3a7dc607c55b3dd240a525235ad))
|
|
34
|
+
|
|
3
35
|
## [3.1.12](https://github.com/diplodoc-platform/client/compare/v3.1.11...v3.1.12) (2025-02-25)
|
|
4
36
|
|
|
5
37
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default class UserSettingManager {
|
|
2
|
+
private defaultSettings;
|
|
3
|
+
private settingsNames;
|
|
4
|
+
private settings;
|
|
5
|
+
constructor(defaultSettings: object, settings?: object | null);
|
|
6
|
+
updateSetting(settingName: string, value: unknown): Promise<void>;
|
|
7
|
+
getSetting(settingName: string): any;
|
|
8
|
+
removeSetting(settingName: string): void;
|
|
9
|
+
getSettings(): object;
|
|
10
|
+
private isKeyOfObject;
|
|
11
|
+
private isValidValueForKey;
|
|
12
|
+
}
|