From a9e81cd0086a9bf954afdc0f8afc707291353268 Mon Sep 17 00:00:00 2001 From: Diane Cordier Date: Wed, 30 Oct 2024 10:22:54 +0100 Subject: [PATCH] [FEATURE] Ne pas permettre l'ajout d'une Flashcards ou Embed dans un Stepper (PIX-15063) (#8) feat(modulix-editor): remove embed and flashcards in elements schema for stepper. --- modulix.json-schema.js | 153 ----------------------------------------- 1 file changed, 153 deletions(-) diff --git a/modulix.json-schema.js b/modulix.json-schema.js index c2c9d62..5513041 100644 --- a/modulix.json-schema.js +++ b/modulix.json-schema.js @@ -873,159 +873,6 @@ export const schema = { "additionalProperties": false, "title": "download" }, - { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "type": { - "type": "string", - "enum": [ - "embed" - ] - }, - "isCompletionRequired": { - "type": "boolean" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - }, - "instruction": { - "type": "string", - "format": "jodit" - }, - "height": { - "type": "number", - "minimum": 0 - } - }, - "required": [ - "id", - "type", - "isCompletionRequired", - "title", - "url", - "height" - ], - "additionalProperties": false, - "title": "embed" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "type": { - "type": "string", - "enum": [ - "flashcards" - ] - }, - "instruction": { - "type": "string", - "format": "jodit" - }, - "title": { - "type": "string" - }, - "introImage": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "url" - ], - "additionalProperties": false - }, - "cards": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "recto": { - "type": "object", - "properties": { - "image": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "url" - ], - "additionalProperties": false - }, - "text": { - "type": "string" - } - }, - "required": [ - "text" - ], - "additionalProperties": false - }, - "verso": { - "type": "object", - "properties": { - "image": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "url" - ], - "additionalProperties": false - }, - "text": { - "type": "string", - "format": "jodit" - } - }, - "required": [ - "text" - ], - "additionalProperties": false - } - }, - "required": [ - "id" - ], - "additionalProperties": false, - "title": "card" - } - } - }, - "required": [ - "id", - "type", - "title" - ], - "additionalProperties": false, - "title": "flashcards" - }, { "type": "object", "properties": {