@agence-zef/astro 0.1.0 → 0.2.0

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/helpers.d.ts CHANGED
@@ -15,7 +15,6 @@ export declare const getSite: () => Promise<ApiSite>;
15
15
  export declare const getPage: (url: string) => Promise<ApiPage | null>;
16
16
  export declare const getCollection: ZefClient<SiteConfig>["collection"];
17
17
  export declare const getItem: ZefClient<SiteConfig>["item"];
18
- export declare const getGlobal: ZefClient<SiteConfig>["global"];
19
18
  /** Props reçues par `src/layouts/Page.astro` : une page du CMS ou un élément de collection. */
20
19
  export type LayoutProps = {
21
20
  site: ApiSite;
package/dist/helpers.js CHANGED
@@ -17,7 +17,6 @@ export const getSite = () => getClient().site();
17
17
  export const getPage = (url) => getClient().page(url);
18
18
  export const getCollection = (name, opts) => getClient().collection(name, opts);
19
19
  export const getItem = (name, slug, opts) => getClient().item(name, slug, opts);
20
- export const getGlobal = (name, opts) => getClient().global(name, opts);
21
20
  const toParam = (url) => url.replace(/^\/+|\/+$/g, "") || undefined;
22
21
  /** Toutes les routes du site : pages publiées, puis éléments des collections avec page. */
23
22
  export async function zefStaticPaths(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agence-zef/astro",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Intégration Astro du CMS ZEF : routes, rendu des sections, aperçu, composants réutilisables sans style.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,8 +42,8 @@
42
42
  "@types/node": "^24.0.0"
43
43
  },
44
44
  "dependencies": {
45
- "@agence-zef/schema": "0.1.0",
46
- "@agence-zef/sdk": "0.1.0"
45
+ "@agence-zef/sdk": "0.2.0",
46
+ "@agence-zef/schema": "0.2.0"
47
47
  },
48
48
  "homepage": "https://agence-zef.fr",
49
49
  "scripts": {