talizen 0.0.11 → 0.1.1

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.
Files changed (2) hide show
  1. package/index.d.ts +70 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,3 +1,73 @@
1
1
  export * from "./core.js";
2
2
  export * from "./cms.js";
3
3
  export * from "./form.js";
4
+ type OneOrMany<T> = T | Array<T>;
5
+ export interface MetadataTitle {
6
+ default?: string;
7
+ template?: string;
8
+ absolute?: string;
9
+ }
10
+ export interface MetadataAuthor {
11
+ name: string;
12
+ url?: string;
13
+ }
14
+ export interface MetadataIconLink {
15
+ url: string;
16
+ media?: string;
17
+ sizes?: string;
18
+ type?: string;
19
+ }
20
+ export interface MetadataOtherIcon {
21
+ rel: string;
22
+ url: string;
23
+ }
24
+ export interface MetadataIcons {
25
+ shortcut?: OneOrMany<string | MetadataIconLink>;
26
+ icon?: OneOrMany<string | MetadataIconLink>;
27
+ apple?: OneOrMany<string | MetadataIconLink>;
28
+ other?: MetadataOtherIcon | Array<MetadataOtherIcon>;
29
+ }
30
+ export interface OpenGraphImage {
31
+ url: string;
32
+ width?: number;
33
+ height?: number;
34
+ alt?: string;
35
+ }
36
+ export interface OpenGraphVideo {
37
+ url: string;
38
+ width?: number;
39
+ height?: number;
40
+ }
41
+ export interface OpenGraphAudio {
42
+ url: string;
43
+ }
44
+ export interface MetadataFormatDetection {
45
+ email?: boolean;
46
+ address?: boolean;
47
+ telephone?: boolean;
48
+ }
49
+ export interface OpenGraphMetadata {
50
+ title?: string;
51
+ description?: string;
52
+ url?: string;
53
+ siteName?: string;
54
+ images?: Array<OpenGraphImage>;
55
+ videos?: Array<OpenGraphVideo>;
56
+ audio?: Array<OpenGraphAudio>;
57
+ locale?: string;
58
+ type?: string;
59
+ }
60
+ export interface Metadata {
61
+ title?: string | MetadataTitle | null;
62
+ description?: string | null;
63
+ generator?: string | null;
64
+ applicationName?: string | null;
65
+ referrer?: string | null;
66
+ keywords?: string | Array<string> | null;
67
+ authors?: Array<MetadataAuthor> | null;
68
+ creator?: string | null;
69
+ publisher?: string | null;
70
+ formatDetection?: MetadataFormatDetection | null;
71
+ openGraph?: OpenGraphMetadata | null;
72
+ icons?: MetadataIcons | null;
73
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "talizen",
3
- "version": "0.0.11",
3
+ "version": "0.1.1",
4
4
  "description": "Talizen frontend SDK types for cms, form and core.",
5
5
  "type": "module",
6
6
  "license": "MIT",