groqd-playground
Version:
Groqd Playground is a plugin for Sanity Studio for testing [groqd](https://formidable.com/open-source/groqd/) queries, featuring:
31 lines (30 loc) • 866 B
JavaScript
import "./chunk-JXPB73SY.mjs";
// src/index.ts
import { definePlugin } from "sanity";
import { lazy } from "react";
import { route } from "sanity/router";
import { CodeIcon } from "@sanity/icons";
var groqdPlaygroundTool = definePlugin(
({ name, title, icon, defaultApiVersion, defaultDataset } = {}) => {
return {
name: "groqd-playground",
tools: [
{
name: name || "groqd-playground",
title: title || "GROQD",
icon: CodeIcon || icon,
component: lazy(() => import("./PlaygroundWrapper-HYDTOGJO.mjs")),
options: {
defaultApiVersion: defaultApiVersion || "v2021-10-21",
defaultDataset: defaultDataset || "production"
},
router: route.create("/*")
}
]
};
}
);
export {
groqdPlaygroundTool
};
//# sourceMappingURL=index.mjs.map