@dexteel/mesf-core 4.16.8 → 4.17.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/publish-to-npm.yaml +10 -6
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +15 -0
- package/dist/controls/shift-navigator/component/shift-navigator.control.d.ts +1 -0
- package/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
name: NPM Publish
|
|
2
|
-
|
|
3
2
|
on:
|
|
4
3
|
pull_request:
|
|
5
4
|
types: [closed]
|
|
6
5
|
branches:
|
|
7
6
|
- master
|
|
8
|
-
|
|
9
7
|
jobs:
|
|
10
8
|
publish:
|
|
11
9
|
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-please')
|
|
12
10
|
runs-on: ubuntu-latest
|
|
13
11
|
steps:
|
|
14
12
|
- uses: actions/checkout@v4
|
|
15
|
-
|
|
16
13
|
- name: Setup Node.js
|
|
17
14
|
uses: actions/setup-node@v4
|
|
18
15
|
with:
|
|
19
16
|
node-version: 'lts/hydrogen' # Adjust this to your Node.js version
|
|
20
17
|
registry-url: 'https://registry.npmjs.org'
|
|
21
|
-
|
|
22
18
|
- name: Install dependencies
|
|
23
19
|
run: npm install
|
|
24
|
-
|
|
25
20
|
- name: Build
|
|
26
21
|
run: npm run build
|
|
27
|
-
|
|
28
22
|
- name: Publish to npm
|
|
29
23
|
run: npm publish
|
|
30
24
|
env:
|
|
31
25
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
26
|
+
- name: Read package.json version
|
|
27
|
+
id: package-version
|
|
28
|
+
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
|
|
29
|
+
- name: Push Notification to Google Workspace
|
|
30
|
+
run: |
|
|
31
|
+
curl -X POST "https://chat.googleapis.com/v1/spaces/AAAA4hvxkZc/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=_DSEU_3n-CC5ZDK2nKNfabm2X_M_IcIAqQxenkYgDZk" \
|
|
32
|
+
-H 'Content-Type: application/json' \
|
|
33
|
+
-d '{
|
|
34
|
+
"text": "@dexteel/mesf-core has been deployed :\n\nREPO: *${{ github.repository }}*\nCOMMIT: ${{ github.sha }}\nVERSION: ${{ steps.package-version.outputs.version }}\nJOB: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
|
35
|
+
}'
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [4.17.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.16.8...@dexteel/mesf-core-v4.17.0) (2024-07-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **devops:** Add changelog to google message ([bff368b](https://github.com/dexteel/mesf-core-frontend/commit/bff368b6da69c79c31e389b0e5185cef32598034))
|
|
9
|
+
* **devops:** add version to message to google chat ([7490ae1](https://github.com/dexteel/mesf-core-frontend/commit/7490ae12bb70c4385f3660de2101fd758c755f25))
|
|
10
|
+
* **ShiftNavigator:** Add ability to prevent init automatically to ShiftNavigator ([4397857](https://github.com/dexteel/mesf-core-frontend/commit/43978570dc3132b6dab538a1b63d415579596538))
|
|
11
|
+
|
|
12
|
+
## [4.16.8] - 2024-07-31
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
# Changelog
|
|
2
17
|
|
|
3
18
|
## [4.16.8](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.16.7...@dexteel/mesf-core-v4.16.8) (2024-07-31)
|
|
@@ -3,4 +3,5 @@ export type ShiftNavigatorDirection = "Previous" | "Next" | "Last";
|
|
|
3
3
|
export declare const ShiftDayNavigatorControl: (props: {
|
|
4
4
|
useRouter?: boolean | undefined;
|
|
5
5
|
onShiftChange?: ((shiftId: number) => void) | undefined;
|
|
6
|
+
preventInit?: boolean | undefined;
|
|
6
7
|
}) => React.JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -7733,6 +7733,9 @@ var ShiftDayNavigatorControl = function (props) {
|
|
|
7733
7733
|
useEffect(function () {
|
|
7734
7734
|
if (firstRender.current) {
|
|
7735
7735
|
firstRender.current = false;
|
|
7736
|
+
if (props.preventInit) {
|
|
7737
|
+
return;
|
|
7738
|
+
}
|
|
7736
7739
|
if (props.useRouter && shiftId) {
|
|
7737
7740
|
getShiftDataFromAPI(null, Number(shiftId))
|
|
7738
7741
|
.then(function () {
|