@sharadox/sharadox-web-library 0.16.0 → 0.17.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/README.md +4 -0
- package/distribution/component/consent/index.d.ts +4 -0
- package/distribution/component/consent/index.d.ts.map +1 -0
- package/distribution/component/consent/index.js +29 -0
- package/distribution/component/consent/index.js.map +1 -0
- package/distribution/component/consent/index.module.css +1 -0
- package/distribution/component/consent/index.module.scss +45 -0
- package/distribution/component/consent/preferences-link/index.d.ts +4 -0
- package/distribution/component/consent/preferences-link/index.d.ts.map +1 -0
- package/distribution/component/consent/preferences-link/index.js +8 -0
- package/distribution/component/consent/preferences-link/index.js.map +1 -0
- package/distribution/component/consent/preferences-link/type.d.ts +4 -0
- package/distribution/component/consent/preferences-link/type.d.ts.map +1 -0
- package/distribution/component/consent/preferences-link/type.js +2 -0
- package/distribution/component/consent/preferences-link/type.js.map +1 -0
- package/distribution/component/consent/type.d.ts +5 -0
- package/distribution/component/consent/type.d.ts.map +1 -0
- package/distribution/component/consent/type.js +2 -0
- package/distribution/component/consent/type.js.map +1 -0
- package/distribution/component/footer/index.d.ts +5 -1
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +11 -2
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +17 -0
- package/distribution/content/consent/index.d.ts +76 -0
- package/distribution/content/consent/index.d.ts.map +1 -0
- package/distribution/content/consent/index.js +37 -0
- package/distribution/content/consent/index.js.map +1 -0
- package/distribution/content/privacy/index.d.ts.map +1 -1
- package/distribution/content/privacy/index.js +1 -0
- package/distribution/content/privacy/index.js.map +1 -1
- package/llms.txt +1 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -9,6 +9,8 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
9
9
|
| Languages, translations, language links | `@sharadox/internationalization-web-library` |
|
|
10
10
|
| Metadata, structured data, share images | `@sharadox/metadata-web-library` |
|
|
11
11
|
| Styles (Black, White, System) | `@sharadox/style-web-library` |
|
|
12
|
+
| Cookie panel | `@sharadox/consent-web-library` |
|
|
13
|
+
| Complaints book, consumer dispute notice | `@sharadox/legal-web-library` |
|
|
12
14
|
| Reveal, scroll-lit words, counters, marquee | `@sharadox/animation-web-library` |
|
|
13
15
|
| Active section | `@sharadox/scroll-web-library` |
|
|
14
16
|
| Spotlight, tilt | `@sharadox/pointer-web-library` |
|
|
@@ -26,12 +28,14 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
26
28
|
- `section`: `SECTION`, each home-page section's id and name, used by navigation, footer, section indicator and headings.
|
|
27
29
|
- `action`: shared calls to action (`ACTION.startProject`).
|
|
28
30
|
- `language`: `LANGUAGE`, the switches' label and each language's own name.
|
|
31
|
+
- `consent`: the cookie panel's one category (required: language and style), so it only tells, with Got It and Details.
|
|
29
32
|
- `contact`, `services`, `site`, `globe`, and so on.
|
|
30
33
|
- **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
|
|
31
34
|
- **`component/`:** the page's branded parts:
|
|
32
35
|
- grid frame, `Cross` marks, navigation and footer
|
|
33
36
|
- hero and its guides, service index, statement, the five service cells and their live visuals
|
|
34
37
|
- the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
|
|
38
|
+
- `Consent`, the Sharadox cookie panel (reopened by the footer's Cookie Preferences), and the footer's legal parts: Portugal's complaints book and the Algarve's consumer dispute notice (CIMAAL)
|
|
35
39
|
- the Sharadox wrapper around the shared globe, structured data, share image, `llmsText()` for `/llms.txt`
|
|
36
40
|
- `PrivacyPage`: the privacy policy's body (`content/privacy`, written by `@sharadox/privacy-web-library`), at `/<locale>/privacy`, linked from the footer
|
|
37
41
|
- `License`: the license page's body, rendered from the license's Markdown
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ConsentProperties } from "@sharadox/sharadox-web-library/component/consent/type";
|
|
2
|
+
/** The Sharadox cookie panel: the shared consent panel with Sharadox copy, grid marks and a small turning cookie. */
|
|
3
|
+
export declare function Consent({ locale }: ConsentProperties): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/consent/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,qHAAqH;AACrH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAwCpD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { ConsentPanel } from "@sharadox/consent-web-library/consent-panel";
|
|
4
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
5
|
+
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
6
|
+
import { CONSENT, CONSENT_CONFIGURATION } from "@sharadox/sharadox-web-library/content/consent";
|
|
7
|
+
import styles from "./index.module.css";
|
|
8
|
+
/** The Sharadox cookie panel: the shared consent panel with Sharadox copy, grid marks and a small turning cookie. */
|
|
9
|
+
export function Consent({ locale }) {
|
|
10
|
+
const copy = {
|
|
11
|
+
title: translate(CONSENT.title, locale),
|
|
12
|
+
text: translate(CONSENT.text, locale),
|
|
13
|
+
acceptAll: translate(CONSENT.acceptAll, locale),
|
|
14
|
+
acknowledge: translate(CONSENT.acknowledge, locale),
|
|
15
|
+
details: translate(CONSENT.details, locale),
|
|
16
|
+
deny: translate(CONSENT.deny, locale),
|
|
17
|
+
customize: translate(CONSENT.customize, locale),
|
|
18
|
+
save: translate(CONSENT.save, locale),
|
|
19
|
+
back: translate(CONSENT.back, locale),
|
|
20
|
+
close: translate(CONSENT.close, locale),
|
|
21
|
+
alwaysOn: translate(CONSENT.alwaysOn, locale),
|
|
22
|
+
categories: Object.fromEntries(Object.entries(CONSENT.categories).map(([key, category]) => [
|
|
23
|
+
key,
|
|
24
|
+
{ title: translate(category.title, locale), text: translate(category.text, locale) },
|
|
25
|
+
])),
|
|
26
|
+
};
|
|
27
|
+
return (_jsx(ConsentPanel, { configuration: CONSENT_CONFIGURATION, copy: copy, className: styles.consent, icon: _jsxs("span", { className: styles.cookie, "aria-hidden": true, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), decoration: _jsxs(_Fragment, { children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" })] }) }));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/consent/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,qHAAqH;AACrH,MAAM,UAAU,OAAO,CAAC,EAAE,MAAM,EAAqB;IACnD,MAAM,IAAI,GAAG;QACX,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;QACvC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;QACrC,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;QAC/C,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC;QACnD,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3C,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;QACrC,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;QAC/C,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;QACrC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;QACrC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;QACvC,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC7C,UAAU,EAAE,MAAM,CAAC,WAAW,CAC5B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC;YAC1D,GAAG;YACH,EAAE,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;SACrF,CAAC,CACH;KACF,CAAC;IACF,OAAO,CACL,KAAC,YAAY,IACX,aAAa,EAAE,qBAAqB,EACpC,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAM,CAAC,OAAO,EACzB,IAAI,EACF,gBAAM,SAAS,EAAE,MAAM,CAAC,MAAM,kCAC5B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EAET,UAAU,EACR,8BACE,KAAC,KAAK,IAAC,MAAM,EAAC,UAAU,GAAG,EAC3B,KAAC,KAAK,IAAC,MAAM,EAAC,WAAW,GAAG,IAC3B,GAEL,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.consent{--consent-background: var(--background);--consent-foreground: var(--foreground);--consent-muted: var(--foreground-2);--consent-line: var(--line-2);--consent-radius: 4px;--consent-font: var(--sans-serif);left:16px}.cookie{position:relative;width:18px;height:18px;border-radius:50%;border:1.4px solid var(--foreground);animation:spin 8s linear infinite}.cookie i{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--foreground)}.cookie i:nth-child(1){left:4px;top:4px}.cookie i:nth-child(2){right:3px;top:8px}.cookie i:nth-child(3){left:7px;bottom:3px}@keyframes spin{to{transform:rotate(360deg)}}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
/* The shared panel, in the Sharadox style: its colors, the grid's sharp corners, bottom-left of the screen. */
|
|
4
|
+
.consent {
|
|
5
|
+
--consent-background: var(--background);
|
|
6
|
+
--consent-foreground: var(--foreground);
|
|
7
|
+
--consent-muted: var(--foreground-2);
|
|
8
|
+
--consent-line: var(--line-2);
|
|
9
|
+
--consent-radius: 4px;
|
|
10
|
+
--consent-font: var(--sans-serif);
|
|
11
|
+
left: 16px;
|
|
12
|
+
}
|
|
13
|
+
/* A tiny animated cookie: three crumbs orbiting a ring. */
|
|
14
|
+
.cookie {
|
|
15
|
+
position: relative;
|
|
16
|
+
width: 18px;
|
|
17
|
+
height: 18px;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
border: 1.4px solid var(--foreground);
|
|
20
|
+
animation: spin 8s linear infinite;
|
|
21
|
+
i {
|
|
22
|
+
position: absolute;
|
|
23
|
+
width: 3px;
|
|
24
|
+
height: 3px;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
background: var(--foreground);
|
|
27
|
+
}
|
|
28
|
+
i:nth-child(1) {
|
|
29
|
+
left: 4px;
|
|
30
|
+
top: 4px;
|
|
31
|
+
}
|
|
32
|
+
i:nth-child(2) {
|
|
33
|
+
right: 3px;
|
|
34
|
+
top: 8px;
|
|
35
|
+
}
|
|
36
|
+
i:nth-child(3) {
|
|
37
|
+
left: 7px;
|
|
38
|
+
bottom: 3px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
@keyframes spin {
|
|
42
|
+
to {
|
|
43
|
+
transform: rotate(360deg);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PreferencesLinkProperties } from "@sharadox/sharadox-web-library/component/consent/preferences-link/type";
|
|
2
|
+
/** Reopens the cookie panel so the visitor can change their answer. */
|
|
3
|
+
export declare function PreferencesLink({ label }: PreferencesLinkProperties): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/consent/preferences-link/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wEAAwE,CAAC;AAExH,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,yBAAyB,+BAMnE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { openConsent } from "@sharadox/consent-web-library/consent";
|
|
4
|
+
/** Reopens the cookie panel so the visitor can change their answer. */
|
|
5
|
+
export function PreferencesLink({ label }) {
|
|
6
|
+
return (_jsx("button", { type: "button", onClick: openConsent, "data-preferences-link": true, children: label }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/consent/preferences-link/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAGpE,uEAAuE;AACvE,MAAM,UAAU,eAAe,CAAC,EAAE,KAAK,EAA6B;IAClE,OAAO,CACL,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,WAAW,2CACvC,KAAK,GACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/consent/preferences-link/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/consent/preferences-link/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/consent/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/consent/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Columns of links in the grid (the studio's with the legal ones: license, privacy, cookie preferences and Portugal's
|
|
4
|
+
* complaints book), the style and language switches, the big gradient wordmark, then the legal line and the consumer
|
|
5
|
+
* dispute notice.
|
|
6
|
+
*/
|
|
3
7
|
export declare function Footer({ locale, path }: FooterProperties): import("react").JSX.Element;
|
|
4
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BAiE7D"}
|
|
@@ -6,6 +6,11 @@ import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
|
6
6
|
import { LocaleLink } from "@sharadox/internationalization-web-library/locale-link";
|
|
7
7
|
import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
|
|
8
8
|
import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
|
|
9
|
+
import { PreferencesLink } from "@sharadox/sharadox-web-library/component/consent/preferences-link";
|
|
10
|
+
import { CONSENT } from "@sharadox/sharadox-web-library/content/consent";
|
|
11
|
+
import { ComplaintsBookLink } from "@sharadox/legal-web-library/complaints-book-link";
|
|
12
|
+
import { DisputeNotice } from "@sharadox/legal-web-library/dispute-notice";
|
|
13
|
+
import { DISPUTE_RESOLUTION_CENTERS } from "@sharadox/legal-web-library/dispute-resolution";
|
|
9
14
|
import { FOOTER } from "@sharadox/sharadox-web-library/content/footer";
|
|
10
15
|
import { PRIVACY_PAGE } from "@sharadox/sharadox-web-library/content/privacy";
|
|
11
16
|
import { LICENSE } from "@sharadox/sharadox-web-library/content/license";
|
|
@@ -18,9 +23,13 @@ import { CopyrightYears } from "@sharadox/time-web-library/copyright-years";
|
|
|
18
23
|
import { FOUNDED, SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
19
24
|
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
20
25
|
import styles from "./index.module.css";
|
|
21
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Columns of links in the grid (the studio's with the legal ones: license, privacy, cookie preferences and Portugal's
|
|
28
|
+
* complaints book), the style and language switches, the big gradient wordmark, then the legal line and the consumer
|
|
29
|
+
* dispute notice.
|
|
30
|
+
*/
|
|
22
31
|
export function Footer({ locale, path = "" }) {
|
|
23
32
|
const home = path ? `/${locale}` : "";
|
|
24
|
-
return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `${home}#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), _jsx("a", { href: `${home}#${SECTION.capabilities.id}`, children: translate(SECTION.capabilities, locale) }), _jsx("a", { href: `${home}#${SECTION.process.id}`, children: translate(SECTION.process, locale) }), _jsx("a", { href: `${home}#${SECTION.contact.id}`, children: translate(SECTION.contact, locale) }), _jsx("a", { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx("a", { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsxs("a", { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), " ", _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 })] })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(LANGUAGE.label, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: LANGUAGE.names[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsxs("
|
|
33
|
+
return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `${home}#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), _jsx("a", { href: `${home}#${SECTION.capabilities.id}`, children: translate(SECTION.capabilities, locale) }), _jsx("a", { href: `${home}#${SECTION.process.id}`, children: translate(SECTION.process, locale) }), _jsx("a", { href: `${home}#${SECTION.contact.id}`, children: translate(SECTION.contact, locale) }), _jsx("a", { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx("a", { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx(ComplaintsBookLink, { locale: locale }), _jsxs("a", { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), " ", _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 })] })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(LANGUAGE.label, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: LANGUAGE.names[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsxs("div", { className: styles.legal, children: [_jsxs("p", { className: "monospace", children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) })] })] }));
|
|
25
34
|
}
|
|
26
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CA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MAAM,EAAE,MAAM,GAAI,GAC3E,IACA,IACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.footer{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a,.columns [data-preferences-link]{width:fit-content;transition:color .2s}.columns [data-preferences-link]{padding:0;border:0;background:none;font-size:inherit;color:inherit;text-align:left}.columns a:hover,.columns [data-preferences-link]:hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>*:nth-child(2n)::after{display:none}.columns>*:nth-child(-n+2){border-bottom:1px dashed var(--line-2)}}@media(max-width: 520px){.columns{grid-template-columns:1fr}.columns>*::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.brand{gap:14px !important}.brand>a:first-child{color:var(--foreground)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings h2:not(:first-child){margin-top:18px}.mark{padding:40px 0 10px;font-size:clamp(4rem,17vw,15rem);font-weight:600;letter-spacing:-0.075em;line-height:.8;text-align:center;background:linear-gradient(180deg, var(--foreground) 0%, transparent 85%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0);user-select:none;overflow:hidden}.legal{padding:18px var(--padding) 28px;font-size:12px;color:var(--foreground-3);text-align:center}.top{display:inline-flex;align-items:center;gap:6px}
|
|
1
|
+
.footer{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a,.columns [data-preferences-link]{width:fit-content;transition:color .2s}.columns [data-preferences-link]{padding:0;border:0;background:none;font-size:inherit;color:inherit;text-align:left}.columns a:hover,.columns [data-preferences-link]:hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>*:nth-child(2n)::after{display:none}.columns>*:nth-child(-n+2){border-bottom:1px dashed var(--line-2)}}@media(max-width: 520px){.columns{grid-template-columns:1fr}.columns>*::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.brand{gap:14px !important}.brand>a:first-child{color:var(--foreground)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings h2:not(:first-child){margin-top:18px}.mark{padding:40px 0 10px;font-size:clamp(4rem,17vw,15rem);font-weight:600;letter-spacing:-0.075em;line-height:.8;text-align:center;background:linear-gradient(180deg, var(--foreground) 0%, transparent 85%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0);user-select:none;overflow:hidden}.legal{display:grid;justify-items:center;gap:10px;padding:18px var(--padding) 28px;font-size:12px;color:var(--foreground-3);text-align:center}.disputes{max-width:76ch;font-size:11.5px;line-height:1.6;text-wrap:balance}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}.top{display:inline-flex;align-items:center;gap:6px}
|
|
@@ -118,11 +118,28 @@
|
|
|
118
118
|
overflow: hidden;
|
|
119
119
|
}
|
|
120
120
|
.legal {
|
|
121
|
+
display: grid;
|
|
122
|
+
justify-items: center;
|
|
123
|
+
gap: 10px;
|
|
121
124
|
padding: 18px var(--padding) 28px;
|
|
122
125
|
font-size: 12px;
|
|
123
126
|
color: var(--foreground-3);
|
|
124
127
|
text-align: center;
|
|
125
128
|
}
|
|
129
|
+
/* The consumer dispute notice: small print under the legal line, its links underlined only on hover. */
|
|
130
|
+
.disputes {
|
|
131
|
+
max-width: 76ch;
|
|
132
|
+
font-size: 11.5px;
|
|
133
|
+
line-height: 1.6;
|
|
134
|
+
text-wrap: balance;
|
|
135
|
+
a {
|
|
136
|
+
color: var(--foreground-2);
|
|
137
|
+
transition: color 0.2s;
|
|
138
|
+
}
|
|
139
|
+
a:hover {
|
|
140
|
+
color: var(--foreground);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
126
143
|
.top {
|
|
127
144
|
display: inline-flex;
|
|
128
145
|
align-items: center;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the site stores: only what it needs to work, so the panel just tells (one button, and the details). Raise
|
|
3
|
+
* `version` whenever the categories change, so every visitor is told again.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CONSENT_CONFIGURATION: {
|
|
6
|
+
readonly storageKey: "consent";
|
|
7
|
+
readonly version: 1;
|
|
8
|
+
readonly categories: readonly [{
|
|
9
|
+
readonly key: "required";
|
|
10
|
+
readonly required: true;
|
|
11
|
+
}];
|
|
12
|
+
};
|
|
13
|
+
/** Cookie panel copy. */
|
|
14
|
+
export declare const CONSENT: {
|
|
15
|
+
readonly title: {
|
|
16
|
+
readonly en: "Cookies";
|
|
17
|
+
readonly pt: "Cookies";
|
|
18
|
+
};
|
|
19
|
+
readonly text: {
|
|
20
|
+
readonly en: "We keep only what the site needs to work: a cookie that remembers your language, and the style you chose, stored in your browser. Nothing tracks you.";
|
|
21
|
+
readonly pt: "Guardamos apenas o que o site precisa para funcionar: um cookie que lembra o seu idioma, e o estilo que escolheu, guardado no seu browser. Nada o segue.";
|
|
22
|
+
};
|
|
23
|
+
readonly acceptAll: {
|
|
24
|
+
readonly en: "Accept All";
|
|
25
|
+
readonly pt: "Aceitar Todos";
|
|
26
|
+
};
|
|
27
|
+
readonly acknowledge: {
|
|
28
|
+
readonly en: "Got It";
|
|
29
|
+
readonly pt: "Entendido";
|
|
30
|
+
};
|
|
31
|
+
readonly details: {
|
|
32
|
+
readonly en: "Details";
|
|
33
|
+
readonly pt: "Detalhes";
|
|
34
|
+
};
|
|
35
|
+
readonly deny: {
|
|
36
|
+
readonly en: "Deny";
|
|
37
|
+
readonly pt: "Recusar";
|
|
38
|
+
};
|
|
39
|
+
readonly customize: {
|
|
40
|
+
readonly en: "Customize";
|
|
41
|
+
readonly pt: "Personalizar";
|
|
42
|
+
};
|
|
43
|
+
readonly save: {
|
|
44
|
+
readonly en: "Save Choices";
|
|
45
|
+
readonly pt: "Guardar Escolhas";
|
|
46
|
+
};
|
|
47
|
+
readonly back: {
|
|
48
|
+
readonly en: "Back";
|
|
49
|
+
readonly pt: "Voltar";
|
|
50
|
+
};
|
|
51
|
+
readonly close: {
|
|
52
|
+
readonly en: "Close";
|
|
53
|
+
readonly pt: "Fechar";
|
|
54
|
+
};
|
|
55
|
+
readonly alwaysOn: {
|
|
56
|
+
readonly en: "Always on";
|
|
57
|
+
readonly pt: "Sempre ativos";
|
|
58
|
+
};
|
|
59
|
+
readonly preferences: {
|
|
60
|
+
readonly en: "Cookie Preferences";
|
|
61
|
+
readonly pt: "Preferências de Cookies";
|
|
62
|
+
};
|
|
63
|
+
readonly categories: {
|
|
64
|
+
readonly required: {
|
|
65
|
+
readonly title: {
|
|
66
|
+
readonly en: "Required";
|
|
67
|
+
readonly pt: "Necessários";
|
|
68
|
+
};
|
|
69
|
+
readonly text: {
|
|
70
|
+
readonly en: "Your language (a cookie) and style (in your browser's storage), and this answer.";
|
|
71
|
+
readonly pt: "O seu idioma (um cookie) e estilo (no armazenamento do browser), e esta resposta.";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/consent/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAIO,CAAC;AAE1C,yBAAyB;AACzB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the site stores: only what it needs to work, so the panel just tells (one button, and the details). Raise
|
|
3
|
+
* `version` whenever the categories change, so every visitor is told again.
|
|
4
|
+
*/
|
|
5
|
+
export const CONSENT_CONFIGURATION = {
|
|
6
|
+
storageKey: "consent",
|
|
7
|
+
version: 1,
|
|
8
|
+
categories: [{ key: "required", required: true }],
|
|
9
|
+
};
|
|
10
|
+
/** Cookie panel copy. */
|
|
11
|
+
export const CONSENT = {
|
|
12
|
+
title: { en: "Cookies", pt: "Cookies" },
|
|
13
|
+
text: {
|
|
14
|
+
en: "We keep only what the site needs to work: a cookie that remembers your language, and the style you chose, stored in your browser. Nothing tracks you.",
|
|
15
|
+
pt: "Guardamos apenas o que o site precisa para funcionar: um cookie que lembra o seu idioma, e o estilo que escolheu, guardado no seu browser. Nada o segue.",
|
|
16
|
+
},
|
|
17
|
+
acceptAll: { en: "Accept All", pt: "Aceitar Todos" },
|
|
18
|
+
acknowledge: { en: "Got It", pt: "Entendido" },
|
|
19
|
+
details: { en: "Details", pt: "Detalhes" },
|
|
20
|
+
deny: { en: "Deny", pt: "Recusar" },
|
|
21
|
+
customize: { en: "Customize", pt: "Personalizar" },
|
|
22
|
+
save: { en: "Save Choices", pt: "Guardar Escolhas" },
|
|
23
|
+
back: { en: "Back", pt: "Voltar" },
|
|
24
|
+
close: { en: "Close", pt: "Fechar" },
|
|
25
|
+
alwaysOn: { en: "Always on", pt: "Sempre ativos" },
|
|
26
|
+
preferences: { en: "Cookie Preferences", pt: "Preferências de Cookies" },
|
|
27
|
+
categories: {
|
|
28
|
+
required: {
|
|
29
|
+
title: { en: "Required", pt: "Necessários" },
|
|
30
|
+
text: {
|
|
31
|
+
en: "Your language (a cookie) and style (in your browser's storage), and this answer.",
|
|
32
|
+
pt: "O seu idioma (um cookie) e estilo (no armazenamento do browser), e esta resposta.",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/consent/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CACV,CAAC;AAE1C,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE;IACvC,IAAI,EAAE;QACJ,EAAE,EAAE,uJAAuJ;QAC3J,EAAE,EAAE,0JAA0J;KAC/J;IACD,SAAS,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,eAAe,EAAE;IACpD,WAAW,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,WAAW,EAAE;IAC9C,OAAO,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE;IAC1C,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE;IACnC,SAAS,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,cAAc,EAAE;IAClD,IAAI,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,kBAAkB,EAAE;IACpD,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE;IAClC,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE;IACpC,QAAQ,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,eAAe,EAAE;IAClD,WAAW,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,yBAAyB,EAAE;IACxE,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,KAAK,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,aAAa,EAAE;YAC5C,IAAI,EAAE;gBACJ,EAAE,EAAE,kFAAkF;gBACtF,EAAE,EAAE,mFAAmF;aACxF;SACF;KACF;CACO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/privacy/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AAGxF,iFAAiF;AACjF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAQf,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/privacy/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAA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AAE,EAAE,EAAE,OAAO,EAAE;SAC7C;KACF;CACF,CAAC"}
|
package/llms.txt
CHANGED
|
@@ -18,3 +18,4 @@
|
|
|
18
18
|
- utility/llms-text llmsText() → sharadox.com's llms.txt (shared shape from @sharadox/metadata-web-library). The cookie panel was removed in 0.14.0: the site stores only what it needs (language, style), which needs no consent.
|
|
19
19
|
- content/privacy PRIVACY (privacy-web-library options) and PRIVACY_PAGE { path "/privacy", title, eyebrow, description }; component/privacy-page PrivacyPage({ locale }); the footer links it
|
|
20
20
|
- 0.16.0: chevron icons from @sharadox/icon-web-library replace every text arrow (button, footer Back to top, 404)
|
|
21
|
+
- 0.17.0: component/consent Consent back (consent-web-library 0.3, required only: Got It and Details); footer: Cookie Preferences, Livro de Reclamações link and the CIMAAL consumer dispute notice (legal-web-library); privacy policy mentions the consent record
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|
|
@@ -55,10 +55,12 @@
|
|
|
55
55
|
"homepage": "https://github.com/Sharadox/sharadox-web-library#readme",
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@sharadox/animation-web-library": "^0.2.2",
|
|
58
|
+
"@sharadox/consent-web-library": "^0.3.0",
|
|
58
59
|
"@sharadox/form-web-library": "^0.2.2",
|
|
59
60
|
"@sharadox/globe-web-library": "^0.2.1",
|
|
60
61
|
"@sharadox/icon-web-library": "^0.1.0",
|
|
61
62
|
"@sharadox/internationalization-web-library": "^0.2.3",
|
|
63
|
+
"@sharadox/legal-web-library": "^0.1.0",
|
|
62
64
|
"@sharadox/metadata-web-library": "^0.2.0",
|
|
63
65
|
"@sharadox/pointer-web-library": "^0.1.0",
|
|
64
66
|
"@sharadox/privacy-web-library": "^0.1.1",
|