Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@guardian/atoms-rendering

Package Overview
Dependencies
Maintainers
46
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/atoms-rendering - npm Package Compare versions

Comparing version 25.1.0 to 25.1.1

6

CHANGELOG.md
# @guardian/atoms-rendering
## 25.1.1
### Patch Changes
- 0e19d91: Adding data-ignore attribute to KnowledgeQuiz atom ordered lists to remove duplicate list numbers
## 25.1.0

@@ -4,0 +10,0 @@

2

cjs/KnowledgeQuiz.js

@@ -22,3 +22,3 @@ 'use strict';

const haveAllQuestionsBeenAnswered = Object.keys(quizSelection).length === questions.length;
return (jsxRuntime.jsxs("form", { "data-atom-id": id, "data-atom-type": "knowledgequiz", children: [haveAllQuestionsBeenAnswered && (jsxRuntime.jsx("div", { "data-testid": "quiz-results-block-top", children: jsxRuntime.jsx(Result, { quizSelection: quizSelection, resultGroups: resultGroups, sharingUrls: sharingUrls }) })), jsxRuntime.jsx("ol", { children: questions.map((question, idx) => (jsxRuntime.jsx(Question, { id: question.id, number: idx + 1, text: question.text, imageUrl: question.imageUrl, imageAlt: question.imageAlt, answers: question.answers, quizSelection: quizSelection, setQuizSelection: setQuizSelection, theme: theme }, question.id))) }), haveAllQuestionsBeenAnswered && (jsxRuntime.jsx("div", { "data-testid": "quiz-results-block-top", children: jsxRuntime.jsx(Result, { quizSelection: quizSelection, resultGroups: resultGroups, sharingUrls: sharingUrls }) }))] }));
return (jsxRuntime.jsxs("form", { "data-atom-id": id, "data-atom-type": "knowledgequiz", children: [haveAllQuestionsBeenAnswered && (jsxRuntime.jsx("div", { "data-testid": "quiz-results-block-top", children: jsxRuntime.jsx(Result, { quizSelection: quizSelection, resultGroups: resultGroups, sharingUrls: sharingUrls }) })), jsxRuntime.jsx("ol", { "data-ignore": "global-ol-styling", children: questions.map((question, idx) => (jsxRuntime.jsx(Question, { id: question.id, number: idx + 1, text: question.text, imageUrl: question.imageUrl, imageAlt: question.imageAlt, answers: question.answers, quizSelection: quizSelection, setQuizSelection: setQuizSelection, theme: theme }, question.id))) }), haveAllQuestionsBeenAnswered && (jsxRuntime.jsx("div", { "data-testid": "quiz-results-block-top", children: jsxRuntime.jsx(Result, { quizSelection: quizSelection, resultGroups: resultGroups, sharingUrls: sharingUrls }) }))] }));
};

@@ -25,0 +25,0 @@ const Question = ({ id, text, imageUrl, imageAlt, answers, number, quizSelection, setQuizSelection, theme, }) => {

@@ -18,3 +18,3 @@ import { jsxs, jsx } from '@emotion/react/jsx-runtime';

const haveAllQuestionsBeenAnswered = Object.keys(quizSelection).length === questions.length;
return (jsxs("form", { "data-atom-id": id, "data-atom-type": "knowledgequiz", children: [haveAllQuestionsBeenAnswered && (jsx("div", { "data-testid": "quiz-results-block-top", children: jsx(Result, { quizSelection: quizSelection, resultGroups: resultGroups, sharingUrls: sharingUrls }) })), jsx("ol", { children: questions.map((question, idx) => (jsx(Question, { id: question.id, number: idx + 1, text: question.text, imageUrl: question.imageUrl, imageAlt: question.imageAlt, answers: question.answers, quizSelection: quizSelection, setQuizSelection: setQuizSelection, theme: theme }, question.id))) }), haveAllQuestionsBeenAnswered && (jsx("div", { "data-testid": "quiz-results-block-top", children: jsx(Result, { quizSelection: quizSelection, resultGroups: resultGroups, sharingUrls: sharingUrls }) }))] }));
return (jsxs("form", { "data-atom-id": id, "data-atom-type": "knowledgequiz", children: [haveAllQuestionsBeenAnswered && (jsx("div", { "data-testid": "quiz-results-block-top", children: jsx(Result, { quizSelection: quizSelection, resultGroups: resultGroups, sharingUrls: sharingUrls }) })), jsx("ol", { "data-ignore": "global-ol-styling", children: questions.map((question, idx) => (jsx(Question, { id: question.id, number: idx + 1, text: question.text, imageUrl: question.imageUrl, imageAlt: question.imageAlt, answers: question.answers, quizSelection: quizSelection, setQuizSelection: setQuizSelection, theme: theme }, question.id))) }), haveAllQuestionsBeenAnswered && (jsx("div", { "data-testid": "quiz-results-block-top", children: jsx(Result, { quizSelection: quizSelection, resultGroups: resultGroups, sharingUrls: sharingUrls }) }))] }));
};

@@ -21,0 +21,0 @@ const Question = ({ id, text, imageUrl, imageAlt, answers, number, quizSelection, setQuizSelection, theme, }) => {

{
"name": "@guardian/atoms-rendering",
"version": "25.1.0",
"version": "25.1.1",
"homepage": "https://github.com/guardian/csnx/tree/main/libs/@guardian/atoms-rendering#readme",

@@ -42,3 +42,3 @@ "bugs": {

"readme": "ERROR: No README data found!",
"_id": "@guardian/atoms-rendering@25.1.0"
"_id": "@guardian/atoms-rendering@25.1.1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc