@rails/actiontext 7.0.0-rc3 → 7.0.2-2

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.
@@ -4,7 +4,7 @@ export class AttachmentUpload {
4
4
  constructor(attachment, element) {
5
5
  this.attachment = attachment
6
6
  this.element = element
7
- this.directUpload = new DirectUpload(attachment.file, this.directUploadUrl, this.directUploadToken, this.attachmentName, this)
7
+ this.directUpload = new DirectUpload(attachment.file, this.directUploadUrl, this)
8
8
  }
9
9
 
10
10
  start() {
@@ -42,11 +42,4 @@ export class AttachmentUpload {
42
42
  get blobUrlTemplate() {
43
43
  return this.element.dataset.blobUrlTemplate
44
44
  }
45
-
46
- get directUploadToken() {
47
- return this.element.getAttribute("data-direct-upload-token");
48
- }
49
- get attachmentName() {
50
- return this.element.getAttribute("data-direct-upload-attachment-name");
51
- }
52
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/actiontext",
3
- "version": "7.0.0-rc3",
3
+ "version": "7.0.2-2",
4
4
  "description": "Edit and display rich text in Rails applications",
5
5
  "main": "app/javascript/actiontext/index.js",
6
6
  "type": "module",