@pelatform/starter 0.1.9 → 0.2.1

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/extend.d.ts CHANGED
@@ -1,136 +1,10 @@
1
- export { j as ActiveOrganization, e as AnyAuthClient, p as ApiKey, a as AppConfig, g as AuthClient, c as AuthConfig, A as AuthQueryOptions, b as AuthenticationConfig, u as AvatarClassNames, w as AvatarProps, B as BetterFetchRequest, v as CardClassNames, z as CardComponentProps, C as Config, D as DialogClassNames, y as DialogComponentProps, F as FeaturesConfig, t as FetchError, l as FieldType, I as I18nConfig, m as ImageOptions, q as Invitation, k as Locale, L as LocaleConfig, N as NonThrowableResult, r as PasswordValidation, P as PathConfig, s as Profile, o as Provider, n as ProviderIcon, R as Refetch, h as Session, S as SessionData, T as ThrowableResult, U as UIConfig, i as User, V as ViewClassNames, x as ViewProps, W as Workspace, f as authClient, d as defaultAuthQueryOptions } from './workspace-CcGHPtq0.js';
2
- import { z } from 'zod';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as react from 'react';
5
- import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies';
6
- import { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies';
7
- export { Account } from 'better-auth';
8
- export { BetterFetchOption } from 'better-auth/react';
9
- export { Member, Organization } from 'better-auth/plugins/organization';
10
- export { SocialProvider } from 'better-auth/social-providers';
11
- import '@tanstack/react-query';
12
- import 'better-auth/client/plugins';
13
- import 'pelatform-ui/default';
14
-
15
- declare function getPasswordSchema(t: (key: string) => string): z.ZodString;
16
-
17
- type RequestMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
18
- declare function request(endpoint: string, method?: RequestMethod, body?: unknown, log?: boolean): Promise<any>;
19
-
20
- declare const socialProviders: readonly [{
21
- readonly provider: "apple";
22
- readonly name: "Apple";
23
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
24
- }, {
25
- readonly provider: "discord";
26
- readonly name: "Discord";
27
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
28
- }, {
29
- readonly provider: "dropbox";
30
- readonly name: "Dropbox";
31
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
32
- }, {
33
- readonly provider: "facebook";
34
- readonly name: "Facebook";
35
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
36
- }, {
37
- readonly provider: "github";
38
- readonly name: "GitHub";
39
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
40
- }, {
41
- readonly provider: "gitlab";
42
- readonly name: "GitLab";
43
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
44
- }, {
45
- readonly provider: "google";
46
- readonly name: "Google";
47
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
48
- }, {
49
- readonly provider: "huggingface";
50
- readonly name: "Hugging Face";
51
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
52
- }, {
53
- readonly provider: "kick";
54
- readonly name: "Kick";
55
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
56
- }, {
57
- readonly provider: "linear";
58
- readonly name: "Linear";
59
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
60
- }, {
61
- readonly provider: "linkedin";
62
- readonly name: "LinkedIn";
63
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
64
- }, {
65
- readonly provider: "microsoft";
66
- readonly name: "Microsoft";
67
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
68
- }, {
69
- readonly provider: "notion";
70
- readonly name: "Notion";
71
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
72
- }, {
73
- readonly provider: "reddit";
74
- readonly name: "Reddit";
75
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
76
- }, {
77
- readonly provider: "roblox";
78
- readonly name: "Roblox";
79
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
80
- }, {
81
- readonly provider: "slack";
82
- readonly name: "Slack";
83
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
84
- }, {
85
- readonly provider: "spotify";
86
- readonly name: "Spotify";
87
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
88
- }, {
89
- readonly provider: "tiktok";
90
- readonly name: "TikTok";
91
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
92
- }, {
93
- readonly provider: "twitch";
94
- readonly name: "Twitch";
95
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
96
- }, {
97
- readonly provider: "vk";
98
- readonly name: "VK";
99
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
100
- }, {
101
- readonly provider: "twitter";
102
- readonly name: "X";
103
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
104
- }, {
105
- readonly provider: "zoom";
106
- readonly name: "Zoom";
107
- readonly icon: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
108
- }];
109
-
110
- /**
111
- * Gets a translation error message from an error object
112
- * Uses next-intl translation function
113
- */
114
- declare function getTranslations({ error, t, }: {
115
- error: any;
116
- t: (key: string) => string;
117
- }): any;
118
-
119
- /**
120
- * Sets the last visited workspace in a cookie.
121
- * @param workspace The slug of the workspace to set as last visited.
122
- * @param maxAge The maximum age of the cookie in seconds.
123
- */
124
- declare const setLastVisitedWorkspace: (workspace: string, maxAge?: number) => void;
125
- /**
126
- * Retrieves the last visited workspace from cookies.
127
- * @param cookies The RequestCookies or ReadonlyRequestCookies object to read from.
128
- * @returns The slug of the last visited workspace, or undefined if not set.
129
- */
130
- declare const getLastVisitedWorkspace: (cookies: RequestCookies | ReadonlyRequestCookies) => string | undefined;
131
-
132
- declare const lastVisitedWorkspace = "last-visited-workspace";
133
- declare const WORKSPACE_SCOPED_PREFIXES: readonly ["webhooks"];
134
- type WorkspaceScopedPrefix = (typeof WORKSPACE_SCOPED_PREFIXES)[number];
135
-
136
- export { WORKSPACE_SCOPED_PREFIXES, type WorkspaceScopedPrefix, getLastVisitedWorkspace, getPasswordSchema, getTranslations, lastVisitedWorkspace, request, setLastVisitedWorkspace, socialProviders };
1
+ export * from '@pelatform/starter.config';
2
+ export * from '@pelatform/starter.utils';
3
+ export * from '@pelatform/starter.shared/extend';
4
+ export * from '@pelatform/starter.workspace/extend';
5
+ import '@pelatform/starter.account';
6
+ import '@pelatform/starter.apikey';
7
+ import '@pelatform/starter.auth';
8
+ import '@pelatform/starter.hook';
9
+ import '@pelatform/starter.shared';
10
+ import '@pelatform/starter.workspace';
package/dist/extend.js CHANGED
@@ -1,24 +1,5 @@
1
- import {
2
- defaultAuthQueryOptions,
3
- getLastVisitedWorkspace,
4
- getPasswordSchema,
5
- getTranslations,
6
- request,
7
- setLastVisitedWorkspace,
8
- socialProviders
9
- } from "./chunk-7Y52PHJN.js";
10
- import {
11
- WORKSPACE_SCOPED_PREFIXES,
12
- lastVisitedWorkspace
13
- } from "./chunk-K5RU54UL.js";
14
- export {
15
- WORKSPACE_SCOPED_PREFIXES,
16
- defaultAuthQueryOptions,
17
- getLastVisitedWorkspace,
18
- getPasswordSchema,
19
- getTranslations,
20
- lastVisitedWorkspace,
21
- request,
22
- setLastVisitedWorkspace,
23
- socialProviders
24
- };
1
+ // src/extend.ts
2
+ export * from "@pelatform/starter.config";
3
+ export * from "@pelatform/starter.utils";
4
+ export * from "@pelatform/starter.shared/extend";
5
+ export * from "@pelatform/starter.workspace/extend";