@woosmap/ui 4.250.2 → 4.251.0

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.
@@ -0,0 +1,104 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ publish:
10
+ name: Build, Test & Publish
11
+ runs-on: ubuntu-latest
12
+ if: "!contains(github.event.head_commit.message, '[skip ci]')"
13
+ permissions:
14
+ contents: write
15
+ id-token: write
16
+ pull-requests: read
17
+ environment: npm-publish
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ with:
21
+ token: ${{ secrets.GITHUB_TOKEN }}
22
+
23
+ - name: Use Node.js
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: "22.x"
27
+
28
+ - name: Upgrade npm for OIDC trusted publishing
29
+ run: npm install -g npm@latest
30
+
31
+ - name: Install dependencies
32
+ run: yarn
33
+
34
+ - name: Run tests
35
+ run: yarn test --watchAll=false
36
+
37
+ - name: Determine version bump
38
+ id: bump
39
+ uses: actions/github-script@v7
40
+ with:
41
+ script: |
42
+ const { data: commits } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
43
+ owner: context.repo.owner,
44
+ repo: context.repo.repo,
45
+ commit_sha: context.sha,
46
+ });
47
+ const pr = commits.find(p => p.merged_at);
48
+ let bump = 'minor';
49
+ if (pr) {
50
+ const labels = pr.labels.map(l => l.name.toLowerCase());
51
+ if (labels.includes('patch')) {
52
+ bump = 'patch';
53
+ } else if (labels.includes('minor')) {
54
+ bump = 'minor';
55
+ }
56
+ }
57
+ core.setOutput('type', bump);
58
+ core.info(`Version bump: ${bump}`);
59
+
60
+ - name: Configure git
61
+ run: |
62
+ git config user.name "github-actions[bot]"
63
+ git config user.email "github-actions[bot]@users.noreply.github.com"
64
+
65
+ - name: Bump version
66
+ id: version
67
+ run: |
68
+ npm version ${{ steps.bump.outputs.type }} --no-git-tag-version
69
+ VERSION=$(node -p "require('./package.json').version")
70
+ echo "new_version=$VERSION" >> "$GITHUB_OUTPUT"
71
+
72
+ - name: Build
73
+ run: yarn build
74
+
75
+ - name: Publish to npm
76
+ run: npm publish --access public
77
+
78
+ - name: Commit version bump and tag
79
+ run: |
80
+ git add package.json
81
+ git commit -m "v${{ steps.version.outputs.new_version }} [skip ci]"
82
+ git tag "v${{ steps.version.outputs.new_version }}"
83
+ git push origin master --tags
84
+
85
+ - name: Create GitHub Release
86
+ uses: actions/github-script@v7
87
+ with:
88
+ script: |
89
+ const version = '${{ steps.version.outputs.new_version }}';
90
+ const tag = `v${version}`;
91
+ const { data: commits } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
92
+ owner: context.repo.owner,
93
+ repo: context.repo.repo,
94
+ commit_sha: context.sha,
95
+ });
96
+ const pr = commits.find(p => p.merged_at);
97
+ const prLine = pr ? `- ${pr.title} (#${pr.number})` : '';
98
+ await github.rest.repos.createRelease({
99
+ owner: context.repo.owner,
100
+ repo: context.repo.repo,
101
+ tag_name: tag,
102
+ name: tag,
103
+ body: `## What's Changed\n${prLine}\n\n**npm**: https://www.npmjs.com/package/@woosmap/ui/v/${version}`,
104
+ });
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.250.2",
3
+ "version": "4.251.0",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "git+https://github.com/WebGeoServices/ui.git"
6
+ "url": "git+https://github.com/Woosmap/ui.git"
7
7
  },
8
8
  "main": "src/index.js",
