@functionalcms/svelte-components 5.5.3 → 5.5.5
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/components/Icon.svelte.d.ts +13 -8
- package/dist/components/content/Markdown.svelte.d.ts +12 -16
- package/dist/components/form/AntiBot.svelte.d.ts +19 -22
- package/dist/components/form/Dropzone.svelte.d.ts +14 -4
- package/dist/components/form/SmartForm.svelte.d.ts +13 -11
- package/dist/components/head/Font.svelte.d.ts +14 -8
- package/dist/components/head/Meta.svelte.d.ts +14 -10
- package/dist/components/head/Tracker.svelte.d.ts +13 -5
- package/dist/components/integrations/EasyTools.svelte.d.ts +13 -6
- package/dist/components/layouts/DefaultLayout.svelte.d.ts +13 -21
- package/dist/components/layouts/MenuLayout.svelte.d.ts +13 -13
- package/dist/components/layouts/SimpleLayout.svelte.d.ts +14 -7
- package/dist/components/presentation/FlexBox.svelte.d.ts +14 -17
- package/dist/components/presentation/ImageCompare.svelte.d.ts +14 -10
- package/dist/components/presentation/Logo.svelte.d.ts +14 -7
- package/dist/components/presentation/StyleBox.svelte.d.ts +14 -7
- package/dist/components/presentation/Well.svelte.d.ts +14 -7
- package/dist/server-side/functionalSequence.js +1 -1
- package/dist/server-side/handlers/sessionStorageHandler.d.ts +1 -1
- package/dist/server-side/handlers/sessionStorageHandler.js +18 -17
- package/package.json +2 -7
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type IconProps = typeof __propDef.props;
|
|
10
|
+
export type IconEvents = typeof __propDef.events;
|
|
11
|
+
export type IconSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Icon extends SvelteComponentTyped<IconProps, IconEvents, IconSlots> {
|
|
6
13
|
}
|
|
7
|
-
|
|
8
|
-
type Icon = ReturnType<typeof Icon>;
|
|
9
|
-
export default Icon;
|
|
14
|
+
export {};
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
11
6
|
};
|
|
12
|
-
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type MarkdownProps = typeof __propDef.props;
|
|
10
|
+
export type MarkdownEvents = typeof __propDef.events;
|
|
11
|
+
export type MarkdownSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Markdown extends SvelteComponentTyped<MarkdownProps, MarkdownEvents, MarkdownSlots> {
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type Markdown = InstanceType<typeof Markdown>;
|
|
18
|
-
export default Markdown;
|
|
14
|
+
export {};
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** @typedef {typeof __propDef.props} AntiBotProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} AntiBotEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} AntiBotSlots */
|
|
4
|
+
export default class AntiBot extends SvelteComponentTyped<{
|
|
3
5
|
[x: string]: never;
|
|
4
6
|
}, {
|
|
5
7
|
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}>
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const AntiBot: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
-
$$bindings?: Bindings;
|
|
17
|
-
} & Exports;
|
|
18
|
-
(internal: unknown, props: {
|
|
19
|
-
$$events?: Events;
|
|
20
|
-
$$slots?: Slots;
|
|
21
|
-
}): Exports & {
|
|
22
|
-
$set?: any;
|
|
23
|
-
$on?: any;
|
|
24
|
-
};
|
|
25
|
-
z_$$bindings?: Bindings;
|
|
8
|
+
}, {}> {
|
|
26
9
|
}
|
|
10
|
+
export type AntiBotProps = typeof __propDef.props;
|
|
11
|
+
export type AntiBotEvents = typeof __propDef.events;
|
|
12
|
+
export type AntiBotSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type DropzoneProps = typeof __propDef.props;
|
|
10
|
+
export type DropzoneEvents = typeof __propDef.events;
|
|
11
|
+
export type DropzoneSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Dropzone extends SvelteComponentTyped<DropzoneProps, DropzoneEvents, DropzoneSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SmartFormProps = typeof __propDef.props;
|
|
10
|
+
export type SmartFormEvents = typeof __propDef.events;
|
|
11
|
+
export type SmartFormSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SmartForm extends SvelteComponentTyped<SmartFormProps, SmartFormEvents, SmartFormSlots> {
|
|
9
13
|
}
|
|
10
|
-
|
|
11
|
-
type SmartForm = ReturnType<typeof SmartForm>;
|
|
12
|
-
export default SmartForm;
|
|
14
|
+
export {};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type FontProps = typeof __propDef.props;
|
|
10
|
+
export type FontEvents = typeof __propDef.events;
|
|
11
|
+
export type FontSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Font extends SvelteComponentTyped<FontProps, FontEvents, FontSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
type
|
|
10
|
-
export
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
type MetaProps_ = typeof __propDef.props;
|
|
10
|
+
export { MetaProps_ as MetaProps };
|
|
11
|
+
export type MetaEvents = typeof __propDef.events;
|
|
12
|
+
export type MetaSlots = typeof __propDef.slots;
|
|
13
|
+
export default class Meta extends SvelteComponentTyped<MetaProps_, MetaEvents, MetaSlots> {
|
|
14
|
+
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
3
8
|
};
|
|
4
|
-
|
|
5
|
-
type
|
|
6
|
-
export
|
|
9
|
+
export type TrackerProps = typeof __propDef.props;
|
|
10
|
+
export type TrackerEvents = typeof __propDef.events;
|
|
11
|
+
export type TrackerSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Tracker extends SvelteComponentTyped<TrackerProps, TrackerEvents, TrackerSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type EasyToolsProps = typeof __propDef.props;
|
|
10
|
+
export type EasyToolsEvents = typeof __propDef.events;
|
|
11
|
+
export type EasyToolsSlots = typeof __propDef.slots;
|
|
12
|
+
export default class EasyTools extends SvelteComponentTyped<EasyToolsProps, EasyToolsEvents, EasyToolsSlots> {
|
|
4
13
|
}
|
|
5
|
-
|
|
6
|
-
type EasyTools = ReturnType<typeof EasyTools>;
|
|
7
|
-
export default EasyTools;
|
|
14
|
+
export {};
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
logoUrl?: string;
|
|
7
|
-
companyName?: string;
|
|
8
|
-
renderCompanyName?: boolean;
|
|
9
|
-
menuItems?: Array<MenuOption>;
|
|
10
|
-
footerRender?: Snippet;
|
|
11
|
-
classes?: {
|
|
12
|
-
logo?: string;
|
|
13
|
-
companyName?: string;
|
|
14
|
-
navigation?: string;
|
|
15
|
-
menuItem?: string;
|
|
16
|
-
activeClass?: string;
|
|
17
|
-
nonActiveClass?: string;
|
|
18
|
-
main?: string;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
19
6
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type DefaultLayoutProps = typeof __propDef.props;
|
|
10
|
+
export type DefaultLayoutEvents = typeof __propDef.events;
|
|
11
|
+
export type DefaultLayoutSlots = typeof __propDef.slots;
|
|
12
|
+
export default class DefaultLayout extends SvelteComponentTyped<DefaultLayoutProps, DefaultLayoutEvents, DefaultLayoutSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
logo: {
|
|
7
|
-
name: string;
|
|
8
|
-
href: string;
|
|
9
|
-
img: string;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
10
6
|
};
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
type
|
|
14
|
-
export
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type MenuLayoutProps = typeof __propDef.props;
|
|
10
|
+
export type MenuLayoutEvents = typeof __propDef.events;
|
|
11
|
+
export type MenuLayoutSlots = typeof __propDef.slots;
|
|
12
|
+
export default class MenuLayout extends SvelteComponentTyped<MenuLayoutProps, MenuLayoutEvents, MenuLayoutSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SimpleLayoutProps = typeof __propDef.props;
|
|
10
|
+
export type SimpleLayoutEvents = typeof __propDef.events;
|
|
11
|
+
export type SimpleLayoutSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SimpleLayout extends SvelteComponentTyped<SimpleLayoutProps, SimpleLayoutEvents, SimpleLayoutSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}>, {}, "">;
|
|
16
|
-
type FlexBox = ReturnType<typeof FlexBox>;
|
|
17
|
-
export default FlexBox;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type FlexBoxProps = typeof __propDef.props;
|
|
10
|
+
export type FlexBoxEvents = typeof __propDef.events;
|
|
11
|
+
export type FlexBoxSlots = typeof __propDef.slots;
|
|
12
|
+
export default class FlexBox extends SvelteComponentTyped<FlexBoxProps, FlexBoxEvents, FlexBoxSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
type
|
|
10
|
-
export
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type ImageCompareProps = typeof __propDef.props;
|
|
10
|
+
export type ImageCompareEvents = typeof __propDef.events;
|
|
11
|
+
export type ImageCompareSlots = typeof __propDef.slots;
|
|
12
|
+
export default class ImageCompare extends SvelteComponentTyped<ImageCompareProps, ImageCompareEvents, ImageCompareSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type LogoProps = typeof __propDef.props;
|
|
10
|
+
export type LogoEvents = typeof __propDef.events;
|
|
11
|
+
export type LogoSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Logo extends SvelteComponentTyped<LogoProps, LogoEvents, LogoSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type StyleBoxProps = typeof __propDef.props;
|
|
10
|
+
export type StyleBoxEvents = typeof __propDef.events;
|
|
11
|
+
export type StyleBoxSlots = typeof __propDef.slots;
|
|
12
|
+
export default class StyleBox extends SvelteComponentTyped<StyleBoxProps, StyleBoxEvents, StyleBoxSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type WellProps = typeof __propDef.props;
|
|
10
|
+
export type WellEvents = typeof __propDef.events;
|
|
11
|
+
export type WellSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Well extends SvelteComponentTyped<WellProps, WellEvents, WellSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -6,5 +6,5 @@ import authorizationHandle from "./auth/authorizationHandle";
|
|
|
6
6
|
import { userHandler } from "./handlers/userHandler";
|
|
7
7
|
import { accessTokenHandler } from "./handlers/accessTokenHandler";
|
|
8
8
|
export const hookSequence = (secret, paraglideMiddleware, getTextDirection, customHooks) => {
|
|
9
|
-
return sequence(
|
|
9
|
+
return sequence(userHandler(secret), accessTokenHandler(secret), errorHandler, paraglideHandler(paraglideMiddleware, getTextDirection), authorizationHandle(), ...customHooks);
|
|
10
10
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Handle } from '@sveltejs/kit';
|
|
2
|
-
export declare const sessionStorageHandler: (
|
|
2
|
+
export declare const sessionStorageHandler: (url: string, token: string, contentName: string) => Handle;
|
|
3
3
|
export default sessionStorageHandler;
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {} from '@sveltejs/kit';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
2
|
+
import { Redis } from '@upstash/redis';
|
|
3
|
+
export const sessionStorageHandler = (url, token, contentName) => {
|
|
4
|
+
const redis = new Redis({
|
|
5
|
+
url: url,
|
|
6
|
+
token: token
|
|
7
|
+
});
|
|
6
8
|
return async ({ event, resolve }) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
if (event?.locals?.user) {
|
|
10
|
+
const uniqueKey = `${event.locals.user.id}_${contentName}`;
|
|
11
|
+
const itemContent = await redis.get(contentName);
|
|
12
|
+
if (itemContent != ''
|
|
13
|
+
&& (Array.isArray(itemContent) != [] && itemContent.length > 0)
|
|
14
|
+
&& itemContent != null) {
|
|
15
|
+
event.locals[contentName] = itemContent;
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
|
-
// }
|
|
17
18
|
const result = await resolve(event);
|
|
18
|
-
if (event
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
if (event?.locals?.user) {
|
|
20
|
+
if (event.locals[contentName]) {
|
|
21
|
+
redis.set(contentName, JSON.stringify(event.locals[contentName]));
|
|
22
|
+
}
|
|
22
23
|
}
|
|
23
24
|
return result;
|
|
24
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@functionalcms/svelte-components",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"watch": {
|
|
6
6
|
"build": {
|
|
@@ -57,18 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@tailwindcss/vite": "^4.2.2",
|
|
60
|
+
"@upstash/redis": "^1.37.0",
|
|
60
61
|
"flowbite": "^4.0.1",
|
|
61
62
|
"flowbite-svelte": "^1.31.0",
|
|
62
63
|
"flowbite-svelte-icons": "^3.1.0",
|
|
63
|
-
"ioredis": "^5.10.0",
|
|
64
|
-
"lz-string": "^1.5.0",
|
|
65
64
|
"oauth4webapi": "^3.8.5",
|
|
66
65
|
"tailwindcss": "^4.2.2"
|
|
67
66
|
},
|
|
68
|
-
"peerDependencies": {
|
|
69
|
-
"@sveltejs/kit": "^2.55.0",
|
|
70
|
-
"svelte": "^5.53.13"
|
|
71
|
-
},
|
|
72
67
|
"type": "module",
|
|
73
68
|
"main": "./dist/index.js",
|
|
74
69
|
"svelte": "./dist/index.js",
|