@ynput/ayon-addon-dev 0.2.0 → 0.2.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/AGENTS.md +2 -2
- package/dist/eslint.js +1 -0
- package/dist/shell/index.js +3 -1
- package/package.json +5 -4
package/AGENTS.md
CHANGED
|
@@ -185,6 +185,6 @@ import { ayonAddonLint } from '@ynput/ayon-addon-dev/eslint'
|
|
|
185
185
|
export default defineConfig([..., ...ayonAddonLint])
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
Flags imports that bypass AYON's copies: `react-router-dom`, `react-router
|
|
189
|
-
(use `@ynput/ayon-addon`), `@ynput/ayon-addon/host`, and a manifest importing
|
|
188
|
+
Flags imports that bypass AYON's copies: `react-router-dom`, `react-router`, `react-toastify` and
|
|
189
|
+
`use-query-params` (use `@ynput/ayon-addon`), `@ynput/ayon-addon/host`, and a manifest importing
|
|
190
190
|
`@ynput/ayon-addon` instead of `@ynput/ayon-addon/manifest`.
|
package/dist/eslint.js
CHANGED
|
@@ -17,6 +17,7 @@ export const ayonAddonLint = [
|
|
|
17
17
|
viaAddonApi('react-router-dom', 'the router hooks and Link'),
|
|
18
18
|
viaAddonApi('react-router', 'the router hooks and Link'),
|
|
19
19
|
viaAddonApi('react-toastify', 'toast'),
|
|
20
|
+
viaAddonApi('use-query-params', 'useQueryParam, useQueryParams and the params'),
|
|
20
21
|
{
|
|
21
22
|
name: '@ynput/ayon-addon/host',
|
|
22
23
|
message: '@ynput/ayon-addon/host is for AYON itself, not for addons.',
|
package/dist/shell/index.js
CHANGED
|
@@ -13,6 +13,8 @@ import { useCreateContextMenu, ContextMenuProvider, GlobalContextMenu } from "@y
|
|
|
13
13
|
import { useDispatch, Provider } from "react-redux";
|
|
14
14
|
import { BrowserRouter, useNavigate, useSearchParams, useParams, useLocation } from "react-router-dom";
|
|
15
15
|
import { ToastContainer } from "react-toastify";
|
|
16
|
+
import { QueryParamProvider } from "use-query-params";
|
|
17
|
+
import { ReactRouter6Adapter } from "use-query-params/adapters/react-router-6";
|
|
16
18
|
import { Splitter, SplitterPanel } from "primereact/splitter";
|
|
17
19
|
import { useAddonTableColumns, useAddonEntityMenuItems, AddonColumnDataScope, ProjectDataProvider } from "@ynput/ayon-frontend-shared/ProjectTreeTable";
|
|
18
20
|
import { SLOT_DOCS } from "@ynput/ayon-addon/check";
|
|
@@ -1624,7 +1626,7 @@ const Shell = ({ options, mode }) => {
|
|
|
1624
1626
|
return /* @__PURE__ */ jsxs(Provider, { store, children: [
|
|
1625
1627
|
/* @__PURE__ */ jsx(SplitterStyles, {}),
|
|
1626
1628
|
/* @__PURE__ */ jsxs(BrowserRouter, { children: [
|
|
1627
|
-
mode === "live" ? /* @__PURE__ */ jsx(SignedIn, { options, children: /* @__PURE__ */ jsx(AppProviders, { children: /* @__PURE__ */ jsx(Workbench, { options, mode }) }) }) : /* @__PURE__ */ jsx(AppProviders, { children: /* @__PURE__ */ jsx(Workbench, { options, mode }) }),
|
|
1629
|
+
/* @__PURE__ */ jsx(QueryParamProvider, { adapter: ReactRouter6Adapter, options: { updateType: "replaceIn" }, children: mode === "live" ? /* @__PURE__ */ jsx(SignedIn, { options, children: /* @__PURE__ */ jsx(AppProviders, { children: /* @__PURE__ */ jsx(Workbench, { options, mode }) }) }) : /* @__PURE__ */ jsx(AppProviders, { children: /* @__PURE__ */ jsx(Workbench, { options, mode }) }) }),
|
|
1628
1630
|
/* @__PURE__ */ jsx(ToastContainer, { position: "bottom-right", theme: "dark" })
|
|
1629
1631
|
] })
|
|
1630
1632
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ynput/ayon-addon-dev",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Dev tooling for AYON addon frontends: Vite plugin, dev server, CLI, lint preset",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,16 +41,17 @@
|
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@module-federation/vite": ">=1.14",
|
|
44
|
-
"@ynput/ayon-addon": "0.
|
|
44
|
+
"@ynput/ayon-addon": "0.3.0",
|
|
45
45
|
"vite": ">=6",
|
|
46
|
-
"@ynput/ayon-frontend-shared": ">=0.
|
|
47
|
-
"@ynput/ayon-react-components": "^1.25.
|
|
46
|
+
"@ynput/ayon-frontend-shared": ">=0.8.0",
|
|
47
|
+
"@ynput/ayon-react-components": "^1.25.1",
|
|
48
48
|
"primereact": ">=9",
|
|
49
49
|
"react": ">=18",
|
|
50
50
|
"react-dom": ">=18",
|
|
51
51
|
"react-redux": ">=9",
|
|
52
52
|
"react-router-dom": ">=7",
|
|
53
53
|
"react-toastify": ">=9",
|
|
54
|
+
"use-query-params": ">=2",
|
|
54
55
|
"playwright": ">=1.40",
|
|
55
56
|
"@rtk-query/codegen-openapi": ">=2"
|
|
56
57
|
},
|