@cocreate/aria 1.2.0 → 1.3.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.
@@ -1,8 +1,10 @@
1
1
  name: Automated Workflow
2
+
2
3
  on:
3
4
  push:
4
5
  branches:
5
6
  - master
7
+
6
8
  jobs:
7
9
  about:
8
10
  runs-on: ubuntu-latest
@@ -18,26 +20,37 @@ jobs:
18
20
  with:
19
21
  direction: overwrite-github
20
22
  githubToken: "${{ secrets.GITHUB }}"
23
+
21
24
  release:
22
25
  runs-on: ubuntu-latest
23
26
  steps:
24
27
  - name: Checkout
25
28
  uses: actions/checkout@v4
29
+ with:
30
+ fetch-depth: 0 # Required so semantic-release can trace git tags/history
31
+
26
32
  - name: Setup Node.js
27
33
  uses: actions/setup-node@v4
28
34
  with:
29
- node-version: 22 # Required for the latest semantic-release plugins
30
- - name: Semantic Release
31
- uses: cycjimmy/semantic-release-action@v4 # Update to v4 for better Node 20+ support
32
- id: semantic
33
- with:
34
- extra_plugins: |
35
- @semantic-release/changelog
35
+ node-version: 22
36
+
37
+ - name: Install Semantic Release & Plugins
38
+ # Installs semantic-release and its plugins on the runner
39
+ run: |
40
+ npm install -g semantic-release \
41
+ @semantic-release/changelog \
42
+ @semantic-release/npm \
43
+ @semantic-release/github \
36
44
  @semantic-release/git
37
- @semantic-release/github
45
+
46
+ - name: Run Semantic Release (Native)
47
+ id: semantic
48
+ # This will automatically pick up your export default config file in the repository root
49
+ run: npx semantic-release
38
50
  env:
39
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # Use the built-in token if possible
51
+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
40
52
  NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
53
+
41
54
  outputs:
42
55
  new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
43
- new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
56
+ new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
@@ -14,8 +14,7 @@ jobs:
14
14
  env:
15
15
  DRY_RUN: ${{ github.event.inputs.dry_run }}
16
16
  GITHUB_TOKEN: "${{ secrets.GITHUB }}"
17
- NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
18
-
17
+
19
18
  steps:
20
19
  - name: Checkout
21
20
  uses: actions/checkout@v3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # [1.3.0](https://github.com/CoCreate-app/CoCreate-aria/compare/v1.2.1...v1.3.0) (2026-07-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * update automated workflow and release configuration for improved semantic release handling ([496feb1](https://github.com/CoCreate-app/CoCreate-aria/commit/496feb179258d215ed33d644e0e412712bf9b2a7))
7
+
8
+ ## [1.2.1](https://github.com/CoCreate-app/CoCreate-aria/compare/v1.2.0...v1.2.1) (2026-07-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump package versions ([2ad08d0](https://github.com/CoCreate-app/CoCreate-aria/commit/2ad08d0434fd16624190902a3da18d3e1aabdee2))
14
+ * removed post install and add add packages to apprved list ([100c02b](https://github.com/CoCreate-app/CoCreate-aria/commit/100c02b93154001d03f2cb9ce6da41ea9c337df2))
15
+ * semantic version handling ([a64a089](https://github.com/CoCreate-app/CoCreate-aria/commit/a64a089292f5d7dd86d6439066081f8d701c8404))
16
+ * update aria-open and aria-close attribute handling to treat them as boolean-like ([608bb59](https://github.com/CoCreate-app/CoCreate-aria/commit/608bb59372d3fc0dabbcda96f8be4ef4e34d8405))
17
+
1
18
  # [1.2.0](https://github.com/CoCreate-app/CoCreate-aria/compare/v1.1.1...v1.2.0) (2026-02-09)
2
19
 
3
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/aria",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Orchestrate dynamic UI behavior and ARIA state with event-driven action chains, configured via HTML5 attributes or the JavaScript API.",
5
5
  "keywords": [
6
6
  "aria",
@@ -21,8 +21,7 @@
21
21
  "scripts": {
22
22
  "start": "npx webpack --config webpack.config.js",
23
23
  "build": "npx webpack --mode=production --config webpack.config.js",
24
- "dev": "npx webpack --config webpack.config.js --watch",
25
- "postinstall": "node -e \"const { execSync } = require('child_process'); try { execSync('coc --version', { stdio: 'ignore' }); } catch (error) { try { execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); console.log('Installed \"@cocreate/cli\" globally.'); } catch (error) { console.error('Failed to install \"@cocreate/cli\" globally:', error); } }\""
24
+ "dev": "npx webpack --config webpack.config.js --watch"
26
25
  },
27
26
  "repository": {
28
27
  "type": "git",
@@ -39,16 +38,15 @@
39
38
  "url": "https://github.com/sponsors/CoCreate-app"
40
39
  },
41
40
  "main": "./src/index.js",
41
+ "dependencies": {
42
+ "@cocreate/observer": "^1.19.0"
43
+ },
42
44
  "devDependencies": {
43
- "css-loader": "^5.1.3",
44
- "esbuild": "^0.25.2",
45
- "esbuild-loader": "^4.3.0",
46
- "mini-css-extract-plugin": "^1.5.0",
47
- "webpack": "^5.24.4",
48
- "webpack-cli": "^4.5.0",
49
- "webpack-log": "^3.0.1"
45
+ "@cocreate/webpack": "^1.4.3"
50
46
  },
51
- "dependencies": {
52
- "@cocreate/observer": "^1.18.4"
47
+ "allowScripts": {
48
+ "@cocreate/observer@1.19.0": true,
49
+ "@cocreate/utils@1.42.2": true,
50
+ "@cocreate/webpack@1.4.3": true
53
51
  }
54
52
  }
package/release.config.js CHANGED
@@ -10,12 +10,20 @@ module.exports = {
10
10
  changelogFile: "CHANGELOG.md",
11
11
  },
12
12
  ],
13
- "@semantic-release/npm",
14
- "@semantic-release/github",
13
+ "@semantic-release/npm",
15
14
  [
16
- "@semantic-release/git",
15
+ "@semantic-release/github",
17
16
  {
17
+ successComment: false,
18
+ failTitle: false,
19
+ },
20
+ ],
21
+ [
22
+ "@semantic-release/git",
23
+ {
24
+ // Only stage and commit the changelog and package.json
18
25
  assets: ["CHANGELOG.md", "package.json"],
26
+ message: "chore(release): ${nextRelease.version} [skip ci]",
19
27
  },
20
28
  ],
21
29
  ],
package/src/index.js CHANGED
@@ -61,8 +61,11 @@ function initElement(elements) {
61
61
 
62
62
  const closeOn = controlledElement.getAttribute("aria-close-on");
63
63
  const role = this.getAttribute("role");
64
- const hasAriaOpen = this.hasAttribute("aria-open");
65
- const hasAriaClose = this.hasAttribute("aria-close");
64
+ const ariaOpenAttr = this.getAttribute("aria-open");
65
+ const ariaCloseAttr = this.getAttribute("aria-close");
66
+ // Treat these attributes as boolean-like: presence and not equal to "false"
67
+ const hasAriaOpen = ariaOpenAttr !== null && ariaOpenAttr !== "false";
68
+ const hasAriaClose = ariaCloseAttr !== null && ariaCloseAttr !== "false";
66
69
  const expanded = this.getAttribute("aria-expanded");
67
70
  const controlsClass = this.getAttribute("aria-controls-class") || "show";
68
71
  const group = this.getAttribute("aria-controls-group");