@icij/murmur-next 4.0.3 → 4.0.5

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.
Files changed (82) hide show
  1. package/lib/components/Brand.vue +9 -9
  2. package/lib/components/OrdinalLegend.vue +1 -1
  3. package/lib/components/RangePicker.vue +15 -8
  4. package/lib/components/SelectableDropdown.vue +2 -1
  5. package/lib/composables/chart.ts +10 -7
  6. package/lib/composables/resizeObserver.ts +1 -1
  7. package/lib/composables/sendEmail.ts +0 -1
  8. package/lib/config.ts +2 -2
  9. package/lib/locales/en.json +1 -1
  10. package/lib/locales/fr.json +1 -1
  11. package/lib/main.ts +18 -12
  12. package/lib/maps/ChoroplethMap.vue +1 -1
  13. package/lib/maps/ChoroplethMapAnnotation.vue +2 -2
  14. package/lib/maps/SymbolMap.vue +5 -4
  15. package/lib/shims-pym.d.ts +7 -0
  16. package/lib/shims-vue.d.ts +1 -1
  17. package/lib/types.ts +5 -5
  18. package/lib/utils/iframe-resizer.ts +1 -1
  19. package/lib/utils/placeholder.ts +0 -1
  20. package/package.json +44 -40
  21. package/dist/lib/components/AccordionStep.vue.d.ts +0 -79
  22. package/dist/lib/components/AccordionWrapper.vue.d.ts +0 -33
  23. package/dist/lib/components/ActiveTextTruncate.vue.d.ts +0 -101
  24. package/dist/lib/components/AdvancedLinkForm.vue.d.ts +0 -168
  25. package/dist/lib/components/Brand.vue.d.ts +0 -55
  26. package/dist/lib/components/BrandExpansion.vue.d.ts +0 -105
  27. package/dist/lib/components/ConfirmButton.vue.d.ts +0 -158
  28. package/dist/lib/components/ContentPlaceholder.vue.d.ts +0 -44
  29. package/dist/lib/components/CustomPagination.vue.d.ts +0 -130
  30. package/dist/lib/components/DigitsInput.vue.d.ts +0 -66
  31. package/dist/lib/components/DonateForm.vue.d.ts +0 -46
  32. package/dist/lib/components/EmbedForm.vue.d.ts +0 -121
  33. package/dist/lib/components/EmbeddableFooter.vue.d.ts +0 -103
  34. package/dist/lib/components/FollowUsPopover.vue.d.ts +0 -16
  35. package/dist/lib/components/GenericFooter.vue.d.ts +0 -47
  36. package/dist/lib/components/GenericHeader.vue.d.ts +0 -928
  37. package/dist/lib/components/HapticCopy.vue.d.ts +0 -156
  38. package/dist/lib/components/ImddbHeader.vue.d.ts +0 -960
  39. package/dist/lib/components/OrdinalLegend.vue.d.ts +0 -87
  40. package/dist/lib/components/RangePicker.vue.d.ts +0 -196
  41. package/dist/lib/components/ResponsiveIframe.vue.d.ts +0 -45
  42. package/dist/lib/components/ScaleLegend.vue.d.ts +0 -101
  43. package/dist/lib/components/SecretInput.vue.d.ts +0 -99
  44. package/dist/lib/components/SelectableDropdown.vue.d.ts +0 -210
  45. package/dist/lib/components/SharingOptions.vue.d.ts +0 -153
  46. package/dist/lib/components/SharingOptionsLink.vue.d.ts +0 -200
  47. package/dist/lib/components/SignUpForm.vue.d.ts +0 -141
  48. package/dist/lib/components/SlideUpDown.vue.d.ts +0 -74
  49. package/dist/lib/components/TexturedDeck.vue.d.ts +0 -89
  50. package/dist/lib/components/TinyPagination.vue.d.ts +0 -188
  51. package/dist/lib/composables/chart.d.ts +0 -48
  52. package/dist/lib/composables/resizeObserver.d.ts +0 -22
  53. package/dist/lib/composables/sendEmail.d.ts +0 -6
  54. package/dist/lib/config.d.ts +0 -19
  55. package/dist/lib/config.default.d.ts +0 -34
  56. package/dist/lib/datavisualisations/BarChart.vue.d.ts +0 -234
  57. package/dist/lib/datavisualisations/ColumnChart.vue.d.ts +0 -404
  58. package/dist/lib/datavisualisations/LineChart.vue.d.ts +0 -200
  59. package/dist/lib/datavisualisations/StackedBarChart.vue.d.ts +0 -342
  60. package/dist/lib/datavisualisations/StackedColumnChart.vue.d.ts +0 -412
  61. package/dist/lib/enums.d.ts +0 -32
  62. package/dist/lib/i18n.d.ts +0 -4
  63. package/dist/lib/keys.d.ts +0 -2
  64. package/dist/lib/main.d.ts +0 -52
  65. package/dist/lib/maps/ChoroplethMap.vue.d.ts +0 -460
  66. package/dist/lib/maps/ChoroplethMapAnnotation.vue.d.ts +0 -188
  67. package/dist/lib/maps/SymbolMap.vue.d.ts +0 -276
  68. package/dist/lib/murmur.css +0 -1
  69. package/dist/lib/murmur.js +0 -44661
  70. package/dist/lib/murmur.js.map +0 -1
  71. package/dist/lib/murmur.umd.cjs +0 -837
  72. package/dist/lib/murmur.umd.cjs.map +0 -1
  73. package/dist/lib/types.d.ts +0 -44
  74. package/dist/lib/utils/animation.d.ts +0 -8
  75. package/dist/lib/utils/assets.d.ts +0 -2
  76. package/dist/lib/utils/clipboard.d.ts +0 -2
  77. package/dist/lib/utils/iframe-resizer.d.ts +0 -10
  78. package/dist/lib/utils/placeholder.d.ts +0 -12
  79. package/dist/lib/utils/placeholderTypes.d.ts +0 -18
  80. package/dist/lib/utils/strings.d.ts +0 -1
  81. package/lib/locales/locales/en.json +0 -140
  82. package/lib/locales/locales/fr.json +0 -117
