@twilio/create-flex-plugin 5.1.0 → 5.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twilio/create-flex-plugin",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "description": "Toolkit to create a new Twilio Flex plugin",
5
5
  "keywords": [
6
6
  "flex",
@@ -42,14 +42,14 @@
42
42
  "test:watch": "cd ../.. && jest packages/create-flex-plugin --watch --color"
43
43
  },
44
44
  "dependencies": {
45
- "@twilio/flex-dev-utils": "5.1.0",
45
+ "@twilio/flex-dev-utils": "5.1.2",
46
46
  "esm": "^3.2.25",
47
47
  "tmp": "^0.2.1",
48
48
  "yargs": "^16.2.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@twilio/flex-plugin": "5.1.0",
52
- "@twilio/flex-plugin-scripts": "5.1.0",
51
+ "@twilio/flex-plugin": "5.1.2",
52
+ "@twilio/flex-plugin-scripts": "5.1.2",
53
53
  "@twilio/flex-ui": "^1",
54
54
  "@types/tmp": "^0.2.1",
55
55
  "@types/yargs": "^16.0.4"
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "3c647c2796a9c701e28922139eccf3e1706b29ac"
60
+ "gitHead": "bac0ee77cdd20c77b4009a1a049ae7f0614a885f"
61
61
  }
@@ -6,7 +6,7 @@
6
6
  "postinstall": "flex-plugin pre-script-check"
7
7
  },
8
8
  "dependencies": {
9
- "flex-plugin-scripts": "{{pluginScriptsVersion}}",
9
+ "@twilio/flex-plugin-scripts": "{{pluginScriptsVersion}}",
10
10
  "react": "17.0.2",
11
11
  "react-dom": "17.0.2",
12
12
  "prop-types": "^15.7.2",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FlexPlugin } from 'flex-plugin';
2
+ import { FlexPlugin } from '@twilio/flex-plugin';
3
3
 
4
4
  import CustomTaskList from './components/CustomTaskList/CustomTaskList';
5
5
 
@@ -16,7 +16,7 @@ export default class {{pluginClassName}} extends FlexPlugin {
16
16
  *
17
17
  * @param flex { typeof import('@twilio/flex-ui') }
18
18
  */
19
- async init(flex) {
19
+ async init(flex, manager) {
20
20
  const options = { sortOrder: -1 };
21
21
  flex.AgentDesktopView.Panel1.Content.add(<CustomTaskList key="{{pluginClassName}}-component" />, options);
22
22
  }
@@ -1,4 +1,4 @@
1
- import * as FlexPlugin from 'flex-plugin';
1
+ import * as FlexPlugin from '@twilio/flex-plugin';
2
2
 
3
3
  import {{pluginClassName}} from './{{pluginClassName}}';
4
4
 
@@ -6,7 +6,7 @@
6
6
  "postinstall": "flex-plugin pre-script-check"
7
7
  },
8
8
  "dependencies": {
9
- "flex-plugin-scripts": "{{pluginScriptsVersion}}",
9
+ "@twilio/flex-plugin-scripts": "{{pluginScriptsVersion}}",
10
10
  "react": "17.0.2",
11
11
  "react-dom": "17.0.2",
12
12
  "prop-types": "^15.7.2",
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import * as Flex from '@twilio/flex-ui';
3
- import { FlexPlugin } from 'flex-plugin';
3
+ import { FlexPlugin } from '@twilio/flex-plugin';
4
4
 
5
5
  import CustomTaskList from './components/CustomTaskList/CustomTaskList';
6
6
 
@@ -17,7 +17,7 @@ export default class {{pluginClassName}} extends FlexPlugin {
17
17
  *
18
18
  * @param flex { typeof Flex }
19
19
  */
20
- async init(flex: typeof Flex): Promise<void> {
20
+ async init(flex: typeof Flex, manager: Flex.Manager): Promise<void> {
21
21
  const options: Flex.ContentFragmentProps = { sortOrder: -1 };
22
22
  flex.AgentDesktopView.Panel1.Content.add(<CustomTaskList key="{{pluginClassName}}-component" />, options);
23
23
  }
@@ -1,4 +1,4 @@
1
- import * as FlexPlugin from 'flex-plugin';
1
+ import * as FlexPlugin from '@twilio/flex-plugin';
2
2
 
3
3
  import {{pluginClassName}} from './{{pluginClassName}}';
4
4