@absolutejs/absolute 0.19.0-beta.773 → 0.19.0-beta.775

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.
@@ -1,5 +1,5 @@
1
1
  // src/react/components/Head.tsx
2
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
3
3
  var RobotsContent = ({ robots }) => {
4
4
  const directives = [];
5
5
  if (robots.index === false)
@@ -23,110 +23,110 @@ var RobotsContent = ({ robots }) => {
23
23
  if (robots.maxVideoPreview !== undefined)
24
24
  directives.push(`max-video-preview:${robots.maxVideoPreview}`);
25
25
  const content = directives.join(", ");
26
- return content ? /* @__PURE__ */ jsx("meta", {
26
+ return content ? /* @__PURE__ */ jsxDEV("meta", {
27
27
  content,
28
28
  name: "robots"
29
- }) : null;
29
+ }, undefined, false, undefined, this) : null;
30
30
  };
31
31
  var OpenGraphTags = ({
32
32
  openGraph,
33
33
  title,
34
34
  description
35
- }) => /* @__PURE__ */ jsxs(Fragment, {
35
+ }) => /* @__PURE__ */ jsxDEV(Fragment, {
36
36
  children: [
37
- /* @__PURE__ */ jsx("meta", {
37
+ /* @__PURE__ */ jsxDEV("meta", {
38
38
  content: openGraph.title ?? title,
39
39
  property: "og:title"
40
- }),
41
- /* @__PURE__ */ jsx("meta", {
40
+ }, undefined, false, undefined, this),
41
+ /* @__PURE__ */ jsxDEV("meta", {
42
42
  content: openGraph.description ?? description,
43
43
  property: "og:description"
44
- }),
45
- openGraph.url && /* @__PURE__ */ jsx("meta", {
44
+ }, undefined, false, undefined, this),
45
+ openGraph.url && /* @__PURE__ */ jsxDEV("meta", {
46
46
  content: openGraph.url,
47
47
  property: "og:url"
48
- }),
49
- openGraph.image && /* @__PURE__ */ jsx("meta", {
48
+ }, undefined, false, undefined, this),
49
+ openGraph.image && /* @__PURE__ */ jsxDEV("meta", {
50
50
  content: openGraph.image,
51
51
  property: "og:image"
52
- }),
53
- openGraph.imageAlt && /* @__PURE__ */ jsx("meta", {
52
+ }, undefined, false, undefined, this),
53
+ openGraph.imageAlt && /* @__PURE__ */ jsxDEV("meta", {
54
54
  content: openGraph.imageAlt,
55
55
  property: "og:image:alt"
56
- }),
57
- openGraph.imageWidth && /* @__PURE__ */ jsx("meta", {
56
+ }, undefined, false, undefined, this),
57
+ openGraph.imageWidth && /* @__PURE__ */ jsxDEV("meta", {
58
58
  content: String(openGraph.imageWidth),
59
59
  property: "og:image:width"
60
- }),
61
- openGraph.imageHeight && /* @__PURE__ */ jsx("meta", {
60
+ }, undefined, false, undefined, this),
61
+ openGraph.imageHeight && /* @__PURE__ */ jsxDEV("meta", {
62
62
  content: String(openGraph.imageHeight),
63
63
  property: "og:image:height"
64
- }),
65
- openGraph.type && /* @__PURE__ */ jsx("meta", {
64
+ }, undefined, false, undefined, this),
65
+ openGraph.type && /* @__PURE__ */ jsxDEV("meta", {
66
66
  content: openGraph.type,
67
67
  property: "og:type"
68
- }),
69
- openGraph.siteName && /* @__PURE__ */ jsx("meta", {
68
+ }, undefined, false, undefined, this),
69
+ openGraph.siteName && /* @__PURE__ */ jsxDEV("meta", {
70
70
  content: openGraph.siteName,
71
71
  property: "og:site_name"
72
- }),
73
- openGraph.locale && /* @__PURE__ */ jsx("meta", {
72
+ }, undefined, false, undefined, this),
73
+ openGraph.locale && /* @__PURE__ */ jsxDEV("meta", {
74
74
  content: openGraph.locale,
75
75
  property: "og:locale"
76
- })
76
+ }, undefined, false, undefined, this)
77
77
  ]
78
- });
78
+ }, undefined, true, undefined, this);
79
79
  var TwitterTags = ({
80
80
  twitter,
81
81
  title,
82
82
  description
83
- }) => /* @__PURE__ */ jsxs(Fragment, {
83
+ }) => /* @__PURE__ */ jsxDEV(Fragment, {
84
84
  children: [
85
- twitter.card && /* @__PURE__ */ jsx("meta", {
85
+ twitter.card && /* @__PURE__ */ jsxDEV("meta", {
86
86
  content: twitter.card,
87
87
  name: "twitter:card"
88
- }),
89
- /* @__PURE__ */ jsx("meta", {
88
+ }, undefined, false, undefined, this),
89
+ /* @__PURE__ */ jsxDEV("meta", {
90
90
  content: twitter.title ?? title,
91
91
  name: "twitter:title"
92
- }),
93
- /* @__PURE__ */ jsx("meta", {
92
+ }, undefined, false, undefined, this),
93
+ /* @__PURE__ */ jsxDEV("meta", {
94
94
  content: twitter.description ?? description,
95
95
  name: "twitter:description"
96
- }),
97
- twitter.image && /* @__PURE__ */ jsx("meta", {
96
+ }, undefined, false, undefined, this),
97
+ twitter.image && /* @__PURE__ */ jsxDEV("meta", {
98
98
  content: twitter.image,
99
99
  name: "twitter:image"
100
- }),
101
- twitter.imageAlt && /* @__PURE__ */ jsx("meta", {
100
+ }, undefined, false, undefined, this),
101
+ twitter.imageAlt && /* @__PURE__ */ jsxDEV("meta", {
102
102
  content: twitter.imageAlt,
103
103
  name: "twitter:image:alt"
104
- }),
105
- twitter.site && /* @__PURE__ */ jsx("meta", {
104
+ }, undefined, false, undefined, this),
105
+ twitter.site && /* @__PURE__ */ jsxDEV("meta", {
106
106
  content: twitter.site,
107
107
  name: "twitter:site"
108
- }),
109
- twitter.creator && /* @__PURE__ */ jsx("meta", {
108
+ }, undefined, false, undefined, this),
109
+ twitter.creator && /* @__PURE__ */ jsxDEV("meta", {
110
110
  content: twitter.creator,
111
111
  name: "twitter:creator"
112
- })
112
+ }, undefined, false, undefined, this)
113
113
  ]
114
- });
114
+ }, undefined, true, undefined, this);
115
115
  var CustomMetaTag = ({ tag }) => {
116
116
  if (tag.property)
117
- return /* @__PURE__ */ jsx("meta", {
117
+ return /* @__PURE__ */ jsxDEV("meta", {
118
118
  content: tag.content,
119
119
  property: tag.property
120
- });
120
+ }, undefined, false, undefined, this);
121
121
  if (tag.httpEquiv)
122
- return /* @__PURE__ */ jsx("meta", {
122
+ return /* @__PURE__ */ jsxDEV("meta", {
123
123
  content: tag.content,
124
124
  httpEquiv: tag.httpEquiv
125
- });
126
- return /* @__PURE__ */ jsx("meta", {
125
+ }, undefined, false, undefined, this);
126
+ return /* @__PURE__ */ jsxDEV("meta", {
127
127
  content: tag.content,
128
128
  name: tag.name
129
- });
129
+ }, undefined, false, undefined, this);
130
130
  };
