From 0a609da270534227194546aa57f3111ecba8e7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Nuno=20Mota?= Date: Sat, 22 Jul 2023 18:35:29 +0000 Subject: [PATCH] Replace unsupported value 'string' in controls --- .../src/modules/store/csf/normalizeInputTypes.test.ts | 8 ++++---- docs/snippets/angular/arg-types-in-meta.ts.mdx | 2 +- docs/snippets/common/arg-types-in-meta.js.mdx | 2 +- docs/snippets/common/arg-types-in-meta.ts-4-9.mdx | 2 +- docs/snippets/common/arg-types-in-meta.ts.mdx | 2 +- docs/snippets/common/arg-types-in-preview.js.mdx | 2 +- docs/snippets/common/arg-types-in-preview.ts-4-9.mdx | 2 +- docs/snippets/common/arg-types-in-preview.ts.mdx | 2 +- docs/snippets/web-components/arg-types-in-meta.js.mdx | 2 +- docs/snippets/web-components/arg-types-in-meta.ts.mdx | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/code/lib/preview-api/src/modules/store/csf/normalizeInputTypes.test.ts b/code/lib/preview-api/src/modules/store/csf/normalizeInputTypes.test.ts index c06939e9cc59..5cdb504e94eb 100644 --- a/code/lib/preview-api/src/modules/store/csf/normalizeInputTypes.test.ts +++ b/code/lib/preview-api/src/modules/store/csf/normalizeInputTypes.test.ts @@ -9,7 +9,7 @@ describe('normalizeInputType', () => { { name: 'name', type: { name: 'string' }, - control: { type: 'string' }, + control: { type: 'text' }, description: 'description', defaultValue: 'defaultValue', }, @@ -18,7 +18,7 @@ describe('normalizeInputType', () => { ).toEqual({ name: 'name', type: { name: 'string' }, - control: { type: 'string' }, + control: { type: 'text' }, description: 'description', defaultValue: 'defaultValue', }); @@ -29,7 +29,7 @@ describe('normalizeInputType', () => { normalizeInputType( { type: 'string', - control: 'string', + control: 'text', description: 'description', defaultValue: 'defaultValue', }, @@ -38,7 +38,7 @@ describe('normalizeInputType', () => { ).toEqual({ name: 'arg', type: { name: 'string' }, - control: { type: 'string' }, + control: { type: 'text' }, description: 'description', defaultValue: 'defaultValue', }); diff --git a/docs/snippets/angular/arg-types-in-meta.ts.mdx b/docs/snippets/angular/arg-types-in-meta.ts.mdx index 1cc7933b518a..1bc7fd43f2f5 100644 --- a/docs/snippets/angular/arg-types-in-meta.ts.mdx +++ b/docs/snippets/angular/arg-types-in-meta.ts.mdx @@ -10,7 +10,7 @@ const meta: Meta