@woosmap/ui 4.250.1 → 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.1",
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": {
@@ -264,6 +264,7 @@ import { ReactComponent as IndoorCheckin } from '../../icons/indoor-checkin.svg'
264
264
  import { ReactComponent as IndoorClass } from '../../icons/indoor-class.svg';
265
265
  import { ReactComponent as IndoorClothes } from '../../icons/indoor-clothes.svg';
266
266
  import { ReactComponent as IndoorConvinienceStore } from '../../icons/indoor-convinience_store.svg';
267
+ import { ReactComponent as IndoorConvenienceStore } from '../../icons/indoor-convenience_store.svg';
267
268
  import { ReactComponent as IndoorCosmetics } from '../../icons/indoor-cosmetics.svg';
268
269
  import { ReactComponent as IndoorDefault } from '../../icons/indoor-default.svg';
269
270
  import { ReactComponent as IndoorDefibrillator } from '../../icons/indoor-defibrillator.svg';
@@ -745,6 +746,7 @@ const ConsoleIcons = {
745
746
  'indoor-class': IndoorClass,
746
747
  'indoor-clothes': IndoorClothes,
747
748
  'indoor-convinience_store': IndoorConvinienceStore,
749
+ 'indoor-convenience_store': IndoorConvenienceStore,
748
750
  'indoor-cosmetics': IndoorCosmetics,
749
751
  'indoor-default': IndoorDefault,
750
752
  'indoor-defibrillator': IndoorDefibrillator,
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42"><path d="m21.959,23.86l6.695-6.695c2.572,1.07,5.645.561,7.737-1.531,2.035-2.035,2.568-4.999,1.611-7.527l-3.903,3.903h-2.438s-1.809-1.809-1.809-1.809l.138-2.299,3.903-3.903c-2.528-.958-5.492-.425-7.527,1.611-2.092,2.092-2.6,5.165-1.531,7.737l-11.488,11.488c-2.572-1.07-5.645-.561-7.737,1.531-2.035,2.035-2.568,4.999-1.611,7.527l4.292-4.292h2.437s1.809,1.809,1.809,1.809l-.138,2.299-4.292,4.292c2.528.958,5.492.425,7.527-1.611,2.092-2.092,2.6-5.165,1.531-7.737l4.793-4.793"/><polyline points="22.211 23.906 24.578 26.273 26.273 24.578 23.757 22.062"/><polyline points="19.938 18.243 7.58 5.884 4.816 4 4 4.816 5.885 7.58 18.243 19.938"/><path d="m36.902,32.262l-9.43-8.879-4.089,4.089,8.879,9.43c1.268,1.354,3.406,1.39,4.718.078h0c1.312-1.312,1.277-3.45-.078-4.718Z"/></svg>
@@ -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>