@snokam/page-content 6.9.6 → 6.9.7

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.9.7](https://github.com/snokam/monorepo/compare/@snokam/page-content@6.9.6...@snokam/page-content@6.9.7) (2026-11-06)
7
+
8
+ **Note:** Version bump only for package @snokam/page-content
9
+
6
10
  ## [6.9.6](https://github.com/snokam/monorepo/compare/@snokam/page-content@6.9.5...@snokam/page-content@6.9.6) (2026-11-06)
7
11
 
8
12
  ### Bug Fixes
@@ -1,7 +1,3 @@
1
- export declare const CONTENT_EMPTY_KEYS: readonly ["contentEmptyTitle", "contentEmptyBody", "contentEmptyStudioLink"];
2
- interface Props {
3
- signedIn: boolean;
4
- }
5
- export declare function ContentEmptyState({ signedIn }: Props): import("react").JSX.Element;
6
- export {};
1
+ export declare const CONTENT_EMPTY_KEYS: readonly ["contentEmptyTitle", "contentEmptyBody"];
2
+ export declare function ContentEmptyState(): import("react").JSX.Element;
7
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContentEmptyState/index.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,8EAIrB,CAAC;AAEX,UAAU,KAAK;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,+BAepD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContentEmptyState/index.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,oDAGrB,CAAC;AAEX,wBAAgB,iBAAiB,gCAShC"}
@@ -1,17 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Button } from "@snokam/ui";
4
- import { useOptionalConfig } from "@snokam/tenant";
5
3
  import { usePageContent } from "../../providers/PageContentProvider";
6
4
  import { Body, Title, Wrapper } from "./styles";
7
5
  export const CONTENT_EMPTY_KEYS = [
8
6
  "contentEmptyTitle",
9
7
  "contentEmptyBody",
10
- "contentEmptyStudioLink",
11
8
  ];
12
- export function ContentEmptyState({ signedIn }) {
9
+ export function ContentEmptyState() {
13
10
  const { getText } = usePageContent();
14
- const studioUrl = useOptionalConfig()?.NEXT_PUBLIC_SANITY_ADMIN_BASE_URL;
15
- return (_jsxs(Wrapper, { children: [_jsx(Title, { children: getText("contentEmptyTitle") }), _jsx(Body, { children: getText("contentEmptyBody") }), signedIn && studioUrl && (_jsx(Button, { variant: "contained", href: studioUrl, children: getText("contentEmptyStudioLink") }))] }));
11
+ return (_jsxs(Wrapper, { children: [_jsx(Title, { children: getText("contentEmptyTitle") }), _jsx(Body, { children: getText("contentEmptyBody") })] }));
16
12
  }
17
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ContentEmptyState/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,mBAAmB;IACnB,kBAAkB;IAClB,wBAAwB;CAChB,CAAC;AAMX,MAAM,UAAU,iBAAiB,CAAC,EAAE,QAAQ,EAAS;IACnD,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,SAAS,GAAG,iBAAiB,EAAE,EAAE,iCAAiC,CAAC;IAEzE,OAAO,CACL,MAAC,OAAO,eACN,KAAC,KAAK,cAAE,OAAO,CAAC,mBAAmB,CAAC,GAAS,EAC7C,KAAC,IAAI,cAAE,OAAO,CAAC,kBAAkB,CAAC,GAAQ,EACzC,QAAQ,IAAI,SAAS,IAAI,CACxB,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,SAAS,YACxC,OAAO,CAAC,wBAAwB,CAAC,GAC3B,CACV,IACO,CACX,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ContentEmptyState/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,mBAAmB;IACnB,kBAAkB;CACV,CAAC;AAEX,MAAM,UAAU,iBAAiB;IAC/B,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;IAErC,OAAO,CACL,MAAC,OAAO,eACN,KAAC,KAAK,cAAE,OAAO,CAAC,mBAAmB,CAAC,GAAS,EAC7C,KAAC,IAAI,cAAE,OAAO,CAAC,kBAAkB,CAAC,GAAQ,IAClC,CACX,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@snokam/page-content",
3
3
  "description": "Snøkam page content: apps, pages and parts read from the content api",
4
- "version": "6.9.6",
4
+ "version": "6.9.7",
5
5
  "main": "src/index.js",
6
6
  "files": [
7
7
  "dist",