@pelatform/starter 0.2.3 → 0.2.4

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,7 +1,6 @@
1
1
  export * from 'pelatform-ui';
2
2
  export * from '@pelatform/starter.config';
3
3
  export * from '@pelatform/starter.utils';
4
- export * from '@pelatform/starter.shared/extend';
5
4
  import '@pelatform/starter.account';
6
5
  import '@pelatform/starter.admin';
7
6
  import '@pelatform/starter.apikey';
package/dist/extend.js CHANGED
@@ -2,4 +2,3 @@
2
2
  export * from "pelatform-ui";
3
3
  export * from "@pelatform/starter.config";
4
4
  export * from "@pelatform/starter.utils";
5
- export * from "@pelatform/starter.shared/extend";
package/dist/server.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { SessionData } from '@pelatform/starter.utils';
2
2
  import { Config } from '@pelatform/starter.config';
3
+ export * from 'pelatform-ui/server';
3
4
 
4
5
  type GuardHandler = (args: {
5
6
  req: Request;
package/dist/server.js CHANGED
@@ -100,7 +100,7 @@ var getLocaleFromRequest = async (config) => {
100
100
 
101
101
  // src/server/workspace.ts
102
102
  import { cookies as cookies2 } from "next/headers";
103
- import { lastVisitedWorkspace } from "@pelatform/starter.utils";
103
+ import { LAST_VISITED_WORKSPACE } from "pelatform-ui";
104
104
  var setServerLastVisitedWorkspace = async (workspace, maxAge = 30 * 86400) => {
105
105
  if (!workspace || typeof workspace !== "string" || workspace.trim().length === 0) {
106
106
  throw new Error("Invalid workspace: must be a non-empty string");
@@ -110,7 +110,7 @@ var setServerLastVisitedWorkspace = async (workspace, maxAge = 30 * 86400) => {
110
110
  }
111
111
  const cookieStore = await cookies2();
112
112
  cookieStore.set({
113
- name: lastVisitedWorkspace,
113
+ name: LAST_VISITED_WORKSPACE,
114
114
  value: workspace,
115
115
  path: "/",
116
116
  maxAge,
@@ -121,8 +121,11 @@ var setServerLastVisitedWorkspace = async (workspace, maxAge = 30 * 86400) => {
121
121
  };
122
122
  var getServerLastVisitedWorkspace = async () => {
123
123
  const cookieStore = await cookies2();
124
- return cookieStore.get(lastVisitedWorkspace)?.value;
124
+ return cookieStore.get(LAST_VISITED_WORKSPACE)?.value;
125
125
  };
126
+
127
+ // src/server.ts
128
+ export * from "pelatform-ui/server";
126
129
  export {
127
130
  createGuard,
128
131
  getActiveWorkspace,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pelatform/starter",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "A collection of SaaS starter kit components and utilities for Pelatform applications.",
5
5
  "author": "Pelatform",
6
6
  "license": "MIT",
@@ -40,15 +40,15 @@
40
40
  "utilities"
41
41
  ],
42
42
  "dependencies": {
43
- "@pelatform/starter.account": "0.2.3",
44
- "@pelatform/starter.admin": "0.1.0",
45
- "@pelatform/starter.apikey": "0.2.3",
46
- "@pelatform/starter.auth": "0.2.3",
43
+ "@pelatform/starter.account": "0.2.4",
44
+ "@pelatform/starter.admin": "0.1.1",
45
+ "@pelatform/starter.apikey": "0.2.4",
46
+ "@pelatform/starter.auth": "0.2.4",
47
47
  "@pelatform/starter.config": "0.2.1",
48
48
  "@pelatform/starter.hook": "0.2.1",
49
- "@pelatform/starter.shared": "0.2.3",
50
- "@pelatform/starter.utils": "0.2.2",
51
- "@pelatform/starter.workspace": "0.2.3"
49
+ "@pelatform/starter.shared": "0.2.4",
50
+ "@pelatform/starter.utils": "0.2.3",
51
+ "@pelatform/starter.workspace": "0.2.4"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@pelatform/tsconfig": "^0.1.3",