} $0.getPostBodyComponents Returns the current `postBodyComponents` array.
- * @param {function} $0.replacePostBodyComponents Takes an array of components as its
- * first argument which replace the `postBodyComponents` array which is passed
- * to the `html.js` component. **WARNING** if multiple plugins implement this
- * API it's the last plugin that "wins".
- * @param {pluginOptions} pluginOptions
- * @example
- * // Move Typography.js styles to the top of the head section so they're loaded first.
- * exports.onPreRenderHTML = ({ getHeadComponents, replaceHeadComponents }) => {
- * const headComponents = getHeadComponents()
- * headComponents.sort((x, y) => {
- * if (x.key === 'TypographyStyle') {
- * return -1
- * } else if (y.key === 'TypographyStyle') {
- * return 1
- * }
- * return 0
- * })
- * replaceHeadComponents(headComponents)
- * }
- */
-
-exports.onPreRenderHTML = true;
-/**
- * Allow a plugin to wrap the page element.
- *
- * This is useful for setting wrapper components around pages that won't get
- * unmounted on page changes. For setting Provider components, use [wrapRootElement](#wrapRootElement).
- *
- * _Note:_
- * There is an equivalent hook in Gatsby's [Browser API](/docs/browser-apis/#wrapPageElement).
- * It is recommended to use both APIs together.
- * For example usage, check out [Using i18n](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-i18n).
- * @param {object} $0
- * @param {ReactNode} $0.element The "Page" React Element built by Gatsby.
- * @param {object} $0.props Props object used by page.
- * @param {pluginOptions} pluginOptions
- * @returns {ReactNode} Wrapped element
- * @example
- * const React = require("react")
- * const Layout = require("./src/components/layout").default
- *
- * exports.wrapPageElement = ({ element, props }) => {
- * // props provide same data to Layout as Page element will get
- * // including location, data, etc - you don't need to pass it
- * return {element}
- * }
- */
-
-exports.wrapPageElement = true;
-/**
- * Allow a plugin to wrap the root element.
- *
- * This is useful to set up any Provider components that will wrap your application.
- * For setting persistent UI elements around pages use [wrapPageElement](#wrapPageElement).
- *
- * _Note:_
- * There is an equivalent hook in Gatsby's [Browser API](/docs/browser-apis/#wrapRootElement).
- * It is recommended to use both APIs together.
- * For example usage, check out [Using redux](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-redux).
- * @param {object} $0
- * @param {ReactNode} $0.element The "Root" React Element built by Gatsby.
- * @param {pluginOptions} pluginOptions
- * @returns {ReactNode} Wrapped element
- * @example
- * const React = require("react")
- * const { Provider } = require("react-redux")
- *
- * const createStore = require("./src/state/createStore")
- * const store = createStore()
- *
- * exports.wrapRootElement = ({ element }) => {
- * return (
- *
- * {element}
- *
- * )
- * }
- */
-
-exports.wrapRootElement = true;
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/app.js b/js/packages/metaplex/.cache/commonjs/app.js
deleted file mode 100644
index d4364bf..0000000
--- a/js/packages/metaplex/.cache/commonjs/app.js
+++ /dev/null
@@ -1,203 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.notCalledFunction = notCalledFunction;
-
-var _react = _interopRequireDefault(require("react"));
-
-var _reactDom = _interopRequireDefault(require("react-dom"));
-
-var _domready = _interopRequireDefault(require("@mikaelkristiansson/domready"));
-
-var _socket = _interopRequireDefault(require("socket.io-client"));
-
-var _socketIo = _interopRequireDefault(require("./socketIo"));
-
-var _emitter = _interopRequireDefault(require("./emitter"));
-
-var _apiRunnerBrowser = require("./api-runner-browser");
-
-var _loader = require("./loader");
-
-var _indicator = require("./loading-indicator/indicator");
-
-var _devLoader = _interopRequireDefault(require("./dev-loader"));
-
-var _asyncRequires = _interopRequireDefault(require("$virtual/async-requires"));
-
-var _matchPaths = _interopRequireDefault(require("$virtual/match-paths.json"));
-
-var _loadingIndicator = require("./loading-indicator");
-
-var _root = _interopRequireDefault(require("./root"));
-
-var _navigation = require("./navigation");
-
-require("./blank.css");
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-// Enable fast-refresh for virtual sync-requires, gatsby-browser & navigation
-// To ensure that our component can hot reload in case anything below doesn't
-// satisfy fast-refresh constraints
-module.hot.accept([`$virtual/async-requires`, `./api-runner-browser`, `./navigation`]);
-window.___emitter = _emitter.default;
-
-if (process.env.GATSBY_EXPERIMENTAL_CONCURRENT_FEATURES && !_reactDom.default.unstable_createRoot) {
- throw new Error(`The GATSBY_EXPERIMENTAL_CONCURRENT_FEATURES flag is not compatible with your React version. Please install "react@0.0.0-experimental-57768ef90" and "react-dom@0.0.0-experimental-57768ef90" or higher.`);
-}
-
-const loader = new _devLoader.default(_asyncRequires.default, _matchPaths.default);
-(0, _loader.setLoader)(loader);
-loader.setApiRunner(_apiRunnerBrowser.apiRunner);
-window.___loader = _loader.publicLoader; // Do dummy dynamic import so the jsonp __webpack_require__.e is added to the commons.js
-// bundle. This ensures hot reloading doesn't break when someone first adds
-// a dynamic import.
-//
-// Without this, the runtime breaks with a
-// "TypeError: __webpack_require__.e is not a function"
-// error.
-
-function notCalledFunction() {
- return Promise.resolve().then(() => _interopRequireWildcard(require(`./dummy`)));
-} // Let the site/plugins run code very early.
-
-
-(0, _apiRunnerBrowser.apiRunnerAsync)(`onClientEntry`).then(() => {
- // Hook up the client to socket.io on server
- const socket = (0, _socketIo.default)();
-
- if (socket) {
- socket.on(`reload`, () => {
- window.location.reload();
- });
- }
-
- fetch(`/___services`).then(res => res.json()).then(services => {
- if (services.developstatusserver) {
- let isRestarting = false;
- const parentSocket = (0, _socket.default)(`${window.location.protocol}//${window.location.hostname}:${services.developstatusserver.port}`);
- parentSocket.on(`structured-log`, msg => {
- if (!isRestarting && msg.type === `LOG_ACTION` && msg.action.type === `DEVELOP` && msg.action.payload === `RESTART_REQUIRED` && window.confirm(`The develop process needs to be restarted for the changes to ${msg.action.dirtyFile} to be applied.\nDo you want to restart the develop process now?`)) {
- isRestarting = true;
- parentSocket.emit(`develop:restart`, () => {
- window.location.reload();
- });
- }
-
- if (isRestarting && msg.type === `LOG_ACTION` && msg.action.type === `SET_STATUS` && msg.action.payload === `SUCCESS`) {
- isRestarting = false;
- window.location.reload();
- }
- }); // Prevents certain browsers spamming XHR 'ERR_CONNECTION_REFUSED'
- // errors within the console, such as when exiting the develop process.
-
- parentSocket.on(`disconnect`, () => {
- console.warn(`[socket.io] Disconnected. Unable to perform health-check.`);
- parentSocket.close();
- });
- }
- });
- /**
- * Service Workers are persistent by nature. They stick around,
- * serving a cached version of the site if they aren't removed.
- * This is especially frustrating when you need to test the
- * production build on your local machine.
- *
- * Let's warn if we find service workers in development.
- */
-
- if (`serviceWorker` in navigator) {
- navigator.serviceWorker.getRegistrations().then(registrations => {
- if (registrations.length > 0) console.warn(`Warning: found one or more service workers present.`, `If your site isn't behaving as expected, you might want to remove these.`, registrations);
- });
- }
-
- const rootElement = document.getElementById(`___gatsby`);
- const focusEl = document.getElementById(`gatsby-focus-wrapper`); // Client only pages have any empty body so we just do a normal
- // render to avoid React complaining about hydration mis-matches.
-
- let defaultRenderer = _reactDom.default.render;
-
- if (focusEl && focusEl.children.length) {
- if (process.env.GATSBY_EXPERIMENTAL_CONCURRENT_FEATURES && _reactDom.default.unstable_createRoot) {
- defaultRenderer = _reactDom.default.unstable_createRoot;
- } else {
- defaultRenderer = _reactDom.default.hydrate;
- }
- }
-
- const renderer = (0, _apiRunnerBrowser.apiRunner)(`replaceHydrateFunction`, undefined, defaultRenderer)[0];
- let dismissLoadingIndicator;
-
- if (process.env.GATSBY_EXPERIMENTAL_QUERY_ON_DEMAND && process.env.GATSBY_QUERY_ON_DEMAND_LOADING_INDICATOR === `true`) {
- let indicatorMountElement;
- const showIndicatorTimeout = setTimeout(() => {
- indicatorMountElement = document.createElement(`first-render-loading-indicator`);
- document.body.append(indicatorMountElement);
-
- _reactDom.default.render( /*#__PURE__*/_react.default.createElement(_indicator.Indicator, null), indicatorMountElement);
- }, 1000);
-
- dismissLoadingIndicator = () => {
- clearTimeout(showIndicatorTimeout);
-
- if (indicatorMountElement) {
- _reactDom.default.unmountComponentAtNode(indicatorMountElement);
-
- indicatorMountElement.remove();
- }
- };
- }
-
- Promise.all([loader.loadPage(`/dev-404-page/`), loader.loadPage(`/404.html`), loader.loadPage(window.location.pathname)]).then(() => {
- (0, _navigation.init)();
-
- function onHydrated() {
- (0, _apiRunnerBrowser.apiRunner)(`onInitialClientRender`); // Render query on demand overlay
-
- if (process.env.GATSBY_QUERY_ON_DEMAND_LOADING_INDICATOR && process.env.GATSBY_QUERY_ON_DEMAND_LOADING_INDICATOR === `true`) {
- const indicatorMountElement = document.createElement(`div`);
- indicatorMountElement.setAttribute(`id`, `query-on-demand-indicator-element`);
- document.body.append(indicatorMountElement);
-
- if (renderer === _reactDom.default.unstable_createRoot) {
- renderer(indicatorMountElement).render( /*#__PURE__*/_react.default.createElement(_loadingIndicator.LoadingIndicatorEventHandler, null));
- } else {
- renderer( /*#__PURE__*/_react.default.createElement(_loadingIndicator.LoadingIndicatorEventHandler, null), indicatorMountElement);
- }
- }
- }
-
- function App() {
- const onClientEntryRanRef = _react.default.useRef(false);
-
- _react.default.useEffect(() => {
- if (!onClientEntryRanRef.current) {
- onClientEntryRanRef.current = true;
- onHydrated();
- }
- }, []);
-
- return /*#__PURE__*/_react.default.createElement(_root.default, null);
- }
-
- (0, _domready.default)(() => {
- if (dismissLoadingIndicator) {
- dismissLoadingIndicator();
- }
-
- if (renderer === _reactDom.default.unstable_createRoot) {
- renderer(rootElement, {
- hydrate: true
- }).render( /*#__PURE__*/_react.default.createElement(App, null));
- } else {
- renderer( /*#__PURE__*/_react.default.createElement(App, null), rootElement);
- }
- });
- });
-});
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/css-to-object.js b/js/packages/metaplex/.cache/commonjs/css-to-object.js
deleted file mode 100644
index e8acfa9..0000000
--- a/js/packages/metaplex/.cache/commonjs/css-to-object.js
+++ /dev/null
@@ -1,21 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.css = css;
-
-/**
- * Converts a string of CSS into object syntax
- * @param strings
- * @param keys
- * @returns {Object} CSS in object syntax
- * @example
- * const output = css`
- * html {
- * color: rebeccapurple;
- * }
- * `
- */
-function css(strings, ...keys) {
- const lastIndex = strings.length - 1;
- return strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], ``) + strings[lastIndex];
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/debug-log.js b/js/packages/metaplex/.cache/commonjs/debug-log.js
deleted file mode 100644
index f926e23..0000000
--- a/js/packages/metaplex/.cache/commonjs/debug-log.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.debugLog = debugLog;
-// inspired by https://github.com/GoogleChrome/workbox/blob/3d02230f0e977eb1dc86c48f16ea4bcefdae12af/packages/workbox-core/src/_private/logger.ts
-const styles = [`background: rebeccapurple`, `border-radius: 0.5em`, `color: white`, `font-weight: bold`, `padding: 2px 0.5em`].join(`;`);
-
-function debugLog(...args) {
- console.debug(`%cgatsby`, styles, ...args);
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/default-html.js b/js/packages/metaplex/.cache/commonjs/default-html.js
deleted file mode 100755
index 3f43755..0000000
--- a/js/packages/metaplex/.cache/commonjs/default-html.js
+++ /dev/null
@@ -1,37 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.default = HTML;
-
-var _react = _interopRequireDefault(require("react"));
-
-var _propTypes = _interopRequireDefault(require("prop-types"));
-
-function HTML(props) {
- return /*#__PURE__*/_react.default.createElement("html", props.htmlAttributes, /*#__PURE__*/_react.default.createElement("head", null, /*#__PURE__*/_react.default.createElement("meta", {
- charSet: "utf-8"
- }), /*#__PURE__*/_react.default.createElement("meta", {
- httpEquiv: "x-ua-compatible",
- content: "ie=edge"
- }), /*#__PURE__*/_react.default.createElement("meta", {
- name: "viewport",
- content: "width=device-width, initial-scale=1, shrink-to-fit=no"
- }), props.headComponents), /*#__PURE__*/_react.default.createElement("body", props.bodyAttributes, props.preBodyComponents, /*#__PURE__*/_react.default.createElement("div", {
- key: `body`,
- id: "___gatsby",
- dangerouslySetInnerHTML: {
- __html: props.body
- }
- }), props.postBodyComponents));
-}
-
-HTML.propTypes = {
- htmlAttributes: _propTypes.default.object,
- headComponents: _propTypes.default.array,
- bodyAttributes: _propTypes.default.object,
- preBodyComponents: _propTypes.default.array,
- body: _propTypes.default.string,
- postBodyComponents: _propTypes.default.array
-};
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/dev-loader.js b/js/packages/metaplex/.cache/commonjs/dev-loader.js
deleted file mode 100644
index 71d33a4..0000000
--- a/js/packages/metaplex/.cache/commonjs/dev-loader.js
+++ /dev/null
@@ -1,192 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.default = void 0;
-
-var _loader = require("./loader");
-
-var _findPath = require("./find-path");
-
-var _socketIo = _interopRequireDefault(require("./socketIo"));
-
-var _normalizePagePath = _interopRequireDefault(require("./normalize-page-path"));
-
-var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
-
-// TODO move away from lodash
-const preferDefault = m => m && m.default || m;
-
-function mergePageEntry(cachedPage, newPageData) {
- return { ...cachedPage,
- payload: { ...cachedPage.payload,
- json: newPageData.result,
- page: { ...cachedPage.payload.page,
- staticQueryResults: newPageData.staticQueryResults
- }
- }
- };
-}
-
-class DevLoader extends _loader.BaseLoader {
- constructor(asyncRequires, matchPaths) {
- const loadComponent = chunkName => {
- if (!asyncRequires.components[chunkName]) {
- throw new Error(`We couldn't find the correct component chunk with the name "${chunkName}"`);
- }
-
- return asyncRequires.components[chunkName]().then(preferDefault) // loader will handle the case when component is error
- .catch(err => err);
- };
-
- super(loadComponent, matchPaths);
- const socket = (0, _socketIo.default)();
- this.notFoundPagePathsInCaches = new Set();
-
- if (socket) {
- socket.on(`message`, msg => {
- if (msg.type === `staticQueryResult`) {
- this.handleStaticQueryResultHotUpdate(msg);
- } else if (msg.type === `pageQueryResult`) {
- this.handlePageQueryResultHotUpdate(msg);
- } else if (msg.type === `stalePageData`) {
- this.handleStalePageDataMessage(msg);
- }
- });
- } else if (process.env.NODE_ENV !== `test`) {
- console.warn(`Could not get web socket`);
- }
- }
-
- loadPage(pagePath) {
- const realPath = (0, _findPath.findPath)(pagePath);
- return super.loadPage(realPath).then(result => {
- if (this.isPageNotFound(realPath)) {
- this.notFoundPagePathsInCaches.add(realPath);
- }
-
- return result;
- });
- }
-
- loadPageDataJson(rawPath) {
- return super.loadPageDataJson(rawPath).then(data => {
- // when we can't find a proper 404.html we fallback to dev-404-page
- // we need to make sure to mark it as not found.
- if (data.status === _loader.PageResourceStatus.Error && rawPath !== `/dev-404-page/`) {
- console.error(`404 page could not be found. Checkout https://www.gatsbyjs.org/docs/how-to/adding-common-features/add-404-page/`);
- return this.loadPageDataJson(`/dev-404-page/`).then(result => Object.assign({}, data, result));
- }
-
- return data;
- });
- }
-
- doPrefetch(pagePath) {
- if (process.env.GATSBY_EXPERIMENTAL_QUERY_ON_DEMAND) {
- return Promise.resolve();
- }
-
- return super.doPrefetch(pagePath).then(result => result.payload);
- }
-
- handleStaticQueryResultHotUpdate(msg) {
- const newResult = msg.payload.result;
- const cacheKey = msg.payload.id;
- const cachedResult = this.staticQueryDb[cacheKey];
-
- if (!(0, _isEqual.default)(newResult, cachedResult)) {
- this.staticQueryDb[cacheKey] = newResult;
-
- ___emitter.emit(`staticQueryResult`, newResult);
- }
- }
-
- handlePageQueryResultHotUpdate(msg) {
- var _this$pageDataDb$get;
-
- const newPageData = msg.payload.result;
- const pageDataDbCacheKey = (0, _normalizePagePath.default)(msg.payload.id);
- const cachedPageData = (_this$pageDataDb$get = this.pageDataDb.get(pageDataDbCacheKey)) === null || _this$pageDataDb$get === void 0 ? void 0 : _this$pageDataDb$get.payload;
-
- if (!(0, _isEqual.default)(newPageData, cachedPageData)) {
- // TODO: if this is update for current page and there are any new static queries added
- // that are not yet cached, there is currently no trigger to fetch them (yikes)
- // always update canonical key for pageDataDb
- this.pageDataDb.set(pageDataDbCacheKey, {
- pagePath: pageDataDbCacheKey,
- payload: newPageData,
- status: `success`
- });
- const cachedPage = this.pageDb.get(pageDataDbCacheKey);
-
- if (cachedPage) {
- this.pageDb.set(pageDataDbCacheKey, mergePageEntry(cachedPage, newPageData));
- } // Additionally if those are query results for "/404.html"
- // we have to update all paths user wanted to visit, but didn't have
- // page for it, because we do store them under (normalized) path
- // user wanted to visit
-
-
- if (pageDataDbCacheKey === `/404.html`) {
- this.notFoundPagePathsInCaches.forEach(notFoundPath => {
- const previousPageDataEntry = this.pageDataDb.get(notFoundPath);
-
- if (previousPageDataEntry) {
- this.pageDataDb.set(notFoundPath, { ...previousPageDataEntry,
- payload: newPageData
- });
- }
-
- const previousPageEntry = this.pageDb.get(notFoundPath);
-
- if (previousPageEntry) {
- this.pageDb.set(notFoundPath, mergePageEntry(previousPageEntry, newPageData));
- }
- });
- }
-
- ___emitter.emit(`pageQueryResult`, newPageData);
- }
- }
-
- handleStalePageDataMessage(msg) {
- msg.payload.stalePageDataPaths.forEach(dirtyQueryId => {
- if (dirtyQueryId === `/dev-404-page/` || dirtyQueryId === `/404.html`) {
- // those pages are not on demand so skipping
- return;
- }
-
- const normalizedId = (0, _normalizePagePath.default)(dirtyQueryId); // We can't just delete items in caches, because then
- // using history.back() would show dev-404 page
- // due to our special handling of it in root.js (loader.isPageNotFound check)
- // so instead we mark it as stale and instruct loader's async methods
- // to refetch resources if they are marked as stale
-
- const cachedPageData = this.pageDataDb.get(normalizedId);
-
- if (cachedPageData) {
- // if we have page data in cache, mark it as stale
- this.pageDataDb.set(normalizedId, { ...cachedPageData,
- stale: true
- });
- }
-
- const cachedPage = this.pageDb.get(normalizedId);
-
- if (cachedPage) {
- // if we have page data in cache, mark it as stale
- this.pageDb.set(normalizedId, { ...cachedPage,
- payload: { ...cachedPage.payload,
- stale: true
- }
- });
- }
- });
- }
-
-}
-
-var _default = DevLoader;
-exports.default = _default;
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/develop-static-entry.js b/js/packages/metaplex/.cache/commonjs/develop-static-entry.js
deleted file mode 100644
index 92af15e..0000000
--- a/js/packages/metaplex/.cache/commonjs/develop-static-entry.js
+++ /dev/null
@@ -1,148 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.default = void 0;
-
-var _react = _interopRequireDefault(require("react"));
-
-var _server = require("react-dom/server");
-
-var _lodash = require("lodash");
-
-var _apiRunnerSsr = _interopRequireDefault(require("./api-runner-ssr"));
-
-// import testRequireError from "./test-require-error"
-// For some extremely mysterious reason, webpack adds the above module *after*
-// this module so that when this code runs, testRequireError is undefined.
-// So in the meantime, we'll just inline it.
-const testRequireError = (moduleName, err) => {
- const regex = new RegExp(`Error: Cannot find module\\s.${moduleName}`);
- const firstLine = err.toString().split(`\n`)[0];
- return regex.test(firstLine);
-};
-
-let Html;
-
-try {
- Html = require(`../src/html`);
-} catch (err) {
- if (testRequireError(`../src/html`, err)) {
- Html = require(`./default-html`);
- } else {
- console.log(`There was an error requiring "src/html.js"\n\n`, err, `\n\n`);
- process.exit();
- }
-}
-
-Html = Html && Html.__esModule ? Html.default : Html;
-
-var _default = ({
- pagePath
-}) => {
- let headComponents = [/*#__PURE__*/_react.default.createElement("meta", {
- key: "environment",
- name: "note",
- content: "environment=development"
- })];
- let htmlAttributes = {};
- let bodyAttributes = {};
- let preBodyComponents = [];
- let postBodyComponents = [];
- let bodyProps = {};
- let htmlStr;
-
- const setHeadComponents = components => {
- headComponents = headComponents.concat(components);
- };
-
- const setHtmlAttributes = attributes => {
- htmlAttributes = (0, _lodash.merge)(htmlAttributes, attributes);
- };
-
- const setBodyAttributes = attributes => {
- bodyAttributes = (0, _lodash.merge)(bodyAttributes, attributes);
- };
-
- const setPreBodyComponents = components => {
- preBodyComponents = preBodyComponents.concat(components);
- };
-
- const setPostBodyComponents = components => {
- postBodyComponents = postBodyComponents.concat(components);
- };
-
- const setBodyProps = props => {
- bodyProps = (0, _lodash.merge)({}, bodyProps, props);
- };
-
- const getHeadComponents = () => headComponents;
-
- const replaceHeadComponents = components => {
- headComponents = components;
- };
-
- const getPreBodyComponents = () => preBodyComponents;
-
- const replacePreBodyComponents = components => {
- preBodyComponents = components;
- };
-
- const getPostBodyComponents = () => postBodyComponents;
-
- const replacePostBodyComponents = components => {
- postBodyComponents = components;
- };
-
- (0, _apiRunnerSsr.default)(`onRenderBody`, {
- setHeadComponents,
- setHtmlAttributes,
- setBodyAttributes,
- setPreBodyComponents,
- setPostBodyComponents,
- setBodyProps,
- pathname: pagePath
- });
- (0, _apiRunnerSsr.default)(`onPreRenderHTML`, {
- getHeadComponents,
- replaceHeadComponents,
- getPreBodyComponents,
- replacePreBodyComponents,
- getPostBodyComponents,
- replacePostBodyComponents,
- pathname: pagePath
- });
-
- const htmlElement = /*#__PURE__*/_react.default.createElement(Html, { ...bodyProps,
- body: ``,
- headComponents: headComponents.concat([/*#__PURE__*/_react.default.createElement("script", {
- key: `io`,
- src: "/socket.io/socket.io.js"
- }), /*#__PURE__*/_react.default.createElement("link", {
- key: "styles",
- rel: "stylesheet",
- href: "/commons.css"
- })]),
- htmlAttributes,
- bodyAttributes,
- preBodyComponents,
- postBodyComponents: postBodyComponents.concat([/*#__PURE__*/_react.default.createElement("script", {
- key: `polyfill`,
- src: "/polyfill.js",
- noModule: true
- }), /*#__PURE__*/_react.default.createElement("script", {
- key: `framework`,
- src: "/framework.js"
- }), /*#__PURE__*/_react.default.createElement("script", {
- key: `commons`,
- src: "/commons.js"
- })])
- });
-
- htmlStr = (0, _server.renderToStaticMarkup)(htmlElement);
- htmlStr = `${htmlStr}`;
- return htmlStr;
-};
-
-exports.default = _default;
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/dummy.js b/js/packages/metaplex/.cache/commonjs/dummy.js
deleted file mode 100644
index 619e5c1..0000000
--- a/js/packages/metaplex/.cache/commonjs/dummy.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.a = void 0;
-// Dummy file to work around a webpack hot reloading bug.
-const a = 1;
-exports.a = a;
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/emitter.js b/js/packages/metaplex/.cache/commonjs/emitter.js
deleted file mode 100644
index eaac98b..0000000
--- a/js/packages/metaplex/.cache/commonjs/emitter.js
+++ /dev/null
@@ -1,12 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.default = void 0;
-
-var _mitt = _interopRequireDefault(require("mitt"));
-
-const emitter = (0, _mitt.default)();
-var _default = emitter;
-exports.default = _default;
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/ensure-resources.js b/js/packages/metaplex/.cache/commonjs/ensure-resources.js
deleted file mode 100644
index 55bcc33..0000000
--- a/js/packages/metaplex/.cache/commonjs/ensure-resources.js
+++ /dev/null
@@ -1,126 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.default = void 0;
-
-var _react = _interopRequireDefault(require("react"));
-
-var _loader = _interopRequireWildcard(require("./loader"));
-
-var _shallowCompare = _interopRequireDefault(require("shallow-compare"));
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-class EnsureResources extends _react.default.Component {
- constructor(props) {
- super();
- const {
- location,
- pageResources
- } = props;
- this.state = {
- location: { ...location
- },
- pageResources: pageResources || _loader.default.loadPageSync(location.pathname, {
- withErrorDetails: true
- })
- };
- }
-
- static getDerivedStateFromProps({
- location
- }, prevState) {
- if (prevState.location.href !== location.href) {
- const pageResources = _loader.default.loadPageSync(location.pathname, {
- withErrorDetails: true
- });
-
- return {
- pageResources,
- location: { ...location
- }
- };
- }
-
- return {
- location: { ...location
- }
- };
- }
-
- loadResources(rawPath) {
- _loader.default.loadPage(rawPath).then(pageResources => {
- if (pageResources && pageResources.status !== _loader.PageResourceStatus.Error) {
- this.setState({
- location: { ...window.location
- },
- pageResources
- });
- } else {
- window.history.replaceState({}, ``, location.href);
- window.location = rawPath;
- }
- });
- }
-
- shouldComponentUpdate(nextProps, nextState) {
- // Always return false if we're missing resources.
- if (!nextState.pageResources) {
- this.loadResources(nextProps.location.pathname);
- return false;
- }
-
- if (process.env.BUILD_STAGE === `develop` && nextState.pageResources.stale) {
- this.loadResources(nextProps.location.pathname);
- return false;
- } // Check if the component or json have changed.
-
-
- if (this.state.pageResources !== nextState.pageResources) {
- return true;
- }
-
- if (this.state.pageResources.component !== nextState.pageResources.component) {
- return true;
- }
-
- if (this.state.pageResources.json !== nextState.pageResources.json) {
- return true;
- } // Check if location has changed on a page using internal routing
- // via matchPath configuration.
-
-
- if (this.state.location.key !== nextState.location.key && nextState.pageResources.page && (nextState.pageResources.page.matchPath || nextState.pageResources.page.path)) {
- return true;
- }
-
- return (0, _shallowCompare.default)(this, nextProps, nextState);
- }
-
- render() {
- if (process.env.NODE_ENV !== `production` && (!this.state.pageResources || this.state.pageResources.status === _loader.PageResourceStatus.Error)) {
- var _this$state$pageResou;
-
- const message = `EnsureResources was not able to find resources for path: "${this.props.location.pathname}"
-This typically means that an issue occurred building components for that path.
-Run \`gatsby clean\` to remove any cached elements.`;
-
- if ((_this$state$pageResou = this.state.pageResources) !== null && _this$state$pageResou !== void 0 && _this$state$pageResou.error) {
- console.error(message);
- throw this.state.pageResources.error;
- }
-
- throw new Error(message);
- }
-
- return this.props.children(this.state);
- }
-
-}
-
-var _default = EnsureResources;
-exports.default = _default;
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/error-overlay-handler.js b/js/packages/metaplex/.cache/commonjs/error-overlay-handler.js
deleted file mode 100644
index a0b6ac6..0000000
--- a/js/packages/metaplex/.cache/commonjs/error-overlay-handler.js
+++ /dev/null
@@ -1,42 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.reportError = exports.clearError = void 0;
-const errorMap = {};
-
-const handleErrorOverlay = () => {
- const errors = Object.values(errorMap);
- let errorsToDisplay = [];
-
- if (errors.length > 0) {
- errorsToDisplay = errors.flatMap(e => e).filter(Boolean);
- }
-
- if (errorsToDisplay.length > 0) {
- window._gatsbyEvents.push([`FAST_REFRESH`, {
- action: `SHOW_GRAPHQL_ERRORS`,
- payload: errorsToDisplay
- }]);
- } else {
- window._gatsbyEvents.push([`FAST_REFRESH`, {
- action: `CLEAR_GRAPHQL_ERRORS`
- }]);
- }
-};
-
-const clearError = errorID => {
- delete errorMap[errorID];
- handleErrorOverlay();
-};
-
-exports.clearError = clearError;
-
-const reportError = (errorID, error) => {
- if (error) {
- errorMap[errorID] = error;
- }
-
- handleErrorOverlay();
-};
-
-exports.reportError = reportError;
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/accordion.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/accordion.js
deleted file mode 100644
index 0cd25f6..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/accordion.js
+++ /dev/null
@@ -1,93 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.Accordion = Accordion;
-exports.AccordionItem = AccordionItem;
-
-var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
-
-var React = _interopRequireWildcard(require("react"));
-
-var _useId = require("./use-id");
-
-var keys = _interopRequireWildcard(require("../helpers/keys"));
-
-var _match = require("../helpers/match");
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-function ChevronIcon() {
- return /*#__PURE__*/React.createElement("svg", {
- focusable: "false",
- preserveAspectRatio: "xMidYMid meet",
- xmlns: "http://www.w3.org/2000/svg",
- fill: "currentColor",
- width: "16",
- height: "16",
- viewBox: "0 0 16 16",
- "aria-hidden": "true",
- "data-gatsby-overlay": "chevron-icon"
- }, /*#__PURE__*/React.createElement("path", {
- d: "M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"
- }));
-}
-
-function Accordion({
- children,
- ...rest
-}) {
- return /*#__PURE__*/React.createElement("ul", (0, _extends2.default)({
- "data-gatsby-overlay": "accordion"
- }, rest), children);
-}
-
-function AccordionItem({
- children,
- disabled = false,
- open = false,
- title = `title`,
- ...rest
-}) {
- const [isOpen, setIsOpen] = React.useState(open);
- const [prevIsOpen, setPrevIsOpen] = React.useState(open);
- const id = (0, _useId.useId)(`accordion-item`);
-
- if (open !== prevIsOpen) {
- setIsOpen(open);
- setPrevIsOpen(open);
- }
-
- const toggleOpen = () => {
- const nextValue = !isOpen;
- setIsOpen(nextValue);
- }; // If the AccordionItem is open, and the user hits the ESC key, then close it
-
-
- const onKeyDown = event => {
- if (isOpen && (0, _match.match)(event, keys.Escape)) {
- setIsOpen(false);
- }
- };
-
- return /*#__PURE__*/React.createElement("li", (0, _extends2.default)({
- "data-gatsby-overlay": "accordion__item",
- "data-accordion-active": isOpen ? `true` : `false`
- }, rest), /*#__PURE__*/React.createElement("button", {
- "data-gatsby-overlay": "accordion__item__heading",
- type: "button",
- disabled: disabled,
- "aria-controls": id,
- "aria-expanded": isOpen,
- onClick: toggleOpen,
- onKeyDown: onKeyDown
- }, /*#__PURE__*/React.createElement(ChevronIcon, null), /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "accordion__item__title"
- }, title)), /*#__PURE__*/React.createElement("div", {
- id: id,
- "data-gatsby-overlay": "accordion__item__content"
- }, children));
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/build-error.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/build-error.js
deleted file mode 100644
index 69bcb61..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/build-error.js
+++ /dev/null
@@ -1,52 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.BuildError = BuildError;
-
-var React = _interopRequireWildcard(require("react"));
-
-var _overlay = require("./overlay");
-
-var _codeFrame = require("./code-frame");
-
-var _utils = require("../utils");
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-// Error that is thrown on e.g. webpack errors and thus can't be dismissed and must be fixed
-function BuildError({
- error
-}) {
- // Incoming build error shape is like this:
- // Sometimes "Enter"
- // ./relative-path-to-file
- // Additional information (sometimes empty line => handled in "prettifyStack" function)
- // /absolute-path-to-file
- // Errors/Warnings
- const decoded = (0, _utils.prettifyStack)(error);
- const [filePath] = decoded;
- const file = filePath.content.split(`\n`)[0];
- const lineMatch = filePath.content.match(/\((\d+)[^)]+\)/);
- let line = 1;
-
- if (lineMatch) {
- line = lineMatch[1];
- }
-
- return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, {
- "data-gatsby-error-type": "build-error"
- }, /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "header__cause-file"
- }, /*#__PURE__*/React.createElement("h1", {
- id: "gatsby-overlay-labelledby"
- }, "Failed to compile"), /*#__PURE__*/React.createElement("span", null, file)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, {
- open: () => (0, _utils.openInEditor)(file, line),
- dismiss: false
- })), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("h2", null, "Source"), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, {
- decoded: decoded
- }), /*#__PURE__*/React.createElement(_overlay.Footer, {
- id: "gatsby-overlay-describedby"
- }, "This error occurred during the build process and can only be dismissed by fixing the error.")));
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/code-frame.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/code-frame.js
deleted file mode 100644
index 516f8e8..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/code-frame.js
+++ /dev/null
@@ -1,42 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.CodeFrame = CodeFrame;
-
-var React = _interopRequireWildcard(require("react"));
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-function CodeFrame({
- decoded
-}) {
- if (!decoded) {
- return /*#__PURE__*/React.createElement("pre", {
- "data-gatsby-overlay": "pre"
- }, /*#__PURE__*/React.createElement("code", {
- "data-gatsby-overlay": "pre__code"
- }));
- }
-
- return /*#__PURE__*/React.createElement("pre", {
- "data-gatsby-overlay": "pre"
- }, /*#__PURE__*/React.createElement("code", {
- "data-gatsby-overlay": "pre__code"
- }, decoded.map((entry, index) => {
- const style = {
- color: entry.fg ? `var(--color-${entry.fg})` : undefined,
- ...(entry.decoration === `bold` ? {
- fontWeight: 800
- } : entry.decoration === `italic` ? {
- fontStyle: `italic`
- } : undefined)
- };
- return /*#__PURE__*/React.createElement("span", {
- key: `frame-${index}`,
- "data-gatsby-overlay": "pre__code__span",
- style: style
- }, entry.content);
- })));
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/dev-ssr-error.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/dev-ssr-error.js
deleted file mode 100644
index 2693b6b..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/dev-ssr-error.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.DevSsrError = DevSsrError;
-
-var React = _interopRequireWildcard(require("react"));
-
-var _overlay = require("./overlay");
-
-var _codeFrame = require("./code-frame");
-
-var _utils = require("../utils");
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-function DevSsrError({
- error
-}) {
- const {
- codeFrame,
- source,
- line
- } = error;
- const decoded = (0, _utils.prettifyStack)(codeFrame);
- return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, {
- "data-gatsby-error-type": "build-error"
- }, /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "header__cause-file"
- }, /*#__PURE__*/React.createElement("h1", {
- id: "gatsby-overlay-labelledby"
- }, "Failed to server render (SSR)"), /*#__PURE__*/React.createElement("span", null, source)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, {
- open: () => (0, _utils.openInEditor)(source, line),
- dismiss: false
- })), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("p", {
- id: "gatsby-overlay-describedby",
- "data-gatsby-overlay": "body__describedby"
- }, "React Components in Gatsby must render both successfully in the browser and in a Node.js environment. When we tried to render your page component in Node.js, it errored."), /*#__PURE__*/React.createElement("h2", null, "Source"), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, {
- decoded: decoded
- }), /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "codeframe__bottom"
- }, "See our docs page for more info on SSR errors:", ` `, /*#__PURE__*/React.createElement("a", {
- href: "https://www.gatsbyjs.com/docs/debugging-html-builds/"
- }, "Debugging HTML Builds")), /*#__PURE__*/React.createElement("p", null, "If you fixed the error, saved your file, and want to retry server rendering this page, please reload the page."), /*#__PURE__*/React.createElement("button", {
- onClick: () => (0, _utils.reloadPage)(),
- "data-gatsby-overlay": "primary-button"
- }, "Reload page"), /*#__PURE__*/React.createElement("h2", {
- style: {
- marginTop: `var(--space)`
- }
- }, "Skip Server Render"), /*#__PURE__*/React.createElement("p", null, "If you don't wish to fix the SSR error at the moment, press the button below to reload the page without attempting to do SSR."), /*#__PURE__*/React.createElement("button", {
- onClick: () => (0, _utils.skipSSR)(),
- "data-gatsby-overlay": "primary-button"
- }, "Skip SSR"), /*#__PURE__*/React.createElement(_overlay.Footer, null, /*#__PURE__*/React.createElement("span", {
- "data-font-weight": "bold"
- }, "Note:"), " This error will show up during \"gatsby build\" so it must be fixed before then. SSR errors in module scope, e.g. outside of your own React components can't be skipped.")));
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/error-boundary.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/error-boundary.js
deleted file mode 100644
index 91eb691..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/error-boundary.js
+++ /dev/null
@@ -1,33 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.ErrorBoundary = void 0;
-
-var React = _interopRequireWildcard(require("react"));
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-class ErrorBoundary extends React.Component {
- constructor(...args) {
- super(...args);
- this.state = {
- error: null
- };
- }
-
- componentDidCatch(error) {
- this.setState({
- error
- });
- }
-
- render() {
- // Without this check => possible infinite loop
- return this.state.error && this.props.hasErrors ? null : this.props.children;
- }
-
-}
-
-exports.ErrorBoundary = ErrorBoundary;
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/graphql-errors.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/graphql-errors.js
deleted file mode 100644
index 3bedc66..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/graphql-errors.js
+++ /dev/null
@@ -1,88 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.GraphqlErrors = GraphqlErrors;
-
-var React = _interopRequireWildcard(require("react"));
-
-var _overlay = require("./overlay");
-
-var _accordion = require("./accordion");
-
-var _utils = require("../utils");
-
-var _codeFrame = require("./code-frame");
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-function WrappedAccordionItem({
- error,
- open
-}) {
- var _error$error, _error$location, _error$location$start, _error$location2, _error$location2$star;
-
- const title = (error === null || error === void 0 ? void 0 : (_error$error = error.error) === null || _error$error === void 0 ? void 0 : _error$error.message) || error.context.sourceMessage || `Unknown GraphQL error`;
- const docsUrl = error === null || error === void 0 ? void 0 : error.docsUrl;
- const filePath = error === null || error === void 0 ? void 0 : error.filePath;
- const lineNumber = error === null || error === void 0 ? void 0 : (_error$location = error.location) === null || _error$location === void 0 ? void 0 : (_error$location$start = _error$location.start) === null || _error$location$start === void 0 ? void 0 : _error$location$start.line;
- const columnNumber = error === null || error === void 0 ? void 0 : (_error$location2 = error.location) === null || _error$location2 === void 0 ? void 0 : (_error$location2$star = _error$location2.start) === null || _error$location2$star === void 0 ? void 0 : _error$location2$star.column;
- let locString = ``;
-
- if (typeof lineNumber !== `undefined`) {
- locString += `:${lineNumber}`;
-
- if (typeof columnNumber !== `undefined`) {
- locString += `:${columnNumber}`;
- }
- } // Sometimes the GraphQL error text has ANSI in it. If it's only text, it'll be passed through
-
-
- const decoded = (0, _utils.prettifyStack)(error.text);
- return /*#__PURE__*/React.createElement(_accordion.AccordionItem, {
- open: open,
- title: title
- }, /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "body__graphql-error-message"
- }, /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "codeframe__top"
- }, /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "tag"
- }, error.level, ` `, "#", error.code), /*#__PURE__*/React.createElement("button", {
- "data-gatsby-overlay": "body__open-in-editor",
- onClick: () => (0, _utils.openInEditor)(filePath, lineNumber)
- }, "Open in Editor")), filePath && /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "codeframe__top"
- }, filePath, locString), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, {
- decoded: decoded
- }), docsUrl && /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "codeframe__bottom"
- }, "See our docs page for more info on this error:", ` `, /*#__PURE__*/React.createElement("a", {
- href: docsUrl
- }, docsUrl))));
-}
-
-function GraphqlErrors({
- errors,
- dismiss
-}) {
- const deduplicatedErrors = React.useMemo(() => Array.from(new Set(errors)), [errors]);
- const hasMultipleErrors = deduplicatedErrors.length > 1;
- return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, {
- "data-gatsby-error-type": "graphql-error"
- }, /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "header__cause-file"
- }, /*#__PURE__*/React.createElement("h1", {
- id: "gatsby-overlay-labelledby"
- }, hasMultipleErrors ? `${errors.length} Unhandled GraphQL Errors` : `Unhandled GraphQL Error`)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, {
- dismiss: dismiss
- })), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("p", {
- "data-gatsby-overlay": "body__describedby",
- id: "gatsby-overlay-describedby"
- }, hasMultipleErrors ? `Multiple` : `One`, " unhandled GraphQL", ` `, hasMultipleErrors ? `errors` : `error`, " found in your files. See the list below to fix ", hasMultipleErrors ? `them` : `it`, ":"), /*#__PURE__*/React.createElement(_accordion.Accordion, null, deduplicatedErrors.map((error, index) => /*#__PURE__*/React.createElement(WrappedAccordionItem, {
- open: index === 0,
- error: error,
- key: `${error.sourceMessage}-${index}`
- })))));
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/hooks.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/hooks.js
deleted file mode 100644
index 8672f7f..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/hooks.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.useStackFrame = useStackFrame;
-
-var React = _interopRequireWildcard(require("react"));
-
-var _utils = require("../utils");
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-function useStackFrame({
- moduleId,
- lineNumber,
- columnNumber
-}) {
- const url = `/__original-stack-frame?moduleId=` + window.encodeURIComponent(moduleId) + `&lineNumber=` + window.encodeURIComponent(lineNumber) + `&columnNumber=` + window.encodeURIComponent(columnNumber);
- const [response, setResponse] = React.useState({
- decoded: null,
- sourcePosition: {
- line: null,
- number: null
- },
- sourceContent: null
- });
- React.useEffect(() => {
- async function fetchData() {
- const res = await fetch(url);
- const json = await res.json();
- const decoded = (0, _utils.prettifyStack)(json.codeFrame);
- const {
- sourcePosition,
- sourceContent
- } = json;
- setResponse({
- decoded,
- sourceContent,
- sourcePosition
- });
- }
-
- fetchData();
- }, []);
- return response;
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/overlay.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/overlay.js
deleted file mode 100644
index 08d7945..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/overlay.js
+++ /dev/null
@@ -1,161 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.VisuallyHidden = VisuallyHidden;
-exports.Overlay = Overlay;
-exports.CloseButton = CloseButton;
-exports.HeaderOpenClose = HeaderOpenClose;
-exports.Header = Header;
-exports.Body = Body;
-exports.Footer = Footer;
-
-var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
-
-var React = _interopRequireWildcard(require("react"));
-
-var _lockBody = require("../helpers/lock-body");
-
-var _focusTrap = _interopRequireDefault(require("../helpers/focus-trap"));
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-function Backdrop() {
- return /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "backdrop"
- });
-}
-
-function VisuallyHidden({
- children
-}) {
- return /*#__PURE__*/React.createElement("span", {
- style: {
- border: 0,
- clip: `rect(0 0 0 0)`,
- height: `1px`,
- margin: `-1px`,
- overflow: `hidden`,
- padding: 0,
- position: `absolute`,
- width: `1px`,
- whiteSpace: `nowrap`,
- wordWrap: `normal`
- }
- }, children);
-}
-
-function Overlay({
- children
-}) {
- React.useEffect(() => {
- (0, _lockBody.lock)();
- return () => {
- (0, _lockBody.unlock)();
- };
- }, []);
- const [overlay, setOverlay] = React.useState(null);
- const onOverlay = React.useCallback(el => {
- setOverlay(el);
- }, []);
- React.useEffect(() => {
- if (overlay === null) {
- return;
- }
-
- const handle = (0, _focusTrap.default)({
- context: overlay
- }); // eslint-disable-next-line consistent-return
-
- return () => {
- handle.disengage();
- };
- }, [overlay]);
- return /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "wrapper",
- ref: onOverlay
- }, /*#__PURE__*/React.createElement(Backdrop, null), /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "root",
- role: "alertdialog",
- "aria-labelledby": "gatsby-overlay-labelledby",
- "aria-describedby": "gatsby-overlay-describedby",
- "aria-modal": "true",
- dir: "ltr"
- }, children));
-}
-
-function CloseButton({
- dismiss
-}) {
- return /*#__PURE__*/React.createElement("button", {
- "data-gatsby-overlay": "close-button",
- onClick: dismiss
- }, /*#__PURE__*/React.createElement(VisuallyHidden, null, "Close"), /*#__PURE__*/React.createElement("svg", {
- "aria-hidden": true,
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }, /*#__PURE__*/React.createElement("path", {
- d: "M18 6L6 18",
- stroke: "currentColor",
- strokeWidth: "2",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }), /*#__PURE__*/React.createElement("path", {
- d: "M6 6L18 18",
- stroke: "currentColor",
- strokeWidth: "2",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- })));
-}
-
-function HeaderOpenClose({
- open,
- dismiss,
- children,
- ...rest
-}) {
- return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
- "data-gatsby-overlay": "header__top"
- }, rest), children, /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "header__open-close"
- }, open && /*#__PURE__*/React.createElement("button", {
- onClick: open,
- "data-gatsby-overlay": "primary-button"
- }, "Open in editor"), dismiss && /*#__PURE__*/React.createElement(CloseButton, {
- dismiss: dismiss
- })));
-}
-
-function Header({
- children,
- ...rest
-}) {
- return /*#__PURE__*/React.createElement("header", (0, _extends2.default)({
- "data-gatsby-overlay": "header"
- }, rest), children);
-}
-
-function Body({
- children,
- ...rest
-}) {
- return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
- "data-gatsby-overlay": "body"
- }, rest), children);
-}
-
-function Footer({
- children,
- ...rest
-}) {
- return /*#__PURE__*/React.createElement("footer", (0, _extends2.default)({
- "data-gatsby-overlay": "footer"
- }, rest), children);
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/runtime-errors.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/runtime-errors.js
deleted file mode 100644
index 03697c3..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/runtime-errors.js
+++ /dev/null
@@ -1,95 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.RuntimeErrors = RuntimeErrors;
-
-var React = _interopRequireWildcard(require("react"));
-
-var _stackTrace = _interopRequireDefault(require("stack-trace"));
-
-var _overlay = require("./overlay");
-
-var _hooks = require("./hooks");
-
-var _codeFrame = require("./code-frame");
-
-var _utils = require("../utils");
-
-var _accordion = require("./accordion");
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-function WrappedAccordionItem({
- error,
- open
-}) {
- var _res$sourcePosition;
-
- const stacktrace = _stackTrace.default.parse(error);
-
- const codeFrameInformation = (0, _utils.getCodeFrameInformation)(stacktrace);
- const filePath = codeFrameInformation === null || codeFrameInformation === void 0 ? void 0 : codeFrameInformation.moduleId;
- const lineNumber = codeFrameInformation === null || codeFrameInformation === void 0 ? void 0 : codeFrameInformation.lineNumber;
- const columnNumber = codeFrameInformation === null || codeFrameInformation === void 0 ? void 0 : codeFrameInformation.columnNumber;
- const name = codeFrameInformation === null || codeFrameInformation === void 0 ? void 0 : codeFrameInformation.functionName;
- const res = (0, _hooks.useStackFrame)({
- moduleId: filePath,
- lineNumber,
- columnNumber
- });
- const line = (_res$sourcePosition = res.sourcePosition) === null || _res$sourcePosition === void 0 ? void 0 : _res$sourcePosition.line;
-
- const Title = () => {
- if (!name) {
- return /*#__PURE__*/React.createElement(React.Fragment, null, "Unknown Runtime Error");
- }
-
- return /*#__PURE__*/React.createElement(React.Fragment, null, "Error in function", ` `, /*#__PURE__*/React.createElement("span", {
- "data-font-weight": "bold"
- }, name), " in", ` `, /*#__PURE__*/React.createElement("span", {
- "data-font-weight": "bold"
- }, filePath, ":", line));
- };
-
- return /*#__PURE__*/React.createElement(_accordion.AccordionItem, {
- open: open,
- title: /*#__PURE__*/React.createElement(Title, null)
- }, /*#__PURE__*/React.createElement("p", {
- "data-gatsby-overlay": "body__error-message"
- }, error.message), /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "codeframe__top"
- }, /*#__PURE__*/React.createElement("div", null, filePath, ":", line), /*#__PURE__*/React.createElement("button", {
- "data-gatsby-overlay": "body__open-in-editor",
- onClick: () => (0, _utils.openInEditor)(filePath, line)
- }, "Open in Editor")), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, {
- decoded: res.decoded
- }));
-}
-
-function RuntimeErrors({
- errors,
- dismiss
-}) {
- const deduplicatedErrors = React.useMemo(() => Array.from(new Set(errors)), [errors]);
- const hasMultipleErrors = deduplicatedErrors.length > 1;
- return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, {
- "data-gatsby-error-type": "runtime-error"
- }, /*#__PURE__*/React.createElement("div", {
- "data-gatsby-overlay": "header__cause-file"
- }, /*#__PURE__*/React.createElement("h1", {
- id: "gatsby-overlay-labelledby"
- }, hasMultipleErrors ? `${errors.length} Unhandled Runtime Errors` : `Unhandled Runtime Error`)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, {
- dismiss: dismiss
- })), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("p", {
- "data-gatsby-overlay": "body__describedby",
- id: "gatsby-overlay-describedby"
- }, hasMultipleErrors ? `Multiple` : `One`, " unhandled runtime", ` `, hasMultipleErrors ? `errors` : `error`, " found in your files. See the list below to fix ", hasMultipleErrors ? `them` : `it`, ":"), /*#__PURE__*/React.createElement(_accordion.Accordion, null, deduplicatedErrors.map((error, index) => /*#__PURE__*/React.createElement(WrappedAccordionItem, {
- open: index === 0,
- key: `${error.message}-${index}`,
- error: error
- })))));
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/use-id.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/use-id.js
deleted file mode 100644
index 4dc15ab..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/components/use-id.js
+++ /dev/null
@@ -1,56 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-exports.useId = useId;
-
-var React = _interopRequireWildcard(require("react"));
-
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
-
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
-// Copied from https://github.com/carbon-design-system/carbon
-// License: Apache-2.0
-// Copyright IBM Corp. 2016, 2018
-// Entrypoint: packages/react/src/internal/useId.js
-function setupGetInstanceId() {
- let instanceId = 0;
- return function getInstanceId() {
- return ++instanceId;
- };
-}
-
-const getId = setupGetInstanceId();
-const useIsomorphicLayoutEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect;
-
-function canUseDOM() {
- return !!(typeof window !== `undefined` && window.document && window.document.createElement);
-}
-
-let serverHandoffCompleted = false;
-/**
- * Generate a unique ID with an optional prefix prepended to it
- * @param {string} [prefix]
- * @returns {string}
- */
-
-function useId(prefix = `id`) {
- const [id, setId] = React.useState(() => {
- if (serverHandoffCompleted) {
- return `${prefix}-${getId()}`;
- }
-
- return null;
- });
- useIsomorphicLayoutEffect(() => {
- if (id === null) {
- setId(`${prefix}-${getId()}`);
- }
- }, [getId]);
- React.useEffect(() => {
- if (serverHandoffCompleted === false) {
- serverHandoffCompleted = true;
- }
- }, []);
- return id;
-}
\ No newline at end of file
diff --git a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/helpers/focus-trap.js b/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/helpers/focus-trap.js
deleted file mode 100644
index d3e416c..0000000
--- a/js/packages/metaplex/.cache/commonjs/fast-refresh-overlay/helpers/focus-trap.js
+++ /dev/null
@@ -1,3218 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
-
-exports.__esModule = true;
-exports.default = _default;
-
-var _platform2 = _interopRequireDefault(require("platform"));
-
-var _css = _interopRequireDefault(require("css.escape"));
-
-/* eslint-disable */
-// Adapted from https://github.com/medialize/ally.js
-// License: MIT
-// Copyright (c) 2015 Rodney Rehm
-//
-// Entrypoint: ally.js/maintain/tab-focus
-// input may be undefined, selector-tring, Node, NodeList, HTMLCollection, array of Nodes
-// yes, to some extent this is a bad replica of jQuery's constructor function
-function nodeArray(input) {
- if (!input) {
- return [];
- }
-
- if (Array.isArray(input)) {
- return input;
- } // instanceof Node - does not work with iframes
-
-
- if (input.nodeType !== undefined) {
- return [input];
- }
-
- if (typeof input === 'string') {
- input = document.querySelectorAll(input);
- }
-
- if (input.length !== undefined) {
- return [].slice.call(input, 0);
- }
-
- throw new TypeError('unexpected input ' + String(input));
-}
-
-function contextToElement(_ref) {
- var context = _ref.context,
- _ref$label = _ref.label,
- label = _ref$label === undefined ? 'context-to-element' : _ref$label,
- resolveDocument = _ref.resolveDocument,
- defaultToDocument = _ref.defaultToDocument;
- var element = nodeArray(context)[0];
-
- if (resolveDocument && element && element.nodeType === Node.DOCUMENT_NODE) {
- element = element.documentElement;
- }
-
- if (!element && defaultToDocument) {
- return document.documentElement;
- }
-
- if (!element) {
- throw new TypeError(label + ' requires valid options.context');
- }
-
- if (element.nodeType !== Node.ELEMENT_NODE && element.nodeType !== Node.DOCUMENT_FRAGMENT_NODE) {
- throw new TypeError(label + ' requires options.context to be an Element');
- }
-
- return element;
-}
-
-function getShadowHost() {
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
- context = _ref.context;
-
- var element = contextToElement({
- label: 'get/shadow-host',
- context: context
- }); // walk up to the root
-
- var container = null;
-
- while (element) {
- container = element;
- element = element.parentNode;
- } // https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeType
- // NOTE: Firefox 34 does not expose ShadowRoot.host (but 37 does)
-
-
- if (container.nodeType === container.DOCUMENT_FRAGMENT_NODE && container.host) {
- // the root is attached to a fragment node that has a host
- return container.host;
- }
-
- return null;
-}
-
-function getDocument(node) {
- if (!node) {
- return document;
- }
-
- if (node.nodeType === Node.DOCUMENT_NODE) {
- return node;
- }
-
- return node.ownerDocument || document;
-}
-
-function isActiveElement(context) {
- var element = contextToElement({
- label: 'is/active-element',
- resolveDocument: true,
- context: context
- });
-
- var _document = getDocument(element);
-
- if (_document.activeElement === element) {
- return true;
- }
-
- var shadowHost = getShadowHost({
- context: element
- });
-
- if (shadowHost && shadowHost.shadowRoot.activeElement === element) {
- return true;
- }
-
- return false;
-} // [elem, elem.parent, elem.parent.parent, …, html]
-// will not contain the shadowRoot (DOCUMENT_FRAGMENT_NODE) and shadowHost
-
-
-function getParents() {
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
- context = _ref.context;
-
- var list = [];
- var element = contextToElement({
- label: 'get/parents',
- context: context
- });
-
- while (element) {
- list.push(element); // IE does know support parentElement on SVGElement
-
- element = element.parentNode;
-
- if (element && element.nodeType !== Node.ELEMENT_NODE) {
- element = null;
- }
- }
-
- return list;
-} // Element.prototype.matches may be available at a different name
-// https://developer.mozilla.org/en/docs/Web/API/Element/matches
-
-
-var names = ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector'];
-var name = null;
-
-function findMethodName(element) {
- names.some(function (_name) {
- if (!element[_name]) {
- return false;
- }
-
- name = _name;
- return true;
- });
-}
-
-function elementMatches(element, selector) {
- if (!name) {
- findMethodName(element);
- }
-
- return element[name](selector);
-} // deep clone of original platform
-
-
-var platform = JSON.parse(JSON.stringify(_platform2.default)); // operating system
-
-var os = platform.os.family || '';
-var ANDROID = os === 'Android';
-var WINDOWS = os.slice(0, 7) === 'Windows';
-var OSX = os === 'OS X';
-var IOS = os === 'iOS'; // layout
-
-var BLINK = platform.layout === 'Blink';
-var GECKO = platform.layout === 'Gecko';
-var TRIDENT = platform.layout === 'Trident';
-var EDGE = platform.layout === 'EdgeHTML';
-var WEBKIT = platform.layout === 'WebKit'; // browser version (not layout engine version!)
-
-var version = parseFloat(platform.version);
-var majorVersion = Math.floor(version);
-platform.majorVersion = majorVersion;
-platform.is = {
- // operating system
- ANDROID: ANDROID,
- WINDOWS: WINDOWS,
- OSX: OSX,
- IOS: IOS,
- // layout
- BLINK: BLINK,
- // "Chrome", "Chrome Mobile", "Opera"
- GECKO: GECKO,
- // "Firefox"
- TRIDENT: TRIDENT,
- // "Internet Explorer"
- EDGE: EDGE,
- // "Microsoft Edge"
- WEBKIT: WEBKIT,
- // "Safari"
- // INTERNET EXPLORERS
- IE9: TRIDENT && majorVersion === 9,
- IE10: TRIDENT && majorVersion === 10,
- IE11: TRIDENT && majorVersion === 11
-};
-
-function before() {
- var data = {
- // remember what had focus to restore after test
- activeElement: document.activeElement,
- // remember scroll positions to restore after test
- windowScrollTop: window.scrollTop,
- windowScrollLeft: window.scrollLeft,
- bodyScrollTop: document.body.scrollTop,
- bodyScrollLeft: document.body.scrollLeft
- }; // wrap tests in an element hidden from screen readers to prevent them
- // from announcing focus, which can be quite irritating to the user
-
- var iframe = document.createElement('iframe');
- iframe.setAttribute('style', 'position:absolute; position:fixed; top:0; left:-2px; width:1px; height:1px; overflow:hidden;');
- iframe.setAttribute('aria-live', 'off');
- iframe.setAttribute('aria-busy', 'true');
- iframe.setAttribute('aria-hidden', 'true');
- document.body.appendChild(iframe);
- var _window = iframe.contentWindow;
- var _document = _window.document;
-
- _document.open();
-
- _document.close();
-
- var wrapper = _document.createElement('div');
-
- _document.body.appendChild(wrapper);
-
- data.iframe = iframe;
- data.wrapper = wrapper;
- data.window = _window;
- data.document = _document;
- return data;
-} // options.element:
-// {string} element name
-// {function} callback(wrapper, document) to generate an element
-// options.mutate: (optional)
-// {function} callback(element, wrapper, document) to manipulate element prior to focus-test.
-// Can return DOMElement to define focus target (default: element)
-// options.validate: (optional)
-// {function} callback(element, focusTarget, document) to manipulate test-result
-
-
-function test(data, options) {
- // make sure we operate on a clean slate
- data.wrapper.innerHTML = ''; // create dummy element to test focusability of
-
- var element = typeof options.element === 'string' ? data.document.createElement(options.element) : options.element(data.wrapper, data.document); // allow callback to further specify dummy element
- // and optionally define element to focus
-
- var focus = options.mutate && options.mutate(element, data.wrapper, data.document);
-
- if (!focus && focus !== false) {
- focus = element;
- } // element needs to be part of the DOM to be focusable
-
-
- !element.parentNode && data.wrapper.appendChild(element); // test if the element with invalid tabindex can be focused
-
- focus && focus.focus && focus.focus(); // validate test's result
-
- return options.validate ? options.validate(element, focus, data.document) : data.document.activeElement === focus;
-}
-
-function after(data) {
- // restore focus to what it was before test and cleanup
- if (data.activeElement === document.body) {
- document.activeElement && document.activeElement.blur && document.activeElement.blur();
-
- if (platform.is.IE10) {
- // IE10 does not redirect focus to when the activeElement is removed
- document.body.focus();
- }
- } else {
- data.activeElement && data.activeElement.focus && data.activeElement.focus();
- }
-
- document.body.removeChild(data.iframe); // restore scroll position
-
- window.scrollTop = data.windowScrollTop;
- window.scrollLeft = data.windowScrollLeft;
- document.body.scrollTop = data.bodyScrollTop;
- document.body.scrollLeft = data.bodyScrollLeft;
-}
-
-function detectFocus(tests) {
- var data = before();
- var results = {};
- Object.keys(tests).map(function (key) {
- results[key] = test(data, tests[key]);
- });
- after(data);
- return results;
-} // this file is overwritten by `npm run build:pre`
-
-
-var version$1 = '1.4.1';
-/*
- Facility to cache test results in localStorage.
-
- USAGE:
- cache.get('key');
- cache.set('key', 'value');
- */
-
-function readLocalStorage(key) {
- // allow reading from storage to retrieve previous support results
- // even while the document does not have focus
- var data = void 0;
-
- try {
- data = window.localStorage && window.localStorage.getItem(key);
- data = data ? JSON.parse(data) : {};
- } catch (e) {
- data = {};
- }
-
- return data;
-}
-
-function writeLocalStorage(key, value) {
- if (!document.hasFocus()) {
- // if the document does not have focus when tests are executed, focus() may
- // not be handled properly and events may not be dispatched immediately.
- // This can happen when a document is reloaded while Developer Tools have focus.
- try {
- window.localStorage && window.localStorage.removeItem(key);
- } catch (e) {// ignore
- }
-
- return;
- }
-
- try {
- window.localStorage && window.localStorage.setItem(key, JSON.stringify(value));
- } catch (e) {// ignore
- }
-}
-
-var userAgent = typeof window !== 'undefined' && window.navigator.userAgent || '';
-var cacheKey = 'ally-supports-cache';
-var cache = readLocalStorage(cacheKey); // update the cache if ally or the user agent changed (newer version, etc)
-
-if (cache.userAgent !== userAgent || cache.version !== version$1) {
- cache = {};
-}
-
-cache.userAgent = userAgent;
-cache.version = version$1;
-var cache$1 = {
- get: function get() {
- return cache;
- },
- set: function set(values) {
- Object.keys(values).forEach(function (key) {
- cache[key] = values[key];
- });
- cache.time = new Date().toISOString();
- writeLocalStorage(cacheKey, cache);
- }
-};
-
-function cssShadowPiercingDeepCombinator() {
- var combinator = void 0; // see https://dev.w3.org/csswg/css-scoping-1/#deep-combinator
- // https://bugzilla.mozilla.org/show_bug.cgi?id=1117572
- // https://code.google.com/p/chromium/issues/detail?id=446051
-
- try {
- document.querySelector('html >>> :first-child');
- combinator = '>>>';
- } catch (noArrowArrowArrow) {
- try {
- // old syntax supported at least up to Chrome 41
- // https://code.google.com/p/chromium/issues/detail?id=446051
- document.querySelector('html /deep/ :first-child');
- combinator = '/deep/';
- } catch (noDeep) {
- combinator = '';
- }
- }
-
- return combinator;
-}
-
-var gif = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
-
-var focusAreaImgTabindex = {
- element: 'div',
- mutate: function mutate(element) {
- element.innerHTML = '' + '';
- return element.querySelector('area');
- }
-}; // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
-
-var focusAreaTabindex = {
- element: 'div',
- mutate: function mutate(element) {
- element.innerHTML = '' + '';
- return false;
- },
- validate: function validate(element, focusTarget, _document) {
- if (platform.is.GECKO) {
- // fixes https://github.com/medialize/ally.js/issues/35
- // Firefox loads the DataURI asynchronously, causing a false-negative
- return true;
- }
-
- var focus = element.querySelector('area');
- focus.focus();
- return _document.activeElement === focus;
- }
-}; // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
-
-var focusAreaWithoutHref = {
- element: 'div',
- mutate: function mutate(element) {
- element.innerHTML = '' + '';
- return element.querySelector('area');
- },
- validate: function validate(element, focusTarget, _document) {
- if (platform.is.GECKO) {
- // fixes https://github.com/medialize/ally.js/issues/35
- // Firefox loads the DataURI asynchronously, causing a false-negative
- return true;
- }
-
- return _document.activeElement === focusTarget;
- }
-};
-var focusAudioWithoutControls = {
- name: 'can-focus-audio-without-controls',
- element: 'audio',
- mutate: function mutate(element) {
- try {
- // invalid media file can trigger warning in console, data-uri to prevent HTTP request
- element.setAttribute('src', gif);
- } catch (e) {// IE9 may throw "Error: Not implemented"
- }
- }
-};
-var invalidGif = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ'; // NOTE: https://github.com/medialize/ally.js/issues/35
-// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
-
-var focusBrokenImageMap = {
- element: 'div',
- mutate: function mutate(element) {
- element.innerHTML = '' + '';
- return element.querySelector('area');
- }
-}; // Children of focusable elements with display:flex are focusable in IE10-11
-
-var focusChildrenOfFocusableFlexbox = {
- element: 'div',
- mutate: function mutate(element) {
- element.setAttribute('tabindex', '-1');
- element.setAttribute('style', 'display: -webkit-flex; display: -ms-flexbox; display: flex;');
- element.innerHTML = 'hello';
- return element.querySelector('span');
- }
-}; // fieldset[tabindex=0][disabled] should not be focusable, but Blink and WebKit disagree
-// @specification https://www.w3.org/TR/html5/disabled-elements.html#concept-element-disabled
-// @browser-issue Chromium https://crbug.com/453847
-// @browser-issue WebKit https://bugs.webkit.org/show_bug.cgi?id=141086
-
-var focusFieldsetDisabled = {
- element: 'fieldset',
- mutate: function mutate(element) {
- element.setAttribute('tabindex', 0);
- element.setAttribute('disabled', 'disabled');
- }
-};
-var focusFieldset = {
- element: 'fieldset',
- mutate: function mutate(element) {
- element.innerHTML = 'content
';
- }
-}; // elements with display:flex are focusable in IE10-11
-
-var focusFlexboxContainer = {
- element: 'span',
- mutate: function mutate(element) {
- element.setAttribute('style', 'display: -webkit-flex; display: -ms-flexbox; display: flex;');
- element.innerHTML = 'hello';
- }
-}; // form[tabindex=0][disabled] should be focusable as the
-// specification doesn't know the disabled attribute on the form element
-// @specification https://www.w3.org/TR/html5/forms.html#the-form-element
-
-var focusFormDisabled = {
- element: 'form',
- mutate: function mutate(element) {
- element.setAttribute('tabindex', 0);
- element.setAttribute('disabled', 'disabled');
- }
-}; // NOTE: https://github.com/medialize/ally.js/issues/35
-// fixes https://github.com/medialize/ally.js/issues/20
-// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-ismap
-
-var focusImgIsmap = {
- element: 'a',
- mutate: function mutate(element) {
- element.href = '#void';
- element.innerHTML = '';
- return element.querySelector('img');
- }
-}; // NOTE: https://github.com/medialize/ally.js/issues/35
-// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
-
-var focusImgUsemapTabindex = {
- element: 'div',
- mutate: function mutate(element) {
- element.innerHTML = '' + '';
- return element.querySelector('img');
- }
-};
-var focusInHiddenIframe = {
- element: function element(wrapper, _document) {
- var iframe = _document.createElement('iframe'); // iframe must be part of the DOM before accessing the contentWindow is possible
-
-
- wrapper.appendChild(iframe); // create the iframe's default document ()
-
- var iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.close();
- return iframe;
- },
- mutate: function mutate(iframe) {
- iframe.style.visibility = 'hidden';
- var iframeDocument = iframe.contentWindow.document;
- var input = iframeDocument.createElement('input');
- iframeDocument.body.appendChild(input);
- return input;
- },
- validate: function validate(iframe) {
- var iframeDocument = iframe.contentWindow.document;
- var focus = iframeDocument.querySelector('input');
- return iframeDocument.activeElement === focus;
- }
-};
-var result = !platform.is.WEBKIT;
-
-function focusInZeroDimensionObject() {
- return result;
-} // Firefox allows *any* value and treats invalid values like tabindex="-1"
-// @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
-
-
-var focusInvalidTabindex = {
- element: 'div',
- mutate: function mutate(element) {
- element.setAttribute('tabindex', 'invalid-value');
- }
-};
-var focusLabelTabindex = {
- element: 'label',
- mutate: function mutate(element) {
- element.setAttribute('tabindex', '-1');
- },
- validate: function validate(element, focusTarget, _document) {
- // force layout in Chrome 49, otherwise the element won't be focusable
-
- /* eslint-disable no-unused-vars */
- var variableToPreventDeadCodeElimination = element.offsetHeight;
- /* eslint-enable no-unused-vars */
-
- element.focus();
- return _document.activeElement === element;
- }
-};
-var svg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtb' + 'G5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJ' + 'zdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg=='; // Note: IE10 on BrowserStack does not like this test
-
-var focusObjectSvgHidden = {
- element: 'object',
- mutate: function mutate(element) {
- element.setAttribute('type', 'image/svg+xml');
- element.setAttribute('data', svg);
- element.setAttribute('width', '200');
- element.setAttribute('height', '50');
- element.style.visibility = 'hidden';
- }
-}; // Note: IE10 on BrowserStack does not like this test
-
-var focusObjectSvg = {
- name: 'can-focus-object-svg',
- element: 'object',
- mutate: function mutate(element) {
- element.setAttribute('type', 'image/svg+xml');
- element.setAttribute('data', svg);
- element.setAttribute('width', '200');
- element.setAttribute('height', '50');
- },
- validate: function validate(element, focusTarget, _document) {
- if (platform.is.GECKO) {
- // Firefox seems to be handling the object creation asynchronously and thereby produces a false negative test result.
- // Because we know Firefox is able to focus object elements referencing SVGs, we simply cheat by sniffing the user agent string
- return true;
- }
-
- return _document.activeElement === element;
- }
-}; // Every Environment except IE9 considers SWF objects focusable
-
-var result$1 = !platform.is.IE9;
-
-function focusObjectSwf() {
- return result$1;
-}
-
-var focusRedirectImgUsemap = {
- element: 'div',
- mutate: function mutate(element) {
- element.innerHTML = '' + ''; // focus the , not the