mnfst-types 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -37,7 +37,7 @@ For autocomplete and validation in `manifest.json` itself, add a `$schema` refer
37
37
 
38
38
  ```json
39
39
  {
40
- "$schema": "https://manifestjs.org/manifest.schema.json",
40
+ "$schema": "https://manifestx.dev/manifest.schema.json",
41
41
  "name": "My Project",
42
42
  "data": { ... }
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mnfst-types",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Generate TypeScript types for a Manifest project from manifest.json and sample data",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Manifest ambient type declarations.
3
- * https://manifestjs.org
3
+ * https://manifestx.dev
4
4
  *
5
5
  * This file gives editors (VS Code, Cursor, JetBrains) and AI coding assistants
6
6
  * type information for Manifest's magic globals and data-source state. It is
@@ -119,11 +119,11 @@ export interface ManifestSources {
119
119
 
120
120
  /** `$auth` from the Appwrite auth plugin. Loose by design — auth API is broad. */
121
121
  export interface ManifestAuth {
122
- readonly current: { $id: string; email?: string; name?: string; [k: string]: unknown } | null;
122
+ readonly current: { $id: string; email?: string; name?: string;[k: string]: unknown } | null;
123
123
  readonly isAuthenticated: boolean;
124
124
  readonly isLoading: boolean;
125
- readonly currentTeam: { $id: string; name: string; [k: string]: unknown } | null;
126
- readonly teams: Array<{ $id: string; name: string; [k: string]: unknown }>;
125
+ readonly currentTeam: { $id: string; name: string;[k: string]: unknown } | null;
126
+ readonly teams: Array<{ $id: string; name: string;[k: string]: unknown }>;
127
127
  login(email: string, password?: string): Promise<unknown>;
128
128
  loginWithMagic(email: string): Promise<unknown>;
129
129
  loginWithOAuth(provider: string, opts?: Record<string, unknown>): Promise<unknown>;
@@ -149,7 +149,7 @@ export interface ManifestToast {
149
149
  dismiss(id?: string): void;
150
150
  }
151
151
 
152
- /** `$theme` from the themes plugin. */
152
+ /** `$colors` from the themes plugin. */
153
153
  export interface ManifestTheme {
154
154
  readonly current: 'light' | 'dark' | 'system';
155
155
  set(theme: 'light' | 'dark' | 'system'): void;
@@ -208,7 +208,7 @@ declare global {
208
208
  /** Toasts plugin. */
209
209
  const $toast: ManifestToast;
210
210
  /** Themes plugin. */
211
- const $theme: ManifestTheme;
211
+ const $colors: ManifestTheme;
212
212
  /** Colors plugin. */
213
213
  const $colors: ManifestColors;
214
214
  /** Colorpicker plugin. */
@@ -241,4 +241,4 @@ declare global {
241
241
  // AUGMENTATION:end
242
242
  // ---------------------------------------------------------------------------
243
243
 
244
- export {};
244
+ export { };