@powerhousedao/powerhouse-vetra-packages 6.2.2-dev.36 → 6.2.2-dev.38

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 (91) hide show
  1. package/dist/browser/assets/{entry-Ce0yKpq-.js → entry-Db_lIhQq.js} +2 -2
  2. package/dist/browser/assets/{projection-entry-DwOOK_h_.js → projection-entry-DqgHaUSy.js} +4 -4
  3. package/dist/browser/{connect-Ecix83Q7.js → connect-BUnNjGUW.js} +872 -198
  4. package/dist/browser/connect-BUnNjGUW.js.map +1 -0
  5. package/dist/browser/{dist-D0oeNPlN.js → dist-BAJ5nRDl.js} +21 -2
  6. package/dist/browser/{dist-D0oeNPlN.js.map → dist-BAJ5nRDl.js.map} +1 -1
  7. package/dist/browser/{dist-CUh_8kqh.js → dist-BatmWBzA.js} +14 -13
  8. package/dist/browser/dist-BatmWBzA.js.map +1 -0
  9. package/dist/browser/{document-drive-CdDEdV_d.js → document-drive-D3Z9vXTQ.js} +216 -16
  10. package/dist/browser/document-drive-D3Z9vXTQ.js.map +1 -0
  11. package/dist/browser/document-models/index.js +1 -1
  12. package/dist/browser/{documents-j_qy61X1.js → documents-J_l59mSV.js} +19 -19
  13. package/dist/browser/{documents-j_qy61X1.js.map → documents-J_l59mSV.js.map} +1 -1
  14. package/dist/browser/editor-BLeFoOh6.js +25 -0
  15. package/dist/browser/editor-BLeFoOh6.js.map +1 -0
  16. package/dist/browser/{editor-D5lROtt4.js → editor-Bn6uXvxG.js} +9 -141
  17. package/dist/browser/editor-Bn6uXvxG.js.map +1 -0
  18. package/dist/browser/editors/document-model-editor/module.js +1 -1
  19. package/dist/browser/editors/generic-drive-explorer/index.js +10 -10
  20. package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
  21. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  22. package/dist/{node/folder-view-DPDx-QKV.mjs → browser/folder-view-DNzFnfW2.js} +53 -45
  23. package/dist/browser/folder-view-DNzFnfW2.js.map +1 -0
  24. package/dist/browser/{graphql-editor-Cynvk_pU.js → graphql-editor-DWo8N_z4.js} +6 -6
  25. package/dist/browser/{graphql-editor-Cynvk_pU.js.map → graphql-editor-DWo8N_z4.js.map} +1 -1
  26. package/dist/browser/{hooks-BgIeO-WG.js → hooks-KKcNp2X0.js} +2 -2
  27. package/dist/browser/{hooks-BgIeO-WG.js.map → hooks-KKcNp2X0.js.map} +1 -1
  28. package/dist/browser/index.js +2 -2
  29. package/dist/browser/{json-editor-Ia0dGnPg.js → json-editor-CEugjpFj.js} +4 -4
  30. package/dist/browser/{json-editor-Ia0dGnPg.js.map → json-editor-CEugjpFj.js.map} +1 -1
  31. package/dist/browser/{lib-7EHYE1Sh.js → lib-CiaHsAaR.js} +12 -2
  32. package/dist/browser/lib-CiaHsAaR.js.map +1 -0
  33. package/dist/browser/{linting-nOwKxGXw.js → linting-_AQWr8aE.js} +4 -4
  34. package/dist/browser/{linting-nOwKxGXw.js.map → linting-_AQWr8aE.js.map} +1 -1
  35. package/dist/browser/{schema-context-ClCYFYSx.js → schema-context-ZyeclQwy.js} +2 -2
  36. package/dist/browser/{schema-context-ClCYFYSx.js.map → schema-context-ZyeclQwy.js.map} +1 -1
  37. package/dist/browser/{state-schemas-zvqdVQZy.js → state-schemas-VrticHe4.js} +7 -7
  38. package/dist/browser/{state-schemas-zvqdVQZy.js.map → state-schemas-VrticHe4.js.map} +1 -1
  39. package/dist/node/{connect-ZK1jSpli.mjs → connect-wMkkAckX.mjs} +872 -198
  40. package/dist/node/connect-wMkkAckX.mjs.map +1 -0
  41. package/dist/node/{dist-CWzLygDa.mjs → dist-CUHBOv3P.mjs} +14 -13
  42. package/dist/node/dist-CUHBOv3P.mjs.map +1 -0
  43. package/dist/node/{dist-BeZaEP6S.mjs → dist-CzYOpeXN.mjs} +21 -2
  44. package/dist/node/{dist-BeZaEP6S.mjs.map → dist-CzYOpeXN.mjs.map} +1 -1
  45. package/dist/node/{document-drive-TRcgHnNn.mjs → document-drive-CI0J7nMj.mjs} +216 -16
  46. package/dist/node/document-drive-CI0J7nMj.mjs.map +1 -0
  47. package/dist/node/document-models/index.mjs +1 -1
  48. package/dist/node/{documents-Bh_lxLTV.mjs → documents-DCf53bzO.mjs} +19 -19
  49. package/dist/node/{documents-Bh_lxLTV.mjs.map → documents-DCf53bzO.mjs.map} +1 -1
  50. package/dist/node/{editor-BECSOzY6.mjs → editor-Cr-mNQca.mjs} +9 -141
  51. package/dist/node/editor-Cr-mNQca.mjs.map +1 -0
  52. package/dist/node/editor-aIeTo2EE.mjs +25 -0
  53. package/dist/node/editor-aIeTo2EE.mjs.map +1 -0
  54. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  55. package/dist/node/editors/generic-drive-explorer/index.mjs +10 -10
  56. package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
  57. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  58. package/dist/{browser/folder-view-CiSnA6dd.js → node/folder-view-_x1OBYZN.mjs} +53 -45
  59. package/dist/node/folder-view-_x1OBYZN.mjs.map +1 -0
  60. package/dist/node/{graphql-editor-CllvWxH7.mjs → graphql-editor-Dd2_z5QJ.mjs} +5 -5
  61. package/dist/node/{graphql-editor-CllvWxH7.mjs.map → graphql-editor-Dd2_z5QJ.mjs.map} +1 -1
  62. package/dist/node/{hooks-B7KF2A2g.mjs → hooks-D0DcS3MV.mjs} +2 -2
  63. package/dist/node/{hooks-B7KF2A2g.mjs.map → hooks-D0DcS3MV.mjs.map} +1 -1
  64. package/dist/node/index.mjs +2 -2
  65. package/dist/node/{json-editor-BQz0iygc.mjs → json-editor-Dphg6ZeL.mjs} +4 -4
  66. package/dist/node/{json-editor-BQz0iygc.mjs.map → json-editor-Dphg6ZeL.mjs.map} +1 -1
  67. package/dist/node/{linting-D6drcQHM.mjs → linting-BjvRPjCY.mjs} +4 -4
  68. package/dist/node/{linting-D6drcQHM.mjs.map → linting-BjvRPjCY.mjs.map} +1 -1
  69. package/dist/node/{main-CTGoYLka.mjs → main-Db0ei9wX.mjs} +12 -2
  70. package/dist/node/main-Db0ei9wX.mjs.map +1 -0
  71. package/dist/node/{schema-context-pefmG2VW.mjs → schema-context-DL8jhi_d.mjs} +2 -2
  72. package/dist/node/{schema-context-pefmG2VW.mjs.map → schema-context-DL8jhi_d.mjs.map} +1 -1
  73. package/dist/node/{state-schemas-DHAaFwXN.mjs → state-schemas-BSLgTw2O.mjs} +7 -7
  74. package/dist/node/{state-schemas-DHAaFwXN.mjs.map → state-schemas-BSLgTw2O.mjs.map} +1 -1
  75. package/package.json +6 -6
  76. package/dist/browser/connect-Ecix83Q7.js.map +0 -1
  77. package/dist/browser/dist-CUh_8kqh.js.map +0 -1
  78. package/dist/browser/document-drive-CdDEdV_d.js.map +0 -1
  79. package/dist/browser/editor-D5lROtt4.js.map +0 -1
  80. package/dist/browser/editor-DS1Qw25T.js +0 -29
  81. package/dist/browser/editor-DS1Qw25T.js.map +0 -1
  82. package/dist/browser/folder-view-CiSnA6dd.js.map +0 -1
  83. package/dist/browser/lib-7EHYE1Sh.js.map +0 -1
  84. package/dist/node/connect-ZK1jSpli.mjs.map +0 -1
  85. package/dist/node/dist-CWzLygDa.mjs.map +0 -1
  86. package/dist/node/document-drive-TRcgHnNn.mjs.map +0 -1
  87. package/dist/node/editor-BECSOzY6.mjs.map +0 -1
  88. package/dist/node/editor-DU6syqHF.mjs +0 -29
  89. package/dist/node/editor-DU6syqHF.mjs.map +0 -1
  90. package/dist/node/folder-view-DPDx-QKV.mjs.map +0 -1
  91. package/dist/node/main-CTGoYLka.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React"],"sources":["../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@6.0.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@6.0.3/node_modules/react-i18next/dist/es/utils.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@6.0.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@6.0.3/node_modules/react-i18next/dist/es/unescape.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@6.0.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@6.0.3/node_modules/react-i18next/dist/es/defaults.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@6.0.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@6.0.3/node_modules/react-i18next/dist/es/i18nInstance.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@6.0.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@6.0.3/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/shim/index.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@6.0.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@6.0.3/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","'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 { Icon } from \"@powerhousedao/design-system\";\nimport type { ConnectSearchBarProps } from \"@powerhousedao/design-system/connect\";\nimport { ConnectSearchBar } 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],"mappings":";;;;;;;;;AAAA,MAAa,QAAQ,MAAM,MAAM,KAAK,SAAS;CAC7C,MAAM,OAAO,CAAC,KAAK;EACjB;EACA,GAAI,QAAQ,EAAE;EACf,CAAC;AACF,KAAI,MAAM,UAAU,QAAQ,QAC1B,QAAO,KAAK,SAAS,OAAO,QAAQ,MAAM,QAAQ,mBAAmB,KAAK;AAE5E,KAAI,SAAS,KAAK,GAAG,CAAE,MAAK,KAAK,mBAAmB,KAAK;AACzD,KAAI,MAAM,UAAU,QAAQ,KAC1B,MAAK,SAAS,OAAO,KAAK,GAAG,KAAK;UACzB,SAAS,KAClB,SAAQ,KAAK,GAAG,KAAK;;AAGzB,MAAM,gBAAgB,EAAE;AACxB,MAAa,YAAY,MAAM,MAAM,KAAK,SAAS;AACjD,KAAI,SAAS,IAAI,IAAI,cAAc,KAAM;AACzC,KAAI,SAAS,IAAI,CAAE,eAAc,uBAAO,IAAI,MAAM;AAClD,MAAK,MAAM,MAAM,KAAK,KAAK;;AAE7B,MAAM,aAAa,MAAM,aAAa;AACpC,KAAI,KAAK,cACP,KAAI;MACC;EACL,MAAM,oBAAoB;AACxB,oBAAiB;AACf,SAAK,IAAI,eAAe,YAAY;MACnC,EAAE;AACL,OAAI;;AAEN,OAAK,GAAG,eAAe,YAAY;;;AAGvC,MAAa,kBAAkB,MAAM,IAAI,OAAO;AAC9C,MAAK,eAAe,IAAI,UAAU,MAAM,GAAG,CAAC;;AAE9C,MAAa,iBAAiB,MAAM,KAAK,IAAI,OAAO;AAClD,KAAI,SAAS,GAAG,CAAE,MAAK,CAAC,GAAG;AAC3B,KAAI,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;EAAO,UAAU;EAAkB,UAAU;EAAU,UAAU;EAAU,CAAC;AAC9F,KAAI,QAAQ,eAAe,CAAC,MAC1B,OAAM,IAAI,SAAQ,YAAW;EAC3B,MAAM,iBAAiB,SAAS;AAChC,MAAI,MAAM,IACR,eAAc,MAAM,MAAM,KAAK,YAAY,SAAS;MAEpD,gBAAe,MAAM,YAAY,SAAS;GAE5C;AAEJ,QAAO;;;;AChJT,MAAM,qBAA2D;CAC/D;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAU,OAAM;GAAU,MAAM;GAAM,CAAA;EACxD;CACD;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAW,OAAM;GAAU,MAAM;GAAM,CAAA;EACzD;CACD;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAS,OAAM;GAAU,MAAM;GAAM,CAAA;EACvD;CACD;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAY,OAAM;GAAU,MAAM;GAAM,CAAA;EAC1D;CACD;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAQ,OAAM;GAAU,MAAM;GAAM,CAAA;EACtD;CACF;AAED,MAAa,kBAAkB;CAC7B,MAAM,EAAE,MAAM,gBAAgB;CAC9B,MAAM,CAAC,OAAO,YAAY,SAAS,GAAG;AAEtC,QACE,oBAAC,kBAAD;EACE,WAAU;EACV,aAAa,EAAE,wBAAwB;EACvC,aAAa,EAAE,wBAAwB;EACvC,aAAa;EACN;EACP,UAAU;EACV,CAAA"}
