@adminforth/clone-row 1.1.0 → 1.1.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.
package/build.log CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/CloneRowButton.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 2,106 bytes received 58 bytes 4,328.00 bytes/sec
10
+ sent 2,103 bytes received 58 bytes 4,322.00 bytes/sec
11
11
  total size is 1,888 speedup is 0.87
package/dist/index.js CHANGED
@@ -38,16 +38,6 @@ export default class extends AdminForthPlugin {
38
38
  instanceUniqueRepresentation(pluginOptions) {
39
39
  // optional method to return unique string representation of plugin instance.
40
40
  // Needed if plugin can have multiple instances on one resource
41
- return `single`;
42
- }
43
- setupEndpoints(server) {
44
- server.endpoint({
45
- method: 'POST',
46
- path: `/plugin/${this.pluginInstanceId}/example`,
47
- handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body }) {
48
- const { name } = body;
49
- return { hey: `Hello ${name}` };
50
- })
51
- });
41
+ return `${this.resourceConfig.resourceId}-clone-row`;
52
42
  }
53
43
  }
package/index.ts CHANGED
@@ -37,18 +37,6 @@ export default class extends AdminForthPlugin {
37
37
  instanceUniqueRepresentation(pluginOptions: any) : string {
38
38
  // optional method to return unique string representation of plugin instance.
39
39
  // Needed if plugin can have multiple instances on one resource
40
- return `single`;
40
+ return `${this.resourceConfig.resourceId}-clone-row`;
41
41
  }
42
-
43
- setupEndpoints(server: IHttpServer) {
44
- server.endpoint({
45
- method: 'POST',
46
- path: `/plugin/${this.pluginInstanceId}/example`,
47
- handler: async ({ body }) => {
48
- const { name } = body;
49
- return { hey: `Hello ${name}` };
50
- }
51
- });
52
- }
53
-
54
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/clone-row",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",