@sharadox/sharadox-web-library 0.52.0 → 0.53.0-development.87
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 +5 -0
- package/README.md +2 -3
- package/distribution/utility/{sharadox-email → branded-email}/index.d.ts +5 -5
- package/distribution/utility/branded-email/index.d.ts.map +1 -0
- package/distribution/utility/{sharadox-email → branded-email}/index.js +5 -5
- package/distribution/utility/branded-email/index.js.map +1 -0
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/distribution/content/separator/index.d.ts +0 -4
- package/distribution/content/separator/index.d.ts.map +0 -1
- package/distribution/content/separator/index.js +0 -4
- package/distribution/content/separator/index.js.map +0 -1
- package/distribution/utility/separate/index.d.ts +0 -9
- package/distribution/utility/separate/index.d.ts.map +0 -1
- package/distribution/utility/separate/index.js +0 -9
- package/distribution/utility/separate/index.js.map +0 -1
- package/distribution/utility/sharadox-email/index.d.ts.map +0 -1
- package/distribution/utility/sharadox-email/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of `@sharadox/sharadox-web-library`, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.53.0
|
|
6
|
+
|
|
7
|
+
- `utility/sharadox-email` is `utility/branded-email` (`brandedEmail`, `brandedEmailImages`): the library's name no longer repeats inside it.
|
|
8
|
+
- Removed the deprecated `utility/separate` and `content/separator`: use `separated` and `SEPARATOR` from `@sharadox/web-library`.
|
|
9
|
+
|
|
5
10
|
## 0.52.0
|
|
6
11
|
|
|
7
12
|
Shared helpers instead of local copies: web-library separated (utility/separate is now a re-export, removed in 0.53) and twoDigits, animation-web-library EASE, scroll-web-library useScrolledPast (navigation), consent-web-library consentCopy and consentLabel (CONSENT holds only title, text and categories), form-web-library contactProblems and choice requests (contact-need wraps requestChoices), email-web-library subpaths and inlineImage
|
package/README.md
CHANGED
|
@@ -17,14 +17,13 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
17
17
|
| Spotlight, tilt | `@sharadox/pointer-web-library` |
|
|
18
18
|
| Contact form action | `@sharadox/form-web-library` |
|
|
19
19
|
| The 3D globe | `@sharadox/globe-web-library` |
|
|
20
|
-
| Utilities (`
|
|
20
|
+
| Utilities (`separated`, `classNames`…) | `@sharadox/web-library` |
|
|
21
21
|
|
|
22
22
|
## What is here
|
|
23
23
|
|
|
24
24
|
- **`content/`:** all copy and settings, one topic per folder.
|
|
25
25
|
- `locale`: `LOCALES`, built with `defineLocales`.
|
|
26
26
|
- `style`: `STYLES`, with Black and White in the color group; colors live only here.
|
|
27
|
-
- `separator`: the Sharadox separator ·.
|
|
28
27
|
- `slogan`: `SLOGAN` (one sentence, always with its full stop) and `SLOGAN_LINES` (the hero's lines, the single source of its words).
|
|
29
28
|
- `section`: `SECTION`, each home-page section's id and name, used by navigation, footer, section indicator and headings.
|
|
30
29
|
- `action`: shared calls to action (`ACTION.startProject`).
|
|
@@ -44,7 +43,7 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
44
43
|
- **Service card buttons:** each card's button scrolls to the contact form and ticks that card's choice (`requestContactNeeds`, the card's `key` in `content/services`), which glows for a moment. The form's choices come from the same cards, grouped like the services, then Something Else ("I don't know what I need", "What I need is not listed", which the invitation after the services ticks).
|
|
45
44
|
- **Contact form checks:** it needs a name, an email or a phone (or both, each valid), at least one choice and a message of at least 20 characters (`utility/contact-problem`, the same rules the server applies). It says what's missing under each field before anything is sent.
|
|
46
45
|
- **`action/send-contact`:** `sendContact(form, ip)`, the shared contact action set up for Sharadox ("Contact · Name (Company)" subjects, sent to contact@sharadox.com as "Sharadox Web Application"), with the form's rules, 5 messages an hour per address and 50 emails a day from everyone together, so a flood can't run up the email bill.
|
|
47
|
-
- **`utility/`:** `
|
|
46
|
+
- **`utility/`:** `brandedEmail()` and `brandedEmailImages()` (any email in Sharadox's design), `contactProblems()` (what the contact form still lacks), `requestContactNeeds()` and the share card's horizon dots.
|
|
48
47
|
- **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`, `skip-entrance()`) used by every component's styles. `skip-entrance` marks a time-based entrance animation so it shows its final state at once after a language switch.
|
|
49
48
|
- **`style/object`:** the 3D objects' helpers (`centered()`, `face()`, `loop()`) and their one palette, so every object reads alike in every style: opaque surfaces (`surface()`, `$surface`, `$raised`) with one hairline `$edge`, and details by role (`$hint`, `$faint`, `$detail`, `$strong`, `$glow`); the point of the moment is the full foreground color.
|
|
50
49
|
- **Centered by default:** sharadox-web-application's global styles start every box centered (text, free space on both axes, items across the line). Components state any other alignment (left text, items starting on the left, stretched columns), so they look the same whether or not the default is there.
|
|
@@ -2,14 +2,14 @@ import type { EmailContent } from "@sharadox/email-web-library/email-layout/type
|
|
|
2
2
|
import type { InlineImage } from "@sharadox/email-web-library/email-message/type";
|
|
3
3
|
/**
|
|
4
4
|
* Any email Sharadox sends, in its own design (`SHARADOX_EMAIL`): give what it says, send it with
|
|
5
|
-
* `
|
|
5
|
+
* `brandedEmailImages()` so its mark shows without loading anything.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* await sender.send({ from, to, subject, text,
|
|
9
|
-
* html:
|
|
10
|
-
* inlineImages:
|
|
9
|
+
* html: brandedEmail({ language: "en", preview, eyebrow: "Invoice", heading: "Your invoice is ready" }),
|
|
10
|
+
* inlineImages: brandedEmailImages() });
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const brandedEmail: (content: EmailContent) => string;
|
|
13
13
|
/** The images a Sharadox email carries: its mark, as the inline image "logo". */
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const brandedEmailImages: () => InlineImage[];
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/branded-email/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAKlF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,YAAY,WAA+C,CAAC;AAElG,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,QAAO,WAAW,EAAuC,CAAC"}
|
|
@@ -4,14 +4,14 @@ import { EMAIL_LOGO } from "@sharadox/sharadox-web-library/content/email-logo";
|
|
|
4
4
|
import { SHARADOX_EMAIL } from "@sharadox/sharadox-web-library/content/email-design";
|
|
5
5
|
/**
|
|
6
6
|
* Any email Sharadox sends, in its own design (`SHARADOX_EMAIL`): give what it says, send it with
|
|
7
|
-
* `
|
|
7
|
+
* `brandedEmailImages()` so its mark shows without loading anything.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* await sender.send({ from, to, subject, text,
|
|
11
|
-
* html:
|
|
12
|
-
* inlineImages:
|
|
11
|
+
* html: brandedEmail({ language: "en", preview, eyebrow: "Invoice", heading: "Your invoice is ready" }),
|
|
12
|
+
* inlineImages: brandedEmailImages() });
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const brandedEmail = (content) => emailLayout(content, SHARADOX_EMAIL, true);
|
|
15
15
|
/** The images a Sharadox email carries: its mark, as the inline image "logo". */
|
|
16
|
-
export const
|
|
16
|
+
export const brandedEmailImages = () => [inlineImage("logo", EMAIL_LOGO)];
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/branded-email/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAGvE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAqB,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;AAElG,iFAAiF;AACjF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC"}
|
package/llms.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Sharadox's own website library (verifiable source, not open source): content, branded components, styles and contact configuration for sharadox.com, built on the open-source @sharadox/*-web-library topic libraries.
|
|
4
4
|
|
|
5
|
-
- content/locale LOCALES (defineLocales en/pt); content/style STYLES (color group: black default, white, system; storageKey "style")
|
|
6
|
-
- utility/
|
|
5
|
+
- content/locale LOCALES (defineLocales en/pt); content/style STYLES (color group: black default, white, system; storageKey "style")
|
|
6
|
+
- utility/branded-email brandedEmail(content) (any email Sharadox sends, in SHARADOX_EMAIL's design) and brandedEmailImages() (the mark as inline image "logo")
|
|
7
7
|
- action/send-contact sendContact(form, ip) — createContactAction to contact@sharadox.com, subject "Contact · Name (Company)", email or phone, at least one choice, 20+ character message, 5/hour per address, 50/day overall
|
|
8
8
|
- component/*: navigation, hero (+ lazy globe), service-index, about (+ feed: activity, project, client, script), services (four groups of service-card, each with a service-object), capability, service-unlisted, marquee, portfolio (+ project, screens, service-name, launch-date), project-page (+ chapter), process, faq, contact (+ form), footer, section-indicator, style-switch, structured-data, share-image (renderShareImage)
|
|
9
9
|
- style/token Sass helpers: tint, shade, dashed, on-scroll, below, fill-center
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0-development.87",
|
|
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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/separator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,qHAAqH;AACrH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/separator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,qHAAqH;AACrH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Joins the parts that are set with the Sharadox separator (·): web-library's `separated`, kept here for one version
|
|
3
|
-
* so sites can move to `@sharadox/web-library/text/separated`. Goes in the next minor version.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* separate("Contact", "Ana (Café)"); // "Contact · Ana (Café)"
|
|
7
|
-
*/
|
|
8
|
-
export { separated as separate } from "@sharadox/web-library/text/separated";
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Joins the parts that are set with the Sharadox separator (·): web-library's `separated`, kept here for one version
|
|
3
|
-
* so sites can move to `@sharadox/web-library/text/separated`. Goes in the next minor version.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* separate("Contact", "Ana (Café)"); // "Contact · Ana (Café)"
|
|
7
|
-
*/
|
|
8
|
-
export { separated as separate } from "@sharadox/web-library/text/separated";
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/sharadox-email/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAKlF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,YAAY,WAA+C,CAAC;AAEnG,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,QAAO,WAAW,EAAuC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/sharadox-email/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAGvE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAqB,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;AAEnG,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC"}
|