@tscircuit/fake-snippets 0.0.137 → 0.0.138

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.d.ts CHANGED
@@ -151,12 +151,16 @@ declare const accountSchema: z.ZodObject<{
151
151
  companyName?: string | undefined;
152
152
  apartment?: string | undefined;
153
153
  }>>;
154
- personal_org_id: z.ZodOptional<z.ZodString>;
154
+ personal_org_id: z.ZodNullable<z.ZodString>;
155
155
  is_tscircuit_staff: z.ZodDefault<z.ZodBoolean>;
156
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ created_at: z.ZodDate;
156
158
  }, "strip", z.ZodTypeAny, {
159
+ created_at: Date;
157
160
  account_id: string;
158
161
  github_username: string;
159
162
  tscircuit_handle: string | null;
163
+ personal_org_id: string | null;
160
164
  is_tscircuit_staff: boolean;
161
165
  shippingInfo?: {
162
166
  firstName: string;
@@ -170,11 +174,13 @@ declare const accountSchema: z.ZodObject<{
170
174
  companyName?: string | undefined;
171
175
  apartment?: string | undefined;
172
176
  } | undefined;
173
- personal_org_id?: string | undefined;
177
+ email?: string | null | undefined;
174
178
  }, {
179
+ created_at: Date;
175
180
  account_id: string;
176
181
  github_username: string;
177
182
  tscircuit_handle: string | null;
183
+ personal_org_id: string | null;
178
184
  shippingInfo?: {
179
185
  firstName: string;
180
186
  lastName: string;
@@ -187,8 +193,8 @@ declare const accountSchema: z.ZodObject<{
187
193
  companyName?: string | undefined;
188
194
  apartment?: string | undefined;
189
195
  } | undefined;
190
- personal_org_id?: string | undefined;
191
196
  is_tscircuit_staff?: boolean | undefined;
197
+ email?: string | null | undefined;
192
198
  }>;
193
199
  type Account = z.infer<typeof accountSchema>;
194
200
  declare const orderSchema: z.ZodObject<{
@@ -1233,9 +1239,11 @@ declare const createDatabase: ({ seed }?: {
1233
1239
  has_been_used_to_create_session: boolean;
1234
1240
  }[];
1235
1241
  accounts: {
1242
+ created_at: Date;
1236
1243
  account_id: string;
1237
1244
  github_username: string;
1238
1245
  tscircuit_handle: string | null;
1246
+ personal_org_id: string | null;
1239
1247
  is_tscircuit_staff: boolean;
1240
1248
  shippingInfo?: {
1241
1249
  firstName: string;
@@ -1249,7 +1257,7 @@ declare const createDatabase: ({ seed }?: {
1249
1257
  companyName?: string | undefined;
1250
1258
  apartment?: string | undefined;
1251
1259
  } | undefined;
1252
- personal_org_id?: string | undefined;
1260
+ email?: string | null | undefined;
1253
1261
  }[];
1254
1262
  packages: {
1255
1263
  name: string;
@@ -1525,8 +1533,10 @@ declare const createDatabase: ({ seed }?: {
1525
1533
  content_bytes: Uint8Array | null;
1526
1534
  }) => BugReportFile;
1527
1535
  getBugReportFilesByBugReportId: (bugReportId: string) => BugReportFile[];
1528
- addAccount: (account: Omit<Account, "account_id" | "is_tscircuit_staff"> & Partial<Pick<Account, "account_id" | "is_tscircuit_staff">>) => {
1536
+ addAccount: (account: Omit<Account, "account_id" | "is_tscircuit_staff" | "created_at" | "personal_org_id"> & Partial<Pick<Account, "account_id" | "is_tscircuit_staff" | "personal_org_id">>) => {
1529
1537
  is_tscircuit_staff: boolean;
1538
+ created_at: Date;
1539
+ personal_org_id: string;
1530
1540
  github_username: string;
1531
1541
  tscircuit_handle: string | null;
1532
1542
  shippingInfo?: {
@@ -1541,7 +1551,7 @@ declare const createDatabase: ({ seed }?: {
1541
1551
  companyName?: string | undefined;
1542
1552
  apartment?: string | undefined;
1543
1553
  } | undefined;
1544
- personal_org_id?: string | undefined;
1554
+ email?: string | null | undefined;
1545
1555
  account_id: string;
1546
1556
  };
1547
1557
  addAccountPackage: (accountPackage: Omit<AccountPackage, "account_package_id">) => AccountPackage;
@@ -1816,9 +1826,11 @@ declare const createDatabase: ({ seed }?: {
1816
1826
  has_been_used_to_create_session: boolean;
1817
1827
  }[];
1818
1828
  accounts: {
1829
+ created_at: Date;
1819
1830
  account_id: string;
1820
1831
  github_username: string;
1821
1832
  tscircuit_handle: string | null;
1833
+ personal_org_id: string | null;
1822
1834
  is_tscircuit_staff: boolean;
1823
1835
  shippingInfo?: {
1824
1836
  firstName: string;
@@ -1832,7 +1844,7 @@ declare const createDatabase: ({ seed }?: {
1832
1844
  companyName?: string | undefined;
1833
1845
  apartment?: string | undefined;
1834
1846
  } | undefined;
1835
- personal_org_id?: string | undefined;
1847
+ email?: string | null | undefined;
1836
1848
  }[];
1837
1849
  packages: {
1838
1850
  name: string;
@@ -2108,8 +2120,10 @@ declare const createDatabase: ({ seed }?: {
2108
2120
  content_bytes: Uint8Array | null;
2109
2121
  }) => BugReportFile;
2110
2122
  getBugReportFilesByBugReportId: (bugReportId: string) => BugReportFile[];
2111
- addAccount: (account: Omit<Account, "account_id" | "is_tscircuit_staff"> & Partial<Pick<Account, "account_id" | "is_tscircuit_staff">>) => {
2123
+ addAccount: (account: Omit<Account, "account_id" | "is_tscircuit_staff" | "created_at" | "personal_org_id"> & Partial<Pick<Account, "account_id" | "is_tscircuit_staff" | "personal_org_id">>) => {
2112
2124
  is_tscircuit_staff: boolean;
2125
+ created_at: Date;
2126
+ personal_org_id: string;
2113
2127
  github_username: string;
2114
2128
  tscircuit_handle: string | null;
2115
2129
  shippingInfo?: {
@@ -2124,7 +2138,7 @@ declare const createDatabase: ({ seed }?: {
2124
2138
  companyName?: string | undefined;
2125
2139
  apartment?: string | undefined;
2126
2140
  } | undefined;
2127
- personal_org_id?: string | undefined;
2141
+ email?: string | null | undefined;
2128
2142
  account_id: string;
2129
2143
  };
2130
2144
  addAccountPackage: (accountPackage: Omit<AccountPackage, "account_package_id">) => AccountPackage;
package/dist/index.js CHANGED
@@ -68,8 +68,17 @@ var accountSchema = z.object({
68
68
  github_username: z.string(),
69
69
  tscircuit_handle: z.string().nullable(),
70
70
  shippingInfo: shippingInfoSchema.optional(),
71
- personal_org_id: z.string().optional(),
72
- is_tscircuit_staff: z.boolean().default(false)
71
+ personal_org_id: z.string().nullable(),
72
+ is_tscircuit_staff: z.boolean().default(false),
73
+ email: z.string().nullable().optional(),
74
+ created_at: z.date()
75
+ });
76
+ var publicAccountSchema = z.object({
77
+ account_id: z.string(),
78
+ github_username: z.string().nullable(),
79
+ tscircuit_handle: z.string().nullable(),
80
+ personal_org_id: z.string().nullable(),
81
+ created_at: z.date()
73
82
  });
74
83
  var orderSchema = z.object({
75
84
  order_id: z.string(),
@@ -2761,7 +2770,9 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
2761
2770
  const newAccount = {
2762
2771
  account_id: account.account_id || `account_${get().idCounter + 1}`,
2763
2772
  ...account,
2764
- is_tscircuit_staff: Boolean(account.is_tscircuit_staff)
2773
+ is_tscircuit_staff: Boolean(account.is_tscircuit_staff),
2774
+ created_at: /* @__PURE__ */ new Date(),
2775
+ personal_org_id: account.personal_org_id || `porg_${get().idCounter + 1}`
2765
2776
  };
2766
2777
  set((state) => {
2767
2778
  return {
package/dist/schema.d.ts CHANGED
@@ -219,12 +219,16 @@ declare const accountSchema: z.ZodObject<{
219
219
  companyName?: string | undefined;
220
220
  apartment?: string | undefined;
221
221
  }>>;
222
- personal_org_id: z.ZodOptional<z.ZodString>;
222
+ personal_org_id: z.ZodNullable<z.ZodString>;
223
223
  is_tscircuit_staff: z.ZodDefault<z.ZodBoolean>;
224
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ created_at: z.ZodDate;
224
226
  }, "strip", z.ZodTypeAny, {
227
+ created_at: Date;
225
228
  account_id: string;
226
229
  github_username: string;
227
230
  tscircuit_handle: string | null;
231
+ personal_org_id: string | null;
228
232
  is_tscircuit_staff: boolean;
229
233
  shippingInfo?: {
230
234
  firstName: string;
@@ -238,11 +242,13 @@ declare const accountSchema: z.ZodObject<{
238
242
  companyName?: string | undefined;
239
243
  apartment?: string | undefined;
240
244
  } | undefined;
241
- personal_org_id?: string | undefined;
245
+ email?: string | null | undefined;
242
246
  }, {
247
+ created_at: Date;
243
248
  account_id: string;
244
249
  github_username: string;
245
250
  tscircuit_handle: string | null;
251
+ personal_org_id: string | null;
246
252
  shippingInfo?: {
247
253
  firstName: string;
248
254
  lastName: string;
@@ -255,10 +261,30 @@ declare const accountSchema: z.ZodObject<{
255
261
  companyName?: string | undefined;
256
262
  apartment?: string | undefined;
257
263
  } | undefined;
258
- personal_org_id?: string | undefined;
259
264
  is_tscircuit_staff?: boolean | undefined;
265
+ email?: string | null | undefined;
260
266
  }>;
261
267
  type Account = z.infer<typeof accountSchema>;
268
+ declare const publicAccountSchema: z.ZodObject<{
269
+ account_id: z.ZodString;
270
+ github_username: z.ZodNullable<z.ZodString>;
271
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
272
+ personal_org_id: z.ZodNullable<z.ZodString>;
273
+ created_at: z.ZodDate;
274
+ }, "strip", z.ZodTypeAny, {
275
+ created_at: Date;
276
+ account_id: string;
277
+ github_username: string | null;
278
+ tscircuit_handle: string | null;
279
+ personal_org_id: string | null;
280
+ }, {
281
+ created_at: Date;
282
+ account_id: string;
283
+ github_username: string | null;
284
+ tscircuit_handle: string | null;
285
+ personal_org_id: string | null;
286
+ }>;
287
+ type PublicAccount = z.infer<typeof publicAccountSchema>;
262
288
  declare const orderSchema: z.ZodObject<{
263
289
  order_id: z.ZodString;
264
290
  account_id: z.ZodNullable<z.ZodString>;
@@ -1731,12 +1757,16 @@ declare const databaseSchema: z.ZodObject<{
1731
1757
  companyName?: string | undefined;
1732
1758
  apartment?: string | undefined;
1733
1759
  }>>;
1734
- personal_org_id: z.ZodOptional<z.ZodString>;
1760
+ personal_org_id: z.ZodNullable<z.ZodString>;
1735
1761
  is_tscircuit_staff: z.ZodDefault<z.ZodBoolean>;
1762
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1763
+ created_at: z.ZodDate;
1736
1764
  }, "strip", z.ZodTypeAny, {
1765
+ created_at: Date;
1737
1766
  account_id: string;
1738
1767
  github_username: string;
1739
1768
  tscircuit_handle: string | null;
1769
+ personal_org_id: string | null;
1740
1770
  is_tscircuit_staff: boolean;
1741
1771
  shippingInfo?: {
1742
1772
  firstName: string;
@@ -1750,11 +1780,13 @@ declare const databaseSchema: z.ZodObject<{
1750
1780
  companyName?: string | undefined;
1751
1781
  apartment?: string | undefined;
1752
1782
  } | undefined;
1753
- personal_org_id?: string | undefined;
1783
+ email?: string | null | undefined;
1754
1784
  }, {
1785
+ created_at: Date;
1755
1786
  account_id: string;
1756
1787
  github_username: string;
1757
1788
  tscircuit_handle: string | null;
1789
+ personal_org_id: string | null;
1758
1790
  shippingInfo?: {
1759
1791
  firstName: string;
1760
1792
  lastName: string;
@@ -1767,8 +1799,8 @@ declare const databaseSchema: z.ZodObject<{
1767
1799
  companyName?: string | undefined;
1768
1800
  apartment?: string | undefined;
1769
1801
  } | undefined;
1770
- personal_org_id?: string | undefined;
1771
1802
  is_tscircuit_staff?: boolean | undefined;
1803
+ email?: string | null | undefined;
1772
1804
  }>, "many">>;
1773
1805
  packages: z.ZodDefault<z.ZodArray<z.ZodObject<{
1774
1806
  package_id: z.ZodString;
@@ -2617,9 +2649,11 @@ declare const databaseSchema: z.ZodObject<{
2617
2649
  has_been_used_to_create_session: boolean;
2618
2650
  }[];
2619
2651
  accounts: {
2652
+ created_at: Date;
2620
2653
  account_id: string;
2621
2654
  github_username: string;
2622
2655
  tscircuit_handle: string | null;
2656
+ personal_org_id: string | null;
2623
2657
  is_tscircuit_staff: boolean;
2624
2658
  shippingInfo?: {
2625
2659
  firstName: string;
@@ -2633,7 +2667,7 @@ declare const databaseSchema: z.ZodObject<{
2633
2667
  companyName?: string | undefined;
2634
2668
  apartment?: string | undefined;
2635
2669
  } | undefined;
2636
- personal_org_id?: string | undefined;
2670
+ email?: string | null | undefined;
2637
2671
  }[];
2638
2672
  packages: {
2639
2673
  name: string;
@@ -2988,9 +3022,11 @@ declare const databaseSchema: z.ZodObject<{
2988
3022
  has_been_used_to_create_session: boolean;
2989
3023
  }[] | undefined;
2990
3024
  accounts?: {
3025
+ created_at: Date;
2991
3026
  account_id: string;
2992
3027
  github_username: string;
2993
3028
  tscircuit_handle: string | null;
3029
+ personal_org_id: string | null;
2994
3030
  shippingInfo?: {
2995
3031
  firstName: string;
2996
3032
  lastName: string;
@@ -3003,8 +3039,8 @@ declare const databaseSchema: z.ZodObject<{
3003
3039
  companyName?: string | undefined;
3004
3040
  apartment?: string | undefined;
3005
3041
  } | undefined;
3006
- personal_org_id?: string | undefined;
3007
3042
  is_tscircuit_staff?: boolean | undefined;
3043
+ email?: string | null | undefined;
3008
3044
  }[] | undefined;
3009
3045
  packages?: {
3010
3046
  name: string;
@@ -3250,4 +3286,4 @@ declare const databaseSchema: z.ZodObject<{
3250
3286
  }>;
3251
3287
  type DatabaseSchema = z.infer<typeof databaseSchema>;
3252
3288
 
3253
- export { type Account, type AccountPackage, type AccountSnippet, type AiReview, type BugReport, type BugReportFile, type DatabaseSchema, type Datasheet, type GithubInstallation, type JlcpcbOrderState, type JlcpcbOrderStepRun, type LoginPage, type Order, type OrderFile, type OrderQuote, type OrgAccount, type Organization, type Package, type PackageBuild, type PackageFile, type PackageRelease, type PublicOrgSchema, type QuotedComponent, type Session, type ShippingOption, type Snippet, type UserPermissions, accountPackageSchema, accountSchema, accountSnippetSchema, aiReviewSchema, bugReportFileResponseSchema, bugReportFileSchema, bugReportSchema, databaseSchema, datasheetPinInformationSchema, datasheetSchema, errorResponseSchema, errorSchema, githubInstallationSchema, jlcpcbOrderStateSchema, jlcpcbOrderStepRunSchema, loginPageSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgSchema, packageBuildSchema, packageFileSchema, packageReleaseSchema, packageSchema, publicOrgSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema, userPermissionsSchema };
3289
+ export { type Account, type AccountPackage, type AccountSnippet, type AiReview, type BugReport, type BugReportFile, type DatabaseSchema, type Datasheet, type GithubInstallation, type JlcpcbOrderState, type JlcpcbOrderStepRun, type LoginPage, type Order, type OrderFile, type OrderQuote, type OrgAccount, type Organization, type Package, type PackageBuild, type PackageFile, type PackageRelease, type PublicAccount, type PublicOrgSchema, type QuotedComponent, type Session, type ShippingOption, type Snippet, type UserPermissions, accountPackageSchema, accountSchema, accountSnippetSchema, aiReviewSchema, bugReportFileResponseSchema, bugReportFileSchema, bugReportSchema, databaseSchema, datasheetPinInformationSchema, datasheetSchema, errorResponseSchema, errorSchema, githubInstallationSchema, jlcpcbOrderStateSchema, jlcpcbOrderStepRunSchema, loginPageSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgSchema, packageBuildSchema, packageFileSchema, packageReleaseSchema, packageSchema, publicAccountSchema, publicOrgSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema, userPermissionsSchema };
package/dist/schema.js CHANGED
@@ -62,8 +62,17 @@ var accountSchema = z.object({
62
62
  github_username: z.string(),
63
63
  tscircuit_handle: z.string().nullable(),
64
64
  shippingInfo: shippingInfoSchema.optional(),
65
- personal_org_id: z.string().optional(),
66
- is_tscircuit_staff: z.boolean().default(false)
65
+ personal_org_id: z.string().nullable(),
66
+ is_tscircuit_staff: z.boolean().default(false),
67
+ email: z.string().nullable().optional(),
68
+ created_at: z.date()
69
+ });
70
+ var publicAccountSchema = z.object({
71
+ account_id: z.string(),
72
+ github_username: z.string().nullable(),
73
+ tscircuit_handle: z.string().nullable(),
74
+ personal_org_id: z.string().nullable(),
75
+ created_at: z.date()
67
76
  });
68
77
  var orderSchema = z.object({
69
78
  order_id: z.string(),
@@ -456,6 +465,7 @@ export {
456
465
  packageFileSchema,
457
466
  packageReleaseSchema,
458
467
  packageSchema,
468
+ publicAccountSchema,
459
469
  publicOrgSchema,
460
470
  quotedComponentSchema,
461
471
  sessionSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fake-snippets",
3
- "version": "0.0.137",
3
+ "version": "0.0.138",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -81,16 +81,16 @@
81
81
  "@resvg/resvg-wasm": "^2.6.2",
82
82
  "@sentry/react": "^10.10.0",
83
83
  "@tailwindcss/typography": "^0.5.16",
84
- "@tscircuit/3d-viewer": "^0.0.407",
84
+ "@tscircuit/3d-viewer": "^0.0.426",
85
85
  "@tscircuit/assembly-viewer": "^0.0.5",
86
86
  "@tscircuit/create-snippet-url": "^0.0.8",
87
- "@tscircuit/eval": "^0.0.447",
87
+ "@tscircuit/eval": "^0.0.460",
88
88
  "@tscircuit/layout": "^0.0.29",
89
89
  "@tscircuit/mm": "^0.0.8",
90
- "@tscircuit/pcb-viewer": "^1.11.218",
90
+ "@tscircuit/pcb-viewer": "^1.11.248",
91
91
  "@tscircuit/prompt-benchmarks": "^0.0.28",
92
- "@tscircuit/runframe": "^0.0.1164",
93
- "@tscircuit/schematic-viewer": "^2.0.39",
92
+ "@tscircuit/runframe": "^0.0.1209",
93
+ "@tscircuit/schematic-viewer": "^2.0.46",
94
94
  "@tscircuit/simple-3d-svg": "^0.0.41",
95
95
  "@types/babel__standalone": "^7.1.7",
96
96
  "@types/bun": "^1.1.10",
@@ -186,7 +186,7 @@
186
186
  "terser": "^5.27.0",
187
187
  "three": "0.165.0",
188
188
  "three-stdlib": "^2.36.0",
189
- "tscircuit": "^0.0.811",
189
+ "tscircuit": "^0.0.851",
190
190
  "tsup": "^8.5.0",
191
191
  "typescript": "^5.6.3",
192
192
  "use-async-memo": "^1.2.5",