@rimelight/config 0.0.13 → 0.0.15

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/astro/index.js CHANGED
@@ -153,7 +153,7 @@ function defaultShortcuts() {
153
153
  }
154
154
  }
155
155
 
156
- function rimelightIntegration(options, imageDomains, domain) {
156
+ function rimelightIntegration(options, imageDomains, domain, site) {
157
157
  return {
158
158
  name: "rimelight-auto-plugins",
159
159
  hooks: {
@@ -176,7 +176,13 @@ function rimelightIntegration(options, imageDomains, domain) {
176
176
  const seoFn =
177
177
  seoMod.rimelightSeo || seoMod.default?.rimelightSeo || seoMod.default || seoMod
178
178
  const seoOpts = typeof options.seo === "object" ? options.seo : {}
179
- integrations.push(seoFn(seoOpts))
179
+ integrations.push(
180
+ seoFn({
181
+ id: domain,
182
+ url: site || (domain ? `https://${domain}` : undefined),
183
+ ...seoOpts
184
+ })
185
+ )
180
186
  }
181
187
 
182
188
  if (options.cms) {
@@ -192,7 +198,7 @@ function rimelightIntegration(options, imageDomains, domain) {
192
198
  integrations.push(
193
199
  rimelightCms({
194
200
  storage,
195
- auth: cmsOpts.auth || "./src/auth/auth.ts",
201
+ ...(cmsOpts.auth ? { auth: cmsOpts.auth } : {}),
196
202
  ...cmsOpts
197
203
  })
198
204
  )
@@ -305,12 +311,13 @@ export function rimelightAstroConfig(options = {}) {
305
311
  cms,
306
312
  ui,
307
313
  seo,
314
+ auth,
308
315
  integrations = [],
309
316
  vite = {},
310
317
  ...rest
311
318
  } = options
312
319
 
313
- const hasFlags = Boolean(solid || security || i18n || cms || ui || seo)
320
+ const hasFlags = Boolean(solid || security || i18n || cms || ui || seo || auth)
314
321
 
315
322
  return {
316
323
  ...(site ? { site } : {}),
@@ -331,7 +338,7 @@ export function rimelightAstroConfig(options = {}) {
331
338
  syntaxHighlight: "prism"
332
339
  },
333
340
  integrations: [
334
- ...(hasFlags ? [rimelightIntegration(options, imageDomains, domain)] : []),
341
+ ...(hasFlags ? [rimelightIntegration(options, imageDomains, domain, site)] : []),
335
342
  ...integrations
336
343
  ],
337
344
  vite,
package/astro/index.ts CHANGED
@@ -301,7 +301,7 @@ function rimelightIntegration(
301
301
  integrations.push(
302
302
  rimelightCms({
303
303
  storage,
304
- auth: cmsOpts.auth || "./src/auth/auth.ts",
304
+ ...(cmsOpts.auth ? { auth: cmsOpts.auth } : {}),
305
305
  ...cmsOpts
306
306
  })
307
307
  )
@@ -414,12 +414,13 @@ export function rimelightAstroConfig(options: RimelightAstroOptions = {}): any {
414
414
  cms,
415
415
  ui,
416
416
  seo,
417
+ auth,
417
418
  integrations = [],
418
419
  vite = {},
419
420
  ...rest
420
421
  } = options
421
422
 
422
- const hasFlags = Boolean(solid || security || i18n || cms || ui || seo)
423
+ const hasFlags = Boolean(solid || security || i18n || cms || ui || seo || auth)
423
424
 
424
425
  return {
425
426
  ...(site ? { site } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimelight/config",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "description": "Rimelight Entertainment's shared configuration package",
6
6
  "homepage": "https://rimelight.com/docs",
@@ -46,7 +46,7 @@
46
46
  "access": "public"
47
47
  },
48
48
  "devDependencies": {
49
- "@astrojs/cloudflare": "14.3.1",
49
+ "@astrojs/cloudflare": "14.3.2",
50
50
  "astro": "7.3.3",
51
51
  "drizzle-kit": "0.31.10",
52
52
  "typescript": "6.0.3",
@@ -55,11 +55,12 @@
55
55
  "peerDependencies": {
56
56
  "@astrojs/cloudflare": ">=14.0.0",
57
57
  "@astrojs/solid-js": ">=7.0.0",
58
- "@rimelight/cms": "0.0.14",
59
- "@rimelight/i18n": "0.0.16",
60
- "@rimelight/security": "0.0.17",
61
- "@rimelight/seo": "0.0.11",
62
- "@rimelight/ui": "0.0.55",
58
+ "@rimelight/auth": "0.0.10",
59
+ "@rimelight/cms": "0.0.17",
60
+ "@rimelight/i18n": "0.0.17",
61
+ "@rimelight/security": "0.0.19",
62
+ "@rimelight/seo": "0.0.13",
63
+ "@rimelight/ui": "0.0.57",
63
64
  "astro": ">=7.0.0",
64
65
  "drizzle-kit": ">=0.30.0"
65
66
  },
@@ -70,6 +71,9 @@
70
71
  "@astrojs/solid-js": {
71
72
  "optional": true
72
73
  },
74
+ "@rimelight/auth": {
75
+ "optional": true
76
+ },
73
77
  "@rimelight/cms": {
74
78
  "optional": true
75
79
  },