@motiadev/plugin-example 0.14.0-beta.165-634707 → 0.14.0-beta.165-198270

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.
package/dist/index.js CHANGED
@@ -0,0 +1,169 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import { Badge, Button } from "@motiadev/ui";
3
+ import { Sparkles } from "lucide-react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+
6
+ //#region src/components/example-page.tsx
7
+ const ExamplePage = () => {
8
+ const $ = c(11);
9
+ if ($[0] !== "51e69a0140a0b08d2c26f5602802dc8c1950cff6d360be01eb5b60d2b8aae975") {
10
+ for (let $i = 0; $i < 11; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
11
+ $[0] = "51e69a0140a0b08d2c26f5602802dc8c1950cff6d360be01eb5b60d2b8aae975";
12
+ }
13
+ let t0;
14
+ let t1;
15
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
16
+ t0 = /* @__PURE__ */ jsxs("div", {
17
+ className: "flex items-center gap-3",
18
+ children: [
19
+ /* @__PURE__ */ jsx(Sparkles, { className: "w-8 h-8 text-primary" }),
20
+ /* @__PURE__ */ jsx("h1", {
21
+ className: "text-3xl font-bold",
22
+ children: "Example Plugin"
23
+ }),
24
+ /* @__PURE__ */ jsx(Badge, {
25
+ variant: "info",
26
+ children: "v1.0.0"
27
+ })
28
+ ]
29
+ });
30
+ t1 = /* @__PURE__ */ jsx("p", {
31
+ className: "text-muted-foreground text-lg",
32
+ children: "Welcome to the example plugin! This demonstrates the basic structure and functionality of a Motia plugin."
33
+ });
34
+ $[1] = t0;
35
+ $[2] = t1;
36
+ } else {
37
+ t0 = $[1];
38
+ t1 = $[2];
39
+ }
40
+ let t2;
41
+ let t3;
42
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
43
+ t2 = /* @__PURE__ */ jsx("h2", {
44
+ className: "text-xl font-semibold",
45
+ children: "What is this?"
46
+ });
47
+ t3 = /* @__PURE__ */ jsx("p", {
48
+ className: "text-muted-foreground",
49
+ children: "This is a minimal example plugin that shows how to create custom workbench tabs in Motia. Plugins can extend the Motia workbench with custom functionality, visualizations, and tools."
50
+ });
51
+ $[3] = t2;
52
+ $[4] = t3;
53
+ } else {
54
+ t2 = $[3];
55
+ t3 = $[4];
56
+ }
57
+ let t4;
58
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
59
+ t4 = /* @__PURE__ */ jsxs("div", {
60
+ className: "p-4 border rounded-lg",
61
+ children: [/* @__PURE__ */ jsx("h3", {
62
+ className: "font-semibold mb-2",
63
+ children: "Easy to Create"
64
+ }), /* @__PURE__ */ jsx("p", {
65
+ className: "text-sm text-muted-foreground",
66
+ children: "Build plugins with React, TypeScript, and Tailwind CSS"
67
+ })]
68
+ });
69
+ $[5] = t4;
70
+ } else t4 = $[5];
71
+ let t5;
72
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
73
+ t5 = /* @__PURE__ */ jsxs("div", {
74
+ className: "p-4 border rounded-lg",
75
+ children: [/* @__PURE__ */ jsx("h3", {
76
+ className: "font-semibold mb-2",
77
+ children: "Integrated"
78
+ }), /* @__PURE__ */ jsx("p", {
79
+ className: "text-sm text-muted-foreground",
80
+ children: "Seamlessly integrate with Motia's workbench UI"
81
+ })]
82
+ });
83
+ $[6] = t5;
84
+ } else t5 = $[6];
85
+ let t6;
86
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
87
+ t6 = /* @__PURE__ */ jsxs("div", {
88
+ className: "grid grid-cols-1 md:grid-cols-3 gap-4 mt-6",
89
+ children: [
90
+ t4,
91
+ t5,
92
+ /* @__PURE__ */ jsxs("div", {
93
+ className: "p-4 border rounded-lg",
94
+ children: [/* @__PURE__ */ jsx("h3", {
95
+ className: "font-semibold mb-2",
96
+ children: "Powerful"
97
+ }), /* @__PURE__ */ jsx("p", {
98
+ className: "text-sm text-muted-foreground",
99
+ children: "Access Motia's plugin context and APIs"
100
+ })]
101
+ })
102
+ ]
103
+ });
104
+ $[7] = t6;
105
+ } else t6 = $[7];
106
+ let t7;
107
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
108
+ t7 = /* @__PURE__ */ jsxs("div", {
109
+ className: "p-6 space-y-4",
110
+ children: [
111
+ t2,
112
+ t3,
113
+ t6,
114
+ /* @__PURE__ */ jsxs("div", {
115
+ className: "flex gap-2 mt-6",
116
+ children: [/* @__PURE__ */ jsxs(Button, {
117
+ variant: "default",
118
+ children: [/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4" }), "Get Started"]
119
+ }), /* @__PURE__ */ jsx(Button, {
120
+ variant: "outline",
121
+ children: "View Documentation"
122
+ })]
123
+ })
124
+ ]
125
+ });
126
+ $[8] = t7;
127
+ } else t7 = $[8];
128
+ let t8;
129
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
130
+ t8 = /* @__PURE__ */ jsx("h2", {
131
+ className: "text-xl font-semibold",
132
+ children: "Plugin Features"
133
+ });
134
+ $[9] = t8;
135
+ } else t8 = $[9];
136
+ let t9;
137
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
138
+ t9 = /* @__PURE__ */ jsx("div", {
139
+ className: "h-full w-full p-6 overflow-auto",
140
+ children: /* @__PURE__ */ jsxs("div", {
141
+ className: "max-w-4xl mx-auto space-y-6",
142
+ children: [
143
+ t0,
144
+ t1,
145
+ t7,
146
+ /* @__PURE__ */ jsxs("div", {
147
+ className: "p-6 space-y-4",
148
+ children: [t8, /* @__PURE__ */ jsxs("ul", {
149
+ className: "list-disc list-inside space-y-2 text-muted-foreground",
150
+ children: [
151
+ /* @__PURE__ */ jsx("li", { children: "Custom workbench tabs with position control (top/bottom)" }),
152
+ /* @__PURE__ */ jsx("li", { children: "Access to Motia's UI components library" }),
153
+ /* @__PURE__ */ jsx("li", { children: "Integration with state management and APIs" }),
154
+ /* @__PURE__ */ jsx("li", { children: "Real-time updates through streams" }),
155
+ /* @__PURE__ */ jsx("li", { children: "TypeScript support with full type safety" })
156
+ ]
157
+ })]
158
+ })
159
+ ]
160
+ })
161
+ });
162
+ $[10] = t9;
163
+ } else t9 = $[10];
164
+ return t9;
165
+ };
166
+
167
+ //#endregion
168
+ export { ExamplePage };
169
+ //# sourceMappingURL=index.js.map
package/dist/plugin.js CHANGED
@@ -2,7 +2,7 @@
2
2
  function plugin(_motia) {
3
3
  return { workbench: [{
4
4
  packageName: "@motiadev/plugin-example",
5
- cssImports: ["@motiadev/plugin-example/dist/index.css"],
5
+ cssImports: ["@motiadev/plugin-example/dist/styles.css"],
6
6
  label: "Example",
7
7
  position: "bottom",
8
8
  componentName: "ExamplePage",
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","names":["MotiaPlugin","MotiaPluginContext","plugin","_motia","workbench","packageName","cssImports","label","position","componentName","labelIcon"],"sources":["../src/plugin.ts"],"sourcesContent":["import type { MotiaPlugin, MotiaPluginContext } from '@motiadev/core'\n\nexport default function plugin(_motia: MotiaPluginContext): MotiaPlugin {\n return {\n workbench: [\n {\n packageName: '@motiadev/plugin-example',\n cssImports: ['@motiadev/plugin-example/dist/index.css'],\n label: 'Example',\n position: 'bottom',\n componentName: 'ExamplePage',\n labelIcon: 'sparkles',\n },\n ],\n }\n}\n"],"mappings":";AAEA,SAAwBE,OAAOC,QAAyC;AACtE,QAAO,EACLC,WAAW,CACT;EACEC,aAAa;EACbC,YAAY,CAAC,0CAA0C;EACvDC,OAAO;EACPC,UAAU;EACVC,eAAe;EACfC,WAAW;EACZ,CAAA,EAEJ"}
1
+ {"version":3,"file":"plugin.js","names":["MotiaPlugin","MotiaPluginContext","plugin","_motia","workbench","packageName","cssImports","label","position","componentName","labelIcon"],"sources":["../src/plugin.ts"],"sourcesContent":["import type { MotiaPlugin, MotiaPluginContext } from '@motiadev/core'\n\nexport default function plugin(_motia: MotiaPluginContext): MotiaPlugin {\n return {\n workbench: [\n {\n packageName: '@motiadev/plugin-example',\n cssImports: ['@motiadev/plugin-example/dist/styles.css'],\n label: 'Example',\n position: 'bottom',\n componentName: 'ExamplePage',\n labelIcon: 'sparkles',\n },\n ],\n }\n}\n"],"mappings":";AAEA,SAAwBE,OAAOC,QAAyC;AACtE,QAAO,EACLC,WAAW,CACT;EACEC,aAAa;EACbC,YAAY,CAAC,2CAA2C;EACxDC,OAAO;EACPC,UAAU;EACVC,eAAe;EACfC,WAAW;EACZ,CAAA,EAEJ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css","names":[],"sources":["../src/styles.css"],"sourcesContent":["export default undefined;"],"mappings":"AAAA"}
package/dist/styles.js ADDED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motiadev/plugin-example",
3
- "version": "0.14.0-beta.165-634707",
3
+ "version": "0.14.0-beta.165-198270",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "react": "^19.2.0"
18
18
  },
19
19
  "peerDependencies": {
20
- "@motiadev/core": "0.14.0-beta.165-634707",
21
- "@motiadev/ui": "0.14.0-beta.165-634707"
20
+ "@motiadev/ui": "0.14.0-beta.165-198270",
21
+ "@motiadev/core": "0.14.0-beta.165-198270"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@rollup/plugin-babel": "^6.1.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.css","names":[],"sources":["../src/styles.css"],"sourcesContent":["export default undefined;"],"mappings":"AAAA"}
File without changes