@inspirer-dev/crm-dashboard 1.0.28 → 1.0.29
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/admin/src/components/ButtonsBuilder/index.tsx +7 -3
- package/admin/src/components/TriggerConfigField/index.tsx +7 -3
- package/dist/_chunks/{index-C7_DxUFr.mjs → index-BTVDaym0.mjs} +3 -2
- package/dist/_chunks/{index-Bj5go8Fq.mjs → index-C8xU0WGn.mjs} +3 -2
- package/dist/_chunks/{index-BnNkOgKl.js → index-CLv1Ce0a.js} +3 -2
- package/dist/_chunks/{index-DlRQd6UH.mjs → index-D4TOg3Ua.mjs} +232 -316
- package/dist/_chunks/{index-Bxicsk1k.js → index-Hnq5l6W2.js} +145 -215
- package/dist/_chunks/{index-CY3rfPtB.js → index-JQqs7NM9.js} +3 -2
- package/dist/admin/index.js +3 -3
- package/dist/admin/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
Tooltip,
|
|
11
11
|
Card,
|
|
12
12
|
CardContent,
|
|
13
|
-
useTheme,
|
|
14
13
|
} from '@strapi/design-system';
|
|
15
14
|
import { Plus, Trash, ArrowUp, ArrowDown, Link as LinkIcon } from '@strapi/icons';
|
|
15
|
+
import { useTheme } from 'styled-components';
|
|
16
16
|
import { generateId } from '../RulesBuilder/utils';
|
|
17
17
|
|
|
18
18
|
type TelegramButton = {
|
|
@@ -75,9 +75,13 @@ const isValidUrl = (url: string): boolean => {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
interface StrapiTheme {
|
|
79
|
+
colors?: Record<string, string>;
|
|
80
|
+
}
|
|
81
|
+
|
|
78
82
|
const useThemeColors = () => {
|
|
79
|
-
const theme = useTheme();
|
|
80
|
-
const isDark = theme
|
|
83
|
+
const theme = useTheme() as StrapiTheme;
|
|
84
|
+
const isDark = theme?.colors?.neutral0 === '#212134';
|
|
81
85
|
|
|
82
86
|
return useMemo(() => ({
|
|
83
87
|
isDark,
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
Combobox,
|
|
11
11
|
ComboboxOption,
|
|
12
12
|
Badge,
|
|
13
|
-
useTheme,
|
|
14
13
|
} from '@strapi/design-system';
|
|
15
14
|
import { Lightning, Clock, Calendar, Code } from '@strapi/icons';
|
|
15
|
+
import { useTheme } from 'styled-components';
|
|
16
16
|
|
|
17
17
|
const ANALYTICS_EVENTS: Record<string, { value: string; label: string }[]> = {
|
|
18
18
|
'CRM (Backend)': [
|
|
@@ -181,9 +181,13 @@ const serializeConfig = (config: TriggerConfig): string => {
|
|
|
181
181
|
return JSON.stringify(config);
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
+
interface StrapiTheme {
|
|
185
|
+
colors?: Record<string, string>;
|
|
186
|
+
}
|
|
187
|
+
|
|
184
188
|
const useThemeColors = () => {
|
|
185
|
-
const theme = useTheme();
|
|
186
|
-
const isDark = theme
|
|
189
|
+
const theme = useTheme() as StrapiTheme;
|
|
190
|
+
const isDark = theme?.colors?.neutral0 === '#212134';
|
|
187
191
|
|
|
188
192
|
return useMemo(() => ({
|
|
189
193
|
isDark,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useEffect, useMemo } from "react";
|
|
3
|
-
import { Field, Flex, Box, Typography, Button, Card, CardContent, TextInput, Tooltip, IconButton
|
|
3
|
+
import { Field, Flex, Box, Typography, Button, Card, CardContent, TextInput, Tooltip, IconButton } from "@strapi/design-system";
|
|
4
4
|
import { Plus, ArrowUp, ArrowDown, Trash, Link } from "@strapi/icons";
|
|
5
|
+
import { useTheme } from "styled-components";
|
|
5
6
|
import { m as generateId } from "./utils-C6_ndVAZ.mjs";
|
|
6
7
|
const parseButtons = (value) => {
|
|
7
8
|
if (!value) return [];
|
|
@@ -40,7 +41,7 @@ const isValidUrl = (url) => {
|
|
|
40
41
|
};
|
|
41
42
|
const useThemeColors = () => {
|
|
42
43
|
const theme = useTheme();
|
|
43
|
-
const isDark = theme
|
|
44
|
+
const isDark = theme?.colors?.neutral0 === "#212134";
|
|
44
45
|
return useMemo(() => ({
|
|
45
46
|
isDark,
|
|
46
47
|
emptyState: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useEffect, useMemo } from "react";
|
|
3
|
-
import { Field, Flex, Box, Typography, Combobox, ComboboxOption, Badge, TextInput, SingleSelect, SingleSelectOption
|
|
3
|
+
import { Field, Flex, Box, Typography, Combobox, ComboboxOption, Badge, TextInput, SingleSelect, SingleSelectOption } from "@strapi/design-system";
|
|
4
4
|
import { Lightning, Calendar, Clock, Code } from "@strapi/icons";
|
|
5
|
+
import { useTheme } from "styled-components";
|
|
5
6
|
const ANALYTICS_EVENTS = {
|
|
6
7
|
"CRM (Backend)": [
|
|
7
8
|
{ value: "user_registered", label: "User Registered" }
|
|
@@ -139,7 +140,7 @@ const serializeConfig = (config) => {
|
|
|
139
140
|
};
|
|
140
141
|
const useThemeColors = () => {
|
|
141
142
|
const theme = useTheme();
|
|
142
|
-
const isDark = theme
|
|
143
|
+
const isDark = theme?.colors?.neutral0 === "#212134";
|
|
143
144
|
return useMemo(() => ({
|
|
144
145
|
isDark,
|
|
145
146
|
card: {
|
|
@@ -4,6 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const designSystem = require("@strapi/design-system");
|
|
6
6
|
const icons = require("@strapi/icons");
|
|
7
|
+
const styled = require("styled-components");
|
|
7
8
|
const utils = require("./utils-CmonL0io.js");
|
|
8
9
|
const parseButtons = (value) => {
|
|
9
10
|
if (!value) return [];
|
|
@@ -41,8 +42,8 @@ const isValidUrl = (url) => {
|
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
44
|
const useThemeColors = () => {
|
|
44
|
-
const theme =
|
|
45
|
-
const isDark = theme
|
|
45
|
+
const theme = styled.useTheme();
|
|
46
|
+
const isDark = theme?.colors?.neutral0 === "#212134";
|
|
46
47
|
return React.useMemo(() => ({
|
|
47
48
|
isDark,
|
|
48
49
|
emptyState: {
|