You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
5
5
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
6
7
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ***REMOVED***, FITNESS FOR A PARTICULAR PURPOSE AND ***REMOVED***. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copy file name to clipboardExpand all lines: packages/commons/LICENSE
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,15 @@ The licenses for most software are designed to take away your freedom to share a
11
11
12
12
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
13
13
14
-
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain ***REMOVED*** for you if you distribute copies of the software, or if you modify it.
14
+
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
15
15
16
16
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
17
17
18
18
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
19
19
20
20
Also, for each author’s protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors’ reputations.
21
21
22
-
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that ***REMOVED*** of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone’s free use or not licensed at all.
22
+
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone’s free use or not licensed at all.
23
23
24
24
The precise terms and conditions for copying, distribution and modification follow.
25
25
@@ -65,7 +65,7 @@ If distribution of executable or object code is made by offering access to copy
65
65
66
66
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients’ exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
67
67
68
-
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy ***REMOVED*** your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free ***REMOVED*** of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
68
+
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
69
69
70
70
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
71
71
@@ -77,13 +77,13 @@ This section is intended to make thoroughly clear what is believed to be a conse
77
77
78
78
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
79
79
80
-
Each version is given a ***REMOVED*** version number. If the Program specifies a version number of this License which applies to it and “any later version”, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
80
+
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and “any later version”, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
81
81
82
82
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
83
83
84
84
NO WARRANTY
85
85
86
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ***REMOVED*** AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
86
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
87
87
88
88
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
89
89
@@ -100,7 +100,7 @@ Copyright (C) \<year> \<name of author>
100
100
101
101
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
102
102
103
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ***REMOVED*** or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
103
+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
104
104
105
105
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
This package provides a collection of reusable components, utilities, and type definitions for data-viz WordPress. It facilitates consistent handling of chart ***REMOVED***, data formatting, API connections, and more.
20
+
This package provides a collection of reusable components, utilities, and type definitions for data-viz WordPress. It facilitates consistent handling of chart configurations, data formatting, API connections, and more.
21
21
22
-
This package is used internally by DevGateway projects and is designed to be compatible with the project customizer, allowing for easy integration and extension in custom ***REMOVED***.
22
+
This package is used internally by DevGateway projects and is designed to be compatible with the project customizer, allowing for easy integration and extension in custom implementations.
23
23
24
24
## Components
25
25
26
26
### API and Data Configuration
27
27
28
28
-**APIConfig**: Configuration component for API connections.
29
29
-**CSVConfig**: Configuration for CSV data sources.
30
-
-*****REMOVED*****: Configuration for CSV data sources specific to maps.
31
-
-**DataFilters**: Components for filtering data in ***REMOVED***.
30
+
-**MapCSVSourceConfig**: Configuration for CSV data sources specific to maps.
31
+
-**DataFilters**: Components for filtering data in visualizations.
32
32
33
33
### Chart Components
34
34
@@ -41,7 +41,7 @@ This package is used internally by DevGateway projects and is designed to be com
41
41
### Block Components
42
42
43
43
-**BlockEditWithAPIMetadata**: Block editor component with API metadata support.
44
-
-*****REMOVED*****: Block editor component with filter capabilities.
44
+
-**BlockEditWithFilters**: Block editor component with filter capabilities.
45
45
-**ComponentWithSettings**: Component wrapper with settings panel.
46
46
-**SizeConfig**: Configuration component for size settings.
47
47
@@ -58,19 +58,19 @@ This package is used internally by DevGateway projects and is designed to be com
58
58
### API Utilities
59
59
60
60
-**APIutils**: Utility functions for API operations.
61
-
-`***REMOVED***`
62
-
-`***REMOVED***`
61
+
-`getTranslatedOptions`
62
+
-`getTranslation`
63
63
-`isSupersetAPI`
64
64
65
65
### Mobile Utilities
66
66
67
-
-*****REMOVED*****: Utilities for mobile ***REMOVED***.
68
-
-`***REMOVED***`
67
+
-**MobileConfigUtils**: Utilities for mobile configurations.
68
+
-`extractAxisValues`
69
69
-`getSelectedLabelsForApp`
70
70
-`transformDataToAppObject`
71
-
-`***REMOVED***`
71
+
-`updateMeasureLabels`
72
72
-`getSelectedItemsForApp`
73
-
-`***REMOVED***`
73
+
-`getStoredOrSetItem`
74
74
75
75
### UI Utilities
76
76
@@ -95,32 +95,32 @@ This package is used internally by DevGateway projects and is designed to be com
95
95
96
96
-**Options**: Basic option type with label, value, and optional labels.
97
97
-**Dimension**: Interface for data dimensions.
98
-
-**Category/CategoryItem**: Types for data ***REMOVED***.
98
+
-**Category/CategoryItem**: Types for data categorization.
99
99
-**Measure**: Interface for data measures.
100
100
-**Filter**: Interface for data filters.
101
101
-**FileContent**: Interface for file content metadata.
102
102
103
103
### Chart Types
104
104
105
-
-*****REMOVED*****: Props for chart colors component.
106
-
-*****REMOVED*****: Props for chart legends component.
107
-
-*****REMOVED*****: Props for chart measures component.
105
+
-**ChartColorsProps**: Props for chart colors component.
106
+
-**ChartLegendsProps**: Props for chart legends component.
107
+
-**ChartMeasuresProps**: Props for chart measures component.
108
108
-**FormatProps**: Props for format component.
109
109
-**MeasuresProps**: Props for measures component.
110
-
-*****REMOVED*****: Props for data filters component.
110
+
-**DataFiltersProps**: Props for data filters component.
111
111
-**MapCSVSourceConfigProps**: Props for map CSV source config component.
112
112
113
113
### Block Types
114
114
115
115
-**BlockEditWithAPIMetadataProps/State**: Props and state for BlockEditWithAPIMetadata.
116
-
-**BlockEditWithFiltersProps/State**: Props and state for ***REMOVED***.
116
+
-**BlockEditWithFiltersProps/State**: Props and state for BlockEditWithFilters.
117
117
-**ComponentWithSettingsProps/State**: Props and state for ComponentWithSettings.
118
-
-*****REMOVED*****: Props for SizeConfig component.
118
+
-**SizeConfigProps**: Props for SizeConfig component.
119
119
120
120
### Data Types
121
121
122
122
-**DgSettings**: Interface for global settings.
123
-
-*****REMOVED*****: Interface for Eureka service responses.
123
+
-**EurekaResponse**: Interface for Eureka service responses.
124
124
-**Menu**: Interface for menu structure.
125
125
-**Media**: Interface for media attachments.
126
126
-**SearchResult/SearchResults**: Types for search functionality.
@@ -132,18 +132,18 @@ This package is used internally by DevGateway projects and is designed to be com
132
132
-**Post**: Interface for WordPress posts.
133
133
-**PostContent**: Interface for post content.
134
134
-**PostLinks**: Interface for post links.
135
-
-*****REMOVED*****: Interface for Yoast SEO data.
136
-
-*****REMOVED*****: Enum for schema action types.
135
+
-**PostYoastHeadJSON**: Interface for Yoast SEO data.
136
+
-**PotentialActionType**: Enum for schema action types.
137
137
-**PostSchema**: Interface for structured data schema.
138
138
139
139
## Integration with Project Customizer
140
140
141
141
This package is designed to be integrated with the project customizer, allowing for:
142
142
143
-
- Custom component ***REMOVED***
143
+
- Custom component configurations
144
144
- Theme-specific styling overrides
145
145
- Extension of data types for project-specific needs
146
-
- Custom visualization ***REMOVED***
146
+
- Custom visualization implementations
147
147
148
148
When used with the project customizer, components from this package can be easily configured and extended to meet specific project requirements.
149
149
@@ -154,7 +154,7 @@ When used with the project customizer, components from this package can be easil
154
154
```jsx
155
155
import { ChartColors, ChartLegends, Format } from'@devgateway/dvz-wp-commons';
0 commit comments