Skip to content

Commit

Permalink
chore: bring new decap-cms packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Luqmaan Essop committed Dec 20, 2023
1 parent 89f4d07 commit 049d4eb
Show file tree
Hide file tree
Showing 6 changed files with 3,208 additions and 209 deletions.
2 changes: 2 additions & 0 deletions apps/decap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"@amazeelabs/graphql-directives": "^1.2.2",
"@custom/schema": "workspace:*",
"@custom/ui": "workspace:*",
"decap-cms-app": "^3.0.12",
"decap-cms-core": "^3.2.8",
"graphql": "^16.7.1",
"nanoid": "^4.0.2",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/decap/src/collections/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
LocaleSource,
MediaImageSource,
} from '@custom/schema/source';
import type { CmsCollection, CmsField } from 'decap-cms-core';
import fs from 'fs';
import type { CmsCollection, CmsField } from 'netlify-cms-core';
import yaml from 'yaml';
import { z } from 'zod';

Expand Down
2 changes: 1 addition & 1 deletion apps/decap/src/helpers/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
OperationVariables,
} from '@custom/schema';
import operations from '@custom/schema/operations';
import { PreviewTemplateComponentProps } from 'decap-cms-core';
import { buildSchema, graphql, GraphQLFieldResolver } from 'graphql';
import { PreviewTemplateComponentProps } from 'netlify-cms-core';
import { useEffect, useState } from 'react';
import { ZodType, ZodTypeDef } from 'zod';

Expand Down
2 changes: 1 addition & 1 deletion apps/decap/src/helpers/uuid.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CmsWidgetControlProps } from 'decap-cms-core';
import { nanoid } from 'nanoid';
import { CmsWidgetControlProps } from 'netlify-cms-core';
import React from 'react';

// Reusable UUID widget for Decap CMS.
Expand Down
2 changes: 1 addition & 1 deletion apps/decap/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PreviewDecapPageQuery } from '@custom/schema';
import { Page } from '@custom/ui/routes/Page';
import CMS from 'netlify-cms-app';
import CMS from 'decap-cms-app';

import css from '../node_modules/@custom/ui/build/styles.css?raw';
import { PageCollection, pageSchema } from './collections/page';
Expand Down
Loading

0 comments on commit 049d4eb

Please sign in to comment.