131
131
  var Head = ({
132
132
  title = "AbsoluteJS",
@@ -139,74 +139,74 @@ var Head = ({
139
139
  twitter,
140
140
  robots,
141
141
  meta
142
- } = {}) => /* @__PURE__ */ jsxs("head", {
142
+ } = {}) => /* @__PURE__ */ jsxDEV("head", {
143
143
  suppressHydrationWarning: true,
144
144
  children: [
145
- /* @__PURE__ */ jsx("meta", {
145
+ /* @__PURE__ */ jsxDEV("meta", {
146
146
  charSet: "utf-8"
147
- }),
148
- /* @__PURE__ */ jsx("title", {
147
+ }, undefined, false, undefined, this),
148
+ /* @__PURE__ */ jsxDEV("title", {
149
149
  children: title
150
- }),
151
- /* @__PURE__ */ jsx("meta", {
150
+ }, undefined, false, undefined, this),
151
+ /* @__PURE__ */ jsxDEV("meta", {
152
152
  content: description,
153
153
  name: "description"
154
- }),
155
- /* @__PURE__ */ jsx("meta", {
154
+ }, undefined, false, undefined, this),
155
+ /* @__PURE__ */ jsxDEV("meta", {
156
156
  content: "width=device-width, initial-scale=1",
157
157
  name: "viewport"
158
- }),
159
- /* @__PURE__ */ jsx("link", {
158
+ }, undefined, false, undefined, this),
159
+ /* @__PURE__ */ jsxDEV("link", {
160
160
  href: icon,
161
161
  rel: "icon"
162
- }),
163
- canonical && /* @__PURE__ */ jsx("link", {
162
+ }, undefined, false, undefined, this),
163
+ canonical && /* @__PURE__ */ jsxDEV("link", {
164
164
  href: canonical,
165
165
  rel: "canonical"
166
- }),
167
- openGraph && /* @__PURE__ */ jsx(OpenGraphTags, {
166
+ }, undefined, false, undefined, this),
167
+ openGraph && /* @__PURE__ */ jsxDEV(OpenGraphTags, {
168
168
  description,
169
169
  openGraph,
170
170
  title
171
- }),
172
- twitter && /* @__PURE__ */ jsx(TwitterTags, {
171
+ }, undefined, false, undefined, this),
172
+ twitter && /* @__PURE__ */ jsxDEV(TwitterTags, {
173
173
  description,
174
174
  title,
175
175
  twitter
176
- }),
177
- robots && /* @__PURE__ */ jsx(RobotsContent, {
176
+ }, undefined, false, undefined, this),
177
+ robots && /* @__PURE__ */ jsxDEV(RobotsContent, {
178
178
  robots
179
- }),
180
- meta?.map((tag, i) => /* @__PURE__ */ jsx(CustomMetaTag, {
179
+ }, undefined, false, undefined, this),
180
+ meta?.map((tag, i) => /* @__PURE__ */ jsxDEV(CustomMetaTag, {
181
181
  tag
182
- }, i)),
183
- font && /* @__PURE__ */ jsxs(Fragment, {
182
+ }, i, false, undefined, this)),
183
+ font && /* @__PURE__ */ jsxDEV(Fragment, {
184
184
  children: [
185
- /* @__PURE__ */ jsx("link", {
185
+ /* @__PURE__ */ jsxDEV("link", {
186
186
  href: "https://fonts.googleapis.com",
187
187
  rel: "preconnect"
188
- }),
189
- /* @__PURE__ */ jsx("link", {
188
+ }, undefined, false, undefined, this),
189
+ /* @__PURE__ */ jsxDEV("link", {
190
190
  crossOrigin: "anonymous",
191
191
  href: "https://fonts.gstatic.com",
192
192
  rel: "preconnect",
193
193
  suppressHydrationWarning: true
194
- }),
195
- /* @__PURE__ */ jsx("link", {
194
+ }, undefined, false, undefined, this),
195
+ /* @__PURE__ */ jsxDEV("link", {
196
196
  href: `https://fonts.googleapis.com/css2?family=${font}:wght@100..900&display=swap`,
197
197
  rel: "stylesheet",
198
198
  suppressHydrationWarning: true
199
- })
199
+ }, undefined, false, undefined, this)
200
200
  ]
201
- }),
202
- cssPath && [cssPath].flat().map((path) => /* @__PURE__ */ jsx("link", {
201
+ }, undefined, true, undefined, this),
202
+ cssPath && [cssPath].flat().map((path) => /* @__PURE__ */ jsxDEV("link", {
203
203
  href: path,
204
204
  rel: "stylesheet",
205
205
  suppressHydrationWarning: true,
206
206
  type: "text/css"
207
- }, path))
207
+ }, path, false, undefined, this))
208
208
  ]
209
- });
209
+ }, undefined, true, undefined, this);
210
210
  // src/constants.ts
