@hywax/cms 1.3.0 → 1.4.0

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/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hywax/cms",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "configKey": "cms",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ import { snakeCase, kebabCase } from 'scule';
6
6
  import { readFile, writeFile } from 'node:fs/promises';
7
7
 
8
8
  const name = "@hywax/cms";
9
- const version = "1.3.0";
9
+ const version = "1.4.0";
10
10
 
11
11
  function createContext(options, nuxt) {
12
12
  const { resolve } = createResolver(import.meta.url);
@@ -448,9 +448,10 @@ export {}
448
448
  write: true,
449
449
  getContents: () => {
450
450
  const config = {
451
- name: options.name,
452
- uploraUrl: options.uploraUrl,
453
- fluxorUrl: options.fluxorUrl
451
+ name: options.name
452
+ // Переменные есть в runtimeConfig
453
+ // uploraUrl: options.uploraUrl,
454
+ // fluxorUrl: options.fluxorUrl,
454
455
  };
455
456
  return `const cmsConfig = ${JSON.stringify(config, null, 2)} as const
456
457
 
@@ -0,0 +1,2 @@
1
+ export declare const authRedirectToCookie: string;
2
+ export declare function getAuthRedirectTo(redirectTo?: string): string;
@@ -0,0 +1,5 @@
1
+ import { getCmsConfig } from "#imports";
2
+ export const authRedirectToCookie = `${getCmsConfig().name}-auth-redirect`;
3
+ export function getAuthRedirectTo(redirectTo) {
4
+ return redirectTo ? decodeURIComponent(redirectTo) : "/";
5
+ }
@@ -1,3 +1,4 @@
1
+ export * from './auth';
1
2
  export * from './avatar';
2
3
  export * from './date';
3
4
  export * from './features';
@@ -1,3 +1,4 @@
1
+ export * from "./auth.js";
1
2
  export * from "./avatar.js";
2
3
  export * from "./date.js";
3
4
  export * from "./features.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hywax/cms",
3
3
  "type": "module",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
6
6
  "repository": {
7
7
  "type": "git",