@woosmap/ui 4.250.2 → 4.251.1

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,106 @@
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
+ - name: Generate GitHub App token
20
+ id: app-token
21
+ uses: actions/create-github-app-token@v1
22
+ with:
23
+ app-id: ${{ secrets.APP_ID }}
24
+ private-key: ${{ secrets.APP_PRIVATE_KEY }}
25
+
26
+ - uses: actions/checkout@v4
27
+ with:
28
+ token: ${{ steps.app-token.outputs.token }}
29
+
30
+ - name: Use Node.js
31
+ uses: actions/setup-node@v4
32
+ with:
33
+ node-version: "24"
34
+
35
+ - name: Install dependencies
36
+ run: yarn
37
+
38
+ - name: Run tests
39
+ run: yarn test --watchAll=false
40
+
41
+ - name: Determine version bump
42
+ id: bump
43
+ uses: actions/github-script@v7
44
+ with:
45
+ script: |
46
+ const { data: commits } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
47
+ owner: context.repo.owner,
48
+ repo: context.repo.repo,
49
+ commit_sha: context.sha,
50
+ });
51
+ const pr = commits.find(p => p.merged_at);
52
+ let bump = 'patch';
53
+ if (pr) {
54
+ const labels = pr.labels.map(l => l.name.toLowerCase());
55
+ if (labels.includes('minor')) {
56
+ bump = 'minor';
57
+ }
58
+ }
59
+ core.setOutput('type', bump);
60
+ core.info(`Version bump: ${bump}`);
61
+
62
+ - name: Configure git
63
+ run: |
64
+ git config user.name "github-actions[bot]"
65
+ git config user.email "github-actions[bot]@users.noreply.github.com"
66
+
67
+ - name: Bump version
68
+ id: version
69
+ run: |
70
+ npm version ${{ steps.bump.outputs.type }} --no-git-tag-version
71
+ VERSION=$(node -p "require('./package.json').version")
72
+ echo "new_version=$VERSION" >> "$GITHUB_OUTPUT"
73
+
74
+ - name: Build
75
+ run: yarn build
76
+
77
+ - name: Publish to npm
78
+ run: npm publish --access public
79
+
80
+ - name: Commit version bump and tag
81
+ run: |
82
+ git add package.json
83
+ git commit -m "v${{ steps.version.outputs.new_version }} [skip ci]"
84
+ git tag "v${{ steps.version.outputs.new_version }}"
85
+ git push origin master --tags
86
+
87
+ - name: Create GitHub Release
88
+ uses: actions/github-script@v7
89
+ with:
90
+ script: |
91
+ const version = '${{ steps.version.outputs.new_version }}';
92
+ const tag = `v${version}`;
93
+ const { data: commits } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
94
+ owner: context.repo.owner,
95
+ repo: context.repo.repo,
96
+ commit_sha: context.sha,
97
+ });
98
+ const pr = commits.find(p => p.merged_at);
99
+ const prLine = pr ? `- ${pr.title} (#${pr.number})` : '';
100
+ await github.rest.repos.createRelease({
101
+ owner: context.repo.owner,
102
+ repo: context.repo.repo,
103
+ tag_name: tag,
104
+ name: tag,
105
+ body: `## What's Changed\n${prLine}\n\n**npm**: https://www.npmjs.com/package/@woosmap/ui/v/${version}`,
106
+ });
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.250.2",
3
+ "version": "4.251.1",
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>