211
211
  var HOURS_IN_DAY = 24;
212
212
  var IMAGE_DEFAULT_DEVICE_SIZES = [
@@ -268,7 +268,7 @@ var generateSrcSet = (src, width, sizes, deviceSizes, imageSizes) => {
268
268
  };
269
269
 
270
270
  // src/react/components/Image.tsx
271
- import { jsx as jsx2, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
271
+ import { jsxDEV as jsxDEV2, Fragment as Fragment2 } from "react/jsx-dev-runtime";
272
272
  var resolveSource = (src, overrideSrc, unoptimized, loader, width, quality) => {
273
273
  if (overrideSrc)
274
274
  return overrideSrc;
@@ -337,15 +337,15 @@ var Image = ({
337
337
  width: "100%"
338
338
  } : { color: "transparent" }
339
339
  };
340
- const preloadLink = priority ? /* @__PURE__ */ jsx2("link", {
340
+ const preloadLink = priority ? /* @__PURE__ */ jsxDEV2("link", {
341
341
  as: "image",
342
342
  crossOrigin,
343
343
  href: resolvedSrc,
344
344
  imageSizes: resolvedSizes,
345
345
  imageSrcSet: srcSet,
346
346
  rel: "preload"
347
- }) : null;
348
- const imgElement = /* @__PURE__ */ jsx2("img", {
347
+ }, undefined, false, undefined, this) : null;
348
+ const imgElement = /* @__PURE__ */ jsxDEV2("img", {
349
349
  alt,
350
350
  className,
351
351
  crossOrigin,
@@ -368,12 +368,12 @@ var Image = ({
368
368
  srcSet,
369
369
  style: imgStyle,
370
370
  width: fill ? undefined : width
371
- });
371
+ }, undefined, false, undefined, this);
372
372
  if (fill) {
373
- return /* @__PURE__ */ jsxs2(Fragment2, {
373
+ return /* @__PURE__ */ jsxDEV2(Fragment2, {
374
374
  children: [
375
375
  preloadLink,
376
- /* @__PURE__ */ jsx2("span", {
376
+ /* @__PURE__ */ jsxDEV2("span", {
377
377
  style: {
378
378
  display: "block",
379
379
  height: "100%",
@@ -382,19 +382,19 @@ var Image = ({
382
382
  width: "100%"
383
383
  },
384
384
  children: imgElement
385
- })
385
+ }, undefined, false, undefined, this)
386
386
  ]
387
- });
387
+ }, undefined, true, undefined, this);
388
388
  }
389
- return /* @__PURE__ */ jsxs2(Fragment2, {
389
+ return /* @__PURE__ */ jsxDEV2(Fragment2, {
390
390
  children: [
391
391
  preloadLink,
392
392
  imgElement
393
393
  ]
394
- });
394
+ }, undefined, true, undefined, this);
395
395
  };
396
396
  // src/react/components/JsonLd.tsx
397
- import { jsx as jsx3 } from "react/jsx-runtime";
397
+ import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
398
398
  var JsonLd = ({
399
399
  schema
400
400
  }) => {
@@ -403,45 +403,45 @@ var JsonLd = ({
403
403
  "@context": schemaOrgContext,
404
404
  ...s
405
405
  })) : { "@context": schemaOrgContext, ...schema };
406
- return /* @__PURE__ */ jsx3("script", {
406
+ return /* @__PURE__ */ jsxDEV3("script", {
407
407
  dangerouslySetInnerHTML: { __html: JSON.stringify(data) },
408
408
  type: "application/ld+json"
409
- });
409
+ }, undefined, false, undefined, this);
410
410
  };
411
411
  // src/react/components/SuspenseSlot.browser.tsx
412
- import { jsx as jsx4 } from "react/jsx-runtime";
412
+ import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
413
413
  var isLegacyProps = (props) => ("fallbackHtml" in props) || ("errorHtml" in props);
414
414
  var SuspenseSlot = (props) => {
415
415
  if (isLegacyProps(props)) {
416
- return /* @__PURE__ */ jsx4("div", {
416
+ return /* @__PURE__ */ jsxDEV4("div", {
417
417
  className: props.className,
418
418
  dangerouslySetInnerHTML: { __html: props.fallbackHtml ?? "" },
419
419
  "data-absolute-slot": "true",
420
420
  id: props.id,
421
421
  suppressHydrationWarning: true
422
- });
422
+ }, undefined, false, undefined, this);
423
423
  }
424
- return /* @__PURE__ */ jsx4("div", {
424
+ return /* @__PURE__ */ jsxDEV4("div", {
425
425
  className: props.className,
426
426
  "data-absolute-slot": "true",
427
427
  id: props.id,
428
428
  suppressHydrationWarning: true,
429
429
  children: props.fallback ?? null
430
- });
430
+ }, undefined, false, undefined, this);
431
431
  };
432
432
  // src/react/components/StreamSlot.browser.tsx
433
- import { jsx as jsx5 } from "react/jsx-runtime";
433
+ import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
434
434
  var StreamSlot = ({
435
435
  className,
436
436
  fallbackHtml = "",
437
437
  id
438
- }) => /* @__PURE__ */ jsx5("div", {
438
+ }) => /* @__PURE__ */ jsxDEV5("div", {
439
439
  className,
440
440
  dangerouslySetInnerHTML: { __html: fallbackHtml },
441
441
  "data-absolute-slot": "true",
442
442
  id,
443
443
  suppressHydrationWarning: true
444
- });
444
+ }, undefined, false, undefined, this);
445
445
  export {
446
446
  SuspenseSlot,
447
447
  StreamSlot,