serene-core-client 0.1.5 → 0.1.7
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/dist/src/apollo/access.d.ts +1 -1
- package/dist/src/apollo/mailing-lists.d.ts +2 -2
- package/dist/src/apollo/quotas.d.ts +1 -1
- package/dist/src/apollo/techs.d.ts +1 -1
- package/dist/src/apollo/tips.d.ts +3 -3
- package/dist/src/apollo/user-preferences.d.ts +2 -2
- package/dist/src/apollo/users.d.ts +6 -6
- package/dist/src/components/account/profile.d.ts +1 -1
- package/dist/src/components/account/profile.js +7 -10
- package/dist/src/components/basics/copy-text-icon.d.ts +1 -1
- package/dist/src/components/basics/copy-text-icon.js +1 -1
- package/dist/src/components/basics/editable-string-list.d.ts +1 -1
- package/dist/src/components/basics/editable-string-list.js +1 -1
- package/dist/src/components/basics/text-area-field.d.ts +1 -1
- package/dist/src/components/basics/text-area-field.js +1 -1
- package/dist/src/components/basics/view-link-field.d.ts +1 -1
- package/dist/src/components/basics/view-link-field.js +1 -1
- package/dist/src/components/basics/view-markdown-field.d.ts +1 -1
- package/dist/src/components/basics/view-markdown-field.js +1 -1
- package/dist/src/components/basics/view-text-field.d.ts +1 -1
- package/dist/src/components/basics/view-text-field.js +1 -1
- package/dist/src/components/buttons/labeled-icon-button.d.ts +1 -1
- package/dist/src/components/buttons/labeled-icon-button.js +1 -1
- package/dist/src/components/css/loaders.d.ts +1 -0
- package/dist/src/components/css/loaders.js +1 -1
- package/dist/src/components/mailing-lists/sign-up.d.ts +1 -1
- package/dist/src/components/mailing-lists/sign-up.js +2 -2
- package/dist/src/components/notifications/action.d.ts +1 -1
- package/dist/src/components/notifications/action.js +1 -1
- package/dist/src/components/tech/load-techs.d.ts +1 -1
- package/dist/src/components/tech/load-techs.js +2 -2
- package/dist/src/components/tech/tech-autocomplete.d.ts +1 -1
- package/dist/src/components/tech/tech-autocomplete.js +1 -1
- package/dist/src/components/tips/load-tips.d.ts +1 -1
- package/dist/src/components/tips/load-tips.js +2 -2
- package/dist/src/components/tips/tip.d.ts +1 -1
- package/dist/src/components/tips/tip.js +2 -2
- package/dist/src/index.d.ts +36 -36
- package/dist/src/index.js +36 -36
- package/dist/src/services/access/service.d.ts +1 -1
- package/dist/src/services/access/service.js +2 -2
- package/dist/src/services/rest-api/service.js +3 -4
- package/dist/src/services/users/profile-service.js +1 -1
- package/dist/src/services/users/user-preferences-service.js +1 -1
- package/dist/src/services/users/user-service.js +1 -1
- package/dist/src/services/utils/date.d.ts +1 -1
- package/dist/src/services/utils/date.js +1 -1
- package/package.json +5 -1
- package/src/apollo/access.ts +0 -10
- package/src/apollo/mailing-lists.ts +0 -35
- package/src/apollo/quotas.ts +0 -22
- package/src/apollo/techs.ts +0 -16
- package/src/apollo/tips.ts +0 -48
- package/src/apollo/user-preferences.ts +0 -34
- package/src/apollo/users.ts +0 -66
- package/src/components/account/profile.tsx +0 -280
- package/src/components/basics/copy-text-icon.tsx +0 -34
- package/src/components/basics/editable-string-list.tsx +0 -97
- package/src/components/basics/json-display.tsx +0 -71
- package/src/components/basics/mui-auto-focus.tsx +0 -19
- package/src/components/basics/text-area-field.tsx +0 -63
- package/src/components/basics/view-link-field.tsx +0 -32
- package/src/components/basics/view-markdown-field.tsx +0 -31
- package/src/components/basics/view-text-field.tsx +0 -28
- package/src/components/buttons/labeled-icon-button.tsx +0 -53
- package/src/components/css/loaders.tsx +0 -0
- package/src/components/mailing-lists/sign-up.tsx +0 -126
- package/src/components/notifications/action.tsx +0 -50
- package/src/components/tech/load-techs.tsx +0 -66
- package/src/components/tech/tech-autocomplete.tsx +0 -65
- package/src/components/tips/load-tips.tsx +0 -75
- package/src/components/tips/tip.tsx +0 -96
- package/src/index.ts +0 -36
- package/src/services/access/service.ts +0 -126
- package/src/services/locale/countries.ts +0 -483
- package/src/services/rest-api/request.ts +0 -10
- package/src/services/rest-api/service.ts +0 -130
- package/src/services/users/profile-service.ts +0 -28
- package/src/services/users/user-preferences-service.ts +0 -64
- package/src/services/users/user-service.ts +0 -310
- package/src/services/utils/date.ts +0 -6
- package/src/services/utils/functions.ts +0 -8
- package/src/services/utils/service.ts +0 -12
- package/src/services/utils/string.ts +0 -48
- package/src/services/utils/tree.ts +0 -88
- package/src/types/types.ts +0 -4
- package/tsconfig.json +0 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isAdminUserQuery: import("
|
|
1
|
+
export declare const isAdminUserQuery: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const mailingListSignupMutation: import("
|
|
2
|
-
export declare const verifySignupMutation: import("
|
|
1
|
+
export declare const mailingListSignupMutation: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const verifySignupMutation: import("@apollo/client").DocumentNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getResourceQuotaUsageQuery: import("
|
|
1
|
+
export declare const getResourceQuotaUsageQuery: import("@apollo/client").DocumentNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getTechsQuery: import("
|
|
1
|
+
export declare const getTechsQuery: import("@apollo/client").DocumentNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const getTipsByUserProfileIdAndTagsQuery: import("
|
|
2
|
-
export declare const tipGotItExistsQuery: import("
|
|
3
|
-
export declare const upsertTipGotItMutation: import("
|
|
1
|
+
export declare const getTipsByUserProfileIdAndTagsQuery: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const tipGotItExistsQuery: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare const upsertTipGotItMutation: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getUserPreferencesQuery: import("
|
|
2
|
-
export declare const upsertUserPreferenceMutation: import("
|
|
1
|
+
export declare const getUserPreferencesQuery: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const upsertUserPreferenceMutation: import("@apollo/client").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const createBlankUserMutation: import("
|
|
2
|
-
export declare const createUserByEmailMutation: import("
|
|
3
|
-
export declare const getOrCreateSignedOutUserMutation: import("
|
|
4
|
-
export declare const getOrCreateUserByEmailMutation: import("
|
|
5
|
-
export declare const updateIFileCreatedByMutation: import("
|
|
6
|
-
export declare const verifySignedInUserProfileIdQuery: import("
|
|
1
|
+
export declare const createBlankUserMutation: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const createUserByEmailMutation: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare const getOrCreateSignedOutUserMutation: import("@apollo/client").DocumentNode;
|
|
4
|
+
export declare const getOrCreateUserByEmailMutation: import("@apollo/client").DocumentNode;
|
|
5
|
+
export declare const updateIFileCreatedByMutation: import("@apollo/client").DocumentNode;
|
|
6
|
+
export declare const verifySignedInUserProfileIdQuery: import("@apollo/client").DocumentNode;
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
serverUrl: string;
|
|
5
5
|
session: any;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare function Profile({ userProfile, clientUrl, serverUrl, session }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { signIn, signOut } from 'next-auth/react';
|
|
3
3
|
import { useQuery } from '@apollo/client/react';
|
|
4
|
-
import Button from '@mui/material
|
|
5
|
-
import TextField from '@mui/material/TextField';
|
|
6
|
-
import Select from '@mui/material/Select';
|
|
4
|
+
import { Button, FormControl, InputLabel, Select, TextField, Typography } from '@mui/material';
|
|
7
5
|
import { useEffect, useState } from 'react';
|
|
8
|
-
import ActionNotification from '../notifications/action';
|
|
9
|
-
import { RestApiService } from '../../services/rest-api/service';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
export default function Profile({ userProfile, clientUrl, serverUrl, session }) {
|
|
6
|
+
import { ActionNotification } from '../notifications/action.js';
|
|
7
|
+
import { RestApiService } from '../../services/rest-api/service.js';
|
|
8
|
+
import { countries } from '../../services/locale/countries.js';
|
|
9
|
+
import { getUserPreferencesQuery } from '../../apollo/user-preferences.js';
|
|
10
|
+
import { ProfileService } from '../../services/users/profile-service.js';
|
|
11
|
+
export function Profile({ userProfile, clientUrl, serverUrl, session }) {
|
|
15
12
|
// Consts
|
|
16
13
|
const personalDetails = 'personal details';
|
|
17
14
|
// State
|
|
@@ -3,5 +3,5 @@ interface Props {
|
|
|
3
3
|
title?: string;
|
|
4
4
|
style?: any;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export declare function CopyTextIcon({ text, title, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
|
|
3
3
|
import { IconButton, Tooltip } from '@mui/material';
|
|
4
|
-
export
|
|
4
|
+
export function CopyTextIcon({ text, title = 'Copy', style = {} }) {
|
|
5
5
|
const handleCopy = async () => {
|
|
6
6
|
try {
|
|
7
7
|
await navigator.clipboard.writeText(text);
|
|
@@ -4,4 +4,4 @@ export interface Props {
|
|
|
4
4
|
setValues?: any;
|
|
5
5
|
onChange?: any;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare function EditableStringList({ label, values, setValues, onChange }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { TextField, List, ListItem, ListItemText, IconButton, Stack } from '@mui/material';
|
|
4
4
|
import { Add, Check, Delete, Edit } from '@mui/icons-material';
|
|
5
|
-
export
|
|
5
|
+
export function EditableStringList({ label, values, setValues, onChange }) {
|
|
6
6
|
const [input, setInput] = useState('');
|
|
7
7
|
const [editIndex, setEditIndex] = useState(null);
|
|
8
8
|
const updateItems = (newItems) => {
|
|
@@ -8,5 +8,5 @@ interface Props {
|
|
|
8
8
|
value: string;
|
|
9
9
|
style?: any;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export declare function TextAreaField({ disabled, id, label, minRows, onChange, required, value, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { FormControl, InputLabel, TextareaAutosize } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export function TextAreaField({ disabled, id, label, minRows = 5, onChange = {}, required = false, value, style = {} }) {
|
|
4
4
|
// Render
|
|
5
5
|
return (_jsx("div", { style: style, children: _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { htmlFor: id, required: required, style: {
|
|
6
6
|
position: 'absolute',
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
value: string;
|
|
5
5
|
style?: any;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare function ViewLinkField({ label, href, value, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Link, Typography } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export function ViewLinkField({ label, href, value, style = {} }) {
|
|
4
4
|
// Render
|
|
5
5
|
return (_jsxs("div", { style: style, children: [_jsx(Typography, { variant: 'caption', children: label }), _jsx(Typography, { variant: 'body1', children: _jsx(Link, { href: href, children: value }) })] }));
|
|
6
6
|
}
|
|
@@ -3,5 +3,5 @@ interface Props {
|
|
|
3
3
|
value: string;
|
|
4
4
|
style?: any;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export declare function ViewMarkdownField({ label, value, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import ReactMarkdown from 'react-markdown';
|
|
3
3
|
import { Typography } from '@mui/material';
|
|
4
|
-
export
|
|
4
|
+
export function ViewMarkdownField({ label, value, style = {} }) {
|
|
5
5
|
// Render
|
|
6
6
|
return (_jsxs("div", { style: style, children: [_jsx(Typography, { variant: 'caption', children: label }), _jsx("div", { style: { marginTop: '-1em' }, children: _jsx(ReactMarkdown, { children: value }) })] }));
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ interface Props {
|
|
|
3
3
|
value: string;
|
|
4
4
|
style?: any;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export declare function ViewTextField({ label, value, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export function ViewTextField({ label, value, style = {} }) {
|
|
4
4
|
// Render
|
|
5
5
|
return (_jsxs("div", { style: style, children: [_jsx(Typography, { variant: 'caption', children: label }), _jsx(Typography, { variant: 'body1', children: value })] }));
|
|
6
6
|
}
|
|
@@ -8,5 +8,5 @@ interface Props {
|
|
|
8
8
|
backgroundColor?: string;
|
|
9
9
|
style?: any;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export declare function LabeledIconButton({ disabled, icon, label, onClick, color, textColor, backgroundColor, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Button, styled } from '@mui/material';
|
|
3
3
|
import { grey } from '@mui/material/colors';
|
|
4
|
-
export
|
|
4
|
+
export function LabeledIconButton({ disabled, icon, label, onClick, color = grey[700], textColor = grey[500], backgroundColor = grey[100], style = {} }) {
|
|
5
5
|
// Consts
|
|
6
6
|
const Icon = icon;
|
|
7
7
|
const ColorButton = styled(Button)(({ theme }) => ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
mailingListName: string;
|
|
3
3
|
}
|
|
4
|
-
export
|
|
4
|
+
export declare function MailingListSignUp({ mailingListName }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { useMutation } from '@apollo/client/react';
|
|
4
|
-
import { mailingListSignupMutation } from '../../apollo/mailing-lists';
|
|
5
4
|
import { Alert, Button, TextField } from '@mui/material';
|
|
6
|
-
|
|
5
|
+
import { mailingListSignupMutation } from '../../apollo/mailing-lists.js';
|
|
6
|
+
export function MailingListSignUp({ mailingListName }) {
|
|
7
7
|
// State
|
|
8
8
|
const [alertSeverity, setAlertSeverity] = useState(undefined);
|
|
9
9
|
const [message, setMessage] = useState(undefined);
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
notificationOpened: boolean;
|
|
5
5
|
setNotificationOpened: any;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare function ActionNotification({ message, autoHideDuration, notificationOpened, setNotificationOpened }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import CloseIcon from '@mui/icons-material/Close';
|
|
3
3
|
import IconButton from '@mui/material/IconButton';
|
|
4
4
|
import Snackbar from '@mui/material/Snackbar';
|
|
5
|
-
export
|
|
5
|
+
export function ActionNotification({ message, autoHideDuration, notificationOpened, setNotificationOpened }) {
|
|
6
6
|
const handleNotificationClose = (event, reason) => {
|
|
7
7
|
if (reason === 'clickaway') {
|
|
8
8
|
return;
|
|
@@ -3,5 +3,5 @@ interface Props {
|
|
|
3
3
|
resource: string;
|
|
4
4
|
setTechs: any;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export declare function LoadTechByFilter({ userProfileId, resource, setTechs }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
import { useQuery } from '@apollo/client/react';
|
|
4
|
-
import { getTechsQuery } from '../../apollo/techs';
|
|
5
|
-
export
|
|
4
|
+
import { getTechsQuery } from '../../apollo/techs.js';
|
|
5
|
+
export function LoadTechByFilter({ userProfileId, resource, setTechs }) {
|
|
6
6
|
// GraphQL
|
|
7
7
|
const { refetch: fetchTechsQuery } = useQuery(getTechsQuery, {
|
|
8
8
|
fetchPolicy: 'no-cache'
|
|
@@ -13,5 +13,5 @@ interface Props {
|
|
|
13
13
|
values: Tech[];
|
|
14
14
|
variant?: TextFieldVariants | undefined;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export declare function TechAutocomplete({ disabled, label, onChange, setValue, style, value, values, variant }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import Autocomplete from '@mui/material/Autocomplete';
|
|
3
3
|
import FormControl from '@mui/material/FormControl';
|
|
4
4
|
import TextField from '@mui/material/TextField';
|
|
5
|
-
export
|
|
5
|
+
export function TechAutocomplete({ disabled = false, label, onChange = () => { }, setValue, style = {}, value, values, variant = 'standard' }) {
|
|
6
6
|
const selectedTech = values.find((tech) => tech.id === value) || null;
|
|
7
7
|
return (_jsx(FormControl, { fullWidth: true, children: _jsx(Autocomplete, { disabled: disabled, value: selectedTech, onChange: (event, newValue) => {
|
|
8
8
|
// console.log(`newValue: ` + JSON.stringify(newValue))
|
|
@@ -3,5 +3,5 @@ interface Props {
|
|
|
3
3
|
tipTags: string[];
|
|
4
4
|
setTips: any;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export declare function LoadTips({ userProfileId, tipTags, setTips }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
import { useQuery } from '@apollo/client/react';
|
|
4
|
-
import { getTipsByUserProfileIdAndTagsQuery } from '../../apollo/tips';
|
|
5
|
-
export
|
|
4
|
+
import { getTipsByUserProfileIdAndTagsQuery } from '../../apollo/tips.js';
|
|
5
|
+
export function LoadTips({ userProfileId, tipTags, setTips }) {
|
|
6
6
|
// GraphQL
|
|
7
7
|
const { refetch: fetchGetTipsByUserProfileIdAndTagsQuery } = useQuery(getTipsByUserProfileIdAndTagsQuery, {
|
|
8
8
|
fetchPolicy: 'no-cache'
|
|
@@ -7,5 +7,5 @@ interface Props {
|
|
|
7
7
|
style: any;
|
|
8
8
|
userProfileId: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export declare function Tip({ name, label, text, setFocusRef, setTipVisible, style, userProfileId }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMutation } from '@apollo/client/react';
|
|
3
|
-
import { upsertTipGotItMutation } from '../../apollo/tips';
|
|
4
3
|
import { Button, Card, CardActions, CardContent, Typography } from '@mui/material';
|
|
5
|
-
|
|
4
|
+
import { upsertTipGotItMutation } from '../../apollo/tips.js';
|
|
5
|
+
export function Tip({ name, label, text, setFocusRef = undefined, setTipVisible, style = {}, userProfileId }) {
|
|
6
6
|
// GraphQL
|
|
7
7
|
const [sendUpsertTipGotItMutation] = useMutation(upsertTipGotItMutation, {
|
|
8
8
|
fetchPolicy: 'no-cache',
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export * from './apollo/access';
|
|
2
|
-
export * from './apollo/mailing-lists';
|
|
3
|
-
export * from './apollo/quotas';
|
|
4
|
-
export * from './apollo/techs';
|
|
5
|
-
export * from './apollo/tips';
|
|
6
|
-
export * from './apollo/user-preferences';
|
|
7
|
-
export * from './apollo/users';
|
|
8
|
-
export * from './components/account/profile';
|
|
9
|
-
export * from './components/basics/copy-text-icon';
|
|
10
|
-
export * from './components/basics/editable-string-list';
|
|
11
|
-
export * from './components/basics/json-display';
|
|
12
|
-
export * from './components/basics/mui-auto-focus';
|
|
13
|
-
export * from './components/basics/text-area-field';
|
|
14
|
-
export * from './components/basics/view-link-field';
|
|
15
|
-
export * from './components/basics/view-markdown-field';
|
|
16
|
-
export * from './components/basics/view-text-field';
|
|
17
|
-
export * from './components/buttons/labeled-icon-button';
|
|
18
|
-
export * from './components/mailing-lists/sign-up';
|
|
19
|
-
export * from './components/notifications/action';
|
|
20
|
-
export * from './components/tech/load-techs';
|
|
21
|
-
export * from './components/tech/tech-autocomplete';
|
|
22
|
-
export * from './components/tips/load-tips';
|
|
23
|
-
export * from './components/tips/tip';
|
|
24
|
-
export * from './services/access/service';
|
|
25
|
-
export * from './services/locale/countries';
|
|
26
|
-
export * from './services/rest-api/request';
|
|
27
|
-
export * from './services/rest-api/service';
|
|
28
|
-
export * from './services/users/profile-service';
|
|
29
|
-
export * from './services/users/user-preferences-service';
|
|
30
|
-
export * from './services/users/user-service';
|
|
31
|
-
export * from './services/utils/date';
|
|
32
|
-
export * from './services/utils/functions';
|
|
33
|
-
export * from './services/utils/service';
|
|
34
|
-
export * from './services/utils/string';
|
|
35
|
-
export * from './services/utils/tree';
|
|
36
|
-
export * from './types/types';
|
|
1
|
+
export * from './apollo/access.js';
|
|
2
|
+
export * from './apollo/mailing-lists.js';
|
|
3
|
+
export * from './apollo/quotas.js';
|
|
4
|
+
export * from './apollo/techs.js';
|
|
5
|
+
export * from './apollo/tips.js';
|
|
6
|
+
export * from './apollo/user-preferences.js';
|
|
7
|
+
export * from './apollo/users.js';
|
|
8
|
+
export * from './components/account/profile.js';
|
|
9
|
+
export * from './components/basics/copy-text-icon.js';
|
|
10
|
+
export * from './components/basics/editable-string-list.js';
|
|
11
|
+
export * from './components/basics/json-display.js';
|
|
12
|
+
export * from './components/basics/mui-auto-focus.js';
|
|
13
|
+
export * from './components/basics/text-area-field.js';
|
|
14
|
+
export * from './components/basics/view-link-field.js';
|
|
15
|
+
export * from './components/basics/view-markdown-field.js';
|
|
16
|
+
export * from './components/basics/view-text-field.js';
|
|
17
|
+
export * from './components/buttons/labeled-icon-button.js';
|
|
18
|
+
export * from './components/mailing-lists/sign-up.js';
|
|
19
|
+
export * from './components/notifications/action.js';
|
|
20
|
+
export * from './components/tech/load-techs.js';
|
|
21
|
+
export * from './components/tech/tech-autocomplete.js';
|
|
22
|
+
export * from './components/tips/load-tips.js';
|
|
23
|
+
export * from './components/tips/tip.js';
|
|
24
|
+
export * from './services/access/service.js';
|
|
25
|
+
export * from './services/locale/countries.js';
|
|
26
|
+
export * from './services/rest-api/request.js';
|
|
27
|
+
export * from './services/rest-api/service.js';
|
|
28
|
+
export * from './services/users/profile-service.js';
|
|
29
|
+
export * from './services/users/user-preferences-service.js';
|
|
30
|
+
export * from './services/users/user-service.js';
|
|
31
|
+
export * from './services/utils/date.js';
|
|
32
|
+
export * from './services/utils/functions.js';
|
|
33
|
+
export * from './services/utils/service.js';
|
|
34
|
+
export * from './services/utils/string.js';
|
|
35
|
+
export * from './services/utils/tree.js';
|
|
36
|
+
export * from './types/types.js';
|
package/dist/src/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export * from './apollo/access';
|
|
2
|
-
export * from './apollo/mailing-lists';
|
|
3
|
-
export * from './apollo/quotas';
|
|
4
|
-
export * from './apollo/techs';
|
|
5
|
-
export * from './apollo/tips';
|
|
6
|
-
export * from './apollo/user-preferences';
|
|
7
|
-
export * from './apollo/users';
|
|
8
|
-
export * from './components/account/profile';
|
|
9
|
-
export * from './components/basics/copy-text-icon';
|
|
10
|
-
export * from './components/basics/editable-string-list';
|
|
11
|
-
export * from './components/basics/json-display';
|
|
12
|
-
export * from './components/basics/mui-auto-focus';
|
|
13
|
-
export * from './components/basics/text-area-field';
|
|
14
|
-
export * from './components/basics/view-link-field';
|
|
15
|
-
export * from './components/basics/view-markdown-field';
|
|
16
|
-
export * from './components/basics/view-text-field';
|
|
17
|
-
export * from './components/buttons/labeled-icon-button';
|
|
18
|
-
export * from './components/mailing-lists/sign-up';
|
|
19
|
-
export * from './components/notifications/action';
|
|
20
|
-
export * from './components/tech/load-techs';
|
|
21
|
-
export * from './components/tech/tech-autocomplete';
|
|
22
|
-
export * from './components/tips/load-tips';
|
|
23
|
-
export * from './components/tips/tip';
|
|
24
|
-
export * from './services/access/service';
|
|
25
|
-
export * from './services/locale/countries';
|
|
26
|
-
export * from './services/rest-api/request';
|
|
27
|
-
export * from './services/rest-api/service';
|
|
28
|
-
export * from './services/users/profile-service';
|
|
29
|
-
export * from './services/users/user-preferences-service';
|
|
30
|
-
export * from './services/users/user-service';
|
|
31
|
-
export * from './services/utils/date';
|
|
32
|
-
export * from './services/utils/functions';
|
|
33
|
-
export * from './services/utils/service';
|
|
34
|
-
export * from './services/utils/string';
|
|
35
|
-
export * from './services/utils/tree';
|
|
36
|
-
export * from './types/types';
|
|
1
|
+
export * from './apollo/access.js';
|
|
2
|
+
export * from './apollo/mailing-lists.js';
|
|
3
|
+
export * from './apollo/quotas.js';
|
|
4
|
+
export * from './apollo/techs.js';
|
|
5
|
+
export * from './apollo/tips.js';
|
|
6
|
+
export * from './apollo/user-preferences.js';
|
|
7
|
+
export * from './apollo/users.js';
|
|
8
|
+
export * from './components/account/profile.js';
|
|
9
|
+
export * from './components/basics/copy-text-icon.js';
|
|
10
|
+
export * from './components/basics/editable-string-list.js';
|
|
11
|
+
export * from './components/basics/json-display.js';
|
|
12
|
+
export * from './components/basics/mui-auto-focus.js';
|
|
13
|
+
export * from './components/basics/text-area-field.js';
|
|
14
|
+
export * from './components/basics/view-link-field.js';
|
|
15
|
+
export * from './components/basics/view-markdown-field.js';
|
|
16
|
+
export * from './components/basics/view-text-field.js';
|
|
17
|
+
export * from './components/buttons/labeled-icon-button.js';
|
|
18
|
+
export * from './components/mailing-lists/sign-up.js';
|
|
19
|
+
export * from './components/notifications/action.js';
|
|
20
|
+
export * from './components/tech/load-techs.js';
|
|
21
|
+
export * from './components/tech/tech-autocomplete.js';
|
|
22
|
+
export * from './components/tips/load-tips.js';
|
|
23
|
+
export * from './components/tips/tip.js';
|
|
24
|
+
export * from './services/access/service.js';
|
|
25
|
+
export * from './services/locale/countries.js';
|
|
26
|
+
export * from './services/rest-api/request.js';
|
|
27
|
+
export * from './services/rest-api/service.js';
|
|
28
|
+
export * from './services/users/profile-service.js';
|
|
29
|
+
export * from './services/users/user-preferences-service.js';
|
|
30
|
+
export * from './services/users/user-service.js';
|
|
31
|
+
export * from './services/utils/date.js';
|
|
32
|
+
export * from './services/utils/functions.js';
|
|
33
|
+
export * from './services/utils/service.js';
|
|
34
|
+
export * from './services/utils/string.js';
|
|
35
|
+
export * from './services/utils/tree.js';
|
|
36
|
+
export * from './types/types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCookie, setCookie } from 'cookies-next';
|
|
2
|
-
import { isAdminUserQuery } from '../../apollo/access';
|
|
3
|
-
import { UsersService } from '../users/user-service';
|
|
2
|
+
import { isAdminUserQuery } from '../../apollo/access.js';
|
|
3
|
+
import { UsersService } from '../users/user-service.js';
|
|
4
4
|
export class AccessService {
|
|
5
5
|
// Consts
|
|
6
6
|
clName = 'AccessService';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { UtilsService } from '../utils/service';
|
|
1
|
+
import { postToServerHeaders } from './request.js';
|
|
2
|
+
import { UtilsService } from '../utils/service.js';
|
|
4
3
|
export class RestApiService {
|
|
5
4
|
// localClientUrl: e.g. http://localhost:3001 (irrespective of the domain name)
|
|
6
5
|
localClientUrl;
|
|
@@ -49,7 +48,7 @@ export class RestApiService {
|
|
|
49
48
|
routeOnSuccess !== null) {
|
|
50
49
|
const utilsService = new UtilsService();
|
|
51
50
|
const baseUrl = utilsService.getBaseUrl(window.location.href);
|
|
52
|
-
|
|
51
|
+
window.location.href = `${baseUrl}${routeOnSuccess}`;
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
else {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCookie, setCookie } from 'cookies-next';
|
|
2
|
-
import { getOrCreateSignedOutUserMutation, getOrCreateUserByEmailMutation, verifySignedInUserProfileIdQuery } from '../../apollo/users';
|
|
3
2
|
import { getSession } from 'next-auth/react';
|
|
3
|
+
import { getOrCreateSignedOutUserMutation, getOrCreateUserByEmailMutation, verifySignedInUserProfileIdQuery } from '../../apollo/users.js';
|
|
4
4
|
export class UsersService {
|
|
5
5
|
// Consts
|
|
6
6
|
clName = 'UsersService';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function timestampToDateTime(timestamp: number):
|
|
1
|
+
export declare function timestampToDateTime(timestamp: number): string;
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "serene-core-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "./dist/src/index.js",
|
|
5
6
|
"types": "./dist/src/index.d.ts",
|
|
6
7
|
"exports": {
|
|
7
8
|
".": "./dist/src/index.js"
|
|
8
9
|
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
9
13
|
"dependencies": {
|
|
10
14
|
"@apollo/client": "^4.1.6",
|
|
11
15
|
"@auth/core": "^0.34.3",
|