@@ -1,44 +0,0 @@
1
- /// <reference types="@/shims-vue" />
2
- /// <reference types="node_modules/vue-i18n/dist/vue-i18n" />
3
- import type { StyleValue } from '../node_modules/vue';
4
- import { AccordionKey, ParentKey } from './keys';
5
- import { ComputedRef } from '../node_modules/vue';
6
- import type { GeoProjection } from 'd3-geo';
7
- import { Ref } from '../node_modules/vue';
8
- export type Step = symbol | string;
9
- export type Accordion = {
10
- emitAccordionNextStepEvent: () => void;
11
- emitAccordionPreviousStepEvent: () => void;
12
- isActiveStep: (step: Step) => boolean;
13
- isPreviousStep: (step: Step) => boolean;
14
- isFirstStep: (step: Step) => boolean;
15
- isLastStep: (step: Step) => boolean;
16
- step: Step;
17
- steps: Step[];
18
- };
19
- export type AccordionProvide = {
20
- [AccordionKey]: Accordion;
21
- };
22
- export type BrandStyle = StyleValue & {
23
- '--monochrome-color': string;
24
- color: string;
25
- background: string;
26
- width: string;
27
- };
28
- export type BrandExpansionStyle = Pick<BrandStyle, '--monochrome-color' | 'background'>;
29
- export type Variant = 'primary' | 'secondary' | 'danger' | 'info' | 'warning' | 'success' | 'dark' | 'light';
30
- export type MapTransform = {
31
- k: number;
32
- x: number;
33
- y: number;
34
- rotateX: number;
35
- rotateY: number;
36
- };
37
- export type ParentMap = {
38
- mapRect: Ref<DOMRect>;
39
- mapTransform: Ref<MapTransform>;
40
- rotatingMapProjection: ComputedRef<GeoProjection | Function>;
41
- };
42
- export type ParentMapProvide = {
43
- [ParentKey]: ParentMap;
44
- };
@@ -1,8 +0,0 @@
1
- export declare class RequestAnimationFrameWrapper {
2
- live: boolean;
3
- callback: () => void;
4
- constructor();
5
- start(callback: () => void): void;
6
- stop(): void;
7
- schedule(): void;
8
- }
@@ -1,2 +0,0 @@
1
- export declare const injectAsset: ((file: string, id?: string) => Promise<unknown>) & import("lodash").MemoizedFunction;
2
- export declare const injectAssets: (...args: string[]) => Promise<void>;
@@ -1,2 +0,0 @@
1
- export declare function copyText(text: string, container: Element): Promise<void>;
2
- export declare function copyHtml(html: string, plain: string): void;
@@ -1,10 +0,0 @@
1
- import { Child as PymChild } from 'pym.js';
2
- export default class IframeResizer {
3
- initializer: Promise<PymChild>;
4
- constructor();
5
- sendHeight(): Promise<void>;
6
- static create(): IframeResizer;
7
- static template(url: string, id?: string): string;
8
- static deletePymParams(href?: string): string;
9
- static isEmbedded(href?: string): boolean;
10
- }
@@ -1,12 +0,0 @@
1
- import { BoxStyle, ContentPlaceholderStyledRows, ContentPlaceholderRows } from './placeholderTypes';
2
- export declare function isFlexBasis(value: string | number): boolean;
3
- export declare function isWidth(value: string | number): boolean;
4
- export declare function getBoxStyle(left: number, width: number, isLast: boolean, subClass?: string): BoxStyle[];
5
- export declare function formatRows(rows: ContentPlaceholderRows, subClass?: string): ContentPlaceholderStyledRows;
6
- declare const _default: {
7
- isFlexBasis: typeof isFlexBasis;
8
- isWidth: typeof isWidth;
9
- getBoxStyle: typeof getBoxStyle;
10
- formatRows: typeof formatRows;
11
- };
12
- export default _default;
@@ -1,18 +0,0 @@
1
- /// <reference types="@/shims-vue" />
2
- /// <reference types="vue-i18n" />
3
- import type { StyleValue } from '../../node_modules/vue';
4
- export interface BoxStyle {
5
- style: StyleValue;
6
- subClass?: string;
7
- }
8
- export type ContentPlaceholderRowBoxes = Array<Array<number | string>>;
9
- export interface ContentPlaceholderRow {
10
- height: number | string;
11
- boxes: ContentPlaceholderRowBoxes;
12
- }
13
- export interface ContentPlaceholderStyledRow {
14
- height: number | string;
15
- boxes: Array<BoxStyle>;
16
- }
17
- export type ContentPlaceholderStyledRows = Array<ContentPlaceholderStyledRow>;
18
- export type ContentPlaceholderRows = Array<ContentPlaceholderRow>;
@@ -1 +0,0 @@
1
- export declare function isUrl(value: string): boolean;
@@ -1,140 +0,0 @@
1
- {
2
- "advanced-link-form": {
3
- "raw": {
4
- "tab": "Text"
5
- },
6
- "rich": {
7
- "tab": "Formatted Text",
8
- "description": "Copy this link in Libre Office, Word, Google Document, etc."
9
- },
10
- "markdown": {
11
- "tab": "Markdown",
12
- "description": "Copy this link for online platforms supporting Markdown."
13
- },
14
- "html": {
15
- "tab": "HTML"
16
- }
17
- },
18
- "generic-header": {
19
- "navbar": {
20
- "investigations": "Investigations",
21
- "leak": "Leak to us",
22
- "support": "Support us",
23
- "follow": "Follow ICIJ"
24
- }
25
- },
26
- "imddb-header": {
27
- "navbar": {
28
- "leak": "Leak to us",
29
- "support": "Support us",
30
- "follow": "Follow ICIJ"
31
- }
32
- },
33
- "embeddable-footer": {
34
- "share": "Share"
35
- },
36
- "embed-form": {
37
- "heading": "Embed on your website",
38
- "introduction": "Copy the code below to embed this on your website.",
39
- "responsive-optin": "Responsive iFrame",
40
- "copy": "Copy"
41
- },
42
- "follow-us-popover": {
43
- "heading": "Follow us"
44
- },
45
- "generic-footer": {
46
- "investigations": "Investigations",
47
- "follow-us": "Follow us",
48
- "all-rights": "All rights reserved",
49
- "version": "Version %{version}"
50
- },
51
- "donate-form": {
52
- "support": "Support us",
53
- "introduction": "ICIJ’s investigations are supported by readers like you. Help keep our databases free and open to the public by joining our <strong><a target=\"_blank\" href=\"https://icij.org/donate\">ICIJ Insiders</a></strong> community.",
54
- "join-heading": "Won't you join us today?",
55
- "label": "I would like to donate",
56
- "frequency": {
57
- "monthly": "Monthly",
58
- "yearly": "Yearly",
59
- "onetime": "One time"
60
- },
61
- "result": {
62
- "sentence": "With this donation, you are <strong>changing the %{target}</strong>.",
63
- "conversation": "conversation",
64
- "rules": "rules",
65
- "world": "world"
66
- },
67
- "suggesteddonation": {
68
- "conversation": {
69
- "monthly": 10,
70
- "yearly": 25,
71
- "onetime": 50
72
- },
73
- "rules": {
74
- "monthly": 25,
75
- "yearly": 180,
76
- "onetime": 200
77
- },
78
- "world": {
79
- "monthly": 100,
80
- "yearly": 600,
81
- "onetime": 600
82
- }
83
- },
84
- "submit": "Donate now",
85
- "benefits": {
86
- "heading": "ICIJ Insiders benefits",
87
- "introduction": "Your monthly or annual donation will give you the following benefits.",
88
- "more": "More about donations",
89
- "list": [
90
- "Invitation to exclusive chat with ICIJ staff about our latest major project after publication",
91
- "Opportunity to submit your questions to ICIJ staff. Several questions will be answered in our quarterly ICIJ Insider newsletter",
92
- "Sneak previews behind the scenes of ICIJ’s work (monthly)",
93
- "ICIJ Insider Newsletter (quarterly)",
94
- "ICIJ’s Weekly Update"
95
- ],
96
- "impacts": {
97
- "conversation": {
98
- "level": "conversation",
99
- "heading": "Change the conversation",
100
- "highlight": "$1-$179/Year <span class='monthly'>or $1-$14/Month</span>"
101
- },
102
- "rules": {
103
- "level": "rules",
104
- "heading": "Change the rules",
105
- "highlight": "$180-$599/Year <span class='monthly'>or $15-$49/Month</span>"
106
- },
107
- "world": {
108
- "level": "world",
109
- "heading": "Change the world",
110
- "highlight": "$600+/Year <span class='monthly'>or $50+/Month</span>"
111
- }
112
- }
113
- }
114
- },
115
- "sign-up-form": {
116
- "label": "Stories in your inbox",
117
- "placeholder": "Enter your email",
118
- "submit": "Sign up"
119
- },
120
- "haptic-copy": {
121
- "label": "Copy",
122
- "tooltip": {
123
- "succeed": "Copied!",
124
- "failed": "Unable to copy the text"
125
- }
126
- },
127
- "custom-pagination": {
128
- "placeholder": "Jump to page",
129
- "compact-placeholder": "Jump to...",
130
- "total-pages": "No pages | 1 page | {count} pages total",
131
- "invalid-number-error": "Invalid page number"
132
- },
133
- "tiny-pagination": {
134
- "page": "Page",
135
- "aria": "Jump to page",
136
- "total": "of {numberOfPages}",
137
- "previous": "Previous page",
138
- "next": "Next page"
139
- }
140
- }
@@ -1,117 +0,0 @@
1
- {
2
- "imddb-header": {
3
- "navbar": {
4
- "leak": "Leak to us",
5
- "support": "Soutenez nous",
6
- "follow": "Suivez l'ICIJ"
7
- }
8
- },
9
- "generic-header": {
10
- "navbar": {
11
- "investigations": "Enquêtes",
12
- "leak": "Contact securisé",
13
- "support": "Soutenez nous",
14
- "follow": "Suivez l'ICIJ"
15
- }
16
- },
17
- "embeddable-footer": {
18
- "share": "Partager"
19
- },
20
- "embed-form": {
21
- "heading": "Intégrer sur votre site",
22
- "introduction": "Copiez le code ci-dessous pour l'intégrer à votre site.",
23
- "responsive-optin": "Hauteur dynamique",
24
- "copy": "Copier"
25
- },
26
- "follow-us-popover": {
27
- "heading": "Suivez nous"
28
- },
29
- "generic-footer": {
30
- "investigations": "Enquêtes",
31
- "follow-us": "Suivez nous",
32
- "all-rights": "Tous droits réservés",
33
- "version": "Version %{version}"
34
- },
35
- "donate-form": {
36
- "support": "Soutenez nous",
37
- "introduction": "ICIJ’s investigations are supported by readers like you. Help keep our databases free and open to the public by joining our <strong><a target=\"_blank\" href=\"https://icij.org/donate\">ICIJ Insiders</a></strong> community.",
38
- "join-heading": "Won't you join us today?",
39
- "label": "I would like to donate",
40
- "frequency": {
41
- "monthly": "Monthly",
42
- "yearly": "Yearly",
43
- "onetime": "One time"
44
- },
45
- "result": {
46
- "sentence": "With this donation, you are <strong>changing the %{target}</strong>.",
47
- "conversation": "conversation",
48
- "rules": "rules",
49
- "world": "world"
50
- },
51
- "suggesteddonation": {
52
- "conversation": {
53
- "monthly": 10,
54
- "yearly": 25,
55
- "onetime": 50
56
- },
57
- "rules": {
58
- "monthly": 25,
59
- "yearly": 180,
60
- "onetime": 180
61
- },
62
- "world": {
63
- "monthly": 100,
64
- "yearly": 600,
65
- "onetime": 600
66
- }
67
- },
68
- "submit": "Donate now",
69
- "benefits": {
70
- "heading": "ICIJ Insiders benefits",
71
- "introduction": "Your monthly or annual donation will give you the following benefits.",
72
- "more": "More about donations",
73
- "list": [
74
- "Invitation to exclusive chat with ICIJ staff about our latest major project after publication",
75
- "Opportunity to submit your questions to ICIJ staff. Several questions will be answered in our quarterly ICIJ Insider newsletter",
76
- "Sneak previews behind the scenes of ICIJ’s work (monthly)",
77
- "ICIJ Insider Newsletter (quarterly)",
78
- "ICIJ’s Weekly Update"
79
- ],
80
- "impacts": {
81
- "conversation": {
82
- "level": "conversation",
83
- "heading": "Change the conversation",
84
- "highlight": "$1-$179/Year <span class='monthly'>or $1-$14/Month</span>"
85
- },
86
- "rules": {
87
- "level": "rules",
88
- "heading": "Change the rules",
89
- "highlight": "$180-$599/Year <span class='monthly'>or $15-$49/Month</span>"
90
- },
91
- "world": {
92
- "level": "world",
93
- "heading": "Change the world",
94
- "highlight": "$600+/Year <span class='monthly'>or $50+/Month</span>"
95
- }
96
- }
97
- }
98
- },
99
- "sign-up-form": {
100
- "label": "Recevez nos articles par email",
101
- "placeholder": "Adresse email",
102
- "submit": "S'abonner"
103
- },
104
- "haptic-copy": {
105
- "label": "Copier",
106
- "tooltip": {
107
- "succeed": "Copié!"
108
- }
109
- },
110
- "tiny-pagination": {
111
- "page": "Page",
112
- "aria": "Allez à la page",
113
- "total": "sur {numberOfPages}",
114
- "previous": "Page suivante",
115
- "next": "Page précédente"
116
- }
117
- }