@absolutejs/absolute 0.20.0-beta.43 → 0.20.0-beta.44
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/dist/angular/browser.js +378 -361
- package/dist/angular/browser.js.map +2 -2
- package/dist/angular/components/core/streamingSlotRegistrar.js +7 -7
- package/dist/angular/components/core/streamingSlotRegistry.js +4 -4
- package/dist/angular/index.js +300 -294
- package/dist/angular/index.js.map +2 -2
- package/dist/angular/server.js +54 -50
- package/dist/angular/server.js.map +2 -2
- package/dist/build.js +199 -203
- package/dist/build.js.map +2 -2
- package/dist/cli/config/client.js +12 -12
- package/dist/cli/config/server.js +1096 -1090
- package/dist/cli/index.js +275 -161
- package/dist/client/index.js +29 -25
- package/dist/client/index.js.map +2 -2
- package/dist/core/streamingSlotRegistrar.js +15 -13
- package/dist/core/streamingSlotRegistrar.js.map +2 -2
- package/dist/core/streamingSlotRegistry.js +11 -9
- package/dist/core/streamingSlotRegistry.js.map +2 -2
- package/dist/image-client/imageClient.js +7 -7
- package/dist/index.js +782 -732
- package/dist/index.js.map +6 -5
- package/dist/islands/browser.js +11 -9
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js +39 -35
- package/dist/islands/index.js.map +2 -2
- package/dist/mobile/browser.js +23 -22
- package/dist/mobile/browser.js.map +2 -2
- package/dist/mobile/index.js +552 -423
- package/dist/mobile/index.js.map +9 -9
- package/dist/mobile/remoteMacAgentEntry.js +115 -37
- package/dist/mobile/shellBootstrap.js +0 -1
- package/dist/mobile/shellExpoAuth.js +184 -0
- package/dist/mobile/shellExpoDevices.js +4 -5
- package/dist/mobile/shellSync.js +4 -4
- package/dist/react/browser.js +17 -15
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/browser/index.js +107 -107
- package/dist/react/components/index.js +118 -116
- package/dist/react/components/index.js.map +2 -2
- package/dist/react/hooks/index.js +11 -9
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +53 -49
- package/dist/react/index.js.map +2 -2
- package/dist/react/jsxDevRuntimeCompat.js +11 -9
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/jsxRuntimeCompat.js +11 -9
- package/dist/react/jsxRuntimeCompat.js.map +2 -2
- package/dist/react/router/browser.js +9 -7
- package/dist/react/router/browser.js.map +2 -2
- package/dist/react/router/index.js +9 -7
- package/dist/react/router/index.js.map +2 -2
- package/dist/react/server.js +12 -10
- package/dist/react/server.js.map +2 -2
- package/dist/src/mobile/devDeviceAdapter.d.ts +1 -1
- package/dist/src/mobile/expoBridge.d.ts +12 -12
- package/dist/src/mobile/nativeAuth.d.ts +3 -0
- package/dist/src/mobile/shellExpoAuth.d.ts +12 -0
- package/dist/svelte/browser.js +12 -10
- package/dist/svelte/browser.js.map +2 -2
- package/dist/svelte/index.js +47 -43
- package/dist/svelte/index.js.map +2 -2
- package/dist/svelte/server.js +29 -27
- package/dist/svelte/server.js.map +2 -2
- package/dist/vue/browser.js +14 -12
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/components/Image.js +9 -7
- package/dist/vue/components/Image.js.map +2 -2
- package/dist/vue/components/index.js +11 -9
- package/dist/vue/components/index.js.map +2 -2
- package/dist/vue/index.js +52 -48
- package/dist/vue/index.js.map +2 -2
- package/dist/vue/server.js +14 -12
- package/dist/vue/server.js.map +2 -2
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ var serializeJsonLd = (schema) => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
// src/react/components/Head.tsx
|
|
20
|
-
import {
|
|
20
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
21
21
|
var RobotsContent = ({ robots }) => {
|
|
22
22
|
const directives = [];
|
|
23
23
|
if (robots.index === false)
|
|
@@ -41,110 +41,110 @@ var RobotsContent = ({ robots }) => {
|
|
|
41
41
|
if (robots.maxVideoPreview !== undefined)
|
|
42
42
|
directives.push(`max-video-preview:${robots.maxVideoPreview}`);
|
|
43
43
|
const content = directives.join(", ");
|
|
44
|
-
return content ? /* @__PURE__ */
|
|
44
|
+
return content ? /* @__PURE__ */ jsx("meta", {
|
|
45
45
|
content,
|
|
46
46
|
name: "robots"
|
|
47
|
-
}
|
|
47
|
+
}) : null;
|
|
48
48
|
};
|
|
49
49
|
var OpenGraphTags = ({
|
|
50
50
|
openGraph,
|
|
51
51
|
title,
|
|
52
52
|
description
|
|
53
|
-
}) => /* @__PURE__ */
|
|
53
|
+
}) => /* @__PURE__ */ jsxs(Fragment, {
|
|
54
54
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ jsx("meta", {
|
|
56
56
|
content: openGraph.title ?? title,
|
|
57
57
|
property: "og:title"
|
|
58
|
-
}
|
|
59
|
-
/* @__PURE__ */
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsx("meta", {
|
|
60
60
|
content: openGraph.description ?? description,
|
|
61
61
|
property: "og:description"
|
|
62
|
-
}
|
|
63
|
-
openGraph.url && /* @__PURE__ */
|
|
62
|
+
}),
|
|
63
|
+
openGraph.url && /* @__PURE__ */ jsx("meta", {
|
|
64
64
|
content: openGraph.url,
|
|
65
65
|
property: "og:url"
|
|
66
|
-
}
|
|
67
|
-
openGraph.image && /* @__PURE__ */
|
|
66
|
+
}),
|
|
67
|
+
openGraph.image && /* @__PURE__ */ jsx("meta", {
|
|
68
68
|
content: openGraph.image,
|
|
69
69
|
property: "og:image"
|
|
70
|
-
}
|
|
71
|
-
openGraph.imageAlt && /* @__PURE__ */
|
|
70
|
+
}),
|
|
71
|
+
openGraph.imageAlt && /* @__PURE__ */ jsx("meta", {
|
|
72
72
|
content: openGraph.imageAlt,
|
|
73
73
|
property: "og:image:alt"
|
|
74
|
-
}
|
|
75
|
-
openGraph.imageWidth && /* @__PURE__ */
|
|
74
|
+
}),
|
|
75
|
+
openGraph.imageWidth && /* @__PURE__ */ jsx("meta", {
|
|
76
76
|
content: String(openGraph.imageWidth),
|
|
77
77
|
property: "og:image:width"
|
|
78
|
-
}
|
|
79
|
-
openGraph.imageHeight && /* @__PURE__ */
|
|
78
|
+
}),
|
|
79
|
+
openGraph.imageHeight && /* @__PURE__ */ jsx("meta", {
|
|
80
80
|
content: String(openGraph.imageHeight),
|
|
81
81
|
property: "og:image:height"
|
|
82
|
-
}
|
|
83
|
-
openGraph.type && /* @__PURE__ */
|
|
82
|
+
}),
|
|
83
|
+
openGraph.type && /* @__PURE__ */ jsx("meta", {
|
|
84
84
|
content: openGraph.type,
|
|
85
85
|
property: "og:type"
|
|
86
|
-
}
|
|
87
|
-
openGraph.siteName && /* @__PURE__ */
|
|
86
|
+
}),
|
|
87
|
+
openGraph.siteName && /* @__PURE__ */ jsx("meta", {
|
|
88
88
|
content: openGraph.siteName,
|
|
89
89
|
property: "og:site_name"
|
|
90
|
-
}
|
|
91
|
-
openGraph.locale && /* @__PURE__ */
|
|
90
|
+
}),
|
|
91
|
+
openGraph.locale && /* @__PURE__ */ jsx("meta", {
|
|
92
92
|
content: openGraph.locale,
|
|
93
93
|
property: "og:locale"
|
|
94
|
-
}
|
|
94
|
+
})
|
|
95
95
|
]
|
|
96
|
-
}
|
|
96
|
+
});
|
|
97
97
|
var TwitterTags = ({
|
|
98
98
|
twitter,
|
|
99
99
|
title,
|
|
100
100
|
description
|
|
101
|
-
}) => /* @__PURE__ */
|
|
101
|
+
}) => /* @__PURE__ */ jsxs(Fragment, {
|
|
102
102
|
children: [
|
|
103
|
-
twitter.card && /* @__PURE__ */
|
|
103
|
+
twitter.card && /* @__PURE__ */ jsx("meta", {
|
|
104
104
|
content: twitter.card,
|
|
105
105
|
name: "twitter:card"
|
|
106
|
-
}
|
|
107
|
-
/* @__PURE__ */
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ jsx("meta", {
|
|
108
108
|
content: twitter.title ?? title,
|
|
109
109
|
name: "twitter:title"
|
|
110
|
-
}
|
|
111
|
-
/* @__PURE__ */
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ jsx("meta", {
|
|
112
112
|
content: twitter.description ?? description,
|
|
113
113
|
name: "twitter:description"
|
|
114
|
-
}
|
|
115
|
-
twitter.image && /* @__PURE__ */
|
|
114
|
+
}),
|
|
115
|
+
twitter.image && /* @__PURE__ */ jsx("meta", {
|
|
116
116
|
content: twitter.image,
|
|
117
117
|
name: "twitter:image"
|
|
118
|
-
}
|
|
119
|
-
twitter.imageAlt && /* @__PURE__ */
|
|
118
|
+
}),
|
|
119
|
+
twitter.imageAlt && /* @__PURE__ */ jsx("meta", {
|
|
120
120
|
content: twitter.imageAlt,
|
|
121
121
|
name: "twitter:image:alt"
|
|
122
|
-
}
|
|
123
|
-
twitter.site && /* @__PURE__ */
|
|
122
|
+
}),
|
|
123
|
+
twitter.site && /* @__PURE__ */ jsx("meta", {
|
|
124
124
|
content: twitter.site,
|
|
125
125
|
name: "twitter:site"
|
|
126
|
-
}
|
|
127
|
-
twitter.creator && /* @__PURE__ */
|
|
126
|
+
}),
|
|
127
|
+
twitter.creator && /* @__PURE__ */ jsx("meta", {
|
|
128
128
|
content: twitter.creator,
|
|
129
129
|
name: "twitter:creator"
|
|
130
|
-
}
|
|
130
|
+
})
|
|
131
131
|
]
|
|
132
|
-
}
|
|
132
|
+
});
|
|
133
133
|
var CustomMetaTag = ({ tag }) => {
|
|
134
134
|
if (tag.property)
|
|
135
|
-
return /* @__PURE__ */
|
|
135
|
+
return /* @__PURE__ */ jsx("meta", {
|
|
136
136
|
content: tag.content,
|
|
137
137
|
property: tag.property
|
|
138
|
-
}
|
|
138
|
+
});
|
|
139
139
|
if (tag.httpEquiv)
|
|
140
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ jsx("meta", {
|
|
141
141
|
content: tag.content,
|
|
142
142
|
httpEquiv: tag.httpEquiv
|
|
143
|
-
}
|
|
144
|
-
return /* @__PURE__ */
|
|
143
|
+
});
|
|
144
|
+
return /* @__PURE__ */ jsx("meta", {
|
|
145
145
|
content: tag.content,
|
|
146
146
|
name: tag.name
|
|
147
|
-
}
|
|
147
|
+
});
|
|
148
148
|
};
|
|
149
149
|
var Head = ({
|
|
150
150
|
title = "AbsoluteJS",
|
|
@@ -158,79 +158,79 @@ var Head = ({
|
|
|
158
158
|
robots,
|
|
159
159
|
meta,
|
|
160
160
|
jsonLd
|
|
161
|
-
} = {}) => /* @__PURE__ */
|
|
161
|
+
} = {}) => /* @__PURE__ */ jsxs("head", {
|
|
162
162
|
suppressHydrationWarning: true,
|
|
163
163
|
children: [
|
|
164
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ jsx("meta", {
|
|
165
165
|
charSet: "utf-8"
|
|
166
|
-
}
|
|
167
|
-
/* @__PURE__ */
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ jsx("title", {
|
|
168
168
|
children: title
|
|
169
|
-
}
|
|
170
|
-
/* @__PURE__ */
|
|
169
|
+
}),
|
|
170
|
+
/* @__PURE__ */ jsx("meta", {
|
|
171
171
|
content: description,
|
|
172
172
|
name: "description"
|
|
173
|
-
}
|
|
174
|
-
/* @__PURE__ */
|
|
173
|
+
}),
|
|
174
|
+
/* @__PURE__ */ jsx("meta", {
|
|
175
175
|
content: "width=device-width, initial-scale=1",
|
|
176
176
|
name: "viewport"
|
|
177
|
-
}
|
|
178
|
-
/* @__PURE__ */
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ jsx("link", {
|
|
179
179
|
href: applyIconVersion(icon),
|
|
180
180
|
rel: "icon",
|
|
181
181
|
type: iconMimeType(icon)
|
|
182
|
-
}
|
|
183
|
-
canonical && /* @__PURE__ */
|
|
182
|
+
}),
|
|
183
|
+
canonical && /* @__PURE__ */ jsx("link", {
|
|
184
184
|
href: canonical,
|
|
185
185
|
rel: "canonical"
|
|
186
|
-
}
|
|
187
|
-
openGraph && /* @__PURE__ */
|
|
186
|
+
}),
|
|
187
|
+
openGraph && /* @__PURE__ */ jsx(OpenGraphTags, {
|
|
188
188
|
description,
|
|
189
189
|
openGraph,
|
|
190
190
|
title
|
|
191
|
-
}
|
|
192
|
-
twitter && /* @__PURE__ */
|
|
191
|
+
}),
|
|
192
|
+
twitter && /* @__PURE__ */ jsx(TwitterTags, {
|
|
193
193
|
description,
|
|
194
194
|
title,
|
|
195
195
|
twitter
|
|
196
|
-
}
|
|
197
|
-
robots && /* @__PURE__ */
|
|
196
|
+
}),
|
|
197
|
+
robots && /* @__PURE__ */ jsx(RobotsContent, {
|
|
198
198
|
robots
|
|
199
|
-
}
|
|
200
|
-
meta?.map((tag, i) => /* @__PURE__ */
|
|
199
|
+
}),
|
|
200
|
+
meta?.map((tag, i) => /* @__PURE__ */ jsx(CustomMetaTag, {
|
|
201
201
|
tag
|
|
202
|
-
}, i
|
|
203
|
-
font && /* @__PURE__ */
|
|
202
|
+
}, i)),
|
|
203
|
+
font && /* @__PURE__ */ jsxs(Fragment, {
|
|
204
204
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ jsx("link", {
|
|
206
206
|
href: "https://fonts.googleapis.com",
|
|
207
207
|
rel: "preconnect"
|
|
208
|
-
}
|
|
209
|
-
/* @__PURE__ */
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ jsx("link", {
|
|
210
210
|
crossOrigin: "anonymous",
|
|
211
211
|
href: "https://fonts.gstatic.com",
|
|
212
212
|
rel: "preconnect",
|
|
213
213
|
suppressHydrationWarning: true
|
|
214
|
-
}
|
|
215
|
-
/* @__PURE__ */
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ jsx("link", {
|
|
216
216
|
href: `https://fonts.googleapis.com/css2?family=${font}:wght@100..900&display=swap`,
|
|
217
217
|
rel: "stylesheet",
|
|
218
218
|
suppressHydrationWarning: true
|
|
219
|
-
}
|
|
219
|
+
})
|
|
220
220
|
]
|
|
221
|
-
}
|
|
222
|
-
cssPath && [cssPath].flat().map((path) => /* @__PURE__ */
|
|
221
|
+
}),
|
|
222
|
+
cssPath && [cssPath].flat().map((path) => /* @__PURE__ */ jsx("link", {
|
|
223
223
|
href: path,
|
|
224
224
|
rel: "stylesheet",
|
|
225
225
|
suppressHydrationWarning: true,
|
|
226
226
|
type: "text/css"
|
|
227
|
-
}, path
|
|
228
|
-
jsonLd && /* @__PURE__ */
|
|
227
|
+
}, path)),
|
|
228
|
+
jsonLd && /* @__PURE__ */ jsx("script", {
|
|
229
229
|
dangerouslySetInnerHTML: { __html: serializeJsonLd(jsonLd) },
|
|
230
230
|
type: "application/ld+json"
|
|
231
|
-
}
|
|
231
|
+
})
|
|
232
232
|
]
|
|
233
|
-
}
|
|
233
|
+
});
|
|
234
234
|
// src/constants.ts
|
|
235
235
|
var HOURS_IN_DAY = 24;
|
|
236
236
|
var IMAGE_DEFAULT_DEVICE_SIZES = [
|
|
@@ -292,7 +292,7 @@ var generateSrcSet = (src, width, sizes, deviceSizes, imageSizes) => {
|
|
|
292
292
|
};
|
|
293
293
|
|
|
294
294
|
// src/react/components/Image.tsx
|
|
295
|
-
import {
|
|
295
|
+
import { jsx as jsx2, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
296
296
|
var resolveSource = (src, overrideSrc, unoptimized, loader, width, quality) => {
|
|
297
297
|
if (overrideSrc)
|
|
298
298
|
return overrideSrc;
|
|
@@ -368,15 +368,15 @@ var Image = ({
|
|
|
368
368
|
position: "relative",
|
|
369
369
|
width: "100%"
|
|
370
370
|
};
|
|
371
|
-
const preloadLink = priority ? /* @__PURE__ */
|
|
371
|
+
const preloadLink = priority ? /* @__PURE__ */ jsx2("link", {
|
|
372
372
|
as: "image",
|
|
373
373
|
crossOrigin,
|
|
374
374
|
href: resolvedSrc,
|
|
375
375
|
imageSizes: resolvedSizes,
|
|
376
376
|
imageSrcSet: srcSet,
|
|
377
377
|
rel: "preload"
|
|
378
|
-
}
|
|
379
|
-
const imgElement = /* @__PURE__ */
|
|
378
|
+
}) : null;
|
|
379
|
+
const imgElement = /* @__PURE__ */ jsx2("img", {
|
|
380
380
|
alt,
|
|
381
381
|
className,
|
|
382
382
|
crossOrigin,
|
|
@@ -399,27 +399,27 @@ var Image = ({
|
|
|
399
399
|
srcSet,
|
|
400
400
|
style: imgStyle,
|
|
401
401
|
width: fill ? undefined : width
|
|
402
|
-
}
|
|
402
|
+
});
|
|
403
403
|
if (fill) {
|
|
404
|
-
return /* @__PURE__ */
|
|
404
|
+
return /* @__PURE__ */ jsxs2(Fragment2, {
|
|
405
405
|
children: [
|
|
406
406
|
preloadLink,
|
|
407
|
-
/* @__PURE__ */
|
|
407
|
+
/* @__PURE__ */ jsx2("span", {
|
|
408
408
|
style: fillWrapperStyle,
|
|
409
409
|
children: imgElement
|
|
410
|
-
}
|
|
410
|
+
})
|
|
411
411
|
]
|
|
412
|
-
}
|
|
412
|
+
});
|
|
413
413
|
}
|
|
414
|
-
return /* @__PURE__ */
|
|
414
|
+
return /* @__PURE__ */ jsxs2(Fragment2, {
|
|
415
415
|
children: [
|
|
416
416
|
preloadLink,
|
|
417
417
|
imgElement
|
|
418
418
|
]
|
|
419
|
-
}
|
|
419
|
+
});
|
|
420
420
|
};
|
|
421
421
|
// src/react/components/JsonLd.tsx
|
|
422
|
-
import {
|
|
422
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
423
423
|
var JsonLd = ({
|
|
424
424
|
schema
|
|
425
425
|
}) => {
|
|
@@ -428,49 +428,49 @@ var JsonLd = ({
|
|
|
428
428
|
"@context": schemaOrgContext,
|
|
429
429
|
...s
|
|
430
430
|
})) : { "@context": schemaOrgContext, ...schema };
|
|
431
|
-
return /* @__PURE__ */
|
|
431
|
+
return /* @__PURE__ */ jsx3("script", {
|
|
432
432
|
dangerouslySetInnerHTML: { __html: JSON.stringify(data) },
|
|
433
433
|
type: "application/ld+json"
|
|
434
|
-
}
|
|
434
|
+
});
|
|
435
435
|
};
|
|
436
436
|
// src/react/components/SuspenseSlot.browser.tsx
|
|
437
|
-
import {
|
|
437
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
438
438
|
var isLegacyProps = (props) => ("fallbackHtml" in props) || ("errorHtml" in props);
|
|
439
439
|
var SuspenseSlot = (props) => {
|
|
440
440
|
if (isLegacyProps(props)) {
|
|
441
|
-
return /* @__PURE__ */
|
|
441
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
442
442
|
className: props.className,
|
|
443
443
|
dangerouslySetInnerHTML: { __html: props.fallbackHtml ?? "" },
|
|
444
444
|
"data-absolute-slot": "true",
|
|
445
445
|
id: props.id,
|
|
446
446
|
suppressHydrationWarning: true
|
|
447
|
-
}
|
|
447
|
+
});
|
|
448
448
|
}
|
|
449
|
-
return /* @__PURE__ */
|
|
449
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
450
450
|
className: props.className,
|
|
451
451
|
"data-absolute-slot": "true",
|
|
452
452
|
id: props.id,
|
|
453
453
|
suppressHydrationWarning: true,
|
|
454
454
|
children: props.fallback ?? null
|
|
455
|
-
}
|
|
455
|
+
});
|
|
456
456
|
};
|
|
457
457
|
// src/react/components/StreamSlot.browser.tsx
|
|
458
|
-
import {
|
|
458
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
459
459
|
var StreamSlot = ({
|
|
460
460
|
className,
|
|
461
461
|
fallbackHtml = "",
|
|
462
462
|
id
|
|
463
|
-
}) => /* @__PURE__ */
|
|
463
|
+
}) => /* @__PURE__ */ jsx5("div", {
|
|
464
464
|
className,
|
|
465
465
|
dangerouslySetInnerHTML: { __html: fallbackHtml },
|
|
466
466
|
"data-absolute-slot": "true",
|
|
467
467
|
id,
|
|
468
468
|
suppressHydrationWarning: true
|
|
469
|
-
}
|
|
469
|
+
});
|
|
470
470
|
export {
|
|
471
|
-
|
|
472
|
-
StreamSlot,
|
|
473
|
-
JsonLd,
|
|
471
|
+
Head,
|
|
474
472
|
Image,
|
|
475
|
-
|
|
473
|
+
JsonLd,
|
|
474
|
+
StreamSlot,
|
|
475
|
+
SuspenseSlot
|
|
476
476
|
};
|