Skip to content

Commit 86e3617

Browse files
Merge pull request #47 from devgateway/changeset-release/main
2 parents 5f4c082 + d9ac2c3 commit 86e3617

2,774 files changed

Lines changed: 39788 additions & 39775 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/thin-camels-visit.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
44

55
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66

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.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
],
2727
"author": "Development Gateway",
2828
"license": "GPL-2.0-or-later",
29-
"***REMOVED***": "pnpm@10.10.0",
30-
"***REMOVED***": {
29+
"packageManager": "pnpm@10.10.0",
30+
"devDependencies": {
3131
"@changesets/changelog-github": "^0.5.1",
3232
"@changesets/cli": "^2.29.3"
3333
}

packages/commons/CHANGELOG.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
11
# @devgateway/dvz-wp-commons
22

3+
## 1.1.0
4+
5+
### Minor Changes
6+
7+
- [#45](https://github.com/devgateway/data-viz-wordpress/pull/45) [`bb51401`](https://github.com/devgateway/data-viz-wordpress/commit/bb51401482f77e9f275c454ba0d7dab8231c269b) Thanks [@timothygachengo](https://github.com/timothygachengo)! - - Update licenses
8+
- Internal improvements
9+
310
## 1.0.5
411

512
### Patch Changes
613

7-
- [`7b045c3`](https://github.com/devgateway/data-viz-wordpress/commit/7b045c3b73f5492d439a713138716e9891a50e53) Thanks [@***REMOVED***](https://github.com/***REMOVED***)! - chore(DVIZ-32): update Node.js setup and refine workflow caching. Remove publish command in the commons package to prevent double releases
14+
- [`7b045c3`](https://github.com/devgateway/data-viz-wordpress/commit/7b045c3b73f5492d439a713138716e9891a50e53) Thanks [@timothygachengo](https://github.com/timothygachengo)! - chore(DVIZ-32): update Node.js setup and refine workflow caching. Remove publish command in the commons package to prevent double releases
815

916
## 1.0.4
1017

1118
### Patch Changes
1219

13-
- [#12](https://github.com/devgateway/data-viz-wordpress/pull/12) [`fda7d1f`](https://github.com/devgateway/data-viz-wordpress/commit/fda7d1f8502b6b45c2f18221b472c8ddf97cbfb0) Thanks [@***REMOVED***](https://github.com/***REMOVED***)! - Internal Update: Update CI
20+
- [#12](https://github.com/devgateway/data-viz-wordpress/pull/12) [`fda7d1f`](https://github.com/devgateway/data-viz-wordpress/commit/fda7d1f8502b6b45c2f18221b472c8ddf97cbfb0) Thanks [@timothygachengo](https://github.com/timothygachengo)! - Internal Update: Update CI
1421

1522
## 1.0.3
1623

1724
### Patch Changes
1825

19-
- [`69daf22`](https://github.com/devgateway/data-viz-wordpress/commit/***REMOVED***) Thanks [@***REMOVED***](https://github.com/***REMOVED***)! - Internal changes: Update CI
26+
- [`69daf22`](https://github.com/devgateway/data-viz-wordpress/commit/69daf2207789b4eea4a9317844f29ec00a8b8d34) Thanks [@timothygachengo](https://github.com/timothygachengo)! - Internal changes: Update CI
2027

2128
## 1.0.2
2229

2330
### Patch Changes
2431

25-
- [#8](https://github.com/devgateway/data-viz-wordpress/pull/8) [`0556d82`](https://github.com/devgateway/data-viz-wordpress/commit/0556d828488e20405e29ed6dde0e01f54e364f12) Thanks [@***REMOVED***](https://github.com/***REMOVED***)! - # Changelog
32+
- [#8](https://github.com/devgateway/data-viz-wordpress/pull/8) [`0556d82`](https://github.com/devgateway/data-viz-wordpress/commit/0556d828488e20405e29ed6dde0e01f54e364f12) Thanks [@timothygachengo](https://github.com/timothygachengo)! - # Changelog
2633

2734
### ⚙️ Miscellaneous Tasks
2835

packages/commons/LICENSE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ The licenses for most software are designed to take away your freedom to share a
1111

1212
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.
1313

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.
1515

1616
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.
1717

1818
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.
1919

2020
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.
2121

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.
2323

2424
The precise terms and conditions for copying, distribution and modification follow.
2525

@@ -65,7 +65,7 @@ If distribution of executable or object code is made by offering access to copy
6565

6666
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.
6767

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.
6969

7070
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.
7171

@@ -77,13 +77,13 @@ This section is intended to make thoroughly clear what is believed to be a conse
7777

7878
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.
7979

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.
8181

8282
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.
8383

8484
NO WARRANTY
8585

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.
8787

8888
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.
8989

@@ -100,7 +100,7 @@ Copyright (C) \<year> \<name of author>
100100

101101
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.
102102

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.
104104

105105
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
106106

packages/commons/README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ pnpm add @devgateway/dvz-wp-commons
1717

1818
## Overview
1919

20-
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.
2121

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.
2323

2424
## Components
2525

2626
### API and Data Configuration
2727

2828
- **APIConfig**: Configuration component for API connections.
2929
- **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.
3232

3333
### Chart Components
3434

@@ -41,7 +41,7 @@ This package is used internally by DevGateway projects and is designed to be com
4141
### Block Components
4242

4343
- **BlockEditWithAPIMetadata**: Block editor component with API metadata support.
44-
- *****REMOVED*****: Block editor component with filter capabilities.
44+
- **BlockEditWithFilters**: Block editor component with filter capabilities.
4545
- **ComponentWithSettings**: Component wrapper with settings panel.
4646
- **SizeConfig**: Configuration component for size settings.
4747

@@ -58,19 +58,19 @@ This package is used internally by DevGateway projects and is designed to be com
5858
### API Utilities
5959

6060
- **APIutils**: Utility functions for API operations.
61-
- `***REMOVED***`
62-
- `***REMOVED***`
61+
- `getTranslatedOptions`
62+
- `getTranslation`
6363
- `isSupersetAPI`
6464

6565
### Mobile Utilities
6666

67-
- *****REMOVED*****: Utilities for mobile ***REMOVED***.
68-
- `***REMOVED***`
67+
- **MobileConfigUtils**: Utilities for mobile configurations.
68+
- `extractAxisValues`
6969
- `getSelectedLabelsForApp`
7070
- `transformDataToAppObject`
71-
- `***REMOVED***`
71+
- `updateMeasureLabels`
7272
- `getSelectedItemsForApp`
73-
- `***REMOVED***`
73+
- `getStoredOrSetItem`
7474

7575
### UI Utilities
7676

@@ -95,32 +95,32 @@ This package is used internally by DevGateway projects and is designed to be com
9595

9696
- **Options**: Basic option type with label, value, and optional labels.
9797
- **Dimension**: Interface for data dimensions.
98-
- **Category/CategoryItem**: Types for data ***REMOVED***.
98+
- **Category/CategoryItem**: Types for data categorization.
9999
- **Measure**: Interface for data measures.
100100
- **Filter**: Interface for data filters.
101101
- **FileContent**: Interface for file content metadata.
102102

103103
### Chart Types
104104

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.
108108
- **FormatProps**: Props for format component.
109109
- **MeasuresProps**: Props for measures component.
110-
- *****REMOVED*****: Props for data filters component.
110+
- **DataFiltersProps**: Props for data filters component.
111111
- **MapCSVSourceConfigProps**: Props for map CSV source config component.
112112

113113
### Block Types
114114

115115
- **BlockEditWithAPIMetadataProps/State**: Props and state for BlockEditWithAPIMetadata.
116-
- **BlockEditWithFiltersProps/State**: Props and state for ***REMOVED***.
116+
- **BlockEditWithFiltersProps/State**: Props and state for BlockEditWithFilters.
117117
- **ComponentWithSettingsProps/State**: Props and state for ComponentWithSettings.
118-
- *****REMOVED*****: Props for SizeConfig component.
118+
- **SizeConfigProps**: Props for SizeConfig component.
119119

120120
### Data Types
121121

122122
- **DgSettings**: Interface for global settings.
123-
- *****REMOVED*****: Interface for Eureka service responses.
123+
- **EurekaResponse**: Interface for Eureka service responses.
124124
- **Menu**: Interface for menu structure.
125125
- **Media**: Interface for media attachments.
126126
- **SearchResult/SearchResults**: Types for search functionality.
@@ -132,18 +132,18 @@ This package is used internally by DevGateway projects and is designed to be com
132132
- **Post**: Interface for WordPress posts.
133133
- **PostContent**: Interface for post content.
134134
- **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.
137137
- **PostSchema**: Interface for structured data schema.
138138

139139
## Integration with Project Customizer
140140

141141
This package is designed to be integrated with the project customizer, allowing for:
142142

143-
- Custom component ***REMOVED***
143+
- Custom component configurations
144144
- Theme-specific styling overrides
145145
- Extension of data types for project-specific needs
146-
- Custom visualization ***REMOVED***
146+
- Custom visualization implementations
147147

148148
When used with the project customizer, components from this package can be easily configured and extended to meet specific project requirements.
149149

@@ -154,7 +154,7 @@ When used with the project customizer, components from this package can be easil
154154
```jsx
155155
import { ChartColors, ChartLegends, Format } from '@devgateway/dvz-wp-commons';
156156

157-
const ***REMOVED*** = ({ attributes, setAttributes }) => {
157+
const MyChartComponent = ({ attributes, setAttributes }) => {
158158
return (
159159
<div>
160160
<ChartColors
@@ -179,7 +179,7 @@ const ***REMOVED*** = ({ attributes, setAttributes }) => {
179179
```jsx
180180
import { APIConfig } from '@devgateway/dvz-wp-commons';
181181

182-
const ***REMOVED*** = ({ attributes, setAttributes }) => {
182+
const MyAPIComponent = ({ attributes, setAttributes }) => {
183183
return (
184184
<APIConfig
185185
attributes={attributes}

0 commit comments

Comments
 (0)