Skip to content

Commit

Permalink
Merge pull request #79 from Exabyte-io/fix/SOF-7552
Browse files Browse the repository at this point in the history
fix (SOF-7552): detect safari browser correctly
  • Loading branch information
pranabdas authored Jan 22, 2025
2 parents 63e7723 + 82b0f4b commit ab6f26c
Show file tree
Hide file tree
Showing 9 changed files with 4,123 additions and 3,406 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Continuous testing and publication to NPM from 'main'

on:
on:
workflow_dispatch:
push:

Expand All @@ -16,14 +16,15 @@ jobs:
if: github.repository != 'Exabyte-io/template-definitions'
strategy:
matrix:
node-version: [14.19.x]
node-version:
- "20"

steps:
- name: Checkout this repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout actions repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -33,6 +34,7 @@ jobs:
uses: ./actions/js/test
with:
node-version: ${{ matrix.node-version }}
npm-options: "--legacy-peer-deps"

publish-js-package:
needs: [run-js-tests]
Expand All @@ -41,10 +43,10 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout actions repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -53,7 +55,8 @@ jobs:
- name: Publish JS release
uses: ./actions/js/publish
with:
node-version: 14.19.x
node-version: "20"
npm-options: "--legacy-peer-deps"
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}

10 changes: 4 additions & 6 deletions dist/mui/components/custom/date-picker/DatePicker.styled.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/// <reference types="react" />
import { Theme } from "@mui/material/styles";
export declare const DatePickerButtonsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
export declare const StyledPopover: import("@emotion/styled").StyledComponent<import("@mui/material/Popover").PopoverProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
export declare const StyledDatePicker: import("@emotion/styled").StyledComponent<import("@mui/x-date-pickers/DatePicker").DatePickerProps<unknown> & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
export declare const StyledDatePickerContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
export declare const DatePickerButtonsContainer: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
export declare const StyledPopover: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
export declare const StyledDatePicker: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
export declare const StyledDatePickerContainer: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
2 changes: 1 addition & 1 deletion dist/mui/components/stepper/Stepper.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
export declare const StyledStepConnector: import("@emotion/styled").StyledComponent<import("@mui/material/StepConnector").StepConnectorProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
export declare const StyledStepConnector: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
export interface StyledStepperProps {
activeStep: number;
steps: string[];
Expand Down
5 changes: 1 addition & 4 deletions dist/other/rjsf/widgets/PositionInfoPopover.styled.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
/// <reference types="react" />
export declare const PositionInfoPopover: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
export declare const PositionInfoPopover: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
5 changes: 2 additions & 3 deletions dist/utils/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ export const isOpera =
(!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(" OPR/") >= 0;
// Firefox 1.0+
export const isFirefox = typeof InstallTrigger !== "undefined";
// At least Safari 3+: "[object HTMLElementConstructor]"
export const isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0;
export const isSafari = navigator.userAgent.includes("Safari/");
// Internet Explorer 6-11
export const isIE = /* @cc_on!@ */ false || !!document.documentMode;
// Edge 20+
export const isEdge = !isIE && !!window.StyleMedia;
// Chrome 1+
export const isChrome = navigator.userAgent.indexOf("Chrome/") !== -1;
export const isChrome = navigator.userAgent.includes("Chrome/");
// Blink engine detection
export const isBlink = (isChrome || isOpera) && !!window.CSS;
Loading

0 comments on commit ab6f26c

Please sign in to comment.