Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/angular/bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd "$(dirname "$0")/.."
cp ./util/trusted-resource-url-pipe.ts ./src/trusted-resource-url-pipe.ts

# Array of files to process
files=('./src/direct-template.ts' './src/sign-document.ts' './src/create-document.ts' './src/create-template.ts')
files=('./src/direct-template.ts' './src/sign-document.ts' './src/create-document.ts' './src/create-template.ts' './src/update-document.ts' './src/update-template.ts')

# Detect OS type
OS_TYPE=$(uname)
Expand Down
4 changes: 4 additions & 0 deletions packages/angular/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export { default as EmbedDirectTemplate } from './direct-template';
export { default as EmbedSignDocument } from './sign-document';
export { default as EmbedCreateDocumentV1 } from './create-document';
export { default as EmbedCreateTemplateV1 } from './create-template';
export { default as EmbedUpdateDocumentV1 } from './update-document';
export { default as EmbedUpdateTemplateV1 } from './update-template';
export { default as unstable_EmbedCreateDocument } from './create-document';
export { default as unstable_EmbedCreateTemplate } from './create-template';
export { default as unstable_EmbedUpdateDocument } from './update-document';
Expand Down
10 changes: 7 additions & 3 deletions packages/angular/src/update-document.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { TrustedResourceUrlPipe } from "./trusted-resource-url-pipe";
import { Component, ViewChild, ElementRef, Input } from "@angular/core";
import { CommonModule } from "@angular/common";

Expand All @@ -18,7 +19,8 @@ export type EmbedUpdateDocumentProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -33,7 +35,7 @@ import { CssVars } from "./css-vars";
@Component({
selector: "embed-update-document, EmbedUpdateDocument",
template: `
<iframe #__iframe [class]="className" [attr.src]="src"></iframe>
<iframe #__iframe [class]="className" [attr.src]="src | trustedResourceUrl"></iframe>
`,
styles: [
`
Expand All @@ -43,7 +45,7 @@ import { CssVars } from "./css-vars";
`,
],
standalone: true,
imports: [CommonModule],
imports: [CommonModule, TrustedResourceUrlPipe],
})
export default class EmbedUpdateDocument {
@Input() host!: EmbedUpdateDocumentProps["host"];
Expand All @@ -53,6 +55,7 @@ export default class EmbedUpdateDocument {
@Input() css!: EmbedUpdateDocumentProps["css"];
@Input() cssVars!: EmbedUpdateDocumentProps["cssVars"];
@Input() darkModeDisabled!: EmbedUpdateDocumentProps["darkModeDisabled"];
@Input() onlyEditFields!: EmbedUpdateDocumentProps["onlyEditFields"];
@Input() additionalProps!: EmbedUpdateDocumentProps["additionalProps"];
@Input() documentId!: EmbedUpdateDocumentProps["documentId"];
@Input() onDocumentUpdated!: EmbedUpdateDocumentProps["onDocumentUpdated"];
Expand All @@ -71,6 +74,7 @@ export default class EmbedUpdateDocument {
css: this.css,
cssVars: this.cssVars,
darkModeDisabled: this.darkModeDisabled,
onlyEditFields: this.onlyEditFields,
...this.additionalProps,
})
)
Expand Down
10 changes: 7 additions & 3 deletions packages/angular/src/update-template.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { TrustedResourceUrlPipe } from "./trusted-resource-url-pipe";
import { Component, ViewChild, ElementRef, Input } from "@angular/core";
import { CommonModule } from "@angular/common";

Expand All @@ -18,7 +19,8 @@ export type EmbedUpdateTemplateProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -33,7 +35,7 @@ import { CssVars } from "./css-vars";
@Component({
selector: "embed-update-template, EmbedUpdateTemplate",
template: `
<iframe #__iframe [class]="className" [attr.src]="src"></iframe>
<iframe #__iframe [class]="className" [attr.src]="src | trustedResourceUrl"></iframe>
`,
styles: [
`
Expand All @@ -43,7 +45,7 @@ import { CssVars } from "./css-vars";
`,
],
standalone: true,
imports: [CommonModule],
imports: [CommonModule, TrustedResourceUrlPipe],
})
export default class EmbedUpdateTemplate {
@Input() host!: EmbedUpdateTemplateProps["host"];
Expand All @@ -52,6 +54,7 @@ export default class EmbedUpdateTemplate {
@Input() css!: EmbedUpdateTemplateProps["css"];
@Input() cssVars!: EmbedUpdateTemplateProps["cssVars"];
@Input() darkModeDisabled!: EmbedUpdateTemplateProps["darkModeDisabled"];
@Input() onlyEditFields!: EmbedUpdateTemplateProps["onlyEditFields"];
@Input() additionalProps!: EmbedUpdateTemplateProps["additionalProps"];
@Input() templateId!: EmbedUpdateTemplateProps["templateId"];
@Input() presignToken!: EmbedUpdateTemplateProps["presignToken"];
Expand All @@ -70,6 +73,7 @@ export default class EmbedUpdateTemplate {
css: this.css,
cssVars: this.cssVars,
darkModeDisabled: this.darkModeDisabled,
onlyEditFields: this.onlyEditFields,
...this.additionalProps,
})
)
Expand Down
6 changes: 6 additions & 0 deletions packages/mitosis/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export { default as EmbedDirectTemplate } from './direct-template.lite';
export { default as EmbedSignDocument } from './sign-document.lite';

