1.2.0 • Published 7 months ago

@saasquatch-themes/ringcentral-components v1.2.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
7 months ago

How to build and deploy custom widgets

  1. Copy the widget-starter folder and rename as needed
  2. Create new components in ./src/components as new folders, for example ./src/components/sqh-my-component

    1. Components should be built using the HVC pattern
    2. Controller should match the name of the folder: sqh-my-component.tsx
    3. View should match the controller name + "view": sqh-my-component-view.tsx
    4. Hook should have the prefix "use" and the Controller's class name: useMyComponent.ts
    5. Stories should be added to provide visuals of each possible state of the component (MyComponent.stories.tsx) and imported into sqh-stencilbook.tsx. Be sure to import any mixins used in your components into sqh-stencilbook.scss
  3. Before you begin:

    1. Edit stencil.config.ts - update namespace to my-theme-components
    2. Edit package.json - update name to @saasquatch/my-theme-components
  4. Develop Stencil components locally

    1. npm start
    2. Edit html: index.html
  5. Build and publish to NPM under personal user to @saasquatch/my-theme-components@0.0.1

    1. npm login
    2. npm run build 2a. Navigate to dist/my-theme-components/my-theme-components.js and find + remove window.location.origin from the built file (only needed if loading these components in an iframe)
    3. npm publish --access public
  6. Implement widget in portal widget editor

    1. Reference deployed components in advanced section of the widget editor:

      dependencies:

      package: @saasquatch/mint-components
      version: 1.0.0
      filePath: /dist/mint-components/mint-components.js

      plugins:

      package: @saasquatch/mint-components
      version: 1.0.0
      filePath: /grapesjs/grapesjs.js
    2. Import custom html from index.html

  7. Test widget in browser using squatch.js library

    1. go to http://squathjs-demo.surge.sh
    2. Fill out tenantAlias, domain, user, widgetType (p/[programId]/w/referrerWidget), and jwt fields for squatch initObj in config
    3. jwt can be generated at https://jwt.io using the user object from config as the payload
      {
         "user":{
            "id":"my-user-id",
            "accountId":"my-account-id"
         }
      }
      and your tenant's API key in the Verify Signature section
    4. Reload config

flowchart

1.2.1-0

7 months ago

1.2.0

11 months ago

1.1.7-7

11 months ago

1.1.7-6

11 months ago

1.1.7-8

11 months ago

1.1.7-5

11 months ago

1.1.7-4

11 months ago

1.1.7-3

11 months ago

1.1.7-2

11 months ago

1.1.7-1

11 months ago

1.1.7-0

11 months ago

1.1.6

1 year ago

1.1.4-1

1 year ago

1.1.4-0

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.3-0

1 year ago

1.1.5-0

1 year ago

1.1.1

2 years ago

1.1.2

2 years ago

1.1.1-10

2 years ago

1.1.1-9

2 years ago

1.1.1-8

2 years ago

1.1.1-7

2 years ago

1.1.1-6

2 years ago

1.1.1-5

2 years ago

1.1.1-4

2 years ago

1.1.1-3

2 years ago

1.1.1-2

2 years ago

1.1.1-1

2 years ago

1.1.1-0

2 years ago

1.1.0

2 years ago

1.1.0-9

2 years ago

1.1.0-8

2 years ago

1.1.0-7

2 years ago

1.1.0-15

2 years ago

1.1.0-14

2 years ago

1.1.0-13

2 years ago

1.1.0-12

2 years ago

1.1.0-19

2 years ago

1.1.0-18

2 years ago

1.1.0-17

2 years ago

1.1.0-16

2 years ago

1.1.0-11

2 years ago

1.1.0-10

2 years ago

1.1.0-6

2 years ago

1.1.0-5

2 years ago

1.1.0-4

2 years ago

1.1.0-3

2 years ago

1.1.0-22

2 years ago

1.1.0-2

2 years ago

1.1.0-21

2 years ago

1.1.0-1

2 years ago

1.1.0-20

2 years ago

1.1.0-0

2 years ago

1.0.2-23

2 years ago

1.0.2

3 years ago

1.0.2-22

3 years ago

1.0.2-19

3 years ago

1.0.2-18

3 years ago

1.0.2-17

3 years ago

1.0.2-16

3 years ago

1.0.2-15

3 years ago

1.0.2-14

3 years ago

1.0.2-13

3 years ago

1.0.2-12

3 years ago

1.0.2-21

3 years ago

1.0.2-20

3 years ago

1.0.2-11

3 years ago

1.0.1

3 years ago

1.0.2-10

3 years ago

1.0.2-9

3 years ago

1.0.2-7

3 years ago

1.0.2-6

3 years ago

1.0.2-8

3 years ago

1.0.2-3

3 years ago

1.0.2-5

3 years ago

1.0.2-4

3 years ago

1.0.2-2

3 years ago

1.0.2-1

3 years ago

1.0.2-0

3 years ago

1.0.1-29

3 years ago

1.0.1-28

3 years ago

1.0.1-27

3 years ago

1.0.1-26

3 years ago

1.0.1-25

3 years ago

1.0.1-24

3 years ago

1.0.1-23

3 years ago

1.0.1-22

3 years ago

1.0.1-21

3 years ago

1.0.1-20

3 years ago

1.0.1-19

3 years ago

1.0.1-18

3 years ago

1.0.1-17

3 years ago

1.0.1-16

3 years ago

1.0.1-37

3 years ago

1.0.1-15

3 years ago

1.0.1-36

3 years ago

1.0.1-14

3 years ago

1.0.1-35

3 years ago

1.0.1-13

3 years ago

1.0.1-34

3 years ago

1.0.1-33

3 years ago

1.0.1-32

3 years ago

1.0.1-31

3 years ago

1.0.1-30

3 years ago

1.0.1-12

3 years ago

1.0.1-11

3 years ago

1.0.1-4

3 years ago

1.0.1-10

3 years ago

1.0.1-6

3 years ago

1.0.1-5

3 years ago

1.0.1-8

3 years ago

1.0.1-7

3 years ago

1.0.1-9

3 years ago

1.0.1-3

3 years ago

1.0.1-0

3 years ago

1.0.1-2

3 years ago

1.0.1-1

3 years ago

1.0.0

3 years ago