@mongoosejs/studio 0.1.15 → 0.1.16

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.
@@ -48,6 +48,9 @@ var map = {
48
48
  "./dashboard-result/dashboard-map/dashboard-map": "./frontend/src/dashboard-result/dashboard-map/dashboard-map.js",
49
49
  "./dashboard-result/dashboard-map/dashboard-map.html": "./frontend/src/dashboard-result/dashboard-map/dashboard-map.html",
50
50
  "./dashboard-result/dashboard-map/dashboard-map.js": "./frontend/src/dashboard-result/dashboard-map/dashboard-map.js",
51
+ "./dashboard-result/dashboard-object/dashboard-object": "./frontend/src/dashboard-result/dashboard-object/dashboard-object.js",
52
+ "./dashboard-result/dashboard-object/dashboard-object.html": "./frontend/src/dashboard-result/dashboard-object/dashboard-object.html",
53
+ "./dashboard-result/dashboard-object/dashboard-object.js": "./frontend/src/dashboard-result/dashboard-object/dashboard-object.js",
51
54
  "./dashboard-result/dashboard-primitive/dashboard-primitive": "./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.js",
52
55
  "./dashboard-result/dashboard-primitive/dashboard-primitive.html": "./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.html",
53
56
  "./dashboard-result/dashboard-primitive/dashboard-primitive.js": "./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.js",
@@ -1726,6 +1729,48 @@ module.exports = app => app.component('dashboard-map', {
1726
1729
  });
1727
1730
 
1728
1731
 
1732
+ /***/ }),
1733
+
1734
+ /***/ "./frontend/src/dashboard-result/dashboard-object/dashboard-object.html":
1735
+ /*!******************************************************************************!*\
1736
+ !*** ./frontend/src/dashboard-result/dashboard-object/dashboard-object.html ***!
1737
+ \******************************************************************************/
1738
+ /***/ ((module) => {
1739
+
1740
+ "use strict";
1741
+ module.exports = "<div class=\"py-2\">\n <div v-if=\"header\" class=\"border-b border-gray-100 px-2 pb-2 text-xl font-bold\">\n {{header}}\n </div>\n <pre class=\"text-sm p-2 whitespace-pre-wrap overflow-auto\"><code>{{formattedValue}}</code></pre>\n</div>\n";
1742
+
1743
+ /***/ }),
1744
+
1745
+ /***/ "./frontend/src/dashboard-result/dashboard-object/dashboard-object.js":
1746
+ /*!****************************************************************************!*\
1747
+ !*** ./frontend/src/dashboard-result/dashboard-object/dashboard-object.js ***!
1748
+ \****************************************************************************/
1749
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1750
+
1751
+ "use strict";
1752
+
1753
+
1754
+ const template = __webpack_require__(/*! ./dashboard-object.html */ "./frontend/src/dashboard-result/dashboard-object/dashboard-object.html");
1755
+
1756
+ module.exports = app => app.component('dashboard-object', {
1757
+ template: template,
1758
+ props: ['value'],
1759
+ computed: {
1760
+ header() {
1761
+ return this.value?.header || null;
1762
+ },
1763
+ formattedValue() {
1764
+ try {
1765
+ return JSON.stringify(this.value, null, 2);
1766
+ } catch (err) {
1767
+ return String(this.value);
1768
+ }
1769
+ }
1770
+ }
1771
+ });
1772
+
1773
+
1729
1774
  /***/ }),
1730
1775
 
1731
1776
  /***/ "./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.html":
@@ -1828,6 +1873,7 @@ module.exports = app => app.component('dashboard-result', {
1828
1873
  if (value.$grid) {
1829
1874
  return 'dashboard-grid';
1830
1875
  }
1876
+ return 'dashboard-object';
1831
1877
  }
1832
1878
  }
1833
1879
  });
