@lokalise/harmony 1.30.0 → 1.30.1
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/harmony100.cjs +132 -6
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +131 -5
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +12 -132
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +11 -131
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +6 -13
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +5 -12
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +40 -5
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +40 -5
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +53 -33
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +54 -34
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +6 -59
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +6 -59
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +6 -7
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +5 -6
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony115.cjs +1 -1
- package/dist/harmony115.mjs +1 -1
- package/dist/harmony125.cjs +1 -1
- package/dist/harmony125.mjs +1 -1
- package/dist/harmony132.cjs +1 -1
- package/dist/harmony132.mjs +1 -1
- package/dist/harmony54.cjs +3 -1
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +3 -1
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony69.cjs +1 -1
- package/dist/harmony69.mjs +1 -1
- package/dist/harmony70.cjs +1 -1
- package/dist/harmony70.mjs +1 -1
- package/dist/harmony71.cjs +1 -1
- package/dist/harmony71.mjs +1 -1
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +2 -2
- package/dist/harmony73.mjs +2 -2
- package/dist/harmony74.cjs +2 -2
- package/dist/harmony74.mjs +2 -2
- package/dist/harmony75.cjs +2 -2
- package/dist/harmony75.mjs +2 -2
- package/dist/harmony76.cjs +3 -3
- package/dist/harmony76.mjs +3 -3
- package/dist/harmony77.cjs +6 -6
- package/dist/harmony77.mjs +6 -6
- package/dist/harmony80.cjs +2 -2
- package/dist/harmony80.mjs +2 -2
- package/dist/harmony82.cjs +12 -7
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +11 -6
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +20 -8
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +20 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +3 -6
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +3 -6
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -57
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +8 -56
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +9 -42
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +8 -41
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +57 -5
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +57 -5
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +42 -9
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +41 -8
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +6 -25
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +5 -24
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +6 -3
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +6 -3
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +24 -21
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +23 -20
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +3 -9
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +3 -9
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +19 -9
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +21 -11
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +11 -20
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +11 -20
- package/dist/harmony94.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useAddLanguagesToProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/languages.d.ts +10 -10
- package/dist/types/src/features/publicApi/types/languageTypes.d.ts +10 -10
- package/package.json +1 -1
package/dist/harmony104.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony104.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/
|
1
|
+
{"version":3,"file":"harmony104.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/TasksProvider.tsx"],"sourcesContent":["import { useEffectOnce } from '@utils'\nimport { type FC, type PropsWithChildren, useState } from 'react'\nimport { TasksContext } from './TasksContext'\nimport type { SidebarTask, SidebarTasksConfig, SidebarTasksContextProps } from './types'\nimport { TaskEvents } from './utils/taskEvents'\n\ntype TasksProviderProps = PropsWithChildren<{\n\tconfig: SidebarTasksConfig\n}>\n\nexport const TasksProvider = ({ children, config }: TasksProviderProps) => {\n\tconst [tasks, setTasks] = useState<SidebarTask[]>([])\n\tconst [loadingTasks, setLoadingTasks] = useState(true)\n\n\tconst [tasksCount, setTaskCount] = useState(0)\n\n\tconst {\n\t\tgetProjectUrl,\n\t\tonLanguageCompleteConfirm,\n\t\tonTasksWidgetOpen,\n\t\tlangNameOnClick,\n\t\tlangProgressOnClick,\n\t\ttaskTitleOnClick,\n\t} = config\n\n\tconst { getTasks, getTasksCount } = config\n\n\tconst fetchTasks = async () => {\n\t\tsetLoadingTasks(true)\n\t\tconst result = await getTasks()\n\t\tsetTasks(result)\n\t\tsetLoadingTasks(false)\n\t\treturn result\n\t}\n\n\tconst fetchTaskCount = async () => {\n\t\tconst result = await getTasksCount()\n\t\tsetTaskCount(result)\n\t}\n\n\tuseEffectOnce(() => {\n\t\tfetchTaskCount()\n\n\t\tdocument.addEventListener(TaskEvents.TaskCompleted, fetchTaskCount)\n\t\tdocument.addEventListener(TaskEvents.TaskClosed, fetchTaskCount)\n\t\tdocument.addEventListener(TaskEvents.Refresh, fetchTaskCount)\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(TaskEvents.TaskCompleted, fetchTaskCount)\n\t\t\tdocument.removeEventListener(TaskEvents.TaskClosed, fetchTaskCount)\n\t\t\tdocument.removeEventListener(TaskEvents.Refresh, fetchTaskCount)\n\t\t}\n\t})\n\n\tconst providerValue: SidebarTasksContextProps = {\n\t\tfetchTasks,\n\t\ttasks,\n\t\ttasksCount,\n\t\tloadingTasks,\n\t\tgetProjectUrl,\n\t\tonLanguageCompleteConfirm,\n\t\tonTasksWidgetOpen,\n\t\tlangNameOnClick,\n\t\tlangProgressOnClick,\n\t\ttaskTitleOnClick,\n\t}\n\n\treturn <TasksContext.Provider value={providerValue}>{children}</TasksContext.Provider>\n}\n\nexport const withTasksContext = <P extends { config: SidebarTasksConfig }>(\n\tWrappedComponent: FC<Omit<P, 'config'>>,\n) =>\n\tfunction withTasksContextFn(props: P) {\n\t\tconst { config, ...rest } = props\n\n\t\treturn (\n\t\t\t<TasksProvider config={config}>\n\t\t\t\t<WrappedComponent {...rest} />\n\t\t\t</TasksProvider>\n\t\t)\n\t}\n"],"names":["useState","useEffectOnce","TaskEvents","TasksContext"],"mappings":";;;;;;;AAUO,MAAM,gBAAgB,CAAC,EAAE,UAAU,aAAiC;AAC1E,QAAM,CAAC,OAAO,QAAQ,IAAIA,MAAAA,SAAwB,CAAA,CAAE;AACpD,QAAM,CAAC,cAAc,eAAe,IAAIA,MAAAA,SAAS,IAAI;AAErD,QAAM,CAAC,YAAY,YAAY,IAAIA,MAAAA,SAAS,CAAC;AAEvC,QAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACG;AAEE,QAAA,EAAE,UAAU,cAAA,IAAkB;AAEpC,QAAM,aAAa,YAAY;AAC9B,oBAAgB,IAAI;AACd,UAAA,SAAS,MAAM,SAAS;AAC9B,aAAS,MAAM;AACf,oBAAgB,KAAK;AACd,WAAA;AAAA,EACR;AAEA,QAAM,iBAAiB,YAAY;AAC5B,UAAA,SAAS,MAAM,cAAc;AACnC,iBAAa,MAAM;AAAA,EACpB;AAEAC,gBAAAA,cAAc,MAAM;AACJ,mBAAA;AAEN,aAAA,iBAAiBC,sBAAW,eAAe,cAAc;AACzD,aAAA,iBAAiBA,sBAAW,YAAY,cAAc;AACtD,aAAA,iBAAiBA,sBAAW,SAAS,cAAc;AAE5D,WAAO,MAAM;AACH,eAAA,oBAAoBA,sBAAW,eAAe,cAAc;AAC5D,eAAA,oBAAoBA,sBAAW,YAAY,cAAc;AACzD,eAAA,oBAAoBA,sBAAW,SAAS,cAAc;AAAA,IAChE;AAAA,EAAA,CACA;AAED,QAAM,gBAA0C;AAAA,IAC/C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAEA,wCAAQC,aAAAA,aAAa,UAAb,EAAsB,OAAO,eAAgB,UAAS;AAC/D;AAEO,MAAM,mBAAmB,CAC/B,qBAEA,SAAS,mBAAmB,OAAU;AACrC,QAAM,EAAE,QAAQ,GAAG,KAAA,IAAS;AAE5B,wCACE,eAAc,EAAA,QACd,yCAAC,kBAAkB,EAAA,GAAG,KAAM,CAAA,GAC7B;AAEF;;;"}
|
package/dist/harmony104.mjs
CHANGED
@@ -1,43 +1,63 @@
|
|
1
|
-
import { jsx
|
2
|
-
import { Loading, Link } from "@lokalise/louis";
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
3
2
|
import { useEffectOnce } from "./harmony11.mjs";
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { TaskEvents } from "./
|
7
|
-
|
8
|
-
const
|
9
|
-
const
|
3
|
+
import { useState } from "react";
|
4
|
+
import { TasksContext } from "./harmony102.mjs";
|
5
|
+
import { TaskEvents } from "./harmony105.mjs";
|
6
|
+
const TasksProvider = ({ children, config }) => {
|
7
|
+
const [tasks, setTasks] = useState([]);
|
8
|
+
const [loadingTasks, setLoadingTasks] = useState(true);
|
9
|
+
const [tasksCount, setTaskCount] = useState(0);
|
10
|
+
const {
|
11
|
+
getProjectUrl,
|
12
|
+
onLanguageCompleteConfirm,
|
13
|
+
onTasksWidgetOpen,
|
14
|
+
langNameOnClick,
|
15
|
+
langProgressOnClick,
|
16
|
+
taskTitleOnClick
|
17
|
+
} = config;
|
18
|
+
const { getTasks, getTasksCount } = config;
|
19
|
+
const fetchTasks = async () => {
|
20
|
+
setLoadingTasks(true);
|
21
|
+
const result = await getTasks();
|
22
|
+
setTasks(result);
|
23
|
+
setLoadingTasks(false);
|
24
|
+
return result;
|
25
|
+
};
|
26
|
+
const fetchTaskCount = async () => {
|
27
|
+
const result = await getTasksCount();
|
28
|
+
setTaskCount(result);
|
29
|
+
};
|
10
30
|
useEffectOnce(() => {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
handleTaskPopoverOpen();
|
16
|
-
document.addEventListener(TaskEvents.TaskCompleted, fetchTasks);
|
17
|
-
document.addEventListener(TaskEvents.TaskClosed, fetchTasks);
|
18
|
-
document.addEventListener(TaskEvents.Refresh, fetchTasks);
|
31
|
+
fetchTaskCount();
|
32
|
+
document.addEventListener(TaskEvents.TaskCompleted, fetchTaskCount);
|
33
|
+
document.addEventListener(TaskEvents.TaskClosed, fetchTaskCount);
|
34
|
+
document.addEventListener(TaskEvents.Refresh, fetchTaskCount);
|
19
35
|
return () => {
|
20
|
-
document.removeEventListener(TaskEvents.TaskCompleted,
|
21
|
-
document.removeEventListener(TaskEvents.TaskClosed,
|
22
|
-
document.removeEventListener(TaskEvents.Refresh,
|
36
|
+
document.removeEventListener(TaskEvents.TaskCompleted, fetchTaskCount);
|
37
|
+
document.removeEventListener(TaskEvents.TaskClosed, fetchTaskCount);
|
38
|
+
document.removeEventListener(TaskEvents.Refresh, fetchTaskCount);
|
23
39
|
};
|
24
40
|
});
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
|
41
|
+
const providerValue = {
|
42
|
+
fetchTasks,
|
43
|
+
tasks,
|
44
|
+
tasksCount,
|
45
|
+
loadingTasks,
|
46
|
+
getProjectUrl,
|
47
|
+
onLanguageCompleteConfirm,
|
48
|
+
onTasksWidgetOpen,
|
49
|
+
langNameOnClick,
|
50
|
+
langProgressOnClick,
|
51
|
+
taskTitleOnClick
|
52
|
+
};
|
53
|
+
return /* @__PURE__ */ jsx(TasksContext.Provider, { value: providerValue, children });
|
54
|
+
};
|
55
|
+
const withTasksContext = (WrappedComponent) => function withTasksContextFn(props) {
|
56
|
+
const { config, ...rest } = props;
|
57
|
+
return /* @__PURE__ */ jsx(TasksProvider, { config, children: /* @__PURE__ */ jsx(WrappedComponent, { ...rest }) });
|
39
58
|
};
|
40
59
|
export {
|
41
|
-
|
60
|
+
TasksProvider,
|
61
|
+
withTasksContext
|
42
62
|
};
|
43
63
|
//# sourceMappingURL=harmony104.mjs.map
|
package/dist/harmony104.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony104.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/
|
1
|
+
{"version":3,"file":"harmony104.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/TasksProvider.tsx"],"sourcesContent":["import { useEffectOnce } from '@utils'\nimport { type FC, type PropsWithChildren, useState } from 'react'\nimport { TasksContext } from './TasksContext'\nimport type { SidebarTask, SidebarTasksConfig, SidebarTasksContextProps } from './types'\nimport { TaskEvents } from './utils/taskEvents'\n\ntype TasksProviderProps = PropsWithChildren<{\n\tconfig: SidebarTasksConfig\n}>\n\nexport const TasksProvider = ({ children, config }: TasksProviderProps) => {\n\tconst [tasks, setTasks] = useState<SidebarTask[]>([])\n\tconst [loadingTasks, setLoadingTasks] = useState(true)\n\n\tconst [tasksCount, setTaskCount] = useState(0)\n\n\tconst {\n\t\tgetProjectUrl,\n\t\tonLanguageCompleteConfirm,\n\t\tonTasksWidgetOpen,\n\t\tlangNameOnClick,\n\t\tlangProgressOnClick,\n\t\ttaskTitleOnClick,\n\t} = config\n\n\tconst { getTasks, getTasksCount } = config\n\n\tconst fetchTasks = async () => {\n\t\tsetLoadingTasks(true)\n\t\tconst result = await getTasks()\n\t\tsetTasks(result)\n\t\tsetLoadingTasks(false)\n\t\treturn result\n\t}\n\n\tconst fetchTaskCount = async () => {\n\t\tconst result = await getTasksCount()\n\t\tsetTaskCount(result)\n\t}\n\n\tuseEffectOnce(() => {\n\t\tfetchTaskCount()\n\n\t\tdocument.addEventListener(TaskEvents.TaskCompleted, fetchTaskCount)\n\t\tdocument.addEventListener(TaskEvents.TaskClosed, fetchTaskCount)\n\t\tdocument.addEventListener(TaskEvents.Refresh, fetchTaskCount)\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(TaskEvents.TaskCompleted, fetchTaskCount)\n\t\t\tdocument.removeEventListener(TaskEvents.TaskClosed, fetchTaskCount)\n\t\t\tdocument.removeEventListener(TaskEvents.Refresh, fetchTaskCount)\n\t\t}\n\t})\n\n\tconst providerValue: SidebarTasksContextProps = {\n\t\tfetchTasks,\n\t\ttasks,\n\t\ttasksCount,\n\t\tloadingTasks,\n\t\tgetProjectUrl,\n\t\tonLanguageCompleteConfirm,\n\t\tonTasksWidgetOpen,\n\t\tlangNameOnClick,\n\t\tlangProgressOnClick,\n\t\ttaskTitleOnClick,\n\t}\n\n\treturn <TasksContext.Provider value={providerValue}>{children}</TasksContext.Provider>\n}\n\nexport const withTasksContext = <P extends { config: SidebarTasksConfig }>(\n\tWrappedComponent: FC<Omit<P, 'config'>>,\n) =>\n\tfunction withTasksContextFn(props: P) {\n\t\tconst { config, ...rest } = props\n\n\t\treturn (\n\t\t\t<TasksProvider config={config}>\n\t\t\t\t<WrappedComponent {...rest} />\n\t\t\t</TasksProvider>\n\t\t)\n\t}\n"],"names":[],"mappings":";;;;;AAUO,MAAM,gBAAgB,CAAC,EAAE,UAAU,aAAiC;AAC1E,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAwB,CAAA,CAAE;AACpD,QAAM,CAAC,cAAc,eAAe,IAAI,SAAS,IAAI;AAErD,QAAM,CAAC,YAAY,YAAY,IAAI,SAAS,CAAC;AAEvC,QAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACG;AAEE,QAAA,EAAE,UAAU,cAAA,IAAkB;AAEpC,QAAM,aAAa,YAAY;AAC9B,oBAAgB,IAAI;AACd,UAAA,SAAS,MAAM,SAAS;AAC9B,aAAS,MAAM;AACf,oBAAgB,KAAK;AACd,WAAA;AAAA,EACR;AAEA,QAAM,iBAAiB,YAAY;AAC5B,UAAA,SAAS,MAAM,cAAc;AACnC,iBAAa,MAAM;AAAA,EACpB;AAEA,gBAAc,MAAM;AACJ,mBAAA;AAEN,aAAA,iBAAiB,WAAW,eAAe,cAAc;AACzD,aAAA,iBAAiB,WAAW,YAAY,cAAc;AACtD,aAAA,iBAAiB,WAAW,SAAS,cAAc;AAE5D,WAAO,MAAM;AACH,eAAA,oBAAoB,WAAW,eAAe,cAAc;AAC5D,eAAA,oBAAoB,WAAW,YAAY,cAAc;AACzD,eAAA,oBAAoB,WAAW,SAAS,cAAc;AAAA,IAChE;AAAA,EAAA,CACA;AAED,QAAM,gBAA0C;AAAA,IAC/C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAEA,6BAAQ,aAAa,UAAb,EAAsB,OAAO,eAAgB,UAAS;AAC/D;AAEO,MAAM,mBAAmB,CAC/B,qBAEA,SAAS,mBAAmB,OAAU;AACrC,QAAM,EAAE,QAAQ,GAAG,KAAA,IAAS;AAE5B,6BACE,eAAc,EAAA,QACd,8BAAC,kBAAkB,EAAA,GAAG,KAAM,CAAA,GAC7B;AAEF;"}
|
package/dist/harmony105.cjs
CHANGED
@@ -1,63 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
const TasksProvider = ({ children, config }) => {
|
9
|
-
const [tasks, setTasks] = React.useState([]);
|
10
|
-
const [loadingTasks, setLoadingTasks] = React.useState(true);
|
11
|
-
const [tasksCount, setTaskCount] = React.useState(0);
|
12
|
-
const {
|
13
|
-
getProjectUrl,
|
14
|
-
onLanguageCompleteConfirm,
|
15
|
-
onTasksWidgetOpen,
|
16
|
-
langNameOnClick,
|
17
|
-
langProgressOnClick,
|
18
|
-
taskTitleOnClick
|
19
|
-
} = config;
|
20
|
-
const { getTasks, getTasksCount } = config;
|
21
|
-
const fetchTasks = async () => {
|
22
|
-
setLoadingTasks(true);
|
23
|
-
const result = await getTasks();
|
24
|
-
setTasks(result);
|
25
|
-
setLoadingTasks(false);
|
26
|
-
return result;
|
27
|
-
};
|
28
|
-
const fetchTaskCount = async () => {
|
29
|
-
const result = await getTasksCount();
|
30
|
-
setTaskCount(result);
|
31
|
-
};
|
32
|
-
useEffectOnce.useEffectOnce(() => {
|
33
|
-
fetchTaskCount();
|
34
|
-
document.addEventListener(taskEvents.TaskEvents.TaskCompleted, fetchTaskCount);
|
35
|
-
document.addEventListener(taskEvents.TaskEvents.TaskClosed, fetchTaskCount);
|
36
|
-
document.addEventListener(taskEvents.TaskEvents.Refresh, fetchTaskCount);
|
37
|
-
return () => {
|
38
|
-
document.removeEventListener(taskEvents.TaskEvents.TaskCompleted, fetchTaskCount);
|
39
|
-
document.removeEventListener(taskEvents.TaskEvents.TaskClosed, fetchTaskCount);
|
40
|
-
document.removeEventListener(taskEvents.TaskEvents.Refresh, fetchTaskCount);
|
41
|
-
};
|
42
|
-
});
|
43
|
-
const providerValue = {
|
44
|
-
fetchTasks,
|
45
|
-
tasks,
|
46
|
-
tasksCount,
|
47
|
-
loadingTasks,
|
48
|
-
getProjectUrl,
|
49
|
-
onLanguageCompleteConfirm,
|
50
|
-
onTasksWidgetOpen,
|
51
|
-
langNameOnClick,
|
52
|
-
langProgressOnClick,
|
53
|
-
taskTitleOnClick
|
54
|
-
};
|
55
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TasksContext.TasksContext.Provider, { value: providerValue, children });
|
3
|
+
const TaskEvents = {
|
4
|
+
TaskCompleted: "task_completed",
|
5
|
+
TaskClosed: "task_closed",
|
6
|
+
Refresh: "refresh",
|
7
|
+
ShowDialog: "show_dialog"
|
56
8
|
};
|
57
|
-
|
58
|
-
const { config, ...rest } = props;
|
59
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TasksProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(WrappedComponent, { ...rest }) });
|
60
|
-
};
|
61
|
-
exports.TasksProvider = TasksProvider;
|
62
|
-
exports.withTasksContext = withTasksContext;
|
9
|
+
exports.TaskEvents = TaskEvents;
|
63
10
|
//# sourceMappingURL=harmony105.cjs.map
|
package/dist/harmony105.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony105.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/
|
1
|
+
{"version":3,"file":"harmony105.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/utils/taskEvents.ts"],"sourcesContent":["import type { TypesFromMap } from '@utils'\n\nexport const TaskEvents = {\n\tTaskCompleted: 'task_completed',\n\tTaskClosed: 'task_closed',\n\tRefresh: 'refresh',\n\tShowDialog: 'show_dialog',\n} as const\n\nexport type TaskEvent = TypesFromMap<typeof TaskEvents>\n\ntype SingleTaskPayload = {\n\ttaskId: string | number\n}\n\ntype DispatchTaskEventPayload =\n\t| {\n\t\t\tname: typeof TaskEvents.TaskCompleted\n\t\t\tdetail: SingleTaskPayload\n\t }\n\t| {\n\t\t\tname: typeof TaskEvents.TaskClosed\n\t\t\tdetail: SingleTaskPayload\n\t }\n\t| {\n\t\t\tname: typeof TaskEvents.Refresh\n\t }\n\t| {\n\t\t\tname: typeof TaskEvents.ShowDialog\n\t }\n\nexport const dispatchTaskEvent = (props: DispatchTaskEventPayload) => {\n\tconst { name } = props\n\tdocument.dispatchEvent(new CustomEvent(name, { detail: 'detail' in props ? props.detail : {} }))\n}\n"],"names":[],"mappings":";;AAEO,MAAM,aAAa;AAAA,EACzB,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,YAAY;AACb;;"}
|
package/dist/harmony105.mjs
CHANGED
@@ -1,63 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
const TasksProvider = ({ children, config }) => {
|
7
|
-
const [tasks, setTasks] = useState([]);
|
8
|
-
const [loadingTasks, setLoadingTasks] = useState(true);
|
9
|
-
const [tasksCount, setTaskCount] = useState(0);
|
10
|
-
const {
|
11
|
-
getProjectUrl,
|
12
|
-
onLanguageCompleteConfirm,
|
13
|
-
onTasksWidgetOpen,
|
14
|
-
langNameOnClick,
|
15
|
-
langProgressOnClick,
|
16
|
-
taskTitleOnClick
|
17
|
-
} = config;
|
18
|
-
const { getTasks, getTasksCount } = config;
|
19
|
-
const fetchTasks = async () => {
|
20
|
-
setLoadingTasks(true);
|
21
|
-
const result = await getTasks();
|
22
|
-
setTasks(result);
|
23
|
-
setLoadingTasks(false);
|
24
|
-
return result;
|
25
|
-
};
|
26
|
-
const fetchTaskCount = async () => {
|
27
|
-
const result = await getTasksCount();
|
28
|
-
setTaskCount(result);
|
29
|
-
};
|
30
|
-
useEffectOnce(() => {
|
31
|
-
fetchTaskCount();
|
32
|
-
document.addEventListener(TaskEvents.TaskCompleted, fetchTaskCount);
|
33
|
-
document.addEventListener(TaskEvents.TaskClosed, fetchTaskCount);
|
34
|
-
document.addEventListener(TaskEvents.Refresh, fetchTaskCount);
|
35
|
-
return () => {
|
36
|
-
document.removeEventListener(TaskEvents.TaskCompleted, fetchTaskCount);
|
37
|
-
document.removeEventListener(TaskEvents.TaskClosed, fetchTaskCount);
|
38
|
-
document.removeEventListener(TaskEvents.Refresh, fetchTaskCount);
|
39
|
-
};
|
40
|
-
});
|
41
|
-
const providerValue = {
|
42
|
-
fetchTasks,
|
43
|
-
tasks,
|
44
|
-
tasksCount,
|
45
|
-
loadingTasks,
|
46
|
-
getProjectUrl,
|
47
|
-
onLanguageCompleteConfirm,
|
48
|
-
onTasksWidgetOpen,
|
49
|
-
langNameOnClick,
|
50
|
-
langProgressOnClick,
|
51
|
-
taskTitleOnClick
|
52
|
-
};
|
53
|
-
return /* @__PURE__ */ jsx(TasksContext.Provider, { value: providerValue, children });
|
54
|
-
};
|
55
|
-
const withTasksContext = (WrappedComponent) => function withTasksContextFn(props) {
|
56
|
-
const { config, ...rest } = props;
|
57
|
-
return /* @__PURE__ */ jsx(TasksProvider, { config, children: /* @__PURE__ */ jsx(WrappedComponent, { ...rest }) });
|
1
|
+
const TaskEvents = {
|
2
|
+
TaskCompleted: "task_completed",
|
3
|
+
TaskClosed: "task_closed",
|
4
|
+
Refresh: "refresh",
|
5
|
+
ShowDialog: "show_dialog"
|
58
6
|
};
|
59
7
|
export {
|
60
|
-
|
61
|
-
withTasksContext
|
8
|
+
TaskEvents
|
62
9
|
};
|
63
10
|
//# sourceMappingURL=harmony105.mjs.map
|
package/dist/harmony105.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony105.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/
|
1
|
+
{"version":3,"file":"harmony105.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/utils/taskEvents.ts"],"sourcesContent":["import type { TypesFromMap } from '@utils'\n\nexport const TaskEvents = {\n\tTaskCompleted: 'task_completed',\n\tTaskClosed: 'task_closed',\n\tRefresh: 'refresh',\n\tShowDialog: 'show_dialog',\n} as const\n\nexport type TaskEvent = TypesFromMap<typeof TaskEvents>\n\ntype SingleTaskPayload = {\n\ttaskId: string | number\n}\n\ntype DispatchTaskEventPayload =\n\t| {\n\t\t\tname: typeof TaskEvents.TaskCompleted\n\t\t\tdetail: SingleTaskPayload\n\t }\n\t| {\n\t\t\tname: typeof TaskEvents.TaskClosed\n\t\t\tdetail: SingleTaskPayload\n\t }\n\t| {\n\t\t\tname: typeof TaskEvents.Refresh\n\t }\n\t| {\n\t\t\tname: typeof TaskEvents.ShowDialog\n\t }\n\nexport const dispatchTaskEvent = (props: DispatchTaskEventPayload) => {\n\tconst { name } = props\n\tdocument.dispatchEvent(new CustomEvent(name, { detail: 'detail' in props ? props.detail : {} }))\n}\n"],"names":[],"mappings":"AAEO,MAAM,aAAa;AAAA,EACzB,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,YAAY;AACb;"}
|
package/dist/harmony106.cjs
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
Refresh: "refresh",
|
7
|
-
ShowDialog: "show_dialog"
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const iconContainer = "_iconContainer_nz34m_1";
|
4
|
+
const styles = {
|
5
|
+
iconContainer
|
8
6
|
};
|
9
|
-
exports.
|
7
|
+
exports.default = styles;
|
8
|
+
exports.iconContainer = iconContainer;
|
10
9
|
//# sourceMappingURL=harmony106.cjs.map
|
package/dist/harmony106.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony106.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony106.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony106.mjs
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
const
|
2
|
-
|
3
|
-
|
4
|
-
Refresh: "refresh",
|
5
|
-
ShowDialog: "show_dialog"
|
1
|
+
const iconContainer = "_iconContainer_nz34m_1";
|
2
|
+
const styles = {
|
3
|
+
iconContainer
|
6
4
|
};
|
7
5
|
export {
|
8
|
-
|
6
|
+
styles as default,
|
7
|
+
iconContainer
|
9
8
|
};
|
10
9
|
//# sourceMappingURL=harmony106.mjs.map
|
package/dist/harmony106.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony106.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony106.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony115.cjs
CHANGED
@@ -8,7 +8,7 @@ const date = require("./harmony10.cjs");
|
|
8
8
|
const dateFns = require("date-fns");
|
9
9
|
const index = require("./harmony124.cjs");
|
10
10
|
const TaskLanguage = require("./harmony125.cjs");
|
11
|
-
const TasksContext = require("./
|
11
|
+
const TasksContext = require("./harmony102.cjs");
|
12
12
|
const content = require("./harmony126.cjs");
|
13
13
|
const TaskOverview_module = require("./harmony127.cjs");
|
14
14
|
const TaskOverview = ({ task }) => {
|
package/dist/harmony115.mjs
CHANGED
@@ -6,7 +6,7 @@ import { formatDate } from "./harmony10.mjs";
|
|
6
6
|
import { parseISO } from "date-fns";
|
7
7
|
import { splitFileName } from "./harmony124.mjs";
|
8
8
|
import { TaskLanguage } from "./harmony125.mjs";
|
9
|
-
import { useTasks } from "./
|
9
|
+
import { useTasks } from "./harmony102.mjs";
|
10
10
|
import { getTaskLanguages, tagColor } from "./harmony126.mjs";
|
11
11
|
import styles from "./harmony127.mjs";
|
12
12
|
const TaskOverview = ({ task }) => {
|
package/dist/harmony125.cjs
CHANGED
@@ -6,7 +6,7 @@ const content = require("./harmony126.cjs");
|
|
6
6
|
const types = require("./harmony2.cjs");
|
7
7
|
const clsx = require("./harmony65.cjs");
|
8
8
|
const TaskLanguageCompleted = require("./harmony132.cjs");
|
9
|
-
const TasksContext = require("./
|
9
|
+
const TasksContext = require("./harmony102.cjs");
|
10
10
|
const TaskLanguage_module = require("./harmony133.cjs");
|
11
11
|
const TaskLanguage = ({ language, task }) => {
|
12
12
|
const { getProjectUrl, langNameOnClick, langProgressOnClick } = TasksContext.useTasks();
|
package/dist/harmony125.mjs
CHANGED
@@ -4,7 +4,7 @@ import { isLanguageProgressCompleted, getStatusText } from "./harmony126.mjs";
|
|
4
4
|
import { SidebarTaskLanguageStatuses } from "./harmony2.mjs";
|
5
5
|
import { clsx } from "./harmony65.mjs";
|
6
6
|
import { TaskLanguageCompleted } from "./harmony132.mjs";
|
7
|
-
import { useTasks } from "./
|
7
|
+
import { useTasks } from "./harmony102.mjs";
|
8
8
|
import styles from "./harmony133.mjs";
|
9
9
|
const TaskLanguage = ({ language, task }) => {
|
10
10
|
const { getProjectUrl, langNameOnClick, langProgressOnClick } = useTasks();
|
package/dist/harmony132.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const React = require("react");
|
6
|
-
const TasksContext = require("./
|
6
|
+
const TasksContext = require("./harmony102.cjs");
|
7
7
|
const TaskLanguageCompleted = ({ task, language }) => {
|
8
8
|
const [loading, setLoading] = React.useState(false);
|
9
9
|
const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = React.useState(false);
|
package/dist/harmony132.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
2
2
|
import { ConfirmModal, Alert, Link } from "@lokalise/louis";
|
3
3
|
import { useState } from "react";
|
4
|
-
import { useTasks } from "./
|
4
|
+
import { useTasks } from "./harmony102.mjs";
|
5
5
|
const TaskLanguageCompleted = ({ task, language }) => {
|
6
6
|
const [loading, setLoading] = useState(false);
|
7
7
|
const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false);
|
package/dist/harmony54.cjs
CHANGED
@@ -46,7 +46,9 @@ const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = zod.z.object({
|
|
46
46
|
const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = zod.z.object({
|
47
47
|
project_id: zod.z.string(),
|
48
48
|
project_uuid: zod.z.string().uuid(),
|
49
|
-
languages: zod.z.array(
|
49
|
+
languages: zod.z.array(
|
50
|
+
LANGUAGE_SCHEMA.partial({ project_language_id: true, project_language_uuid: true })
|
51
|
+
),
|
50
52
|
errors: zod.z.array(
|
51
53
|
zod.z.object({
|
52
54
|
message: zod.z.string(),
|
package/dist/harmony54.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony54.cjs","sources":["../src/features/publicApi/types/languageTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const LANGUAGE_ISO_SCHEMA = z.object({\n\tlang_iso: z.string(),\n\tcustom_iso: z.string().optional(),\n})\n\nexport type LanguageIso = z.infer<typeof LANGUAGE_ISO_SCHEMA>\n\nexport const LANGUAGE_STATISTICS_SCHEMA = z.object({\n\tlanguage_id: z.number(),\n\tlanguage_iso: z.string(),\n\tprogress: z.number(),\n\twords_to_do: z.number(),\n\tproject_language_id: z.number(),\n\tproject_language_uuid: z.string().uuid(),\n})\n\nexport type LanguageStatistics = z.infer<typeof LANGUAGE_STATISTICS_SCHEMA>\n\nexport const LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport const LANGUAGE_SCHEMA = z.object({\n\tlang_id: z.number(),\n\tlang_iso: z.string(),\n\tlang_name: z.string(),\n\tis_rtl: z.boolean(),\n\tplural_forms: z.array(z.string().optional()),\n\tproject_language_id: z.string(),\n\tproject_language_uuid: z.string().uuid(),\n})\n\nexport type Language = z.infer<typeof LANGUAGE_SCHEMA>\n\nexport const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({\n\tproject_id: z.string(),\n\tproject_uuid: z.string().uuid(),\n\tlanguages: z.array(LANGUAGE_SCHEMA),\n})\n\nexport type ListProjectLanguagesResponse = z.infer<typeof LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA>\n\nexport const ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport type AddLanguagesToProjectPathParams = z.infer<\n\ttypeof ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA\n>\n\nexport const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = z.object({\n\tlanguages: z.array(\n\t\tz.object({\n\t\t\tlang_iso: z.string(),\n\t\t\tcustom_iso: z.string().optional(),\n\t\t\tcustom_name: z.string().optional(),\n\t\t\tcustom_plural_forms: z.array(z.string()).optional(),\n\t\t}),\n\t),\n})\n\nexport type AddLanguagesToProjectRequestBody = z.infer<\n\ttypeof ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA\n>\n\nexport const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = z.object({\n\tproject_id: z.string(),\n\tproject_uuid: z.string().uuid(),\n\tlanguages: z.array(
|
1
|
+
{"version":3,"file":"harmony54.cjs","sources":["../src/features/publicApi/types/languageTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const LANGUAGE_ISO_SCHEMA = z.object({\n\tlang_iso: z.string(),\n\tcustom_iso: z.string().optional(),\n})\n\nexport type LanguageIso = z.infer<typeof LANGUAGE_ISO_SCHEMA>\n\nexport const LANGUAGE_STATISTICS_SCHEMA = z.object({\n\tlanguage_id: z.number(),\n\tlanguage_iso: z.string(),\n\tprogress: z.number(),\n\twords_to_do: z.number(),\n\tproject_language_id: z.number(),\n\tproject_language_uuid: z.string().uuid(),\n})\n\nexport type LanguageStatistics = z.infer<typeof LANGUAGE_STATISTICS_SCHEMA>\n\nexport const LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport const LANGUAGE_SCHEMA = z.object({\n\tlang_id: z.number(),\n\tlang_iso: z.string(),\n\tlang_name: z.string(),\n\tis_rtl: z.boolean(),\n\tplural_forms: z.array(z.string().optional()),\n\tproject_language_id: z.string(),\n\tproject_language_uuid: z.string().uuid(),\n})\n\nexport type Language = z.infer<typeof LANGUAGE_SCHEMA>\n\nexport const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({\n\tproject_id: z.string(),\n\tproject_uuid: z.string().uuid(),\n\tlanguages: z.array(LANGUAGE_SCHEMA),\n})\n\nexport type ListProjectLanguagesResponse = z.infer<typeof LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA>\n\nexport const ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport type AddLanguagesToProjectPathParams = z.infer<\n\ttypeof ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA\n>\n\nexport const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = z.object({\n\tlanguages: z.array(\n\t\tz.object({\n\t\t\tlang_iso: z.string(),\n\t\t\tcustom_iso: z.string().optional(),\n\t\t\tcustom_name: z.string().optional(),\n\t\t\tcustom_plural_forms: z.array(z.string()).optional(),\n\t\t}),\n\t),\n})\n\nexport type AddLanguagesToProjectRequestBody = z.infer<\n\ttypeof ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA\n>\n\nexport const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = z.object({\n\tproject_id: z.string(),\n\tproject_uuid: z.string().uuid(),\n\tlanguages: z.array(\n\t\tLANGUAGE_SCHEMA.partial({ project_language_id: true, project_language_uuid: true }),\n\t),\n\terrors: z\n\t\t.array(\n\t\t\tz.object({\n\t\t\t\tmessage: z.string(),\n\t\t\t\tcode: z.number(),\n\t\t\t\tlang_iso: z.string(),\n\t\t\t}),\n\t\t)\n\t\t.optional(),\n})\n\nexport type AddLanguagesToProjectResponse = z.infer<typeof ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA>\n\nexport const BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport type BulkUpdateProjectLanguagesPathParams = z.infer<\n\ttypeof BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA\n>\n\nexport const BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA = z.object({\n\tlangs: z.array(\n\t\tz.object({\n\t\t\tlang_iso: z.string(),\n\t\t\tbase_lang: z.boolean(),\n\t\t}),\n\t),\n})\n\nexport type BulkUpdateProjectLanguagesRequestBody = z.infer<\n\ttypeof BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA\n>\n\nexport const BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({\n\tresult: z.boolean(),\n})\n\nexport type BulkUpdateProjectLanguagesResponse = z.infer<\n\ttypeof BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA\n>\n"],"names":["z"],"mappings":";;;AAEa,MAAA,sBAAsBA,MAAE,OAAO;AAAA,EAC3C,UAAUA,MAAE,OAAO;AAAA,EACnB,YAAYA,IAAAA,EAAE,OAAO,EAAE,SAAS;AACjC,CAAC;AAIY,MAAA,6BAA6BA,MAAE,OAAO;AAAA,EAClD,aAAaA,MAAE,OAAO;AAAA,EACtB,cAAcA,MAAE,OAAO;AAAA,EACvB,UAAUA,MAAE,OAAO;AAAA,EACnB,aAAaA,MAAE,OAAO;AAAA,EACtB,qBAAqBA,MAAE,OAAO;AAAA,EAC9B,uBAAuBA,IAAAA,EAAE,OAAO,EAAE,KAAK;AACxC,CAAC;AAIY,MAAA,4CAA4CA,MAAE,OAAO;AAAA,EACjE,WAAWA,MAAE,OAAO;AACrB,CAAC;AAEY,MAAA,kBAAkBA,MAAE,OAAO;AAAA,EACvC,SAASA,MAAE,OAAO;AAAA,EAClB,UAAUA,MAAE,OAAO;AAAA,EACnB,WAAWA,MAAE,OAAO;AAAA,EACpB,QAAQA,MAAE,QAAQ;AAAA,EAClB,cAAcA,IAAE,EAAA,MAAMA,MAAE,OAAO,EAAE,UAAU;AAAA,EAC3C,qBAAqBA,MAAE,OAAO;AAAA,EAC9B,uBAAuBA,IAAAA,EAAE,OAAO,EAAE,KAAK;AACxC,CAAC;AAIY,MAAA,yCAAyCA,MAAE,OAAO;AAAA,EAC9D,YAAYA,MAAE,OAAO;AAAA,EACrB,cAAcA,IAAA,EAAE,OAAO,EAAE,KAAK;AAAA,EAC9B,WAAWA,IAAAA,EAAE,MAAM,eAAe;AACnC,CAAC;AAIY,MAAA,8CAA8CA,MAAE,OAAO;AAAA,EACnE,WAAWA,MAAE,OAAO;AACrB,CAAC;AAMY,MAAA,+CAA+CA,MAAE,OAAO;AAAA,EACpE,WAAWA,IAAE,EAAA;AAAA,IACZA,IAAAA,EAAE,OAAO;AAAA,MACR,UAAUA,MAAE,OAAO;AAAA,MACnB,YAAYA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,MAChC,aAAaA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,MACjC,qBAAqBA,IAAE,EAAA,MAAMA,MAAE,OAAO,CAAC,EAAE,SAAS;AAAA,IAClD,CAAA;AAAA,EAAA;AAEH,CAAC;AAMY,MAAA,2CAA2CA,MAAE,OAAO;AAAA,EAChE,YAAYA,MAAE,OAAO;AAAA,EACrB,cAAcA,IAAA,EAAE,OAAO,EAAE,KAAK;AAAA,EAC9B,WAAWA,IAAE,EAAA;AAAA,IACZ,gBAAgB,QAAQ,EAAE,qBAAqB,MAAM,uBAAuB,KAAM,CAAA;AAAA,EACnF;AAAA,EACA,QAAQA,IACN,EAAA;AAAA,IACAA,IAAAA,EAAE,OAAO;AAAA,MACR,SAASA,MAAE,OAAO;AAAA,MAClB,MAAMA,MAAE,OAAO;AAAA,MACf,UAAUA,MAAE,OAAO;AAAA,IACnB,CAAA;AAAA,EAAA,EAED,SAAS;AACZ,CAAC;AAIY,MAAA,mDAAmDA,MAAE,OAAO;AAAA,EACxE,WAAWA,MAAE,OAAO;AACrB,CAAC;AAMY,MAAA,oDAAoDA,MAAE,OAAO;AAAA,EACzE,OAAOA,IAAE,EAAA;AAAA,IACRA,IAAAA,EAAE,OAAO;AAAA,MACR,UAAUA,MAAE,OAAO;AAAA,MACnB,WAAWA,MAAE,QAAQ;AAAA,IACrB,CAAA;AAAA,EAAA;AAEH,CAAC;AAMY,MAAA,gDAAgDA,MAAE,OAAO;AAAA,EACrE,QAAQA,MAAE,QAAQ;AACnB,CAAC;;;;;;;;;;;;"}
|
package/dist/harmony54.mjs
CHANGED
@@ -44,7 +44,9 @@ const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = z.object({
|
|
44
44
|
const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = z.object({
|
45
45
|
project_id: z.string(),
|
46
46
|
project_uuid: z.string().uuid(),
|
47
|
-
languages: z.array(
|
47
|
+
languages: z.array(
|
48
|
+
LANGUAGE_SCHEMA.partial({ project_language_id: true, project_language_uuid: true })
|
49
|
+
),
|
48
50
|
errors: z.array(
|
49
51
|
z.object({
|
50
52
|
message: z.string(),
|
package/dist/harmony54.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony54.mjs","sources":["../src/features/publicApi/types/languageTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const LANGUAGE_ISO_SCHEMA = z.object({\n\tlang_iso: z.string(),\n\tcustom_iso: z.string().optional(),\n})\n\nexport type LanguageIso = z.infer<typeof LANGUAGE_ISO_SCHEMA>\n\nexport const LANGUAGE_STATISTICS_SCHEMA = z.object({\n\tlanguage_id: z.number(),\n\tlanguage_iso: z.string(),\n\tprogress: z.number(),\n\twords_to_do: z.number(),\n\tproject_language_id: z.number(),\n\tproject_language_uuid: z.string().uuid(),\n})\n\nexport type LanguageStatistics = z.infer<typeof LANGUAGE_STATISTICS_SCHEMA>\n\nexport const LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport const LANGUAGE_SCHEMA = z.object({\n\tlang_id: z.number(),\n\tlang_iso: z.string(),\n\tlang_name: z.string(),\n\tis_rtl: z.boolean(),\n\tplural_forms: z.array(z.string().optional()),\n\tproject_language_id: z.string(),\n\tproject_language_uuid: z.string().uuid(),\n})\n\nexport type Language = z.infer<typeof LANGUAGE_SCHEMA>\n\nexport const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({\n\tproject_id: z.string(),\n\tproject_uuid: z.string().uuid(),\n\tlanguages: z.array(LANGUAGE_SCHEMA),\n})\n\nexport type ListProjectLanguagesResponse = z.infer<typeof LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA>\n\nexport const ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport type AddLanguagesToProjectPathParams = z.infer<\n\ttypeof ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA\n>\n\nexport const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = z.object({\n\tlanguages: z.array(\n\t\tz.object({\n\t\t\tlang_iso: z.string(),\n\t\t\tcustom_iso: z.string().optional(),\n\t\t\tcustom_name: z.string().optional(),\n\t\t\tcustom_plural_forms: z.array(z.string()).optional(),\n\t\t}),\n\t),\n})\n\nexport type AddLanguagesToProjectRequestBody = z.infer<\n\ttypeof ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA\n>\n\nexport const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = z.object({\n\tproject_id: z.string(),\n\tproject_uuid: z.string().uuid(),\n\tlanguages: z.array(
|
1
|
+
{"version":3,"file":"harmony54.mjs","sources":["../src/features/publicApi/types/languageTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const LANGUAGE_ISO_SCHEMA = z.object({\n\tlang_iso: z.string(),\n\tcustom_iso: z.string().optional(),\n})\n\nexport type LanguageIso = z.infer<typeof LANGUAGE_ISO_SCHEMA>\n\nexport const LANGUAGE_STATISTICS_SCHEMA = z.object({\n\tlanguage_id: z.number(),\n\tlanguage_iso: z.string(),\n\tprogress: z.number(),\n\twords_to_do: z.number(),\n\tproject_language_id: z.number(),\n\tproject_language_uuid: z.string().uuid(),\n})\n\nexport type LanguageStatistics = z.infer<typeof LANGUAGE_STATISTICS_SCHEMA>\n\nexport const LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport const LANGUAGE_SCHEMA = z.object({\n\tlang_id: z.number(),\n\tlang_iso: z.string(),\n\tlang_name: z.string(),\n\tis_rtl: z.boolean(),\n\tplural_forms: z.array(z.string().optional()),\n\tproject_language_id: z.string(),\n\tproject_language_uuid: z.string().uuid(),\n})\n\nexport type Language = z.infer<typeof LANGUAGE_SCHEMA>\n\nexport const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({\n\tproject_id: z.string(),\n\tproject_uuid: z.string().uuid(),\n\tlanguages: z.array(LANGUAGE_SCHEMA),\n})\n\nexport type ListProjectLanguagesResponse = z.infer<typeof LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA>\n\nexport const ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport type AddLanguagesToProjectPathParams = z.infer<\n\ttypeof ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA\n>\n\nexport const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = z.object({\n\tlanguages: z.array(\n\t\tz.object({\n\t\t\tlang_iso: z.string(),\n\t\t\tcustom_iso: z.string().optional(),\n\t\t\tcustom_name: z.string().optional(),\n\t\t\tcustom_plural_forms: z.array(z.string()).optional(),\n\t\t}),\n\t),\n})\n\nexport type AddLanguagesToProjectRequestBody = z.infer<\n\ttypeof ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA\n>\n\nexport const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = z.object({\n\tproject_id: z.string(),\n\tproject_uuid: z.string().uuid(),\n\tlanguages: z.array(\n\t\tLANGUAGE_SCHEMA.partial({ project_language_id: true, project_language_uuid: true }),\n\t),\n\terrors: z\n\t\t.array(\n\t\t\tz.object({\n\t\t\t\tmessage: z.string(),\n\t\t\t\tcode: z.number(),\n\t\t\t\tlang_iso: z.string(),\n\t\t\t}),\n\t\t)\n\t\t.optional(),\n})\n\nexport type AddLanguagesToProjectResponse = z.infer<typeof ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA>\n\nexport const BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = z.object({\n\tprojectId: z.string(),\n})\n\nexport type BulkUpdateProjectLanguagesPathParams = z.infer<\n\ttypeof BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA\n>\n\nexport const BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA = z.object({\n\tlangs: z.array(\n\t\tz.object({\n\t\t\tlang_iso: z.string(),\n\t\t\tbase_lang: z.boolean(),\n\t\t}),\n\t),\n})\n\nexport type BulkUpdateProjectLanguagesRequestBody = z.infer<\n\ttypeof BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA\n>\n\nexport const BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({\n\tresult: z.boolean(),\n})\n\nexport type BulkUpdateProjectLanguagesResponse = z.infer<\n\ttypeof BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA\n>\n"],"names":[],"mappings":";AAEa,MAAA,sBAAsB,EAAE,OAAO;AAAA,EAC3C,UAAU,EAAE,OAAO;AAAA,EACnB,YAAY,EAAE,OAAO,EAAE,SAAS;AACjC,CAAC;AAIY,MAAA,6BAA6B,EAAE,OAAO;AAAA,EAClD,aAAa,EAAE,OAAO;AAAA,EACtB,cAAc,EAAE,OAAO;AAAA,EACvB,UAAU,EAAE,OAAO;AAAA,EACnB,aAAa,EAAE,OAAO;AAAA,EACtB,qBAAqB,EAAE,OAAO;AAAA,EAC9B,uBAAuB,EAAE,OAAO,EAAE,KAAK;AACxC,CAAC;AAIY,MAAA,4CAA4C,EAAE,OAAO;AAAA,EACjE,WAAW,EAAE,OAAO;AACrB,CAAC;AAEY,MAAA,kBAAkB,EAAE,OAAO;AAAA,EACvC,SAAS,EAAE,OAAO;AAAA,EAClB,UAAU,EAAE,OAAO;AAAA,EACnB,WAAW,EAAE,OAAO;AAAA,EACpB,QAAQ,EAAE,QAAQ;AAAA,EAClB,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU;AAAA,EAC3C,qBAAqB,EAAE,OAAO;AAAA,EAC9B,uBAAuB,EAAE,OAAO,EAAE,KAAK;AACxC,CAAC;AAIY,MAAA,yCAAyC,EAAE,OAAO;AAAA,EAC9D,YAAY,EAAE,OAAO;AAAA,EACrB,cAAc,EAAE,OAAO,EAAE,KAAK;AAAA,EAC9B,WAAW,EAAE,MAAM,eAAe;AACnC,CAAC;AAIY,MAAA,8CAA8C,EAAE,OAAO;AAAA,EACnE,WAAW,EAAE,OAAO;AACrB,CAAC;AAMY,MAAA,+CAA+C,EAAE,OAAO;AAAA,EACpE,WAAW,EAAE;AAAA,IACZ,EAAE,OAAO;AAAA,MACR,UAAU,EAAE,OAAO;AAAA,MACnB,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,MAChC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,MACjC,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,IAClD,CAAA;AAAA,EAAA;AAEH,CAAC;AAMY,MAAA,2CAA2C,EAAE,OAAO;AAAA,EAChE,YAAY,EAAE,OAAO;AAAA,EACrB,cAAc,EAAE,OAAO,EAAE,KAAK;AAAA,EAC9B,WAAW,EAAE;AAAA,IACZ,gBAAgB,QAAQ,EAAE,qBAAqB,MAAM,uBAAuB,KAAM,CAAA;AAAA,EACnF;AAAA,EACA,QAAQ,EACN;AAAA,IACA,EAAE,OAAO;AAAA,MACR,SAAS,EAAE,OAAO;AAAA,MAClB,MAAM,EAAE,OAAO;AAAA,MACf,UAAU,EAAE,OAAO;AAAA,IACnB,CAAA;AAAA,EAAA,EAED,SAAS;AACZ,CAAC;AAIY,MAAA,mDAAmD,EAAE,OAAO;AAAA,EACxE,WAAW,EAAE,OAAO;AACrB,CAAC;AAMY,MAAA,oDAAoD,EAAE,OAAO;AAAA,EACzE,OAAO,EAAE;AAAA,IACR,EAAE,OAAO;AAAA,MACR,UAAU,EAAE,OAAO;AAAA,MACnB,WAAW,EAAE,QAAQ;AAAA,IACrB,CAAA;AAAA,EAAA;AAEH,CAAC;AAMY,MAAA,gDAAgD,EAAE,OAAO;AAAA,EACrE,QAAQ,EAAE,QAAQ;AACnB,CAAC;"}
|
package/dist/harmony69.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const Avatar_module = require("./
|
4
|
+
const Avatar_module = require("./harmony84.cjs");
|
5
5
|
const Avatar = ({
|
6
6
|
src,
|
7
7
|
href = "/",
|
package/dist/harmony69.mjs
CHANGED
package/dist/harmony70.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony65.cjs");
|
6
|
-
const IconLink_module = require("./
|
6
|
+
const IconLink_module = require("./harmony85.cjs");
|
7
7
|
const IconLink = ({ label, to, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Link,
|
package/dist/harmony70.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Tooltip, Link } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony65.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony85.mjs";
|
5
5
|
const IconLink = ({ label, to, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
|
7
7
|
Link,
|
package/dist/harmony71.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony65.cjs");
|
6
|
-
const Menu_module = require("./
|
6
|
+
const Menu_module = require("./harmony86.cjs");
|
7
7
|
const Menu = ({ children, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Menu,
|
package/dist/harmony71.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony65.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony86.mjs";
|
5
5
|
const Menu = ({ children, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(
|
7
7
|
Menu$1,
|
package/dist/harmony72.cjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const ProfileMenuContent = require("./
|
5
|
-
const ProfileMenuProvider = require("./
|
4
|
+
const ProfileMenuContent = require("./harmony87.cjs");
|
5
|
+
const ProfileMenuProvider = require("./harmony88.cjs");
|
6
6
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
|
7
7
|
exports.ProfileMenu = ProfileMenu;
|
8
8
|
//# sourceMappingURL=harmony72.cjs.map
|
package/dist/harmony72.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { ProfileMenuContent } from "./
|
3
|
-
import { ProfileMenuProvider } from "./
|
2
|
+
import { ProfileMenuContent } from "./harmony87.mjs";
|
3
|
+
import { ProfileMenuProvider } from "./harmony88.mjs";
|
4
4
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
|
5
5
|
export {
|
6
6
|
ProfileMenu
|