Skip to content

Commit

Permalink
Including all js map files, added to mjs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliecarey committed Feb 7, 2023
1 parent bf782b9 commit 6965bf1
Show file tree
Hide file tree
Showing 17 changed files with 61 additions and 59 deletions.
5 changes: 2 additions & 3 deletions package/govuk-esm/components/button/button.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export default Button
* Button config
*
* @typedef {object} ButtonConfig
* @property {boolean} [preventDoubleClick = false] -
* Prevent accidental double clicks on submit buttons from submitting forms
* multiple times.
* @property {boolean} [preventDoubleClick = false] - Prevent accidental double
* clicks on submit buttons from submitting forms multiple times.
*/
12 changes: 6 additions & 6 deletions package/govuk-esm/components/character-count/character-count.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,10 @@ export default CharacterCount
*
* @typedef {object} CharacterCountConfigWithMaxLength
* @property {number} [maxlength] - The maximum number of characters.
* If maxwords is provided, the maxlength option will be ignored.
* If maxwords is provided, the maxlength option will be ignored.
* @property {number} [threshold = 0] - The percentage value of the limit at
* which point the count message is displayed. If this attribute is set, the
* count message will be hidden by default.
* which point the count message is displayed. If this attribute is set, the
* count message will be hidden by default.
* @property {CharacterCountTranslations} [i18n = CHARACTER_COUNT_TRANSLATIONS] - See constant {@link CHARACTER_COUNT_TRANSLATIONS}
*/

Expand All @@ -398,10 +398,10 @@ export default CharacterCount
*
* @typedef {object} CharacterCountConfigWithMaxWords
* @property {number} [maxwords] - The maximum number of words. If maxwords is
* provided, the maxlength option will be ignored.
* provided, the maxlength option will be ignored.
* @property {number} [threshold = 0] - The percentage value of the limit at
* which point the count message is displayed. If this attribute is set, the
* count message will be hidden by default.
* which point the count message is displayed. If this attribute is set, the
* count message will be hidden by default.
* @property {CharacterCountTranslations} [i18n = CHARACTER_COUNT_TRANSLATIONS] - See constant {@link CHARACTER_COUNT_TRANSLATIONS}
*/

Expand Down
6 changes: 3 additions & 3 deletions package/govuk-esm/components/error-summary/error-summary.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ ErrorSummary.prototype.getFragmentFromUrl = function (url) {
*
* @param {HTMLElement} $input - The input
* @returns {HTMLElement} Associated legend or label, or null if no associated
* legend or label can be found
* legend or label can be found
*/
ErrorSummary.prototype.getAssociatedLegendOrLabel = function ($input) {
var $fieldset = $input.closest('fieldset')
Expand Down Expand Up @@ -209,6 +209,6 @@ export default ErrorSummary
* Error summary config
*
* @typedef {object} ErrorSummaryConfig
* @property {boolean} [disableAutoFocus = false] -
* If set to `true` the error summary will not be focussed when the page loads.
* @property {boolean} [disableAutoFocus = false] - If set to `true` the error
* summary will not be focussed when the page loads.
*/
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ export default NotificationBanner
* Notification banner config
*
* @typedef {object} NotificationBannerConfig
* @property {boolean} [disableAutoFocus = false] -
* If set to `true` the notification banner will not be focussed when the page
* loads. This only applies if the component has a `role` of `alert` – in
* other cases the component will not be focused on page load, regardless of
* this option.
* @property {boolean} [disableAutoFocus = false] - If set to `true` the
* notification banner will not be focussed when the page loads. This only
* applies if the component has a `role` of `alert` – in other cases the
* component will not be focused on page load, regardless of this option.
*/
4 changes: 3 additions & 1 deletion package/govuk-prototype-kit.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"assets": [
"/govuk/assets",
"/govuk/all.js.map"
"/govuk-prototype-kit/init.js.map",
"/govuk-prototype-kit/common.js.map",
"/govuk-prototype-kit/i18n.js.map"
],
"sass": [
"/govuk-prototype-kit/init.scss"
Expand Down
32 changes: 15 additions & 17 deletions package/govuk/all.js

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

2 changes: 1 addition & 1 deletion package/govuk/all.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions package/govuk/components/button/button.js

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

2 changes: 1 addition & 1 deletion package/govuk/components/button/button.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package/govuk/components/character-count/character-count.js

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

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package/govuk/components/error-summary/error-summary.js

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/govuk-prototype-kit/govuk-prototype-kit.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export default async () => {

return {
assets: [
'/govuk/assets'
'/govuk/assets',
'/govuk-prototype-kit/init.js.map',
'/govuk-prototype-kit/common.js.map',
'/govuk-prototype-kit/i18n.js.map'
],
sass: [
'/govuk-prototype-kit/init.scss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ describe('GOV.UK Prototype Kit config', () => {

it('includes paths for assets, scripts, sass', () => {
expect(config.assets).toEqual([
'/govuk/assets'
'/govuk/assets',
'/govuk-prototype-kit/init.js.map',
'/govuk-prototype-kit/common.js.map',
'/govuk-prototype-kit/i18n.js.map'
])

expect(config.sass).toEqual([
Expand Down

0 comments on commit 6965bf1

Please sign in to comment.