@@ -17050,7 +17096,7 @@ module.exports = function stringToParts(str) {
17050
17096
  /***/ ((module) => {
17051
17097
 
17052
17098
  "use strict";
17053
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@mongoosejs/studio","version":"0.1.15","description":"A sleek, powerful MongoDB UI with built-in dashboarding and auth, seamlessly integrated with your Express, Vercel, or Netlify app.","homepage":"https://studio.mongoosejs.io/","repository":{"type":"git","url":"https://github.com/mongoosejs/studio"},"license":"Apache-2.0","dependencies":{"@ai-sdk/google":"2.x","@ai-sdk/openai":"2.x","@ai-sdk/anthropic":"2.x","ai":"5.x","archetype":"0.13.1","csv-stringify":"6.3.0","ejson":"^2.2.3","extrovert":"^0.2.0","marked":"15.0.12","node-inspect-extracted":"3.x","tailwindcss":"3.4.0","vanillatoasts":"^1.6.0","vue":"3.x","webpack":"5.x"},"peerDependencies":{"mongoose":"7.x || 8.x || ^9.0.0"},"devDependencies":{"@masteringjs/eslint-config":"0.1.1","axios":"1.2.2","dedent":"^1.6.0","eslint":"9.30.0","express":"4.x","mocha":"10.2.0","mongoose":"9.x"},"scripts":{"lint":"eslint .","tailwind":"tailwindcss -o ./frontend/public/tw.css","tailwind:watch":"tailwindcss -o ./frontend/public/tw.css --watch","test":"mocha test/*.test.js"}}');
17099
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@mongoosejs/studio","version":"0.1.16","description":"A sleek, powerful MongoDB UI with built-in dashboarding and auth, seamlessly integrated with your Express, Vercel, or Netlify app.","homepage":"https://studio.mongoosejs.io/","repository":{"type":"git","url":"https://github.com/mongoosejs/studio"},"license":"Apache-2.0","dependencies":{"@ai-sdk/google":"2.x","@ai-sdk/openai":"2.x","@ai-sdk/anthropic":"2.x","ai":"5.x","archetype":"0.13.1","csv-stringify":"6.3.0","ejson":"^2.2.3","extrovert":"^0.2.0","marked":"15.0.12","node-inspect-extracted":"3.x","tailwindcss":"3.4.0","vanillatoasts":"^1.6.0","vue":"3.x","webpack":"5.x"},"peerDependencies":{"mongoose":"7.x || 8.x || ^9.0.0"},"devDependencies":{"@masteringjs/eslint-config":"0.1.1","axios":"1.2.2","dedent":"^1.6.0","eslint":"9.30.0","express":"4.x","mocha":"10.2.0","mongoose":"9.x"},"scripts":{"lint":"eslint .","tailwind":"tailwindcss -o ./frontend/public/tw.css","tailwind:watch":"tailwindcss -o ./frontend/public/tw.css --watch","test":"mocha test/*.test.js"}}');
17054
17100
 
17055
17101
  /***/ })
17056
17102
 
@@ -0,0 +1,6 @@
1
+ <div class="py-2">
2
+ <div v-if="header" class="border-b border-gray-100 px-2 pb-2 text-xl font-bold">
3
+ {{header}}
4
+ </div>
5
+ <pre class="text-sm p-2 whitespace-pre-wrap overflow-auto"><code>{{formattedValue}}</code></pre>
6
+ </div>
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ const template = require('./dashboard-object.html');
4
+
5
+ module.exports = app => app.component('dashboard-object', {
6
+ template: template,
7
+ props: ['value'],
8
+ computed: {
9
+ header() {
10
+ return this.value?.header || null;
11
+ },
12
+ formattedValue() {
13
+ try {
14
+ return JSON.stringify(this.value, null, 2);
15
+ } catch (err) {
16
+ return String(this.value);
17
+ }
18
+ }
19
+ }
20
+ });
@@ -34,6 +34,7 @@ module.exports = app => app.component('dashboard-result', {
34
34
  if (value.$grid) {
35
35
  return 'dashboard-grid';
36
36
  }
37
+ return 'dashboard-object';
37
38
  }
38
39
  }
39
40
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongoosejs/studio",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "A sleek, powerful MongoDB UI with built-in dashboarding and auth, seamlessly integrated with your Express, Vercel, or Netlify app.",
5
5
  "homepage": "https://studio.mongoosejs.io/",
6
6
  "repository": {