@carefully-built/saas-kit 0.1.12 → 0.1.14

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
@@ -41,7 +41,7 @@ Import from the root for shared UI primitives, or from a subpath for a product a
41
41
  |---|---|
42
42
  | `@carefully-built/saas-kit` | Shared UI primitives, table tools, overlays, empty states, error pages, hooks, and utilities |
43
43
  | `@carefully-built/saas-kit/agenda` | Calendar and agenda surfaces |
44
- | `@carefully-built/saas-kit/app-shell` | Dashboard shell, top route loader, responsive navigation, page layouts, and mobile bottom navigation |
44
+ | `@carefully-built/saas-kit/app-shell` | Dashboard shell, responsive navigation, page layouts, and mobile bottom navigation |
45
45
  | `@carefully-built/saas-kit/association-picker` | Searchable association selection |
46
46
  | `@carefully-built/saas-kit/auth-pages` | Auth forms, controllers, pages, social login, organizations, and WorkOS auth UI |
47
47
  | `@carefully-built/saas-kit/automations` | Automation builder state, canvas, options, and draft helpers |
@@ -76,7 +76,7 @@ Import from the root for shared UI primitives, or from a subpath for a product a
76
76
  Example subpath imports:
77
77
 
78
78
  ```tsx
79
- import { AppTopLoader, DashboardPageLayout } from "@carefully-built/saas-kit/app-shell";
79
+ import { DashboardPageLayout } from "@carefully-built/saas-kit/app-shell";
80
80
  import { AuthLoginPage } from "@carefully-built/saas-kit/auth-pages/pages";
81
81
  import { createWorkOSWidgetTokenResponse } from "@carefully-built/saas-kit/server";
82
82
  import { createSuperAdminPage } from "@carefully-built/saas-kit/next";
@@ -1 +1,22 @@
1
- export * from "@carefully-built/app-shell";
1
+ import { AppNavigationShellProps, NavigationLinkProps } from "@carefully-built/app-shell";
2
+ export * from "@carefully-built/app-shell";
3
+
4
+ //#region src/app-shell.d.ts
5
+ /** `next/link` adapter for the shell's navigation links. */
6
+ declare function NextNavigationLink({
7
+ children,
8
+ className,
9
+ href,
10
+ onClick
11
+ }: NavigationLinkProps): React.ReactElement;
12
+ /**
13
+ * `AppNavigationShell` for Next.js apps: identical to the framework-agnostic
14
+ * shell, but navigation links default to `next/link`, so clicking a nav item
15
+ * is a client-side transition instead of a full page load (which would drop
16
+ * every React context / store the app keeps in memory). Pass `linkComponent`
17
+ * to override.
18
+ */
19
+ declare function AppNavigationShell(props: AppNavigationShellProps): React.ReactElement;
20
+ //#endregion
21
+ export { AppNavigationShell, NextNavigationLink };
22
+ //# sourceMappingURL=app-shell.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-shell.d.mts","names":[],"sources":["../src/app-shell.tsx"],"sourcesContent":[],"mappings":";;;;;iBAagB,kBAAA;;;;;GAKb,sBAAsB,KAAA,CAAM;;AAL/B;;;;;;AAK+B,iBAef,kBAAA,CAfe,KAAA,EAeW,uBAfX,CAAA,EAeqC,KAAA,CAAM,YAf3C"}
@@ -1,3 +1,35 @@
1
+ 'use client';
2
+
3
+ import NextLink from "next/link";
4
+ import { AppNavigationShell as AppNavigationShell$1 } from "@carefully-built/app-shell";
5
+ import { jsx } from "react/jsx-runtime";
6
+
1
7
  export * from "@carefully-built/app-shell"
2
8
 
3
- export { };
9
+ //#region src/app-shell.tsx
10
+ /** `next/link` adapter for the shell's navigation links. */
11
+ function NextNavigationLink({ children, className, href, onClick }) {
12
+ return /* @__PURE__ */ jsx(NextLink, {
13
+ href,
14
+ className,
15
+ onClick,
16
+ children
17
+ });
18
+ }
19
+ /**
20
+ * `AppNavigationShell` for Next.js apps: identical to the framework-agnostic
21
+ * shell, but navigation links default to `next/link`, so clicking a nav item
22
+ * is a client-side transition instead of a full page load (which would drop
23
+ * every React context / store the app keeps in memory). Pass `linkComponent`
24
+ * to override.
25
+ */
26
+ function AppNavigationShell(props) {
27
+ return /* @__PURE__ */ jsx(AppNavigationShell$1, {
28
+ linkComponent: NextNavigationLink,
29
+ ...props
30
+ });
31
+ }
32
+
33
+ //#endregion
34
+ export { AppNavigationShell, NextNavigationLink };
35
+ //# sourceMappingURL=app-shell.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-shell.mjs","names":["BaseAppNavigationShell"],"sources":["../src/app-shell.tsx"],"sourcesContent":["'use client';\n\nimport NextLink from 'next/link';\n\nimport {\n AppNavigationShell as BaseAppNavigationShell,\n type AppNavigationShellProps,\n type NavigationLinkProps,\n} from '@carefully-built/app-shell';\n\nexport * from '@carefully-built/app-shell';\n\n/** `next/link` adapter for the shell's navigation links. */\nexport function NextNavigationLink({\n children,\n className,\n href,\n onClick,\n}: NavigationLinkProps): React.ReactElement {\n return (\n <NextLink href={href} className={className} onClick={onClick}>\n {children}\n </NextLink>\n );\n}\n\n/**\n * `AppNavigationShell` for Next.js apps: identical to the framework-agnostic\n * shell, but navigation links default to `next/link`, so clicking a nav item\n * is a client-side transition instead of a full page load (which would drop\n * every React context / store the app keeps in memory). Pass `linkComponent`\n * to override.\n */\nexport function AppNavigationShell(props: AppNavigationShellProps): React.ReactElement {\n return <BaseAppNavigationShell linkComponent={NextNavigationLink} {...props} />;\n}\n"],"mappings":";;;;;;;;;;AAaA,SAAgB,mBAAmB,EACjC,UACA,WACA,MACA,WAC0C;AAC1C,QACE,oBAAC;EAAe;EAAiB;EAAoB;EAClD;GACQ;;;;;;;;;AAWf,SAAgB,mBAAmB,OAAoD;AACrF,QAAO,oBAACA;EAAuB,eAAe;EAAoB,GAAI;GAAS"}
@@ -0,0 +1 @@
1
+ export * from "@carefully-built/organizations";
@@ -0,0 +1,3 @@
1
+ export * from "@carefully-built/organizations"
2
+
3
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carefully-built/saas-kit",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "One-install Carefully Built SaaS Kit package for React, Next.js, Convex, WorkOS, and editable SaaS components.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -137,6 +137,11 @@
137
137
  "import": "./dist/notifications.mjs",
138
138
  "default": "./dist/notifications.mjs"
139
139
  },
140
+ "./organizations": {
141
+ "types": "./dist/organizations.d.mts",
142
+ "import": "./dist/organizations.mjs",
143
+ "default": "./dist/organizations.mjs"
144
+ },
140
145
  "./resource-kit": {
141
146
  "types": "./dist/resource-kit.d.mts",
142
147
  "import": "./dist/resource-kit.mjs",
@@ -251,7 +256,7 @@
251
256
  "./package.json": "./package.json"
252
257
  },
253
258
  "scripts": {
254
- "build": "tsdown src/index.ts src/agenda.ts src/app-shell.ts src/association-picker.ts src/auth-pages.ts src/automations.ts src/charts.ts src/convex-crud.ts src/convex-multitenant.ts src/convex-platform.ts src/convex-workos.ts src/crud.ts src/custom-fields.ts src/files.ts src/forms.ts src/import-export.ts src/kanban.ts src/legal-ui.ts src/maps-ui.ts src/notes.ts src/notifications.ts src/resource-kit.ts src/rich-text.ts src/search.ts src/settings-ui.ts src/superadmin.ts src/theme-ui.ts src/ui.ts src/user-picker.ts src/widgets.ts src/workos.ts src/server.ts src/next.ts src/auth-pages/forms.ts src/auth-pages/controllers.ts src/auth-pages/config.ts src/auth-pages/organizations.ts src/auth-pages/pages.ts src/auth-pages/social.ts src/auth-pages/workos.ts src/files/convex.ts src/search/command-palette.ts src/settings/client.ts --format esm --dts --unbundle && mkdir -p dist/agenda && cp src/agenda/styles.css dist/agenda/styles.css",
259
+ "build": "tsdown src/index.ts src/agenda.ts src/app-shell.tsx src/association-picker.ts src/auth-pages.ts src/automations.ts src/charts.ts src/convex-crud.ts src/convex-multitenant.ts src/convex-platform.ts src/convex-workos.ts src/crud.ts src/custom-fields.ts src/files.ts src/forms.ts src/import-export.ts src/kanban.ts src/legal-ui.ts src/maps-ui.ts src/notes.ts src/notifications.ts src/organizations.ts src/resource-kit.ts src/rich-text.ts src/search.ts src/settings-ui.ts src/superadmin.ts src/theme-ui.ts src/ui.ts src/user-picker.ts src/widgets.ts src/workos.ts src/server.ts src/next.ts src/auth-pages/forms.ts src/auth-pages/controllers.ts src/auth-pages/config.ts src/auth-pages/organizations.ts src/auth-pages/pages.ts src/auth-pages/social.ts src/auth-pages/workos.ts src/files/convex.ts src/search/command-palette.ts src/settings/client.ts --format esm --dts --unbundle && mkdir -p dist/agenda && cp src/agenda/styles.css dist/agenda/styles.css",
255
260
  "prepublishOnly": "bun run typecheck && bun run build",
256
261
  "typecheck": "tsc --noEmit"
257
262
  },
@@ -262,30 +267,31 @@
262
267
  "@carefully-built/agenda": "0.1.6",
263
268
  "@carefully-built/app-shell": "0.1.6",
264
269
  "@carefully-built/association-picker": "0.1.2",
265
- "@carefully-built/auth-pages": "0.1.10",
270
+ "@carefully-built/auth-pages": "0.1.11",
266
271
  "@carefully-built/automations": "0.1.3",
267
272
  "@carefully-built/charts": "0.1.2",
268
- "@carefully-built/convex-crud": "0.1.9",
273
+ "@carefully-built/convex-crud": "0.1.15",
269
274
  "@carefully-built/convex-multitenant": "0.1.2",
270
275
  "@carefully-built/convex-platform": "0.1.7",
271
276
  "@carefully-built/convex-workos": "0.1.2",
272
- "@carefully-built/crud": "0.1.4",
273
- "@carefully-built/custom-fields": "0.1.3",
274
- "@carefully-built/files": "0.1.6",
277
+ "@carefully-built/crud": "0.1.7",
278
+ "@carefully-built/custom-fields": "0.1.4",
279
+ "@carefully-built/files": "0.1.9",
275
280
  "@carefully-built/forms": "0.1.9",
276
281
  "@carefully-built/import-export": "0.1.3",
277
- "@carefully-built/kanban": "0.1.1",
282
+ "@carefully-built/kanban": "0.1.4",
278
283
  "@carefully-built/legal-ui": "0.1.2",
279
284
  "@carefully-built/maps-ui": "0.1.4",
280
- "@carefully-built/notes": "0.1.4",
285
+ "@carefully-built/notes": "0.1.5",
281
286
  "@carefully-built/notifications": "0.1.1",
282
- "@carefully-built/resource-kit": "0.1.3",
287
+ "@carefully-built/organizations": "0.1.0",
288
+ "@carefully-built/resource-kit": "0.1.7",
283
289
  "@carefully-built/rich-text": "0.1.1",
284
- "@carefully-built/search": "0.1.2",
285
- "@carefully-built/settings-ui": "0.1.6",
286
- "@carefully-built/superadmin": "0.1.9",
290
+ "@carefully-built/search": "0.1.4",
291
+ "@carefully-built/settings-ui": "0.1.9",
292
+ "@carefully-built/superadmin": "0.1.18",
287
293
  "@carefully-built/theme-ui": "0.1.1",
288
- "@carefully-built/ui": "0.1.19",
294
+ "@carefully-built/ui": "0.1.22",
289
295
  "@carefully-built/user-picker": "0.1.2",
290
296
  "@carefully-built/widgets": "0.1.1",
291
297
  "@carefully-built/workos": "0.1.7"