ode-explorer 1.4.8 → 1.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {
@@ -36,8 +36,8 @@
36
36
  ]
37
37
  },
38
38
  "dependencies": {
39
- "@edifice-ui/icons": "1.5.5",
40
- "@edifice-ui/react": "1.5.5",
39
+ "@edifice-ui/icons": "1.5.7",
40
+ "@edifice-ui/react": "1.5.7",
41
41
  "@react-spring/web": "9.7.3",
42
42
  "@tanstack/react-query": "5.8.4",
43
43
  "clsx": "2.1.0",
@@ -47,7 +47,7 @@
47
47
  "react": "18.2.0",
48
48
  "react-dom": "18.2.0",
49
49
  "react-error-boundary": "4.0.12",
50
- "react-hook-form": "7.49.2",
50
+ "react-hook-form": "7.49.3",
51
51
  "react-i18next": "14.1.0",
52
52
  "react-intersection-observer": "9.5.3",
53
53
  "zustand": "4.5.0"
@@ -65,8 +65,8 @@
65
65
  "@vitejs/plugin-react-swc": "3.5.0",
66
66
  "concurrently": "8.2.2",
67
67
  "csstype": "3.1.3",
68
- "edifice-bootstrap": "1.5.5",
69
- "edifice-ts-client": "1.5.5",
68
+ "edifice-bootstrap": "1.5.0",
69
+ "edifice-ts-client": "1.4.0",
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-import": "2.29.1",
@@ -82,7 +82,21 @@
82
82
  "vite-plugin-dts": "3.7.2",
83
83
  "vite-tsconfig-paths": "4.3.1"
84
84
  },
85
- "packageManager": "pnpm@8.15.6",
85
+ "peerDependencies": {
86
+ "@edifice-ui/icons": "*",
87
+ "@edifice-ui/react": "*",
88
+ "@react-spring/web": "9.7.3",
89
+ "@tanstack/react-query": "5.8.4",
90
+ "clsx": "2.0.0",
91
+ "i18next": "23.8.1",
92
+ "i18next-http-backend": "2.4.2",
93
+ "react": "18.2.0",
94
+ "react-dom": "18.2.0",
95
+ "react-hook-form": "7.49.2",
96
+ "react-i18next": "14.0.1",
97
+ "zustand": "4.5.0"
98
+ },
99
+ "packageManager": "pnpm@8.6.6",
86
100
  "engines": {
87
101
  "node": "18 || 20"
88
102
  },
@@ -1,53 +0,0 @@
1
- import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
- import { useToast as p, Modal as i, Alert as d, Button as a } from "@edifice-ui/react";
3
- import { createPortal as x } from "react-dom";
4
- import { useTranslation as c } from "react-i18next";
5
- import { i as m, d as h, y as u } from "./index2.js";
6
- import "react";
7
- import "@edifice-ui/icons";
8
- import "edifice-ts-client";
9
- import "i18next";
10
- import "zustand";
11
- import "@tanstack/react-query";
12
- const f = (n) => {
13
- const t = m(), e = h(), s = p(), {
14
- t: r
15
- } = c();
16
- return {
17
- handleExportClick: () => {
18
- t.length ? (u({
19
- searchParams: e,
20
- assetId: t[0].assetId
21
- }), n()) : s.error(r("explorer.error.noResourceSelected"));
22
- }
23
- };
24
- };
25
- function T({
26
- isOpen: n,
27
- onSuccess: t,
28
- onCancel: e
29
- }) {
30
- const {
31
- handleExportClick: s
32
- } = f(t), {
33
- t: r
34
- } = c();
35
- return /* @__PURE__ */ x(/* @__PURE__ */ l(i, { isOpen: n, onModalClose: e, id: "exportModal", children: [
36
- /* @__PURE__ */ o(i.Header, { onModalClose: e, children: r("explorer.export.title") }),
37
- /* @__PURE__ */ l(i.Body, { children: [
38
- /* @__PURE__ */ l("ul", { children: [
39
- /* @__PURE__ */ o("li", { children: r("explorer.export.body.info.1") }),
40
- /* @__PURE__ */ o("li", { children: r("explorer.export.body.info.2") }),
41
- /* @__PURE__ */ o("li", { children: r("explorer.export.body.info.3") })
42
- ] }),
43
- /* @__PURE__ */ o(d, { type: "warning", children: r("explorer.export.body.warning") })
44
- ] }),
45
- /* @__PURE__ */ l(i.Footer, { children: [
46
- /* @__PURE__ */ o(a, { color: "tertiary", onClick: e, type: "button", variant: "ghost", children: r("explorer.cancel") }),
47
- /* @__PURE__ */ o(a, { color: "primary", onClick: s, type: "button", variant: "filled", children: r("explorer.actions.export") })
48
- ] })
49
- ] }), document.getElementById("portal"));
50
- }
51
- export {
52
- T as default
53
- };
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- interface ExportModalProps {
3
- isOpen: boolean;
4
- onSuccess: () => void;
5
- onCancel: () => void;
6
- }
7
- /**
8
- * HTML Export Modal (for Scrapbook)
9
- */
10
- export default function ExportModal({ isOpen, onSuccess, onCancel, }: ExportModalProps): import("react").ReactPortal;
11
- export {};
@@ -1,3 +0,0 @@
1
- export declare const useExportModal: (onSuccess: () => void) => {
2
- handleExportClick: () => void;
3
- };