@unhead/schema-org 2.1.9 → 3.0.0-beta.10

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 (68) hide show
  1. package/dist/index.d.mts +4 -4
  2. package/dist/index.d.ts +4 -4
  3. package/dist/index.mjs +2 -44
  4. package/dist/react.d.mts +3 -3
  5. package/dist/react.d.ts +3 -3
  6. package/dist/react.mjs +3 -3
  7. package/dist/shared/schema-org.BS2Q1uTx.d.mts +11 -0
  8. package/dist/shared/{schema-org.UT1u1UYq.d.mts → schema-org.C1OXVKVP.d.ts} +142 -48
  9. package/dist/shared/schema-org.C7IeLKiX.d.ts +11 -0
  10. package/dist/shared/{schema-org.CFcsqFfN.d.mts → schema-org.CX_95Tmq.d.mts} +2 -22
  11. package/dist/shared/{schema-org.CFcsqFfN.d.ts → schema-org.CX_95Tmq.d.ts} +2 -22
  12. package/dist/shared/{schema-org.CAKsqzbX.d.ts → schema-org.Cxijls86.d.mts} +142 -48
  13. package/dist/shared/schema-org.DvWGLdBv.mjs +1932 -0
  14. package/dist/solid-js.d.mts +3 -3
  15. package/dist/solid-js.d.ts +3 -3
  16. package/dist/solid-js.mjs +3 -3
  17. package/dist/svelte.d.mts +3 -3
  18. package/dist/svelte.d.ts +3 -3
  19. package/dist/svelte.mjs +3 -3
  20. package/dist/vue.d.mts +38 -38
  21. package/dist/vue.d.ts +38 -38
  22. package/dist/vue.mjs +47 -43
  23. package/package.json +11 -11
  24. package/dist/chunks/index.mjs +0 -23
  25. package/dist/chunks/index10.mjs +0 -63
  26. package/dist/chunks/index11.mjs +0 -35
  27. package/dist/chunks/index12.mjs +0 -48
  28. package/dist/chunks/index13.mjs +0 -36
  29. package/dist/chunks/index14.mjs +0 -25
  30. package/dist/chunks/index15.mjs +0 -37
  31. package/dist/chunks/index16.mjs +0 -27
  32. package/dist/chunks/index17.mjs +0 -34
  33. package/dist/chunks/index18.mjs +0 -32
  34. package/dist/chunks/index19.mjs +0 -31
  35. package/dist/chunks/index2.mjs +0 -12
  36. package/dist/chunks/index20.mjs +0 -31
  37. package/dist/chunks/index21.mjs +0 -30
  38. package/dist/chunks/index22.mjs +0 -30
  39. package/dist/chunks/index23.mjs +0 -82
  40. package/dist/chunks/index24.mjs +0 -14
  41. package/dist/chunks/index25.mjs +0 -33
  42. package/dist/chunks/index26.mjs +0 -31
  43. package/dist/chunks/index27.mjs +0 -29
  44. package/dist/chunks/index28.mjs +0 -12
  45. package/dist/chunks/index29.mjs +0 -46
  46. package/dist/chunks/index3.mjs +0 -317
  47. package/dist/chunks/index30.mjs +0 -53
  48. package/dist/chunks/index31.mjs +0 -41
  49. package/dist/chunks/index32.mjs +0 -26
  50. package/dist/chunks/index33.mjs +0 -47
  51. package/dist/chunks/index34.mjs +0 -29
  52. package/dist/chunks/index35.mjs +0 -34
  53. package/dist/chunks/index36.mjs +0 -33
  54. package/dist/chunks/index37.mjs +0 -34
  55. package/dist/chunks/index38.mjs +0 -51
  56. package/dist/chunks/index39.mjs +0 -17
  57. package/dist/chunks/index4.mjs +0 -54
  58. package/dist/chunks/index40.mjs +0 -29
  59. package/dist/chunks/index5.mjs +0 -31
  60. package/dist/chunks/index6.mjs +0 -29
  61. package/dist/chunks/index7.mjs +0 -35
  62. package/dist/chunks/index8.mjs +0 -18
  63. package/dist/chunks/index9.mjs +0 -20
  64. package/dist/shared/schema-org.B9Q-o8S0.mjs +0 -877
  65. package/dist/shared/schema-org.BR4WcSqZ.d.ts +0 -21
  66. package/dist/shared/schema-org.CrNDsWck.mjs +0 -19
  67. package/dist/shared/schema-org.oFHFm6my.d.mts +0 -21
  68. package/dist/shared/schema-org.zHUqdMMo.mjs +0 -27