export { default as EmbedCreateDocumentV1 } from './create-document.lite';
export { default as EmbedCreateTemplateV1 } from './create-template.lite';
export { default as EmbedUpdateDocumentV1 } from './update-document.lite';
export { default as EmbedUpdateTemplateV1 } from './update-template.lite';

export { default as unstable_EmbedCreateDocument } from './create-document.lite';
export { default as unstable_EmbedCreateTemplate } from './create-template.lite';
export { default as unstable_EmbedUpdateDocument } from './update-document.lite';
Expand Down
3 changes: 3 additions & 0 deletions packages/mitosis/src/update-document.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export type EmbedUpdateDocumentProps = {
allowConfigureCommunication?: boolean;
};

onlyEditFields?: boolean | undefined;

// Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props
additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -49,6 +51,7 @@ export default function EmbedUpdateDocument(props: EmbedUpdateDocumentProps) {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
}),
),
Expand Down
3 changes: 3 additions & 0 deletions packages/mitosis/src/update-template.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export type EmbedUpdateTemplateProps = {
allowConfigureCommunication?: boolean;
};

onlyEditFields?: boolean | undefined;

// Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props
additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -47,6 +49,7 @@ export default function EmbedUpdateTemplate(props: EmbedUpdateTemplateProps) {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
}),
),
Expand Down
4 changes: 4 additions & 0 deletions packages/preact/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export { default as EmbedDirectTemplate } from './direct-template';
export { default as EmbedSignDocument } from './sign-document';
export { default as EmbedCreateDocumentV1 } from './create-document';
export { default as EmbedCreateTemplateV1 } from './create-template';
export { default as EmbedUpdateDocumentV1 } from './update-document';
export { default as EmbedUpdateTemplateV1 } from './update-template';
export { default as unstable_EmbedCreateDocument } from './create-document';
export { default as unstable_EmbedCreateTemplate } from './create-template';
export { default as unstable_EmbedUpdateDocument } from './update-document';
Expand Down
4 changes: 3 additions & 1 deletion packages/preact/src/update-document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type EmbedUpdateDocumentProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -43,6 +44,7 @@ function EmbedUpdateDocument(props: EmbedUpdateDocumentProps) {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
})
)
Expand Down
4 changes: 3 additions & 1 deletion packages/preact/src/update-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type EmbedUpdateTemplateProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -42,6 +43,7 @@ function EmbedUpdateTemplate(props: EmbedUpdateTemplateProps) {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
})
)
Expand Down
4 changes: 4 additions & 0 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export { default as EmbedDirectTemplate } from './direct-template';
export { default as EmbedSignDocument } from './sign-document';
export { default as EmbedCreateDocumentV1 } from './create-document';
export { default as EmbedCreateTemplateV1 } from './create-template';
export { default as EmbedUpdateDocumentV1 } from './update-document';
export { default as EmbedUpdateTemplateV1 } from './update-template';
export { default as unstable_EmbedCreateDocument } from './create-document';
export { default as unstable_EmbedCreateTemplate } from './create-template';
export { default as unstable_EmbedUpdateDocument } from './update-document';
Expand Down
4 changes: 3 additions & 1 deletion packages/react/src/update-document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type EmbedUpdateDocumentProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -43,6 +44,7 @@ function EmbedUpdateDocument(props: EmbedUpdateDocumentProps) {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
})
)
Expand Down
4 changes: 3 additions & 1 deletion packages/react/src/update-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type EmbedUpdateTemplateProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -42,6 +43,7 @@ function EmbedUpdateTemplate(props: EmbedUpdateTemplateProps) {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
})
)
Expand Down
4 changes: 4 additions & 0 deletions packages/solid/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export { default as EmbedDirectTemplate } from './direct-template';
export { default as EmbedSignDocument } from './sign-document';
export { default as EmbedCreateDocumentV1 } from './create-document';
export { default as EmbedCreateTemplateV1 } from './create-template';
export { default as EmbedUpdateDocumentV1 } from './update-document';
export { default as EmbedUpdateTemplateV1 } from './update-template';
export { default as unstable_EmbedCreateDocument } from './create-document';
export { default as unstable_EmbedCreateTemplate } from './create-template';
export { default as unstable_EmbedUpdateDocument } from './update-document';
Expand Down
4 changes: 3 additions & 1 deletion packages/solid/src/update-document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export type EmbedUpdateDocumentProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -41,6 +42,7 @@ function EmbedUpdateDocument(props: EmbedUpdateDocumentProps) {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
})
)
Expand Down
4 changes: 3 additions & 1 deletion packages/solid/src/update-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export type EmbedUpdateTemplateProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -40,6 +41,7 @@ function EmbedUpdateTemplate(props: EmbedUpdateTemplateProps) {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
})
)
Expand Down
4 changes: 4 additions & 0 deletions packages/svelte/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export { default as EmbedDirectTemplate } from './direct-template.svelte';
export { default as EmbedSignDocument } from './sign-document.svelte';
export { default as EmbedCreateDocumentV1 } from './create-document.svelte';
export { default as EmbedCreateTemplateV1 } from './create-template.svelte';
export { default as EmbedUpdateDocumentV1 } from './update-document.svelte';
export { default as EmbedUpdateTemplateV1 } from './update-template.svelte';
export { default as unstable_EmbedCreateDocument } from './create-document.svelte';
export { default as unstable_EmbedCreateTemplate } from './create-template.svelte';
export { default as unstable_EmbedUpdateDocument } from './update-document.svelte';
Expand Down
6 changes: 5 additions & 1 deletion packages/svelte/src/update-document.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -40,6 +41,8 @@
export let cssVars: EmbedUpdateDocumentProps["cssVars"] = undefined;
export let darkModeDisabled: EmbedUpdateDocumentProps["darkModeDisabled"] =
undefined;
export let onlyEditFields: EmbedUpdateDocumentProps["onlyEditFields"] =
undefined;
export let additionalProps: EmbedUpdateDocumentProps["additionalProps"] =
undefined;
export let documentId: EmbedUpdateDocumentProps["documentId"];
Expand Down Expand Up @@ -70,6 +73,7 @@
css: css,
cssVars: cssVars,
darkModeDisabled: darkModeDisabled,
onlyEditFields: onlyEditFields,
...additionalProps,
})
)
Expand Down
6 changes: 5 additions & 1 deletion packages/svelte/src/update-template.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand All @@ -39,6 +40,8 @@
export let cssVars: EmbedUpdateTemplateProps["cssVars"] = undefined;
export let darkModeDisabled: EmbedUpdateTemplateProps["darkModeDisabled"] =
undefined;
export let onlyEditFields: EmbedUpdateTemplateProps["onlyEditFields"] =
undefined;
export let additionalProps: EmbedUpdateTemplateProps["additionalProps"] =
undefined;
export let templateId: EmbedUpdateTemplateProps["templateId"];
Expand Down Expand Up @@ -69,6 +72,7 @@
css: css,
cssVars: cssVars,
darkModeDisabled: darkModeDisabled,
onlyEditFields: onlyEditFields,
...additionalProps,
})
)
Expand Down
4 changes: 4 additions & 0 deletions packages/vue/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export { default as EmbedDirectTemplate } from './direct-template.vue';
export { default as EmbedSignDocument } from './sign-document.vue';
export { default as EmbedCreateDocumentV1 } from './create-document.vue';
export { default as EmbedCreateTemplateV1 } from './create-template.vue';
export { default as EmbedUpdateDocumentV1 } from './update-document.vue';
export { default as EmbedUpdateTemplateV1 } from './update-template.vue';
export { default as unstable_EmbedCreateDocument } from './create-document.vue';
export { default as unstable_EmbedCreateTemplate } from './create-template.vue';
export { default as unstable_EmbedUpdateDocument } from './update-document.vue';
Expand Down
4 changes: 3 additions & 1 deletion packages/vue/src/update-document.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export type EmbedUpdateDocumentProps = {
allowConfigureTimezone?: boolean;
allowConfigureRedirectUrl?: boolean;
allowConfigureCommunication?: boolean;
}; // Additional props to be passed to the iframe, used for testing out features
};
onlyEditFields?: boolean | undefined; // Additional props to be passed to the iframe, used for testing out features
// prior to being added to the main props

additionalProps?: Record<string, string | number | boolean> | undefined;
Expand Down Expand Up @@ -55,6 +56,7 @@ const src = computed(() => {
css: props.css,
cssVars: props.cssVars,
darkModeDisabled: props.darkModeDisabled,
onlyEditFields: props.onlyEditFields,
...props.additionalProps,
})
)
Expand Down
Loading