1
+ {"version":3,"file":"index.js","names":["React"],"sources":["../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@5.9.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@5.9.3/node_modules/react-i18next/dist/es/utils.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@5.9.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@5.9.3/node_modules/react-i18next/dist/es/unescape.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@5.9.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@5.9.3/node_modules/react-i18next/dist/es/defaults.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@5.9.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@5.9.3/node_modules/react-i18next/dist/es/i18nInstance.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@5.9.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@5.9.3/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/shim/index.js","../../../../../../node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.13_typescript@5.9.3__react-dom@19.2.6_react@19.2.6__react@19.2.6_typescript@5.9.3/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","'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 { Icon } from \"@powerhousedao/design-system\";\nimport type { ConnectSearchBarProps } from \"@powerhousedao/design-system/connect\";\nimport { ConnectSearchBar } 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],"mappings":";;;;;;;;;AAAA,MAAa,QAAQ,MAAM,MAAM,KAAK,SAAS;CAC7C,MAAM,OAAO,CAAC,KAAK;EACjB;EACA,GAAI,QAAQ,EAAE;EACf,CAAC;AACF,KAAI,MAAM,UAAU,QAAQ,QAC1B,QAAO,KAAK,SAAS,OAAO,QAAQ,MAAM,QAAQ,mBAAmB,KAAK;AAE5E,KAAI,SAAS,KAAK,GAAG,CAAE,MAAK,KAAK,mBAAmB,KAAK;AACzD,KAAI,MAAM,UAAU,QAAQ,KAC1B,MAAK,SAAS,OAAO,KAAK,GAAG,KAAK;UACzB,SAAS,KAClB,SAAQ,KAAK,GAAG,KAAK;;AAGzB,MAAM,gBAAgB,EAAE;AACxB,MAAa,YAAY,MAAM,MAAM,KAAK,SAAS;AACjD,KAAI,SAAS,IAAI,IAAI,cAAc,KAAM;AACzC,KAAI,SAAS,IAAI,CAAE,eAAc,uBAAO,IAAI,MAAM;AAClD,MAAK,MAAM,MAAM,KAAK,KAAK;;AAE7B,MAAM,aAAa,MAAM,aAAa;AACpC,KAAI,KAAK,cACP,KAAI;MACC;EACL,MAAM,oBAAoB;AACxB,oBAAiB;AACf,SAAK,IAAI,eAAe,YAAY;MACnC,EAAE;AACL,OAAI;;AAEN,OAAK,GAAG,eAAe,YAAY;;;AAGvC,MAAa,kBAAkB,MAAM,IAAI,OAAO;AAC9C,MAAK,eAAe,IAAI,UAAU,MAAM,GAAG,CAAC;;AAE9C,MAAa,iBAAiB,MAAM,KAAK,IAAI,OAAO;AAClD,KAAI,SAAS,GAAG,CAA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AACZ,SAAO;IACN;EAAC;EAAG;EAAW;EAAO,UAAU;EAAkB,UAAU;EAAU,UAAU;EAAU,CAAC;AAC9F,KAAI,QAAQ,eAAe,CAAC,MAC1B,OAAM,IAAI,SAAQ,YAAW;EAC3B,MAAM,iBAAiB,SAAS;AAChC,MAAI,MAAM,IACR,eAAc,MAAM,MAAM,KAAK,YAAY,SAAS;MAEpD,gBAAe,MAAM,YAAY,SAAS;GAE5C;AAEJ,QAAO;;;;AChJT,MAAM,qBAA2D;CAC/D;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAU,OAAM;GAAU,MAAM;GAAM,CAAA;EACxD;CACD;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAW,OAAM;GAAU,MAAM;GAAM,CAAA;EACzD;CACD;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAS,OAAM;GAAU,MAAM;GAAM,CAAA;EACvD;CACD;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAY,OAAM;GAAU,MAAM;GAAM,CAAA;EAC1D;CACD;EACE,IAAI;EACJ,OAAO;EACP,MAAM,oBAAC,MAAD;GAAM,MAAK;GAAQ,OAAM;GAAU,MAAM;GAAM,CAAA;EACtD;CACF;AAED,MAAa,kBAAkB;CAC7B,MAAM,EAAE,MAAM,gBAAgB;CAC9B,MAAM,CAAC,OAAO,YAAY,SAAS,GAAG;AAEtC,QACE,oBAAC,kBAAD;EACE,WAAU;EACV,aAAa,EAAE,wBAAwB;EACvC,aAAa,EAAE,wBAAwB;EACvC,aAAa;EACN;EACP,UAAU;EACV,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { lazy } from "react";
2
2
  //#region editors/generic-drive-explorer/module.ts
3
3
  const GenericDriveExplorer = {
4
- Component: lazy(() => import("../../editor-DS1Qw25T.js")),
4
+ Component: lazy(() => import("../../editor-BLeFoOh6.js")),
5
5
  config: {
6
6
  id: "GenericDriveExplorer",
7
7
  name: "Drive Explorer App"
@@ -1,17 +1,27 @@
1
- import { a as FolderItem, h as useWindowSize, i as FileItem, m as PowerhouseButton, o as useVirtualizer } from "./connect-ZK1jSpli.mjs";
2
- import { C as twMerge } from "./dist-BeZaEP6S.mjs";
3
- import { D as useDisabledEditors, a as useEditorModules, b as isFileNodeKind, d as useNodesInSelectedDriveOrFolder, n as preloadEditorModule, r as useAllowedDocumentModelModules, v as useUserPermissions, w as showCreateDocumentModal, x as isFolderNodeKind } from "./dist-CWzLygDa.mjs";
4
- import React, { useRef } from "react";
5
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { a as FileItem, g as useWindowSize, h as PowerhouseButton, o as FolderItem, r as CreateDocumentWithTypeModal, s as useVirtualizer, y as Icon } from "./connect-BUnNjGUW.js";
2
+ import { w as twMerge } from "./dist-BAJ5nRDl.js";
3
+ import { C as isFileNodeKind, E as setSelectedNode, P as useSelectedDriveSafe, a as useEditorModules, b as useUserPermissions, d as useNodesInSelectedDriveOrFolder, f as useParentFolderForSelectedNode, h as useSelectedFolder, k as useDisabledEditors, n as preloadEditorModule, r as useAllowedDocumentModelModules, w as isFolderNodeKind, x as addDocument } from "./dist-BatmWBzA.js";
4
+ import React, { useRef, useState } from "react";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region editors/generic-drive-explorer/components/create-document.tsx
7
- function getDocumentSpec(doc) {
8
- return doc.documentModel.global;
7
+ function toDocumentTypeOption(doc) {
8
+ const spec = doc.documentModel.global;
9
+ return {
10
+ documentType: spec.id,
11
+ name: spec.name,
12
+ version: doc.version,
13
+ description: spec.description
14
+ };
9
15
  }
10
16
  function CreateDocument() {
17
+ const [showModal, setShowModal] = useState(false);
11
18
  const { isAllowedToCreateDocuments } = useUserPermissions();
12
19
  const allowedDocumentModelModules = useAllowedDocumentModelModules();
13
20
  const editorModules = useEditorModules();
14
21
  const disabledEditors = useDisabledEditors() ?? [];
22
+ const [selectedDrive] = useSelectedDriveSafe();
23
+ const selectedFolder = useSelectedFolder();
24
+ const parentFolder = useParentFolderForSelectedNode();
15
25
  const DRIVE_CONTAINER_TYPES = ["powerhouse/document-drive", "powerhouse/reactor-drive"];
16
26
  const visibleDocumentModelModules = allowedDocumentModelModules?.filter((module) => {
17
27
  const id = module.documentModel.global.id;
@@ -20,32 +30,34 @@ function CreateDocument() {
20
30
  const preloadEditorsForType = (documentType) => editorModules?.filter((editorModule) => editorModule.documentTypes.includes(documentType)).forEach((editorModule) => {
21
31
  preloadEditorModule(editorModule);
22
32
  });
33
+ const handleCreate = async ({ name, documentType }) => {
34
+ setShowModal(false);
35
+ if (!selectedDrive) return;
36
+ try {
37
+ setSelectedNode(await addDocument(selectedDrive.header.id, name, documentType, selectedFolder?.id ?? parentFolder?.id));
38
+ } catch (error) {
39
+ console.error("Failed to create document:", error);
40
+ }
41
+ };
23
42
  if (!isAllowedToCreateDocuments) return null;
24
- return /* @__PURE__ */ jsxs("div", {
25
- className: "px-6 py-4",
26
- children: [/* @__PURE__ */ jsx("h3", {
27
- className: "mb-3 text-xl font-bold text-foreground",
28
- children: "New document"
29
- }), /* @__PURE__ */ jsx("div", {
30
- className: "flex w-full flex-wrap gap-4",
31
- children: visibleDocumentModelModules?.map((doc) => {
32
- const spec = getDocumentSpec(doc);
33
- const versionLabel = doc.version ? ` v${doc.version}` : "";
34
- return /* @__PURE__ */ jsx(PowerhouseButton, {
35
- color: "light",
36
- title: `${spec.name}${versionLabel}`,
37
- "aria-description": spec.description,
38
- onMouseEnter: () => preloadEditorsForType(spec.id),
39
- onFocus: () => preloadEditorsForType(spec.id),
40
- onClick: () => showCreateDocumentModal(spec.id),
41
- children: /* @__PURE__ */ jsxs("span", {
42
- className: "text-sm",
43
- children: [spec.name, versionLabel]
44
- })
45
- }, `${spec.id}-v${doc.version ?? 1}`);
46
- })
47
- })]
48
- });
43
+ if (!visibleDocumentModelModules?.length) return null;
44
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(PowerhouseButton, {
45
+ className: "py-2",
46
+ color: "blue",
47
+ icon: /* @__PURE__ */ jsx(Icon, {
48
+ name: "Plus",
49
+ size: 14
50
+ }),
51
+ onClick: () => setShowModal(true),
52
+ size: "small",
53
+ children: "Create New Document"
54
+ }), /* @__PURE__ */ jsx(CreateDocumentWithTypeModal, {
55
+ documentTypes: visibleDocumentModelModules.map(toDocumentTypeOption),
56
+ onCreate: (input) => void handleCreate(input),
57
+ onOpenChange: setShowModal,
58
+ onTypeSelected: preloadEditorsForType,
59
+ open: showModal
60
+ })] });
49
61
  }
50
62
  //#endregion
51
63
  //#region editors/generic-drive-explorer/components/file-content-view.tsx
@@ -154,28 +166,23 @@ DriveLayout.Content = function DriveLayoutContent({ children, className, contain
154
166
  children
155
167
  });
156
168
  };
157
- DriveLayout.ContentSection = function DriveLayoutContentSection({ title, children, className, containerProps, ...props }) {
169
+ DriveLayout.ContentSection = function DriveLayoutContentSection({ title, actions, children, className, containerProps, ...props }) {
158
170
  return /* @__PURE__ */ jsxs("div", {
159
171
  className: twMerge(className),
160
172
  ...containerProps,
161
173
  ...props,
162
- children: [title && /* @__PURE__ */ jsx("div", {
163
- className: "mb-4 text-base font-semibold text-foreground",
164
- children: title
174
+ children: [(title || actions) && /* @__PURE__ */ jsxs("div", {
175
+ className: "mb-4 flex items-center justify-between gap-3",
176
+ children: [title && /* @__PURE__ */ jsx("div", {
177
+ className: "text-base font-semibold text-foreground",
178
+ children: title
179
+ }), actions]
165
180
  }), /* @__PURE__ */ jsx("div", {
166
181
  className: "flex flex-wrap gap-2",
167
182
  children
168
183
  })]
169
184
  });
170
185
  };
171
- DriveLayout.Footer = function DriveLayoutFooter({ children, className, containerProps, ...props }) {
172
- return /* @__PURE__ */ jsx("div", {
173
- className: twMerge("flex-0", className),
174
- ...containerProps,
175
- ...props,
176
- children
177
- });
178
- };
179
186
  //#endregion
180
187
  //#region editors/generic-drive-explorer/components/folder-view.tsx
181
188
  function FolderView(props) {
@@ -192,6 +199,7 @@ function FolderView(props) {
192
199
  })
193
200
  }), /* @__PURE__ */ jsx(DriveLayout.ContentSection, {
194
201
  title: "Documents and files",
202
+ actions: /* @__PURE__ */ jsx(CreateDocument, {}),
195
203
  children: /* @__PURE__ */ jsx("div", {
196
204
  className: "w-full",
197
205
  children: /* @__PURE__ */ jsx(FileContentView, {})
@@ -202,4 +210,4 @@ function FolderView(props) {
202
210
  //#endregion
203
211
  export { CreateDocument as i, DriveLayout as n, FileContentView as r, FolderView as t };
204
212
 
205
- //# sourceMappingURL=folder-view-DPDx-QKV.mjs.map
213
+ //# sourceMappingURL=folder-view-DNzFnfW2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-view-DNzFnfW2.js","names":[],"sources":["../../editors/generic-drive-explorer/components/create-document.tsx","../../editors/generic-drive-explorer/components/file-content-view.tsx","../../editors/generic-drive-explorer/components/layout.tsx","../../editors/generic-drive-explorer/components/folder-view.tsx"],"sourcesContent":["import { Icon, PowerhouseButton } from \"@powerhousedao/design-system\";\nimport type { DocumentTypeOption } from \"@powerhousedao/design-system/connect\";\nimport { CreateDocumentWithTypeModal } from \"@powerhousedao/design-system/connect\";\nimport {\n addDocument,\n preloadEditorModule,\n setSelectedNode,\n useAllowedDocumentModelModules,\n useDisabledEditors,\n useEditorModules,\n useParentFolderForSelectedNode,\n useSelectedDriveSafe,\n useSelectedFolder,\n useUserPermissions,\n} from \"@powerhousedao/reactor-browser\";\nimport type { DocumentModelModule } from \"@powerhousedao/shared/document-model\";\nimport { useState } from \"react\";\n\nfunction toDocumentTypeOption(doc: DocumentModelModule): DocumentTypeOption {\n const spec = doc.documentModel.global;\n return {\n documentType: spec.id,\n name: spec.name,\n version: doc.version,\n description: spec.description,\n };\n}\n\nexport function CreateDocument() {\n const [showModal, setShowModal] = useState(false);\n const { isAllowedToCreateDocuments } = useUserPermissions();\n // Respect Connect config: allowedDocumentTypes (allowlist) via the hook,\n // disabledEditors (denylist) subtracted below.\n const allowedDocumentModelModules = useAllowedDocumentModelModules();\n const editorModules = useEditorModules();\n const disabledEditors = useDisabledEditors() ?? [];\n const [selectedDrive] = useSelectedDriveSafe();\n const selectedFolder = useSelectedFolder();\n const parentFolder = useParentFolderForSelectedNode();\n // Drive containers are never documents-in-a-drive; hide them structurally so\n // this shared editor can't fail open when disabledEditors is unset.\n const DRIVE_CONTAINER_TYPES = [\n \"powerhouse/document-drive\",\n \"powerhouse/reactor-drive\",\n ];\n const visibleDocumentModelModules = allowedDocumentModelModules?.filter(\n (module) => {\n const id = module.documentModel.global.id;\n return (\n !DRIVE_CONTAINER_TYPES.includes(id) && !disabledEditors.includes(id)\n );\n },\n );\n const preloadEditorsForType = (documentType: string) =>\n editorModules\n ?.filter((editorModule) =>\n editorModule.documentTypes.includes(documentType),\n )\n .forEach((editorModule) => {\n void preloadEditorModule(editorModule);\n });\n const handleCreate = async ({\n name,\n documentType,\n }: {\n name: string;\n documentType: string;\n version?: number;\n }) => {\n // version is display-only for now: addDocument has no version parameter,\n // the reactor resolves the latest module for the type (spec section 5).\n setShowModal(false);\n if (!selectedDrive) return;\n try {\n const node = await addDocument(\n selectedDrive.header.id,\n name,\n documentType,\n selectedFolder?.id ?? parentFolder?.id,\n );\n setSelectedNode(node);\n } catch (error) {\n console.error(\"Failed to create document:\", error);\n }\n };\n if (!isAllowedToCreateDocuments) return null;\n if (!visibleDocumentModelModules?.length) return null;\n // Rendered in the \"Documents and files\" heading row (see folder-view.tsx),\n // so the button is compact and brings no layout wrapper of its own.\n return (\n <>\n <PowerhouseButton\n className=\"py-2\"\n color=\"blue\"\n icon={<Icon name=\"Plus\" size={14} />}\n onClick={() => setShowModal(true)}\n size=\"small\"\n >\n Create New Document\n </PowerhouseButton>\n <CreateDocumentWithTypeModal\n documentTypes={visibleDocumentModelModules.map(toDocumentTypeOption)}\n onCreate={(input) => void handleCreate(input)}\n onOpenChange={setShowModal}\n onTypeSelected={preloadEditorsForType}\n open={showModal}\n />\n </>\n );\n}\n","import { useWindowSize } from \"@powerhousedao/design-system\";\nimport { FileItem } from \"@powerhousedao/design-system/connect\";\nimport {\n isFileNodeKind,\n useNodesInSelectedDriveOrFolder,\n} from \"@powerhousedao/reactor-browser\";\nimport { useVirtualizer } from \"@tanstack/react-virtual\";\nimport type { FileNode } from \"@powerhousedao/shared/document-drive\";\nimport React, { useRef } from \"react\";\n\nconst GAP = 8;\nconst ITEM_WIDTH = 256;\nconst ITEM_HEIGHT = 48;\n\nconst USED_SPACE = 420;\n\nexport function FileContentView() {\n const parentRef = useRef(null);\n const windowSize = useWindowSize();\n const availableWidth = windowSize.innerWidth - USED_SPACE;\n const nodes = useNodesInSelectedDriveOrFolder();\n const fileNodes = nodes.filter((n) => isFileNodeKind(n));\n const columnCount = Math.floor(availableWidth / (ITEM_WIDTH + GAP)) || 1;\n const rowCount = Math.ceil(fileNodes.length / columnCount);\n\n const rowVirtualizer = useVirtualizer({\n count: rowCount,\n getScrollElement: () => parentRef.current,\n estimateSize: (index) => {\n if (index > 0) {\n return ITEM_HEIGHT + GAP;\n }\n return ITEM_HEIGHT;\n },\n overscan: 5,\n });\n\n const columnVirtualizer = useVirtualizer({\n horizontal: true,\n count: columnCount,\n getScrollElement: () => parentRef.current,\n estimateSize: (index) => {\n if (index > 0) {\n return ITEM_WIDTH + GAP;\n }\n return ITEM_WIDTH;\n },\n overscan: 5,\n });\n\n const getItemIndex = (rowIndex: number, columnIndex: number) =>\n rowIndex * columnCount + columnIndex;\n\n const getItem = (rowIndex: number, columnIndex: number): FileNode | null => {\n const index = getItemIndex(rowIndex, columnIndex);\n return fileNodes[index] || null;\n };\n\n if (fileNodes.length === 0) {\n return (\n <div className=\"mb-8 text-sm text-muted-foreground\">\n No documents or files 📄\n </div>\n );\n }\n\n const renderItem = (rowIndex: number, columnIndex: number) => {\n const fileNode = getItem(rowIndex, columnIndex);\n\n if (!fileNode) {\n return null;\n }\n\n return (\n <div\n style={{\n marginLeft: columnIndex === 0 ? 0 : GAP,\n }}\n >\n <FileItem key={fileNode.id} fileNode={fileNode} />\n </div>\n );\n };\n\n return (\n <div\n ref={parentRef}\n style={{\n width: `100%`,\n overflow: \"auto\",\n }}\n >\n <div\n style={{\n height: `${rowVirtualizer.getTotalSize()}px`,\n width: `${columnVirtualizer.getTotalSize()}px`,\n position: \"relative\",\n }}\n >\n {rowVirtualizer.getVirtualItems().map((virtualRow) => (\n <React.Fragment key={virtualRow.key}>\n {columnVirtualizer.getVirtualItems().map((virtualColumn) => (\n <div\n key={virtualColumn.key}\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n marginTop: virtualRow.index === 0 ? 0 : GAP,\n width: `${virtualColumn.size}px`,\n height: `${ITEM_HEIGHT}px`,\n overflow: \"hidden\",\n transform: `translateX(${virtualColumn.start}px) translateY(${virtualRow.start}px)`,\n }}\n >\n {renderItem(virtualRow.index, virtualColumn.index)}\n </div>\n ))}\n </React.Fragment>\n ))}\n </div>\n </div>\n );\n}\n","import { twMerge } from \"tailwind-merge\";\nimport type { BaseProps } from \"../utils/types.js\";\n\nexport function DriveLayout({ children, className, ...props }: BaseProps) {\n return (\n <DriveLayout.Container className={className} {...props}>\n {children}\n </DriveLayout.Container>\n );\n}\n\nDriveLayout.Container = function DriveLayoutContainer({\n children,\n className,\n containerProps,\n ...props\n}: BaseProps) {\n return (\n <div\n className={twMerge(\"flex grow flex-col overflow-auto\", className)}\n {...containerProps}\n {...props}\n >\n {children}\n </div>\n );\n};\n\nDriveLayout.Header = function DriveLayoutHeader({\n children,\n className,\n containerProps,\n ...props\n}: BaseProps) {\n return (\n <div\n className={twMerge(\"flex-0\", className)}\n {...containerProps}\n {...props}\n >\n {children}\n </div>\n );\n};\n\nDriveLayout.Content = function DriveLayoutContent({\n children,\n className,\n containerProps,\n ...props\n}: BaseProps) {\n return (\n <div\n className={twMerge(\"mb-5 flex-1 px-4\", className)}\n {...containerProps}\n {...props}\n >\n {children}\n </div>\n );\n};\n\nDriveLayout.ContentSection = function DriveLayoutContentSection({\n title,\n actions,\n children,\n className,\n containerProps,\n ...props\n}: BaseProps & { title?: string; actions?: React.ReactNode }) {\n return (\n <div className={twMerge(className)} {...containerProps} {...props}>\n {(title || actions) && (\n <div className=\"mb-4 flex items-center justify-between gap-3\">\n {title && (\n <div className=\"text-base font-semibold text-foreground\">\n {title}\n </div>\n )}\n {actions}\n </div>\n )}\n <div className=\"flex flex-wrap gap-2\">{children}</div>\n </div>\n );\n};\n","import { FolderItem } from \"@powerhousedao/design-system/connect\";\nimport {\n isFolderNodeKind,\n useNodesInSelectedDriveOrFolder,\n} from \"@powerhousedao/reactor-browser\";\nimport { twMerge } from \"tailwind-merge\";\nimport { CreateDocument } from \"./create-document.js\";\nimport { FileContentView } from \"./file-content-view.js\";\nimport { DriveLayout } from \"./layout.js\";\n\nexport function FolderView(props: { className?: string }) {\n const { className } = props;\n const nodes = useNodesInSelectedDriveOrFolder();\n const folderNodes = nodes.filter((n) => isFolderNodeKind(n));\n return (\n <div\n className={twMerge(\n \"rounded-md border-2 border-transparent p-2\",\n className,\n )}\n >\n <DriveLayout.ContentSection title=\"Folders\" className=\"mb-4\">\n {folderNodes.length > 0 ? (\n folderNodes.map((folderNode) => (\n <FolderItem key={folderNode.id} folderNode={folderNode} />\n ))\n ) : (\n <div className=\"mb-8 text-sm text-muted-foreground\">\n No documents or files 📄\n </div>\n )}\n </DriveLayout.ContentSection>\n <DriveLayout.ContentSection\n title=\"Documents and files\"\n actions={<CreateDocument />}\n >\n <div className=\"w-full\">\n <FileContentView />\n </div>\n </DriveLayout.ContentSection>\n </div>\n );\n}\n\nexport default FolderView;\n"],"mappings":";;;;;;AAkBA,SAAS,qBAAqB,KAA8C;CAC1E,MAAM,OAAO,IAAI,cAAc;AAC/B,QAAO;EACL,cAAc,KAAK;EACnB,MAAM,KAAK;EACX,SAAS,IAAI;EACb,aAAa,KAAK;EACnB;;AAGH,SAAgB,iBAAiB;CAC/B,MAAM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EAAgB,GAAI;YAA5D,EACI,SAAS,YACT,qBAAC,OAAD;GAAK,WAAU;aAAf,CACG,SACC,oBAAC,OAAD;IAAK,WAAU;cACZ;IACG,CAAA,EAEP,QACG;MAER,oBAAC,OAAD;GAAK,WAAU;GAAwB;GAAe,CAAA,CAClD;;;;;ACzEV,SAAgB,WAAW,OAA+B;CACxD,MAAM,EAAE,cAAc;CAEtB,MAAM,cADQ,iCAAiC,CACrB,QAAQ,MAAM,iBAAiB,EAAE,CAAC;AAC5D,QACE,qBAAC,OAAD;EACE,WAAW,QACT,8CACA,UACD;YAJH,CAME,oBAAC,YAAY,gBAAb;GAA4B,OAAM;GAAU,WAAU;aACnD,YAAY,SAAS,IACpB,YAAY,KAAK,eACf,oBAAC,YAAD,EAA4C,YAAc,EAAzC,WAAW,GAA8B,CAC1D,GAEF,oBAAC,OAAD;IAAK,WAAU;cAAqC;IAE9C,CAAA;GAEmB,CAAA,EAC7B,oBAAC,YAAY,gBAAb;GACE,OAAM;GACN,SAAS,oBAAC,gBAAD,EAAkB,CAAA;aAE3B,oBAAC,OAAD;IAAK,WAAU;cACb,oBAAC,iBAAD,EAAmB,CAAA;IACf,CAAA;GACqB,CAAA,CACzB"}
@@ -1,11 +1,11 @@
1
1
  import { D as __commonJSMin } from "./dist-B4FWbuEM.js";
2
- import "./document-drive-CdDEdV_d.js";
2
+ import "./document-drive-D3Z9vXTQ.js";
3
3
  import { c as Kind, l as DirectiveLocation, m as invariant$1, p as GraphQLError, r as inspect, t as parse } from "./parser-CkF6Qt8V.js";
4
- import { $ as getNamedType, A as validateSchema, B as GraphQLInt, C as NoUnusedFragmentsRule, D as KnownDirectivesRule, E as KnownFragmentNamesRule, F as GraphQLDirective, G as GraphQLInputObjectType, H as isSpecifiedScalarType, I as isSpecifiedDirective, J as GraphQLNonNull, K as GraphQLInterfaceType, L as GraphQLBoolean, M as SchemaMetaFieldDef, N as TypeMetaFieldDef, O as FragmentsOnCompositeTypesRule, P as TypeNameMetaFieldDef, Q as assertAbstractType, R as GraphQLFloat, S as PossibleTypeExtensionsRule, T as KnownTypeNamesRule, U as doTypesOverlap, V as GraphQLString, W as GraphQLEnumType, X as GraphQLScalarType, Y as GraphQLObjectType, Z as GraphQLUnionType, _ as UniqueDirectivesPerLocationRule, at as isInputType, c as buildSchema, ct as isListType, d as UniqueVariableNamesRule, dt as isObjectType, et as getNullableType, f as UniqueTypeNamesRule, ft as isOutputType, g as UniqueEnumValueNamesRule, h as UniqueFieldDefinitionNamesRule, it as isInputObjectType, j as GraphQLSchema, k as ExecutableDefinitionsRule, l as validate, lt as isNamedType, m as UniqueInputFieldNamesRule, mt as isUnionType, nt as isCompositeType, ot as isInterfaceType, p as UniqueOperationTypesRule, pt as isScalarType, q as GraphQLList, rt as isEnumType, st as isLeafType, tt as isAbstractType, u as specifiedRules, ut as isNonNullType, v as UniqueDirectiveNamesRule, w as LoneSchemaDefinitionRule, x as ProvidedRequiredArgumentsRule, y as UniqueArgumentNamesRule, z as GraphQLID } from "./documents-j_qy61X1.js";
4
+ import { $ as getNamedType, A as validateSchema, B as GraphQLInt, C as NoUnusedFragmentsRule, D as KnownDirectivesRule, E as KnownFragmentNamesRule, F as GraphQLDirective, G as GraphQLInputObjectType, H as isSpecifiedScalarType, I as isSpecifiedDirective, J as GraphQLNonNull, K as GraphQLInterfaceType, L as GraphQLBoolean, M as SchemaMetaFieldDef, N as TypeMetaFieldDef, O as FragmentsOnCompositeTypesRule, P as TypeNameMetaFieldDef, Q as assertAbstractType, R as GraphQLFloat, S as PossibleTypeExtensionsRule, T as KnownTypeNamesRule, U as doTypesOverlap, V as GraphQLString, W as GraphQLEnumType, X as GraphQLScalarType, Y as GraphQLObjectType, Z as GraphQLUnionType, _ as UniqueDirectivesPerLocationRule, at as isInputType, c as buildSchema, ct as isListType, d as UniqueVariableNamesRule, dt as isObjectType, et as getNullableType, f as UniqueTypeNamesRule, ft as isOutputType, g as UniqueEnumValueNamesRule, h as UniqueFieldDefinitionNamesRule, it as isInputObjectType, j as GraphQLSchema, k as ExecutableDefinitionsRule, l as validate, lt as isNamedType, m as UniqueInputFieldNamesRule, mt as isUnionType, nt as isCompositeType, ot as isInterfaceType, p as UniqueOperationTypesRule, pt as isScalarType, q as GraphQLList, rt as isEnumType, st as isLeafType, tt as isAbstractType, u as specifiedRules, ut as isNonNullType, v as UniqueDirectiveNamesRule, w as LoneSchemaDefinitionRule, x as ProvidedRequiredArgumentsRule, y as UniqueArgumentNamesRule, z as GraphQLID } from "./documents-J_l59mSV.js";
5
5
  import { i as visit, n as BREAK, t as print } from "./printer-CEYr4JOg.js";
6
- import { _ as useTheme } from "./dist-CUh_8kqh.js";
7
- import { C as linter, D as EditorState, E as Compartment, O as StateEffect, S as forceLinting, T as keymap, _ as foldNodeProp, a as makeFocusHandler, b as tags, c as baseEditorExtensions, d as ayuLight, f as LRLanguage, g as foldInside, h as delimitedIndent, i as useHandlerReconfiguration, k as StateField, l as baseKeymap, n as useEditorCleanup, o as makePasteHandler, p as LanguageSupport, r as useEditorRefs, s as makeUpdateHandler, t as useDocumentSync, u as dracula, v as indentNodeProp, w as EditorView, x as LRParser, y as styleTags } from "./hooks-BgIeO-WG.js";
8
- import { n as safeParseSdl, r as useSchemaContext } from "./schema-context-ClCYFYSx.js";
6
+ import { y as useTheme } from "./dist-BatmWBzA.js";
7
+ import { C as linter, D as EditorState, E as Compartment, O as StateEffect, S as forceLinting, T as keymap, _ as foldNodeProp, a as makeFocusHandler, b as tags, c as baseEditorExtensions, d as ayuLight, f as LRLanguage, g as foldInside, h as delimitedIndent, i as useHandlerReconfiguration, k as StateField, l as baseKeymap, n as useEditorCleanup, o as makePasteHandler, p as LanguageSupport, r as useEditorRefs, s as makeUpdateHandler, t as useDocumentSync, u as dracula, v as indentNodeProp, w as EditorView, x as LRParser, y as styleTags } from "./hooks-KKcNp2X0.js";
8
+ import { n as safeParseSdl, r as useSchemaContext } from "./schema-context-ZyeclQwy.js";
9
9
  import { memo, useEffect, useRef } from "react";
10
10
  import { jsx } from "react/jsx-runtime";
11
11
  //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/toError.mjs
@@ -11695,4 +11695,4 @@ const GraphqlEditor = memo(function GraphqlEditor(props) {
11695
11695
  //#endregion
11696
11696
  export { GraphqlEditor as default };
11697
11697
 
11698
- //# sourceMappingURL=graphql-editor-Cynvk_pU.js.map
11698
+ //# sourceMappingURL=graphql-editor-DWo8N_z4.js.map