9
9
  "exports": {
@@ -93,7 +93,7 @@
93
93
  "@testing-library/jest-dom": "^6.0.0",
94
94
  "@testing-library/react": "^14.0.0",
95
95
  "@testing-library/user-event": "^14.5.2",
96
- "babel-plugin-i18next-extract": "^0.10.0",
96
+ "babel-plugin-i18next-extract": "^1.1.0",
97
97
  "babel-plugin-transform-dynamic-import": "^2.1.0",
98
98
  "concurrently": "^9.2.1",
99
99
  "eslint-config-airbnb": "^19.0.4",
@@ -3,7 +3,6 @@ import enMessages from '../../locales/en/translation.json';
3
3
  import frMessages from '../../locales/fr/translation.json';
4
4
 
5
5
  i18next.init({
6
- compatibilityJSON: 'v3',
7
6
  lng: 'en',
8
7
  debug: false,
9
8
  nsSeparator: null,
@@ -109,10 +109,10 @@
109
109
  "Search among your own Points of Interest. Find stores by geography, by attributes or by autocomplete on store names.": "Search among your own Points of Interest. Find stores by geography, by attributes or by autocomplete on store names.",
110
110
  "See how we compare": "See how we compare",
111
111
  "Shopping centers": "Shopping centers",
112
- "Should be at least {{count}} char long": "Should be at least {{count}} char long",
113
- "Should be at least {{count}} char long__plural": "Should be at least {{count}} char long__plural",
114
- "Should be at most {{count}} char long": "Should be at most {{count}} char long",
115
- "Should be at most {{count}} char long__plural": "Should be at most {{count}} char long__plural",
112
+ "Should be at least {{count}} char long__one": "Should be at least {{count}} char long",
113
+ "Should be at least {{count}} char long__other": "Should be at least {{count}} char long__plural",
114
+ "Should be at most {{count}} char long__one": "Should be at most {{count}} char long",
115
+ "Should be at most {{count}} char long__other": "Should be at most {{count}} char long__plural",
116
116
  "Split per product": "Split per product",
117
117
  "Store Locator": "Store Locator",
118
118
  "Store Locator integration: autocomplete on city names, suburb names, postcodes...": "Store Locator integration: autocomplete on city names, suburb names, postcodes...",
@@ -109,10 +109,12 @@
109
109
  "Search among your own Points of Interest. Find stores by geography, by attributes or by autocomplete on store names.": "",
110
110
  "See how we compare": "",
111
111
  "Shopping centers": "",
112
- "Should be at least {{count}} char long": "",
113
- "Should be at least {{count}} char long__plural": "",
114
- "Should be at most {{count}} char long": "",
115
- "Should be at most {{count}} char long__plural": "",
112
+ "Should be at least {{count}} char long__many": "",
113
+ "Should be at least {{count}} char long__one": "",
114
+ "Should be at least {{count}} char long__other": "",
115
+ "Should be at most {{count}} char long__many": "",
116
+ "Should be at most {{count}} char long__one": "",
117
+ "Should be at most {{count}} char long__other": "",
116
118
  "Split per product": "",
117
119
  "Store Locator": "",
118
120
  "Store Locator integration: autocomplete on city names, suburb names, postcodes...": "",
@@ -1,8 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(yarn add:*)",
5
- "Bash(CI=true yarn test:*)"
6
- ]
7
- }
8
- }
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
- </state>
5
- </component>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding">
4
- <file url="PROJECT" charset="UTF-8" />
5
- </component>
6
- </project>
@@ -1,30 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
6
- <option name="ignoredPackages">
7
- <value>
8
- <list size="16">
9
- <item index="0" class="java.lang.String" itemvalue="Fabric" />
10
- <item index="1" class="java.lang.String" itemvalue="PyYAML" />
11
- <item index="2" class="java.lang.String" itemvalue="Jinja2" />
12
- <item index="3" class="java.lang.String" itemvalue="github3.py" />
13
- <item index="4" class="java.lang.String" itemvalue="schedule" />
14
- <item index="5" class="java.lang.String" itemvalue="tzlocal" />
15
- <item index="6" class="java.lang.String" itemvalue="pydantic" />
16
- <item index="7" class="java.lang.String" itemvalue="django" />
17
- <item index="8" class="java.lang.String" itemvalue="django-cors-middleware" />
18
- <item index="9" class="java.lang.String" itemvalue="timezonefinder" />
19
- <item index="10" class="java.lang.String" itemvalue="application_kit" />
20
- <item index="11" class="java.lang.String" itemvalue="requests" />
21
- <item index="12" class="java.lang.String" itemvalue="PLY" />
22
- <item index="13" class="java.lang.String" itemvalue="ddtrace" />
23
- <item index="14" class="java.lang.String" itemvalue="humanize" />
24
- <item index="15" class="java.lang.String" itemvalue="types-redis" />
25
- </list>
26
- </value>
27
- </option>
28
- </inspection_tool>
29
- </profile>
30
- </component>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <settings>
3
- <option name="USE_PROJECT_PROFILE" value="false" />
4
- <version value="1.0" />
5
- </settings>
6
- </component>
package/.idea/misc.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
4
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/ui.iml" filepath="$PROJECT_DIR$/.idea/ui.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PrettierConfiguration">
4
- <option name="myConfigurationMode" value="AUTOMATIC" />
5
- </component>
6
- </project>
package/.idea/ui.iml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="PYTHON_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>