bard-attachment_field 0.5.3 → 0.5.4
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.
- checksums.yaml +4 -4
- data/README.md +72 -12
- data/Rakefile +4 -0
- data/app/assets/javascripts/input-attachment.js +245 -234
- data/bard-attachment_field.gemspec +1 -1
- data/input-attachment/bun.lockb +0 -0
- data/input-attachment/package.json +3 -1
- data/input-attachment/src/components/attachment-file/attachment-file.css +0 -1
- data/input-attachment/src/components/attachment-file/attachment-file.tsx +1 -1
- data/lib/bard/attachment_field/version.rb +1 -1
- metadata +2 -2
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
21
21
|
spec.files = Dir.chdir(__dir__) do
|
|
22
22
|
`git ls-files -z`.split("\x0").reject do |f|
|
|
23
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)
|
|
23
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features|demo|public)/|config\.ru|\.(?:git|travis|circleci)|appveyor)})
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
spec.bindir = "exe"
|
data/input-attachment/bun.lockb
CHANGED
|
Binary file
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"prepublishOnly": "bun run build",
|
|
13
13
|
"build": "bunx stencil build --docs && bun run bundle",
|
|
14
|
+
"build:dev": "stencil build && esbuild src/entry.js --bundle --format=esm --outfile=dist/input-attachment.esm.js",
|
|
14
15
|
"bundle": "bunx esbuild src/entry.js --bundle --format=esm --outfile=dist/input-attachment.esm.js",
|
|
15
16
|
"start": "bunx stencil build --docs --watch --serve",
|
|
16
17
|
"test": "NODE_OPTIONS=--experimental-vm-modules bunx stencil test --spec --e2e --max-workers=1",
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@botandrose/file-drop": "^0.1.1",
|
|
36
|
-
"@botandrose/progress-bar": "^0.
|
|
37
|
+
"@botandrose/progress-bar": "^0.3.0",
|
|
37
38
|
"@rails/activestorage": "^8.1.0",
|
|
38
39
|
"@rails/request.js": "0.0.13",
|
|
39
40
|
"@stencil/core": "^4.43.2",
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@types/jest": "^29.5.12",
|
|
45
46
|
"@types/node": "^24.9.1",
|
|
47
|
+
"esbuild": "^0.28.0",
|
|
46
48
|
"jest": "^29.7.0",
|
|
47
49
|
"jest-cli": "^29.7.0",
|
|
48
50
|
"puppeteer": "^24.26.1"
|
|
@@ -131,7 +131,7 @@ export class AttachmentFile {
|
|
|
131
131
|
</slot>
|
|
132
132
|
<figure>
|
|
133
133
|
<div class="progress-details">
|
|
134
|
-
<progress-bar percent={this.percent} class={this.state}>
|
|
134
|
+
<progress-bar percent={this.percent} class={this.state} error={this.state === "error"}>
|
|
135
135
|
<a class="download-link" href={this.src} download={this.filename} onClick={e => e.stopPropagation()}>
|
|
136
136
|
{this.filename}
|
|
137
137
|
</a>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bard-attachment_field
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Micah Geisel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activestorage
|