@dexteel/mesf-core 4.16.7 → 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 +28 -0
- package/dist/controls/shift-navigator/component/shift-navigator.control.d.ts +1 -0
- package/dist/index.esm.js +5 -2
- 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,31 @@
|
|
|
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
|
+
|
|
16
|
+
# Changelog
|
|
17
|
+
|
|
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)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **ShiftNavigator:** Show current date correctly ([289ca45](https://github.com/dexteel/mesf-core-frontend/commit/289ca45143f76544bbc26289f3cd0be0b82d6c1d))
|
|
24
|
+
|
|
25
|
+
## [4.16.7] - 2024-07-19
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
1
29
|
# Changelog
|
|
2
30
|
|
|
3
31
|
## [4.16.7](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.16.6...@dexteel/mesf-core-v4.16.7) (2024-07-19)
|
|
@@ -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
|
@@ -4,8 +4,8 @@ import { values, get, isNil as isNil$1, isEmpty, round, isNaN, isNumber } from '
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useState, useRef, useEffect, useMemo, Component, createContext, useContext, useCallback, lazy, Suspense } from 'react';
|
|
6
6
|
import { ArrowRight, ArrowBackRounded, ArrowForwardRounded, SkipNext, ChevronLeft, ChevronRight } from '@material-ui/icons';
|
|
7
|
-
import { DatePicker } from '@mui/x-date-pickers/DatePicker/DatePicker';
|
|
8
7
|
import { Outlet, useParams, useNavigate, useSearchParams, Link, Navigate, Routes, Route, BrowserRouter } from 'react-router-dom';
|
|
8
|
+
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
|
9
9
|
import { Alert as Alert$1, Modal as Modal$1, Navbar, Container, Nav, NavDropdown } from 'react-bootstrap';
|
|
10
10
|
import { useMsal, MsalProvider } from '@azure/msal-react';
|
|
11
11
|
import { LogLevel, PublicClientApplication } from '@azure/msal-browser';
|
|
@@ -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 () {
|
|
@@ -7757,7 +7760,7 @@ var ShiftDayNavigatorControl = function (props) {
|
|
|
7757
7760
|
}, size: "small" },
|
|
7758
7761
|
React__default.createElement(ArrowBackRounded, null)))),
|
|
7759
7762
|
React__default.createElement(Grid, { item: true },
|
|
7760
|
-
React__default.createElement(DatePicker, { label: "Current Date", timezone:
|
|
7763
|
+
React__default.createElement(DatePicker, { label: "Current Date", timezone: 'UTC', format: "MM/DD/YYYY", maxDate: moment(), closeOnSelect: true, formatDensity: 'dense', value: moment(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.CurrentProductionDate), onChange: function (date) {
|
|
7761
7764
|
if (date) {
|
|
7762
7765
|
getShiftDataFromAPI(date.toDate(), 0)
|
|
7763
7766
|
.then(function () {
|