@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.89 → 6.2.3-dev.90

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.
Files changed (32) hide show
  1. package/dist/node/{documents-CNInCxpO.mjs → documents-DH2fyf7U.mjs} +17 -3
  2. package/dist/node/{documents-CNInCxpO.mjs.map → documents-DH2fyf7U.mjs.map} +1 -1
  3. package/dist/node/{editor-C54qhQLX.mjs → editor-BcvUeBW7.mjs} +6 -7
  4. package/dist/node/{editor-C54qhQLX.mjs.map → editor-BcvUeBW7.mjs.map} +1 -1
  5. package/dist/node/{folder-view-CkCNU8A_.mjs → editor-DJCghViS.mjs} +21 -4
  6. package/dist/node/editor-DJCghViS.mjs.map +1 -0
  7. package/dist/node/editors/index.mjs +23 -2
  8. package/dist/node/editors/index.mjs.map +1 -0
  9. package/dist/node/{graphql-editor--ZZPvvGh.mjs → graphql-editor-u9NStKLL.mjs} +4 -5
  10. package/dist/node/{graphql-editor--ZZPvvGh.mjs.map → graphql-editor-u9NStKLL.mjs.map} +1 -1
  11. package/dist/node/{hooks-DI7akiay.mjs → hooks-BiLz75cj.mjs} +2 -2
  12. package/dist/node/{hooks-DI7akiay.mjs.map → hooks-BiLz75cj.mjs.map} +1 -1
  13. package/dist/node/index.mjs +1 -3
  14. package/dist/node/index.mjs.map +1 -1
  15. package/dist/node/{json-editor-gYEyOVXY.mjs → json-editor-BfcrckeT.mjs} +2 -2
  16. package/dist/node/{json-editor-gYEyOVXY.mjs.map → json-editor-BfcrckeT.mjs.map} +1 -1
  17. package/dist/node/{schema-context-DTb0xqgJ.mjs → schema-context-r0MTQnRC.mjs} +2 -2
  18. package/dist/node/{schema-context-DTb0xqgJ.mjs.map → schema-context-r0MTQnRC.mjs.map} +1 -1
  19. package/dist/node/{state-schemas-Ciq9kway.mjs → state-schemas-o3PZdBW2.mjs} +7 -7
  20. package/dist/node/{state-schemas-Ciq9kway.mjs.map → state-schemas-o3PZdBW2.mjs.map} +1 -1
  21. package/package.json +7 -7
  22. package/dist/node/editor-NwTlNx8z.mjs +0 -24
  23. package/dist/node/editor-NwTlNx8z.mjs.map +0 -1
  24. package/dist/node/editors/document-model-editor/index.mjs +0 -1
  25. package/dist/node/editors/document-model-editor/module.mjs +0 -14
  26. package/dist/node/editors/document-model-editor/module.mjs.map +0 -1
  27. package/dist/node/editors/generic-drive-explorer/index.mjs +0 -461
  28. package/dist/node/editors/generic-drive-explorer/index.mjs.map +0 -1
  29. package/dist/node/editors/generic-drive-explorer/module.mjs +0 -14
  30. package/dist/node/editors/generic-drive-explorer/module.mjs.map +0 -1
  31. package/dist/node/folder-view-CkCNU8A_.mjs.map +0 -1
  32. package/dist/node/rolldown-runtime-Bl3dcgcQ.mjs +0 -16
