@ynput/ayon-frontend-shared 0.2.5 → 0.2.6
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/ProjectTreeTable.cjs.js +16 -0
- package/dist/ProjectTreeTable.cjs.js.map +1 -1
- package/dist/ProjectTreeTable.es.js +16 -0
- package/dist/ProjectTreeTable.es.js.map +1 -1
- package/dist/_virtual/index.cjs10.js +3 -5
- package/dist/_virtual/index.cjs10.js.map +1 -1
- package/dist/_virtual/index.cjs4.js +4 -4
- package/dist/_virtual/index.cjs5.js +2 -2
- package/dist/_virtual/index.cjs6.js +4 -4
- package/dist/_virtual/index.cjs7.js +5 -3
- package/dist/_virtual/index.cjs7.js.map +1 -1
- package/dist/_virtual/index.cjs8.js +4 -4
- package/dist/_virtual/index.cjs9.js +4 -4
- package/dist/_virtual/index.es10.js +2 -5
- package/dist/_virtual/index.es10.js.map +1 -1
- package/dist/_virtual/index.es4.js +4 -4
- package/dist/_virtual/index.es5.js +2 -2
- package/dist/_virtual/index.es6.js +4 -4
- package/dist/_virtual/index.es7.js +5 -2
- package/dist/_virtual/index.es7.js.map +1 -1
- package/dist/_virtual/index.es8.js +4 -4
- package/dist/_virtual/index.es9.js +4 -4
- package/dist/node_modules/match-sorter/dist/match-sorter.esm.cjs.js +1 -1
- package/dist/node_modules/match-sorter/dist/match-sorter.esm.es.js +1 -1
- package/dist/node_modules/parse-numeric-range/index.cjs.js +1 -1
- package/dist/node_modules/parse-numeric-range/index.es.js +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +2 -2
- package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +2 -2
- package/dist/node_modules/rehype-parse/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype-parse/lib/index.es.js +1 -1
- package/dist/node_modules/rehype-prism-plus/dist/index.es.cjs.js +1 -1
- package/dist/node_modules/rehype-prism-plus/dist/index.es.es.js +1 -1
- package/dist/node_modules/remove-accents/index.cjs.js +1 -1
- package/dist/node_modules/remove-accents/index.es.js +1 -1
- package/dist/node_modules/vfile/lib/index.cjs.js +1 -1
- package/dist/node_modules/vfile/lib/index.es.js +1 -1
- package/dist/shared/src/api/generated/actions.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/actions.es.js.map +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js.map +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js.map +1 -1
- package/dist/shared/src/containers/Actions/ActionsDropdown/ActionsDropdown.styled.cjs.js +1 -0
- package/dist/shared/src/containers/Actions/ActionsDropdown/ActionsDropdown.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/Actions/ActionsDropdown/ActionsDropdown.styled.es.js +1 -0
- package/dist/shared/src/containers/Actions/ActionsDropdown/ActionsDropdown.styled.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/context/FeedContext.cjs.js +2 -2
- package/dist/shared/src/containers/Feed/context/FeedContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/context/FeedContext.es.js +2 -2
- package/dist/shared/src/containers/Feed/context/FeedContext.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -7
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +1 -7
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +0 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +0 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
- package/dist/shared/src/hooks/useLoadModules.cjs.js +9 -2
- package/dist/shared/src/hooks/useLoadModules.cjs.js.map +1 -1
- package/dist/shared/src/hooks/useLoadModules.es.js +9 -2
- package/dist/shared/src/hooks/useLoadModules.es.js.map +1 -1
- package/dist/shared/src/util/confirmDelete.cjs.js.map +1 -1
- package/dist/shared/src/util/confirmDelete.es.js.map +1 -1
- package/dist/types/api/generated/actions.d.ts +1 -1
- package/dist/types/containers/ProjectTreeTable/index.d.ts +1 -0
- package/dist/types/util/confirmDelete.d.ts +1 -2
- package/package.json +1 -1
|
@@ -21,6 +21,14 @@ const buildTreeTableColumns = require("./shared/src/containers/ProjectTreeTable/
|
|
|
21
21
|
const useGetEntityTypeData = require("./shared/src/containers/ProjectTreeTable/hooks/useGetEntityTypeData.cjs.js");
|
|
22
22
|
require("react-toastify");
|
|
23
23
|
require("react");
|
|
24
|
+
const CollapsedWidget = require("./shared/src/containers/ProjectTreeTable/widgets/CollapsedWidget.cjs.js");
|
|
25
|
+
const DateWidget = require("./shared/src/containers/ProjectTreeTable/widgets/DateWidget.cjs.js");
|
|
26
|
+
const EnumWidget = require("./shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js");
|
|
27
|
+
const TextWidget = require("./shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js");
|
|
28
|
+
const BooleanWidget = require("./shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.cjs.js");
|
|
29
|
+
const CellWidget = require("./shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js");
|
|
30
|
+
const EntityNameWidget = require("./shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js");
|
|
31
|
+
const ThumbnailWidget = require("./shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js");
|
|
24
32
|
exports.ProjectTreeTable = ProjectTreeTable.ProjectTreeTable;
|
|
25
33
|
exports.ROW_SELECTION_COLUMN_ID = SelectionCellsContext.ROW_SELECTION_COLUMN_ID;
|
|
26
34
|
exports.SelectionCellsProvider = SelectionCellsContext.SelectionCellsProvider;
|
|
@@ -60,4 +68,12 @@ exports.ProjectTableSelectionProvider = ProjectTableSelectionContext.ProjectTabl
|
|
|
60
68
|
exports.useProjectTableSelection = ProjectTableSelectionContext.useProjectTableSelection;
|
|
61
69
|
exports.getValueIdType = buildTreeTableColumns.getValueIdType;
|
|
62
70
|
exports.useGetEntityTypeData = useGetEntityTypeData;
|
|
71
|
+
exports.CollapsedWidget = CollapsedWidget.CollapsedWidget;
|
|
72
|
+
exports.DateWidget = DateWidget.DateWidget;
|
|
73
|
+
exports.EnumWidget = EnumWidget.EnumWidget;
|
|
74
|
+
exports.TextWidget = TextWidget.TextWidget;
|
|
75
|
+
exports.BooleanWidget = BooleanWidget.BooleanWidget;
|
|
76
|
+
exports.CellWidget = CellWidget.CellWidget;
|
|
77
|
+
exports.EntityNameWidget = EntityNameWidget.EntityNameWidget;
|
|
78
|
+
exports.ThumbnailWidget = ThumbnailWidget.ThumbnailWidget;
|
|
63
79
|
//# sourceMappingURL=ProjectTreeTable.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectTreeTable.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProjectTreeTable.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -19,11 +19,25 @@ import { getValueIdType } from "./shared/src/containers/ProjectTreeTable/buildTr
|
|
|
19
19
|
import { default as default2 } from "./shared/src/containers/ProjectTreeTable/hooks/useGetEntityTypeData.es.js";
|
|
20
20
|
import "react-toastify";
|
|
21
21
|
import "react";
|
|
22
|
+
import { CollapsedWidget } from "./shared/src/containers/ProjectTreeTable/widgets/CollapsedWidget.es.js";
|
|
23
|
+
import { DateWidget } from "./shared/src/containers/ProjectTreeTable/widgets/DateWidget.es.js";
|
|
24
|
+
import { EnumWidget } from "./shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js";
|
|
25
|
+
import { TextWidget } from "./shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js";
|
|
26
|
+
import { BooleanWidget } from "./shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.es.js";
|
|
27
|
+
import { CellWidget } from "./shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js";
|
|
28
|
+
import { EntityNameWidget } from "./shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js";
|
|
29
|
+
import { ThumbnailWidget } from "./shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js";
|
|
22
30
|
export {
|
|
31
|
+
BooleanWidget,
|
|
23
32
|
BorderPosition,
|
|
24
33
|
CellEditingProvider,
|
|
34
|
+
CellWidget,
|
|
25
35
|
ClipboardProvider,
|
|
36
|
+
CollapsedWidget,
|
|
26
37
|
ColumnSettingsProvider,
|
|
38
|
+
DateWidget,
|
|
39
|
+
EntityNameWidget,
|
|
40
|
+
EnumWidget,
|
|
27
41
|
ProjectTableProvider,
|
|
28
42
|
ProjectTableQueriesProvider,
|
|
29
43
|
ProjectTableSelectionProvider,
|
|
@@ -31,6 +45,8 @@ export {
|
|
|
31
45
|
ROW_SELECTION_COLUMN_ID,
|
|
32
46
|
SelectedRowsProvider,
|
|
33
47
|
SelectionCellsProvider,
|
|
48
|
+
TextWidget,
|
|
49
|
+
ThumbnailWidget,
|
|
34
50
|
builtInFieldMappings,
|
|
35
51
|
clientFilterToQueryFilter,
|
|
36
52
|
clipboardError,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectTreeTable.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProjectTreeTable.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const extend = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(extendExports);
|
|
6
|
-
module.exports = extend;
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var removeAccents = { exports: {} };
|
|
4
|
+
exports.__module = removeAccents;
|
|
7
5
|
//# sourceMappingURL=index.cjs10.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs10.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs10.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/parse-numeric-range/index.cjs.js");
|
|
4
|
+
var parseNumericRangeExports = index.__require();
|
|
5
|
+
const n = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(parseNumericRangeExports);
|
|
6
|
+
module.exports = n;
|
|
7
7
|
//# sourceMappingURL=index.cjs4.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var
|
|
4
|
-
exports.__module =
|
|
3
|
+
var parseNumericRange = { exports: {} };
|
|
4
|
+
exports.__module = parseNumericRange;
|
|
5
5
|
//# sourceMappingURL=index.cjs5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/parse5/lib/parser/index.cjs.js");
|
|
4
|
+
var parserExports = index.__require();
|
|
5
|
+
const Parser5 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(parserExports);
|
|
6
|
+
module.exports = Parser5;
|
|
7
7
|
//# sourceMappingURL=index.cjs6.js.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
+
const index = require("../node_modules/is-buffer/index.cjs.js");
|
|
4
|
+
var isBufferExports = index.__require();
|
|
5
|
+
const isBuffer = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(isBufferExports);
|
|
6
|
+
module.exports = isBuffer;
|
|
5
7
|
//# sourceMappingURL=index.cjs7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs7.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/extend/index.cjs.js");
|
|
4
|
+
var extendExports = index.__require();
|
|
5
|
+
const extend = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(extendExports);
|
|
6
|
+
module.exports = extend;
|
|
7
7
|
//# sourceMappingURL=index.cjs8.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/remove-accents/index.cjs.js");
|
|
4
|
+
var removeAccentsExports = index.__require();
|
|
5
|
+
const removeAccents = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(removeAccentsExports);
|
|
6
|
+
module.exports = removeAccents;
|
|
7
7
|
//# sourceMappingURL=index.cjs9.js.map
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as requireExtend } from "../node_modules/extend/index.es.js";
|
|
3
|
-
var extendExports = requireExtend();
|
|
4
|
-
const extend = /* @__PURE__ */ getDefaultExportFromCjs(extendExports);
|
|
1
|
+
var removeAccents = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
removeAccents as __module
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=index.es10.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es10.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es10.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireParseNumericRange } from "../node_modules/parse-numeric-range/index.es.js";
|
|
3
|
+
var parseNumericRangeExports = requireParseNumericRange();
|
|
4
|
+
const n = /* @__PURE__ */ getDefaultExportFromCjs(parseNumericRangeExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
n as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es4.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireParser } from "../node_modules/parse5/lib/parser/index.es.js";
|
|
3
|
+
var parserExports = requireParser();
|
|
4
|
+
const Parser5 = /* @__PURE__ */ getDefaultExportFromCjs(parserExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
Parser5 as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es6.js.map
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
+
import { __require as requireIsBuffer } from "../node_modules/is-buffer/index.es.js";
|
|
3
|
+
var isBufferExports = requireIsBuffer();
|
|
4
|
+
const isBuffer = /* @__PURE__ */ getDefaultExportFromCjs(isBufferExports);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
isBuffer as default
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index.es7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es7.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireExtend } from "../node_modules/extend/index.es.js";
|
|
3
|
+
var extendExports = requireExtend();
|
|
4
|
+
const extend = /* @__PURE__ */ getDefaultExportFromCjs(extendExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
extend as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es8.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireRemoveAccents } from "../node_modules/remove-accents/index.es.js";
|
|
3
|
+
var removeAccentsExports = requireRemoveAccents();
|
|
4
|
+
const removeAccents = /* @__PURE__ */ getDefaultExportFromCjs(removeAccentsExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
removeAccents as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es9.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/index.
|
|
3
|
+
const index = require("../../_virtual/index.cjs5.js");
|
|
4
4
|
var hasRequiredParseNumericRange;
|
|
5
5
|
function requireParseNumericRange() {
|
|
6
6
|
if (hasRequiredParseNumericRange) return index.__module.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as parseNumericRange } from "../../_virtual/index.
|
|
1
|
+
import { __module as parseNumericRange } from "../../_virtual/index.es5.js";
|
|
2
2
|
var hasRequiredParseNumericRange;
|
|
3
3
|
function requireParseNumericRange() {
|
|
4
4
|
if (hasRequiredParseNumericRange) return parseNumericRange.exports;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index$3 = require("../../../../bail/index.cjs.js");
|
|
4
|
-
const index$5 = require("../../../../../_virtual/index.
|
|
5
|
-
const index = require("../../../../../_virtual/index.
|
|
4
|
+
const index$5 = require("../../../../../_virtual/index.cjs7.js");
|
|
5
|
+
const index = require("../../../../../_virtual/index.cjs8.js");
|
|
6
6
|
const index$2 = require("../../../../is-plain-obj/index.cjs.js");
|
|
7
7
|
const index$1 = require("../../../../trough/lib/index.cjs.js");
|
|
8
8
|
const index$4 = require("../../../../vfile/lib/index.cjs.js");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { bail } from "../../../../bail/index.es.js";
|
|
2
|
-
import isBuffer from "../../../../../_virtual/index.
|
|
3
|
-
import extend from "../../../../../_virtual/index.
|
|
2
|
+
import isBuffer from "../../../../../_virtual/index.es7.js";
|
|
3
|
+
import extend from "../../../../../_virtual/index.es8.js";
|
|
4
4
|
import isPlainObject from "../../../../is-plain-obj/index.es.js";
|
|
5
5
|
import { trough } from "../../../../trough/lib/index.es.js";
|
|
6
6
|
import { VFile } from "../../../../vfile/lib/index.es.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require("../../../_virtual/index.
|
|
2
|
+
const index = require("../../../_virtual/index.cjs6.js");
|
|
3
3
|
const errors = require("./errors.cjs.js");
|
|
4
4
|
const index$1 = require("../../hast-util-from-parse5/lib/index.cjs.js");
|
|
5
5
|
const base = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Parser5 from "../../../_virtual/index.
|
|
1
|
+
import Parser5 from "../../../_virtual/index.es6.js";
|
|
2
2
|
import { errors } from "./errors.es.js";
|
|
3
3
|
import { fromParse5 } from "../../hast-util-from-parse5/lib/index.es.js";
|
|
4
4
|
const base = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index$1 = require("../../hast-util-to-string/index.cjs.js");
|
|
4
|
-
const index$2 = require("../../../_virtual/index.
|
|
4
|
+
const index$2 = require("../../../_virtual/index.cjs4.js");
|
|
5
5
|
require("../../refractor/lib/common.cjs.js");
|
|
6
6
|
require("../../refractor/lib/all.cjs.js");
|
|
7
7
|
const index = require("../node_modules/unist-util-visit/lib/index.cjs.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toString } from "../../hast-util-to-string/index.es.js";
|
|
2
|
-
import n from "../../../_virtual/index.
|
|
2
|
+
import n from "../../../_virtual/index.es4.js";
|
|
3
3
|
import "../../refractor/lib/common.es.js";
|
|
4
4
|
import "../../refractor/lib/all.es.js";
|
|
5
5
|
import { visit } from "../node_modules/unist-util-visit/lib/index.es.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/index.
|
|
3
|
+
const index = require("../../_virtual/index.cjs10.js");
|
|
4
4
|
var hasRequiredRemoveAccents;
|
|
5
5
|
function requireRemoveAccents() {
|
|
6
6
|
if (hasRequiredRemoveAccents) return index.__module.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as removeAccents } from "../../_virtual/index.
|
|
1
|
+
import { __module as removeAccents } from "../../_virtual/index.es10.js";
|
|
2
2
|
var hasRequiredRemoveAccents;
|
|
3
3
|
function requireRemoveAccents() {
|
|
4
4
|
if (hasRequiredRemoveAccents) return removeAccents.exports;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index$1 = require("../../../_virtual/index.
|
|
3
|
+
const index$1 = require("../../../_virtual/index.cjs7.js");
|
|
4
4
|
const minpath_browser = require("./minpath.browser.cjs.js");
|
|
5
5
|
const minproc_browser = require("./minproc.browser.cjs.js");
|
|
6
6
|
const minurl_browser = require("./minurl.browser.cjs.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.cjs.js","sources":["../../../../../src/api/generated/actions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listAvailableActionsForContext: build.mutation<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n query: (queryArg) => ({\n url: `/api/actions/list`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n mode: queryArg.mode,\n },\n }),\n }),\n listAllActions: build.query<ListAllActionsApiResponse, ListAllActionsApiArg>({\n query: () => ({ url: `/api/actions/manage` }),\n }),\n configureAction: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/config`,\n method: 'POST',\n body: queryArg.actionConfig,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n executeAction: build.mutation<ExecuteActionApiResponse, ExecuteActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/execute`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n takeAction: build.query<TakeActionApiResponse, TakeActionApiArg>({\n query: (queryArg) => ({ url: `/api/actions/take/${queryArg.token}` }),\n }),\n abortAction: build.mutation<AbortActionApiResponse, AbortActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/abort/${queryArg.token}`,\n method: 'POST',\n body: queryArg.abortRequestModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListAvailableActionsForContextApiResponse =\n /** status 200 Successful Response */ AvailableActionsListModel\nexport type ListAvailableActionsForContextApiArg = {\n mode?: 'simple' | 'dynamic' | 'all'\n actionContext: ActionContext\n}\nexport type ListAllActionsApiResponse = /** status 200 Successful Response */ BaseActionManifest[]\nexport type ListAllActionsApiArg = void\nexport type ConfigureActionApiResponse = /** status 200 Successful Response */ object\nexport type ConfigureActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionConfig: ActionConfig\n}\nexport type ExecuteActionApiResponse = /** status 200 Successful Response */ ExecuteResponseModel\nexport type ExecuteActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionContext: ActionContext\n}\nexport type TakeActionApiResponse = /** status 200 Successful Response */ TakeResponseModel\nexport type TakeActionApiArg = {\n token: string\n}\nexport type AbortActionApiResponse = /** status 200 Successful Response */ any\nexport type AbortActionApiArg = {\n token: string\n abortRequestModel: AbortRequestModel\n}\nexport type IconModel = {\n type?: 'material-symbols' | 'url'\n /** The name of the icon (for type material-symbols) */\n name?: string\n /** The color of the icon (for type material-symbols) */\n color?: string\n /** The URL of the icon (for type url) */\n url?: string\n}\nexport type FormSelectOption = {\n value: string\n label: string\n icon?: string\n color?: string\n}\nexport type SimpleFormField = {\n type: 'text' | 'boolean' | 'select' | 'multiselect' | 'hidden' | 'integer' | 'float' | 'label'\n name: string\n label?: string\n placeholder?: any\n value?: string | number | number | boolean | string[]\n regex?: string\n multiline?: boolean\n syntax?: string\n options?: FormSelectOption[]\n highlight?: 'info' | 'warning' | 'error'\n min?: number | number\n max?: number | number\n}\nexport type BaseActionManifest = {\n /** The identifier of the action */\n identifier: string\n /** Human-friendly name of the action */\n label: string\n /** The label of the group the action belongs to */\n groupLabel?: string\n /** Action category */\n category?: string\n /** The order of the action */\n order?: number\n /** An icon for the action */\n icon?: IconModel\n /** List of fields to be displayed in the action settings */\n configFields?: SimpleFormField[]\n /** Sort icon to the top */\n featured?: boolean\n /** The name of the addon providing the action */\n addonName?: string\n /** The version of the addon providing the action */\n addonVersion?: string\n /** The settings variant of the addon */\n variant?: string\n}\nexport type AvailableActionsListModel = {\n /** The list of available actions */\n actions?: BaseActionManifest[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ActionContext = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n}\nexport type ActionConfig = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n /** The configuration of the action within the given context */\n value?: object\n}\nexport type ExecuteResponseModel = {\n /** The type of response */\n type?: 'form' | 'launcher' | 'navigate' | 'query' | 'redirect' | 'simple'\n /** Payload is still parsed even if the action failed, but the message is highlighted as an error.If the action execution is broken beyond repair, Raise an exception instead of returning a response. */\n success?: boolean\n /** The message to display */\n message?: string\n /** The payload of the response. Payload model is parsed by the client and its schema, is based on the type of action. */\n payload?: object\n}\nexport type TakeResponseModel = {\n eventId: string\n actionIdentifier: string\n args?: string[]\n context: ActionContext\n addonName: string\n addonVersion: string\n variant: string\n /** The user who initiated the action */\n userName: string\n}\nexport type AbortRequestModel = {\n message?: string\n}\n"],"names":["api"],"mappings":";;;AACM,MAAA,iBAAiBA,WAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,gCAAgC,MAAM,SAGpC;AAAA,MACA,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgB,MAAM,MAAuD;AAAA,MAC3E,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,iBAAiB,MAAM,SAA4D;AAAA,MACjF,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,eAAe,MAAM,SAAwD;AAAA,MAC3E,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,YAAY,MAAM,MAA+C;AAAA,MAC/D,OAAO,CAAC,cAAc,EAAE,KAAK,qBAAqB,SAAS,KAAK,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,aAAa,MAAM,SAAoD;AAAA,MACrE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,sBAAsB,SAAS,KAAK;AAAA,QACzC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;;"}
|
|
1
|
+
{"version":3,"file":"actions.cjs.js","sources":["../../../../../src/api/generated/actions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listAvailableActionsForContext: build.mutation<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n query: (queryArg) => ({\n url: `/api/actions/list`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n mode: queryArg.mode,\n },\n }),\n }),\n listAllActions: build.query<ListAllActionsApiResponse, ListAllActionsApiArg>({\n query: () => ({ url: `/api/actions/manage` }),\n }),\n configureAction: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/config`,\n method: 'POST',\n body: queryArg.actionConfig,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n executeAction: build.mutation<ExecuteActionApiResponse, ExecuteActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/execute`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n takeAction: build.query<TakeActionApiResponse, TakeActionApiArg>({\n query: (queryArg) => ({ url: `/api/actions/take/${queryArg.token}` }),\n }),\n abortAction: build.mutation<AbortActionApiResponse, AbortActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/abort/${queryArg.token}`,\n method: 'POST',\n body: queryArg.abortRequestModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListAvailableActionsForContextApiResponse =\n /** status 200 Successful Response */ AvailableActionsListModel\nexport type ListAvailableActionsForContextApiArg = {\n mode?: 'simple' | 'dynamic' | 'all'\n actionContext: ActionContext\n}\nexport type ListAllActionsApiResponse = /** status 200 Successful Response */ BaseActionManifest[]\nexport type ListAllActionsApiArg = void\nexport type ConfigureActionApiResponse = /** status 200 Successful Response */ object\nexport type ConfigureActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionConfig: ActionConfig\n}\nexport type ExecuteActionApiResponse = /** status 200 Successful Response */ ExecuteResponseModel\nexport type ExecuteActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionContext: ActionContext\n}\nexport type TakeActionApiResponse = /** status 200 Successful Response */ TakeResponseModel\nexport type TakeActionApiArg = {\n token: string\n}\nexport type AbortActionApiResponse = /** status 200 Successful Response */ any\nexport type AbortActionApiArg = {\n token: string\n abortRequestModel: AbortRequestModel\n}\nexport type IconModel = {\n type?: 'material-symbols' | 'url'\n /** The name of the icon (for type material-symbols) */\n name?: string\n /** The color of the icon (for type material-symbols) */\n color?: string\n /** The URL of the icon (for type url) */\n url?: string\n}\nexport type FormSelectOption = {\n value: string\n label: string\n icon?: string\n color?: string\n}\nexport type SimpleFormField = {\n type: 'text' | 'boolean' | 'select' | 'multiselect' | 'hidden' | 'integer' | 'float' | 'label'\n name: string\n label?: string\n placeholder?: any\n value?: string | number | number | boolean | string[]\n regex?: string\n multiline?: boolean\n syntax?: string\n options?: FormSelectOption[]\n highlight?: 'info' | 'warning' | 'error'\n min?: number | number\n max?: number | number\n}\nexport type BaseActionManifest = {\n /** The identifier of the action */\n identifier: string\n /** Human-friendly name of the action */\n label: string\n /** The label of the group the action belongs to */\n groupLabel?: string\n /** Action category */\n category?: string\n /** The order of the action */\n order?: number\n /** An icon for the action */\n icon?: IconModel\n /** List of fields to be displayed in the action settings */\n configFields?: SimpleFormField[]\n /** Sort icon to the top */\n featured?: boolean\n /** The name of the addon providing the action */\n addonName?: string\n /** The version of the addon providing the action */\n addonVersion?: string\n /** The settings variant of the addon */\n variant?: string\n}\nexport type AvailableActionsListModel = {\n /** The list of available actions */\n actions?: BaseActionManifest[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ActionContext = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile' | 'list'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n}\nexport type ActionConfig = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n /** The configuration of the action within the given context */\n value?: object\n}\nexport type ExecuteResponseModel = {\n /** The type of response */\n type?: 'form' | 'launcher' | 'navigate' | 'query' | 'redirect' | 'simple'\n /** Payload is still parsed even if the action failed, but the message is highlighted as an error.If the action execution is broken beyond repair, Raise an exception instead of returning a response. */\n success?: boolean\n /** The message to display */\n message?: string\n /** The payload of the response. Payload model is parsed by the client and its schema, is based on the type of action. */\n payload?: object\n}\nexport type TakeResponseModel = {\n eventId: string\n actionIdentifier: string\n args?: string[]\n context: ActionContext\n addonName: string\n addonVersion: string\n variant: string\n /** The user who initiated the action */\n userName: string\n}\nexport type AbortRequestModel = {\n message?: string\n}\n"],"names":["api"],"mappings":";;;AACM,MAAA,iBAAiBA,WAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,gCAAgC,MAAM,SAGpC;AAAA,MACA,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgB,MAAM,MAAuD;AAAA,MAC3E,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,iBAAiB,MAAM,SAA4D;AAAA,MACjF,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,eAAe,MAAM,SAAwD;AAAA,MAC3E,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,YAAY,MAAM,MAA+C;AAAA,MAC/D,OAAO,CAAC,cAAc,EAAE,KAAK,qBAAqB,SAAS,KAAK,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,aAAa,MAAM,SAAoD;AAAA,MACrE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,sBAAsB,SAAS,KAAK;AAAA,QACzC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.es.js","sources":["../../../../../src/api/generated/actions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listAvailableActionsForContext: build.mutation<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n query: (queryArg) => ({\n url: `/api/actions/list`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n mode: queryArg.mode,\n },\n }),\n }),\n listAllActions: build.query<ListAllActionsApiResponse, ListAllActionsApiArg>({\n query: () => ({ url: `/api/actions/manage` }),\n }),\n configureAction: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/config`,\n method: 'POST',\n body: queryArg.actionConfig,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n executeAction: build.mutation<ExecuteActionApiResponse, ExecuteActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/execute`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n takeAction: build.query<TakeActionApiResponse, TakeActionApiArg>({\n query: (queryArg) => ({ url: `/api/actions/take/${queryArg.token}` }),\n }),\n abortAction: build.mutation<AbortActionApiResponse, AbortActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/abort/${queryArg.token}`,\n method: 'POST',\n body: queryArg.abortRequestModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListAvailableActionsForContextApiResponse =\n /** status 200 Successful Response */ AvailableActionsListModel\nexport type ListAvailableActionsForContextApiArg = {\n mode?: 'simple' | 'dynamic' | 'all'\n actionContext: ActionContext\n}\nexport type ListAllActionsApiResponse = /** status 200 Successful Response */ BaseActionManifest[]\nexport type ListAllActionsApiArg = void\nexport type ConfigureActionApiResponse = /** status 200 Successful Response */ object\nexport type ConfigureActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionConfig: ActionConfig\n}\nexport type ExecuteActionApiResponse = /** status 200 Successful Response */ ExecuteResponseModel\nexport type ExecuteActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionContext: ActionContext\n}\nexport type TakeActionApiResponse = /** status 200 Successful Response */ TakeResponseModel\nexport type TakeActionApiArg = {\n token: string\n}\nexport type AbortActionApiResponse = /** status 200 Successful Response */ any\nexport type AbortActionApiArg = {\n token: string\n abortRequestModel: AbortRequestModel\n}\nexport type IconModel = {\n type?: 'material-symbols' | 'url'\n /** The name of the icon (for type material-symbols) */\n name?: string\n /** The color of the icon (for type material-symbols) */\n color?: string\n /** The URL of the icon (for type url) */\n url?: string\n}\nexport type FormSelectOption = {\n value: string\n label: string\n icon?: string\n color?: string\n}\nexport type SimpleFormField = {\n type: 'text' | 'boolean' | 'select' | 'multiselect' | 'hidden' | 'integer' | 'float' | 'label'\n name: string\n label?: string\n placeholder?: any\n value?: string | number | number | boolean | string[]\n regex?: string\n multiline?: boolean\n syntax?: string\n options?: FormSelectOption[]\n highlight?: 'info' | 'warning' | 'error'\n min?: number | number\n max?: number | number\n}\nexport type BaseActionManifest = {\n /** The identifier of the action */\n identifier: string\n /** Human-friendly name of the action */\n label: string\n /** The label of the group the action belongs to */\n groupLabel?: string\n /** Action category */\n category?: string\n /** The order of the action */\n order?: number\n /** An icon for the action */\n icon?: IconModel\n /** List of fields to be displayed in the action settings */\n configFields?: SimpleFormField[]\n /** Sort icon to the top */\n featured?: boolean\n /** The name of the addon providing the action */\n addonName?: string\n /** The version of the addon providing the action */\n addonVersion?: string\n /** The settings variant of the addon */\n variant?: string\n}\nexport type AvailableActionsListModel = {\n /** The list of available actions */\n actions?: BaseActionManifest[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ActionContext = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n}\nexport type ActionConfig = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n /** The configuration of the action within the given context */\n value?: object\n}\nexport type ExecuteResponseModel = {\n /** The type of response */\n type?: 'form' | 'launcher' | 'navigate' | 'query' | 'redirect' | 'simple'\n /** Payload is still parsed even if the action failed, but the message is highlighted as an error.If the action execution is broken beyond repair, Raise an exception instead of returning a response. */\n success?: boolean\n /** The message to display */\n message?: string\n /** The payload of the response. Payload model is parsed by the client and its schema, is based on the type of action. */\n payload?: object\n}\nexport type TakeResponseModel = {\n eventId: string\n actionIdentifier: string\n args?: string[]\n context: ActionContext\n addonName: string\n addonVersion: string\n variant: string\n /** The user who initiated the action */\n userName: string\n}\nexport type AbortRequestModel = {\n message?: string\n}\n"],"names":[],"mappings":";AACM,MAAA,iBAAiB,IAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,gCAAgC,MAAM,SAGpC;AAAA,MACA,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgB,MAAM,MAAuD;AAAA,MAC3E,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,iBAAiB,MAAM,SAA4D;AAAA,MACjF,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,eAAe,MAAM,SAAwD;AAAA,MAC3E,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,YAAY,MAAM,MAA+C;AAAA,MAC/D,OAAO,CAAC,cAAc,EAAE,KAAK,qBAAqB,SAAS,KAAK,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,aAAa,MAAM,SAAoD;AAAA,MACrE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,sBAAsB,SAAS,KAAK;AAAA,QACzC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"actions.es.js","sources":["../../../../../src/api/generated/actions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listAvailableActionsForContext: build.mutation<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n query: (queryArg) => ({\n url: `/api/actions/list`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n mode: queryArg.mode,\n },\n }),\n }),\n listAllActions: build.query<ListAllActionsApiResponse, ListAllActionsApiArg>({\n query: () => ({ url: `/api/actions/manage` }),\n }),\n configureAction: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/config`,\n method: 'POST',\n body: queryArg.actionConfig,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n executeAction: build.mutation<ExecuteActionApiResponse, ExecuteActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/execute`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n takeAction: build.query<TakeActionApiResponse, TakeActionApiArg>({\n query: (queryArg) => ({ url: `/api/actions/take/${queryArg.token}` }),\n }),\n abortAction: build.mutation<AbortActionApiResponse, AbortActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/abort/${queryArg.token}`,\n method: 'POST',\n body: queryArg.abortRequestModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListAvailableActionsForContextApiResponse =\n /** status 200 Successful Response */ AvailableActionsListModel\nexport type ListAvailableActionsForContextApiArg = {\n mode?: 'simple' | 'dynamic' | 'all'\n actionContext: ActionContext\n}\nexport type ListAllActionsApiResponse = /** status 200 Successful Response */ BaseActionManifest[]\nexport type ListAllActionsApiArg = void\nexport type ConfigureActionApiResponse = /** status 200 Successful Response */ object\nexport type ConfigureActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionConfig: ActionConfig\n}\nexport type ExecuteActionApiResponse = /** status 200 Successful Response */ ExecuteResponseModel\nexport type ExecuteActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionContext: ActionContext\n}\nexport type TakeActionApiResponse = /** status 200 Successful Response */ TakeResponseModel\nexport type TakeActionApiArg = {\n token: string\n}\nexport type AbortActionApiResponse = /** status 200 Successful Response */ any\nexport type AbortActionApiArg = {\n token: string\n abortRequestModel: AbortRequestModel\n}\nexport type IconModel = {\n type?: 'material-symbols' | 'url'\n /** The name of the icon (for type material-symbols) */\n name?: string\n /** The color of the icon (for type material-symbols) */\n color?: string\n /** The URL of the icon (for type url) */\n url?: string\n}\nexport type FormSelectOption = {\n value: string\n label: string\n icon?: string\n color?: string\n}\nexport type SimpleFormField = {\n type: 'text' | 'boolean' | 'select' | 'multiselect' | 'hidden' | 'integer' | 'float' | 'label'\n name: string\n label?: string\n placeholder?: any\n value?: string | number | number | boolean | string[]\n regex?: string\n multiline?: boolean\n syntax?: string\n options?: FormSelectOption[]\n highlight?: 'info' | 'warning' | 'error'\n min?: number | number\n max?: number | number\n}\nexport type BaseActionManifest = {\n /** The identifier of the action */\n identifier: string\n /** Human-friendly name of the action */\n label: string\n /** The label of the group the action belongs to */\n groupLabel?: string\n /** Action category */\n category?: string\n /** The order of the action */\n order?: number\n /** An icon for the action */\n icon?: IconModel\n /** List of fields to be displayed in the action settings */\n configFields?: SimpleFormField[]\n /** Sort icon to the top */\n featured?: boolean\n /** The name of the addon providing the action */\n addonName?: string\n /** The version of the addon providing the action */\n addonVersion?: string\n /** The settings variant of the addon */\n variant?: string\n}\nexport type AvailableActionsListModel = {\n /** The list of available actions */\n actions?: BaseActionManifest[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ActionContext = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile' | 'list'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n}\nexport type ActionConfig = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n /** The configuration of the action within the given context */\n value?: object\n}\nexport type ExecuteResponseModel = {\n /** The type of response */\n type?: 'form' | 'launcher' | 'navigate' | 'query' | 'redirect' | 'simple'\n /** Payload is still parsed even if the action failed, but the message is highlighted as an error.If the action execution is broken beyond repair, Raise an exception instead of returning a response. */\n success?: boolean\n /** The message to display */\n message?: string\n /** The payload of the response. Payload model is parsed by the client and its schema, is based on the type of action. */\n payload?: object\n}\nexport type TakeResponseModel = {\n eventId: string\n actionIdentifier: string\n args?: string[]\n context: ActionContext\n addonName: string\n addonVersion: string\n variant: string\n /** The user who initiated the action */\n userName: string\n}\nexport type AbortRequestModel = {\n message?: string\n}\n"],"names":[],"mappings":";AACM,MAAA,iBAAiB,IAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,gCAAgC,MAAM,SAGpC;AAAA,MACA,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgB,MAAM,MAAuD;AAAA,MAC3E,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,iBAAiB,MAAM,SAA4D;AAAA,MACjF,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,eAAe,MAAM,SAAwD;AAAA,MAC3E,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,YAAY,MAAM,MAA+C;AAAA,MAC/D,OAAO,CAAC,cAAc,EAAE,KAAK,qBAAqB,SAAS,KAAK,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,aAAa,MAAM,SAAoD;AAAA,MACrE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,sBAAsB,SAAS,KAAK;AAAA,QACzC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
@@ -140,7 +140,7 @@ const AttributeEditor = ({
|
|
|
140
140
|
if (formData) {
|
|
141
141
|
if (isNew) {
|
|
142
142
|
if (existingNames.includes(formData.name)) internalError = "This attribute already exists";
|
|
143
|
-
else if (!formData.name.match("^[a-zA-Z_]{2,
|
|
143
|
+
else if (!formData.name.match("^[a-zA-Z_]{2,64}$")) error = "Invalid attribute name";
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
const handleSubmit = () => {
|