@micromag/screen-quiz 0.4.98 → 0.4.101

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/es/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ForwardedRef } from 'react';
1
+ import React, { ForwardedRef } from 'react';
3
2
  import { TextElement, QuizAnswer, ImageElement, VisualElement, ButtonLayout, BoxStyle, TextStyle, Color, BackgroundElement, Header, Footer, Transitions, MediaElement } from '@micromag/core';
4
3
 
5
4
  interface QuizScreenProps {
@@ -36,7 +35,7 @@ interface QuizScreenProps {
36
35
  mediaRef?: ForwardedRef<MediaElement> | null;
37
36
  className?: string | null;
38
37
  }
39
- declare function QuizScreen({ id, layout, keypadLayout, question, answers, result, resultImage, buttonsLayout, buttonsStyle, inactiveButtonsStyle, buttonsTextStyle, inactiveButtonsTextStyle, feedbackTextStyle, numbersTextStyle, goodAnswerColor, badAnswerColor, withoutTrueFalse, spacing, header, footer, background, current, preload, ready, transitions, transitionStagger, type, mediaRef: customMediaRef, className, }: QuizScreenProps): react_jsx_runtime.JSX.Element;
38
+ declare function QuizScreen({ id, layout, keypadLayout, question, answers, result, resultImage, buttonsLayout, buttonsStyle, inactiveButtonsStyle, buttonsTextStyle, inactiveButtonsTextStyle, feedbackTextStyle, numbersTextStyle, goodAnswerColor, badAnswerColor, withoutTrueFalse, spacing, header, footer, background, current, preload, ready, transitions, transitionStagger, type, mediaRef: customMediaRef, className, }: QuizScreenProps): React.JSX.Element;
40
39
 
41
40
  interface QuizMultipleScreenProps {
42
41
  id?: string | null;
@@ -78,7 +77,7 @@ interface QuizMultipleScreenProps {
78
77
  mediaRef?: ForwardedRef<MediaElement> | null;
79
78
  className?: string | null;
80
79
  }
81
- declare function QuizMultipleScreen({ id, layout, introLayout, title, description, questions, results, buttonsStyle, inactiveButtonsStyle, buttonsTextStyle, inactiveButtonsTextStyle, questionsHeadingStyle, resultsHeadingStyle, resultsTextStyle, feedbackTextStyle, numbersTextStyle, goodAnswerColor, badAnswerColor, spacing, background, introBackground, introButton, nextButton, header, footer, current, active, transitions, transitionStagger, type, mediaRef: customMediaRef, className, }: QuizMultipleScreenProps): react_jsx_runtime.JSX.Element;
80
+ declare function QuizMultipleScreen({ id, layout, introLayout, title, description, questions, results, buttonsStyle, inactiveButtonsStyle, buttonsTextStyle, inactiveButtonsTextStyle, questionsHeadingStyle, resultsHeadingStyle, resultsTextStyle, feedbackTextStyle, numbersTextStyle, goodAnswerColor, badAnswerColor, spacing, background, introBackground, introButton, nextButton, header, footer, current, active, transitions, transitionStagger, type, mediaRef: customMediaRef, className, }: QuizMultipleScreenProps): React.JSX.Element;
82
81
 
83
82
  declare const _default: ({
84
83
  id: string;
package/es/index.js CHANGED
@@ -24,7 +24,7 @@ import Button$1, { RichButton } from '@micromag/element-button';
24
24
  import Keypad from '@micromag/element-keypad';
25
25
  import { jsx, jsxs } from 'react/jsx-runtime';
26
26
  import { useTransition, easings, animated } from '@react-spring/web';
27
- import isArray from 'lodash/isArray';
27
+ import isArray from 'lodash-es/isArray';
28
28
 
29
29
  var styles$4 = {"container":"micromag-screen-quiz-answers-container","items":"micromag-screen-quiz-answers-items","emptyAnswer":"micromag-screen-quiz-answers-emptyAnswer","item":"micromag-screen-quiz-answers-item","isPlaceholder":"micromag-screen-quiz-answers-isPlaceholder","userAnswer":"micromag-screen-quiz-answers-userAnswer","otherAnswer":"micromag-screen-quiz-answers-otherAnswer","withoutOpacity":"micromag-screen-quiz-answers-withoutOpacity","button":"micromag-screen-quiz-answers-button","withIcon":"micromag-screen-quiz-answers-withIcon","withSquareItems":"micromag-screen-quiz-answers-withSquareItems","resultIcon":"micromag-screen-quiz-answers-resultIcon","answered":"micromag-screen-quiz-answers-answered","rightAnswer":"micromag-screen-quiz-answers-rightAnswer","faIcon":"micromag-screen-quiz-answers-faIcon","itemContent":"micromag-screen-quiz-answers-itemContent"};
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-quiz",
3
- "version": "0.4.98",
3
+ "version": "0.4.101",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -11,6 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/urbania-media/micromag-js.git"
13
13
  },
14
+ "license": "ISC",
14
15
  "author": {
15
16
  "name": "Folklore",
16
17
  "email": "info@folklore.email"
@@ -29,10 +30,10 @@
29
30
  "email": "jc@folklore.email"
30
31
  }
31
32
  ],
32
- "license": "ISC",
33
+ "sideEffects": [
34
+ "**/*.css"
35
+ ],
33
36
  "type": "module",
34
- "module": "es/index.js",
35
- "style": "assets/css/styles.css",
36
37
  "exports": {
37
38
  ".": {
38
39
  "types": "./es/index.d.ts",
@@ -42,54 +43,56 @@
42
43
  "./assets/css/styles": "./assets/css/styles.css",
43
44
  "./assets/css/styles.css": "./assets/css/styles.css"
44
45
  },
46
+ "module": "es/index.js",
47
+ "types": "es/index.d.ts",
48
+ "style": "assets/css/styles.css",
45
49
  "files": [
46
50
  "lib",
47
51
  "es",
48
52
  "assets"
49
53
  ],
50
54
  "scripts": {
55
+ "build": "../../scripts/prepare-package.sh --types",
51
56
  "clean": "rm -rf es && rm -rf lib && rm -rf assets && rm -rf styles",
52
- "prepublishOnly": "npm run build",
53
- "build": "../../scripts/prepare-package.sh --types"
54
- },
55
- "devDependencies": {
56
- "react": "^19.0.0",
57
- "react-dom": "^19.0.0"
58
- },
59
- "peerDependencies": {
60
- "react": "^19.0.0",
61
- "react-dom": "^19.0.0"
57
+ "prepublishOnly": "npm run build"
62
58
  },
63
59
  "dependencies": {
64
60
  "@babel/runtime": "^7.28.6",
65
61
  "@fortawesome/fontawesome-svg-core": "^7.2.0",
66
62
  "@fortawesome/free-solid-svg-icons": "^7.2.0",
67
63
  "@fortawesome/react-fontawesome": "^3.2.0",
68
- "@micromag/core": "^0.4.98",
69
- "@micromag/data": "^0.4.98",
70
- "@micromag/element-background": "^0.4.98",
71
- "@micromag/element-button": "^0.4.98",
72
- "@micromag/element-container": "^0.4.98",
73
- "@micromag/element-footer": "^0.4.98",
74
- "@micromag/element-header": "^0.4.98",
75
- "@micromag/element-heading": "^0.4.98",
76
- "@micromag/element-keypad": "^0.4.98",
77
- "@micromag/element-layout": "^0.4.98",
78
- "@micromag/element-scroll": "^0.4.98",
79
- "@micromag/element-text": "^0.4.98",
80
- "@micromag/element-visual": "^0.4.98",
81
- "@micromag/transforms": "^0.4.98",
64
+ "@micromag/core": "^0.4.100",
65
+ "@micromag/data": "^0.4.101",
66
+ "@micromag/element-background": "^0.4.100",
67
+ "@micromag/element-button": "^0.4.100",
68
+ "@micromag/element-container": "^0.4.100",
69
+ "@micromag/element-footer": "^0.4.100",
70
+ "@micromag/element-header": "^0.4.100",
71
+ "@micromag/element-heading": "^0.4.100",
72
+ "@micromag/element-keypad": "^0.4.100",
73
+ "@micromag/element-layout": "^0.4.100",
74
+ "@micromag/element-scroll": "^0.4.100",
75
+ "@micromag/element-text": "^0.4.100",
76
+ "@micromag/element-visual": "^0.4.100",
77
+ "@micromag/transforms": "^0.4.100",
82
78
  "@react-spring/core": "^10.0.3",
83
79
  "@react-spring/web": "^10.0.3",
84
80
  "classnames": "^2.2.6",
85
- "lodash": "^4.17.23",
81
+ "lodash-es": "^4.17.23",
86
82
  "react-intl": "^8.1.3 || ^10.0.0",
87
83
  "uuid": "^9.0.0"
88
84
  },
85
+ "devDependencies": {
86
+ "react": "^19.0.0",
87
+ "react-dom": "^19.0.0"
88
+ },
89
+ "peerDependencies": {
90
+ "react": "^19.0.0",
91
+ "react-dom": "^19.0.0"
92
+ },
89
93
  "publishConfig": {
90
94
  "access": "public",
91
95
  "registry": "https://registry.npmjs.org/"
92
96
  },
93
- "gitHead": "5b90ff3e707ec3b96a1c6ae07812ce29a105d1c8",
94
- "types": "es/index.d.ts"
97
+ "gitHead": "88aec42cff116b686d2331bf397ba2ada2fa393d"
95
98
  }