@@ -1,24 +0,0 @@
1
- import { n as DriveLayout, t as FolderView } from "./folder-view-CkCNU8A_.mjs";
2
- import { Breadcrumbs } from "@powerhousedao/design-system/connect";
3
- import { useSetPHAppConfig } from "@powerhousedao/reactor-browser";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
- //#region editors/generic-drive-explorer/config.ts
6
- const editorConfig = {
7
- allowedDocumentTypes: [],
8
- isDragAndDropEnabled: true
9
- };
10
- //#endregion
11
- //#region editors/generic-drive-explorer/editor.tsx
12
- function Editor(props) {
13
- useSetPHAppConfig(editorConfig);
14
- const { className, children } = props;
15
- const showDocumentEditor = !!children;
16
- return /* @__PURE__ */ jsxs(DriveLayout, {
17
- className,
18
- children: [!showDocumentEditor && /* @__PURE__ */ jsx(DriveLayout.Header, { children: /* @__PURE__ */ jsx(Breadcrumbs, {}) }), showDocumentEditor ? children : /* @__PURE__ */ jsx(DriveLayout.Content, { children: /* @__PURE__ */ jsx(FolderView, {}) })]
19
- });
20
- }
21
- //#endregion
22
- export { Editor as default };
23
-
24
- //# sourceMappingURL=editor-NwTlNx8z.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor-NwTlNx8z.mjs","names":[],"sources":["../../editors/generic-drive-explorer/config.ts","../../editors/generic-drive-explorer/editor.tsx"],"sourcesContent":["import type { PHAppConfig } from \"@powerhousedao/reactor-browser\";\n\nexport const editorConfig: PHAppConfig = {\n allowedDocumentTypes: [],\n isDragAndDropEnabled: true,\n};\n","import { Breadcrumbs } from \"@powerhousedao/design-system/connect\";\nimport { useSetPHAppConfig } from \"@powerhousedao/reactor-browser\";\nimport type { EditorProps } from \"@powerhousedao/shared/document-model\";\nimport FolderView from \"./components/folder-view.js\";\nimport { DriveLayout } from \"./components/layout.js\";\nimport { editorConfig } from \"./config.js\";\n\nexport default function Editor(props: EditorProps) {\n useSetPHAppConfig(editorConfig);\n const { className, children } = props;\n const showDocumentEditor = !!children;\n\n return (\n <DriveLayout className={className}>\n {!showDocumentEditor && (\n <DriveLayout.Header>\n <Breadcrumbs />\n </DriveLayout.Header>\n )}\n {showDocumentEditor ? (\n children\n ) : (\n <DriveLayout.Content>\n <FolderView />\n </DriveLayout.Content>\n )}\n </DriveLayout>\n );\n}\n"],"mappings":";;;;;AAEA,MAAa,eAA4B;CACvC,sBAAsB,CAAC;CACvB,sBAAsB;AACxB;;;ACEA,SAAwB,OAAO,OAAoB;CACjD,kBAAkB,YAAY;CAC9B,MAAM,EAAE,WAAW,aAAa;CAChC,MAAM,qBAAqB,CAAC,CAAC;CAE7B,OACE,qBAAC,aAAD;EAAwB;EAAxB,UAAA,CACG,CAAC,sBACA,oBAAC,YAAY,QAAb,EAAA,UACE,oBAAC,aAAD,CAAc,CAAA,EACI,CAAA,GAErB,qBACC,WAEA,oBAAC,YAAY,SAAb,EAAA,UACE,oBAAC,YAAD,CAAa,CAAA,EACM,CAAA,CAEZ;;AAEjB"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import { lazy } from "react";
2
- //#region editors/document-model-editor/module.ts
3
- const DocumentModelEditor = {
4
- config: {
5
- id: "document-model-editor-v2",
6
- name: "Document Model Editor"
7
- },
8
- documentTypes: ["powerhouse/document-model"],
9
- Component: lazy(() => import("../../editor-C54qhQLX.mjs").then((n) => n.t))
10
- };
11
- //#endregion
12
- export { DocumentModelEditor };
13
-
14
- //# sourceMappingURL=module.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.mjs","names":[],"sources":["../../../../editors/document-model-editor/module.ts"],"sourcesContent":["import type {\n DocumentModelAction,\n DocumentModelDocument,\n EditorModule,\n} from \"@powerhousedao/shared/document-model\";\nimport { lazy } from \"react\";\n\nexport const DocumentModelEditor: EditorModule<\n DocumentModelDocument,\n DocumentModelAction\n> = {\n config: {\n id: \"document-model-editor-v2\",\n name: \"Document Model Editor\",\n },\n documentTypes: [\"powerhouse/document-model\"],\n Component: lazy(() => import(\"./editor.js\")),\n};\n"],"mappings":";;AAOA,MAAa,sBAGT;CACF,QAAQ;EACN,IAAI;EACJ,MAAM;CACR;CACA,eAAe,CAAC,2BAA2B;CAC3C,WAAW,WAAW,OAAO,4BAAc,CAAA,MAAA,MAAA,EAAA,CAAA,CAAA;AAC7C"}
@@ -1,461 +0,0 @@
1
- import { r as __require, t as __commonJSMin } from "../../rolldown-runtime-Bl3dcgcQ.mjs";
2
- import { GenericDriveExplorer } from "./module.mjs";
3
- import { i as CreateDocument, n as DriveLayout, r as FileContentView, t as FolderView } from "../../folder-view-CkCNU8A_.mjs";
4
- import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
5
- import { ConnectSearchBar, Icon } from "@powerhousedao/design-system/connect";
6
- import { jsx } from "react/jsx-runtime";
7
- //#region ../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/utils.js
8
- const warn = (i18n, code, msg, rest) => {
9
- const args = [msg, {
10
- code,
11
- ...rest || {}
12
- }];
13
- if (i18n?.services?.logger?.forward) return i18n.services.logger.forward(args, "warn", "react-i18next::", true);
14
- if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;
15
- if (i18n?.services?.logger?.warn) i18n.services.logger.warn(...args);
16
- else if (console?.warn) console.warn(...args);
17
- };
18
- const alreadyWarned = {};
19
- const warnOnce = (i18n, code, msg, rest) => {
20
- if (isString(msg) && alreadyWarned[msg]) return;
21
- if (isString(msg)) alreadyWarned[msg] = /* @__PURE__ */ new Date();
22
- warn(i18n, code, msg, rest);
23
- };
24
- const loadedClb = (i18n, cb) => () => {
25
- if (i18n.isInitialized) cb();
26
- else {
27
- const initialized = () => {
28
- setTimeout(() => {
29
- i18n.off("initialized", initialized);
30
- }, 0);
31
- cb();
32
- };
33
- i18n.on("initialized", initialized);
34
- }
35
- };
36
- const loadNamespaces = (i18n, ns, cb) => {
37
- i18n.loadNamespaces(ns, loadedClb(i18n, cb));
38
- };
39
- const loadLanguages = (i18n, lng, ns, cb) => {
40
- if (isString(ns)) ns = [ns];
41
- if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);
42
- ns.forEach((n) => {
43
- if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);
44
- });
45
- i18n.loadLanguages(lng, loadedClb(i18n, cb));
46
- };
47
- const hasLoadedNamespace = (ns, i18n, options = {}) => {
48
- if (!i18n.languages || !i18n.languages.length) {
49
- warnOnce(i18n, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: i18n.languages });
50
- return true;
51
- }
52
- return i18n.hasLoadedNamespace(ns, {
53
- lng: options.lng,
54
- precheck: (i18nInstance, loadNotPending) => {
55
- if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;
56
- }
57
- });
58
- };
59
- const isString = (obj) => typeof obj === "string";
60
- const isObject = (obj) => typeof obj === "object" && obj !== null;
61
- //#endregion
62
- //#region ../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/unescape.js
63
- const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
64
- const htmlEntities = {
65
- "&amp;": "&",
66
- "&#38;": "&",
67
- "&lt;": "<",
68
- "&#60;": "<",
69
- "&gt;": ">",
70
- "&#62;": ">",
71
- "&apos;": "'",
72
- "&#39;": "'",
73
- "&quot;": "\"",
74
- "&#34;": "\"",
75
- "&nbsp;": " ",
76
- "&#160;": " ",
77
- "&copy;": "©",
78
- "&#169;": "©",
79
- "&reg;": "®",
80
- "&#174;": "®",
81
- "&hellip;": "…",
82
- "&#8230;": "…",
83
- "&#x2F;": "/",
84
- "&#47;": "/"
85
- };
86
- const unescapeHtmlEntity = (m) => htmlEntities[m];
87
- const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
88
- //#endregion
89
- //#region ../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/defaults.js
90
- let defaultOptions = {
91
- bindI18n: "languageChanged",
92
- bindI18nStore: "",
93
- transEmptyNodeValue: "",
94
- transSupportBasicHtmlNodes: true,
95
- transWrapTextNodes: "",
96
- transKeepBasicHtmlNodesFor: [
97
- "br",
98
- "strong",
99
- "i",
100
- "p"
101
- ],
102
- useSuspense: true,
103
- unescape,
104
- transDefaultProps: void 0
105
- };
106
- const getDefaults = () => defaultOptions;
107
- //#endregion
108
- //#region ../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/i18nInstance.js
109
- let i18nInstance;
110
- const getI18n = () => i18nInstance;
111
- //#endregion
112
- //#region ../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/context.js
113
- const I18nContext = createContext();
114
- var ReportNamespaces = class {
115
- constructor() {
116
- this.usedNamespaces = {};
117
- }
118
- addUsedNamespaces(namespaces) {
119
- namespaces.forEach((ns) => {
120
- if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;
121
- });
122
- }
123
- getUsedNamespaces() {
124
- return Object.keys(this.usedNamespaces);
125
- }
126
- };
127
- //#endregion
128
- //#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
129
- /**
130
- * @license React
131
- * use-sync-external-store-shim.production.js
132
- *
133
- * Copyright (c) Meta Platforms, Inc. and affiliates.
134
- *
135
- * This source code is licensed under the MIT license found in the
136
- * LICENSE file in the root directory of this source tree.
137
- */
138
- var require_use_sync_external_store_shim_production = /* @__PURE__ */ __commonJSMin(((exports) => {
139
- var React$1 = __require("react");
140
- function is(x, y) {
141
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
142
- }
143
- var objectIs = "function" === typeof Object.is ? Object.is : is;
144
- var useState = React$1.useState;
145
- var useEffect = React$1.useEffect;
146
- var useLayoutEffect = React$1.useLayoutEffect;
147
- var useDebugValue = React$1.useDebugValue;
148
- function useSyncExternalStore$2(subscribe, getSnapshot) {
149
- var value = getSnapshot(), _useState = useState({ inst: {
150
- value,
151
- getSnapshot
152
- } }), inst = _useState[0].inst, forceUpdate = _useState[1];
153
- useLayoutEffect(function() {
154
- inst.value = value;
155
- inst.getSnapshot = getSnapshot;
156
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
157
- }, [
158
- subscribe,
159
- value,
160
- getSnapshot
161
- ]);
162
- useEffect(function() {
163
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
164
- return subscribe(function() {
165
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
166
- });
167
- }, [subscribe]);
168
- useDebugValue(value);
169
- return value;
170
- }
171
- function checkIfSnapshotChanged(inst) {
172
- var latestGetSnapshot = inst.getSnapshot;
173
- inst = inst.value;
174
- try {
175
- var nextValue = latestGetSnapshot();
176
- return !objectIs(inst, nextValue);
177
- } catch (error) {
178
- return !0;
179
- }
180
- }
181
- function useSyncExternalStore$1(subscribe, getSnapshot) {
182
- return getSnapshot();
183
- }
184
- var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
185
- exports.useSyncExternalStore = void 0 !== React$1.useSyncExternalStore ? React$1.useSyncExternalStore : shim;
186
- }));
187
- //#endregion
188
- //#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
189
- /**
190
- * @license React
191
- * use-sync-external-store-shim.development.js
192
- *
193
- * Copyright (c) Meta Platforms, Inc. and affiliates.
194
- *
195
- * This source code is licensed under the MIT license found in the
196
- * LICENSE file in the root directory of this source tree.
197
- */
198
- var require_use_sync_external_store_shim_development = /* @__PURE__ */ __commonJSMin(((exports) => {
199
- "production" !== process.env.NODE_ENV && (function() {
200
- function is(x, y) {
201
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
202
- }
203
- function useSyncExternalStore$2(subscribe, getSnapshot) {
204
- didWarnOld18Alpha || void 0 === React.startTransition || (didWarnOld18Alpha = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
205
- var value = getSnapshot();
206
- if (!didWarnUncachedGetSnapshot) {
207
- var cachedValue = getSnapshot();
208
- objectIs(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0);
209
- }
210
- cachedValue = useState({ inst: {
211
- value,
212
- getSnapshot
213
- } });
214
- var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
215
- useLayoutEffect(function() {
216
- inst.value = value;
217
- inst.getSnapshot = getSnapshot;
218
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
219
- }, [
220
- subscribe,
221
- value,
222
- getSnapshot
223
- ]);
224
- useEffect(function() {
225
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
226
- return subscribe(function() {
227
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
228
- });
229
- }, [subscribe]);
230
- useDebugValue(value);
231
- return value;
232
- }
233
- function checkIfSnapshotChanged(inst) {
234
- var latestGetSnapshot = inst.getSnapshot;
235
- inst = inst.value;
236
- try {
237
- var nextValue = latestGetSnapshot();
238
- return !objectIs(inst, nextValue);
239
- } catch (error) {
240
- return !0;
241
- }
242
- }
243
- function useSyncExternalStore$1(subscribe, getSnapshot) {
244
- return getSnapshot();
245
- }
246
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
247
- var React = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue, didWarnOld18Alpha = !1, didWarnUncachedGetSnapshot = !1, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
248
- exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
249
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
250
- })();
251
- }));
252
- //#endregion
253
- //#region ../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/useTranslation.js
254
- var import_shim = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
255
- if (process.env.NODE_ENV === "production") module.exports = require_use_sync_external_store_shim_production();
256
- else module.exports = require_use_sync_external_store_shim_development();
257
- })))();
258
- const notReadyT = (k, optsOrDefaultValue) => {
259
- if (isString(optsOrDefaultValue)) return optsOrDefaultValue;
260
- if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
261
- return Array.isArray(k) ? k[k.length - 1] : k;
262
- };
263
- const notReadySnapshot = {
264
- t: notReadyT,
265
- ready: false
266
- };
267
- const dummySubscribe = () => () => {};
268
- const useTranslation = (ns, props = {}) => {
269
- const { i18n: i18nFromProps } = props;
270
- const { i18n: i18nFromContext, defaultNS: defaultNSFromContext } = useContext(I18nContext) || {};
271
- const i18n = i18nFromProps || i18nFromContext || getI18n();
272
- if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
273
- if (!i18n) warnOnce(i18n, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
274
- const i18nOptions = useMemo(() => ({
275
- ...getDefaults(),
276
- ...i18n?.options?.react,
277
- ...props
278
- }), [i18n, props]);
279
- const { useSuspense, keyPrefix } = i18nOptions;
280
- const nsOrContext = ns || defaultNSFromContext || i18n?.options?.defaultNS;
281
- const unstableNamespaces = isString(nsOrContext) ? [nsOrContext] : nsOrContext || ["translation"];
282
- const namespaces = useMemo(() => unstableNamespaces, unstableNamespaces);
283
- i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);
284
- const revisionRef = useRef(0);
285
- const subscribe = useCallback((callback) => {
286
- if (!i18n) return dummySubscribe;
287
- const { bindI18n, bindI18nStore } = i18nOptions;
288
- const wrappedCallback = () => {
289
- revisionRef.current += 1;
290
- callback();
291
- };
292
- if (bindI18n) i18n.on(bindI18n, wrappedCallback);
293
- if (bindI18nStore) i18n.store.on(bindI18nStore, wrappedCallback);
294
- return () => {
295
- if (bindI18n) bindI18n.split(" ").forEach((e) => i18n.off(e, wrappedCallback));
296
- if (bindI18nStore) bindI18nStore.split(" ").forEach((e) => i18n.store.off(e, wrappedCallback));
297
- };
298
- }, [i18n, i18nOptions]);
299
- const snapshotRef = useRef();
300
- const getSnapshot = useCallback(() => {
301
- if (!i18n) return notReadySnapshot;
302
- const calculatedReady = !!(i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n) => hasLoadedNamespace(n, i18n, i18nOptions));
303
- const currentLng = props.lng || i18n.language;
304
- const currentRevision = revisionRef.current;
305
- const lastSnapshot = snapshotRef.current;
306
- if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === currentLng && lastSnapshot.keyPrefix === keyPrefix && lastSnapshot.revision === currentRevision) return lastSnapshot;
307
- const newSnapshot = {
308
- t: i18n.getFixedT(currentLng, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix),
309
- ready: calculatedReady,
310
- lng: currentLng,
311
- keyPrefix,
312
- revision: currentRevision
313
- };
314
- snapshotRef.current = newSnapshot;
315
- return newSnapshot;
316
- }, [
317
- i18n,
318
- namespaces,
319
- keyPrefix,
320
- i18nOptions,
321
- props.lng
322
- ]);
323
- const [loadCount, setLoadCount] = useState(0);
324
- const { t, ready } = (0, import_shim.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
325
- useEffect(() => {
326
- if (i18n && !ready && !useSuspense) {
327
- const onLoaded = () => setLoadCount((c) => c + 1);
328
- if (props.lng) loadLanguages(i18n, props.lng, namespaces, onLoaded);
329
- else loadNamespaces(i18n, namespaces, onLoaded);
330
- }
331
- }, [
332
- i18n,
333
- props.lng,
334
- namespaces,
335
- ready,
336
- useSuspense,
337
- loadCount
338
- ]);
339
- const finalI18n = i18n || {};
340
- const wrapperRef = useRef(null);
341
- const wrapperLangRef = useRef();
342
- const createI18nWrapper = (original) => {
343
- const descriptors = Object.getOwnPropertyDescriptors(original);
344
- if (descriptors.__original) delete descriptors.__original;
345
- const wrapper = Object.create(Object.getPrototypeOf(original), descriptors);
346
- if (!Object.prototype.hasOwnProperty.call(wrapper, "__original")) try {
347
- Object.defineProperty(wrapper, "__original", {
348
- value: original,
349
- writable: false,
350
- enumerable: false,
351
- configurable: false
352
- });
353
- } catch (_) {}
354
- return wrapper;
355
- };
356
- const ret = useMemo(() => {
357
- const original = finalI18n;
358
- const lang = original?.language;
359
- let i18nWrapper = original;
360
- if (original) {
361
- if (wrapperRef.current && wrapperRef.current.__original === original) {
362
- if (wrapperLangRef.current !== lang) {
363
- i18nWrapper = createI18nWrapper(original);
364
- wrapperRef.current = i18nWrapper;
365
- wrapperLangRef.current = lang;
366
- } else i18nWrapper = wrapperRef.current;
367
- } else {
368
- i18nWrapper = createI18nWrapper(original);
369
- wrapperRef.current = i18nWrapper;
370
- wrapperLangRef.current = lang;
371
- }
372
- }
373
- const arr = [
374
- t,
375
- i18nWrapper,
376
- ready
377
- ];
378
- arr.t = t;
379
- arr.i18n = i18nWrapper;
380
- arr.ready = ready;
381
- return arr;
382
- }, [
383
- t,
384
- finalI18n,
385
- ready,
386
- finalI18n.resolvedLanguage,
387
- finalI18n.language,
388
- finalI18n.languages
389
- ]);
390
- if (i18n && useSuspense && !ready) throw new Promise((resolve) => {
391
- const onLoaded = () => resolve();
392
- if (props.lng) loadLanguages(i18n, props.lng, namespaces, onLoaded);
393
- else loadNamespaces(i18n, namespaces, onLoaded);
394
- });
395
- return ret;
396
- };
397
- //#endregion
398
- //#region editors/generic-drive-explorer/components/search-bar.tsx
399
- const defaultFilterItems = [
400
- {
401
- id: "project",
402
- label: ".project",
403
- icon: /* @__PURE__ */ jsx(Icon, {
404
- name: "Project",
405
- color: "#FF6A55",
406
- size: 16
407
- })
408
- },
409
- {
410
- id: "budget",
411
- label: ".budget",
412
- icon: /* @__PURE__ */ jsx(Icon, {
413
- name: "BarChart",
414
- color: "#8E55EA",
415
- size: 16
416
- })
417
- },
418
- {
419
- id: "profile",
420
- label: ".profile",
421
- icon: /* @__PURE__ */ jsx(Icon, {
422
- name: "Person",
423
- color: "#3E90F0",
424
- size: 16
425
- })
426
- },
427
- {
428
- id: "legal",
429
- label: ".legal",
430
- icon: /* @__PURE__ */ jsx(Icon, {
431
- name: "Briefcase",
432
- color: "#4BAB71",
433
- size: 16
434
- })
435
- },
436
- {
437
- id: "atlas",
438
- label: ".Atlas",
439
- icon: /* @__PURE__ */ jsx(Icon, {
440
- name: "Globe",
441
- color: "#FF8A00",
442
- size: 16
443
- })
444
- }
445
- ];
446
- const SearchBar = () => {
447
- const { t } = useTranslation();
448
- const [value, setValue] = useState("");
449
- return /* @__PURE__ */ jsx(ConnectSearchBar, {
450
- className: "m-4 shrink-0 bg-muted",
451
- placeholder: t("searchbar.placeholder"),
452
- filterLabel: t("searchbar.filterLabel"),
453
- filterItems: defaultFilterItems,
454
- value,
455
- onChange: setValue
456
- });
457
- };
458
- //#endregion
459
- export { CreateDocument, DriveLayout, FileContentView, FolderView, GenericDriveExplorer, SearchBar };
460
-
461
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["React","useSyncExternalStore"],"sources":["../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/utils.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/unescape.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/defaults.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/i18nInstance.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/context.js","../../../../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../../../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../../../../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/shim/index.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@7.0.2__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@7.0.2/node_modules/react-i18next/dist/es/useTranslation.js","../../../../editors/generic-drive-explorer/components/search-bar.tsx"],"sourcesContent":["export const warn = (i18n, code, msg, rest) => {\n const args = [msg, {\n code,\n ...(rest || {})\n }];\n if (i18n?.services?.logger?.forward) {\n return i18n.services.logger.forward(args, 'warn', 'react-i18next::', true);\n }\n if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;\n if (i18n?.services?.logger?.warn) {\n i18n.services.logger.warn(...args);\n } else if (console?.warn) {\n console.warn(...args);\n }\n};\nconst alreadyWarned = {};\nexport const warnOnce = (i18n, code, msg, rest) => {\n if (isString(msg) && alreadyWarned[msg]) return;\n if (isString(msg)) alreadyWarned[msg] = new Date();\n warn(i18n, code, msg, rest);\n};\nconst loadedClb = (i18n, cb) => () => {\n if (i18n.isInitialized) {\n cb();\n } else {\n const initialized = () => {\n setTimeout(() => {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n i18n.on('initialized', initialized);\n }\n};\nexport const loadNamespaces = (i18n, ns, cb) => {\n i18n.loadNamespaces(ns, loadedClb(i18n, cb));\n};\nexport const loadLanguages = (i18n, lng, ns, cb) => {\n if (isString(ns)) ns = [ns];\n if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);\n ns.forEach(n => {\n if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);\n });\n i18n.loadLanguages(lng, loadedClb(i18n, cb));\n};\nexport const hasLoadedNamespace = (ns, i18n, options = {}) => {\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce(i18n, 'NO_LANGUAGES', 'i18n.languages were undefined or empty', {\n languages: i18n.languages\n });\n return true;\n }\n return i18n.hasLoadedNamespace(ns, {\n lng: options.lng,\n precheck: (i18nInstance, loadNotPending) => {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n};\nexport const getDisplayName = Component => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : 'Unknown');\nexport const isString = obj => typeof obj === 'string';\nexport const isObject = obj => typeof obj === 'object' && obj !== null;","const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nconst htmlEntities = {\n '&amp;': '&',\n '&#38;': '&',\n '&lt;': '<',\n '&#60;': '<',\n '&gt;': '>',\n '&#62;': '>',\n '&apos;': \"'\",\n '&#39;': \"'\",\n '&quot;': '\"',\n '&#34;': '\"',\n '&nbsp;': ' ',\n '&#160;': ' ',\n '&copy;': '©',\n '&#169;': '©',\n '&reg;': '®',\n '&#174;': '®',\n '&hellip;': '…',\n '&#8230;': '…',\n '&#x2F;': '/',\n '&#47;': '/'\n};\nconst unescapeHtmlEntity = m => htmlEntities[m];\nexport const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);","import { unescape } from './unescape.js';\nlet defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true,\n unescape,\n transDefaultProps: undefined\n};\nexport const setDefaults = (options = {}) => {\n defaultOptions = {\n ...defaultOptions,\n ...options\n };\n};\nexport const getDefaults = () => defaultOptions;","let i18nInstance;\nexport const setI18n = instance => {\n i18nInstance = instance;\n};\nexport const getI18n = () => i18nInstance;","import { createContext } from 'react';\nimport { getDefaults, setDefaults } from './defaults.js';\nimport { getI18n, setI18n } from './i18nInstance.js';\nimport { initReactI18next } from './initReactI18next.js';\nexport { getDefaults, setDefaults, getI18n, setI18n, initReactI18next };\nexport const I18nContext = createContext();\nexport class ReportNamespaces {\n constructor() {\n this.usedNamespaces = {};\n }\n addUsedNamespaces(namespaces) {\n namespaces.forEach(ns => {\n if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;\n });\n }\n getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n}\nexport const composeInitialProps = ForComponent => async ctx => {\n const componentsInitialProps = (await ForComponent.getInitialProps?.(ctx)) ?? {};\n const i18nInitialProps = getInitialProps();\n return {\n ...componentsInitialProps,\n ...i18nInitialProps\n };\n};\nexport const getInitialProps = () => {\n const i18n = getI18n();\n const namespaces = i18n.reportNamespaces?.getUsedNamespaces() ?? [];\n const ret = {};\n const initialI18nStore = {};\n i18n.languages.forEach(l => {\n initialI18nStore[l] = {};\n namespaces.forEach(ns => {\n initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n });\n });\n ret.initialI18nStore = initialI18nStore;\n ret.initialLanguage = i18n.language;\n return ret;\n};","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","import { useContext, useCallback, useMemo, useEffect, useRef, useState } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context.js';\nimport { warnOnce, loadNamespaces, loadLanguages, hasLoadedNamespace, isString, isObject } from './utils.js';\nconst notReadyT = (k, optsOrDefaultValue) => {\n if (isString(optsOrDefaultValue)) return optsOrDefaultValue;\n if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;\n return Array.isArray(k) ? k[k.length - 1] : k;\n};\nconst notReadySnapshot = {\n t: notReadyT,\n ready: false\n};\nconst dummySubscribe = () => () => {};\nexport const useTranslation = (ns, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useTranslation: You will need to pass in an i18next instance by using initReactI18next');\n }\n const i18nOptions = useMemo(() => ({\n ...getDefaults(),\n ...i18n?.options?.react,\n ...props\n }), [i18n, props]);\n const {\n useSuspense,\n keyPrefix\n } = i18nOptions;\n const nsOrContext = ns || defaultNSFromContext || i18n?.options?.defaultNS;\n const unstableNamespaces = isString(nsOrContext) ? [nsOrContext] : nsOrContext || ['translation'];\n const namespaces = useMemo(() => unstableNamespaces, unstableNamespaces);\n i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);\n const revisionRef = useRef(0);\n const subscribe = useCallback(callback => {\n if (!i18n) return dummySubscribe;\n const {\n bindI18n,\n bindI18nStore\n } = i18nOptions;\n const wrappedCallback = () => {\n revisionRef.current += 1;\n callback();\n };\n if (bindI18n) i18n.on(bindI18n, wrappedCallback);\n if (bindI18nStore) i18n.store.on(bindI18nStore, wrappedCallback);\n return () => {\n if (bindI18n) bindI18n.split(' ').forEach(e => i18n.off(e, wrappedCallback));\n if (bindI18nStore) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, wrappedCallback));\n };\n }, [i18n, i18nOptions]);\n const snapshotRef = useRef();\n const getSnapshot = useCallback(() => {\n if (!i18n) {\n return notReadySnapshot;\n }\n const calculatedReady = !!(i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));\n const currentLng = props.lng || i18n.language;\n const currentRevision = revisionRef.current;\n const lastSnapshot = snapshotRef.current;\n if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === currentLng && lastSnapshot.keyPrefix === keyPrefix && lastSnapshot.revision === currentRevision) {\n return lastSnapshot;\n }\n const calculatedT = i18n.getFixedT(currentLng, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n const newSnapshot = {\n t: calculatedT,\n ready: calculatedReady,\n lng: currentLng,\n keyPrefix,\n revision: currentRevision\n };\n snapshotRef.current = newSnapshot;\n return newSnapshot;\n }, [i18n, namespaces, keyPrefix, i18nOptions, props.lng]);\n const [loadCount, setLoadCount] = useState(0);\n const {\n t,\n ready\n } = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n useEffect(() => {\n if (i18n && !ready && !useSuspense) {\n const onLoaded = () => setLoadCount(c => c + 1);\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, onLoaded);\n } else {\n loadNamespaces(i18n, namespaces, onLoaded);\n }\n }\n }, [i18n, props.lng, namespaces, ready, useSuspense, loadCount]);\n const finalI18n = i18n || {};\n const wrapperRef = useRef(null);\n const wrapperLangRef = useRef();\n const createI18nWrapper = original => {\n const descriptors = Object.getOwnPropertyDescriptors(original);\n if (descriptors.__original) delete descriptors.__original;\n const wrapper = Object.create(Object.getPrototypeOf(original), descriptors);\n if (!Object.prototype.hasOwnProperty.call(wrapper, '__original')) {\n try {\n Object.defineProperty(wrapper, '__original', {\n value: original,\n writable: false,\n enumerable: false,\n configurable: false\n });\n } catch (_) {}\n }\n return wrapper;\n };\n const ret = useMemo(() => {\n const original = finalI18n;\n const lang = original?.language;\n let i18nWrapper = original;\n if (original) {\n if (wrapperRef.current && wrapperRef.current.__original === original) {\n if (wrapperLangRef.current !== lang) {\n i18nWrapper = createI18nWrapper(original);\n wrapperRef.current = i18nWrapper;\n wrapperLangRef.current = lang;\n } else {\n i18nWrapper = wrapperRef.current;\n }\n } else {\n i18nWrapper = createI18nWrapper(original);\n wrapperRef.current = i18nWrapper;\n wrapperLangRef.current = lang;\n }\n }\n const arr = [t, i18nWrapper, ready];\n arr.t = t;\n arr.i18n = i18nWrapper;\n arr.ready = ready;\n return arr;\n }, [t, finalI18n, ready, finalI18n.resolvedLanguage, finalI18n.language, finalI18n.languages]);\n if (i18n && useSuspense && !ready) {\n throw new Promise(resolve => {\n const onLoaded = () => resolve();\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, onLoaded);\n } else {\n loadNamespaces(i18n, namespaces, onLoaded);\n }\n });\n }\n return ret;\n};","import { ConnectSearchBar, Icon } from \"@powerhousedao/design-system/connect\";\nimport type { ConnectSearchBarProps } from \"@powerhousedao/design-system/connect\";\nimport { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nconst defaultFilterItems: ConnectSearchBarProps[\"filterItems\"] = [\n {\n id: \"project\",\n label: \".project\",\n icon: <Icon name=\"Project\" color=\"#FF6A55\" size={16} />,\n },\n {\n id: \"budget\",\n label: \".budget\",\n icon: <Icon name=\"BarChart\" color=\"#8E55EA\" size={16} />,\n },\n {\n id: \"profile\",\n label: \".profile\",\n icon: <Icon name=\"Person\" color=\"#3E90F0\" size={16} />,\n },\n {\n id: \"legal\",\n label: \".legal\",\n icon: <Icon name=\"Briefcase\" color=\"#4BAB71\" size={16} />,\n },\n {\n id: \"atlas\",\n label: \".Atlas\",\n icon: <Icon name=\"Globe\" color=\"#FF8A00\" size={16} />,\n },\n];\n\nexport const SearchBar = () => {\n const { t } = useTranslation();\n const [value, setValue] = useState(\"\"); // TODO\n\n return (\n <ConnectSearchBar\n className=\"m-4 shrink-0 bg-muted\"\n placeholder={t(\"searchbar.placeholder\")}\n filterLabel={t(\"searchbar.filterLabel\")}\n filterItems={defaultFilterItems}\n value={value}\n onChange={setValue}\n />\n );\n};\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8],"mappings":";;;;;;;AAAA,MAAa,QAAQ,MAAM,MAAM,KAAK,SAAS;CAC7C,MAAM,OAAO,CAAC,KAAK;EACjB;EACA,GAAI,QAAQ,CAAC;CACf,CAAC;CACD,IAAI,MAAM,UAAU,QAAQ,SAC1B,OAAO,KAAK,SAAS,OAAO,QAAQ,MAAM,QAAQ,mBAAmB,IAAI;CAE3E,IAAI,SAAS,KAAK,EAAE,GAAG,KAAK,KAAK,mBAAmB,KAAK;CACzD,IAAI,MAAM,UAAU,QAAQ,MAC1B,KAAK,SAAS,OAAO,KAAK,GAAG,IAAI;MAC5B,IAAI,SAAS,MAClB,QAAQ,KAAK,GAAG,IAAI;AAExB;AACA,MAAM,gBAAgB,CAAC;AACvB,MAAa,YAAY,MAAM,MAAM,KAAK,SAAS;CACjD,IAAI,SAAS,GAAG,KAAK,cAAc,MAAM;CACzC,IAAI,SAAS,GAAG,GAAG,cAAc,uBAAO,IAAI,KAAK;CACjD,KAAK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1B,MAAM,IAAI,SAAQ,YAAW;EAC3B,MAAM,iBAAiB,QAAQ;EAC/B,IAAI,MAAM,KACR,cAAc,MAAM,MAAM,KAAK,YAAY,QAAQ;OAEnD,eAAe,MAAM,YAAY,QAAQ;CAE7C,CAAC;CAEH,OAAO;AACT;;;AClJA,MAAM,qBAA2D;CAC/D;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAU,OAAM;GAAU,MAAM;EAAK,CAAA;CACxD;CACA;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAW,OAAM;GAAU,MAAM;EAAK,CAAA;CACzD;CACA;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAS,OAAM;GAAU,MAAM;EAAK,CAAA;CACvD;CACA;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAY,OAAM;GAAU,MAAM;EAAK,CAAA;CAC1D;CACA;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAQ,OAAM;GAAU,MAAM;EAAK,CAAA;CACtD;AACF;AAEA,MAAa,kBAAkB;CAC7B,MAAM,EAAE,MAAM,eAAe;CAC7B,MAAM,CAAC,OAAO,YAAY,SAAS,EAAE;CAErC,OACE,oBAAC,kBAAD;EACE,WAAU;EACV,aAAa,EAAE,uBAAuB;EACtC,aAAa,EAAE,uBAAuB;EACtC,aAAa;EACN;EACP,UAAU;CACX,CAAA;AAEL"}
@@ -1,14 +0,0 @@
1
- import { lazy } from "react";
2
- //#region editors/generic-drive-explorer/module.ts
3
- const GenericDriveExplorer = {
4
- Component: lazy(() => import("../../editor-NwTlNx8z.mjs")),
5
- config: {
6
- id: "GenericDriveExplorer",
7
- name: "Drive Explorer App"
8
- },
9
- documentTypes: ["powerhouse/document-drive"]
10
- };
11
- //#endregion
12
- export { GenericDriveExplorer };
13
-
14
- //# sourceMappingURL=module.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.mjs","names":[],"sources":["../../../../editors/generic-drive-explorer/module.ts"],"sourcesContent":["import type { EditorModule } from \"@powerhousedao/shared/document-model\";\nimport { lazy } from \"react\";\n\nexport const GenericDriveExplorer: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n config: {\n id: \"GenericDriveExplorer\",\n name: \"Drive Explorer App\",\n },\n documentTypes: [\"powerhouse/document-drive\"],\n};\n"],"mappings":";;AAGA,MAAa,uBAAqC;CAChD,WAAW,WAAW,OAAO,4BAAc;CAC3C,QAAQ;EACN,IAAI;EACJ,MAAM;CACR;CACA,eAAe,CAAC,2BAA2B;AAC7C"}