Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/csk-marketing-site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniformdev/csk-marketing-site",
"version": "6.1.60",
"version": "6.1.61",
"private": true,
"engines": {
"yarn": "please-use-npm",
Expand Down
6 changes: 3 additions & 3 deletions apps/csk-marketing-site/src/utils/canvas/canvasClients.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { CanvasClient } from '@uniformdev/canvas';

export const getCanvasClient = () => {
const projectId = process.env.UNIFORM_PROJECT_ID;
const apiKey = process.env.UNIFORM_API_KEY;
const apiHost = process.env.UNIFORM_CLI_BASE_URL || 'https://uniform.app';
const edgeApiHost = process.env.UNIFORM_CLI_BASE_EDGE_URL || 'https://uniform.global';
const projectId = process.env.UNIFORM_PROJECT_ID;

if (!projectId) throw new Error('projectId is not specified. CanvasClient cannot be instantiated.');

if (!apiKey) throw new Error('apiKey is not specified. CanvasClient cannot be instantiated');

if (!apiHost) throw new Error('apiHost is not specified. CanvasClient cannot be instantiated');

if (!edgeApiHost) throw new Error('edgeApiHost is not specified. CanvasClient cannot be instantiated');

if (!projectId) throw new Error('projectId is not specified. CanvasClient cannot be instantiated.');

return new CanvasClient({
apiKey,
apiHost,
Expand Down
6 changes: 3 additions & 3 deletions apps/csk-marketing-site/src/utils/canvas/contentClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { RecipeItem } from '@/components/custom-canvas/RecipeList';

export const getContentClient = () =>
new ContentClient({
apiKey: process.env.UNIFORM_API_KEY,
apiHost: process.env.UNIFORM_CLI_BASE_URL || 'https://canary.uniform.app',
projectId: process.env.UNIFORM_PROJECT_ID,
edgeApiHost: process.env.UNIFORM_CLI_BASE_EDGE_URL || 'https://canary.uniform.global',
apiKey: process.env.UNIFORM_API_KEY,
apiHost: process.env.UNIFORM_CLI_BASE_URL || 'https://uniform.app',
edgeApiHost: process.env.UNIFORM_CLI_BASE_EDGE_URL || 'https://uniform.global',
});

export const getRecipesByCategory = async ({
Expand Down
2 changes: 1 addition & 1 deletion apps/csk-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniformdev/csk-storybook",
"version": "6.1.60",
"version": "6.1.61",
"description": "CSK vNext Storybook is an interactive Storybook build showcasing components from the CSK vNext component starter kit. It provides detailed documentation, live previews, and testing capabilities for easy integration into your projects.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion apps/csk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniformdev/component-starter-kit",
"version": "6.1.60",
"version": "6.1.61",
"private": true,
"engines": {
"yarn": "please-use-npm",
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csk-packages",
"version": "6.1.60",
"version": "6.1.61",
"private": true,
"scripts": {
"build": "turbo build",
Expand Down
2 changes: 1 addition & 1 deletion packages/csk-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniformdev/csk-cli",
"version": "6.1.60",
"version": "6.1.61",
"description": "Command-line interface (CLI) tool designed to streamline the development workflow within Uniform projects. It provides commands for pulling additional data and generating components based on Canvas data",
"license": "SEE LICENSE IN LICENSE.txt",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/csk-cli/src/commands/pull/pull-locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export const pullLocales = async () => {
}

const client = new LocaleClient({
apiHost: process.env.UNIFORM_CLI_BASE_URL,
apiKey: process.env.UNIFORM_API_KEY,
projectId: process.env.UNIFORM_PROJECT_ID,
apiKey: process.env.UNIFORM_API_KEY,
apiHost: process.env.UNIFORM_CLI_BASE_URL || 'https://uniform.app',
});

const localeResponse: LocalesGetResponse = await client.get();
Expand Down
4 changes: 2 additions & 2 deletions packages/csk-cli/src/commands/scaffold/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import { supportedParameterHandlers } from './parameterHandlers';
import { ParameterHandler } from './types';

export const getCanvasClient = async () => {
const apiHost = process.env.UNIFORM_CLI_BASE_URL || 'https://uniform.app';
const edgeApiHost = process.env.UNIFORM_CLI_BASE_EDGE_URL || 'https://uniform.global';
let projectId = process.env.UNIFORM_PROJECT_ID;
let apiKey = process.env.UNIFORM_API_KEY;
const apiHost = process.env.UNIFORM_CLI_BASE_URL || 'https://uniform.app';
const edgeApiHost = process.env.UNIFORM_CLI_BASE_EDGE_URL || 'https://uniform.global';

if (!projectId) {
projectId = await input({
Expand Down
2 changes: 1 addition & 1 deletion packages/csk-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniformdev/csk-components",
"version": "6.1.60",
"version": "6.1.61",
"description": "Components Starter Kit that provides a set of basic components for building websites within a Uniform project",
"license": "SEE LICENSE IN LICENSE.txt",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const Breadcrumbs: FC<
const client = new ProjectMapClient({
projectId: process.env.UNIFORM_PROJECT_ID,
apiKey: process.env.UNIFORM_API_KEY,
apiHost: process.env.UNIFORM_CLI_BASE_URL || 'https://uniform.app',
});

const { projectMapNodes } = compositionCache.getUniformComposition({ id: context?._id }) || {};
Expand All @@ -51,6 +52,8 @@ export const Breadcrumbs: FC<
? await new CanvasClient({
projectId: process.env.UNIFORM_PROJECT_ID,
apiKey: process.env.UNIFORM_API_KEY,
apiHost: process.env.UNIFORM_CLI_BASE_URL || 'https://uniform.app',
edgeApiHost: process.env.UNIFORM_CLI_BASE_EDGE_URL || 'https://uniform.global',
})
.getCompositionById({ compositionId: node.compositionId })
.then(({ composition }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ImageGallery: FC<ImageGalleryProps & ReplaceFieldsWithAssets<ImageGalleryP
const slotsToRender = {
...slots.imageGalleryItems,
items: !items?.length
? slots.imageGalleryItems.items
? slots.imageGalleryItems?.items || []
: items.map((item, index) => ({
_id: `image-${index}-${item?.id}`,
component: <BaseImage src={item.url} alt={item.title || ''} style={{ objectFit: 'cover' }} fill />,
Expand Down
6 changes: 3 additions & 3 deletions packages/csk-components/src/utils/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { MetadataRoute } from 'next';
import { ProjectMapClient, getNodeActiveCompositionEdition } from '@uniformdev/project-map';

const projectMap = new ProjectMapClient({
apiHost: process.env.UNIFORM_CLI_BASE_URL! || 'https://uniform.app',
apiKey: process.env.UNIFORM_API_KEY!,
projectId: process.env.UNIFORM_PROJECT_ID!,
projectId: process.env.UNIFORM_PROJECT_ID,
apiKey: process.env.UNIFORM_API_KEY,
apiHost: process.env.UNIFORM_CLI_BASE_URL || 'https://uniform.app',
});

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/csk-recipes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniformdev/csk-recipes",
"version": "6.1.60",
"version": "6.1.61",
"description": "command-line interface (CLI) and utility functions to help you work with recipes in a CSK project. It simplifies project initialization by allowing you to choose templates and include specific recipes",
"license": "SEE LICENSE IN LICENSE.txt",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/design-extensions-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniformdev/design-extensions-tools",
"version": "6.1.60",
"version": "6.1.61",
"description": "Command-line interface (CLI) tool and a set of utilities for working with design extension integrations",
"license": "SEE LICENSE IN LICENSE.txt",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repo/eslint-config",
"version": "6.1.60",
"version": "6.1.61",
"type": "module",
"private": true,
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/internal-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repo/internal-scripts",
"version": "6.1.60",
"version": "6.1.61",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repo/typescript-config",
"version": "6.1.60",
"version": "6.1.61",
"private": true,
"license": "MIT",
"publishConfig": {
Expand Down