@@ -1,21 +0,0 @@
1
- import * as unhead_types from 'unhead/types';
2
- import { M as MetaInput } from './schema-org.CFcsqFfN.js';
3
-
4
- interface PluginSchemaOrgOptions {
5
- minify?: boolean;
6
- trailingSlash?: boolean;
7
- }
8
- declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
9
- /**
10
- * @deprecated Providing a plugin is no longer required. You can remove this code.
11
- */
12
- declare function PluginSchemaOrg(options?: PluginSchemaOrgOptions & {
13
- resolveMeta?: () => Record<string, any>;
14
- }): unhead_types.HeadPluginInput;
15
- /**
16
- * @deprecated Providing a plugin is no longer required. You can remove this code.
17
- */
18
- declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
19
-
20
- export { PluginSchemaOrg as P, SchemaOrgUnheadPlugin as S, UnheadSchemaOrg as U };
21
- export type { PluginSchemaOrgOptions as a };
@@ -1,19 +0,0 @@
1
- import { d as defineSchemaOrgResolver } from './schema-org.B9Q-o8S0.mjs';
2
-
3
- const ratingResolver = defineSchemaOrgResolver({
4
- cast(node) {
5
- if (node === "number") {
6
- return {
7
- ratingValue: node
8
- };
9
- }
10
- return node;
11
- },
12
- defaults: {
13
- "@type": "Rating",
14
- "bestRating": 5,
15
- "worstRating": 1
16
- }
17
- });
18
-
19
- export { ratingResolver as r };
@@ -1,21 +0,0 @@
1
- import * as unhead_types from 'unhead/types';
2
- import { M as MetaInput } from './schema-org.CFcsqFfN.mjs';
3
-
4
- interface PluginSchemaOrgOptions {
5
- minify?: boolean;
6
- trailingSlash?: boolean;
7
- }
8
- declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
9
- /**
10
- * @deprecated Providing a plugin is no longer required. You can remove this code.
11
- */
12
- declare function PluginSchemaOrg(options?: PluginSchemaOrgOptions & {
13
- resolveMeta?: () => Record<string, any>;
14
- }): unhead_types.HeadPluginInput;
15
- /**
16
- * @deprecated Providing a plugin is no longer required. You can remove this code.
17
- */
18
- declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
19
-
20
- export { PluginSchemaOrg as P, SchemaOrgUnheadPlugin as S, UnheadSchemaOrg as U };
21
- export type { PluginSchemaOrgOptions as a };
@@ -1,27 +0,0 @@
1
- import { d as defineSchemaOrgResolver, e as resolveRelation } from './schema-org.B9Q-o8S0.mjs';
2
-
3
- const quantitativeValueResolver = defineSchemaOrgResolver({
4
- cast(node) {
5
- if (typeof node === "number") {
6
- return {
7
- value: node
8
- };
9
- }
10
- return node;
11
- },
12
- defaults: {
13
- "@type": "QuantitativeValue"
14
- }
15
- });
16
- const monetaryAmountResolver = defineSchemaOrgResolver({
17
- defaults: {
18
- "@type": "MonetaryAmount"
19
- },
20
- resolve(node, ctx) {
21
- if (typeof node.value !== "number")
22
- node.value = resolveRelation(node.value, ctx, quantitativeValueResolver);
23
- return node;
24
- }
25
- });
26
-
27
- export { monetaryAmountResolver as m, quantitativeValueResolver as q };