@biggive/components 0.0.18 → 0.0.20
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/dist/cjs/biggive.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +0 -3
- package/dist/esm/biggive.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +0 -3
- package/package.json +1 -1
- package/readme.md +27 -0
package/dist/cjs/biggive.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const index = require('./index-8692cc53.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.17.
|
|
6
|
+
Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('biggive.cjs.js', document.baseURI).href));
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-8692cc53.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.17.
|
|
8
|
+
Stencil Client Patch Esm v2.17.3 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { Component, Prop, h } from '@stencil/core';
|
|
2
2
|
import { CampaignGroupsService } from '../../util/campaign-groups';
|
|
3
|
-
/**
|
|
4
|
-
* @todo Currency code for the campaign must be passed as a `@Prop`, not localised to the prospective donor.
|
|
5
|
-
*/
|
|
6
3
|
export class BiggiveCampaignCard {
|
|
7
4
|
constructor() {
|
|
8
5
|
/**
|
package/dist/esm/biggive.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-4c3bc0b8.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.17.
|
|
4
|
+
Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-4c3bc0b8.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.17.
|
|
4
|
+
Stencil Client Patch Esm v2.17.3 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -45,6 +45,28 @@ Anything externally managed should be loaded with npm and no copies checked into
|
|
|
45
45
|
|
|
46
46
|
Generated build outputs should similarly be `.gitignore`d.
|
|
47
47
|
|
|
48
|
+
Because Stencil components have *partly* generated readme docs, it is a good idea after changing any `@Prop`s or similar to `npm run build`
|
|
49
|
+
before committing your changes. The docs should be source controlled as they can include manual content. If you make a new one, it's a good
|
|
50
|
+
idea to add a one line description of its purpose to the readme before the generated section.
|
|
51
|
+
|
|
52
|
+
### Output targets
|
|
53
|
+
|
|
54
|
+
Main targets are:
|
|
55
|
+
|
|
56
|
+
* `angularOutputTarget()` – used in [Donate frontend](https://github.com/thebiggive/donate-frontend).
|
|
57
|
+
* `dist-custom-elements` – the docs don't make this terribly clear but with our current configuration,
|
|
58
|
+
these are a dependency for the Angular project/target to build successfully. Angular needs to be told
|
|
59
|
+
that they live inside `dist/` (so are published in `dist/components`).
|
|
60
|
+
* `dist` for general web modules – used in [WordPress](https://github.com/thebiggive/wordpress).
|
|
61
|
+
* Storybook has its own build step using the component from source. Currently, this is also used in
|
|
62
|
+
Salesforce to embed components in iframes, the only feasible way we've been able to get Experiences
|
|
63
|
+
to dynamically pull in components.
|
|
64
|
+
* `docs-readme` for documentation.
|
|
65
|
+
|
|
66
|
+
Targets we have but just for local experiments:
|
|
67
|
+
|
|
68
|
+
* `www`
|
|
69
|
+
|
|
48
70
|
### Angular components
|
|
49
71
|
|
|
50
72
|
As well as the core package `@biggive/components`, CI automatically publishes a version best tailored to
|
|
@@ -110,6 +132,11 @@ CI automatically publishes the Storybook preview:
|
|
|
110
132
|
* to [its Production site](https://components-production.thebiggive.org.uk) on *tagged* pushes
|
|
111
133
|
(typically also on `main`) – intended for tested, new versions which are also to be npm published.
|
|
112
134
|
|
|
135
|
+
For now, the local `npm run storybook` won't load static image assets or fonts. We've prioritised realistic
|
|
136
|
+
renders in the deployed environment, where these work due to:
|
|
137
|
+
* CI separately copying the main build's `assets` output to S3: see e.g. `deploy-staging-storybook` in [CI config](./.circleci/config.yml)
|
|
138
|
+
* Storybook having a custom [`preview-head.html`](./.storybook/preview-head.html).
|
|
139
|
+
|
|
113
140
|
## Publish to NPM
|
|
114
141
|
|
|
115
142
|
### Connect to NPM
|